blob: 7c86dbf8160b68c378789b662028a70092cc9a94 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherf33ab862011-12-21 00:52:44 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
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.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000565PACKAGE_STRING='LLVM 3.1svn'
566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
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
Eric Christopherbee515f2011-11-11 22:51:42 +0000685ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000695ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000697LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000698ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000700ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000701ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000702ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
708ENABLE_CBE_PRINTF_A
709OPTIMIZE_OPTION
710EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000711EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000712CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000714INTERNAL_PREFIX
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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766NO_VARIADIC_MACROS
767NO_MISSING_FIELD_INITIALIZERS
768USE_UDIS86
769USE_OPROFILE
770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000774SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000793ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000801CXX
802CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000803CCC
804CPP'
John Criswell0157f502010-03-19 21:31:39 +0000805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000812projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-java
815projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000816projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000817projects/llvm-kernel
818tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000845# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000854includedir='${prefix}/include'
855oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000865
866ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000867ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000872 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000873 ac_prev=
874 continue
875 fi
876
Reid Spencera773bd52006-08-04 18:18:08 +0000877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
John Criswell7a73b802003-06-30 21:59:07 +0000881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
Reid Spencera773bd52006-08-04 18:18:08 +0000884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000909 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000911 datadir=$ac_optarg ;;
912
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
John Criswell7a73b802003-06-30 21:59:07 +0000920 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000922 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000938
939 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000941 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
Reid Spencera773bd52006-08-04 18:18:08 +0000973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
John Criswell7a73b802003-06-30 21:59:07 +0000979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
Reid Spencera773bd52006-08-04 18:18:08 +00001003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
John Criswell7a73b802003-06-30 21:59:07 +00001008 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001009 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
Reid Spencera773bd52006-08-04 18:18:08 +00001077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
John Criswell7a73b802003-06-30 21:59:07 +00001087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001138 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001144
1145 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001183 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001201fi
1202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001203# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001208do
Reid Spencera773bd52006-08-04 18:18:08 +00001209 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001210 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001213 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
Reid Spencera773bd52006-08-04 18:18:08 +00001242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250
1251
John Criswell7a73b802003-06-30 21:59:07 +00001252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001255 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 ac_confdir=`$as_dirname -- "$0" ||
1257$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001280 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
Reid Spencera773bd52006-08-04 18:18:08 +00001286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001290fi
Reid Spencera773bd52006-08-04 18:18:08 +00001291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
John Criswell7a73b802003-06-30 21:59:07 +00001312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001320\`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
John Criswell7a73b802003-06-30 21:59:07 +00001340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001368 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385 case $ac_init_help in
Eric Christopherf33ab862011-12-21 00:52:44 +00001386 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001387 esac
1388 cat <<\_ACEOF
1389
1390Optional Features:
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001393 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001394 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001407 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001410 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001411 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001412 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001413 --enable-shared Build a shared library and link tools against it
1414 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001416 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001417 --enable-timestamps Enable embedding timestamp information in build
1418 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422 xcore, msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001423 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1424 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001425 --enable-bindings Build specific language bindings:
1426 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001427 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001428 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001429
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001433 --with-optimize-option Select the compiler options to use for optimized
1434 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001435 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001436 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1438 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001439 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001440 --with-clang-resource-dir
1441 Relative directory from the Clang binary for
1442 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001443 --with-c-include-dirs Colon separated list of directories clang will
1444 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001445 --with-cxx-include-root Directory with the libstdc++ headers.
1446 --with-cxx-include-arch Architecture of the libstdc++ headers.
1447 --with-cxx-include-32bit-dir
1448 32 bit multilib dir.
1449 --with-cxx-include-64bit-dir
1450 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001451 --with-binutils-include Specify path to binutils/include/ containing
1452 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001453 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001454 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001455 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001456 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001457 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CC C compiler command
1463 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001467 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001470 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
Eric Christopherf33ab862011-12-21 00:52:44 +00001475Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001477ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001484 ac_builddir=.
1485
Reid Spencera773bd52006-08-04 18:18:08 +00001486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001515esac
Reid Spencera773bd52006-08-04 18:18:08 +00001516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001517
Reid Spencera773bd52006-08-04 18:18:08 +00001518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001530 done
1531fi
1532
Reid Spencera773bd52006-08-04 18:18:08 +00001533test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001534if $ac_init_version; then
1535 cat <<\_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001536LLVM configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001544Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Eric Christopherf33ab862011-12-21 00:52:44 +00001552It was created by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$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 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001907
1908
1909
1910
1911
1912
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1928 fi
John Criswell7a73b802003-06-30 21:59:07 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943
John Criswell7a73b802003-06-30 21:59:07 +00001944
John Criswell392aaa32003-07-22 19:18:09 +00001945
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 fi
John Criswell93e1c722003-09-15 17:04:06 +00001952fi
1953
Nick Lewycky83fc4472009-09-29 05:48:51 +00001954ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001955ac_cpp='$CPP $CPPFLAGS'
1956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001959if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001960 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001961 do
1962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966if test "${ac_cv_prog_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001968else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001971else
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 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 +00001979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001981 break 2
1982 fi
1983done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984done
Reid Spencera773bd52006-08-04 18:18:08 +00001985IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001986
1987fi
1988fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001989CC=$ac_cv_prog_CC
1990if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991 { echo "$as_me:$LINENO: result: $CC" >&5
1992echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001994 { echo "$as_me:$LINENO: result: no" >&5
1995echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001996fi
1997
Reid Spencera773bd52006-08-04 18:18:08 +00001998
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001999 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002000 done
2001fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002002if test -z "$CC"; then
2003 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002004 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002005do
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002012else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 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 +00002023 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002025 break 2
2026 fi
2027done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028done
Reid Spencera773bd52006-08-04 18:18:08 +00002029IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002030
2031fi
2032fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002038 { echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002040fi
2041
Reid Spencera773bd52006-08-04 18:18:08 +00002042
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002044done
John Criswell7a73b802003-06-30 21:59:07 +00002045
Reid Spencera773bd52006-08-04 18:18:08 +00002046 if test "x$ac_ct_CC" = x; then
2047 CC=""
2048 else
2049 case $cross_compiling:$ac_tool_warned in
2050yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002051{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052whose name does not start with the host triplet. If you think this
2053configuration is useful to you, please write to autoconf@gnu.org." >&5
2054echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055whose name does not start with the host triplet. If you think this
2056configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002057ac_tool_warned=yes ;;
2058esac
2059 CC=$ac_ct_CC
2060 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061fi
2062
John Criswell7a73b802003-06-30 21:59:07 +00002063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002064test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065See \`config.log' for more details." >&5
2066echo "$as_me: error: no acceptable C compiler found in \$PATH
2067See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069
John Criswell7a73b802003-06-30 21:59:07 +00002070# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071echo "$as_me:$LINENO: checking for C compiler version" >&5
2072ac_compiler=`set X $ac_compile; echo $2`
2073{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002074case "(($ac_try" in
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2077esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002080 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083{ (ac_try="$ac_compiler -v >&5"
2084case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087esac
2088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler -v >&5") 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093{ (ac_try="$ac_compiler -V >&5"
2094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
2098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -V >&5") 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002104cat >conftest.$ac_ext <<_ACEOF
2105/* confdefs.h. */
2106_ACEOF
2107cat confdefs.h >>conftest.$ac_ext
2108cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002110
John Criswell7a73b802003-06-30 21:59:07 +00002111int
2112main ()
2113{
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002121# Try to create an executable without -o first, disregard a.out.
2122# It will help us diagnose broken compilers, and finding out an intuition
2123# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002124{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2127#
2128# List of possible output files, starting from the most likely.
2129# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130# only as a last resort. b.out is created by i960 compilers.
2131ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2132#
2133# The IRIX 6 linker writes into existing files which may not be
2134# executable, retaining their permissions. Remove them first so a
2135# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002136ac_rmfiles=
2137for ac_file in $ac_files
2138do
2139 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142 esac
2143done
2144rm -f $ac_rmfiles
2145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002147case "(($ac_try" in
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2150esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002152 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002153 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002156 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158# in a Makefile. We should not override ac_cv_exeext if it was cached,
2159# so that the user can short-circuit this test for compilers unknown to
2160# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002162do
2163 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002164 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002166 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002167 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002168 # We found the default executable, but exeext='' is most
2169 # certainly right.
2170 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002171 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002172 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002173 then :; else
2174 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2175 fi
2176 # We set ac_cv_exeext here because the later test for it is not
2177 # safe: cross compilers may not add the suffix if given an `-o'
2178 # argument, so we may need to know it at that point already.
2179 # Even if this section looks crufty: it has the advantage of
2180 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002181 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002182 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002183 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002184 esac
2185done
Reid Spencera773bd52006-08-04 18:18:08 +00002186test "$ac_cv_exeext" = no && ac_cv_exeext=
2187
John Criswell7a73b802003-06-30 21:59:07 +00002188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002190sed 's/^/| /' conftest.$ac_ext >&5
2191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002192{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193See \`config.log' for more details." >&5
2194echo "$as_me: error: C compiler cannot create executables
2195See \`config.log' for more details." >&2;}
2196 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002197fi
John Criswell7a73b802003-06-30 21:59:07 +00002198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002199ac_exeext=$ac_cv_exeext
2200{ echo "$as_me:$LINENO: result: $ac_file" >&5
2201echo "${ECHO_T}$ac_file" >&6; }
2202
2203# Check that the compiler produces executables we can run. If not, either
2204# the compiler is broken, or we cross compile.
2205{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208# If not cross compiling, check that we can run a simple program.
2209if test "$cross_compiling" != yes; then
2210 if { ac_try='./$ac_file'
2211 { (case "(($ac_try" in
2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213 *) ac_try_echo=$ac_try;;
2214esac
2215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216 (eval "$ac_try") 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 cross_compiling=no
2221 else
2222 if test "$cross_compiling" = maybe; then
2223 cross_compiling=yes
2224 else
2225 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226If you meant to cross compile, use \`--host'.
2227See \`config.log' for more details." >&5
2228echo "$as_me: error: cannot run C compiled programs.
2229If you meant to cross compile, use \`--host'.
2230See \`config.log' for more details." >&2;}
2231 { (exit 1); exit 1; }; }
2232 fi
2233 fi
2234fi
2235{ echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
2237
2238rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002239ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002240# Check that the compiler produces executables we can run. If not, either
2241# the compiler is broken, or we cross compile.
2242{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245echo "${ECHO_T}$cross_compiling" >&6; }
2246
2247{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002250case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2253esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002255 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002256 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261# work properly (i.e., refer to `conftest.exe'), while it won't with
2262# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002263for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002265 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002268 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002269 * ) break;;
2270 esac
2271done
2272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details." >&5
2275echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002279
2280rm -f conftest$ac_cv_exeext
2281{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002283
2284rm -f conftest.$ac_ext
2285EXEEXT=$ac_cv_exeext
2286ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002287{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002292 cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002298
John Criswell7a73b802003-06-30 21:59:07 +00002299int
2300main ()
2301{
2302
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002308if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002309case "(($ac_try" in
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2312esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002314 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002315 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002318 for ac_file in conftest.o conftest.obj conftest.*; do
2319 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002320 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323 break;;
2324 esac
2325done
2326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002328sed 's/^/| /' conftest.$ac_ext >&5
2329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336
John Criswell7a73b802003-06-30 21:59:07 +00002337rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002341OBJEXT=$ac_cv_objext
2342ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002348 cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h. */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002354
John Criswell7a73b802003-06-30 21:59:07 +00002355int
2356main ()
2357{
2358#ifndef __GNUC__
2359 choke me
2360#endif
2361
2362 ;
2363 return 0;
2364}
2365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002366rm -f conftest.$ac_objext
2367if { (ac_try="$ac_compile"
2368case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371esac
2372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compile") 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381 { (case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384esac
2385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_try") 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394esac
2395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002400 ac_compiler_gnu=yes
2401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002402 echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407
Reid Spencera773bd52006-08-04 18:18:08 +00002408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002410
2411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415ac_test_CFLAGS=${CFLAGS+set}
2416ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419if test "${ac_cv_prog_cc_g+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002421else
Reid Spencera773bd52006-08-04 18:18:08 +00002422 ac_save_c_werror_flag=$ac_c_werror_flag
2423 ac_c_werror_flag=yes
2424 ac_cv_prog_cc_g=no
2425 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002432
John Criswell7a73b802003-06-30 21:59:07 +00002433int
2434main ()
2435{
2436
2437 ;
2438 return 0;
2439}
2440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002441rm -f conftest.$ac_objext
2442if { (ac_try="$ac_compile"
2443case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446esac
2447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456 { (case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_try") 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
2470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002477 echo "$as_me: failed program was:" >&5
2478sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 CFLAGS=""
2481 cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h. */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002486/* end confdefs.h. */
2487
2488int
2489main ()
2490{
2491
2492 ;
2493 return 0;
2494}
2495_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002496rm -f conftest.$ac_objext
2497if { (ac_try="$ac_compile"
2498case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2501esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2504 ac_status=$?
2505 grep -v '^ *+' conftest.er1 >conftest.err
2506 rm -f conftest.er1
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514esac
2515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2530 :
Torok Edwin871384f2010-01-26 08:50:50 +00002531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002532 echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002536 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002542/* end confdefs.h. */
2543
2544int
2545main ()
2546{
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552rm -f conftest.$ac_objext
2553if { (ac_try="$ac_compile"
2554case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557esac
2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2560 ac_status=$?
2561 grep -v '^ *+' conftest.er1 >conftest.err
2562 rm -f conftest.er1
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580esac
2581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002586 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002587else
2588 echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591
John Criswell7a73b802003-06-30 21:59:07 +00002592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593
Reid Spencera773bd52006-08-04 18:18:08 +00002594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002596
Reid Spencera773bd52006-08-04 18:18:08 +00002597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002599
Reid Spencera773bd52006-08-04 18:18:08 +00002600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 ac_c_werror_flag=$ac_save_c_werror_flag
2602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605if test "$ac_test_CFLAGS" = set; then
2606 CFLAGS=$ac_save_CFLAGS
2607elif test $ac_cv_prog_cc_g = yes; then
2608 if test "$GCC" = yes; then
2609 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002610 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002612 fi
2613else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614 if test "$GCC" = yes; then
2615 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002616 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002618 fi
2619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622if test "${ac_cv_prog_cc_c89+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624else
Reid Spencera773bd52006-08-04 18:18:08 +00002625 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632/* end confdefs.h. */
2633#include <stdarg.h>
2634#include <stdio.h>
2635#include <sys/types.h>
2636#include <sys/stat.h>
2637/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638struct buf { int x; };
2639FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640static char *e (p, i)
2641 char **p;
2642 int i;
2643{
2644 return p[i];
2645}
2646static char *f (char * (*g) (char **, int), char **p, ...)
2647{
2648 char *s;
2649 va_list v;
2650 va_start (v,p);
2651 s = g (p, va_arg (v,int));
2652 va_end (v);
2653 return s;
2654}
2655
2656/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2657 function prototypes and stuff, but not '\xHH' hex character constants.
2658 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002659 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2661 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002662 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
Reid Spencera773bd52006-08-04 18:18:08 +00002665/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666 inside strings and character constants. */
2667#define FOO(x) 'x'
2668int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670int test (int i, double x);
2671struct s1 {int (*f) (int a);};
2672struct s2 {int (*f) (double a);};
2673int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674int argc;
2675char **argv;
2676int
2677main ()
2678{
2679return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2680 ;
2681 return 0;
2682}
2683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002684for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686do
2687 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002688 rm -f conftest.$ac_objext
2689if { (ac_try="$ac_compile"
2690case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693esac
2694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compile") 2>conftest.er1
2696 ac_status=$?
2697 grep -v '^ *+' conftest.er1 >conftest.err
2698 rm -f conftest.er1
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_try") 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002722 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002723else
2724 echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002729
Reid Spencera773bd52006-08-04 18:18:08 +00002730rm -f core conftest.err conftest.$ac_objext
2731 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732done
Reid Spencera773bd52006-08-04 18:18:08 +00002733rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002734CC=$ac_save_CC
2735
2736fi
Reid Spencera773bd52006-08-04 18:18:08 +00002737# AC_CACHE_VAL
2738case "x$ac_cv_prog_cc_c89" in
2739 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740 { echo "$as_me:$LINENO: result: none needed" >&5
2741echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002742 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743 { echo "$as_me:$LINENO: result: unsupported" >&5
2744echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002746 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749esac
2750
John Criswell0c38eaf2003-09-10 15:17:25 +00002751
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002752ac_ext=c
2753ac_cpp='$CPP $CPPFLAGS'
2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757
Eric Christopherffee5722011-09-16 20:36:25 +00002758ac_ext=cpp
2759ac_cpp='$CXXCPP $CPPFLAGS'
2760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763if test -z "$CXX"; then
2764 if test -n "$CCC"; then
2765 CXX=$CCC
2766 else
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in clang++ llvm-g++ g++
2769 do
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774if test "${ac_cv_prog_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 if test -n "$CXX"; then
2778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
2793IFS=$as_save_IFS
2794
2795fi
2796fi
2797CXX=$ac_cv_prog_CXX
2798if test -n "$CXX"; then
2799 { echo "$as_me:$LINENO: result: $CXX" >&5
2800echo "${ECHO_T}$CXX" >&6; }
2801else
2802 { echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6; }
2804fi
2805
2806
2807 test -n "$CXX" && break
2808 done
2809fi
2810if test -z "$CXX"; then
2811 ac_ct_CXX=$CXX
2812 for ac_prog in clang++ llvm-g++ g++
2813do
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815set dummy $ac_prog; ac_word=$2
2816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820else
2821 if test -n "$ac_ct_CXX"; then
2822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CXX="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835done
2836done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842if test -n "$ac_ct_CXX"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844echo "${ECHO_T}$ac_ct_CXX" >&6; }
2845else
2846 { echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6; }
2848fi
2849
2850
2851 test -n "$ac_ct_CXX" && break
2852done
2853
2854 if test "x$ac_ct_CXX" = x; then
2855 CXX="g++"
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858yes:)
2859{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860whose name does not start with the host triplet. If you think this
2861configuration is useful to you, please write to autoconf@gnu.org." >&5
2862echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863whose name does not start with the host triplet. If you think this
2864configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865ac_tool_warned=yes ;;
2866esac
2867 CXX=$ac_ct_CXX
2868 fi
2869fi
2870
2871 fi
2872fi
2873# Provide some information about the compiler.
2874echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875ac_compiler=`set X $ac_compile; echo $2`
2876{ (ac_try="$ac_compiler --version >&5"
2877case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
2881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler --version >&5") 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886{ (ac_try="$ac_compiler -v >&5"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -v >&5") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896{ (ac_try="$ac_compiler -V >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -V >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906
2907{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912 cat >conftest.$ac_ext <<_ACEOF
2913/* confdefs.h. */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h. */
2918
2919int
2920main ()
2921{
2922#ifndef __GNUC__
2923 choke me
2924#endif
2925
2926 ;
2927 return 0;
2928}
2929_ACEOF
2930rm -f conftest.$ac_objext
2931if { (ac_try="$ac_compile"
2932case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935esac
2936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 ac_compiler_gnu=yes
2965else
2966 echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 ac_compiler_gnu=no
2970fi
2971
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974
2975fi
2976{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978GXX=`test $ac_compiler_gnu = yes && echo yes`
2979ac_test_CXXFLAGS=${CXXFLAGS+set}
2980ac_save_CXXFLAGS=$CXXFLAGS
2981{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983if test "${ac_cv_prog_cxx_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985else
2986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987 ac_cxx_werror_flag=yes
2988 ac_cv_prog_cxx_g=no
2989 CXXFLAGS="-g"
2990 cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h. */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h. */
2996
2997int
2998main ()
2999{
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
3006if { (ac_try="$ac_compile"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cxx_g=yes
3040else
3041 echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 CXXFLAGS=""
3045 cat >conftest.$ac_ext <<_ACEOF
3046/* confdefs.h. */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h. */
3051
3052int
3053main ()
3054{
3055
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060rm -f conftest.$ac_objext
3061if { (ac_try="$ac_compile"
3062case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 :
3095else
3096 echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3100 CXXFLAGS="-g"
3101 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107
3108int
3109main ()
3110{
3111
3112 ;
3113 return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext
3117if { (ac_try="$ac_compile"
3118case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cxx_g=yes
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155
3156fi
3157
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160
3161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162fi
3163
3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166fi
3167{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169if test "$ac_test_CXXFLAGS" = set; then
3170 CXXFLAGS=$ac_save_CXXFLAGS
3171elif test $ac_cv_prog_cxx_g = yes; then
3172 if test "$GXX" = yes; then
3173 CXXFLAGS="-g -O2"
3174 else
3175 CXXFLAGS="-g"
3176 fi
3177else
3178 if test "$GXX" = yes; then
3179 CXXFLAGS="-O2"
3180 else
3181 CXXFLAGS=
3182 fi
3183fi
3184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003189
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003190ac_ext=c
3191ac_cpp='$CPP $CPPFLAGS'
3192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003195{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197# On Suns, sometimes $CPP names a directory.
3198if test -n "$CPP" && test -d "$CPP"; then
3199 CPP=
3200fi
3201if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003204else
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207 do
3208 ac_preproc_ok=false
3209for ac_c_preproc_warn_flag in '' yes
3210do
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217 cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222/* end confdefs.h. */
3223#ifdef __STDC__
3224# include <limits.h>
3225#else
3226# include <assert.h>
3227#endif
3228 Syntax error
3229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230if { (ac_try="$ac_cpp conftest.$ac_ext"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null; then
3243 if test -s conftest.err; then
3244 ac_cpp_err=$ac_c_preproc_warn_flag
3245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246 else
3247 ac_cpp_err=
3248 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003250 ac_cpp_err=yes
3251fi
3252if test -z "$ac_cpp_err"; then
3253 :
3254else
3255 echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258 # Broken: fails on valid input.
3259continue
3260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003261
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262rm -f conftest.err conftest.$ac_ext
3263
Reid Spencera773bd52006-08-04 18:18:08 +00003264 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003266 cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271/* end confdefs.h. */
3272#include <ac_nonexistent.h>
3273_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003274if { (ac_try="$ac_cpp conftest.$ac_ext"
3275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290 else
3291 ac_cpp_err=
3292 fi
3293else
3294 ac_cpp_err=yes
3295fi
3296if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297 # Broken: success on invalid input.
3298continue
3299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003300 echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303 # Passes both tests.
3304ac_preproc_ok=:
3305break
3306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003307
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308rm -f conftest.err conftest.$ac_ext
3309
3310done
3311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003313if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 break
3315fi
3316
3317 done
3318 ac_cv_prog_CPP=$CPP
3319
3320fi
3321 CPP=$ac_cv_prog_CPP
3322else
3323 ac_cv_prog_CPP=$CPP
3324fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003325{ echo "$as_me:$LINENO: result: $CPP" >&5
3326echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327ac_preproc_ok=false
3328for ac_c_preproc_warn_flag in '' yes
3329do
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003336 cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341/* end confdefs.h. */
3342#ifdef __STDC__
3343# include <limits.h>
3344#else
3345# include <assert.h>
3346#endif
3347 Syntax error
3348_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003349if { (ac_try="$ac_cpp conftest.$ac_ext"
3350case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365 else
3366 ac_cpp_err=
3367 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369 ac_cpp_err=yes
3370fi
3371if test -z "$ac_cpp_err"; then
3372 :
3373else
3374 echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377 # Broken: fails on valid input.
3378continue
3379fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381rm -f conftest.err conftest.$ac_ext
3382
Reid Spencera773bd52006-08-04 18:18:08 +00003383 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385 cat >conftest.$ac_ext <<_ACEOF
3386/* confdefs.h. */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390/* end confdefs.h. */
3391#include <ac_nonexistent.h>
3392_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393if { (ac_try="$ac_cpp conftest.$ac_ext"
3394case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409 else
3410 ac_cpp_err=
3411 fi
3412else
3413 ac_cpp_err=yes
3414fi
3415if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003416 # Broken: success on invalid input.
3417continue
3418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422 # Passes both tests.
3423ac_preproc_ok=:
3424break
3425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427rm -f conftest.err conftest.$ac_ext
3428
3429done
3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003432if $ac_preproc_ok; then
3433 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436See \`config.log' for more details." >&5
3437echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440fi
3441
John Criswell7a73b802003-06-30 21:59:07 +00003442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
John Criswell7a73b802003-06-30 21:59:07 +00003448
Eric Christopherffee5722011-09-16 20:36:25 +00003449
3450
3451if test -d ${srcdir}/projects/llvm-gcc ; then
3452 subdirs="$subdirs projects/llvm-gcc"
3453
3454fi
3455
3456if test -d ${srcdir}/projects/test-suite ; then
3457 subdirs="$subdirs projects/test-suite"
3458
3459fi
3460
3461if test -d ${srcdir}/projects/llvm-test ; then
3462 subdirs="$subdirs projects/llvm-test"
3463
3464fi
3465
3466if test -d ${srcdir}/projects/poolalloc ; then
3467 subdirs="$subdirs projects/poolalloc"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472 subdirs="$subdirs projects/llvm-poolalloc"
3473
3474fi
3475
3476for i in `ls ${srcdir}/projects`
3477do
3478 if test -d ${srcdir}/projects/${i} ; then
3479 case ${i} in
3480 sample) subdirs="$subdirs projects/sample"
3481 ;;
3482 privbracket) subdirs="$subdirs projects/privbracket"
3483 ;;
3484 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3485 ;;
3486 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3487;;
3488 llvm-java) subdirs="$subdirs projects/llvm-java"
3489 ;;
3490 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3491 ;;
3492 safecode) subdirs="$subdirs projects/safecode"
3493 ;;
3494 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3495 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003496 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003497 llvm-gcc) ;;
3498 test-suite) ;;
3499 llvm-test) ;;
3500 poolalloc) ;;
3501 llvm-poolalloc) ;;
3502 *)
3503 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3505 ;;
3506 esac
3507 fi
3508done
3509
3510# Check whether --enable-polly was given.
3511if test "${enable_polly+set}" = set; then
3512 enableval=$enable_polly;
3513else
3514 enableval=default
3515fi
3516
3517case "$enableval" in
3518 yes) ENABLE_POLLY=1
3519 ;;
3520 no) ENABLE_POLLY=0
3521 ;;
3522 default) ENABLE_POLLY=1
3523 ;;
3524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526 { (exit 1); exit 1; }; } ;;
3527esac
3528
3529
3530if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3531 LLVM_HAS_POLLY=1
3532
3533 subdirs="$subdirs tools/polly"
3534
3535fi
3536
3537
3538# Make sure we can run config.sub.
3539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542 { (exit 1); exit 1; }; }
3543
3544{ echo "$as_me:$LINENO: checking build system type" >&5
3545echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546if test "${ac_cv_build+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 ac_build_alias=$build_alias
3550test "x$ac_build_alias" = x &&
3551 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552test "x$ac_build_alias" = x &&
3553 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555 { (exit 1); exit 1; }; }
3556ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559 { (exit 1); exit 1; }; }
3560
3561fi
3562{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563echo "${ECHO_T}$ac_cv_build" >&6; }
3564case $ac_cv_build in
3565*-*-*) ;;
3566*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567echo "$as_me: error: invalid value of canonical build" >&2;}
3568 { (exit 1); exit 1; }; };;
3569esac
3570build=$ac_cv_build
3571ac_save_IFS=$IFS; IFS='-'
3572set x $ac_cv_build
3573shift
3574build_cpu=$1
3575build_vendor=$2
3576shift; shift
3577# Remember, the first character of IFS is used to create $*,
3578# except with old shells:
3579build_os=$*
3580IFS=$ac_save_IFS
3581case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3582
3583
3584{ echo "$as_me:$LINENO: checking host system type" >&5
3585echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586if test "${ac_cv_host+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 if test "x$host_alias" = x; then
3590 ac_cv_host=$ac_cv_build
3591else
3592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595 { (exit 1); exit 1; }; }
3596fi
3597
3598fi
3599{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600echo "${ECHO_T}$ac_cv_host" >&6; }
3601case $ac_cv_host in
3602*-*-*) ;;
3603*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604echo "$as_me: error: invalid value of canonical host" >&2;}
3605 { (exit 1); exit 1; }; };;
3606esac
3607host=$ac_cv_host
3608ac_save_IFS=$IFS; IFS='-'
3609set x $ac_cv_host
3610shift
3611host_cpu=$1
3612host_vendor=$2
3613shift; shift
3614# Remember, the first character of IFS is used to create $*,
3615# except with old shells:
3616host_os=$*
3617IFS=$ac_save_IFS
3618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
3621{ echo "$as_me:$LINENO: checking target system type" >&5
3622echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623if test "${ac_cv_target+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626 if test "x$target_alias" = x; then
3627 ac_cv_target=$ac_cv_host
3628else
3629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632 { (exit 1); exit 1; }; }
3633fi
3634
3635fi
3636{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637echo "${ECHO_T}$ac_cv_target" >&6; }
3638case $ac_cv_target in
3639*-*-*) ;;
3640*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641echo "$as_me: error: invalid value of canonical target" >&2;}
3642 { (exit 1); exit 1; }; };;
3643esac
3644target=$ac_cv_target
3645ac_save_IFS=$IFS; IFS='-'
3646set x $ac_cv_target
3647shift
3648target_cpu=$1
3649target_vendor=$2
3650shift; shift
3651# Remember, the first character of IFS is used to create $*,
3652# except with old shells:
3653target_os=$*
3654IFS=$ac_save_IFS
3655case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3656
3657
3658# The aliases save the names the user supplied, while $host etc.
3659# will get canonicalized.
3660test -n "$target_alias" &&
3661 test "$program_prefix$program_suffix$program_transform_name" = \
3662 NONENONEs,x,x, &&
3663 program_prefix=${target_alias}-
3664
3665{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667if test "${llvm_cv_os_type+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
3670 case $host in
3671 *-*-aix*)
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="AIX"
3675 llvm_cv_platform_type="Unix" ;;
3676 *-*-irix*)
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="IRIX"
3680 llvm_cv_platform_type="Unix" ;;
3681 *-*-cygwin*)
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Cygwin"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-darwin*)
3687 llvm_cv_link_all_option="-Wl,-all_load"
3688 llvm_cv_no_link_all_option="-Wl,-noall_load"
3689 llvm_cv_os_type="Darwin"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-minix*)
3692 llvm_cv_link_all_option="-Wl,-all_load"
3693 llvm_cv_no_link_all_option="-Wl,-noall_load"
3694 llvm_cv_os_type="Minix"
3695 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003696 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="FreeBSD"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-openbsd*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="OpenBSD"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-netbsd*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="NetBSD"
3710 llvm_cv_platform_type="Unix" ;;
3711 *-*-dragonfly*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="DragonFly"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-hpux*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="HP-UX"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-interix*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Interix"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-linux*)
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="Linux"
3730 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003731 *-*-gnu*)
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="GNU"
3735 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003736 *-*-solaris*)
3737 llvm_cv_link_all_option="-Wl,-z,allextract"
3738 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3739 llvm_cv_os_type="SunOS"
3740 llvm_cv_platform_type="Unix" ;;
3741 *-*-auroraux*)
3742 llvm_cv_link_all_option="-Wl,-z,allextract"
3743 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3744 llvm_cv_os_type="AuroraUX"
3745 llvm_cv_platform_type="Unix" ;;
3746 *-*-win32*)
3747 llvm_cv_link_all_option="-Wl,--whole-archive"
3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749 llvm_cv_os_type="Win32"
3750 llvm_cv_platform_type="Win32" ;;
3751 *-*-mingw*)
3752 llvm_cv_link_all_option="-Wl,--whole-archive"
3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754 llvm_cv_os_type="MingW"
3755 llvm_cv_platform_type="Win32" ;;
3756 *-*-haiku*)
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Haiku"
3760 llvm_cv_platform_type="Unix" ;;
3761 *-unknown-eabi*)
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="Freestanding"
3765 llvm_cv_platform_type="Unix" ;;
3766 *-unknown-elf*)
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Freestanding"
3770 llvm_cv_platform_type="Unix" ;;
3771 *)
3772 llvm_cv_link_all_option=""
3773 llvm_cv_no_link_all_option=""
3774 llvm_cv_os_type="Unknown"
3775 llvm_cv_platform_type="Unknown" ;;
3776esac
3777fi
3778{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3779echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3780
3781{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3782echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3783if test "${llvm_cv_target_os_type+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786 case $target in
3787 *-*-aix*)
3788 llvm_cv_target_os_type="AIX" ;;
3789 *-*-irix*)
3790 llvm_cv_target_os_type="IRIX" ;;
3791 *-*-cygwin*)
3792 llvm_cv_target_os_type="Cygwin" ;;
3793 *-*-darwin*)
3794 llvm_cv_target_os_type="Darwin" ;;
3795 *-*-minix*)
3796 llvm_cv_target_os_type="Minix" ;;
3797 *-*-freebsd*)
3798 llvm_cv_target_os_type="FreeBSD" ;;
3799 *-*-openbsd*)
3800 llvm_cv_target_os_type="OpenBSD" ;;
3801 *-*-netbsd*)
3802 llvm_cv_target_os_type="NetBSD" ;;
3803 *-*-dragonfly*)
3804 llvm_cv_target_os_type="DragonFly" ;;
3805 *-*-hpux*)
3806 llvm_cv_target_os_type="HP-UX" ;;
3807 *-*-interix*)
3808 llvm_cv_target_os_type="Interix" ;;
3809 *-*-linux*)
3810 llvm_cv_target_os_type="Linux" ;;
3811 *-*-solaris*)
3812 llvm_cv_target_os_type="SunOS" ;;
3813 *-*-auroraux*)
3814 llvm_cv_target_os_type="AuroraUX" ;;
3815 *-*-win32*)
3816 llvm_cv_target_os_type="Win32" ;;
3817 *-*-mingw*)
3818 llvm_cv_target_os_type="MingW" ;;
3819 *-*-haiku*)
3820 llvm_cv_target_os_type="Haiku" ;;
3821 *-*-rtems*)
3822 llvm_cv_target_os_type="RTEMS" ;;
3823 *-*-nacl*)
3824 llvm_cv_target_os_type="NativeClient" ;;
3825 *-unknown-eabi*)
3826 llvm_cv_target_os_type="Freestanding" ;;
3827 *)
3828 llvm_cv_target_os_type="Unknown" ;;
3829esac
3830fi
3831{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3832echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3833
3834if test "$llvm_cv_os_type" = "Unknown" ; then
3835 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3836echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3837 { (exit 1); exit 1; }; }
3838fi
3839
3840OS=$llvm_cv_os_type
3841
3842HOST_OS=$llvm_cv_os_type
3843
3844TARGET_OS=$llvm_cv_target_os_type
3845
3846
3847LINKALL=$llvm_cv_link_all_option
3848
3849NOLINKALL=$llvm_cv_no_link_all_option
3850
3851
3852case $llvm_cv_platform_type in
3853 Unix)
3854
3855cat >>confdefs.h <<\_ACEOF
3856#define LLVM_ON_UNIX 1
3857_ACEOF
3858
3859 LLVM_ON_UNIX=1
3860
3861 LLVM_ON_WIN32=0
3862
3863 ;;
3864 Win32)
3865
3866cat >>confdefs.h <<\_ACEOF
3867#define LLVM_ON_WIN32 1
3868_ACEOF
3869
3870 LLVM_ON_UNIX=0
3871
3872 LLVM_ON_WIN32=1
3873
3874 ;;
3875esac
3876
3877{ echo "$as_me:$LINENO: checking target architecture" >&5
3878echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3879if test "${llvm_cv_target_arch+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 case $target in
3883 i?86-*) llvm_cv_target_arch="x86" ;;
3884 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3885 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3886 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003887 arm*-*) llvm_cv_target_arch="ARM" ;;
3888 mips-*) llvm_cv_target_arch="Mips" ;;
3889 xcore-*) llvm_cv_target_arch="XCore" ;;
3890 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003891 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003892 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3893 ptx-*) llvm_cv_target_arch="PTX" ;;
3894 *) llvm_cv_target_arch="Unknown" ;;
3895esac
3896fi
3897{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3898echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3899
3900if test "$llvm_cv_target_arch" = "Unknown" ; then
3901 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3902echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3903fi
3904
3905# Determine the LLVM native architecture for the target
3906case "$llvm_cv_target_arch" in
3907 x86) LLVM_NATIVE_ARCH="X86" ;;
3908 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3909 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3910esac
3911
3912ARCH=$llvm_cv_target_arch
3913
3914
3915
3916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003917{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3918echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3919if test "${ac_cv_path_GREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922 # Extract the first word of "grep ggrep" to use in msg output
3923if test -z "$GREP"; then
3924set dummy grep ggrep; ac_prog_name=$2
3925if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
Reid Spencera773bd52006-08-04 18:18:08 +00003928 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003929# Loop through the user's path and test for each of PROGNAME-LIST
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003931for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003935 for ac_prog in grep ggrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3939 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003940 # Check for GNU $ac_path_GREP
3941case `"$ac_path_GREP" --version 2>&1` in
3942*GNU*)
3943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3944*)
3945 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003947 while :
3948 do
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003952 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003955 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_GREP="$ac_path_GREP"
3959 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003960 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3963 done
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965esac
3966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003967
3968 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003969 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003970done
3971
3972done
Reid Spencera773bd52006-08-04 18:18:08 +00003973IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003974
3975
3976fi
3977
3978GREP="$ac_cv_path_GREP"
3979if test -z "$GREP"; then
3980 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3981echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3982 { (exit 1); exit 1; }; }
3983fi
3984
Reid Spencera773bd52006-08-04 18:18:08 +00003985else
3986 ac_cv_path_GREP=$GREP
3987fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989
Reid Spencera773bd52006-08-04 18:18:08 +00003990fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003991{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3992echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003993 GREP="$ac_cv_path_GREP"
3994
3995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003996{ echo "$as_me:$LINENO: checking for egrep" >&5
3997echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3998if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004000else
4001 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002 then ac_cv_path_EGREP="$GREP -E"
4003 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004004 # Extract the first word of "egrep" to use in msg output
4005if test -z "$EGREP"; then
4006set dummy egrep; ac_prog_name=$2
4007if test "${ac_cv_path_EGREP+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
Reid Spencera773bd52006-08-04 18:18:08 +00004010 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004011# Loop through the user's path and test for each of PROGNAME-LIST
4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004013for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4014do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004017 for ac_prog in egrep; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4021 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004022 # Check for GNU $ac_path_EGREP
4023case `"$ac_path_EGREP" --version 2>&1` in
4024*GNU*)
4025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4026*)
4027 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004029 while :
4030 do
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004037 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_EGREP="$ac_path_EGREP"
4041 ac_path_EGREP_max=$ac_count
4042 fi
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4045 done
4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047esac
4048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004049
4050 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004051 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004052done
4053
4054done
Reid Spencera773bd52006-08-04 18:18:08 +00004055IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004056
4057
4058fi
4059
4060EGREP="$ac_cv_path_EGREP"
4061if test -z "$EGREP"; then
4062 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4063echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4064 { (exit 1); exit 1; }; }
4065fi
4066
Reid Spencera773bd52006-08-04 18:18:08 +00004067else
4068 ac_cv_path_EGREP=$EGREP
4069fi
4070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004071
Reid Spencera773bd52006-08-04 18:18:08 +00004072 fi
4073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004074{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4075echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004076 EGREP="$ac_cv_path_EGREP"
4077
4078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004079{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4081if test "${ac_cv_header_stdc+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084 cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h. */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004089/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004090#include <stdlib.h>
4091#include <stdarg.h>
4092#include <string.h>
4093#include <float.h>
4094
John Criswell0c38eaf2003-09-10 15:17:25 +00004095int
4096main ()
4097{
4098
4099 ;
4100 return 0;
4101}
John Criswell7a73b802003-06-30 21:59:07 +00004102_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004103rm -f conftest.$ac_objext
4104if { (ac_try="$ac_compile"
4105case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108esac
4109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4118 { (case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_try") 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; } &&
4127 { ac_try='test -s conftest.$ac_objext'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131esac
4132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004137 ac_cv_header_stdc=yes
4138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004139 echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004144
Reid Spencera773bd52006-08-04 18:18:08 +00004145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004146
4147if test $ac_cv_header_stdc = yes; then
4148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004149 cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004154/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004155#include <string.h>
4156
4157_ACEOF
4158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159 $EGREP "memchr" >/dev/null 2>&1; then
4160 :
John Criswell7a73b802003-06-30 21:59:07 +00004161else
4162 ac_cv_header_stdc=no
4163fi
4164rm -f conftest*
4165
4166fi
4167
4168if test $ac_cv_header_stdc = yes; then
4169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004170 cat >conftest.$ac_ext <<_ACEOF
4171/* confdefs.h. */
4172_ACEOF
4173cat confdefs.h >>conftest.$ac_ext
4174cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004175/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004176#include <stdlib.h>
4177
4178_ACEOF
4179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004180 $EGREP "free" >/dev/null 2>&1; then
4181 :
John Criswell7a73b802003-06-30 21:59:07 +00004182else
4183 ac_cv_header_stdc=no
4184fi
4185rm -f conftest*
4186
4187fi
4188
4189if test $ac_cv_header_stdc = yes; then
4190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004191 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004192 :
4193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194 cat >conftest.$ac_ext <<_ACEOF
4195/* confdefs.h. */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004200#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004201#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004202#if ((' ' & 0x0FF) == 0x020)
4203# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4204# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4205#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004206# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004207 (('a' <= (c) && (c) <= 'i') \
4208 || ('j' <= (c) && (c) <= 'r') \
4209 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004210# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211#endif
4212
4213#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4214int
4215main ()
4216{
4217 int i;
4218 for (i = 0; i < 256; i++)
4219 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004220 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004221 return 2;
4222 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004223}
4224_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004225rm -f conftest$ac_exeext
4226if { (ac_try="$ac_link"
4227case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_link") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 :
John Criswell7a73b802003-06-30 21:59:07 +00004246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004247 echo "$as_me: program exited with status $ac_status" >&5
4248echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251( exit $ac_status )
4252ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004254rm -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 +00004255fi
4256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257
John Criswell7a73b802003-06-30 21:59:07 +00004258fi
4259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004260{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4261echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004262if test $ac_cv_header_stdc = yes; then
4263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004264cat >>confdefs.h <<\_ACEOF
4265#define STDC_HEADERS 1
4266_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004267
4268fi
4269
Reid Spencera773bd52006-08-04 18:18:08 +00004270# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004271
4272
4273
4274
4275
4276
4277
4278
4279
Reid Spencera773bd52006-08-04 18:18:08 +00004280for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4281 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282do
4283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4284{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289 cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h. */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h. */
4295$ac_includes_default
4296
4297#include <$ac_header>
4298_ACEOF
4299rm -f conftest.$ac_objext
4300if { (ac_try="$ac_compile"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_compile") 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; } &&
4323 { ac_try='test -s conftest.$ac_objext'
4324 { (case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_try") 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 eval "$as_ac_Header=yes"
4334else
4335 echo "$as_me: failed program was:" >&5
4336sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 eval "$as_ac_Header=no"
4339fi
4340
4341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342fi
4343ac_res=`eval echo '${'$as_ac_Header'}'`
4344 { echo "$as_me:$LINENO: result: $ac_res" >&5
4345echo "${ECHO_T}$ac_res" >&6; }
4346if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004347 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004349_ACEOF
4350
4351fi
4352
4353done
4354
4355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4357echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4358if test "${ac_cv_c_bigendian+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004361 # See if sys/param.h defines the BYTE_ORDER macro.
4362cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004364_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004367/* end confdefs.h. */
4368#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004369#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004370
4371int
4372main ()
4373{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4375 bogus endian macros
4376#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004377
4378 ;
4379 return 0;
4380}
4381_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004382rm -f conftest.$ac_objext
4383if { (ac_try="$ac_compile"
4384case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387esac
4388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_compile") 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4397 { (case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400esac
4401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_try") 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest.$ac_objext'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410esac
4411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004416 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417cat >conftest.$ac_ext <<_ACEOF
4418/* confdefs.h. */
4419_ACEOF
4420cat confdefs.h >>conftest.$ac_ext
4421cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004422/* end confdefs.h. */
4423#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004425
4426int
4427main ()
4428{
4429#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004430 not big endian
4431#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004432
4433 ;
4434 return 0;
4435}
4436_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004437rm -f conftest.$ac_objext
4438if { (ac_try="$ac_compile"
4439case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442esac
4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_compile") 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4452 { (case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455esac
4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_try") 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; } &&
4461 { ac_try='test -s conftest.$ac_objext'
4462 { (case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465esac
4466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_try") 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004471 ac_cv_c_bigendian=yes
4472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004473 echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004476 ac_cv_c_bigendian=no
4477fi
4478
4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480else
4481 echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 # It does not; compile a test program.
4485if test "$cross_compiling" = yes; then
4486 # try to guess the endianness by grepping values into an object file
4487 ac_cv_c_bigendian=unknown
4488 cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h. */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h. */
4494short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4495short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4496void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4497short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4498short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4499void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004500int
4501main ()
4502{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004503 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004504 ;
4505 return 0;
4506}
4507_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508rm -f conftest.$ac_objext
4509if { (ac_try="$ac_compile"
4510case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
4514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4515 (eval "$ac_compile") 2>conftest.er1
4516 ac_status=$?
4517 grep -v '^ *+' conftest.er1 >conftest.err
4518 rm -f conftest.er1
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523 { (case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
4527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_try") 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536esac
4537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_try") 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004543 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004544fi
4545if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4546 if test "$ac_cv_c_bigendian" = unknown; then
4547 ac_cv_c_bigendian=no
4548 else
4549 # finding both strings is unlikely to happen, but who knows?
4550 ac_cv_c_bigendian=unknown
4551 fi
4552fi
Reid Spencera773bd52006-08-04 18:18:08 +00004553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554 echo "$as_me: failed program was:" >&5
4555sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004557
Torok Edwin871384f2010-01-26 08:50:50 +00004558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004559
Reid Spencera773bd52006-08-04 18:18:08 +00004560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562 cat >conftest.$ac_ext <<_ACEOF
4563/* confdefs.h. */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004567/* end confdefs.h. */
4568$ac_includes_default
4569int
4570main ()
4571{
4572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573 /* Are we little or big endian? From Harbison&Steele. */
4574 union
4575 {
4576 long int l;
4577 char c[sizeof (long int)];
4578 } u;
4579 u.l = 1;
4580 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004581
4582 ;
4583 return 0;
4584}
4585_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004586rm -f conftest$ac_exeext
4587if { (ac_try="$ac_link"
4588case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_link") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4597 { (case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600esac
4601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_try") 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004606 ac_cv_c_bigendian=no
4607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608 echo "$as_me: program exited with status $ac_status" >&5
4609echo "$as_me: failed program was:" >&5
4610sed 's/^/| /' conftest.$ac_ext >&5
4611
4612( exit $ac_status )
4613ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004615rm -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 +00004616fi
4617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618
Reid Spencera773bd52006-08-04 18:18:08 +00004619fi
4620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622fi
4623{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4624echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4625case $ac_cv_c_bigendian in
4626 yes)
4627 ENDIAN=big
4628 ;;
4629 no)
4630 ENDIAN=little
4631 ;;
4632 *)
4633 { { echo "$as_me:$LINENO: error: unknown endianness
4634presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4635echo "$as_me: error: unknown endianness
4636presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4637 { (exit 1); exit 1; }; } ;;
4638esac
Reid Spencera773bd52006-08-04 18:18:08 +00004639
4640
4641if test "$cross_compiling" = yes; then
4642 LLVM_CROSS_COMPILING=1
4643
4644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004645{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4646echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4647if test "${ac_cv_build_exeext+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004649else
4650 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4651 ac_cv_build_exeext=.exe
4652else
4653 ac_build_prefix=${build_alias}-
4654
4655 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4656set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004661else
4662 if test -n "$BUILD_CC"; then
4663 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 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 +00004672 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004674 break 2
4675 fi
4676done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677done
Reid Spencera773bd52006-08-04 18:18:08 +00004678IFS=$as_save_IFS
4679
4680fi
4681fi
4682BUILD_CC=$ac_cv_prog_BUILD_CC
4683if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004684 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004686else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687 { echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004689fi
4690
4691
4692 if test -z "$BUILD_CC"; then
4693 # Extract the first word of "gcc", so it can be a program name with args.
4694set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004699else
4700 if test -n "$BUILD_CC"; then
4701 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 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 +00004710 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004712 break 2
4713 fi
4714done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715done
Reid Spencera773bd52006-08-04 18:18:08 +00004716IFS=$as_save_IFS
4717
4718fi
4719fi
4720BUILD_CC=$ac_cv_prog_BUILD_CC
4721if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004722 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4723echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004725 { echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004727fi
4728
4729
4730 if test -z "$BUILD_CC"; then
4731 # Extract the first word of "cc", so it can be a program name with args.
4732set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004737else
4738 if test -n "$BUILD_CC"; then
4739 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4740else
4741 ac_prog_rejected=no
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 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 +00004749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4750 ac_prog_rejected=yes
4751 continue
4752 fi
4753 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004755 break 2
4756 fi
4757done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004758done
Reid Spencera773bd52006-08-04 18:18:08 +00004759IFS=$as_save_IFS
4760
4761if test $ac_prog_rejected = yes; then
4762 # We found a bogon in the path, so make sure we never use it.
4763 set dummy $ac_cv_prog_BUILD_CC
4764 shift
4765 if test $# != 0; then
4766 # We chose a different compiler from the bogus one.
4767 # However, it has the same basename, so the bogon will be chosen
4768 # first if we set BUILD_CC to just the basename; use the full file name.
4769 shift
4770 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4771 fi
4772fi
4773fi
4774fi
4775BUILD_CC=$ac_cv_prog_BUILD_CC
4776if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004777 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4778echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004780 { echo "$as_me:$LINENO: result: no" >&5
4781echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004782fi
4783
4784
4785 fi
4786 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4788echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4789 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004790 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4791 rm -f conftest*
4792 echo 'int main () { return 0; }' > conftest.$ac_ext
4793 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004794 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004795 (eval $ac_build_link) 2>&5
4796 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004799 for file in conftest.*; do
4800 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004801 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004802 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4803 esac
4804 done
4805 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004806 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4807echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4808 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004809 fi
4810 rm -f conftest*
4811 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4812fi
4813fi
4814
4815BUILD_EXEEXT=""
4816test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4818echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004819ac_build_exeext=$BUILD_EXEEXT
4820
Jim Grosbach673612e2008-10-02 22:56:44 +00004821 ac_build_prefix=${build_alias}-
4822 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4823set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004828else
4829 if test -n "$BUILD_CXX"; then
4830 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4831else
4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 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 +00004839 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004841 break 2
4842 fi
4843done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004844done
Jim Grosbach673612e2008-10-02 22:56:44 +00004845IFS=$as_save_IFS
4846
4847fi
4848fi
4849BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004851 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854 { echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004856fi
4857
4858
4859 if test -z "$BUILD_CXX"; then
4860 # Extract the first word of "g++", so it can be a program name with args.
4861set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004866else
4867 if test -n "$BUILD_CXX"; then
4868 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 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 +00004877 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004879 break 2
4880 fi
4881done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004882done
Jim Grosbach673612e2008-10-02 22:56:44 +00004883IFS=$as_save_IFS
4884
4885fi
4886fi
4887BUILD_CXX=$ac_cv_prog_BUILD_CXX
4888if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004889 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4890echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004892 { echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004894fi
4895
4896
4897 if test -z "$BUILD_CXX"; then
4898 # Extract the first word of "c++", so it can be a program name with args.
4899set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004904else
4905 if test -n "$BUILD_CXX"; then
4906 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4907else
4908 ac_prog_rejected=no
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 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 +00004916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4917 ac_prog_rejected=yes
4918 continue
4919 fi
4920 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004922 break 2
4923 fi
4924done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004925done
Jim Grosbach673612e2008-10-02 22:56:44 +00004926IFS=$as_save_IFS
4927
4928if test $ac_prog_rejected = yes; then
4929 # We found a bogon in the path, so make sure we never use it.
4930 set dummy $ac_cv_prog_BUILD_CXX
4931 shift
4932 if test $# != 0; then
4933 # We chose a different compiler from the bogus one.
4934 # However, it has the same basename, so the bogon will be chosen
4935 # first if we set BUILD_CXX to just the basename; use the full file name.
4936 shift
4937 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4938 fi
4939fi
4940fi
4941fi
4942BUILD_CXX=$ac_cv_prog_BUILD_CXX
4943if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004944 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4945echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004946else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004947 { echo "$as_me:$LINENO: result: no" >&5
4948echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004949fi
4950
4951
4952 fi
4953 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004954else
4955 LLVM_CROSS_COMPILING=0
4956
4957fi
4958
Dan Gohman56fb5f92010-08-04 16:25:01 +00004959if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004960 cvsbuild="yes"
4961 optimize="no"
4962 CVSBUILD=CVSBUILD=1
4963
4964else
4965 cvsbuild="no"
4966 optimize="yes"
4967fi
4968
4969
Eric Christopherbee515f2011-11-11 22:51:42 +00004970# Check whether --enable-libcpp was given.
4971if test "${enable_libcpp+set}" = set; then
4972 enableval=$enable_libcpp;
4973else
4974 enableval=default
4975fi
4976
4977case "$enableval" in
4978 yes) ENABLE_LIBCPP=1
4979 ;;
4980 no) ENABLE_LIBCPP=0
4981 ;;
4982 default) ENABLE_LIBCPP=0
4983;;
4984 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4985echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4986 { (exit 1); exit 1; }; } ;;
4987esac
4988
Reid Spencera773bd52006-08-04 18:18:08 +00004989# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004990if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004991 enableval=$enable_optimized;
4992else
4993 enableval=$optimize
4994fi
4995
4996if test ${enableval} = "no" ; then
4997 ENABLE_OPTIMIZED=
4998
4999else
5000 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5001
5002fi
5003
David Greene2a5a12c2009-04-17 14:50:39 +00005004# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005005if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005006 enableval=$enable_profiling;
5007else
5008 enableval="no"
5009fi
5010
5011if test ${enableval} = "no" ; then
5012 ENABLE_PROFILING=
5013
5014else
5015 ENABLE_PROFILING=ENABLE_PROFILING=1
5016
5017fi
5018
Reid Spencera773bd52006-08-04 18:18:08 +00005019# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005020if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005021 enableval=$enable_assertions;
5022else
5023 enableval="yes"
5024fi
5025
5026if test ${enableval} = "yes" ; then
5027 DISABLE_ASSERTIONS=
5028
5029else
5030 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5031
5032fi
5033
David Greenea696d242007-06-28 19:36:08 +00005034# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005035if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005036 enableval=$enable_expensive_checks;
5037else
5038 enableval="no"
5039fi
5040
5041if test ${enableval} = "yes" ; then
5042 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043
5044 EXPENSIVE_CHECKS=yes
5045
5046else
5047 ENABLE_EXPENSIVE_CHECKS=
5048
5049 EXPENSIVE_CHECKS=no
5050
5051fi
5052
Reid Spencer8b2e1412006-11-17 03:32:33 +00005053# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005054if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005055 enableval=$enable_debug_runtime;
5056else
5057 enableval=no
5058fi
5059
5060if test ${enableval} = "no" ; then
5061 DEBUG_RUNTIME=
5062
5063else
5064 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5065
5066fi
5067
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005068# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005069if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005070 enableval=$enable_debug_symbols;
5071else
5072 enableval=no
5073fi
5074
5075if test ${enableval} = "no" ; then
5076 DEBUG_SYMBOLS=
5077
5078else
5079 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5080
5081fi
5082
Reid Spencera773bd52006-08-04 18:18:08 +00005083# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005084if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005085 enableval=$enable_jit;
5086else
5087 enableval=default
5088fi
5089
5090if test ${enableval} = "no"
5091then
5092 JIT=
5093
5094else
5095 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005096 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005097 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005098 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005099 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005100 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005101 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005102 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005103 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005104 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005105 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005106 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005107 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005108 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005109 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005110 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005111 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005112 Hexagon) TARGET_HAS_JIT=0
5113 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005114 MBlaze) TARGET_HAS_JIT=0
5115 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005116 PTX) TARGET_HAS_JIT=0
5117 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005118 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005119 ;;
5120 esac
5121fi
5122
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005123# Check whether --enable-docs was given.
5124if test "${enable_docs+set}" = set; then
5125 enableval=$enable_docs;
5126else
5127 enableval=default
5128fi
5129
5130case "$enableval" in
5131 yes) ENABLE_DOCS=1
5132 ;;
5133 no) ENABLE_DOCS=0
5134 ;;
5135 default) ENABLE_DOCS=1
5136 ;;
5137 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5138echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5140esac
5141
Reid Spencera773bd52006-08-04 18:18:08 +00005142# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005143if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005144 enableval=$enable_doxygen;
5145else
5146 enableval=default
5147fi
5148
5149case "$enableval" in
5150 yes) ENABLE_DOXYGEN=1
5151 ;;
5152 no) ENABLE_DOXYGEN=0
5153 ;;
5154 default) ENABLE_DOXYGEN=0
5155 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005156 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5157echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5158 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005159esac
5160
5161# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005162if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005163 enableval=$enable_threads;
5164else
Reid Spencer65c5d752006-11-05 17:08:18 +00005165 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005166fi
5167
5168case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005169 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005170 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005171 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005172 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005173 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005174 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5176echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005178esac
5179
Owen Andersona8603702009-05-19 22:18:56 +00005180cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005181#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005182_ACEOF
5183
5184
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005185# Check whether --enable-pthreads was given.
5186if test "${enable_pthreads+set}" = set; then
5187 enableval=$enable_pthreads;
5188else
5189 enableval=default
5190fi
5191
5192case "$enableval" in
5193 yes) ENABLE_PTHREADS=1
5194 ;;
5195 no) ENABLE_PTHREADS=0
5196 ;;
5197 default) ENABLE_PTHREADS=1
5198 ;;
5199 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5200echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5201 { (exit 1); exit 1; }; } ;;
5202esac
5203
Reid Spencer89b0d992006-12-16 22:07:52 +00005204# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005205if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005206 enableval=$enable_pic;
5207else
5208 enableval=default
5209fi
5210
5211case "$enableval" in
5212 yes) ENABLE_PIC=1
5213 ;;
5214 no) ENABLE_PIC=0
5215 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005216 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005217 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005218 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5219echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5220 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005221esac
5222
5223cat >>confdefs.h <<_ACEOF
5224#define ENABLE_PIC $ENABLE_PIC
5225_ACEOF
5226
5227
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005228# Check whether --enable-shared was given.
5229if test "${enable_shared+set}" = set; then
5230 enableval=$enable_shared;
5231else
5232 enableval=default
5233fi
5234
5235case "$enableval" in
5236 yes) ENABLE_SHARED=1
5237 ;;
5238 no) ENABLE_SHARED=0
5239 ;;
5240 default) ENABLE_SHARED=0
5241 ;;
5242 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5243echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5244 { (exit 1); exit 1; }; } ;;
5245esac
5246
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005247# Check whether --enable-embed-stdcxx was given.
5248if test "${enable_embed_stdcxx+set}" = set; then
5249 enableval=$enable_embed_stdcxx;
5250else
5251 enableval=default
5252fi
5253
5254case "$enableval" in
5255 yes) ENABLE_EMBED_STDCXX=1
5256 ;;
5257 no) ENABLE_EMBED_STDCXX=0
5258 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005259 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005260 ;;
5261 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5262echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5263 { (exit 1); exit 1; }; } ;;
5264esac
5265
Daniel Dunbardd464df2010-05-10 20:11:56 +00005266# Check whether --enable-timestamps was given.
5267if test "${enable_timestamps+set}" = set; then
5268 enableval=$enable_timestamps;
5269else
5270 enableval=default
5271fi
5272
5273case "$enableval" in
5274 yes) ENABLE_TIMESTAMPS=1
5275 ;;
5276 no) ENABLE_TIMESTAMPS=0
5277 ;;
5278 default) ENABLE_TIMESTAMPS=1
5279 ;;
5280 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5281echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5282 { (exit 1); exit 1; }; } ;;
5283esac
5284
5285cat >>confdefs.h <<_ACEOF
5286#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5287_ACEOF
5288
5289
Reid Spencera773bd52006-08-04 18:18:08 +00005290TARGETS_TO_BUILD=""
5291# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005292if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005293 enableval=$enable_targets;
5294else
5295 enableval=all
5296fi
5297
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005298if test "$enableval" = host-only ; then
5299 enableval=host
5300fi
Reid Spencera773bd52006-08-04 18:18:08 +00005301case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005302 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005303 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5304 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005305 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5306 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5308 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005309 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5310 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5311 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005312 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5313 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005314 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005315 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005316 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005317 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005318 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005319 host) case "$llvm_cv_target_arch" in
5320 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5321 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5322 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5323 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005324 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5325 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005326 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005327 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005328 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5329 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005330 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005331 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005332 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5333echo "$as_me: error: Can not set target to build" >&2;}
5334 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005335 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005336 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5337echo "$as_me: error: Unrecognized target $a_target" >&2;}
5338 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005339 esac
5340 done
5341 ;;
5342esac
Reid Spencera773bd52006-08-04 18:18:08 +00005343TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5344
5345
Douglas Gregor0711c302009-06-17 00:43:20 +00005346# Determine whether we are building LLVM support for the native architecture.
5347# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5348for a_target in $TARGETS_TO_BUILD; do
5349 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5350
5351cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005352#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5353_ACEOF
5354
5355 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5356 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005357 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005358 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005359 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5360 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5361 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005362
5363cat >>confdefs.h <<_ACEOF
5364#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005365_ACEOF
5366
5367
5368cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005369#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5370_ACEOF
5371
5372
5373cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005374#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005375_ACEOF
5376
5377
5378cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005379#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005380_ACEOF
5381
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005382 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005383
5384cat >>confdefs.h <<_ACEOF
5385#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5386_ACEOF
5387
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005388 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005389 fi
5390done
5391
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005392# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5393# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005394LLVM_ENUM_TARGETS=""
5395LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005396LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005397LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005398for target_to_build in $TARGETS_TO_BUILD; do
5399 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005400 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005401 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5402 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005403 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5404 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5405 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005406 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5407 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5408 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005409done
5410
5411
5412
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005413
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005414
Reid Spencer65c5d752006-11-05 17:08:18 +00005415# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005416if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005417 enableval=$enable_cbe_printf_a;
5418else
5419 enableval=default
5420fi
5421
5422case "$enableval" in
5423 yes) ENABLE_CBE_PRINTF_A=1
5424 ;;
5425 no) ENABLE_CBE_PRINTF_A=0
5426 ;;
5427 default) ENABLE_CBE_PRINTF_A=1
5428 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005429 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5430echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5431 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005432esac
5433
5434cat >>confdefs.h <<_ACEOF
5435#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5436_ACEOF
5437
5438
Reid Spencera773bd52006-08-04 18:18:08 +00005439
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005440# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005441if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005442 withval=$with_optimize_option;
5443else
5444 withval=default
5445fi
5446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447{ echo "$as_me:$LINENO: checking optimization flags" >&5
5448echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005449case "$withval" in
5450 default)
5451 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005452 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005453 MingW) optimize_option=-O2 ;;
5454 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005455 esac ;;
5456 *) optimize_option="$withval" ;;
5457esac
5458OPTIMIZE_OPTION=$optimize_option
5459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005460{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5461echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005462
5463
Reid Spencera773bd52006-08-04 18:18:08 +00005464# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005465if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005466 withval=$with_extra_options;
5467else
5468 withval=default
5469fi
5470
5471case "$withval" in
5472 default) EXTRA_OPTIONS= ;;
5473 *) EXTRA_OPTIONS=$withval ;;
5474esac
5475EXTRA_OPTIONS=$EXTRA_OPTIONS
5476
5477
Daniel Dunbared344d22011-06-16 22:30:41 +00005478
5479# Check whether --with-extra-ld-options was given.
5480if test "${with_extra_ld_options+set}" = set; then
5481 withval=$with_extra_ld_options;
5482else
5483 withval=default
5484fi
5485
5486case "$withval" in
5487 default) EXTRA_LD_OPTIONS= ;;
5488 *) EXTRA_LD_OPTIONS=$withval ;;
5489esac
5490EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5491
5492
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005493# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005494if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005495 enableval=$enable_bindings;
5496else
5497 enableval=default
5498fi
5499
5500BINDINGS_TO_BUILD=""
5501case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005502 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005503 all ) BINDINGS_TO_BUILD="ocaml" ;;
5504 none | no) BINDINGS_TO_BUILD="" ;;
5505 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5506 case "$a_binding" in
5507 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005508 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5509echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5510 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005511 esac
5512 done
5513 ;;
5514esac
5515
Reid Spencera773bd52006-08-04 18:18:08 +00005516
Gordon Henriksenf0915682007-10-02 16:42:22 +00005517# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005518if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005519 withval=$with_ocaml_libdir;
5520else
5521 withval=auto
5522fi
5523
5524case "$withval" in
5525 auto) with_ocaml_libdir="$withval" ;;
5526 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005527 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5528echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5529 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005530esac
5531
5532
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005533# Check whether --with-clang-srcdir was given.
5534if test "${with_clang_srcdir+set}" = set; then
5535 withval=$with_clang_srcdir;
5536else
5537 withval="-"
5538fi
5539
5540case "$withval" in
5541 -) clang_src_root="" ;;
5542 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5543 *) clang_src_root="$ac_pwd/$withval" ;;
5544esac
5545CLANG_SRC_ROOT=$clang_src_root
5546
5547
5548
Chandler Carruth6b241162010-10-19 08:21:25 +00005549# Check whether --with-clang-resource-dir was given.
5550if test "${with_clang_resource_dir+set}" = set; then
5551 withval=$with_clang_resource_dir;
5552else
5553 withval=""
5554fi
5555
5556
5557cat >>confdefs.h <<_ACEOF
5558#define CLANG_RESOURCE_DIR "$withval"
5559_ACEOF
5560
5561
5562
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005563# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005564if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005565 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005566else
5567 withval=""
5568fi
5569
5570
5571cat >>confdefs.h <<_ACEOF
5572#define C_INCLUDE_DIRS "$withval"
5573_ACEOF
5574
5575
5576
Rafael Espindola420d23c2009-11-16 19:46:55 +00005577# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005578if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005579 withval=$with_cxx_include_root;
5580else
5581 withval=""
5582fi
5583
5584
5585cat >>confdefs.h <<_ACEOF
5586#define CXX_INCLUDE_ROOT "$withval"
5587_ACEOF
5588
5589
5590
5591# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005592if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005593 withval=$with_cxx_include_arch;
5594else
5595 withval=""
5596fi
5597
5598
5599cat >>confdefs.h <<_ACEOF
5600#define CXX_INCLUDE_ARCH "$withval"
5601_ACEOF
5602
5603
5604
5605# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005606if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005607 withval=$with_cxx_include_32bit_dir;
5608else
5609 withval=""
5610fi
5611
5612
5613cat >>confdefs.h <<_ACEOF
5614#define CXX_INCLUDE_32BIT_DIR "$withval"
5615_ACEOF
5616
5617
5618
5619# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005620if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005621 withval=$with_cxx_include_64bit_dir;
5622else
5623 withval=""
5624fi
5625
5626
5627cat >>confdefs.h <<_ACEOF
5628#define CXX_INCLUDE_64BIT_DIR "$withval"
5629_ACEOF
5630
5631
5632
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005633# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005634if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005635 withval=$with_binutils_include;
5636else
5637 withval=default
5638fi
5639
5640case "$withval" in
5641 default) WITH_BINUTILS_INCDIR=default ;;
5642 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005643 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5644echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5645 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005646esac
5647if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5648 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5649
5650 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5651 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005652 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5653echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5654 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005655 fi
5656fi
5657
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005658
5659# Check whether --with-bug-report-url was given.
5660if test "${with_bug_report_url+set}" = set; then
5661 withval=$with_bug_report_url;
5662else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005663 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005664fi
5665
5666
5667cat >>confdefs.h <<_ACEOF
5668#define BUG_REPORT_URL "$withval"
5669_ACEOF
5670
5671
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005672# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005673if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005674 enableval=$enable_libffi; case "$enableval" in
5675 yes) llvm_cv_enable_libffi="yes" ;;
5676 no) llvm_cv_enable_libffi="no" ;;
5677 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005678echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5679 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005680 esac
5681else
5682 llvm_cv_enable_libffi=no
5683fi
5684
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005685
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005686
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005687# Check whether --with-internal-prefix was given.
5688if test "${with_internal_prefix+set}" = set; then
5689 withval=$with_internal_prefix;
5690else
5691 withval=""
5692fi
5693
5694INTERNAL_PREFIX=$withval
5695
5696
5697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005698{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5699echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5700if test "${lt_cv_path_NM+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005702else
5703 if test -n "$NM"; then
5704 # Let the user override the test.
5705 lt_cv_path_NM="$NM"
5706else
5707 lt_nm_to_check="${ac_tool_prefix}nm"
5708 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5709 lt_nm_to_check="$lt_nm_to_check nm"
5710 fi
5711 for lt_tmp_nm in $lt_nm_to_check; do
5712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5714 IFS="$lt_save_ifs"
5715 test -z "$ac_dir" && ac_dir=.
5716 tmp_nm="$ac_dir/$lt_tmp_nm"
5717 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5718 # Check to see if the nm accepts a BSD-compat flag.
5719 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5720 # nm: unknown option "B" ignored
5721 # Tru64's nm complains that /dev/null is an invalid object file
5722 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5723 */dev/null* | *'Invalid file or object type'*)
5724 lt_cv_path_NM="$tmp_nm -B"
5725 break
5726 ;;
5727 *)
5728 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5729 */dev/null*)
5730 lt_cv_path_NM="$tmp_nm -p"
5731 break
5732 ;;
5733 *)
5734 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5735 continue # so that we can try to find one that supports BSD flags
5736 ;;
5737 esac
5738 ;;
5739 esac
5740 fi
5741 done
5742 IFS="$lt_save_ifs"
5743 done
5744 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5745fi
5746fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5748echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005749NM="$lt_cv_path_NM"
5750
5751
5752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005753{ echo "$as_me:$LINENO: checking for GNU make" >&5
5754echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5755if test "${llvm_cv_gnu_make_command+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005757else
5758 llvm_cv_gnu_make_command=''
5759 for a in "$MAKE" make gmake gnumake ; do
5760 if test -z "$a" ; then continue ; fi ;
5761 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5762 then
5763 llvm_cv_gnu_make_command=$a ;
5764 break;
5765 fi
5766 done
5767fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5769echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005770 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5771 ifGNUmake='' ;
5772 else
5773 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5775echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005776 fi
5777
5778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5780echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005781LN_S=$as_ln_s
5782if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783 { echo "$as_me:$LINENO: result: yes" >&5
5784echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005785else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005786 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5787echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005788fi
5789
5790# Extract the first word of "cmp", so it can be a program name with args.
5791set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5794if test "${ac_cv_path_CMP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005796else
5797 case $CMP in
5798 [\\/]* | ?:[\\/]*)
5799 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5800 ;;
5801 *)
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 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 +00005809 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005811 break 2
5812 fi
5813done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005814done
Reid Spencera773bd52006-08-04 18:18:08 +00005815IFS=$as_save_IFS
5816
5817 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5818 ;;
5819esac
5820fi
5821CMP=$ac_cv_path_CMP
5822if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005823 { echo "$as_me:$LINENO: result: $CMP" >&5
5824echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005825else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005826 { echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005828fi
5829
5830
5831# Extract the first word of "cp", so it can be a program name with args.
5832set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835if test "${ac_cv_path_CP+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005837else
5838 case $CP in
5839 [\\/]* | ?:[\\/]*)
5840 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5841 ;;
5842 *)
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 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 +00005850 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005852 break 2
5853 fi
5854done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005855done
Reid Spencera773bd52006-08-04 18:18:08 +00005856IFS=$as_save_IFS
5857
5858 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5859 ;;
5860esac
5861fi
5862CP=$ac_cv_path_CP
5863if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864 { echo "$as_me:$LINENO: result: $CP" >&5
5865echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005867 { echo "$as_me:$LINENO: result: no" >&5
5868echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005869fi
5870
5871
5872# Extract the first word of "date", so it can be a program name with args.
5873set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876if test "${ac_cv_path_DATE+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005878else
5879 case $DATE in
5880 [\\/]* | ?:[\\/]*)
5881 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5882 ;;
5883 *)
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 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 +00005891 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005893 break 2
5894 fi
5895done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005896done
Reid Spencera773bd52006-08-04 18:18:08 +00005897IFS=$as_save_IFS
5898
5899 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5900 ;;
5901esac
5902fi
5903DATE=$ac_cv_path_DATE
5904if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005905 { echo "$as_me:$LINENO: result: $DATE" >&5
5906echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005907else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005908 { echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005910fi
5911
5912
5913# Extract the first word of "find", so it can be a program name with args.
5914set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917if test "${ac_cv_path_FIND+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005919else
5920 case $FIND in
5921 [\\/]* | ?:[\\/]*)
5922 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5923 ;;
5924 *)
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 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 +00005932 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005934 break 2
5935 fi
5936done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937done
Reid Spencera773bd52006-08-04 18:18:08 +00005938IFS=$as_save_IFS
5939
5940 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5941 ;;
5942esac
5943fi
5944FIND=$ac_cv_path_FIND
5945if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005946 { echo "$as_me:$LINENO: result: $FIND" >&5
5947echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005949 { echo "$as_me:$LINENO: result: no" >&5
5950echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005951fi
5952
5953
5954# Extract the first word of "grep", so it can be a program name with args.
5955set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958if test "${ac_cv_path_GREP+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005960else
5961 case $GREP in
5962 [\\/]* | ?:[\\/]*)
5963 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5964 ;;
5965 *)
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 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 +00005973 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005975 break 2
5976 fi
5977done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005978done
Reid Spencera773bd52006-08-04 18:18:08 +00005979IFS=$as_save_IFS
5980
5981 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5982 ;;
5983esac
5984fi
5985GREP=$ac_cv_path_GREP
5986if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005987 { echo "$as_me:$LINENO: result: $GREP" >&5
5988echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005989else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005990 { echo "$as_me:$LINENO: result: no" >&5
5991echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005992fi
5993
5994
5995# Extract the first word of "mkdir", so it can be a program name with args.
5996set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999if test "${ac_cv_path_MKDIR+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006001else
6002 case $MKDIR in
6003 [\\/]* | ?:[\\/]*)
6004 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6005 ;;
6006 *)
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008for as_dir in $PATH
6009do
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 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 +00006014 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006016 break 2
6017 fi
6018done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006019done
Reid Spencera773bd52006-08-04 18:18:08 +00006020IFS=$as_save_IFS
6021
6022 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6023 ;;
6024esac
6025fi
6026MKDIR=$ac_cv_path_MKDIR
6027if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6029echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006031 { echo "$as_me:$LINENO: result: no" >&5
6032echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006033fi
6034
6035
6036# Extract the first word of "mv", so it can be a program name with args.
6037set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6040if test "${ac_cv_path_MV+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006042else
6043 case $MV in
6044 [\\/]* | ?:[\\/]*)
6045 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6046 ;;
6047 *)
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 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 +00006055 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006057 break 2
6058 fi
6059done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060done
Reid Spencera773bd52006-08-04 18:18:08 +00006061IFS=$as_save_IFS
6062
6063 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6064 ;;
6065esac
6066fi
6067MV=$ac_cv_path_MV
6068if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069 { echo "$as_me:$LINENO: result: $MV" >&5
6070echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006072 { echo "$as_me:$LINENO: result: no" >&5
6073echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006074fi
6075
6076
6077if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6079set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082if test "${ac_cv_prog_RANLIB+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006084else
6085 if test -n "$RANLIB"; then
6086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 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 +00006095 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006097 break 2
6098 fi
6099done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006100done
Reid Spencera773bd52006-08-04 18:18:08 +00006101IFS=$as_save_IFS
6102
6103fi
6104fi
6105RANLIB=$ac_cv_prog_RANLIB
6106if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6108echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006109else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006110 { echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006112fi
6113
6114
6115fi
6116if test -z "$ac_cv_prog_RANLIB"; then
6117 ac_ct_RANLIB=$RANLIB
6118 # Extract the first word of "ranlib", so it can be a program name with args.
6119set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006120{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6122if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006124else
6125 if test -n "$ac_ct_RANLIB"; then
6126 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6127else
6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH
6130do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 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 +00006135 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006137 break 2
6138 fi
6139done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006140done
Reid Spencera773bd52006-08-04 18:18:08 +00006141IFS=$as_save_IFS
6142
6143fi
6144fi
6145ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6146if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6148echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006149else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006150 { echo "$as_me:$LINENO: result: no" >&5
6151echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006152fi
6153
6154 if test "x$ac_ct_RANLIB" = x; then
6155 RANLIB=":"
6156 else
6157 case $cross_compiling:$ac_tool_warned in
6158yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006159{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6160whose name does not start with the host triplet. If you think this
6161configuration is useful to you, please write to autoconf@gnu.org." >&5
6162echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6163whose name does not start with the host triplet. If you think this
6164configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006165ac_tool_warned=yes ;;
6166esac
6167 RANLIB=$ac_ct_RANLIB
6168 fi
6169else
6170 RANLIB="$ac_cv_prog_RANLIB"
6171fi
6172
Torok Edwin871384f2010-01-26 08:50:50 +00006173if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6175set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178if test "${ac_cv_prog_AR+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006180else
6181 if test -n "$AR"; then
6182 ac_cv_prog_AR="$AR" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 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 +00006191 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006193 break 2
6194 fi
6195done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196done
Torok Edwin871384f2010-01-26 08:50:50 +00006197IFS=$as_save_IFS
6198
6199fi
6200fi
6201AR=$ac_cv_prog_AR
6202if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203 { echo "$as_me:$LINENO: result: $AR" >&5
6204echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006205else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206 { echo "$as_me:$LINENO: result: no" >&5
6207echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006208fi
6209
6210
6211fi
6212if test -z "$ac_cv_prog_AR"; then
6213 ac_ct_AR=$AR
6214 # Extract the first word of "ar", so it can be a program name with args.
6215set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6218if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006220else
6221 if test -n "$ac_ct_AR"; then
6222 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6223else
6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH
6226do
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 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 +00006231 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006233 break 2
6234 fi
6235done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006236done
Torok Edwin871384f2010-01-26 08:50:50 +00006237IFS=$as_save_IFS
6238
6239fi
6240fi
6241ac_ct_AR=$ac_cv_prog_ac_ct_AR
6242if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6244echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006246 { echo "$as_me:$LINENO: result: no" >&5
6247echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006248fi
6249
6250 if test "x$ac_ct_AR" = x; then
6251 AR="false"
6252 else
6253 case $cross_compiling:$ac_tool_warned in
6254yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6256whose name does not start with the host triplet. If you think this
6257configuration is useful to you, please write to autoconf@gnu.org." >&5
6258echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6259whose name does not start with the host triplet. If you think this
6260configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006261ac_tool_warned=yes ;;
6262esac
6263 AR=$ac_ct_AR
6264 fi
6265else
6266 AR="$ac_cv_prog_AR"
6267fi
6268
Reid Spencera773bd52006-08-04 18:18:08 +00006269# Extract the first word of "rm", so it can be a program name with args.
6270set dummy rm; 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_path_RM+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006275else
6276 case $RM in
6277 [\\/]* | ?:[\\/]*)
6278 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6279 ;;
6280 *)
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 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 +00006288 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006290 break 2
6291 fi
6292done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293done
Reid Spencera773bd52006-08-04 18:18:08 +00006294IFS=$as_save_IFS
6295
6296 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6297 ;;
6298esac
6299fi
6300RM=$ac_cv_path_RM
6301if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006302 { echo "$as_me:$LINENO: result: $RM" >&5
6303echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006304else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006305 { echo "$as_me:$LINENO: result: no" >&5
6306echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006307fi
6308
6309
6310# Extract the first word of "sed", so it can be a program name with args.
6311set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314if test "${ac_cv_path_SED+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006316else
6317 case $SED in
6318 [\\/]* | ?:[\\/]*)
6319 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6320 ;;
6321 *)
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 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 +00006329 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006331 break 2
6332 fi
6333done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006334done
Reid Spencera773bd52006-08-04 18:18:08 +00006335IFS=$as_save_IFS
6336
6337 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6338 ;;
6339esac
6340fi
6341SED=$ac_cv_path_SED
6342if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006343 { echo "$as_me:$LINENO: result: $SED" >&5
6344echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006346 { echo "$as_me:$LINENO: result: no" >&5
6347echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006348fi
6349
6350
6351# Extract the first word of "tar", so it can be a program name with args.
6352set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355if test "${ac_cv_path_TAR+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006357else
6358 case $TAR in
6359 [\\/]* | ?:[\\/]*)
6360 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6361 ;;
6362 *)
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
6365do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 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 +00006370 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006372 break 2
6373 fi
6374done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375done
Reid Spencera773bd52006-08-04 18:18:08 +00006376IFS=$as_save_IFS
6377
6378 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6379 ;;
6380esac
6381fi
6382TAR=$ac_cv_path_TAR
6383if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384 { echo "$as_me:$LINENO: result: $TAR" >&5
6385echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006387 { echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006389fi
6390
6391
6392# Extract the first word of "pwd", so it can be a program name with args.
6393set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396if test "${ac_cv_path_BINPWD+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006398else
6399 case $BINPWD in
6400 [\\/]* | ?:[\\/]*)
6401 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6402 ;;
6403 *)
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 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 +00006411 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006413 break 2
6414 fi
6415done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006416done
Reid Spencera773bd52006-08-04 18:18:08 +00006417IFS=$as_save_IFS
6418
6419 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6420 ;;
6421esac
6422fi
6423BINPWD=$ac_cv_path_BINPWD
6424if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006425 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6426echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006428 { echo "$as_me:$LINENO: result: no" >&5
6429echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006430fi
6431
6432
6433
6434# Extract the first word of "Graphviz", so it can be a program name with args.
6435set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6438if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006440else
6441 case $GRAPHVIZ in
6442 [\\/]* | ?:[\\/]*)
6443 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6444 ;;
6445 *)
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 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 +00006453 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006455 break 2
6456 fi
6457done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006458done
Reid Spencera773bd52006-08-04 18:18:08 +00006459IFS=$as_save_IFS
6460
6461 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6462 ;;
6463esac
6464fi
6465GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6466if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006467 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6468echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006470 { echo "$as_me:$LINENO: result: no" >&5
6471echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006472fi
6473
6474
6475if test "$GRAPHVIZ" != "echo Graphviz" ; then
6476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006477cat >>confdefs.h <<\_ACEOF
6478#define HAVE_GRAPHVIZ 1
6479_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006480
Jeff Cohen28783c32007-01-12 18:22:38 +00006481 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006482 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6483 fi
6484
6485cat >>confdefs.h <<_ACEOF
6486#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6487_ACEOF
6488
6489fi
6490# Extract the first word of "dot", so it can be a program name with args.
6491set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6494if test "${ac_cv_path_DOT+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006496else
6497 case $DOT in
6498 [\\/]* | ?:[\\/]*)
6499 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6500 ;;
6501 *)
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 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 +00006509 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006511 break 2
6512 fi
6513done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006514done
Reid Spencera773bd52006-08-04 18:18:08 +00006515IFS=$as_save_IFS
6516
6517 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6518 ;;
6519esac
6520fi
6521DOT=$ac_cv_path_DOT
6522if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006523 { echo "$as_me:$LINENO: result: $DOT" >&5
6524echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006525else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006526 { echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006528fi
6529
6530
6531if test "$DOT" != "echo dot" ; then
6532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006533cat >>confdefs.h <<\_ACEOF
6534#define HAVE_DOT 1
6535_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006536
Jeff Cohen28783c32007-01-12 18:22:38 +00006537 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006538 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6539 fi
6540
6541cat >>confdefs.h <<_ACEOF
6542#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6543_ACEOF
6544
6545fi
David Greenef0b9eff2009-07-09 17:16:26 +00006546# Extract the first word of "fdp", so it can be a program name with args.
6547set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6550if test "${ac_cv_path_FDP+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006552else
6553 case $FDP in
6554 [\\/]* | ?:[\\/]*)
6555 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6556 ;;
6557 *)
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 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 +00006565 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006567 break 2
6568 fi
6569done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006570done
David Greenef0b9eff2009-07-09 17:16:26 +00006571IFS=$as_save_IFS
6572
6573 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6574 ;;
6575esac
6576fi
6577FDP=$ac_cv_path_FDP
6578if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006579 { echo "$as_me:$LINENO: result: $FDP" >&5
6580echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006582 { echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006584fi
6585
6586
6587if test "$FDP" != "echo fdp" ; then
6588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006589cat >>confdefs.h <<\_ACEOF
6590#define HAVE_FDP 1
6591_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006592
6593 if test "$llvm_cv_os_type" = "MingW" ; then
6594 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6595 fi
6596
6597cat >>confdefs.h <<_ACEOF
6598#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6599_ACEOF
6600
6601fi
6602# Extract the first word of "neato", so it can be a program name with args.
6603set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606if test "${ac_cv_path_NEATO+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006608else
6609 case $NEATO in
6610 [\\/]* | ?:[\\/]*)
6611 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6612 ;;
6613 *)
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 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 +00006621 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006623 break 2
6624 fi
6625done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006626done
David Greenef0b9eff2009-07-09 17:16:26 +00006627IFS=$as_save_IFS
6628
6629 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6630 ;;
6631esac
6632fi
6633NEATO=$ac_cv_path_NEATO
6634if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006635 { echo "$as_me:$LINENO: result: $NEATO" >&5
6636echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006638 { echo "$as_me:$LINENO: result: no" >&5
6639echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006640fi
6641
6642
6643if test "$NEATO" != "echo neato" ; then
6644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006645cat >>confdefs.h <<\_ACEOF
6646#define HAVE_NEATO 1
6647_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006648
6649 if test "$llvm_cv_os_type" = "MingW" ; then
6650 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6651 fi
6652
6653cat >>confdefs.h <<_ACEOF
6654#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6655_ACEOF
6656
6657fi
6658# Extract the first word of "twopi", so it can be a program name with args.
6659set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662if test "${ac_cv_path_TWOPI+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006664else
6665 case $TWOPI in
6666 [\\/]* | ?:[\\/]*)
6667 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6668 ;;
6669 *)
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 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 +00006677 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006679 break 2
6680 fi
6681done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006682done
David Greenef0b9eff2009-07-09 17:16:26 +00006683IFS=$as_save_IFS
6684
6685 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6686 ;;
6687esac
6688fi
6689TWOPI=$ac_cv_path_TWOPI
6690if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006691 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6692echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006693else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006694 { echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006696fi
6697
6698
6699if test "$TWOPI" != "echo twopi" ; then
6700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006701cat >>confdefs.h <<\_ACEOF
6702#define HAVE_TWOPI 1
6703_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006704
6705 if test "$llvm_cv_os_type" = "MingW" ; then
6706 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6707 fi
6708
6709cat >>confdefs.h <<_ACEOF
6710#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6711_ACEOF
6712
6713fi
6714# Extract the first word of "circo", so it can be a program name with args.
6715set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718if test "${ac_cv_path_CIRCO+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006720else
6721 case $CIRCO in
6722 [\\/]* | ?:[\\/]*)
6723 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6724 ;;
6725 *)
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 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 +00006733 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006735 break 2
6736 fi
6737done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006738done
David Greenef0b9eff2009-07-09 17:16:26 +00006739IFS=$as_save_IFS
6740
6741 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6742 ;;
6743esac
6744fi
6745CIRCO=$ac_cv_path_CIRCO
6746if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006747 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6748echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006750 { echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006752fi
6753
6754
6755if test "$CIRCO" != "echo circo" ; then
6756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757cat >>confdefs.h <<\_ACEOF
6758#define HAVE_CIRCO 1
6759_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006760
6761 if test "$llvm_cv_os_type" = "MingW" ; then
6762 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6763 fi
6764
6765cat >>confdefs.h <<_ACEOF
6766#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6767_ACEOF
6768
6769fi
Reid Spencera773bd52006-08-04 18:18:08 +00006770for ac_prog in gv gsview32
6771do
6772 # Extract the first word of "$ac_prog", so it can be a program name with args.
6773set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776if test "${ac_cv_path_GV+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006778else
6779 case $GV in
6780 [\\/]* | ?:[\\/]*)
6781 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6782 ;;
6783 *)
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 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 +00006791 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006793 break 2
6794 fi
6795done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796done
Reid Spencera773bd52006-08-04 18:18:08 +00006797IFS=$as_save_IFS
6798
6799 ;;
6800esac
6801fi
6802GV=$ac_cv_path_GV
6803if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006804 { echo "$as_me:$LINENO: result: $GV" >&5
6805echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807 { echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006809fi
6810
6811
6812 test -n "$GV" && break
6813done
6814test -n "$GV" || GV="echo gv"
6815
6816if test "$GV" != "echo gv" ; then
6817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818cat >>confdefs.h <<\_ACEOF
6819#define HAVE_GV 1
6820_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006821
Jeff Cohen28783c32007-01-12 18:22:38 +00006822 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006823 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6824 fi
6825
6826cat >>confdefs.h <<_ACEOF
6827#define LLVM_PATH_GV "$GV${EXEEXT}"
6828_ACEOF
6829
6830fi
6831# Extract the first word of "dotty", so it can be a program name with args.
6832set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835if test "${ac_cv_path_DOTTY+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006837else
6838 case $DOTTY in
6839 [\\/]* | ?:[\\/]*)
6840 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6841 ;;
6842 *)
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 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 +00006850 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006852 break 2
6853 fi
6854done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006855done
Reid Spencera773bd52006-08-04 18:18:08 +00006856IFS=$as_save_IFS
6857
6858 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6859 ;;
6860esac
6861fi
6862DOTTY=$ac_cv_path_DOTTY
6863if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6865echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006867 { echo "$as_me:$LINENO: result: no" >&5
6868echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006869fi
6870
6871
6872if test "$DOTTY" != "echo dotty" ; then
6873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006874cat >>confdefs.h <<\_ACEOF
6875#define HAVE_DOTTY 1
6876_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006877
Jeff Cohen28783c32007-01-12 18:22:38 +00006878 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006879 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6880 fi
6881
6882cat >>confdefs.h <<_ACEOF
6883#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6884_ACEOF
6885
6886fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006887# Extract the first word of "xdot.py", so it can be a program name with args.
6888set dummy xdot.py; ac_word=$2
6889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891if test "${ac_cv_path_XDOT_PY+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893else
6894 case $XDOT_PY in
6895 [\\/]* | ?:[\\/]*)
6896 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6897 ;;
6898 *)
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911done
6912IFS=$as_save_IFS
6913
6914 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6915 ;;
6916esac
6917fi
6918XDOT_PY=$ac_cv_path_XDOT_PY
6919if test -n "$XDOT_PY"; then
6920 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6921echo "${ECHO_T}$XDOT_PY" >&6; }
6922else
6923 { echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6; }
6925fi
6926
6927
6928if test "$XDOT_PY" != "echo xdot.py" ; then
6929
6930cat >>confdefs.h <<\_ACEOF
6931#define HAVE_XDOT_PY 1
6932_ACEOF
6933
6934 if test "$llvm_cv_os_type" = "MingW" ; then
6935 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6936 fi
6937
6938cat >>confdefs.h <<_ACEOF
6939#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6940_ACEOF
6941
6942fi
Reid Spencera773bd52006-08-04 18:18:08 +00006943
6944
6945# Extract the first word of "perl", so it can be a program name with args.
6946set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949if test "${ac_cv_path_PERL+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006951else
6952 case $PERL in
6953 [\\/]* | ?:[\\/]*)
6954 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6955 ;;
6956 *)
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 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 +00006964 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006966 break 2
6967 fi
6968done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969done
Reid Spencera773bd52006-08-04 18:18:08 +00006970IFS=$as_save_IFS
6971
6972 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6973 ;;
6974esac
6975fi
6976PERL=$ac_cv_path_PERL
6977if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006978 { echo "$as_me:$LINENO: result: $PERL" >&5
6979echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006983fi
6984
6985
6986if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006987 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6988echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006989 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006990 { echo "$as_me:$LINENO: result: yes" >&5
6991echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006992 else
6993 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994 { echo "$as_me:$LINENO: result: not found" >&5
6995echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006996 fi
6997fi
6998
6999
7000if test x"$PERL" = xnone; then
7001 HAVE_PERL=0
7002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7004echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7005 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007006else
7007 HAVE_PERL=1
7008
7009fi
7010
7011# Find a good install program. We prefer a C program (faster),
7012# so one script is as good as another. But avoid the broken or
7013# incompatible versions:
7014# SysV /etc/install, /usr/sbin/install
7015# SunOS /usr/etc/install
7016# IRIX /sbin/install
7017# AIX /bin/install
7018# AmigaOS /C/install, which installs bootblocks on floppy discs
7019# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7020# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7021# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7022# OS/2's system install, which has a completely different semantic
7023# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007024{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7025echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007026if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007027if test "${ac_cv_path_install+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007029else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007035 # Account for people who put trailing slashes in PATH elements.
7036case $as_dir/ in
7037 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007040 /usr/ucb/* ) ;;
7041 *)
7042 # OSF1 and SCO ODT 3.0 have their own names for install.
7043 # Don't use installbsd from OSF since it installs stuff as root
7044 # by default.
7045 for ac_prog in ginstall scoinst install; do
7046 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007047 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 +00007048 if test $ac_prog = install &&
7049 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7050 # AIX install. It has an incompatible calling convention.
7051 :
7052 elif test $ac_prog = install &&
7053 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7054 # program-specific install script used by HP pwplus--don't use.
7055 :
7056 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7058 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007059 fi
7060 fi
7061 done
7062 done
7063 ;;
7064esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007065done
Reid Spencera773bd52006-08-04 18:18:08 +00007066IFS=$as_save_IFS
7067
7068
7069fi
7070 if test "${ac_cv_path_install+set}" = set; then
7071 INSTALL=$ac_cv_path_install
7072 else
7073 # As a last resort, use the slow shell script. Don't cache a
7074 # value for INSTALL within a source directory, because that will
7075 # break other packages using the cache if that directory is
7076 # removed, or if the value is a relative name.
7077 INSTALL=$ac_install_sh
7078 fi
7079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7081echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007082
7083# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7084# It thinks the first close brace ends the variable substitution.
7085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7086
7087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7088
7089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7090
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007091case "$INSTALL" in
7092 [\\/$]* | ?:[\\/]* ) ;;
7093 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7094esac
Reid Spencera773bd52006-08-04 18:18:08 +00007095
7096# Extract the first word of "bzip2", so it can be a program name with args.
7097set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100if test "${ac_cv_path_BZIP2+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007102else
7103 case $BZIP2 in
7104 [\\/]* | ?:[\\/]*)
7105 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7106 ;;
7107 *)
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 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 +00007115 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007117 break 2
7118 fi
7119done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007120done
Reid Spencera773bd52006-08-04 18:18:08 +00007121IFS=$as_save_IFS
7122
Reid Spencera773bd52006-08-04 18:18:08 +00007123 ;;
7124esac
7125fi
7126BZIP2=$ac_cv_path_BZIP2
7127if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007128 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7129echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131 { echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007133fi
7134
7135
mike-m68cb3192010-05-06 23:45:43 +00007136# Extract the first word of "cat", so it can be a program name with args.
7137set dummy cat; ac_word=$2
7138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140if test "${ac_cv_path_CAT+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 case $CAT in
7144 [\\/]* | ?:[\\/]*)
7145 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7146 ;;
7147 *)
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159done
7160done
7161IFS=$as_save_IFS
7162
7163 ;;
7164esac
7165fi
7166CAT=$ac_cv_path_CAT
7167if test -n "$CAT"; then
7168 { echo "$as_me:$LINENO: result: $CAT" >&5
7169echo "${ECHO_T}$CAT" >&6; }
7170else
7171 { echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6; }
7173fi
7174
7175
Reid Spencera773bd52006-08-04 18:18:08 +00007176# Extract the first word of "doxygen", so it can be a program name with args.
7177set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180if test "${ac_cv_path_DOXYGEN+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007182else
7183 case $DOXYGEN in
7184 [\\/]* | ?:[\\/]*)
7185 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7186 ;;
7187 *)
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 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 +00007195 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007197 break 2
7198 fi
7199done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200done
Reid Spencera773bd52006-08-04 18:18:08 +00007201IFS=$as_save_IFS
7202
Reid Spencera773bd52006-08-04 18:18:08 +00007203 ;;
7204esac
7205fi
7206DOXYGEN=$ac_cv_path_DOXYGEN
7207if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007208 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7209echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211 { echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007213fi
7214
7215
Reid Spencera773bd52006-08-04 18:18:08 +00007216# Extract the first word of "groff", so it can be a program name with args.
7217set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220if test "${ac_cv_path_GROFF+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007222else
7223 case $GROFF in
7224 [\\/]* | ?:[\\/]*)
7225 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7226 ;;
7227 *)
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 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 +00007235 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007237 break 2
7238 fi
7239done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007240done
Reid Spencera773bd52006-08-04 18:18:08 +00007241IFS=$as_save_IFS
7242
Reid Spencera773bd52006-08-04 18:18:08 +00007243 ;;
7244esac
7245fi
7246GROFF=$ac_cv_path_GROFF
7247if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007248 { echo "$as_me:$LINENO: result: $GROFF" >&5
7249echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007250else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007251 { echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007253fi
7254
7255
7256# Extract the first word of "gzip", so it can be a program name with args.
7257set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007260if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007262else
Eric Christopher031d3072010-12-10 01:31:51 +00007263 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007264 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007265 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007266 ;;
7267 *)
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 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 +00007275 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007277 break 2
7278 fi
7279done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280done
Reid Spencera773bd52006-08-04 18:18:08 +00007281IFS=$as_save_IFS
7282
Reid Spencera773bd52006-08-04 18:18:08 +00007283 ;;
7284esac
7285fi
Eric Christopher031d3072010-12-10 01:31:51 +00007286GZIPBIN=$ac_cv_path_GZIPBIN
7287if test -n "$GZIPBIN"; then
7288 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7289echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291 { echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007293fi
7294
7295
7296# Extract the first word of "pod2html", so it can be a program name with args.
7297set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300if test "${ac_cv_path_POD2HTML+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007302else
7303 case $POD2HTML in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7306 ;;
7307 *)
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 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 +00007315 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007317 break 2
7318 fi
7319done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320done
Reid Spencera773bd52006-08-04 18:18:08 +00007321IFS=$as_save_IFS
7322
Reid Spencera773bd52006-08-04 18:18:08 +00007323 ;;
7324esac
7325fi
7326POD2HTML=$ac_cv_path_POD2HTML
7327if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7329echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331 { echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007333fi
7334
7335
7336# Extract the first word of "pod2man", so it can be a program name with args.
7337set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340if test "${ac_cv_path_POD2MAN+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007342else
7343 case $POD2MAN in
7344 [\\/]* | ?:[\\/]*)
7345 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7346 ;;
7347 *)
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 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 +00007355 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007357 break 2
7358 fi
7359done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360done
Reid Spencera773bd52006-08-04 18:18:08 +00007361IFS=$as_save_IFS
7362
Reid Spencera773bd52006-08-04 18:18:08 +00007363 ;;
7364esac
7365fi
7366POD2MAN=$ac_cv_path_POD2MAN
7367if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7369echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007371 { echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007373fi
7374
7375
mike-m68cb3192010-05-06 23:45:43 +00007376# Extract the first word of "pdfroff", so it can be a program name with args.
7377set dummy pdfroff; ac_word=$2
7378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380if test "${ac_cv_path_PDFROFF+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383 case $PDFROFF in
7384 [\\/]* | ?:[\\/]*)
7385 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7386 ;;
7387 *)
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399done
7400done
7401IFS=$as_save_IFS
7402
7403 ;;
7404esac
7405fi
7406PDFROFF=$ac_cv_path_PDFROFF
7407if test -n "$PDFROFF"; then
7408 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7409echo "${ECHO_T}$PDFROFF" >&6; }
7410else
7411 { echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6; }
7413fi
7414
7415
Reid Spencera773bd52006-08-04 18:18:08 +00007416# Extract the first word of "runtest", so it can be a program name with args.
7417set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420if test "${ac_cv_path_RUNTEST+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007422else
7423 case $RUNTEST in
7424 [\\/]* | ?:[\\/]*)
7425 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7426 ;;
7427 *)
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 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 +00007435 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007437 break 2
7438 fi
7439done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007440done
Reid Spencera773bd52006-08-04 18:18:08 +00007441IFS=$as_save_IFS
7442
Reid Spencera773bd52006-08-04 18:18:08 +00007443 ;;
7444esac
7445fi
7446RUNTEST=$ac_cv_path_RUNTEST
7447if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7449echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007450else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 { echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007453fi
7454
7455
7456
7457no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7459echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007460
7461# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007462if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007463 withval=$with_tclinclude; with_tclinclude=${withval}
7464else
7465 with_tclinclude=''
7466fi
7467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468if test "${ac_cv_path_tclsh+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007470else
7471
7472if test x"${with_tclinclude}" != x ; then
7473 if test -f ${with_tclinclude}/tclsh ; then
7474 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7475 elif test -f ${with_tclinclude}/src/tclsh ; then
7476 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7477 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007478 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7479echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7480 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007481 fi
7482fi
Torok Edwin871384f2010-01-26 08:50:50 +00007483fi
7484
Reid Spencera773bd52006-08-04 18:18:08 +00007485
7486if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007487 { echo "$as_me:$LINENO: result: none" >&5
7488echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007489 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
7490do
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495if test "${ac_cv_path_TCLSH+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007497else
7498 case $TCLSH in
7499 [\\/]* | ?:[\\/]*)
7500 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7501 ;;
7502 *)
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 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 +00007510 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007512 break 2
7513 fi
7514done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515done
Reid Spencera773bd52006-08-04 18:18:08 +00007516IFS=$as_save_IFS
7517
7518 ;;
7519esac
7520fi
7521TCLSH=$ac_cv_path_TCLSH
7522if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7524echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007525else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526 { echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007528fi
7529
7530
7531 test -n "$TCLSH" && break
7532done
7533
7534 if test x"${TCLSH}" = x ; then
7535 ac_cv_path_tclsh='';
7536 else
7537 ac_cv_path_tclsh="${TCLSH}";
7538 fi
7539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007540 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7541echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007542 TCLSH="${ac_cv_path_tclsh}"
7543
7544fi
7545
Reid Spencera773bd52006-08-04 18:18:08 +00007546# Extract the first word of "zip", so it can be a program name with args.
7547set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550if test "${ac_cv_path_ZIP+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007552else
7553 case $ZIP in
7554 [\\/]* | ?:[\\/]*)
7555 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7556 ;;
7557 *)
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559for as_dir in $PATH
7560do
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 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 +00007565 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007567 break 2
7568 fi
7569done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570done
Reid Spencera773bd52006-08-04 18:18:08 +00007571IFS=$as_save_IFS
7572
Reid Spencera773bd52006-08-04 18:18:08 +00007573 ;;
7574esac
7575fi
7576ZIP=$ac_cv_path_ZIP
7577if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007578 { echo "$as_me:$LINENO: result: $ZIP" >&5
7579echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007580else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007581 { echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007583fi
7584
7585
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007586for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007587do
7588 # Extract the first word of "$ac_prog", so it can be a program name with args.
7589set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592if test "${ac_cv_path_OCAMLC+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007594else
7595 case $OCAMLC in
7596 [\\/]* | ?:[\\/]*)
7597 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7598 ;;
7599 *)
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 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 +00007607 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007609 break 2
7610 fi
7611done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007613IFS=$as_save_IFS
7614
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007615 ;;
7616esac
7617fi
7618OCAMLC=$ac_cv_path_OCAMLC
7619if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7621echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007623 { echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007625fi
7626
7627
Gordon Henriksene7072162008-03-07 18:20:01 +00007628 test -n "$OCAMLC" && break
7629done
7630
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007631for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007632do
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007639else
7640 case $OCAMLOPT in
7641 [\\/]* | ?:[\\/]*)
7642 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7643 ;;
7644 *)
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 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 +00007652 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007654 break 2
7655 fi
7656done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007657done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007658IFS=$as_save_IFS
7659
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007660 ;;
7661esac
7662fi
7663OCAMLOPT=$ac_cv_path_OCAMLOPT
7664if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7666echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668 { echo "$as_me:$LINENO: result: no" >&5
7669echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007670fi
7671
7672
Gordon Henriksene7072162008-03-07 18:20:01 +00007673 test -n "$OCAMLOPT" && break
7674done
7675
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007676for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007677do
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007684else
7685 case $OCAMLDEP in
7686 [\\/]* | ?:[\\/]*)
7687 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7688 ;;
7689 *)
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 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 +00007697 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007699 break 2
7700 fi
7701done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007702done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007703IFS=$as_save_IFS
7704
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007705 ;;
7706esac
7707fi
7708OCAMLDEP=$ac_cv_path_OCAMLDEP
7709if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7711echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007712else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007713 { echo "$as_me:$LINENO: result: no" >&5
7714echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007715fi
7716
7717
Gordon Henriksene7072162008-03-07 18:20:01 +00007718 test -n "$OCAMLDEP" && break
7719done
7720
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007721for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007722do
7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
7724set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007729else
7730 case $OCAMLDOC in
7731 [\\/]* | ?:[\\/]*)
7732 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7733 ;;
7734 *)
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 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 +00007742 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007744 break 2
7745 fi
7746done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007747done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007748IFS=$as_save_IFS
7749
7750 ;;
7751esac
7752fi
7753OCAMLDOC=$ac_cv_path_OCAMLDOC
7754if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7756echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007758 { echo "$as_me:$LINENO: result: no" >&5
7759echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007760fi
7761
7762
7763 test -n "$OCAMLDOC" && break
7764done
7765
Torok Edwincc499a42008-10-22 09:56:27 +00007766for ac_prog in gas as
7767do
7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
7769set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772if test "${ac_cv_path_GAS+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007774else
7775 case $GAS in
7776 [\\/]* | ?:[\\/]*)
7777 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7778 ;;
7779 *)
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 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 +00007787 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007789 break 2
7790 fi
7791done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792done
Torok Edwincc499a42008-10-22 09:56:27 +00007793IFS=$as_save_IFS
7794
7795 ;;
7796esac
7797fi
7798GAS=$ac_cv_path_GAS
7799if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007800 { echo "$as_me:$LINENO: result: $GAS" >&5
7801echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007802else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803 { echo "$as_me:$LINENO: result: no" >&5
7804echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007805fi
7806
7807
7808 test -n "$GAS" && break
7809done
7810
Reid Spencera773bd52006-08-04 18:18:08 +00007811
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007812{ echo "$as_me:$LINENO: checking for linker version" >&5
7813echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7814if test "${llvm_cv_link_version+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816else
7817
7818 version_string="$(ld -v 2>&1 | head -1)"
7819
7820 # Check for ld64.
7821 if (echo "$version_string" | grep -q "ld64"); then
7822 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7823 else
7824 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7825 fi
7826
7827fi
7828{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7829echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7830
7831cat >>confdefs.h <<_ACEOF
7832#define HOST_LINK_VERSION "$llvm_cv_link_version"
7833_ACEOF
7834
7835
7836
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007837{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7838echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7839if test "${llvm_cv_link_use_r+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007841else
7842 ac_ext=c
7843ac_cpp='$CPP $CPPFLAGS'
7844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7846ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847
7848 oldcflags="$CFLAGS"
7849 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007850 cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h. */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007855/* end confdefs.h. */
7856
7857int
7858main ()
7859{
Dan Gohman39ed6782010-04-25 00:12:20 +00007860
Reid Spencera773bd52006-08-04 18:18:08 +00007861 ;
7862 return 0;
7863}
7864_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865rm -f conftest.$ac_objext conftest$ac_exeext
7866if { (ac_try="$ac_link"
7867case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870esac
7871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_link") 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7880 { (case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883esac
7884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_try") 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest$ac_exeext'
7890 { (case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7893esac
7894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_try") 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007899 llvm_cv_link_use_r=yes
7900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007901 echo "$as_me: failed program was:" >&5
7902sed 's/^/| /' conftest.$ac_ext >&5
7903
7904 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906
Bill Wendlingebcceee2009-04-18 11:20:33 +00007907rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007908 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007909 CFLAGS="$oldcflags"
7910 ac_ext=c
7911ac_cpp='$CPP $CPPFLAGS'
7912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915
7916
7917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007918{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7919echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007920if test "$llvm_cv_link_use_r" = yes ; then
7921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007922cat >>confdefs.h <<\_ACEOF
7923#define HAVE_LINK_R 1
7924_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007925
7926 fi
7927
7928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007929{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7930echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7931if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007933else
7934 ac_ext=c
7935ac_cpp='$CPP $CPPFLAGS'
7936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939
7940 oldcflags="$CFLAGS"
7941 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007942 cat >conftest.$ac_ext <<_ACEOF
7943/* confdefs.h. */
7944_ACEOF
7945cat confdefs.h >>conftest.$ac_ext
7946cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007947/* end confdefs.h. */
7948
7949int
7950main ()
7951{
Dan Gohman39ed6782010-04-25 00:12:20 +00007952
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007953 ;
7954 return 0;
7955}
7956_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007957rm -f conftest.$ac_objext conftest$ac_exeext
7958if { (ac_try="$ac_link"
7959case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962esac
7963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_link") 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7972 { (case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975esac
7976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_try") 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; } &&
7981 { ac_try='test -s conftest$ac_exeext'
7982 { (case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7985esac
7986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_try") 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007991 llvm_cv_link_use_export_dynamic=yes
7992else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007993 echo "$as_me: failed program was:" >&5
7994sed 's/^/| /' conftest.$ac_ext >&5
7995
7996 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007997fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007998
Bill Wendlingebcceee2009-04-18 11:20:33 +00007999rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008000 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008001 CFLAGS="$oldcflags"
8002 ac_ext=c
8003ac_cpp='$CPP $CPPFLAGS'
8004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007
8008
8009fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008010{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8011echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008012if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014cat >>confdefs.h <<\_ACEOF
8015#define HAVE_LINK_EXPORT_DYNAMIC 1
8016_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008017
8018 fi
8019
8020
Dan Gohmanda612d62010-06-01 14:56:56 +00008021{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8022echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8023if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025else
8026 ac_ext=c
8027ac_cpp='$CPP $CPPFLAGS'
8028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031
8032 oldcflags="$CFLAGS"
8033
8034 # The following code is from the autoconf manual,
8035 # "11.13: Limitations of Usual Tools".
8036 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8037 # Use mktemp if possible; otherwise fall back on mkdir,
8038 # with $RANDOM to make collisions less likely.
8039 : ${TMPDIR=/tmp}
8040 {
8041 tmp=`
8042 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8043 ` &&
8044 test -n "$tmp" && test -d "$tmp"
8045 } || {
8046 tmp=$TMPDIR/foo$$-$RANDOM
8047 (umask 077 && mkdir "$tmp")
8048 } || exit $?
8049
Dan Gohmanda612d62010-06-01 14:56:56 +00008050 echo "{" > "$tmp/export.map"
8051 echo " global: main;" >> "$tmp/export.map"
8052 echo " local: *;" >> "$tmp/export.map"
8053 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008054
Dan Gohmanda612d62010-06-01 14:56:56 +00008055 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008056 cat >conftest.$ac_ext <<_ACEOF
8057/* confdefs.h. */
8058_ACEOF
8059cat confdefs.h >>conftest.$ac_ext
8060cat >>conftest.$ac_ext <<_ACEOF
8061/* end confdefs.h. */
8062
8063int
8064main ()
8065{
Dan Gohman39ed6782010-04-25 00:12:20 +00008066
Dan Gohman391569c2010-04-16 22:59:06 +00008067 ;
8068 return 0;
8069}
8070_ACEOF
8071rm -f conftest.$ac_objext conftest$ac_exeext
8072if { (ac_try="$ac_link"
8073case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_link") 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest$ac_exeext'
8096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099esac
8100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008105 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008106else
8107 echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
Dan Gohman943005e2010-06-01 16:22:27 +00008110 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008111fi
8112
8113rm -f core conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008115 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008116 rmdir "$tmp"
8117 CFLAGS="$oldcflags"
8118 ac_ext=c
8119ac_cpp='$CPP $CPPFLAGS'
8120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8122ac_compiler_gnu=$ac_cv_c_compiler_gnu
8123
8124
8125fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008126{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8127echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8128if test "$llvm_cv_link_use_version_script" = yes ; then
8129 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008130
8131 fi
8132
8133
Reid Spencera773bd52006-08-04 18:18:08 +00008134
8135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008136{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8137echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8138if test "${ac_cv_c_const+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141 cat >conftest.$ac_ext <<_ACEOF
8142/* confdefs.h. */
8143_ACEOF
8144cat confdefs.h >>conftest.$ac_ext
8145cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008146/* end confdefs.h. */
8147
8148int
8149main ()
8150{
8151/* FIXME: Include the comments suggested by Paul. */
8152#ifndef __cplusplus
8153 /* Ultrix mips cc rejects this. */
8154 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008156 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008157 char const *const *ccp;
8158 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008159 /* NEC SVR4.0.2 mips cc rejects this. */
8160 struct point {int x, y;};
8161 static struct point const zero = {0,0};
8162 /* AIX XL C 1.02.0.0 rejects this.
8163 It does not let you subtract one const X* pointer from another in
8164 an arm of an if-expression whose if-part is not a constant
8165 expression */
8166 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008168 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169 ++ccp;
8170 p = (char**) ccp;
8171 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008172 { /* SCO 3.2v4 cc rejects this. */
8173 char *t;
8174 char const *s = 0 ? (char *) 0 : (char const *) 0;
8175
8176 *t++ = 0;
8177 if (s) return 0;
8178 }
8179 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8180 int x[] = {25, 17};
8181 const int *foo = &x[0];
8182 ++foo;
8183 }
8184 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8185 typedef const int *iptr;
8186 iptr p = 0;
8187 ++p;
8188 }
8189 { /* AIX XL C 1.02.0.0 rejects this saying
8190 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8191 struct s { int j; const int *ap[3]; };
8192 struct s *b; b->j = 5;
8193 }
8194 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8195 const int foo = 10;
8196 if (!foo) return 0;
8197 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008199#endif
8200
8201 ;
8202 return 0;
8203}
8204_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008205rm -f conftest.$ac_objext
8206if { (ac_try="$ac_compile"
8207case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210esac
8211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223esac
8224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest.$ac_objext'
8230 { (case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233esac
8234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_try") 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008239 ac_cv_c_const=yes
8240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241 echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5
8243
8244 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008246
Reid Spencera773bd52006-08-04 18:18:08 +00008247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8250echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008251if test $ac_cv_c_const = no; then
8252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008253cat >>confdefs.h <<\_ACEOF
8254#define const
8255_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008256
8257fi
8258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008259
8260
8261
8262
8263
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008264ac_header_dirent=no
8265for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008266 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8267{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8268echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008272 cat >conftest.$ac_ext <<_ACEOF
8273/* confdefs.h. */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008277/* end confdefs.h. */
8278#include <sys/types.h>
8279#include <$ac_hdr>
8280
8281int
8282main ()
8283{
8284if ((DIR *) 0)
8285return 0;
8286 ;
8287 return 0;
8288}
8289_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008290rm -f conftest.$ac_objext
8291if { (ac_try="$ac_compile"
8292case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295esac
8296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008324 eval "$as_ac_Header=yes"
8325else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326 echo "$as_me: failed program was:" >&5
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
8329 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008331
Reid Spencera773bd52006-08-04 18:18:08 +00008332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334ac_res=`eval echo '${'$as_ac_Header'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336echo "${ECHO_T}$ac_res" >&6; }
8337if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008338 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008339#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008340_ACEOF
8341
8342ac_header_dirent=$ac_hdr; break
8343fi
8344
8345done
8346# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8347if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008348 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8349echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8350if test "${ac_cv_search_opendir+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008352else
8353 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354cat >conftest.$ac_ext <<_ACEOF
8355/* confdefs.h. */
8356_ACEOF
8357cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008359/* end confdefs.h. */
8360
Reid Spencera773bd52006-08-04 18:18:08 +00008361/* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008364#ifdef __cplusplus
8365extern "C"
8366#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008367char opendir ();
8368int
8369main ()
8370{
Reid Spencera773bd52006-08-04 18:18:08 +00008371return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008372 ;
8373 return 0;
8374}
8375_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008376for ac_lib in '' dir; do
8377 if test -z "$ac_lib"; then
8378 ac_res="none required"
8379 else
8380 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008382 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008383 rm -f conftest.$ac_objext conftest$ac_exeext
8384if { (ac_try="$ac_link"
8385case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388esac
8389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_link") 2>conftest.er1
8391 ac_status=$?
8392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8401esac
8402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8411esac
8412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008417 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418else
8419 echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424
Bill Wendlingebcceee2009-04-18 11:20:33 +00008425rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426 conftest$ac_exeext
8427 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008428 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008429fi
John Criswell7a73b802003-06-30 21:59:07 +00008430done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008431if test "${ac_cv_search_opendir+set}" = set; then
8432 :
Reid Spencera773bd52006-08-04 18:18:08 +00008433else
8434 ac_cv_search_opendir=no
8435fi
8436rm conftest.$ac_ext
8437LIBS=$ac_func_search_save_LIBS
8438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008439{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8440echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008441ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008442if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008444
Reid Spencera773bd52006-08-04 18:18:08 +00008445fi
8446
8447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008448 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8449echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8450if test "${ac_cv_search_opendir+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008452else
8453 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008454cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h. */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008459/* end confdefs.h. */
8460
8461/* Override any GCC internal prototype to avoid an error.
8462 Use char because int might match the return type of a GCC
8463 builtin and then its argument prototype would still apply. */
8464#ifdef __cplusplus
8465extern "C"
8466#endif
8467char opendir ();
8468int
8469main ()
8470{
8471return opendir ();
8472 ;
8473 return 0;
8474}
8475_ACEOF
8476for ac_lib in '' x; do
8477 if test -z "$ac_lib"; then
8478 ac_res="none required"
8479 else
8480 ac_res=-l$ac_lib
8481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8482 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008483 rm -f conftest.$ac_objext conftest$ac_exeext
8484if { (ac_try="$ac_link"
8485case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488esac
8489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501esac
8502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511esac
8512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008517 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008518else
8519 echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
8522
Reid Spencera773bd52006-08-04 18:18:08 +00008523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008524
Bill Wendlingebcceee2009-04-18 11:20:33 +00008525rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526 conftest$ac_exeext
8527 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008528 break
8529fi
8530done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008531if test "${ac_cv_search_opendir+set}" = set; then
8532 :
Reid Spencera773bd52006-08-04 18:18:08 +00008533else
8534 ac_cv_search_opendir=no
8535fi
8536rm conftest.$ac_ext
8537LIBS=$ac_func_search_save_LIBS
8538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008539{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8540echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008541ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008542if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8544
8545fi
8546
8547fi
John Criswell7a73b802003-06-30 21:59:07 +00008548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008549
John Criswell7a73b802003-06-30 21:59:07 +00008550for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008551do
8552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558fi
8559ac_res=`eval echo '${'$as_ac_Header'}'`
8560 { echo "$as_me:$LINENO: result: $ac_res" >&5
8561echo "${ECHO_T}$ac_res" >&6; }
8562else
8563 # Is the header compilable?
8564{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8566cat >conftest.$ac_ext <<_ACEOF
8567/* confdefs.h. */
8568_ACEOF
8569cat confdefs.h >>conftest.$ac_ext
8570cat >>conftest.$ac_ext <<_ACEOF
8571/* end confdefs.h. */
8572$ac_includes_default
8573#include <$ac_header>
8574_ACEOF
8575rm -f conftest.$ac_objext
8576if { (ac_try="$ac_compile"
8577case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580esac
8581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8583 ac_status=$?
8584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590 { (case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593esac
8594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_try") 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest.$ac_objext'
8600 { (case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603esac
8604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_try") 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_header_compiler=yes
8610else
8611 echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
8614 ac_header_compiler=no
8615fi
8616
8617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8619echo "${ECHO_T}$ac_header_compiler" >&6; }
8620
8621# Is the header present?
8622{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8624cat >conftest.$ac_ext <<_ACEOF
8625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
8630#include <$ac_header>
8631_ACEOF
8632if { (ac_try="$ac_cpp conftest.$ac_ext"
8633case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } >/dev/null; then
8645 if test -s conftest.err; then
8646 ac_cpp_err=$ac_c_preproc_warn_flag
8647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8648 else
8649 ac_cpp_err=
8650 fi
8651else
8652 ac_cpp_err=yes
8653fi
8654if test -z "$ac_cpp_err"; then
8655 ac_header_preproc=yes
8656else
8657 echo "$as_me: failed program was:" >&5
8658sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 ac_header_preproc=no
8661fi
8662
8663rm -f conftest.err conftest.$ac_ext
8664{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8665echo "${ECHO_T}$ac_header_preproc" >&6; }
8666
8667# So? What about this header?
8668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8669 yes:no: )
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8673echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8674 ac_header_preproc=yes
8675 ;;
8676 no:yes:* )
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8682echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8684echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8688echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8689 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008690## ------------------------------------ ##
8691## Report this to http://llvm.org/bugs/ ##
8692## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008693_ASBOX
8694 ) | sed "s/^/$as_me: WARNING: /" >&2
8695 ;;
8696esac
8697{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701else
8702 eval "$as_ac_Header=\$ac_header_preproc"
8703fi
8704ac_res=`eval echo '${'$as_ac_Header'}'`
8705 { echo "$as_me:$LINENO: result: $ac_res" >&5
8706echo "${ECHO_T}$ac_res" >&6; }
8707
8708fi
8709if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008710 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008712_ACEOF
8713
8714fi
8715
8716done
8717
Reid Spencera773bd52006-08-04 18:18:08 +00008718# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008719if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008720 enableval=$enable_ltdl_install;
8721fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008722
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008724
8725
8726if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008727 INSTALL_LTDL_TRUE=
8728 INSTALL_LTDL_FALSE='#'
8729else
8730 INSTALL_LTDL_TRUE='#'
8731 INSTALL_LTDL_FALSE=
8732fi
8733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008734
8735
8736if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008737 CONVENIENCE_LTDL_TRUE=
8738 CONVENIENCE_LTDL_FALSE='#'
8739else
8740 CONVENIENCE_LTDL_TRUE='#'
8741 CONVENIENCE_LTDL_FALSE=
8742fi
8743
8744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008745{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8746echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008747library_names_spec=
8748libname_spec='lib$name'
8749soname_spec=
8750shrext_cmds=".so"
8751postinstall_cmds=
8752postuninstall_cmds=
8753finish_cmds=
8754finish_eval=
8755shlibpath_var=
8756shlibpath_overrides_runpath=unknown
8757version_type=none
8758dynamic_linker="$host_os ld.so"
8759sys_lib_dlsearch_path_spec="/lib /usr/lib"
8760if test "$GCC" = yes; then
8761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8762 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8763 # if the path contains ";" then we assume it to be the separator
8764 # otherwise default to the standard path separator (i.e. ":") - it is
8765 # assumed that no part of a normal pathname contains ";" but that should
8766 # okay in the real world where ";" in dirpaths is itself problematic.
8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8768 else
8769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8770 fi
8771else
8772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8773fi
8774need_lib_prefix=unknown
8775hardcode_into_libs=no
8776
8777# when you set need_version to no, make sure it does not cause -set_version
8778# flags to be left without arguments
8779need_version=unknown
8780
8781case $host_os in
8782aix3*)
8783 version_type=linux
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8785 shlibpath_var=LIBPATH
8786
8787 # AIX 3 has no versioning support, so we append a major version to the name.
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 ;;
8790
8791aix4* | aix5*)
8792 version_type=linux
8793 need_lib_prefix=no
8794 need_version=no
8795 hardcode_into_libs=yes
8796 if test "$host_cpu" = ia64; then
8797 # AIX 5 supports IA64
8798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8799 shlibpath_var=LD_LIBRARY_PATH
8800 else
8801 # With GCC up to 2.95.x, collect2 would create an import file
8802 # for dependence libraries. The import file would start with
8803 # the line `#! .'. This would cause the generated library to
8804 # depend on `.', always an invalid library. This was fixed in
8805 # development snapshots of GCC prior to 3.0.
8806 case $host_os in
8807 aix4 | aix4.[01] | aix4.[01].*)
8808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8809 echo ' yes '
8810 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8811 :
8812 else
8813 can_build_shared=no
8814 fi
8815 ;;
8816 esac
8817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8818 # soname into executable. Probably we can add versioning support to
8819 # collect2, so additional links can be useful in future.
8820 if test "$aix_use_runtimelinking" = yes; then
8821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8822 # instead of lib<name>.a to let people know that these are not
8823 # typical AIX shared libraries.
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 else
8826 # We preserve .a as extension for shared libraries through AIX4.2
8827 # and later when we are not doing run time linking.
8828 library_names_spec='${libname}${release}.a $libname.a'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 fi
8831 shlibpath_var=LIBPATH
8832 fi
8833 ;;
8834
8835amigaos*)
8836 library_names_spec='$libname.ixlibrary $libname.a'
8837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8838 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'
8839 ;;
8840
8841beos*)
8842 library_names_spec='${libname}${shared_ext}'
8843 dynamic_linker="$host_os ld.so"
8844 shlibpath_var=LIBRARY_PATH
8845 ;;
8846
8847bsdi[45]*)
8848 version_type=linux
8849 need_version=no
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851 soname_spec='${libname}${release}${shared_ext}$major'
8852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8853 shlibpath_var=LD_LIBRARY_PATH
8854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8856 # the default ld.so.conf also contains /usr/contrib/lib and
8857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8858 # libtool to hard-code these into programs
8859 ;;
8860
8861cygwin* | mingw* | pw32*)
8862 version_type=windows
8863 shrext_cmds=".dll"
8864 need_version=no
8865 need_lib_prefix=no
8866
8867 case $GCC,$host_os in
8868 yes,cygwin* | yes,mingw* | yes,pw32*)
8869 library_names_spec='$libname.dll.a'
8870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8871 postinstall_cmds='base_file=`basename \${file}`~
8872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8873 dldir=$destdir/`dirname \$dlpath`~
8874 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008875 $install_prog $dir/$dlname \$dldir/$dlname~
8876 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8878 dlpath=$dir/\$dldll~
8879 $rm \$dlpath'
8880 shlibpath_overrides_runpath=yes
8881
8882 case $host_os in
8883 cygwin*)
8884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8887 ;;
8888 mingw*)
8889 # MinGW DLLs use traditional 'lib' prefix
8890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8892 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8893 # It is most probably a Windows format PATH printed by
8894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8895 # path with ; separators, and with drive letters. We can handle the
8896 # drive letters (cygwin fileutils understands them), so leave them,
8897 # especially as we might pass files found there to a mingw objdump,
8898 # which wouldn't understand a cygwinified path. Ahh.
8899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8900 else
8901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8902 fi
8903 ;;
8904 pw32*)
8905 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008906 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 +00008907 ;;
8908 esac
8909 ;;
8910
8911 *)
8912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8913 ;;
8914 esac
8915 dynamic_linker='Win32 ld.exe'
8916 # FIXME: first we should search . and the directory the executable is in
8917 shlibpath_var=PATH
8918 ;;
8919
8920darwin* | rhapsody*)
8921 dynamic_linker="$host_os dyld"
8922 version_type=darwin
8923 need_lib_prefix=no
8924 need_version=no
8925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8926 soname_spec='${libname}${release}${major}$shared_ext'
8927 shlibpath_overrides_runpath=yes
8928 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008929 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8931 if test "$GCC" = yes; then
8932 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"`
8933 else
8934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8935 fi
8936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8937 ;;
8938
8939dgux*)
8940 version_type=linux
8941 need_lib_prefix=no
8942 need_version=no
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 ;;
8947
Eric Christopher360fa9a2011-10-26 00:42:12 +00008948freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008949 dynamic_linker=no
8950 ;;
8951
8952kfreebsd*-gnu)
8953 version_type=linux
8954 need_lib_prefix=no
8955 need_version=no
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=no
8960 hardcode_into_libs=yes
8961 dynamic_linker='GNU ld.so'
8962 ;;
8963
Reid Spencera773bd52006-08-04 18:18:08 +00008964freebsd* | dragonfly*)
8965 # DragonFly does not have aout. When/if they implement a new
8966 # versioning mechanism, adjust this.
8967 if test -x /usr/bin/objformat; then
8968 objformat=`/usr/bin/objformat`
8969 else
8970 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008971 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008972 *) objformat=elf ;;
8973 esac
8974 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008975 version_type=freebsd-$objformat
8976 case $version_type in
8977 freebsd-elf*)
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8979 need_version=no
8980 need_lib_prefix=no
8981 ;;
8982 freebsd-*)
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8984 need_version=yes
8985 ;;
8986 esac
8987 shlibpath_var=LD_LIBRARY_PATH
8988 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008989 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008990 shlibpath_overrides_runpath=yes
8991 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008992 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008993 shlibpath_overrides_runpath=yes
8994 hardcode_into_libs=yes
8995 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008998 shlibpath_overrides_runpath=no
8999 hardcode_into_libs=yes
9000 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009001 freebsd*) # from 4.6 on
9002 shlibpath_overrides_runpath=yes
9003 hardcode_into_libs=yes
9004 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009005 esac
9006 ;;
9007
9008gnu*)
9009 version_type=linux
9010 need_lib_prefix=no
9011 need_version=no
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 hardcode_into_libs=yes
9016 ;;
9017
9018hpux9* | hpux10* | hpux11*)
9019 # Give a soname corresponding to the major version so that dld.sl refuses to
9020 # link against other versions.
9021 version_type=sunos
9022 need_lib_prefix=no
9023 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009024 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009025 ia64*)
9026 shrext_cmds='.so'
9027 hardcode_into_libs=yes
9028 dynamic_linker="$host_os dld.so"
9029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 if test "X$HPUX_IA64_MODE" = X32; then
9034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9035 else
9036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9037 fi
9038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039 ;;
9040 hppa*64*)
9041 shrext_cmds='.sl'
9042 hardcode_into_libs=yes
9043 dynamic_linker="$host_os dld.sl"
9044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050 ;;
9051 *)
9052 shrext_cmds='.sl'
9053 dynamic_linker="$host_os dld.sl"
9054 shlibpath_var=SHLIB_PATH
9055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 ;;
9059 esac
9060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9061 postinstall_cmds='chmod 555 $lib'
9062 ;;
9063
Reid Spencera773bd52006-08-04 18:18:08 +00009064interix3*)
9065 version_type=linux
9066 need_lib_prefix=no
9067 need_version=no
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=no
9073 hardcode_into_libs=yes
9074 ;;
9075
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009076irix5* | irix6* | nonstopux*)
9077 case $host_os in
9078 nonstopux*) version_type=nonstopux ;;
9079 *)
9080 if test "$lt_cv_prog_gnu_ld" = yes; then
9081 version_type=linux
9082 else
9083 version_type=irix
9084 fi ;;
9085 esac
9086 need_lib_prefix=no
9087 need_version=no
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9090 case $host_os in
9091 irix5* | nonstopux*)
9092 libsuff= shlibsuff=
9093 ;;
9094 *)
9095 case $LD in # libtool.m4 will add one of these switches to LD
9096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9097 libsuff= shlibsuff= libmagic=32-bit;;
9098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9099 libsuff=32 shlibsuff=N32 libmagic=N32;;
9100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9101 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9102 *) libsuff= shlibsuff= libmagic=never-match;;
9103 esac
9104 ;;
9105 esac
9106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9107 shlibpath_overrides_runpath=no
9108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9110 hardcode_into_libs=yes
9111 ;;
9112
9113# No shared lib support for Linux oldld, aout, or coff.
9114linux*oldld* | linux*aout* | linux*coff*)
9115 dynamic_linker=no
9116 ;;
9117
9118# This must be Linux ELF.
9119linux*)
9120 version_type=linux
9121 need_lib_prefix=no
9122 need_version=no
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=no
9128 # This implies no fast_install, which is unacceptable.
9129 # Some rework will be needed to allow for fast_install
9130 # before this can be enabled.
9131 hardcode_into_libs=yes
9132
9133 # Append ld.so.conf contents to the search path
9134 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009135 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 +00009136 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9137 fi
9138
9139 # We used to test for /lib/ld.so.1 and disable shared libraries on
9140 # powerpc, because MkLinux only supported shared libraries with the
9141 # GNU dynamic linker. Since this was broken with cross compilers,
9142 # most powerpc-linux boxes support dynamic linking these days and
9143 # people can always --disable-shared, the test was removed, and we
9144 # assume the GNU/Linux dynamic linker is in use.
9145 dynamic_linker='GNU/Linux ld.so'
9146 ;;
9147
9148knetbsd*-gnu)
9149 version_type=linux
9150 need_lib_prefix=no
9151 need_version=no
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 shlibpath_overrides_runpath=no
9156 hardcode_into_libs=yes
9157 dynamic_linker='GNU ld.so'
9158 ;;
9159
9160netbsd*)
9161 version_type=sunos
9162 need_lib_prefix=no
9163 need_version=no
9164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167 dynamic_linker='NetBSD (a.out) ld.so'
9168 else
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 dynamic_linker='NetBSD ld.elf_so'
9172 fi
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=yes
9175 hardcode_into_libs=yes
9176 ;;
9177
9178newsos6)
9179 version_type=linux
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=yes
9183 ;;
9184
9185nto-qnx*)
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=yes
9193 ;;
9194
9195openbsd*)
9196 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009197 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009198 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9200 case $host_os in
9201 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9202 *) need_version=no ;;
9203 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9208 case $host_os in
9209 openbsd2.[89] | openbsd2.[89].*)
9210 shlibpath_overrides_runpath=no
9211 ;;
9212 *)
9213 shlibpath_overrides_runpath=yes
9214 ;;
9215 esac
9216 else
9217 shlibpath_overrides_runpath=yes
9218 fi
9219 ;;
9220
9221os2*)
9222 libname_spec='$name'
9223 shrext_cmds=".dll"
9224 need_lib_prefix=no
9225 library_names_spec='$libname${shared_ext} $libname.a'
9226 dynamic_linker='OS/2 ld.exe'
9227 shlibpath_var=LIBPATH
9228 ;;
9229
9230osf3* | osf4* | osf5*)
9231 version_type=osf
9232 need_lib_prefix=no
9233 need_version=no
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 shlibpath_var=LD_LIBRARY_PATH
9237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9239 ;;
9240
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241solaris*)
9242 version_type=linux
9243 need_lib_prefix=no
9244 need_version=no
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 soname_spec='${libname}${release}${shared_ext}$major'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 shlibpath_overrides_runpath=yes
9249 hardcode_into_libs=yes
9250 # ldd complains unless libraries are executable
9251 postinstall_cmds='chmod +x $lib'
9252 ;;
9253
9254sunos4*)
9255 version_type=sunos
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=yes
9260 if test "$with_gnu_ld" = yes; then
9261 need_lib_prefix=no
9262 fi
9263 need_version=yes
9264 ;;
9265
Reid Spencera773bd52006-08-04 18:18:08 +00009266sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009267 version_type=linux
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 shlibpath_var=LD_LIBRARY_PATH
9271 case $host_vendor in
9272 sni)
9273 shlibpath_overrides_runpath=no
9274 need_lib_prefix=no
9275 export_dynamic_flag_spec='${wl}-Blargedynsym'
9276 runpath_var=LD_RUN_PATH
9277 ;;
9278 siemens)
9279 need_lib_prefix=no
9280 ;;
9281 motorola)
9282 need_lib_prefix=no
9283 need_version=no
9284 shlibpath_overrides_runpath=no
9285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9286 ;;
9287 esac
9288 ;;
9289
9290sysv4*MP*)
9291 if test -d /usr/nec ;then
9292 version_type=linux
9293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9294 soname_spec='$libname${shared_ext}.$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 fi
9297 ;;
9298
Reid Spencera773bd52006-08-04 18:18:08 +00009299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9300 version_type=freebsd-elf
9301 need_lib_prefix=no
9302 need_version=no
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 hardcode_into_libs=yes
9307 if test "$with_gnu_ld" = yes; then
9308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9309 shlibpath_overrides_runpath=no
9310 else
9311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9312 shlibpath_overrides_runpath=yes
9313 case $host_os in
9314 sco3.2v5*)
9315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9316 ;;
9317 esac
9318 fi
9319 sys_lib_dlsearch_path_spec='/usr/lib'
9320 ;;
9321
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009322uts4*)
9323 version_type=linux
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9327 ;;
9328
9329*)
9330 dynamic_linker=no
9331 ;;
9332esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009333{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9334echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009335test "$dynamic_linker" = no && can_build_shared=no
9336
Reid Spencera773bd52006-08-04 18:18:08 +00009337variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9338if test "$GCC" = yes; then
9339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9340fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009341
Reid Spencera773bd52006-08-04 18:18:08 +00009342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009343{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9344echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9345if test "${libltdl_cv_shlibext+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009347else
9348
9349module=yes
9350eval libltdl_cv_shlibext=$shrext_cmds
9351
9352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009353{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9354echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009355if test -n "$libltdl_cv_shlibext"; then
9356
9357cat >>confdefs.h <<_ACEOF
9358#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9359_ACEOF
9360
9361fi
9362
9363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009364{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9365echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9366if test "${libltdl_cv_shlibpath_var+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009368else
9369 libltdl_cv_shlibpath_var="$shlibpath_var"
9370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009371{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9372echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373if test -n "$libltdl_cv_shlibpath_var"; then
9374
9375cat >>confdefs.h <<_ACEOF
9376#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9377_ACEOF
9378
9379fi
9380
9381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009382{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9383echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9384if test "${libltdl_cv_sys_search_path+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009386else
9387 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009389{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9390echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391if test -n "$libltdl_cv_sys_search_path"; then
9392 sys_search_path=
9393 for dir in $libltdl_cv_sys_search_path; do
9394 if test -z "$sys_search_path"; then
9395 sys_search_path="$dir"
9396 else
9397 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9398 fi
9399 done
9400
9401cat >>confdefs.h <<_ACEOF
9402#define LTDL_SYSSEARCHPATH "$sys_search_path"
9403_ACEOF
9404
9405fi
9406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009407{ echo "$as_me:$LINENO: checking for objdir" >&5
9408echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9409if test "${libltdl_cv_objdir+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009411else
9412 libltdl_cv_objdir="$objdir"
9413 if test -n "$objdir"; then
9414 :
9415 else
9416 rm -f .libs 2>/dev/null
9417 mkdir .libs 2>/dev/null
9418 if test -d .libs; then
9419 libltdl_cv_objdir=.libs
9420 else
9421 # MS-DOS does not allow filenames that begin with a dot.
9422 libltdl_cv_objdir=_libs
9423 fi
9424 rmdir .libs 2>/dev/null
9425 fi
9426
9427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009428{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9429echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430
9431cat >>confdefs.h <<_ACEOF
9432#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9433_ACEOF
9434
9435
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009436
9437
9438
9439
9440# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009441{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9442echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9443if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009445else
9446
9447# These are sane defaults that work on at least a few old systems.
9448# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9449
9450# Character class describing NM global symbol codes.
9451symcode='[BCDEGRST]'
9452
9453# Regexp to match symbols that can be accessed directly from C.
9454sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9455
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009456# Transform an extracted symbol line into a proper C declaration
9457lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9458
9459# Transform an extracted symbol line into symbol name and symbol address
9460lt_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'"
9461
9462# Define system-specific variables.
9463case $host_os in
9464aix*)
9465 symcode='[BCDT]'
9466 ;;
9467cygwin* | mingw* | pw32*)
9468 symcode='[ABCDGISTW]'
9469 ;;
9470hpux*) # Its linker distinguishes data from code symbols
9471 if test "$host_cpu" = ia64; then
9472 symcode='[ABCDEGRST]'
9473 fi
9474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9475 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'"
9476 ;;
9477linux*)
9478 if test "$host_cpu" = ia64; then
9479 symcode='[ABCDGIRSTW]'
9480 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9481 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'"
9482 fi
9483 ;;
9484irix* | nonstopux*)
9485 symcode='[BCDEGRST]'
9486 ;;
9487osf*)
9488 symcode='[BCDEGQRST]'
9489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009490solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009491 symcode='[BDRT]'
9492 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009493sco3.2v5*)
9494 symcode='[DT]'
9495 ;;
9496sysv4.2uw2*)
9497 symcode='[DT]'
9498 ;;
9499sysv5* | sco5v6* | unixware* | OpenUNIX*)
9500 symcode='[ABDT]'
9501 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009502sysv4)
9503 symcode='[DFNSTU]'
9504 ;;
9505esac
9506
9507# Handle CRLF in mingw tool chain
9508opt_cr=
9509case $build_os in
9510mingw*)
9511 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9512 ;;
9513esac
9514
9515# If we're using GNU nm, then use its standard symbol codes.
9516case `$NM -V 2>&1` in
9517*GNU* | *'with BFD'*)
9518 symcode='[ABCDGIRSTW]' ;;
9519esac
9520
9521# Try without a prefix undercore, then with it.
9522for ac_symprfx in "" "_"; do
9523
Reid Spencera773bd52006-08-04 18:18:08 +00009524 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9525 symxfrm="\\1 $ac_symprfx\\2 \\2"
9526
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009527 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009528 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 +00009529
9530 # Check to see that the pipe works correctly.
9531 pipe_works=no
9532
9533 rm -f conftest*
9534 cat > conftest.$ac_ext <<EOF
9535#ifdef __cplusplus
9536extern "C" {
9537#endif
9538char nm_test_var;
9539void nm_test_func(){}
9540#ifdef __cplusplus
9541}
9542#endif
9543int main(){nm_test_var='a';nm_test_func();return(0);}
9544EOF
9545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009547 (eval $ac_compile) 2>&5
9548 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009551 # Now try to grab the symbols.
9552 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009553 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 +00009554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9555 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009558 # Try sorting and uniquifying the output.
9559 if sort "$nlist" | uniq > "$nlist"T; then
9560 mv -f "$nlist"T "$nlist"
9561 else
9562 rm -f "$nlist"T
9563 fi
9564
9565 # Make sure that we snagged all the symbols we need.
9566 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9567 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9568 cat <<EOF > conftest.$ac_ext
9569#ifdef __cplusplus
9570extern "C" {
9571#endif
9572
9573EOF
9574 # Now generate the symbol file.
9575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9576
9577 cat <<EOF >> conftest.$ac_ext
9578#if defined (__STDC__) && __STDC__
9579# define lt_ptr_t void *
9580#else
9581# define lt_ptr_t char *
9582# define const
9583#endif
9584
9585/* The mapping between symbol names and symbols. */
9586const struct {
9587 const char *name;
9588 lt_ptr_t address;
9589}
9590lt_preloaded_symbols[] =
9591{
9592EOF
9593 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9594 cat <<\EOF >> conftest.$ac_ext
9595 {0, (lt_ptr_t) 0}
9596};
9597
9598#ifdef __cplusplus
9599}
9600#endif
9601EOF
9602 # Now try linking the two files.
9603 mv conftest.$ac_objext conftstm.$ac_objext
9604 lt_save_LIBS="$LIBS"
9605 lt_save_CFLAGS="$CFLAGS"
9606 LIBS="conftstm.$ac_objext"
9607 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009609 (eval $ac_link) 2>&5
9610 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009613 pipe_works=yes
9614 fi
9615 LIBS="$lt_save_LIBS"
9616 CFLAGS="$lt_save_CFLAGS"
9617 else
9618 echo "cannot find nm_test_func in $nlist" >&5
9619 fi
9620 else
9621 echo "cannot find nm_test_var in $nlist" >&5
9622 fi
9623 else
9624 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9625 fi
9626 else
9627 echo "$progname: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9629 fi
9630 rm -f conftest* conftst*
9631
9632 # Do not use the global_symbol_pipe unless it works.
9633 if test "$pipe_works" = yes; then
9634 break
9635 else
9636 lt_cv_sys_global_symbol_pipe=
9637 fi
9638done
9639
9640fi
9641
9642if test -z "$lt_cv_sys_global_symbol_pipe"; then
9643 lt_cv_sys_global_symbol_to_cdecl=
9644fi
9645if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009646 { echo "$as_me:$LINENO: result: failed" >&5
9647echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009649 { echo "$as_me:$LINENO: result: ok" >&5
9650echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009651fi
9652
9653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009654{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9655echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9656if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009658else
9659 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9660 libltdl_cv_preloaded_symbols=yes
9661 else
9662 libltdl_cv_preloaded_symbols=no
9663 fi
9664
9665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009666{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9667echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009670cat >>confdefs.h <<\_ACEOF
9671#define HAVE_PRELOADED_SYMBOLS 1
9672_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009673
9674fi
9675
9676LIBADD_DL=
9677
9678ac_ext=c
9679ac_cpp='$CPP $CPPFLAGS'
9680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682ac_compiler_gnu=$ac_cv_c_compiler_gnu
9683
9684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009685{ echo "$as_me:$LINENO: checking for shl_load" >&5
9686echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9687if test "${ac_cv_func_shl_load+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9689else
9690 cat >conftest.$ac_ext <<_ACEOF
9691/* confdefs.h. */
9692_ACEOF
9693cat confdefs.h >>conftest.$ac_ext
9694cat >>conftest.$ac_ext <<_ACEOF
9695/* end confdefs.h. */
9696/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9698#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009700/* System header to define __stub macros and hopefully few prototypes,
9701 which can conflict with char shl_load (); below.
9702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9703 <limits.h> exists even on freestanding compilers. */
9704
9705#ifdef __STDC__
9706# include <limits.h>
9707#else
9708# include <assert.h>
9709#endif
9710
9711#undef shl_load
9712
9713/* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9716#ifdef __cplusplus
9717extern "C"
9718#endif
9719char shl_load ();
9720/* The GNU C library defines this for functions which it implements
9721 to always fail with ENOSYS. Some functions are actually named
9722 something starting with __ and the normal name is an alias. */
9723#if defined __stub_shl_load || defined __stub___shl_load
9724choke me
9725#endif
9726
9727int
9728main ()
9729{
9730return shl_load ();
9731 ;
9732 return 0;
9733}
9734_ACEOF
9735rm -f conftest.$ac_objext conftest$ac_exeext
9736if { (ac_try="$ac_link"
9737case "(($ac_try" in
9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9740esac
9741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_link") 2>conftest.er1
9743 ac_status=$?
9744 grep -v '^ *+' conftest.er1 >conftest.err
9745 rm -f conftest.er1
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9750 { (case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753esac
9754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_try") 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763esac
9764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_try") 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_func_shl_load=yes
9770else
9771 echo "$as_me: failed program was:" >&5
9772sed 's/^/| /' conftest.$ac_ext >&5
9773
9774 ac_cv_func_shl_load=no
9775fi
9776
9777rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9779fi
9780{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9781echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9782if test $ac_cv_func_shl_load = yes; then
9783
9784cat >>confdefs.h <<\_ACEOF
9785#define HAVE_SHL_LOAD 1
9786_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009787
9788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009789 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9790echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9791if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793else
9794 ac_check_lib_save_LIBS=$LIBS
9795LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009796cat >conftest.$ac_ext <<_ACEOF
9797/* confdefs.h. */
9798_ACEOF
9799cat confdefs.h >>conftest.$ac_ext
9800cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009801/* end confdefs.h. */
9802
Reid Spencera773bd52006-08-04 18:18:08 +00009803/* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009806#ifdef __cplusplus
9807extern "C"
9808#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009809char shl_load ();
9810int
9811main ()
9812{
Reid Spencera773bd52006-08-04 18:18:08 +00009813return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814 ;
9815 return 0;
9816}
9817_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009818rm -f conftest.$ac_objext conftest$ac_exeext
9819if { (ac_try="$ac_link"
9820case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846esac
9847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852 ac_cv_lib_dld_shl_load=yes
9853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009854 echo "$as_me: failed program was:" >&5
9855sed 's/^/| /' conftest.$ac_ext >&5
9856
9857 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009859
Bill Wendlingebcceee2009-04-18 11:20:33 +00009860rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009861 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862LIBS=$ac_check_lib_save_LIBS
9863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009864{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9865echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9866if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009868cat >>confdefs.h <<\_ACEOF
9869#define HAVE_SHL_LOAD 1
9870_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871
9872 LIBADD_DL="$LIBADD_DL -ldld"
9873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009874 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9875echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9876if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878else
9879 ac_check_lib_save_LIBS=$LIBS
9880LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009881cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h. */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009886/* end confdefs.h. */
9887
Reid Spencera773bd52006-08-04 18:18:08 +00009888/* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891#ifdef __cplusplus
9892extern "C"
9893#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894char dlopen ();
9895int
9896main ()
9897{
Reid Spencera773bd52006-08-04 18:18:08 +00009898return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899 ;
9900 return 0;
9901}
9902_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009903rm -f conftest.$ac_objext conftest$ac_exeext
9904if { (ac_try="$ac_link"
9905case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908esac
9909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
9911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921esac
9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937 ac_cv_lib_dl_dlopen=yes
9938else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009939 echo "$as_me: failed program was:" >&5
9940sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009944
Bill Wendlingebcceee2009-04-18 11:20:33 +00009945rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009946 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009947LIBS=$ac_check_lib_save_LIBS
9948fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009949{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9950echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9951if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009953cat >>confdefs.h <<\_ACEOF
9954#define HAVE_LIBDL 1
9955_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009956
9957 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009959 cat >conftest.$ac_ext <<_ACEOF
9960/* confdefs.h. */
9961_ACEOF
9962cat confdefs.h >>conftest.$ac_ext
9963cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009964/* end confdefs.h. */
9965#if HAVE_DLFCN_H
9966# include <dlfcn.h>
9967#endif
9968
9969int
9970main ()
9971{
9972dlopen(0, 0);
9973 ;
9974 return 0;
9975}
9976_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009977rm -f conftest.$ac_objext conftest$ac_exeext
9978if { (ac_try="$ac_link"
9979case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995esac
9996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005esac
10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010012cat >>confdefs.h <<\_ACEOF
10013#define HAVE_LIBDL 1
10014_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010015 libltdl_cv_func_dlopen="yes"
10016else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010017 echo "$as_me: failed program was:" >&5
10018sed 's/^/| /' conftest.$ac_ext >&5
10019
10020 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10021echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10022if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024else
10025 ac_check_lib_save_LIBS=$LIBS
10026LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010027cat >conftest.$ac_ext <<_ACEOF
10028/* confdefs.h. */
10029_ACEOF
10030cat confdefs.h >>conftest.$ac_ext
10031cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032/* end confdefs.h. */
10033
Reid Spencera773bd52006-08-04 18:18:08 +000010034/* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037#ifdef __cplusplus
10038extern "C"
10039#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040char dlopen ();
10041int
10042main ()
10043{
Reid Spencera773bd52006-08-04 18:18:08 +000010044return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010045 ;
10046 return 0;
10047}
10048_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010049rm -f conftest.$ac_objext conftest$ac_exeext
10050if { (ac_try="$ac_link"
10051case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054esac
10055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
10063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (case "(($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_try") 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083 ac_cv_lib_svld_dlopen=yes
10084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010085 echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010090
Bill Wendlingebcceee2009-04-18 11:20:33 +000010091rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010092 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093LIBS=$ac_check_lib_save_LIBS
10094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010095{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10096echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10097if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010099cat >>confdefs.h <<\_ACEOF
10100#define HAVE_LIBDL 1
10101_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010102
10103 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010105 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10106echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10107if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010109else
10110 ac_check_lib_save_LIBS=$LIBS
10111LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010112cat >conftest.$ac_ext <<_ACEOF
10113/* confdefs.h. */
10114_ACEOF
10115cat confdefs.h >>conftest.$ac_ext
10116cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010117/* end confdefs.h. */
10118
Reid Spencera773bd52006-08-04 18:18:08 +000010119/* Override any GCC internal prototype to avoid an error.
10120 Use char because int might match the return type of a GCC
10121 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122#ifdef __cplusplus
10123extern "C"
10124#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010125char dld_link ();
10126int
10127main ()
10128{
Reid Spencera773bd52006-08-04 18:18:08 +000010129return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010130 ;
10131 return 0;
10132}
10133_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010134rm -f conftest.$ac_objext conftest$ac_exeext
10135if { (ac_try="$ac_link"
10136case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139esac
10140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_link") 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10152esac
10153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168 ac_cv_lib_dld_dld_link=yes
10169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010170 echo "$as_me: failed program was:" >&5
10171sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010175
Bill Wendlingebcceee2009-04-18 11:20:33 +000010176rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010177 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010178LIBS=$ac_check_lib_save_LIBS
10179fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010180{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10181echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10182if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010184cat >>confdefs.h <<\_ACEOF
10185#define HAVE_DLD 1
10186_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187
10188 LIBADD_DL="$LIBADD_DL -ldld"
10189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010190 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10191echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10192if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194else
10195 cat >conftest.$ac_ext <<_ACEOF
10196/* confdefs.h. */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h. */
10201/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10203#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010205/* System header to define __stub macros and hopefully few prototypes,
10206 which can conflict with char _dyld_func_lookup (); below.
10207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010210#ifdef __STDC__
10211# include <limits.h>
10212#else
10213# include <assert.h>
10214#endif
10215
10216#undef _dyld_func_lookup
10217
10218/* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
10221#ifdef __cplusplus
10222extern "C"
10223#endif
10224char _dyld_func_lookup ();
10225/* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
10228#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10229choke me
10230#endif
10231
10232int
10233main ()
10234{
10235return _dyld_func_lookup ();
10236 ;
10237 return 0;
10238}
10239_ACEOF
10240rm -f conftest.$ac_objext conftest$ac_exeext
10241if { (ac_try="$ac_link"
10242case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245esac
10246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_link") 2>conftest.er1
10248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258esac
10259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268esac
10269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 ac_cv_func__dyld_func_lookup=yes
10275else
10276 echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
10279 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010280fi
Reid Spencera773bd52006-08-04 18:18:08 +000010281
Bill Wendlingebcceee2009-04-18 11:20:33 +000010282rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010283 conftest$ac_exeext conftest.$ac_ext
10284fi
10285{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10286echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10287if test $ac_cv_func__dyld_func_lookup = yes; then
10288
10289cat >>confdefs.h <<\_ACEOF
10290#define HAVE_DYLD 1
10291_ACEOF
10292
10293fi
10294
10295
10296fi
10297
10298
10299fi
10300
10301
10302fi
10303
10304rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306
10307fi
10308
10309
10310fi
10311
10312
10313fi
10314
10315
10316if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10317then
10318 lt_save_LIBS="$LIBS"
10319 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010320
10321for ac_func in dlerror
10322do
10323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10324{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10326if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328else
10329 cat >conftest.$ac_ext <<_ACEOF
10330/* confdefs.h. */
10331_ACEOF
10332cat confdefs.h >>conftest.$ac_ext
10333cat >>conftest.$ac_ext <<_ACEOF
10334/* end confdefs.h. */
10335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10337#define $ac_func innocuous_$ac_func
10338
10339/* System header to define __stub macros and hopefully few prototypes,
10340 which can conflict with char $ac_func (); below.
10341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10342 <limits.h> exists even on freestanding compilers. */
10343
10344#ifdef __STDC__
10345# include <limits.h>
10346#else
10347# include <assert.h>
10348#endif
10349
10350#undef $ac_func
10351
10352/* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10355#ifdef __cplusplus
10356extern "C"
10357#endif
10358char $ac_func ();
10359/* The GNU C library defines this for functions which it implements
10360 to always fail with ENOSYS. Some functions are actually named
10361 something starting with __ and the normal name is an alias. */
10362#if defined __stub_$ac_func || defined __stub___$ac_func
10363choke me
10364#endif
10365
10366int
10367main ()
10368{
10369return $ac_func ();
10370 ;
10371 return 0;
10372}
10373_ACEOF
10374rm -f conftest.$ac_objext conftest$ac_exeext
10375if { (ac_try="$ac_link"
10376case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10379esac
10380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_link") 2>conftest.er1
10382 ac_status=$?
10383 grep -v '^ *+' conftest.er1 >conftest.err
10384 rm -f conftest.er1
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10389 { (case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392esac
10393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_try") 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; } &&
10398 { ac_try='test -s conftest$ac_exeext'
10399 { (case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10402esac
10403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_try") 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 eval "$as_ac_var=yes"
10409else
10410 echo "$as_me: failed program was:" >&5
10411sed 's/^/| /' conftest.$ac_ext >&5
10412
10413 eval "$as_ac_var=no"
10414fi
10415
10416rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418fi
10419ac_res=`eval echo '${'$as_ac_var'}'`
10420 { echo "$as_me:$LINENO: result: $ac_res" >&5
10421echo "${ECHO_T}$ac_res" >&6; }
10422if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425_ACEOF
10426
10427fi
10428done
10429
10430 LIBS="$lt_save_LIBS"
10431fi
10432ac_ext=c
10433ac_cpp='$CPP $CPPFLAGS'
10434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10436ac_compiler_gnu=$ac_cv_c_compiler_gnu
10437
10438
10439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010440{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10441echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10442if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444else
10445 ac_cv_sys_symbol_underscore=no
10446 cat > conftest.$ac_ext <<EOF
10447void nm_test_func(){}
10448int main(){nm_test_func;return 0;}
10449EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 (eval $ac_compile) 2>&5
10452 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010455 # Now try to grab the symbols.
10456 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010457 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 +000010458 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10459 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462 # See whether the symbols have a leading underscore.
10463 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10464 ac_cv_sys_symbol_underscore=yes
10465 else
10466 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10467 :
10468 else
10469 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10470 fi
10471 fi
10472 else
10473 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10474 fi
10475 else
10476 echo "configure: failed program was:" >&5
10477 cat conftest.c >&5
10478 fi
10479 rm -rf conftest*
10480
10481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010482{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10483echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010484
10485
10486if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10487 if test x"$libltdl_cv_func_dlopen" = xyes ||
10488 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010489 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10490echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10491if test "${libltdl_cv_need_uscore+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010493else
10494 libltdl_cv_need_uscore=unknown
10495 save_LIBS="$LIBS"
10496 LIBS="$LIBS $LIBADD_DL"
10497 if test "$cross_compiling" = yes; then :
10498 libltdl_cv_need_uscore=cross
10499else
10500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10501 lt_status=$lt_dlunknown
10502 cat > conftest.$ac_ext <<EOF
Rafael Espindolaf6139192011-12-22 14:01:18 +000010503#line 10503 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504#include "confdefs.h"
10505
10506#if HAVE_DLFCN_H
10507#include <dlfcn.h>
10508#endif
10509
10510#include <stdio.h>
10511
10512#ifdef RTLD_GLOBAL
10513# define LT_DLGLOBAL RTLD_GLOBAL
10514#else
10515# ifdef DL_GLOBAL
10516# define LT_DLGLOBAL DL_GLOBAL
10517# else
10518# define LT_DLGLOBAL 0
10519# endif
10520#endif
10521
10522/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10523 find out it does not work in some platform. */
10524#ifndef LT_DLLAZY_OR_NOW
10525# ifdef RTLD_LAZY
10526# define LT_DLLAZY_OR_NOW RTLD_LAZY
10527# else
10528# ifdef DL_LAZY
10529# define LT_DLLAZY_OR_NOW DL_LAZY
10530# else
10531# ifdef RTLD_NOW
10532# define LT_DLLAZY_OR_NOW RTLD_NOW
10533# else
10534# ifdef DL_NOW
10535# define LT_DLLAZY_OR_NOW DL_NOW
10536# else
10537# define LT_DLLAZY_OR_NOW 0
10538# endif
10539# endif
10540# endif
10541# endif
10542#endif
10543
10544#ifdef __cplusplus
10545extern "C" void exit (int);
10546#endif
10547
10548void fnord() { int i=42;}
10549int main ()
10550{
10551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10552 int status = $lt_dlunknown;
10553
10554 if (self)
10555 {
10556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10557 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10558 /* dlclose (self); */
10559 }
Reid Spencera773bd52006-08-04 18:18:08 +000010560 else
10561 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562
10563 exit (status);
10564}
10565EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567 (eval $ac_link) 2>&5
10568 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010571 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010572 lt_status=$?
10573 case x$lt_status in
10574 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10575 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010576 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577 esac
10578 else :
10579 # compilation failed
10580
10581 fi
10582fi
10583rm -fr conftest*
10584
10585 LIBS="$save_LIBS"
10586
10587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010588{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10589echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590 fi
10591fi
10592
10593if test x"$libltdl_cv_need_uscore" = xyes; then
10594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010595cat >>confdefs.h <<\_ACEOF
10596#define NEED_USCORE 1
10597_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598
10599fi
10600
10601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010602{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10603echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10604if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010606else
10607 # PORTME does your system automatically load deplibs for dlopen?
10608 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10609 # For now, we just catch OSes we know something about -- in the
10610 # future, we'll try test this programmatically.
10611 libltdl_cv_sys_dlopen_deplibs=unknown
10612 case "$host_os" in
10613 aix3*|aix4.1.*|aix4.2.*)
10614 # Unknown whether this is true for these versions of AIX, but
10615 # we want this `case' here to explicitly catch those versions.
10616 libltdl_cv_sys_dlopen_deplibs=unknown
10617 ;;
10618 aix[45]*)
10619 libltdl_cv_sys_dlopen_deplibs=yes
10620 ;;
10621 darwin*)
10622 # Assuming the user has installed a libdl from somewhere, this is true
10623 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10624 libltdl_cv_sys_dlopen_deplibs=yes
10625 ;;
10626 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10627 # GNU and its variants, using gnu ld.so (Glibc)
10628 libltdl_cv_sys_dlopen_deplibs=yes
10629 ;;
10630 hpux10*|hpux11*)
10631 libltdl_cv_sys_dlopen_deplibs=yes
10632 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010633 interix*)
10634 libltdl_cv_sys_dlopen_deplibs=yes
10635 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636 irix[12345]*|irix6.[01]*)
10637 # Catch all versions of IRIX before 6.2, and indicate that we don't
10638 # know how it worked for any of those versions.
10639 libltdl_cv_sys_dlopen_deplibs=unknown
10640 ;;
10641 irix*)
10642 # The case above catches anything before 6.2, and it's known that
10643 # at 6.2 and later dlopen does load deplibs.
10644 libltdl_cv_sys_dlopen_deplibs=yes
10645 ;;
10646 netbsd*)
10647 libltdl_cv_sys_dlopen_deplibs=yes
10648 ;;
10649 openbsd*)
10650 libltdl_cv_sys_dlopen_deplibs=yes
10651 ;;
10652 osf[1234]*)
10653 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10654 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010655 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656 libltdl_cv_sys_dlopen_deplibs=no
10657 ;;
10658 osf5.0|osf5.0a|osf5.1)
10659 # dlopen *does* load deplibs and with the right loader patch applied
10660 # it even uses RPATH in a shared library to search for shared objects
10661 # that the library depends on, but there's no easy way to know if that
10662 # patch is installed. Since this is the case, all we can really
10663 # say is unknown -- it depends on the patch being installed. If
10664 # it is, this changes to `yes'. Without it, it would be `no'.
10665 libltdl_cv_sys_dlopen_deplibs=unknown
10666 ;;
10667 osf*)
10668 # the two cases above should catch all versions of osf <= 5.1. Read
10669 # the comments above for what we know about them.
10670 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10671 # is used to find them so we can finally say `yes'.
10672 libltdl_cv_sys_dlopen_deplibs=yes
10673 ;;
10674 solaris*)
10675 libltdl_cv_sys_dlopen_deplibs=yes
10676 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10678 libltdl_cv_sys_dlopen_deplibs=yes
10679 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680 esac
10681
10682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010683{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10684echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010685if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010687cat >>confdefs.h <<\_ACEOF
10688#define LTDL_DLOPEN_DEPLIBS 1
10689_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690
10691fi
10692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010693
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010694for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010695do
10696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10702fi
10703ac_res=`eval echo '${'$as_ac_Header'}'`
10704 { echo "$as_me:$LINENO: result: $ac_res" >&5
10705echo "${ECHO_T}$ac_res" >&6; }
10706else
10707 # Is the header compilable?
10708{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10710cat >conftest.$ac_ext <<_ACEOF
10711/* confdefs.h. */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h. */
10716$ac_includes_default
10717#include <$ac_header>
10718_ACEOF
10719rm -f conftest.$ac_objext
10720if { (ac_try="$ac_compile"
10721case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724esac
10725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_compile") 2>conftest.er1
10727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } &&
10733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10734 { (case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10737esac
10738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_try") 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest.$ac_objext'
10744 { (case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747esac
10748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_try") 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_header_compiler=yes
10754else
10755 echo "$as_me: failed program was:" >&5
10756sed 's/^/| /' conftest.$ac_ext >&5
10757
10758 ac_header_compiler=no
10759fi
10760
10761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10763echo "${ECHO_T}$ac_header_compiler" >&6; }
10764
10765# Is the header present?
10766{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10768cat >conftest.$ac_ext <<_ACEOF
10769/* confdefs.h. */
10770_ACEOF
10771cat confdefs.h >>conftest.$ac_ext
10772cat >>conftest.$ac_ext <<_ACEOF
10773/* end confdefs.h. */
10774#include <$ac_header>
10775_ACEOF
10776if { (ac_try="$ac_cpp conftest.$ac_ext"
10777case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780esac
10781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10783 ac_status=$?
10784 grep -v '^ *+' conftest.er1 >conftest.err
10785 rm -f conftest.er1
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } >/dev/null; then
10789 if test -s conftest.err; then
10790 ac_cpp_err=$ac_c_preproc_warn_flag
10791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10792 else
10793 ac_cpp_err=
10794 fi
10795else
10796 ac_cpp_err=yes
10797fi
10798if test -z "$ac_cpp_err"; then
10799 ac_header_preproc=yes
10800else
10801 echo "$as_me: failed program was:" >&5
10802sed 's/^/| /' conftest.$ac_ext >&5
10803
10804 ac_header_preproc=no
10805fi
10806
10807rm -f conftest.err conftest.$ac_ext
10808{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10809echo "${ECHO_T}$ac_header_preproc" >&6; }
10810
10811# So? What about this header?
10812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10813 yes:no: )
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10817echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10818 ac_header_preproc=yes
10819 ;;
10820 no:yes:* )
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10822echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10824echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10826echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10828echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10830echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10832echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10833 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010834## ------------------------------------ ##
10835## Report this to http://llvm.org/bugs/ ##
10836## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010837_ASBOX
10838 ) | sed "s/^/$as_me: WARNING: /" >&2
10839 ;;
10840esac
10841{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845else
10846 eval "$as_ac_Header=\$ac_header_preproc"
10847fi
10848ac_res=`eval echo '${'$as_ac_Header'}'`
10849 { echo "$as_me:$LINENO: result: $ac_res" >&5
10850echo "${ECHO_T}$ac_res" >&6; }
10851
10852fi
10853if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010854 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010856_ACEOF
10857
10858fi
10859
10860done
10861
10862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010863{ echo "$as_me:$LINENO: checking for error_t" >&5
10864echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10865if test "${ac_cv_type_error_t+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867else
10868 cat >conftest.$ac_ext <<_ACEOF
10869/* confdefs.h. */
10870_ACEOF
10871cat confdefs.h >>conftest.$ac_ext
10872cat >>conftest.$ac_ext <<_ACEOF
10873/* end confdefs.h. */
10874#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010875# include <argz.h>
10876#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010877
10878typedef error_t ac__type_new_;
10879int
10880main ()
10881{
10882if ((ac__type_new_ *) 0)
10883 return 0;
10884if (sizeof (ac__type_new_))
10885 return 0;
10886 ;
10887 return 0;
10888}
10889_ACEOF
10890rm -f conftest.$ac_objext
10891if { (ac_try="$ac_compile"
10892case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895esac
10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_compile") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905 { (case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_try") 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; } &&
10914 { ac_try='test -s conftest.$ac_objext'
10915 { (case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10918esac
10919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_try") 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_type_error_t=yes
10925else
10926 echo "$as_me: failed program was:" >&5
10927sed 's/^/| /' conftest.$ac_ext >&5
10928
10929 ac_cv_type_error_t=no
10930fi
10931
10932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933fi
10934{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10935echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10936if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010937
10938cat >>confdefs.h <<_ACEOF
10939#define HAVE_ERROR_T 1
10940_ACEOF
10941
10942
10943else
10944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010945cat >>confdefs.h <<\_ACEOF
10946#define error_t int
10947_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010948
10949fi
10950
10951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010952
10953
10954
10955
10956
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010958do
10959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964else
10965 cat >conftest.$ac_ext <<_ACEOF
10966/* confdefs.h. */
10967_ACEOF
10968cat confdefs.h >>conftest.$ac_ext
10969cat >>conftest.$ac_ext <<_ACEOF
10970/* end confdefs.h. */
10971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973#define $ac_func innocuous_$ac_func
10974
10975/* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char $ac_func (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10979
10980#ifdef __STDC__
10981# include <limits.h>
10982#else
10983# include <assert.h>
10984#endif
10985
10986#undef $ac_func
10987
10988/* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10991#ifdef __cplusplus
10992extern "C"
10993#endif
10994char $ac_func ();
10995/* The GNU C library defines this for functions which it implements
10996 to always fail with ENOSYS. Some functions are actually named
10997 something starting with __ and the normal name is an alias. */
10998#if defined __stub_$ac_func || defined __stub___$ac_func
10999choke me
11000#endif
11001
11002int
11003main ()
11004{
11005return $ac_func ();
11006 ;
11007 return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext conftest$ac_exeext
11011if { (ac_try="$ac_link"
11012case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015esac
11016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>conftest.er1
11018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; } &&
11034 { ac_try='test -s conftest$ac_exeext'
11035 { (case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038esac
11039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_try") 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 eval "$as_ac_var=yes"
11045else
11046 echo "$as_me: failed program was:" >&5
11047sed 's/^/| /' conftest.$ac_ext >&5
11048
11049 eval "$as_ac_var=no"
11050fi
11051
11052rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054fi
11055ac_res=`eval echo '${'$as_ac_var'}'`
11056 { echo "$as_me:$LINENO: result: $ac_res" >&5
11057echo "${ECHO_T}$ac_res" >&6; }
11058if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061_ACEOF
11062
11063fi
11064done
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011085
11086
11087
11088
11089
11090
11091
11092
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11094 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011095do
11096as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102fi
11103ac_res=`eval echo '${'$as_ac_Header'}'`
11104 { echo "$as_me:$LINENO: result: $ac_res" >&5
11105echo "${ECHO_T}$ac_res" >&6; }
11106else
11107 # Is the header compilable?
11108{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11110cat >conftest.$ac_ext <<_ACEOF
11111/* confdefs.h. */
11112_ACEOF
11113cat confdefs.h >>conftest.$ac_ext
11114cat >>conftest.$ac_ext <<_ACEOF
11115/* end confdefs.h. */
11116$ac_includes_default
11117#include <$ac_header>
11118_ACEOF
11119rm -f conftest.$ac_objext
11120if { (ac_try="$ac_compile"
11121case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_compile") 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134 { (case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137esac
11138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_try") 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try='test -s conftest.$ac_objext'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147esac
11148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 ac_header_compiler=yes
11154else
11155 echo "$as_me: failed program was:" >&5
11156sed 's/^/| /' conftest.$ac_ext >&5
11157
11158 ac_header_compiler=no
11159fi
11160
11161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11163echo "${ECHO_T}$ac_header_compiler" >&6; }
11164
11165# Is the header present?
11166{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11168cat >conftest.$ac_ext <<_ACEOF
11169/* confdefs.h. */
11170_ACEOF
11171cat confdefs.h >>conftest.$ac_ext
11172cat >>conftest.$ac_ext <<_ACEOF
11173/* end confdefs.h. */
11174#include <$ac_header>
11175_ACEOF
11176if { (ac_try="$ac_cpp conftest.$ac_ext"
11177case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180esac
11181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } >/dev/null; then
11189 if test -s conftest.err; then
11190 ac_cpp_err=$ac_c_preproc_warn_flag
11191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11192 else
11193 ac_cpp_err=
11194 fi
11195else
11196 ac_cpp_err=yes
11197fi
11198if test -z "$ac_cpp_err"; then
11199 ac_header_preproc=yes
11200else
11201 echo "$as_me: failed program was:" >&5
11202sed 's/^/| /' conftest.$ac_ext >&5
11203
11204 ac_header_preproc=no
11205fi
11206
11207rm -f conftest.err conftest.$ac_ext
11208{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11209echo "${ECHO_T}$ac_header_preproc" >&6; }
11210
11211# So? What about this header?
11212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11213 yes:no: )
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11218 ac_header_preproc=yes
11219 ;;
11220 no:yes:* )
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11224echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11228echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11233 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011234## ------------------------------------ ##
11235## Report this to http://llvm.org/bugs/ ##
11236## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011237_ASBOX
11238 ) | sed "s/^/$as_me: WARNING: /" >&2
11239 ;;
11240esac
11241{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244 echo $ECHO_N "(cached) $ECHO_C" >&6
11245else
11246 eval "$as_ac_Header=\$ac_header_preproc"
11247fi
11248ac_res=`eval echo '${'$as_ac_Header'}'`
11249 { echo "$as_me:$LINENO: result: $ac_res" >&5
11250echo "${ECHO_T}$ac_res" >&6; }
11251
11252fi
11253if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011254 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256_ACEOF
11257
11258fi
11259
11260done
11261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011262
11263
11264
11265
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011266for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011267do
11268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274fi
11275ac_res=`eval echo '${'$as_ac_Header'}'`
11276 { echo "$as_me:$LINENO: result: $ac_res" >&5
11277echo "${ECHO_T}$ac_res" >&6; }
11278else
11279 # Is the header compilable?
11280{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11282cat >conftest.$ac_ext <<_ACEOF
11283/* confdefs.h. */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h. */
11288$ac_includes_default
11289#include <$ac_header>
11290_ACEOF
11291rm -f conftest.$ac_objext
11292if { (ac_try="$ac_compile"
11293case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_compile") 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309esac
11310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest.$ac_objext'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_header_compiler=yes
11326else
11327 echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
11330 ac_header_compiler=no
11331fi
11332
11333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11335echo "${ECHO_T}$ac_header_compiler" >&6; }
11336
11337# Is the header present?
11338{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11340cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346#include <$ac_header>
11347_ACEOF
11348if { (ac_try="$ac_cpp conftest.$ac_ext"
11349case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352esac
11353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11355 ac_status=$?
11356 grep -v '^ *+' conftest.er1 >conftest.err
11357 rm -f conftest.er1
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } >/dev/null; then
11361 if test -s conftest.err; then
11362 ac_cpp_err=$ac_c_preproc_warn_flag
11363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11364 else
11365 ac_cpp_err=
11366 fi
11367else
11368 ac_cpp_err=yes
11369fi
11370if test -z "$ac_cpp_err"; then
11371 ac_header_preproc=yes
11372else
11373 echo "$as_me: failed program was:" >&5
11374sed 's/^/| /' conftest.$ac_ext >&5
11375
11376 ac_header_preproc=no
11377fi
11378
11379rm -f conftest.err conftest.$ac_ext
11380{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381echo "${ECHO_T}$ac_header_preproc" >&6; }
11382
11383# So? What about this header?
11384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 yes:no: )
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11391 ;;
11392 no:yes:* )
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11405 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011406## ------------------------------------ ##
11407## Report this to http://llvm.org/bugs/ ##
11408## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011409_ASBOX
11410 ) | sed "s/^/$as_me: WARNING: /" >&2
11411 ;;
11412esac
11413{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11417else
11418 eval "$as_ac_Header=\$ac_header_preproc"
11419fi
11420ac_res=`eval echo '${'$as_ac_Header'}'`
11421 { echo "$as_me:$LINENO: result: $ac_res" >&5
11422echo "${ECHO_T}$ac_res" >&6; }
11423
11424fi
11425if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011426 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011428_ACEOF
11429
11430fi
11431
11432done
11433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011434
11435
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011436for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011437do
11438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444fi
11445ac_res=`eval echo '${'$as_ac_Header'}'`
11446 { echo "$as_me:$LINENO: result: $ac_res" >&5
11447echo "${ECHO_T}$ac_res" >&6; }
11448else
11449 # Is the header compilable?
11450{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11452cat >conftest.$ac_ext <<_ACEOF
11453/* confdefs.h. */
11454_ACEOF
11455cat confdefs.h >>conftest.$ac_ext
11456cat >>conftest.$ac_ext <<_ACEOF
11457/* end confdefs.h. */
11458$ac_includes_default
11459#include <$ac_header>
11460_ACEOF
11461rm -f conftest.$ac_objext
11462if { (ac_try="$ac_compile"
11463case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466esac
11467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_compile") 2>conftest.er1
11469 ac_status=$?
11470 grep -v '^ *+' conftest.er1 >conftest.err
11471 rm -f conftest.er1
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476 { (case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11479esac
11480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_try") 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; } &&
11485 { ac_try='test -s conftest.$ac_objext'
11486 { (case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489esac
11490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_try") 2>&5
11492 ac_status=$?
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_header_compiler=yes
11496else
11497 echo "$as_me: failed program was:" >&5
11498sed 's/^/| /' conftest.$ac_ext >&5
11499
11500 ac_header_compiler=no
11501fi
11502
11503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11505echo "${ECHO_T}$ac_header_compiler" >&6; }
11506
11507# Is the header present?
11508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11510cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516#include <$ac_header>
11517_ACEOF
11518if { (ac_try="$ac_cpp conftest.$ac_ext"
11519case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } >/dev/null; then
11531 if test -s conftest.err; then
11532 ac_cpp_err=$ac_c_preproc_warn_flag
11533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11534 else
11535 ac_cpp_err=
11536 fi
11537else
11538 ac_cpp_err=yes
11539fi
11540if test -z "$ac_cpp_err"; then
11541 ac_header_preproc=yes
11542else
11543 echo "$as_me: failed program was:" >&5
11544sed 's/^/| /' conftest.$ac_ext >&5
11545
11546 ac_header_preproc=no
11547fi
11548
11549rm -f conftest.err conftest.$ac_ext
11550{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11551echo "${ECHO_T}$ac_header_preproc" >&6; }
11552
11553# So? What about this header?
11554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11555 yes:no: )
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11560 ac_header_preproc=yes
11561 ;;
11562 no:yes:* )
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11575 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011576## ------------------------------------ ##
11577## Report this to http://llvm.org/bugs/ ##
11578## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011579_ASBOX
11580 ) | sed "s/^/$as_me: WARNING: /" >&2
11581 ;;
11582esac
11583{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588 eval "$as_ac_Header=\$ac_header_preproc"
11589fi
11590ac_res=`eval echo '${'$as_ac_Header'}'`
11591 { echo "$as_me:$LINENO: result: $ac_res" >&5
11592echo "${ECHO_T}$ac_res" >&6; }
11593
11594fi
11595if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011596 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011598_ACEOF
11599 break
11600fi
11601
11602done
11603
11604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011605
11606
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011607for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011608do
11609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614else
11615 cat >conftest.$ac_ext <<_ACEOF
11616/* confdefs.h. */
11617_ACEOF
11618cat confdefs.h >>conftest.$ac_ext
11619cat >>conftest.$ac_ext <<_ACEOF
11620/* end confdefs.h. */
11621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11623#define $ac_func innocuous_$ac_func
11624
11625/* System header to define __stub macros and hopefully few prototypes,
11626 which can conflict with char $ac_func (); below.
11627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628 <limits.h> exists even on freestanding compilers. */
11629
11630#ifdef __STDC__
11631# include <limits.h>
11632#else
11633# include <assert.h>
11634#endif
11635
11636#undef $ac_func
11637
11638/* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11641#ifdef __cplusplus
11642extern "C"
11643#endif
11644char $ac_func ();
11645/* The GNU C library defines this for functions which it implements
11646 to always fail with ENOSYS. Some functions are actually named
11647 something starting with __ and the normal name is an alias. */
11648#if defined __stub_$ac_func || defined __stub___$ac_func
11649choke me
11650#endif
11651
11652int
11653main ()
11654{
11655return $ac_func ();
11656 ;
11657 return 0;
11658}
11659_ACEOF
11660rm -f conftest.$ac_objext conftest$ac_exeext
11661if { (ac_try="$ac_link"
11662case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665esac
11666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_link") 2>conftest.er1
11668 ac_status=$?
11669 grep -v '^ *+' conftest.er1 >conftest.err
11670 rm -f conftest.er1
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11675 { (case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678esac
11679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_try") 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688esac
11689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 eval "$as_ac_var=yes"
11695else
11696 echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 eval "$as_ac_var=no"
11700fi
11701
11702rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11704fi
11705ac_res=`eval echo '${'$as_ac_var'}'`
11706 { echo "$as_me:$LINENO: result: $ac_res" >&5
11707echo "${ECHO_T}$ac_res" >&6; }
11708if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011709 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711_ACEOF
11712 break
11713fi
11714done
11715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011716
11717
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011718for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011719do
11720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11721{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11723if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725else
11726 cat >conftest.$ac_ext <<_ACEOF
11727/* confdefs.h. */
11728_ACEOF
11729cat confdefs.h >>conftest.$ac_ext
11730cat >>conftest.$ac_ext <<_ACEOF
11731/* end confdefs.h. */
11732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11734#define $ac_func innocuous_$ac_func
11735
11736/* System header to define __stub macros and hopefully few prototypes,
11737 which can conflict with char $ac_func (); below.
11738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739 <limits.h> exists even on freestanding compilers. */
11740
11741#ifdef __STDC__
11742# include <limits.h>
11743#else
11744# include <assert.h>
11745#endif
11746
11747#undef $ac_func
11748
11749/* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11752#ifdef __cplusplus
11753extern "C"
11754#endif
11755char $ac_func ();
11756/* The GNU C library defines this for functions which it implements
11757 to always fail with ENOSYS. Some functions are actually named
11758 something starting with __ and the normal name is an alias. */
11759#if defined __stub_$ac_func || defined __stub___$ac_func
11760choke me
11761#endif
11762
11763int
11764main ()
11765{
11766return $ac_func ();
11767 ;
11768 return 0;
11769}
11770_ACEOF
11771rm -f conftest.$ac_objext conftest$ac_exeext
11772if { (ac_try="$ac_link"
11773case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776esac
11777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_link") 2>conftest.er1
11779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
11785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11786 { (case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789esac
11790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_try") 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799esac
11800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_try") 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 eval "$as_ac_var=yes"
11806else
11807 echo "$as_me: failed program was:" >&5
11808sed 's/^/| /' conftest.$ac_ext >&5
11809
11810 eval "$as_ac_var=no"
11811fi
11812
11813rm -f core conftest.err conftest.$ac_objext \
11814 conftest$ac_exeext conftest.$ac_ext
11815fi
11816ac_res=`eval echo '${'$as_ac_var'}'`
11817 { echo "$as_me:$LINENO: result: $ac_res" >&5
11818echo "${ECHO_T}$ac_res" >&6; }
11819if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011820 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011821#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822_ACEOF
11823 break
11824fi
11825done
11826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011827
11828
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011829for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011830do
11831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11832{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11834if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836else
11837 cat >conftest.$ac_ext <<_ACEOF
11838/* confdefs.h. */
11839_ACEOF
11840cat confdefs.h >>conftest.$ac_ext
11841cat >>conftest.$ac_ext <<_ACEOF
11842/* end confdefs.h. */
11843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11845#define $ac_func innocuous_$ac_func
11846
11847/* System header to define __stub macros and hopefully few prototypes,
11848 which can conflict with char $ac_func (); below.
11849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850 <limits.h> exists even on freestanding compilers. */
11851
11852#ifdef __STDC__
11853# include <limits.h>
11854#else
11855# include <assert.h>
11856#endif
11857
11858#undef $ac_func
11859
11860/* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11863#ifdef __cplusplus
11864extern "C"
11865#endif
11866char $ac_func ();
11867/* The GNU C library defines this for functions which it implements
11868 to always fail with ENOSYS. Some functions are actually named
11869 something starting with __ and the normal name is an alias. */
11870#if defined __stub_$ac_func || defined __stub___$ac_func
11871choke me
11872#endif
11873
11874int
11875main ()
11876{
11877return $ac_func ();
11878 ;
11879 return 0;
11880}
11881_ACEOF
11882rm -f conftest.$ac_objext conftest$ac_exeext
11883if { (ac_try="$ac_link"
11884case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887esac
11888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_link") 2>conftest.er1
11890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11897 { (case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11900esac
11901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_try") 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest$ac_exeext'
11907 { (case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910esac
11911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_try") 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 eval "$as_ac_var=yes"
11917else
11918 echo "$as_me: failed program was:" >&5
11919sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 eval "$as_ac_var=no"
11922fi
11923
11924rm -f core conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11926fi
11927ac_res=`eval echo '${'$as_ac_var'}'`
11928 { echo "$as_me:$LINENO: result: $ac_res" >&5
11929echo "${ECHO_T}$ac_res" >&6; }
11930if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011931 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933_ACEOF
11934 break
11935fi
11936done
11937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011938
11939
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011941do
11942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11943{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11945if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947else
11948 cat >conftest.$ac_ext <<_ACEOF
11949/* confdefs.h. */
11950_ACEOF
11951cat confdefs.h >>conftest.$ac_ext
11952cat >>conftest.$ac_ext <<_ACEOF
11953/* end confdefs.h. */
11954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11956#define $ac_func innocuous_$ac_func
11957
11958/* System header to define __stub macros and hopefully few prototypes,
11959 which can conflict with char $ac_func (); below.
11960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961 <limits.h> exists even on freestanding compilers. */
11962
11963#ifdef __STDC__
11964# include <limits.h>
11965#else
11966# include <assert.h>
11967#endif
11968
11969#undef $ac_func
11970
11971/* Override any GCC internal prototype to avoid an error.
11972 Use char because int might match the return type of a GCC
11973 builtin and then its argument prototype would still apply. */
11974#ifdef __cplusplus
11975extern "C"
11976#endif
11977char $ac_func ();
11978/* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
11981#if defined __stub_$ac_func || defined __stub___$ac_func
11982choke me
11983#endif
11984
11985int
11986main ()
11987{
11988return $ac_func ();
11989 ;
11990 return 0;
11991}
11992_ACEOF
11993rm -f conftest.$ac_objext conftest$ac_exeext
11994if { (ac_try="$ac_link"
11995case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998esac
11999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_link") 2>conftest.er1
12001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008 { (case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_try") 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest$ac_exeext'
12018 { (case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12021esac
12022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_try") 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 eval "$as_ac_var=yes"
12028else
12029 echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 eval "$as_ac_var=no"
12033fi
12034
12035rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037fi
12038ac_res=`eval echo '${'$as_ac_var'}'`
12039 { echo "$as_me:$LINENO: result: $ac_res" >&5
12040echo "${ECHO_T}$ac_res" >&6; }
12041if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012043#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012044_ACEOF
12045
12046fi
12047done
12048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012049
12050
12051
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012053do
12054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12055{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12057if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059else
12060 cat >conftest.$ac_ext <<_ACEOF
12061/* confdefs.h. */
12062_ACEOF
12063cat confdefs.h >>conftest.$ac_ext
12064cat >>conftest.$ac_ext <<_ACEOF
12065/* end confdefs.h. */
12066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12068#define $ac_func innocuous_$ac_func
12069
12070/* System header to define __stub macros and hopefully few prototypes,
12071 which can conflict with char $ac_func (); below.
12072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12073 <limits.h> exists even on freestanding compilers. */
12074
12075#ifdef __STDC__
12076# include <limits.h>
12077#else
12078# include <assert.h>
12079#endif
12080
12081#undef $ac_func
12082
12083/* Override any GCC internal prototype to avoid an error.
12084 Use char because int might match the return type of a GCC
12085 builtin and then its argument prototype would still apply. */
12086#ifdef __cplusplus
12087extern "C"
12088#endif
12089char $ac_func ();
12090/* The GNU C library defines this for functions which it implements
12091 to always fail with ENOSYS. Some functions are actually named
12092 something starting with __ and the normal name is an alias. */
12093#if defined __stub_$ac_func || defined __stub___$ac_func
12094choke me
12095#endif
12096
12097int
12098main ()
12099{
12100return $ac_func ();
12101 ;
12102 return 0;
12103}
12104_ACEOF
12105rm -f conftest.$ac_objext conftest$ac_exeext
12106if { (ac_try="$ac_link"
12107case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12110esac
12111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_link") 2>conftest.er1
12113 ac_status=$?
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123esac
12124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133esac
12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 eval "$as_ac_var=yes"
12140else
12141 echo "$as_me: failed program was:" >&5
12142sed 's/^/| /' conftest.$ac_ext >&5
12143
12144 eval "$as_ac_var=no"
12145fi
12146
12147rm -f core conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149fi
12150ac_res=`eval echo '${'$as_ac_var'}'`
12151 { echo "$as_me:$LINENO: result: $ac_res" >&5
12152echo "${ECHO_T}$ac_res" >&6; }
12153if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012154 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012156_ACEOF
12157
12158fi
12159done
12160
12161
Douglas Gregor01746742009-05-11 18:05:52 +000012162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012163{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12164echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012165
Reid Spencer86901802004-12-08 23:07:27 +000012166ICC=no
12167IXX=no
12168case $CC in
12169 icc*|icpc*)
12170 ICC=yes
12171 IXX=yes
12172 ;;
12173 *)
12174 ;;
12175esac
12176
Duraid Madina937c60a2006-02-15 07:57:42 +000012177if test "$GCC" != "yes" && test "$ICC" != "yes"
12178then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012179 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12180echo "$as_me: error: gcc|icc required but not found" >&2;}
12181 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012182fi
12183
12184if test "$GXX" != "yes" && test "$IXX" != "yes"
12185then
Eric Christopher73e36da2010-12-08 02:02:14 +000012186 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12187echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012188 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012189fi
12190
Reid Spencer86901802004-12-08 23:07:27 +000012191if test "$GCC" = "yes"
12192then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012193 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012194#if !defined(__GNUC__) || __GNUC__ < 3
12195#error Unsupported GCC version
12196#endif
12197
12198_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012199rm -f conftest.$ac_objext
12200if { (ac_try="$ac_compile"
12201case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12204esac
12205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_compile") 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217esac
12218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest.$ac_objext'
12224 { (case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12227esac
12228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_try") 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12233 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012234else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012235 echo "$as_me: failed program was:" >&5
12236sed 's/^/| /' conftest.$ac_ext >&5
12237
12238 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12239echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12240 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012241fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012242
Chris Lattner399c7c72008-02-05 19:43:53 +000012243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012244fi
12245
12246if test -z "$llvm_cv_gnu_make_command"
12247then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012248 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12249echo "$as_me: error: GNU Make required but not found" >&2;}
12250 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012251fi
12252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012253{ echo "$as_me:$LINENO: result: ok" >&5
12254echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012256{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12257echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012258NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12259
12260NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012262{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12263echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012264
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012266
12267{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12268echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12269if test "${ac_cv_lib_m_sin+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012271else
12272 ac_check_lib_save_LIBS=$LIBS
12273LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012274cat >conftest.$ac_ext <<_ACEOF
12275/* confdefs.h. */
12276_ACEOF
12277cat confdefs.h >>conftest.$ac_ext
12278cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012279/* end confdefs.h. */
12280
Reid Spencera773bd52006-08-04 18:18:08 +000012281/* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012284#ifdef __cplusplus
12285extern "C"
12286#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012287char sin ();
12288int
12289main ()
12290{
Reid Spencera773bd52006-08-04 18:18:08 +000012291return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012292 ;
12293 return 0;
12294}
12295_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012296rm -f conftest.$ac_objext conftest$ac_exeext
12297if { (ac_try="$ac_link"
12298case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301esac
12302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_link") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12311 { (case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_try") 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; } &&
12320 { ac_try='test -s conftest$ac_exeext'
12321 { (case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12324esac
12325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_try") 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012330 ac_cv_lib_m_sin=yes
12331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012332 echo "$as_me: failed program was:" >&5
12333sed 's/^/| /' conftest.$ac_ext >&5
12334
12335 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012337
Bill Wendlingebcceee2009-04-18 11:20:33 +000012338rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012339 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012340LIBS=$ac_check_lib_save_LIBS
12341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012342{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12343echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12344if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012345 cat >>confdefs.h <<_ACEOF
12346#define HAVE_LIBM 1
12347_ACEOF
12348
12349 LIBS="-lm $LIBS"
12350
12351fi
12352
Jeff Cohen28783c32007-01-12 18:22:38 +000012353if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012354
12355{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12356echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12357if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012359else
12360 ac_check_lib_save_LIBS=$LIBS
12361LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012362cat >conftest.$ac_ext <<_ACEOF
12363/* confdefs.h. */
12364_ACEOF
12365cat confdefs.h >>conftest.$ac_ext
12366cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012367/* end confdefs.h. */
12368
Reid Spencer48fdf912006-06-01 19:03:21 +000012369
Reid Spencer484fc8e2006-06-01 16:55:59 +000012370int
12371main ()
12372{
Reid Spencera773bd52006-08-04 18:18:08 +000012373return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012374 ;
12375 return 0;
12376}
12377_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012378rm -f conftest.$ac_objext conftest$ac_exeext
12379if { (ac_try="$ac_link"
12380case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383esac
12384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_link") 2>conftest.er1
12386 ac_status=$?
12387 grep -v '^ *+' conftest.er1 >conftest.err
12388 rm -f conftest.er1
12389 cat conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12396esac
12397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; } &&
12402 { ac_try='test -s conftest$ac_exeext'
12403 { (case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406esac
12407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_try") 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012412 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414 echo "$as_me: failed program was:" >&5
12415sed 's/^/| /' conftest.$ac_ext >&5
12416
12417 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012419
Bill Wendlingebcceee2009-04-18 11:20:33 +000012420rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012421 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012422LIBS=$ac_check_lib_save_LIBS
12423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012424{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12425echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12426if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012427 cat >>confdefs.h <<_ACEOF
12428#define HAVE_LIBIMAGEHLP 1
12429_ACEOF
12430
12431 LIBS="-limagehlp $LIBS"
12432
12433fi
12434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012435
12436{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12437echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12438if test "${ac_cv_lib_psapi_main+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012440else
12441 ac_check_lib_save_LIBS=$LIBS
12442LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012443cat >conftest.$ac_ext <<_ACEOF
12444/* confdefs.h. */
12445_ACEOF
12446cat confdefs.h >>conftest.$ac_ext
12447cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012448/* end confdefs.h. */
12449
Reid Spencer48fdf912006-06-01 19:03:21 +000012450
Reid Spencer484fc8e2006-06-01 16:55:59 +000012451int
12452main ()
12453{
Reid Spencera773bd52006-08-04 18:18:08 +000012454return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012455 ;
12456 return 0;
12457}
12458_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012459rm -f conftest.$ac_objext conftest$ac_exeext
12460if { (ac_try="$ac_link"
12461case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12464esac
12465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_link") 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12474 { (case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12477esac
12478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_try") 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest$ac_exeext'
12484 { (case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12487esac
12488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_try") 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012493 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012495 echo "$as_me: failed program was:" >&5
12496sed 's/^/| /' conftest.$ac_ext >&5
12497
12498 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012500
Bill Wendlingebcceee2009-04-18 11:20:33 +000012501rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012502 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012503LIBS=$ac_check_lib_save_LIBS
12504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012505{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12506echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12507if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012508 cat >>confdefs.h <<_ACEOF
12509#define HAVE_LIBPSAPI 1
12510_ACEOF
12511
12512 LIBS="-lpsapi $LIBS"
12513
12514fi
12515
12516fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012518{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12519echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12520if test "${ac_cv_search_dlopen+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012522else
12523 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012524cat >conftest.$ac_ext <<_ACEOF
12525/* confdefs.h. */
12526_ACEOF
12527cat confdefs.h >>conftest.$ac_ext
12528cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012529/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012530
Reid Spencera773bd52006-08-04 18:18:08 +000012531/* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012534#ifdef __cplusplus
12535extern "C"
12536#endif
John Criswell7a73b802003-06-30 21:59:07 +000012537char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012538int
12539main ()
12540{
Reid Spencera773bd52006-08-04 18:18:08 +000012541return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012542 ;
12543 return 0;
12544}
12545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012546for ac_lib in '' dl; do
12547 if test -z "$ac_lib"; then
12548 ac_res="none required"
12549 else
12550 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012552 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012553 rm -f conftest.$ac_objext conftest$ac_exeext
12554if { (ac_try="$ac_link"
12555case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12558esac
12559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_link") 2>conftest.er1
12561 ac_status=$?
12562 grep -v '^ *+' conftest.er1 >conftest.err
12563 rm -f conftest.er1
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12568 { (case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12571esac
12572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_try") 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } &&
12577 { ac_try='test -s conftest$ac_exeext'
12578 { (case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12581esac
12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_try") 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012587 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012588else
12589 echo "$as_me: failed program was:" >&5
12590sed 's/^/| /' conftest.$ac_ext >&5
12591
12592
John Criswell7a73b802003-06-30 21:59:07 +000012593fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012594
Bill Wendlingebcceee2009-04-18 11:20:33 +000012595rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596 conftest$ac_exeext
12597 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012598 break
John Criswell7a73b802003-06-30 21:59:07 +000012599fi
Reid Spencera773bd52006-08-04 18:18:08 +000012600done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012601if test "${ac_cv_search_dlopen+set}" = set; then
12602 :
Reid Spencera773bd52006-08-04 18:18:08 +000012603else
12604 ac_cv_search_dlopen=no
12605fi
12606rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012607LIBS=$ac_func_search_save_LIBS
12608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012609{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12610echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012611ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012612if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012615cat >>confdefs.h <<\_ACEOF
12616#define HAVE_DLOPEN 1
12617_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012618
12619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012620 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12621echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012622fi
12623
12624
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012625if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012626 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12627echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12628if test "${ac_cv_search_ffi_call+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012630else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012631 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012632cat >conftest.$ac_ext <<_ACEOF
12633/* confdefs.h. */
12634_ACEOF
12635cat confdefs.h >>conftest.$ac_ext
12636cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012637/* end confdefs.h. */
12638
12639/* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply. */
12642#ifdef __cplusplus
12643extern "C"
12644#endif
12645char ffi_call ();
12646int
12647main ()
12648{
12649return ffi_call ();
12650 ;
12651 return 0;
12652}
12653_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012654for ac_lib in '' ffi; do
12655 if test -z "$ac_lib"; then
12656 ac_res="none required"
12657 else
12658 ac_res=-l$ac_lib
12659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12660 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012661 rm -f conftest.$ac_objext conftest$ac_exeext
12662if { (ac_try="$ac_link"
12663case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12666esac
12667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_link") 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676 { (case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12679esac
12680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_try") 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12689esac
12690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012695 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012696else
12697 echo "$as_me: failed program was:" >&5
12698sed 's/^/| /' conftest.$ac_ext >&5
12699
12700
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012702
Bill Wendlingebcceee2009-04-18 11:20:33 +000012703rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012704 conftest$ac_exeext
12705 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012706 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012707fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012708done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012709if test "${ac_cv_search_ffi_call+set}" = set; then
12710 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012711else
12712 ac_cv_search_ffi_call=no
12713fi
12714rm conftest.$ac_ext
12715LIBS=$ac_func_search_save_LIBS
12716fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012717{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12718echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012719ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012720if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012723cat >>confdefs.h <<\_ACEOF
12724#define HAVE_FFI_CALL 1
12725_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012726
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012727else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012728 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12729echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12730 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012731fi
12732
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012733fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012735{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12736echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12737if test "${ac_cv_search_mallinfo+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012739else
12740 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012741cat >conftest.$ac_ext <<_ACEOF
12742/* confdefs.h. */
12743_ACEOF
12744cat confdefs.h >>conftest.$ac_ext
12745cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012746/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012747
Reid Spencera773bd52006-08-04 18:18:08 +000012748/* Override any GCC internal prototype to avoid an error.
12749 Use char because int might match the return type of a GCC
12750 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012751#ifdef __cplusplus
12752extern "C"
12753#endif
John Criswell7a73b802003-06-30 21:59:07 +000012754char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012755int
12756main ()
12757{
Reid Spencera773bd52006-08-04 18:18:08 +000012758return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012759 ;
12760 return 0;
12761}
12762_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012763for ac_lib in '' malloc; do
12764 if test -z "$ac_lib"; then
12765 ac_res="none required"
12766 else
12767 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012769 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012770 rm -f conftest.$ac_objext conftest$ac_exeext
12771if { (ac_try="$ac_link"
12772case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12775esac
12776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777 (eval "$ac_link") 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12785 { (case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788esac
12789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_try") 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest$ac_exeext'
12795 { (case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798esac
12799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_try") 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012804 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012805else
12806 echo "$as_me: failed program was:" >&5
12807sed 's/^/| /' conftest.$ac_ext >&5
12808
12809
John Criswell7a73b802003-06-30 21:59:07 +000012810fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012811
Bill Wendlingebcceee2009-04-18 11:20:33 +000012812rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012813 conftest$ac_exeext
12814 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012815 break
John Criswell7a73b802003-06-30 21:59:07 +000012816fi
Reid Spencera773bd52006-08-04 18:18:08 +000012817done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012818if test "${ac_cv_search_mallinfo+set}" = set; then
12819 :
Reid Spencera773bd52006-08-04 18:18:08 +000012820else
12821 ac_cv_search_mallinfo=no
12822fi
12823rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012824LIBS=$ac_func_search_save_LIBS
12825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012826{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12827echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012828ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012829if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012832cat >>confdefs.h <<\_ACEOF
12833#define HAVE_MALLINFO 1
12834_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012835
12836fi
12837
12838
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012839if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012840
12841{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12842echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12843if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012845else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012846 ac_check_lib_save_LIBS=$LIBS
12847LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012848cat >conftest.$ac_ext <<_ACEOF
12849/* confdefs.h. */
12850_ACEOF
12851cat confdefs.h >>conftest.$ac_ext
12852cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012853/* end confdefs.h. */
12854
Reid Spencera773bd52006-08-04 18:18:08 +000012855/* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012858#ifdef __cplusplus
12859extern "C"
12860#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012861char pthread_mutex_init ();
12862int
12863main ()
12864{
Reid Spencera773bd52006-08-04 18:18:08 +000012865return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012866 ;
12867 return 0;
12868}
12869_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012870rm -f conftest.$ac_objext conftest$ac_exeext
12871if { (ac_try="$ac_link"
12872case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12875esac
12876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877 (eval "$ac_link") 2>conftest.er1
12878 ac_status=$?
12879 grep -v '^ *+' conftest.er1 >conftest.err
12880 rm -f conftest.er1
12881 cat conftest.err >&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885 { (case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888esac
12889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_try") 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest$ac_exeext'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012904 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012906 echo "$as_me: failed program was:" >&5
12907sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012911
Bill Wendlingebcceee2009-04-18 11:20:33 +000012912rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012913 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012914LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012916{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12917echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12918if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012919 cat >>confdefs.h <<_ACEOF
12920#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012921_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012922
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012923 LIBS="-lpthread $LIBS"
12924
Reid Spencer22177fe2005-07-12 15:24:20 +000012925fi
12926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012927 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12928echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12929if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012931else
12932 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012933cat >conftest.$ac_ext <<_ACEOF
12934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012938/* end confdefs.h. */
12939
Reid Spencera773bd52006-08-04 18:18:08 +000012940/* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012943#ifdef __cplusplus
12944extern "C"
12945#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012946char pthread_mutex_lock ();
12947int
12948main ()
12949{
Reid Spencera773bd52006-08-04 18:18:08 +000012950return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012951 ;
12952 return 0;
12953}
12954_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012955for ac_lib in '' pthread; do
12956 if test -z "$ac_lib"; then
12957 ac_res="none required"
12958 else
12959 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012961 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012962 rm -f conftest.$ac_objext conftest$ac_exeext
12963if { (ac_try="$ac_link"
12964case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_link") 2>conftest.er1
12970 ac_status=$?
12971 grep -v '^ *+' conftest.er1 >conftest.err
12972 rm -f conftest.er1
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12980esac
12981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012996 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001
Brian Gaeke5f268f72003-12-05 19:29:01 +000013002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013003
Bill Wendlingebcceee2009-04-18 11:20:33 +000013004rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013005 conftest$ac_exeext
13006 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013007 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013008fi
Reid Spencera773bd52006-08-04 18:18:08 +000013009done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013010if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13011 :
Reid Spencera773bd52006-08-04 18:18:08 +000013012else
13013 ac_cv_search_pthread_mutex_lock=no
13014fi
13015rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013016LIBS=$ac_func_search_save_LIBS
13017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013018{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13019echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013020ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013024cat >>confdefs.h <<\_ACEOF
13025#define HAVE_PTHREAD_MUTEX_LOCK 1
13026_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013027
13028fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013030 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13031echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13032if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013034else
13035 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013036cat >conftest.$ac_ext <<_ACEOF
13037/* confdefs.h. */
13038_ACEOF
13039cat confdefs.h >>conftest.$ac_ext
13040cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013041/* end confdefs.h. */
13042
13043/* Override any GCC internal prototype to avoid an error.
13044 Use char because int might match the return type of a GCC
13045 builtin and then its argument prototype would still apply. */
13046#ifdef __cplusplus
13047extern "C"
13048#endif
13049char pthread_rwlock_init ();
13050int
13051main ()
13052{
13053return pthread_rwlock_init ();
13054 ;
13055 return 0;
13056}
13057_ACEOF
13058for ac_lib in '' pthread; do
13059 if test -z "$ac_lib"; then
13060 ac_res="none required"
13061 else
13062 ac_res=-l$ac_lib
13063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13064 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013065 rm -f conftest.$ac_objext conftest$ac_exeext
13066if { (ac_try="$ac_link"
13067case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070esac
13071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_link") 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13080 { (case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_try") 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093esac
13094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_try") 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013099 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013100else
13101 echo "$as_me: failed program was:" >&5
13102sed 's/^/| /' conftest.$ac_ext >&5
13103
13104
Owen Andersonde8aed22009-06-16 18:20:20 +000013105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013106
Owen Andersonde8aed22009-06-16 18:20:20 +000013107rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013108 conftest$ac_exeext
13109 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013110 break
13111fi
13112done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013113if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13114 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013115else
13116 ac_cv_search_pthread_rwlock_init=no
13117fi
13118rm conftest.$ac_ext
13119LIBS=$ac_func_search_save_LIBS
13120fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013121{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13122echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013123ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013124if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013127cat >>confdefs.h <<\_ACEOF
13128#define HAVE_PTHREAD_RWLOCK_INIT 1
13129_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013130
13131fi
13132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013133 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13134echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13135if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013137else
13138 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013139cat >conftest.$ac_ext <<_ACEOF
13140/* confdefs.h. */
13141_ACEOF
13142cat confdefs.h >>conftest.$ac_ext
13143cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013144/* end confdefs.h. */
13145
13146/* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13149#ifdef __cplusplus
13150extern "C"
13151#endif
13152char pthread_getspecific ();
13153int
13154main ()
13155{
13156return pthread_getspecific ();
13157 ;
13158 return 0;
13159}
13160_ACEOF
13161for ac_lib in '' pthread; do
13162 if test -z "$ac_lib"; then
13163 ac_res="none required"
13164 else
13165 ac_res=-l$ac_lib
13166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13167 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013168 rm -f conftest.$ac_objext conftest$ac_exeext
13169if { (ac_try="$ac_link"
13170case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13173esac
13174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_link") 2>conftest.er1
13176 ac_status=$?
13177 grep -v '^ *+' conftest.er1 >conftest.err
13178 rm -f conftest.er1
13179 cat conftest.err >&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } &&
13182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13183 { (case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13186esac
13187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_try") 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try='test -s conftest$ac_exeext'
13193 { (case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196esac
13197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_try") 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013202 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013203else
13204 echo "$as_me: failed program was:" >&5
13205sed 's/^/| /' conftest.$ac_ext >&5
13206
13207
Owen Anderson27fcfe12009-06-25 23:10:26 +000013208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013209
Owen Anderson27fcfe12009-06-25 23:10:26 +000013210rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211 conftest$ac_exeext
13212 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013213 break
13214fi
13215done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13217 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013218else
13219 ac_cv_search_pthread_getspecific=no
13220fi
13221rm conftest.$ac_ext
13222LIBS=$ac_func_search_save_LIBS
13223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013224{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13225echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013226ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013227if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013230cat >>confdefs.h <<\_ACEOF
13231#define HAVE_PTHREAD_GETSPECIFIC 1
13232_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013233
13234fi
13235
Reid Spencer0a262ba2005-08-24 10:07:20 +000013236fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013237
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013238
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013239# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013240if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013241 withval=$with_udis86;
13242 USE_UDIS86=1
13243
13244 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013245 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013246 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13247 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013248
13249{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13250echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13251if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013253else
13254 ac_check_lib_save_LIBS=$LIBS
13255LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013256cat >conftest.$ac_ext <<_ACEOF
13257/* confdefs.h. */
13258_ACEOF
13259cat confdefs.h >>conftest.$ac_ext
13260cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013261/* end confdefs.h. */
13262
13263/* Override any GCC internal prototype to avoid an error.
13264 Use char because int might match the return type of a GCC
13265 builtin and then its argument prototype would still apply. */
13266#ifdef __cplusplus
13267extern "C"
13268#endif
13269char ud_init ();
13270int
13271main ()
13272{
13273return ud_init ();
13274 ;
13275 return 0;
13276}
13277_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013278rm -f conftest.$ac_objext conftest$ac_exeext
13279if { (ac_try="$ac_link"
13280case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_link") 2>conftest.er1
13286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296esac
13297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } &&
13302 { ac_try='test -s conftest$ac_exeext'
13303 { (case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13306esac
13307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_try") 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013312 ac_cv_lib_udis86_ud_init=yes
13313else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013314 echo "$as_me: failed program was:" >&5
13315sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013319
Bill Wendlingebcceee2009-04-18 11:20:33 +000013320rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013321 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013322LIBS=$ac_check_lib_save_LIBS
13323fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013324{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13325echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13326if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013327 cat >>confdefs.h <<_ACEOF
13328#define HAVE_LIBUDIS86 1
13329_ACEOF
13330
13331 LIBS="-ludis86 $LIBS"
13332
13333else
13334
13335 echo "Error! You need to have libudis86 around."
13336 exit -1
13337
13338fi
13339
13340
13341else
13342 USE_UDIS86=0
13343
13344fi
13345
13346
13347cat >>confdefs.h <<_ACEOF
13348#define USE_UDIS86 $USE_UDIS86
13349_ACEOF
13350
13351
13352
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013353# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013354if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013355 withval=$with_oprofile;
13356 USE_OPROFILE=1
13357
13358 case "$withval" in
13359 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013360 no) llvm_cv_oppath=
13361 USE_OPROFILE=0
13362 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013363 *) llvm_cv_oppath="${withval}/lib/oprofile"
13364 CPPFLAGS="-I${withval}/include";;
13365 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013366 if test -n "$llvm_cv_oppath" ; then
13367 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013368 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13369echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13370if test "${ac_cv_search_bfd_init+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +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
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +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 bfd_init ();
13388int
13389main ()
13390{
13391return bfd_init ();
13392 ;
13393 return 0;
13394}
13395_ACEOF
13396for ac_lib in '' bfd; 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
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013437 ac_cv_search_bfd_init=$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
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013443fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013444
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +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_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013448 break
13449fi
13450done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013451if test "${ac_cv_search_bfd_init+set}" = set; then
13452 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013453else
13454 ac_cv_search_bfd_init=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_bfd_init" >&5
13460echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013461ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013462if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13464
13465fi
13466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013467 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13468echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13469if test "${ac_cv_search_op_open_agent+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013471else
13472 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013473cat >conftest.$ac_ext <<_ACEOF
13474/* confdefs.h. */
13475_ACEOF
13476cat confdefs.h >>conftest.$ac_ext
13477cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013478/* end confdefs.h. */
13479
13480/* Override any GCC internal prototype to avoid an error.
13481 Use char because int might match the return type of a GCC
13482 builtin and then its argument prototype would still apply. */
13483#ifdef __cplusplus
13484extern "C"
13485#endif
13486char op_open_agent ();
13487int
13488main ()
13489{
13490return op_open_agent ();
13491 ;
13492 return 0;
13493}
13494_ACEOF
13495for ac_lib in '' opagent; do
13496 if test -z "$ac_lib"; then
13497 ac_res="none required"
13498 else
13499 ac_res=-l$ac_lib
13500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13501 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013502 rm -f conftest.$ac_objext conftest$ac_exeext
13503if { (ac_try="$ac_link"
13504case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13507esac
13508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_link") 2>conftest.er1
13510 ac_status=$?
13511 grep -v '^ *+' conftest.er1 >conftest.err
13512 rm -f conftest.er1
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13517 { (case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520esac
13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_try") 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest$ac_exeext'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13530esac
13531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013536 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013537else
13538 echo "$as_me: failed program was:" >&5
13539sed 's/^/| /' conftest.$ac_ext >&5
13540
13541
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013543
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013544rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013545 conftest$ac_exeext
13546 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013547 break
13548fi
13549done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013550if test "${ac_cv_search_op_open_agent+set}" = set; then
13551 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013552else
13553 ac_cv_search_op_open_agent=no
13554fi
13555rm conftest.$ac_ext
13556LIBS=$ac_func_search_save_LIBS
13557fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013558{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13559echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013560ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013561if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13563
13564else
13565
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013566 echo "Error! You need to have libopagent around."
13567 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013568
13569fi
13570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013571 if test "${ac_cv_header_opagent_h+set}" = set; then
13572 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13573echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13574if test "${ac_cv_header_opagent_h+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576fi
13577{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13578echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13579else
13580 # Is the header compilable?
13581{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13582echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13583cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h. */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
13588/* end confdefs.h. */
13589$ac_includes_default
13590#include <opagent.h>
13591_ACEOF
13592rm -f conftest.$ac_objext
13593if { (ac_try="$ac_compile"
13594case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597esac
13598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_compile") 2>conftest.er1
13600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610esac
13611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest.$ac_objext'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620esac
13621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_header_compiler=yes
13627else
13628 echo "$as_me: failed program was:" >&5
13629sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013631 ac_header_compiler=no
13632fi
13633
13634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13636echo "${ECHO_T}$ac_header_compiler" >&6; }
13637
13638# Is the header present?
13639{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13640echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13641cat >conftest.$ac_ext <<_ACEOF
13642/* confdefs.h. */
13643_ACEOF
13644cat confdefs.h >>conftest.$ac_ext
13645cat >>conftest.$ac_ext <<_ACEOF
13646/* end confdefs.h. */
13647#include <opagent.h>
13648_ACEOF
13649if { (ac_try="$ac_cpp conftest.$ac_ext"
13650case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13653esac
13654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13656 ac_status=$?
13657 grep -v '^ *+' conftest.er1 >conftest.err
13658 rm -f conftest.er1
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } >/dev/null; then
13662 if test -s conftest.err; then
13663 ac_cpp_err=$ac_c_preproc_warn_flag
13664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13665 else
13666 ac_cpp_err=
13667 fi
13668else
13669 ac_cpp_err=yes
13670fi
13671if test -z "$ac_cpp_err"; then
13672 ac_header_preproc=yes
13673else
13674 echo "$as_me: failed program was:" >&5
13675sed 's/^/| /' conftest.$ac_ext >&5
13676
13677 ac_header_preproc=no
13678fi
13679
13680rm -f conftest.err conftest.$ac_ext
13681{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13682echo "${ECHO_T}$ac_header_preproc" >&6; }
13683
13684# So? What about this header?
13685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13686 yes:no: )
13687 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13688echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13689 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13690echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13691 ac_header_preproc=yes
13692 ;;
13693 no:yes:* )
13694 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13695echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13696 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13697echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13698 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13699echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13700 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13701echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13702 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13703echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13705echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13706 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013707## ------------------------------------ ##
13708## Report this to http://llvm.org/bugs/ ##
13709## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013710_ASBOX
13711 ) | sed "s/^/$as_me: WARNING: /" >&2
13712 ;;
13713esac
13714{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13715echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13716if test "${ac_cv_header_opagent_h+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13718else
13719 ac_cv_header_opagent_h=$ac_header_preproc
13720fi
13721{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13722echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13723
13724fi
13725if test $ac_cv_header_opagent_h = yes; then
13726 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013727else
13728
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013729 echo "Error! You need to have opagent.h around."
13730 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013731
13732fi
13733
13734
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013735 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013736
13737else
13738
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013739 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013740
13741
13742fi
13743
13744
13745cat >>confdefs.h <<_ACEOF
13746#define USE_OPROFILE $USE_OPROFILE
13747_ACEOF
13748
13749
13750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013751
13752
13753
13754
13755
Reid Spencer59473af2004-12-25 07:31:29 +000013756ac_header_dirent=no
13757for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013758 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13759{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13760echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013763else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013764 cat >conftest.$ac_ext <<_ACEOF
13765/* confdefs.h. */
13766_ACEOF
13767cat confdefs.h >>conftest.$ac_ext
13768cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013769/* end confdefs.h. */
13770#include <sys/types.h>
13771#include <$ac_hdr>
13772
13773int
13774main ()
13775{
13776if ((DIR *) 0)
13777return 0;
13778 ;
13779 return 0;
13780}
13781_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013782rm -f conftest.$ac_objext
13783if { (ac_try="$ac_compile"
13784case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13787esac
13788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_compile") 2>conftest.er1
13790 ac_status=$?
13791 grep -v '^ *+' conftest.er1 >conftest.err
13792 rm -f conftest.er1
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13797 { (case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13800esac
13801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_try") 2>&5
13803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; } &&
13806 { ac_try='test -s conftest.$ac_objext'
13807 { (case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810esac
13811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_try") 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013816 eval "$as_ac_Header=yes"
13817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013818 echo "$as_me: failed program was:" >&5
13819sed 's/^/| /' conftest.$ac_ext >&5
13820
13821 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013823
Reid Spencera773bd52006-08-04 18:18:08 +000013824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013826ac_res=`eval echo '${'$as_ac_Header'}'`
13827 { echo "$as_me:$LINENO: result: $ac_res" >&5
13828echo "${ECHO_T}$ac_res" >&6; }
13829if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013830 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013831#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013832_ACEOF
13833
13834ac_header_dirent=$ac_hdr; break
13835fi
13836
13837done
13838# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13839if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013840 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13841echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13842if test "${ac_cv_search_opendir+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013844else
13845 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013846cat >conftest.$ac_ext <<_ACEOF
13847/* confdefs.h. */
13848_ACEOF
13849cat confdefs.h >>conftest.$ac_ext
13850cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013851/* end confdefs.h. */
13852
Reid Spencera773bd52006-08-04 18:18:08 +000013853/* Override any GCC internal prototype to avoid an error.
13854 Use char because int might match the return type of a GCC
13855 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013856#ifdef __cplusplus
13857extern "C"
13858#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013859char opendir ();
13860int
13861main ()
13862{
Reid Spencera773bd52006-08-04 18:18:08 +000013863return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013864 ;
13865 return 0;
13866}
13867_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013868for ac_lib in '' dir; do
13869 if test -z "$ac_lib"; then
13870 ac_res="none required"
13871 else
13872 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013874 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013875 rm -f conftest.$ac_objext conftest$ac_exeext
13876if { (ac_try="$ac_link"
13877case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13880esac
13881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_link") 2>conftest.er1
13883 ac_status=$?
13884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13890 { (case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13893esac
13894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_try") 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest$ac_exeext'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903esac
13904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013909 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013910else
13911 echo "$as_me: failed program was:" >&5
13912sed 's/^/| /' conftest.$ac_ext >&5
13913
13914
Reid Spencer59473af2004-12-25 07:31:29 +000013915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013916
Bill Wendlingebcceee2009-04-18 11:20:33 +000013917rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013918 conftest$ac_exeext
13919 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013920 break
Reid Spencer59473af2004-12-25 07:31:29 +000013921fi
Reid Spencera773bd52006-08-04 18:18:08 +000013922done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013923if test "${ac_cv_search_opendir+set}" = set; then
13924 :
Reid Spencera773bd52006-08-04 18:18:08 +000013925else
13926 ac_cv_search_opendir=no
13927fi
13928rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013929LIBS=$ac_func_search_save_LIBS
13930fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013931{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13932echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013933ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013934if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013936
13937fi
13938
13939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013940 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13941echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13942if test "${ac_cv_search_opendir+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013944else
13945 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013946cat >conftest.$ac_ext <<_ACEOF
13947/* confdefs.h. */
13948_ACEOF
13949cat confdefs.h >>conftest.$ac_ext
13950cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013951/* end confdefs.h. */
13952
Reid Spencera773bd52006-08-04 18:18:08 +000013953/* Override any GCC internal prototype to avoid an error.
13954 Use char because int might match the return type of a GCC
13955 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013956#ifdef __cplusplus
13957extern "C"
13958#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013959char opendir ();
13960int
13961main ()
13962{
Reid Spencera773bd52006-08-04 18:18:08 +000013963return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013964 ;
13965 return 0;
13966}
13967_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013968for ac_lib in '' x; do
13969 if test -z "$ac_lib"; then
13970 ac_res="none required"
13971 else
13972 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013974 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013975 rm -f conftest.$ac_objext conftest$ac_exeext
13976if { (ac_try="$ac_link"
13977case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13980esac
13981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_link") 2>conftest.er1
13983 ac_status=$?
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13990 { (case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13993esac
13994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_try") 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; } &&
13999 { ac_try='test -s conftest$ac_exeext'
14000 { (case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14003esac
14004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_try") 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014009 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014010else
14011 echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
14014
Reid Spencer59473af2004-12-25 07:31:29 +000014015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014016
Bill Wendlingebcceee2009-04-18 11:20:33 +000014017rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014018 conftest$ac_exeext
14019 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014020 break
Reid Spencer59473af2004-12-25 07:31:29 +000014021fi
Reid Spencera773bd52006-08-04 18:18:08 +000014022done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023if test "${ac_cv_search_opendir+set}" = set; then
14024 :
Reid Spencera773bd52006-08-04 18:18:08 +000014025else
14026 ac_cv_search_opendir=no
14027fi
14028rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014029LIBS=$ac_func_search_save_LIBS
14030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014031{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14032echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014033ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014034if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014036
14037fi
14038
14039fi
14040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014041{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14042echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14043if test "${ac_cv_header_mmap_anon+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014045else
14046 ac_ext=c
14047ac_cpp='$CPP $CPPFLAGS'
14048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14050ac_compiler_gnu=$ac_cv_c_compiler_gnu
14051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014052 cat >conftest.$ac_ext <<_ACEOF
14053/* confdefs.h. */
14054_ACEOF
14055cat confdefs.h >>conftest.$ac_ext
14056cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014057/* end confdefs.h. */
14058#include <sys/mman.h>
14059#include <unistd.h>
14060#include <fcntl.h>
14061int
14062main ()
14063{
14064mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14065 ;
14066 return 0;
14067}
14068_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069rm -f conftest.$ac_objext
14070if { (ac_try="$ac_compile"
14071case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074esac
14075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compile") 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087esac
14088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest.$ac_objext'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097esac
14098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014103 ac_cv_header_mmap_anon=yes
14104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014105 echo "$as_me: failed program was:" >&5
14106sed 's/^/| /' conftest.$ac_ext >&5
14107
14108 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014109fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014110
Reid Spencera773bd52006-08-04 18:18:08 +000014111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014112 ac_ext=c
14113ac_cpp='$CPP $CPPFLAGS'
14114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14116ac_compiler_gnu=$ac_cv_c_compiler_gnu
14117
14118
14119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014120{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14121echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014122if test "$ac_cv_header_mmap_anon" = yes; then
14123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124cat >>confdefs.h <<\_ACEOF
14125#define HAVE_MMAP_ANONYMOUS 1
14126_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014127
14128fi
14129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14131echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14132if test "${ac_cv_header_stat_broken+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014134else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135 cat >conftest.$ac_ext <<_ACEOF
14136/* confdefs.h. */
14137_ACEOF
14138cat confdefs.h >>conftest.$ac_ext
14139cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014140/* end confdefs.h. */
14141#include <sys/types.h>
14142#include <sys/stat.h>
14143
Reid Spencera773bd52006-08-04 18:18:08 +000014144#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014145# if S_ISBLK (S_IFDIR)
14146You lose.
14147# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014148#endif
14149
Reid Spencera773bd52006-08-04 18:18:08 +000014150#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151# if S_ISBLK (S_IFCHR)
14152You lose.
14153# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014154#endif
14155
Reid Spencera773bd52006-08-04 18:18:08 +000014156#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014157# if S_ISLNK (S_IFREG)
14158You lose.
14159# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014160#endif
14161
Reid Spencera773bd52006-08-04 18:18:08 +000014162#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014163# if S_ISSOCK (S_IFREG)
14164You lose.
14165# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014166#endif
14167
14168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14170 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014171 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014172else
14173 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014175rm -f conftest*
14176
Reid Spencer59473af2004-12-25 07:31:29 +000014177fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014178{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14179echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014180if test $ac_cv_header_stat_broken = yes; then
14181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182cat >>confdefs.h <<\_ACEOF
14183#define STAT_MACROS_BROKEN 1
14184_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014185
14186fi
14187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014188{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14189echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14190if test "${ac_cv_header_sys_wait_h+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014192else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014193 cat >conftest.$ac_ext <<_ACEOF
14194/* confdefs.h. */
14195_ACEOF
14196cat confdefs.h >>conftest.$ac_ext
14197cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014199#include <sys/types.h>
14200#include <sys/wait.h>
14201#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014202# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014203#endif
14204#ifndef WIFEXITED
14205# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14206#endif
14207
John Criswell7a73b802003-06-30 21:59:07 +000014208int
14209main ()
14210{
14211 int s;
14212 wait (&s);
14213 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14214 ;
14215 return 0;
14216}
14217_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014218rm -f conftest.$ac_objext
14219if { (ac_try="$ac_compile"
14220case "(($ac_try" in
14221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14223esac
14224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225 (eval "$ac_compile") 2>conftest.er1
14226 ac_status=$?
14227 grep -v '^ *+' conftest.er1 >conftest.err
14228 rm -f conftest.er1
14229 cat conftest.err >&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } &&
14232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14233 { (case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14236esac
14237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_try") 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; } &&
14242 { ac_try='test -s conftest.$ac_objext'
14243 { (case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14246esac
14247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_try") 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014252 ac_cv_header_sys_wait_h=yes
14253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254 echo "$as_me: failed program was:" >&5
14255sed 's/^/| /' conftest.$ac_ext >&5
14256
14257 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014259
Reid Spencera773bd52006-08-04 18:18:08 +000014260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14263echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014264if test $ac_cv_header_sys_wait_h = yes; then
14265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266cat >>confdefs.h <<\_ACEOF
14267#define HAVE_SYS_WAIT_H 1
14268_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014269
14270fi
14271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14273echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14274if test "${ac_cv_header_time+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014277 cat >conftest.$ac_ext <<_ACEOF
14278/* confdefs.h. */
14279_ACEOF
14280cat confdefs.h >>conftest.$ac_ext
14281cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014282/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014283#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014284#include <sys/time.h>
14285#include <time.h>
14286
14287int
14288main ()
14289{
14290if ((struct tm *) 0)
14291return 0;
14292 ;
14293 return 0;
14294}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014295_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014296rm -f conftest.$ac_objext
14297if { (ac_try="$ac_compile"
14298case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301esac
14302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_compile") 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311 { (case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14314esac
14315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_try") 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14324esac
14325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014330 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014332 echo "$as_me: failed program was:" >&5
14333sed 's/^/| /' conftest.$ac_ext >&5
14334
14335 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014337
Reid Spencera773bd52006-08-04 18:18:08 +000014338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14341echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014342if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344cat >>confdefs.h <<\_ACEOF
14345#define TIME_WITH_SYS_TIME 1
14346_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014347
14348fi
14349
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014351
14352
14353
14354
14355
14356
Reid Spencer59473af2004-12-25 07:31:29 +000014357for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014358do
14359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14365fi
14366ac_res=`eval echo '${'$as_ac_Header'}'`
14367 { echo "$as_me:$LINENO: result: $ac_res" >&5
14368echo "${ECHO_T}$ac_res" >&6; }
14369else
14370 # Is the header compilable?
14371{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14373cat >conftest.$ac_ext <<_ACEOF
14374/* confdefs.h. */
14375_ACEOF
14376cat confdefs.h >>conftest.$ac_ext
14377cat >>conftest.$ac_ext <<_ACEOF
14378/* end confdefs.h. */
14379$ac_includes_default
14380#include <$ac_header>
14381_ACEOF
14382rm -f conftest.$ac_objext
14383if { (ac_try="$ac_compile"
14384case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387esac
14388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_compile") 2>conftest.er1
14390 ac_status=$?
14391 grep -v '^ *+' conftest.er1 >conftest.err
14392 rm -f conftest.er1
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14397 { (case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14400esac
14401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_try") 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; } &&
14406 { ac_try='test -s conftest.$ac_objext'
14407 { (case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410esac
14411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_try") 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_header_compiler=yes
14417else
14418 echo "$as_me: failed program was:" >&5
14419sed 's/^/| /' conftest.$ac_ext >&5
14420
14421 ac_header_compiler=no
14422fi
14423
14424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14426echo "${ECHO_T}$ac_header_compiler" >&6; }
14427
14428# Is the header present?
14429{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14430echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14431cat >conftest.$ac_ext <<_ACEOF
14432/* confdefs.h. */
14433_ACEOF
14434cat confdefs.h >>conftest.$ac_ext
14435cat >>conftest.$ac_ext <<_ACEOF
14436/* end confdefs.h. */
14437#include <$ac_header>
14438_ACEOF
14439if { (ac_try="$ac_cpp conftest.$ac_ext"
14440case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14443esac
14444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14446 ac_status=$?
14447 grep -v '^ *+' conftest.er1 >conftest.err
14448 rm -f conftest.er1
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } >/dev/null; then
14452 if test -s conftest.err; then
14453 ac_cpp_err=$ac_c_preproc_warn_flag
14454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14455 else
14456 ac_cpp_err=
14457 fi
14458else
14459 ac_cpp_err=yes
14460fi
14461if test -z "$ac_cpp_err"; then
14462 ac_header_preproc=yes
14463else
14464 echo "$as_me: failed program was:" >&5
14465sed 's/^/| /' conftest.$ac_ext >&5
14466
14467 ac_header_preproc=no
14468fi
14469
14470rm -f conftest.err conftest.$ac_ext
14471{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14472echo "${ECHO_T}$ac_header_preproc" >&6; }
14473
14474# So? What about this header?
14475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14476 yes:no: )
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14481 ac_header_preproc=yes
14482 ;;
14483 no:yes:* )
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14496 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014497## ------------------------------------ ##
14498## Report this to http://llvm.org/bugs/ ##
14499## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014500_ASBOX
14501 ) | sed "s/^/$as_me: WARNING: /" >&2
14502 ;;
14503esac
14504{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508else
14509 eval "$as_ac_Header=\$ac_header_preproc"
14510fi
14511ac_res=`eval echo '${'$as_ac_Header'}'`
14512 { echo "$as_me:$LINENO: result: $ac_res" >&5
14513echo "${ECHO_T}$ac_res" >&6; }
14514
14515fi
14516if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014517 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014519_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014520
14521fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014522
Reid Spencer59473af2004-12-25 07:31:29 +000014523done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014525
14526
14527
14528
14529
14530
Douglas Gregor071d73d2009-05-18 17:21:34 +000014531for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014532do
14533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539fi
14540ac_res=`eval echo '${'$as_ac_Header'}'`
14541 { echo "$as_me:$LINENO: result: $ac_res" >&5
14542echo "${ECHO_T}$ac_res" >&6; }
14543else
14544 # Is the header compilable?
14545{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14547cat >conftest.$ac_ext <<_ACEOF
14548/* confdefs.h. */
14549_ACEOF
14550cat confdefs.h >>conftest.$ac_ext
14551cat >>conftest.$ac_ext <<_ACEOF
14552/* end confdefs.h. */
14553$ac_includes_default
14554#include <$ac_header>
14555_ACEOF
14556rm -f conftest.$ac_objext
14557if { (ac_try="$ac_compile"
14558case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14561esac
14562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_compile") 2>conftest.er1
14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
14570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14571 { (case "(($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_try") 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; } &&
14580 { ac_try='test -s conftest.$ac_objext'
14581 { (case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14584esac
14585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586 (eval "$ac_try") 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_header_compiler=yes
14591else
14592 echo "$as_me: failed program was:" >&5
14593sed 's/^/| /' conftest.$ac_ext >&5
14594
14595 ac_header_compiler=no
14596fi
14597
14598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14600echo "${ECHO_T}$ac_header_compiler" >&6; }
14601
14602# Is the header present?
14603{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14605cat >conftest.$ac_ext <<_ACEOF
14606/* confdefs.h. */
14607_ACEOF
14608cat confdefs.h >>conftest.$ac_ext
14609cat >>conftest.$ac_ext <<_ACEOF
14610/* end confdefs.h. */
14611#include <$ac_header>
14612_ACEOF
14613if { (ac_try="$ac_cpp conftest.$ac_ext"
14614case "(($ac_try" in
14615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14617esac
14618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14620 ac_status=$?
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } >/dev/null; then
14626 if test -s conftest.err; then
14627 ac_cpp_err=$ac_c_preproc_warn_flag
14628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14629 else
14630 ac_cpp_err=
14631 fi
14632else
14633 ac_cpp_err=yes
14634fi
14635if test -z "$ac_cpp_err"; then
14636 ac_header_preproc=yes
14637else
14638 echo "$as_me: failed program was:" >&5
14639sed 's/^/| /' conftest.$ac_ext >&5
14640
14641 ac_header_preproc=no
14642fi
14643
14644rm -f conftest.err conftest.$ac_ext
14645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14646echo "${ECHO_T}$ac_header_preproc" >&6; }
14647
14648# So? What about this header?
14649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14650 yes:no: )
14651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14655 ac_header_preproc=yes
14656 ;;
14657 no:yes:* )
14658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14670 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014671## ------------------------------------ ##
14672## Report this to http://llvm.org/bugs/ ##
14673## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014674_ASBOX
14675 ) | sed "s/^/$as_me: WARNING: /" >&2
14676 ;;
14677esac
14678{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682else
14683 eval "$as_ac_Header=\$ac_header_preproc"
14684fi
14685ac_res=`eval echo '${'$as_ac_Header'}'`
14686 { echo "$as_me:$LINENO: result: $ac_res" >&5
14687echo "${ECHO_T}$ac_res" >&6; }
14688
14689fi
14690if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014691 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014693_ACEOF
14694
14695fi
14696
14697done
14698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014699
14700
Douglas Gregor071d73d2009-05-18 17:21:34 +000014701for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014702do
14703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709fi
14710ac_res=`eval echo '${'$as_ac_Header'}'`
14711 { echo "$as_me:$LINENO: result: $ac_res" >&5
14712echo "${ECHO_T}$ac_res" >&6; }
14713else
14714 # Is the header compilable?
14715{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14717cat >conftest.$ac_ext <<_ACEOF
14718/* confdefs.h. */
14719_ACEOF
14720cat confdefs.h >>conftest.$ac_ext
14721cat >>conftest.$ac_ext <<_ACEOF
14722/* end confdefs.h. */
14723$ac_includes_default
14724#include <$ac_header>
14725_ACEOF
14726rm -f conftest.$ac_objext
14727if { (ac_try="$ac_compile"
14728case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731esac
14732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_compile") 2>conftest.er1
14734 ac_status=$?
14735 grep -v '^ *+' conftest.er1 >conftest.err
14736 rm -f conftest.er1
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } &&
14740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14741 { (case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14744esac
14745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_try") 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; } &&
14750 { ac_try='test -s conftest.$ac_objext'
14751 { (case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754esac
14755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_try") 2>&5
14757 ac_status=$?
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }; then
14760 ac_header_compiler=yes
14761else
14762 echo "$as_me: failed program was:" >&5
14763sed 's/^/| /' conftest.$ac_ext >&5
14764
14765 ac_header_compiler=no
14766fi
14767
14768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14770echo "${ECHO_T}$ac_header_compiler" >&6; }
14771
14772# Is the header present?
14773{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14775cat >conftest.$ac_ext <<_ACEOF
14776/* confdefs.h. */
14777_ACEOF
14778cat confdefs.h >>conftest.$ac_ext
14779cat >>conftest.$ac_ext <<_ACEOF
14780/* end confdefs.h. */
14781#include <$ac_header>
14782_ACEOF
14783if { (ac_try="$ac_cpp conftest.$ac_ext"
14784case "(($ac_try" in
14785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 *) ac_try_echo=$ac_try;;
14787esac
14788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14790 ac_status=$?
14791 grep -v '^ *+' conftest.er1 >conftest.err
14792 rm -f conftest.er1
14793 cat conftest.err >&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } >/dev/null; then
14796 if test -s conftest.err; then
14797 ac_cpp_err=$ac_c_preproc_warn_flag
14798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14799 else
14800 ac_cpp_err=
14801 fi
14802else
14803 ac_cpp_err=yes
14804fi
14805if test -z "$ac_cpp_err"; then
14806 ac_header_preproc=yes
14807else
14808 echo "$as_me: failed program was:" >&5
14809sed 's/^/| /' conftest.$ac_ext >&5
14810
14811 ac_header_preproc=no
14812fi
14813
14814rm -f conftest.err conftest.$ac_ext
14815{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14816echo "${ECHO_T}$ac_header_preproc" >&6; }
14817
14818# So? What about this header?
14819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14820 yes:no: )
14821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14825 ac_header_preproc=yes
14826 ;;
14827 no:yes:* )
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14840 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014841## ------------------------------------ ##
14842## Report this to http://llvm.org/bugs/ ##
14843## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014844_ASBOX
14845 ) | sed "s/^/$as_me: WARNING: /" >&2
14846 ;;
14847esac
14848{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852else
14853 eval "$as_ac_Header=\$ac_header_preproc"
14854fi
14855ac_res=`eval echo '${'$as_ac_Header'}'`
14856 { echo "$as_me:$LINENO: result: $ac_res" >&5
14857echo "${ECHO_T}$ac_res" >&6; }
14858
14859fi
14860if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014861 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014863_ACEOF
14864
14865fi
14866
14867done
Reid Spencer59473af2004-12-25 07:31:29 +000014868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014869
14870
14871
14872
Daniel Dunbar3e462932011-02-03 02:40:02 +000014873
14874for 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 +000014875do
14876as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14882fi
14883ac_res=`eval echo '${'$as_ac_Header'}'`
14884 { echo "$as_me:$LINENO: result: $ac_res" >&5
14885echo "${ECHO_T}$ac_res" >&6; }
14886else
14887 # Is the header compilable?
14888{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14889echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14890cat >conftest.$ac_ext <<_ACEOF
14891/* confdefs.h. */
14892_ACEOF
14893cat confdefs.h >>conftest.$ac_ext
14894cat >>conftest.$ac_ext <<_ACEOF
14895/* end confdefs.h. */
14896$ac_includes_default
14897#include <$ac_header>
14898_ACEOF
14899rm -f conftest.$ac_objext
14900if { (ac_try="$ac_compile"
14901case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14904esac
14905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906 (eval "$ac_compile") 2>conftest.er1
14907 ac_status=$?
14908 grep -v '^ *+' conftest.er1 >conftest.err
14909 rm -f conftest.er1
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917esac
14918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest.$ac_objext'
14924 { (case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927esac
14928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_try") 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; }; then
14933 ac_header_compiler=yes
14934else
14935 echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
14938 ac_header_compiler=no
14939fi
14940
14941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14942{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14943echo "${ECHO_T}$ac_header_compiler" >&6; }
14944
14945# Is the header present?
14946{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14948cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
14953/* end confdefs.h. */
14954#include <$ac_header>
14955_ACEOF
14956if { (ac_try="$ac_cpp conftest.$ac_ext"
14957case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14960esac
14961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14963 ac_status=$?
14964 grep -v '^ *+' conftest.er1 >conftest.err
14965 rm -f conftest.er1
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } >/dev/null; then
14969 if test -s conftest.err; then
14970 ac_cpp_err=$ac_c_preproc_warn_flag
14971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14972 else
14973 ac_cpp_err=
14974 fi
14975else
14976 ac_cpp_err=yes
14977fi
14978if test -z "$ac_cpp_err"; then
14979 ac_header_preproc=yes
14980else
14981 echo "$as_me: failed program was:" >&5
14982sed 's/^/| /' conftest.$ac_ext >&5
14983
14984 ac_header_preproc=no
14985fi
14986
14987rm -f conftest.err conftest.$ac_ext
14988{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14989echo "${ECHO_T}$ac_header_preproc" >&6; }
14990
14991# So? What about this header?
14992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14993 yes:no: )
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14995echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14997echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14998 ac_header_preproc=yes
14999 ;;
15000 no:yes:* )
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15002echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15004echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15006echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15008echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15012echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15013 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015014## ------------------------------------ ##
15015## Report this to http://llvm.org/bugs/ ##
15016## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015017_ASBOX
15018 ) | sed "s/^/$as_me: WARNING: /" >&2
15019 ;;
15020esac
15021{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025else
15026 eval "$as_ac_Header=\$ac_header_preproc"
15027fi
15028ac_res=`eval echo '${'$as_ac_Header'}'`
15029 { echo "$as_me:$LINENO: result: $ac_res" >&5
15030echo "${ECHO_T}$ac_res" >&6; }
15031
15032fi
15033if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015034 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015035#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015036_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015037
15038fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015039
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015040done
15041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015042
15043
15044
15045
Douglas Gregor01746742009-05-11 18:05:52 +000015046for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015047do
15048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054fi
15055ac_res=`eval echo '${'$as_ac_Header'}'`
15056 { echo "$as_me:$LINENO: result: $ac_res" >&5
15057echo "${ECHO_T}$ac_res" >&6; }
15058else
15059 # Is the header compilable?
15060{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15061echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15062cat >conftest.$ac_ext <<_ACEOF
15063/* confdefs.h. */
15064_ACEOF
15065cat confdefs.h >>conftest.$ac_ext
15066cat >>conftest.$ac_ext <<_ACEOF
15067/* end confdefs.h. */
15068$ac_includes_default
15069#include <$ac_header>
15070_ACEOF
15071rm -f conftest.$ac_objext
15072if { (ac_try="$ac_compile"
15073case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15076esac
15077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_compile") 2>conftest.er1
15079 ac_status=$?
15080 grep -v '^ *+' conftest.er1 >conftest.err
15081 rm -f conftest.er1
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15086 { (case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089esac
15090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest.$ac_objext'
15096 { (case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15099esac
15100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_try") 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_header_compiler=yes
15106else
15107 echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_header_compiler=no
15111fi
15112
15113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15115echo "${ECHO_T}$ac_header_compiler" >&6; }
15116
15117# Is the header present?
15118{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15120cat >conftest.$ac_ext <<_ACEOF
15121/* confdefs.h. */
15122_ACEOF
15123cat confdefs.h >>conftest.$ac_ext
15124cat >>conftest.$ac_ext <<_ACEOF
15125/* end confdefs.h. */
15126#include <$ac_header>
15127_ACEOF
15128if { (ac_try="$ac_cpp conftest.$ac_ext"
15129case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132esac
15133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } >/dev/null; then
15141 if test -s conftest.err; then
15142 ac_cpp_err=$ac_c_preproc_warn_flag
15143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15144 else
15145 ac_cpp_err=
15146 fi
15147else
15148 ac_cpp_err=yes
15149fi
15150if test -z "$ac_cpp_err"; then
15151 ac_header_preproc=yes
15152else
15153 echo "$as_me: failed program was:" >&5
15154sed 's/^/| /' conftest.$ac_ext >&5
15155
15156 ac_header_preproc=no
15157fi
15158
15159rm -f conftest.err conftest.$ac_ext
15160{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15161echo "${ECHO_T}$ac_header_preproc" >&6; }
15162
15163# So? What about this header?
15164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15165 yes:no: )
15166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15170 ac_header_preproc=yes
15171 ;;
15172 no:yes:* )
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15185 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015186## ------------------------------------ ##
15187## Report this to http://llvm.org/bugs/ ##
15188## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015189_ASBOX
15190 ) | sed "s/^/$as_me: WARNING: /" >&2
15191 ;;
15192esac
15193{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15197else
15198 eval "$as_ac_Header=\$ac_header_preproc"
15199fi
15200ac_res=`eval echo '${'$as_ac_Header'}'`
15201 { echo "$as_me:$LINENO: result: $ac_res" >&5
15202echo "${ECHO_T}$ac_res" >&6; }
15203
15204fi
15205if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015206 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015208_ACEOF
15209
15210fi
15211
15212done
15213
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015214
15215for ac_header in valgrind/valgrind.h
15216do
15217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15223fi
15224ac_res=`eval echo '${'$as_ac_Header'}'`
15225 { echo "$as_me:$LINENO: result: $ac_res" >&5
15226echo "${ECHO_T}$ac_res" >&6; }
15227else
15228 # Is the header compilable?
15229{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15231cat >conftest.$ac_ext <<_ACEOF
15232/* confdefs.h. */
15233_ACEOF
15234cat confdefs.h >>conftest.$ac_ext
15235cat >>conftest.$ac_ext <<_ACEOF
15236/* end confdefs.h. */
15237$ac_includes_default
15238#include <$ac_header>
15239_ACEOF
15240rm -f conftest.$ac_objext
15241if { (ac_try="$ac_compile"
15242case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15245esac
15246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_compile") 2>conftest.er1
15248 ac_status=$?
15249 grep -v '^ *+' conftest.er1 >conftest.err
15250 rm -f conftest.er1
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258esac
15259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest.$ac_objext'
15265 { (case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15268esac
15269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_try") 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_header_compiler=yes
15275else
15276 echo "$as_me: failed program was:" >&5
15277sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 ac_header_compiler=no
15280fi
15281
15282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284echo "${ECHO_T}$ac_header_compiler" >&6; }
15285
15286# Is the header present?
15287{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289cat >conftest.$ac_ext <<_ACEOF
15290/* confdefs.h. */
15291_ACEOF
15292cat confdefs.h >>conftest.$ac_ext
15293cat >>conftest.$ac_ext <<_ACEOF
15294/* end confdefs.h. */
15295#include <$ac_header>
15296_ACEOF
15297if { (ac_try="$ac_cpp conftest.$ac_ext"
15298case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301esac
15302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev/null; then
15310 if test -s conftest.err; then
15311 ac_cpp_err=$ac_c_preproc_warn_flag
15312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15313 else
15314 ac_cpp_err=
15315 fi
15316else
15317 ac_cpp_err=yes
15318fi
15319if test -z "$ac_cpp_err"; then
15320 ac_header_preproc=yes
15321else
15322 echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
15325 ac_header_preproc=no
15326fi
15327
15328rm -f conftest.err conftest.$ac_ext
15329{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330echo "${ECHO_T}$ac_header_preproc" >&6; }
15331
15332# So? What about this header?
15333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334 yes:no: )
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339 ac_header_preproc=yes
15340 ;;
15341 no:yes:* )
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15354 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015355## ------------------------------------ ##
15356## Report this to http://llvm.org/bugs/ ##
15357## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015358_ASBOX
15359 ) | sed "s/^/$as_me: WARNING: /" >&2
15360 ;;
15361esac
15362{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15366else
15367 eval "$as_ac_Header=\$ac_header_preproc"
15368fi
15369ac_res=`eval echo '${'$as_ac_Header'}'`
15370 { echo "$as_me:$LINENO: result: $ac_res" >&5
15371echo "${ECHO_T}$ac_res" >&6; }
15372
15373fi
15374if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375 cat >>confdefs.h <<_ACEOF
15376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15377_ACEOF
15378
15379fi
15380
15381done
15382
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015383
15384for ac_header in fenv.h
15385do
15386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15392fi
15393ac_res=`eval echo '${'$as_ac_Header'}'`
15394 { echo "$as_me:$LINENO: result: $ac_res" >&5
15395echo "${ECHO_T}$ac_res" >&6; }
15396else
15397 # Is the header compilable?
15398{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15400cat >conftest.$ac_ext <<_ACEOF
15401/* confdefs.h. */
15402_ACEOF
15403cat confdefs.h >>conftest.$ac_ext
15404cat >>conftest.$ac_ext <<_ACEOF
15405/* end confdefs.h. */
15406$ac_includes_default
15407#include <$ac_header>
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (ac_try="$ac_compile"
15411case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414esac
15415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_compile") 2>conftest.er1
15417 ac_status=$?
15418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424 { (case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15427esac
15428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_try") 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest.$ac_objext'
15434 { (case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437esac
15438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_try") 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 ac_header_compiler=yes
15444else
15445 echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
15448 ac_header_compiler=no
15449fi
15450
15451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15453echo "${ECHO_T}$ac_header_compiler" >&6; }
15454
15455# Is the header present?
15456{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15458cat >conftest.$ac_ext <<_ACEOF
15459/* confdefs.h. */
15460_ACEOF
15461cat confdefs.h >>conftest.$ac_ext
15462cat >>conftest.$ac_ext <<_ACEOF
15463/* end confdefs.h. */
15464#include <$ac_header>
15465_ACEOF
15466if { (ac_try="$ac_cpp conftest.$ac_ext"
15467case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15470esac
15471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } >/dev/null; then
15479 if test -s conftest.err; then
15480 ac_cpp_err=$ac_c_preproc_warn_flag
15481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15482 else
15483 ac_cpp_err=
15484 fi
15485else
15486 ac_cpp_err=yes
15487fi
15488if test -z "$ac_cpp_err"; then
15489 ac_header_preproc=yes
15490else
15491 echo "$as_me: failed program was:" >&5
15492sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 ac_header_preproc=no
15495fi
15496
15497rm -f conftest.err conftest.$ac_ext
15498{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15499echo "${ECHO_T}$ac_header_preproc" >&6; }
15500
15501# So? What about this header?
15502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15503 yes:no: )
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15508 ac_header_preproc=yes
15509 ;;
15510 no:yes:* )
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15523 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015524## ------------------------------------ ##
15525## Report this to http://llvm.org/bugs/ ##
15526## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015527_ASBOX
15528 ) | sed "s/^/$as_me: WARNING: /" >&2
15529 ;;
15530esac
15531{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15535else
15536 eval "$as_ac_Header=\$ac_header_preproc"
15537fi
15538ac_res=`eval echo '${'$as_ac_Header'}'`
15539 { echo "$as_me:$LINENO: result: $ac_res" >&5
15540echo "${ECHO_T}$ac_res" >&6; }
15541
15542fi
15543if test `eval echo '${'$as_ac_Header'}'` = yes; then
15544 cat >>confdefs.h <<_ACEOF
15545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15546_ACEOF
15547
15548fi
15549
15550done
15551
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015552if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015553
15554for ac_header in pthread.h
15555do
15556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562fi
15563ac_res=`eval echo '${'$as_ac_Header'}'`
15564 { echo "$as_me:$LINENO: result: $ac_res" >&5
15565echo "${ECHO_T}$ac_res" >&6; }
15566else
15567 # Is the header compilable?
15568{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15570cat >conftest.$ac_ext <<_ACEOF
15571/* confdefs.h. */
15572_ACEOF
15573cat confdefs.h >>conftest.$ac_ext
15574cat >>conftest.$ac_ext <<_ACEOF
15575/* end confdefs.h. */
15576$ac_includes_default
15577#include <$ac_header>
15578_ACEOF
15579rm -f conftest.$ac_objext
15580if { (ac_try="$ac_compile"
15581case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15584esac
15585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_compile") 2>conftest.er1
15587 ac_status=$?
15588 grep -v '^ *+' conftest.er1 >conftest.err
15589 rm -f conftest.er1
15590 cat conftest.err >&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } &&
15593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15594 { (case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15597esac
15598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_try") 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; } &&
15603 { ac_try='test -s conftest.$ac_objext'
15604 { (case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15607esac
15608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_try") 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 ac_header_compiler=yes
15614else
15615 echo "$as_me: failed program was:" >&5
15616sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 ac_header_compiler=no
15619fi
15620
15621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15623echo "${ECHO_T}$ac_header_compiler" >&6; }
15624
15625# Is the header present?
15626{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15628cat >conftest.$ac_ext <<_ACEOF
15629/* confdefs.h. */
15630_ACEOF
15631cat confdefs.h >>conftest.$ac_ext
15632cat >>conftest.$ac_ext <<_ACEOF
15633/* end confdefs.h. */
15634#include <$ac_header>
15635_ACEOF
15636if { (ac_try="$ac_cpp conftest.$ac_ext"
15637case "(($ac_try" in
15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15640esac
15641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15643 ac_status=$?
15644 grep -v '^ *+' conftest.er1 >conftest.err
15645 rm -f conftest.er1
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } >/dev/null; then
15649 if test -s conftest.err; then
15650 ac_cpp_err=$ac_c_preproc_warn_flag
15651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15652 else
15653 ac_cpp_err=
15654 fi
15655else
15656 ac_cpp_err=yes
15657fi
15658if test -z "$ac_cpp_err"; then
15659 ac_header_preproc=yes
15660else
15661 echo "$as_me: failed program was:" >&5
15662sed 's/^/| /' conftest.$ac_ext >&5
15663
15664 ac_header_preproc=no
15665fi
15666
15667rm -f conftest.err conftest.$ac_ext
15668{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15669echo "${ECHO_T}$ac_header_preproc" >&6; }
15670
15671# So? What about this header?
15672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15673 yes:no: )
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15678 ac_header_preproc=yes
15679 ;;
15680 no:yes:* )
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15688echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15693 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015694## ------------------------------------ ##
15695## Report this to http://llvm.org/bugs/ ##
15696## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015697_ASBOX
15698 ) | sed "s/^/$as_me: WARNING: /" >&2
15699 ;;
15700esac
15701{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705else
15706 eval "$as_ac_Header=\$ac_header_preproc"
15707fi
15708ac_res=`eval echo '${'$as_ac_Header'}'`
15709 { echo "$as_me:$LINENO: result: $ac_res" >&5
15710echo "${ECHO_T}$ac_res" >&6; }
15711
15712fi
15713if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015714 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015716_ACEOF
15717 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015718
15719else
15720 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015721
15722fi
15723
Reid Spencerbe3e4192007-08-17 05:45:26 +000015724done
Reid Spencer1000b732006-12-01 00:37:14 +000015725
15726else
15727 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015728
15729fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015730
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015731if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015732
15733
15734for ac_header in ffi.h ffi/ffi.h
15735do
15736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742fi
15743ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result: $ac_res" >&5
15745echo "${ECHO_T}$ac_res" >&6; }
15746else
15747 # Is the header compilable?
15748{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15749echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15750cat >conftest.$ac_ext <<_ACEOF
15751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
15756$ac_includes_default
15757#include <$ac_header>
15758_ACEOF
15759rm -f conftest.$ac_objext
15760if { (ac_try="$ac_compile"
15761case "(($ac_try" in
15762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763 *) ac_try_echo=$ac_try;;
15764esac
15765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766 (eval "$ac_compile") 2>conftest.er1
15767 ac_status=$?
15768 grep -v '^ *+' conftest.er1 >conftest.err
15769 rm -f conftest.er1
15770 cat conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15774 { (case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777esac
15778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_try") 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest.$ac_objext'
15784 { (case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15787esac
15788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_try") 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_header_compiler=yes
15794else
15795 echo "$as_me: failed program was:" >&5
15796sed 's/^/| /' conftest.$ac_ext >&5
15797
15798 ac_header_compiler=no
15799fi
15800
15801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15803echo "${ECHO_T}$ac_header_compiler" >&6; }
15804
15805# Is the header present?
15806{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15808cat >conftest.$ac_ext <<_ACEOF
15809/* confdefs.h. */
15810_ACEOF
15811cat confdefs.h >>conftest.$ac_ext
15812cat >>conftest.$ac_ext <<_ACEOF
15813/* end confdefs.h. */
15814#include <$ac_header>
15815_ACEOF
15816if { (ac_try="$ac_cpp conftest.$ac_ext"
15817case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15820esac
15821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15823 ac_status=$?
15824 grep -v '^ *+' conftest.er1 >conftest.err
15825 rm -f conftest.er1
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } >/dev/null; then
15829 if test -s conftest.err; then
15830 ac_cpp_err=$ac_c_preproc_warn_flag
15831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15832 else
15833 ac_cpp_err=
15834 fi
15835else
15836 ac_cpp_err=yes
15837fi
15838if test -z "$ac_cpp_err"; then
15839 ac_header_preproc=yes
15840else
15841 echo "$as_me: failed program was:" >&5
15842sed 's/^/| /' conftest.$ac_ext >&5
15843
15844 ac_header_preproc=no
15845fi
15846
15847rm -f conftest.err conftest.$ac_ext
15848{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15849echo "${ECHO_T}$ac_header_preproc" >&6; }
15850
15851# So? What about this header?
15852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15853 yes:no: )
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15858 ac_header_preproc=yes
15859 ;;
15860 no:yes:* )
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15873 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015874## ------------------------------------ ##
15875## Report this to http://llvm.org/bugs/ ##
15876## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015877_ASBOX
15878 ) | sed "s/^/$as_me: WARNING: /" >&2
15879 ;;
15880esac
15881{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15885else
15886 eval "$as_ac_Header=\$ac_header_preproc"
15887fi
15888ac_res=`eval echo '${'$as_ac_Header'}'`
15889 { echo "$as_me:$LINENO: result: $ac_res" >&5
15890echo "${ECHO_T}$ac_res" >&6; }
15891
15892fi
15893if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015894 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015896_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015897
15898fi
15899
15900done
15901
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015902fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015903
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015904
Eric Christopher654dee42010-06-22 21:01:04 +000015905for ac_header in CrashReporterClient.h
15906do
15907as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15913fi
15914ac_res=`eval echo '${'$as_ac_Header'}'`
15915 { echo "$as_me:$LINENO: result: $ac_res" >&5
15916echo "${ECHO_T}$ac_res" >&6; }
15917else
15918 # Is the header compilable?
15919{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15920echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15921cat >conftest.$ac_ext <<_ACEOF
15922/* confdefs.h. */
15923_ACEOF
15924cat confdefs.h >>conftest.$ac_ext
15925cat >>conftest.$ac_ext <<_ACEOF
15926/* end confdefs.h. */
15927$ac_includes_default
15928#include <$ac_header>
15929_ACEOF
15930rm -f conftest.$ac_objext
15931if { (ac_try="$ac_compile"
15932case "(($ac_try" in
15933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934 *) ac_try_echo=$ac_try;;
15935esac
15936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937 (eval "$ac_compile") 2>conftest.er1
15938 ac_status=$?
15939 grep -v '^ *+' conftest.er1 >conftest.err
15940 rm -f conftest.er1
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15945 { (case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15948esac
15949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_try") 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest.$ac_objext'
15955 { (case "(($ac_try" in
15956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957 *) ac_try_echo=$ac_try;;
15958esac
15959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960 (eval "$ac_try") 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_header_compiler=yes
15965else
15966 echo "$as_me: failed program was:" >&5
15967sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 ac_header_compiler=no
15970fi
15971
15972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15974echo "${ECHO_T}$ac_header_compiler" >&6; }
15975
15976# Is the header present?
15977{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15979cat >conftest.$ac_ext <<_ACEOF
15980/* confdefs.h. */
15981_ACEOF
15982cat confdefs.h >>conftest.$ac_ext
15983cat >>conftest.$ac_ext <<_ACEOF
15984/* end confdefs.h. */
15985#include <$ac_header>
15986_ACEOF
15987if { (ac_try="$ac_cpp conftest.$ac_ext"
15988case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15991esac
15992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15994 ac_status=$?
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } >/dev/null; then
16000 if test -s conftest.err; then
16001 ac_cpp_err=$ac_c_preproc_warn_flag
16002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16003 else
16004 ac_cpp_err=
16005 fi
16006else
16007 ac_cpp_err=yes
16008fi
16009if test -z "$ac_cpp_err"; then
16010 ac_header_preproc=yes
16011else
16012 echo "$as_me: failed program was:" >&5
16013sed 's/^/| /' conftest.$ac_ext >&5
16014
16015 ac_header_preproc=no
16016fi
16017
16018rm -f conftest.err conftest.$ac_ext
16019{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16020echo "${ECHO_T}$ac_header_preproc" >&6; }
16021
16022# So? What about this header?
16023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16024 yes:no: )
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16029 ac_header_preproc=yes
16030 ;;
16031 no:yes:* )
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16044 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016045## ------------------------------------ ##
16046## Report this to http://llvm.org/bugs/ ##
16047## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016048_ASBOX
16049 ) | sed "s/^/$as_me: WARNING: /" >&2
16050 ;;
16051esac
16052{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056else
16057 eval "$as_ac_Header=\$ac_header_preproc"
16058fi
16059ac_res=`eval echo '${'$as_ac_Header'}'`
16060 { echo "$as_me:$LINENO: result: $ac_res" >&5
16061echo "${ECHO_T}$ac_res" >&6; }
16062
16063fi
16064if test `eval echo '${'$as_ac_Header'}'` = yes; then
16065 cat >>confdefs.h <<_ACEOF
16066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16067_ACEOF
16068
16069fi
16070
16071done
16072
16073
Eric Christopher51e57132010-12-07 02:05:42 +000016074{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16075echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016076cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016082extern const char *__crashreporter_info__;
16083 int main() {
16084 __crashreporter_info__ = "test";
16085 return 0;
16086 }
Eric Christopher481d4022010-12-03 07:45:22 +000016087
Eric Christopher481d4022010-12-03 07:45:22 +000016088_ACEOF
16089rm -f conftest.$ac_objext conftest$ac_exeext
16090if { (ac_try="$ac_link"
16091case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094esac
16095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_link") 2>conftest.er1
16097 ac_status=$?
16098 grep -v '^ *+' conftest.er1 >conftest.err
16099 rm -f conftest.er1
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16104 { (case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16107esac
16108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_try") 2>&5
16110 ac_status=$?
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; } &&
16113 { ac_try='test -s conftest$ac_exeext'
16114 { (case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16117esac
16118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_try") 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016123 { echo "$as_me:$LINENO: result: yes" >&5
16124echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016125
16126cat >>confdefs.h <<\_ACEOF
16127#define HAVE_CRASHREPORTER_INFO 1
16128_ACEOF
16129
Eric Christopher51e57132010-12-07 02:05:42 +000016130else
16131 echo "$as_me: failed program was:" >&5
16132sed 's/^/| /' conftest.$ac_ext >&5
16133
16134 { echo "$as_me:$LINENO: result: no" >&5
16135echo "${ECHO_T}no" >&6; }
16136
16137cat >>confdefs.h <<\_ACEOF
16138#define HAVE_CRASHREPORTER_INFO 0
16139_ACEOF
16140
Eric Christopher481d4022010-12-03 07:45:22 +000016141fi
Eric Christopher654dee42010-06-22 21:01:04 +000016142
Eric Christopher51e57132010-12-07 02:05:42 +000016143rm -f core conftest.err conftest.$ac_objext \
16144 conftest$ac_exeext conftest.$ac_ext
16145
16146
Reid Spencer8085cff2005-01-16 02:58:39 +000016147
Torok Edwin871384f2010-01-26 08:50:50 +000016148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016149 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16150echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16151if test "${ac_cv_huge_val_sanity+set}" = set; then
16152 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016153else
16154
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016155 ac_ext=cpp
16156ac_cpp='$CXXCPP $CPPFLAGS'
16157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016160
Eric Christopherc7718502010-03-02 05:06:54 +000016161 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016162 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016163 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016164 ac_cv_huge_val_sanity=yes
16165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016166 cat >conftest.$ac_ext <<_ACEOF
16167/* confdefs.h. */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016171/* end confdefs.h. */
16172#include <math.h>
16173int
16174main ()
16175{
16176double x = HUGE_VAL; return x != x;
16177 ;
16178 return 0;
16179}
16180_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016181rm -f conftest$ac_exeext
16182if { (ac_try="$ac_link"
16183case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16186esac
16187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188 (eval "$ac_link") 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16192 { (case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16195esac
16196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_try") 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016201 ac_cv_huge_val_sanity=yes
16202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016203 echo "$as_me: program exited with status $ac_status" >&5
16204echo "$as_me: failed program was:" >&5
16205sed 's/^/| /' conftest.$ac_ext >&5
16206
16207( exit $ac_status )
16208ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016210rm -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 +000016211fi
16212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016213
Eric Christopherc7718502010-03-02 05:06:54 +000016214 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016215 ac_ext=c
16216ac_cpp='$CPP $CPPFLAGS'
16217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16219ac_compiler_gnu=$ac_cv_c_compiler_gnu
16220
16221
16222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016223{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16224echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016225 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16226
16227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016228{ echo "$as_me:$LINENO: checking for pid_t" >&5
16229echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16230if test "${ac_cv_type_pid_t+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232else
16233 cat >conftest.$ac_ext <<_ACEOF
16234/* confdefs.h. */
16235_ACEOF
16236cat confdefs.h >>conftest.$ac_ext
16237cat >>conftest.$ac_ext <<_ACEOF
16238/* end confdefs.h. */
16239$ac_includes_default
16240typedef pid_t ac__type_new_;
16241int
16242main ()
16243{
16244if ((ac__type_new_ *) 0)
16245 return 0;
16246if (sizeof (ac__type_new_))
16247 return 0;
16248 ;
16249 return 0;
16250}
16251_ACEOF
16252rm -f conftest.$ac_objext
16253if { (ac_try="$ac_compile"
16254case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16257esac
16258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_compile") 2>conftest.er1
16260 ac_status=$?
16261 grep -v '^ *+' conftest.er1 >conftest.err
16262 rm -f conftest.er1
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16267 { (case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16270esac
16271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_try") 2>&5
16273 ac_status=$?
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; } &&
16276 { ac_try='test -s conftest.$ac_objext'
16277 { (case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16280esac
16281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_try") 2>&5
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_type_pid_t=yes
16287else
16288 echo "$as_me: failed program was:" >&5
16289sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016291 ac_cv_type_pid_t=no
16292fi
16293
16294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295fi
16296{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16297echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16298if test $ac_cv_type_pid_t = yes; then
16299 :
John Criswell7a73b802003-06-30 21:59:07 +000016300else
16301
16302cat >>confdefs.h <<_ACEOF
16303#define pid_t int
16304_ACEOF
16305
16306fi
16307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016308{ echo "$as_me:$LINENO: checking for size_t" >&5
16309echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16310if test "${ac_cv_type_size_t+set}" = set; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16312else
16313 cat >conftest.$ac_ext <<_ACEOF
16314/* confdefs.h. */
16315_ACEOF
16316cat confdefs.h >>conftest.$ac_ext
16317cat >>conftest.$ac_ext <<_ACEOF
16318/* end confdefs.h. */
16319$ac_includes_default
16320typedef size_t ac__type_new_;
16321int
16322main ()
16323{
16324if ((ac__type_new_ *) 0)
16325 return 0;
16326if (sizeof (ac__type_new_))
16327 return 0;
16328 ;
16329 return 0;
16330}
16331_ACEOF
16332rm -f conftest.$ac_objext
16333if { (ac_try="$ac_compile"
16334case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16337esac
16338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339 (eval "$ac_compile") 2>conftest.er1
16340 ac_status=$?
16341 grep -v '^ *+' conftest.er1 >conftest.err
16342 rm -f conftest.er1
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16347 { (case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16350esac
16351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_try") 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
16357 { (case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360esac
16361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_try") 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_cv_type_size_t=yes
16367else
16368 echo "$as_me: failed program was:" >&5
16369sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016371 ac_cv_type_size_t=no
16372fi
16373
16374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375fi
16376{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16377echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16378if test $ac_cv_type_size_t = yes; then
16379 :
John Criswell7a73b802003-06-30 21:59:07 +000016380else
16381
16382cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016383#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016384_ACEOF
16385
16386fi
16387
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016388
16389cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016390#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016391_ACEOF
16392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016393{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16394echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16395if test "${ac_cv_struct_tm+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016397else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016398 cat >conftest.$ac_ext <<_ACEOF
16399/* confdefs.h. */
16400_ACEOF
16401cat confdefs.h >>conftest.$ac_ext
16402cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016403/* end confdefs.h. */
16404#include <sys/types.h>
16405#include <time.h>
16406
16407int
16408main ()
16409{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016410struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016411 ;
16412 return 0;
16413}
16414_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016415rm -f conftest.$ac_objext
16416if { (ac_try="$ac_compile"
16417case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16420esac
16421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_compile") 2>conftest.er1
16423 ac_status=$?
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
16429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16430 { (case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16433esac
16434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_try") 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; } &&
16439 { ac_try='test -s conftest.$ac_objext'
16440 { (case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16443esac
16444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_try") 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016449 ac_cv_struct_tm=time.h
16450else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016451 echo "$as_me: failed program was:" >&5
16452sed 's/^/| /' conftest.$ac_ext >&5
16453
16454 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016456
Reid Spencera773bd52006-08-04 18:18:08 +000016457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016459{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16460echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016461if test $ac_cv_struct_tm = sys/time.h; then
16462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016463cat >>confdefs.h <<\_ACEOF
16464#define TM_IN_SYS_TIME 1
16465_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016466
16467fi
16468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016469{ echo "$as_me:$LINENO: checking for int64_t" >&5
16470echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16471if test "${ac_cv_type_int64_t+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473else
16474 cat >conftest.$ac_ext <<_ACEOF
16475/* confdefs.h. */
16476_ACEOF
16477cat confdefs.h >>conftest.$ac_ext
16478cat >>conftest.$ac_ext <<_ACEOF
16479/* end confdefs.h. */
16480$ac_includes_default
16481typedef int64_t ac__type_new_;
16482int
16483main ()
16484{
16485if ((ac__type_new_ *) 0)
16486 return 0;
16487if (sizeof (ac__type_new_))
16488 return 0;
16489 ;
16490 return 0;
16491}
16492_ACEOF
16493rm -f conftest.$ac_objext
16494if { (ac_try="$ac_compile"
16495case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16498esac
16499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_compile") 2>conftest.er1
16501 ac_status=$?
16502 grep -v '^ *+' conftest.er1 >conftest.err
16503 rm -f conftest.er1
16504 cat conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
16507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16508 { (case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16511esac
16512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_try") 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest.$ac_objext'
16518 { (case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521esac
16522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_try") 2>&5
16524 ac_status=$?
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; }; then
16527 ac_cv_type_int64_t=yes
16528else
16529 echo "$as_me: failed program was:" >&5
16530sed 's/^/| /' conftest.$ac_ext >&5
16531
16532 ac_cv_type_int64_t=no
16533fi
16534
16535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16536fi
16537{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16538echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16539if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016540
16541cat >>confdefs.h <<_ACEOF
16542#define HAVE_INT64_T 1
16543_ACEOF
16544
16545
16546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016547 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16548echo "$as_me: error: Type int64_t required but not found" >&2;}
16549 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016550fi
16551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016552{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16553echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16554if test "${ac_cv_type_uint64_t+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16556else
16557 cat >conftest.$ac_ext <<_ACEOF
16558/* confdefs.h. */
16559_ACEOF
16560cat confdefs.h >>conftest.$ac_ext
16561cat >>conftest.$ac_ext <<_ACEOF
16562/* end confdefs.h. */
16563$ac_includes_default
16564typedef uint64_t ac__type_new_;
16565int
16566main ()
16567{
16568if ((ac__type_new_ *) 0)
16569 return 0;
16570if (sizeof (ac__type_new_))
16571 return 0;
16572 ;
16573 return 0;
16574}
16575_ACEOF
16576rm -f conftest.$ac_objext
16577if { (ac_try="$ac_compile"
16578case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16581esac
16582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_compile") 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16594esac
16595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest.$ac_objext'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604esac
16605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_cv_type_uint64_t=yes
16611else
16612 echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 ac_cv_type_uint64_t=no
16616fi
16617
16618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16619fi
16620{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16621echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16622if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016623
16624cat >>confdefs.h <<_ACEOF
16625#define HAVE_UINT64_T 1
16626_ACEOF
16627
16628
16629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016630 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16631echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16632if test "${ac_cv_type_u_int64_t+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634else
16635 cat >conftest.$ac_ext <<_ACEOF
16636/* confdefs.h. */
16637_ACEOF
16638cat confdefs.h >>conftest.$ac_ext
16639cat >>conftest.$ac_ext <<_ACEOF
16640/* end confdefs.h. */
16641$ac_includes_default
16642typedef u_int64_t ac__type_new_;
16643int
16644main ()
16645{
16646if ((ac__type_new_ *) 0)
16647 return 0;
16648if (sizeof (ac__type_new_))
16649 return 0;
16650 ;
16651 return 0;
16652}
16653_ACEOF
16654rm -f conftest.$ac_objext
16655if { (ac_try="$ac_compile"
16656case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16659esac
16660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_compile") 2>conftest.er1
16662 ac_status=$?
16663 grep -v '^ *+' conftest.er1 >conftest.err
16664 rm -f conftest.er1
16665 cat conftest.err >&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } &&
16668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16669 { (case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16672esac
16673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_try") 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; } &&
16678 { ac_try='test -s conftest.$ac_objext'
16679 { (case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16682esac
16683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684 (eval "$ac_try") 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; }; then
16688 ac_cv_type_u_int64_t=yes
16689else
16690 echo "$as_me: failed program was:" >&5
16691sed 's/^/| /' conftest.$ac_ext >&5
16692
16693 ac_cv_type_u_int64_t=no
16694fi
16695
16696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16697fi
16698{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16699echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16700if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016701
16702cat >>confdefs.h <<_ACEOF
16703#define HAVE_U_INT64_T 1
16704_ACEOF
16705
16706
Misha Brukmanceca9042004-09-02 23:02:30 +000016707else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016708 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16709echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16710 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016711fi
16712
John Criswell679ff312004-09-02 18:44:44 +000016713fi
16714
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016715
16716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016717
16718
16719
16720
16721
16722
16723
Reid Spencerdf3be822006-01-23 08:15:53 +000016724for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016725do
16726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16727{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16729if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16731else
16732 cat >conftest.$ac_ext <<_ACEOF
16733/* confdefs.h. */
16734_ACEOF
16735cat confdefs.h >>conftest.$ac_ext
16736cat >>conftest.$ac_ext <<_ACEOF
16737/* end confdefs.h. */
16738/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16740#define $ac_func innocuous_$ac_func
16741
16742/* System header to define __stub macros and hopefully few prototypes,
16743 which can conflict with char $ac_func (); below.
16744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16745 <limits.h> exists even on freestanding compilers. */
16746
16747#ifdef __STDC__
16748# include <limits.h>
16749#else
16750# include <assert.h>
16751#endif
16752
16753#undef $ac_func
16754
16755/* Override any GCC internal prototype to avoid an error.
16756 Use char because int might match the return type of a GCC
16757 builtin and then its argument prototype would still apply. */
16758#ifdef __cplusplus
16759extern "C"
16760#endif
16761char $ac_func ();
16762/* The GNU C library defines this for functions which it implements
16763 to always fail with ENOSYS. Some functions are actually named
16764 something starting with __ and the normal name is an alias. */
16765#if defined __stub_$ac_func || defined __stub___$ac_func
16766choke me
16767#endif
16768
16769int
16770main ()
16771{
16772return $ac_func ();
16773 ;
16774 return 0;
16775}
16776_ACEOF
16777rm -f conftest.$ac_objext conftest$ac_exeext
16778if { (ac_try="$ac_link"
16779case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782esac
16783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_link") 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16792 { (case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16795esac
16796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_try") 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest$ac_exeext'
16802 { (case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805esac
16806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_try") 2>&5
16808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 eval "$as_ac_var=yes"
16812else
16813 echo "$as_me: failed program was:" >&5
16814sed 's/^/| /' conftest.$ac_ext >&5
16815
16816 eval "$as_ac_var=no"
16817fi
16818
16819rm -f core conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16821fi
16822ac_res=`eval echo '${'$as_ac_var'}'`
16823 { echo "$as_me:$LINENO: result: $ac_res" >&5
16824echo "${ECHO_T}$ac_res" >&6; }
16825if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016826 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016828_ACEOF
16829
16830fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016831done
John Criswell7a73b802003-06-30 21:59:07 +000016832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016833
16834
16835
16836
Reid Spencer96cf5872007-07-13 10:05:30 +000016837for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016838do
16839as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16840{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16841echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16842if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16844else
16845 cat >conftest.$ac_ext <<_ACEOF
16846/* confdefs.h. */
16847_ACEOF
16848cat confdefs.h >>conftest.$ac_ext
16849cat >>conftest.$ac_ext <<_ACEOF
16850/* end confdefs.h. */
16851/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16853#define $ac_func innocuous_$ac_func
16854
16855/* System header to define __stub macros and hopefully few prototypes,
16856 which can conflict with char $ac_func (); below.
16857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16858 <limits.h> exists even on freestanding compilers. */
16859
16860#ifdef __STDC__
16861# include <limits.h>
16862#else
16863# include <assert.h>
16864#endif
16865
16866#undef $ac_func
16867
16868/* Override any GCC internal prototype to avoid an error.
16869 Use char because int might match the return type of a GCC
16870 builtin and then its argument prototype would still apply. */
16871#ifdef __cplusplus
16872extern "C"
16873#endif
16874char $ac_func ();
16875/* The GNU C library defines this for functions which it implements
16876 to always fail with ENOSYS. Some functions are actually named
16877 something starting with __ and the normal name is an alias. */
16878#if defined __stub_$ac_func || defined __stub___$ac_func
16879choke me
16880#endif
16881
16882int
16883main ()
16884{
16885return $ac_func ();
16886 ;
16887 return 0;
16888}
16889_ACEOF
16890rm -f conftest.$ac_objext conftest$ac_exeext
16891if { (ac_try="$ac_link"
16892case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16895esac
16896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_link") 2>conftest.er1
16898 ac_status=$?
16899 grep -v '^ *+' conftest.er1 >conftest.err
16900 rm -f conftest.er1
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16908esac
16909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918esac
16919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 eval "$as_ac_var=yes"
16925else
16926 echo "$as_me: failed program was:" >&5
16927sed 's/^/| /' conftest.$ac_ext >&5
16928
16929 eval "$as_ac_var=no"
16930fi
16931
16932rm -f core conftest.err conftest.$ac_objext \
16933 conftest$ac_exeext conftest.$ac_ext
16934fi
16935ac_res=`eval echo '${'$as_ac_var'}'`
16936 { echo "$as_me:$LINENO: result: $ac_res" >&5
16937echo "${ECHO_T}$ac_res" >&6; }
16938if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016939 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016940#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016941_ACEOF
16942
16943fi
16944done
16945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016946
16947
16948
16949
16950
Reid Spencerb90645c2007-02-16 19:17:20 +000016951for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016952do
16953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16954{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16956if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16958else
16959 cat >conftest.$ac_ext <<_ACEOF
16960/* confdefs.h. */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h. */
16965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16967#define $ac_func innocuous_$ac_func
16968
16969/* System header to define __stub macros and hopefully few prototypes,
16970 which can conflict with char $ac_func (); below.
16971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16972 <limits.h> exists even on freestanding compilers. */
16973
16974#ifdef __STDC__
16975# include <limits.h>
16976#else
16977# include <assert.h>
16978#endif
16979
16980#undef $ac_func
16981
16982/* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
16985#ifdef __cplusplus
16986extern "C"
16987#endif
16988char $ac_func ();
16989/* The GNU C library defines this for functions which it implements
16990 to always fail with ENOSYS. Some functions are actually named
16991 something starting with __ and the normal name is an alias. */
16992#if defined __stub_$ac_func || defined __stub___$ac_func
16993choke me
16994#endif
16995
16996int
16997main ()
16998{
16999return $ac_func ();
17000 ;
17001 return 0;
17002}
17003_ACEOF
17004rm -f conftest.$ac_objext conftest$ac_exeext
17005if { (ac_try="$ac_link"
17006case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_link") 2>conftest.er1
17012 ac_status=$?
17013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } &&
17018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17019 { (case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022esac
17023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_try") 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } &&
17028 { ac_try='test -s conftest$ac_exeext'
17029 { (case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032esac
17033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_try") 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; }; then
17038 eval "$as_ac_var=yes"
17039else
17040 echo "$as_me: failed program was:" >&5
17041sed 's/^/| /' conftest.$ac_ext >&5
17042
17043 eval "$as_ac_var=no"
17044fi
17045
17046rm -f core conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17048fi
17049ac_res=`eval echo '${'$as_ac_var'}'`
17050 { echo "$as_me:$LINENO: result: $ac_res" >&5
17051echo "${ECHO_T}$ac_res" >&6; }
17052if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017053 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017055_ACEOF
17056
17057fi
17058done
17059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017060
17061
17062
Reid Spencerb90645c2007-02-16 19:17:20 +000017063for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017064do
17065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17066{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17068if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070else
17071 cat >conftest.$ac_ext <<_ACEOF
17072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
17077/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17079#define $ac_func innocuous_$ac_func
17080
17081/* System header to define __stub macros and hopefully few prototypes,
17082 which can conflict with char $ac_func (); below.
17083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17084 <limits.h> exists even on freestanding compilers. */
17085
17086#ifdef __STDC__
17087# include <limits.h>
17088#else
17089# include <assert.h>
17090#endif
17091
17092#undef $ac_func
17093
17094/* Override any GCC internal prototype to avoid an error.
17095 Use char because int might match the return type of a GCC
17096 builtin and then its argument prototype would still apply. */
17097#ifdef __cplusplus
17098extern "C"
17099#endif
17100char $ac_func ();
17101/* The GNU C library defines this for functions which it implements
17102 to always fail with ENOSYS. Some functions are actually named
17103 something starting with __ and the normal name is an alias. */
17104#if defined __stub_$ac_func || defined __stub___$ac_func
17105choke me
17106#endif
17107
17108int
17109main ()
17110{
17111return $ac_func ();
17112 ;
17113 return 0;
17114}
17115_ACEOF
17116rm -f conftest.$ac_objext conftest$ac_exeext
17117if { (ac_try="$ac_link"
17118case "(($ac_try" in
17119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120 *) ac_try_echo=$ac_try;;
17121esac
17122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123 (eval "$ac_link") 2>conftest.er1
17124 ac_status=$?
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17131 { (case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17134esac
17135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_try") 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; } &&
17140 { ac_try='test -s conftest$ac_exeext'
17141 { (case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17144esac
17145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_try") 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
17150 eval "$as_ac_var=yes"
17151else
17152 echo "$as_me: failed program was:" >&5
17153sed 's/^/| /' conftest.$ac_ext >&5
17154
17155 eval "$as_ac_var=no"
17156fi
17157
17158rm -f core conftest.err conftest.$ac_objext \
17159 conftest$ac_exeext conftest.$ac_ext
17160fi
17161ac_res=`eval echo '${'$as_ac_var'}'`
17162 { echo "$as_me:$LINENO: result: $ac_res" >&5
17163echo "${ECHO_T}$ac_res" >&6; }
17164if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017165 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017167_ACEOF
17168
17169fi
17170done
17171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017172
17173
17174
17175
17176
Eric Christophere4291822010-04-16 05:14:21 +000017177
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017178
17179for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017180do
17181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17182{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17184if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17186else
17187 cat >conftest.$ac_ext <<_ACEOF
17188/* confdefs.h. */
17189_ACEOF
17190cat confdefs.h >>conftest.$ac_ext
17191cat >>conftest.$ac_ext <<_ACEOF
17192/* end confdefs.h. */
17193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17195#define $ac_func innocuous_$ac_func
17196
17197/* System header to define __stub macros and hopefully few prototypes,
17198 which can conflict with char $ac_func (); below.
17199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17200 <limits.h> exists even on freestanding compilers. */
17201
17202#ifdef __STDC__
17203# include <limits.h>
17204#else
17205# include <assert.h>
17206#endif
17207
17208#undef $ac_func
17209
17210/* Override any GCC internal prototype to avoid an error.
17211 Use char because int might match the return type of a GCC
17212 builtin and then its argument prototype would still apply. */
17213#ifdef __cplusplus
17214extern "C"
17215#endif
17216char $ac_func ();
17217/* The GNU C library defines this for functions which it implements
17218 to always fail with ENOSYS. Some functions are actually named
17219 something starting with __ and the normal name is an alias. */
17220#if defined __stub_$ac_func || defined __stub___$ac_func
17221choke me
17222#endif
17223
17224int
17225main ()
17226{
17227return $ac_func ();
17228 ;
17229 return 0;
17230}
17231_ACEOF
17232rm -f conftest.$ac_objext conftest$ac_exeext
17233if { (ac_try="$ac_link"
17234case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237esac
17238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
17240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17247 { (case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250esac
17251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_try") 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest$ac_exeext'
17257 { (case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17260esac
17261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_try") 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 eval "$as_ac_var=yes"
17267else
17268 echo "$as_me: failed program was:" >&5
17269sed 's/^/| /' conftest.$ac_ext >&5
17270
17271 eval "$as_ac_var=no"
17272fi
17273
17274rm -f core conftest.err conftest.$ac_objext \
17275 conftest$ac_exeext conftest.$ac_ext
17276fi
17277ac_res=`eval echo '${'$as_ac_var'}'`
17278 { echo "$as_me:$LINENO: result: $ac_res" >&5
17279echo "${ECHO_T}$ac_res" >&6; }
17280if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017281 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017283_ACEOF
17284
17285fi
17286done
Reid Spencerdf3be822006-01-23 08:15:53 +000017287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017288
17289
17290
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017291for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017292do
17293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17294{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17296if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17298else
17299 cat >conftest.$ac_ext <<_ACEOF
17300/* confdefs.h. */
17301_ACEOF
17302cat confdefs.h >>conftest.$ac_ext
17303cat >>conftest.$ac_ext <<_ACEOF
17304/* end confdefs.h. */
17305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17307#define $ac_func innocuous_$ac_func
17308
17309/* System header to define __stub macros and hopefully few prototypes,
17310 which can conflict with char $ac_func (); below.
17311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17312 <limits.h> exists even on freestanding compilers. */
17313
17314#ifdef __STDC__
17315# include <limits.h>
17316#else
17317# include <assert.h>
17318#endif
17319
17320#undef $ac_func
17321
17322/* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17325#ifdef __cplusplus
17326extern "C"
17327#endif
17328char $ac_func ();
17329/* The GNU C library defines this for functions which it implements
17330 to always fail with ENOSYS. Some functions are actually named
17331 something starting with __ and the normal name is an alias. */
17332#if defined __stub_$ac_func || defined __stub___$ac_func
17333choke me
17334#endif
17335
17336int
17337main ()
17338{
17339return $ac_func ();
17340 ;
17341 return 0;
17342}
17343_ACEOF
17344rm -f conftest.$ac_objext conftest$ac_exeext
17345if { (ac_try="$ac_link"
17346case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17349esac
17350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_link") 2>conftest.er1
17352 ac_status=$?
17353 grep -v '^ *+' conftest.er1 >conftest.err
17354 rm -f conftest.er1
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } &&
17358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17359 { (case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17362esac
17363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_try") 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest$ac_exeext'
17369 { (case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17372esac
17373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_try") 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 eval "$as_ac_var=yes"
17379else
17380 echo "$as_me: failed program was:" >&5
17381sed 's/^/| /' conftest.$ac_ext >&5
17382
17383 eval "$as_ac_var=no"
17384fi
17385
17386rm -f core conftest.err conftest.$ac_objext \
17387 conftest$ac_exeext conftest.$ac_ext
17388fi
17389ac_res=`eval echo '${'$as_ac_var'}'`
17390 { echo "$as_me:$LINENO: result: $ac_res" >&5
17391echo "${ECHO_T}$ac_res" >&6; }
17392if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017393 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017395_ACEOF
17396
17397fi
17398done
17399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017400
17401
17402
17403
Chris Lattner511f11d2005-11-14 07:25:50 +000017404for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017405do
17406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17407{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17409if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411else
17412 cat >conftest.$ac_ext <<_ACEOF
17413/* confdefs.h. */
17414_ACEOF
17415cat confdefs.h >>conftest.$ac_ext
17416cat >>conftest.$ac_ext <<_ACEOF
17417/* end confdefs.h. */
17418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17420#define $ac_func innocuous_$ac_func
17421
17422/* System header to define __stub macros and hopefully few prototypes,
17423 which can conflict with char $ac_func (); below.
17424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17425 <limits.h> exists even on freestanding compilers. */
17426
17427#ifdef __STDC__
17428# include <limits.h>
17429#else
17430# include <assert.h>
17431#endif
17432
17433#undef $ac_func
17434
17435/* Override any GCC internal prototype to avoid an error.
17436 Use char because int might match the return type of a GCC
17437 builtin and then its argument prototype would still apply. */
17438#ifdef __cplusplus
17439extern "C"
17440#endif
17441char $ac_func ();
17442/* The GNU C library defines this for functions which it implements
17443 to always fail with ENOSYS. Some functions are actually named
17444 something starting with __ and the normal name is an alias. */
17445#if defined __stub_$ac_func || defined __stub___$ac_func
17446choke me
17447#endif
17448
17449int
17450main ()
17451{
17452return $ac_func ();
17453 ;
17454 return 0;
17455}
17456_ACEOF
17457rm -f conftest.$ac_objext conftest$ac_exeext
17458if { (ac_try="$ac_link"
17459case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17462esac
17463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_link") 2>conftest.er1
17465 ac_status=$?
17466 grep -v '^ *+' conftest.er1 >conftest.err
17467 rm -f conftest.er1
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17475esac
17476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest$ac_exeext'
17482 { (case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485esac
17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_try") 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 eval "$as_ac_var=yes"
17492else
17493 echo "$as_me: failed program was:" >&5
17494sed 's/^/| /' conftest.$ac_ext >&5
17495
17496 eval "$as_ac_var=no"
17497fi
17498
17499rm -f core conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
17501fi
17502ac_res=`eval echo '${'$as_ac_var'}'`
17503 { echo "$as_me:$LINENO: result: $ac_res" >&5
17504echo "${ECHO_T}$ac_res" >&6; }
17505if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017506 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017508_ACEOF
17509
17510fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017511done
John Criswell7a73b802003-06-30 21:59:07 +000017512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017513
17514
17515
17516
Daniel Dunbar3e462932011-02-03 02:40:02 +000017517
17518for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017519do
17520as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17521{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17522echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17523if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17525else
17526 cat >conftest.$ac_ext <<_ACEOF
17527/* confdefs.h. */
17528_ACEOF
17529cat confdefs.h >>conftest.$ac_ext
17530cat >>conftest.$ac_ext <<_ACEOF
17531/* end confdefs.h. */
17532/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17534#define $ac_func innocuous_$ac_func
17535
17536/* System header to define __stub macros and hopefully few prototypes,
17537 which can conflict with char $ac_func (); below.
17538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17539 <limits.h> exists even on freestanding compilers. */
17540
17541#ifdef __STDC__
17542# include <limits.h>
17543#else
17544# include <assert.h>
17545#endif
17546
17547#undef $ac_func
17548
17549/* Override any GCC internal prototype to avoid an error.
17550 Use char because int might match the return type of a GCC
17551 builtin and then its argument prototype would still apply. */
17552#ifdef __cplusplus
17553extern "C"
17554#endif
17555char $ac_func ();
17556/* The GNU C library defines this for functions which it implements
17557 to always fail with ENOSYS. Some functions are actually named
17558 something starting with __ and the normal name is an alias. */
17559#if defined __stub_$ac_func || defined __stub___$ac_func
17560choke me
17561#endif
17562
17563int
17564main ()
17565{
17566return $ac_func ();
17567 ;
17568 return 0;
17569}
17570_ACEOF
17571rm -f conftest.$ac_objext conftest$ac_exeext
17572if { (ac_try="$ac_link"
17573case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17576esac
17577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_link") 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589esac
17590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17599esac
17600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_try") 2>&5
17602 ac_status=$?
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 eval "$as_ac_var=yes"
17606else
17607 echo "$as_me: failed program was:" >&5
17608sed 's/^/| /' conftest.$ac_ext >&5
17609
17610 eval "$as_ac_var=no"
17611fi
17612
17613rm -f core conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext conftest.$ac_ext
17615fi
17616ac_res=`eval echo '${'$as_ac_var'}'`
17617 { echo "$as_me:$LINENO: result: $ac_res" >&5
17618echo "${ECHO_T}$ac_res" >&6; }
17619if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017620 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017622_ACEOF
17623
17624fi
17625done
17626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017627{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17628echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17629if test "${llvm_cv_c_printf_a+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017631else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017632 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017633ac_cpp='$CPP $CPPFLAGS'
17634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17636ac_compiler_gnu=$ac_cv_c_compiler_gnu
17637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017638 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017639 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017640else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017641 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017643 /* confdefs.h. */
17644_ACEOF
17645cat confdefs.h >>conftest.$ac_ext
17646cat >>conftest.$ac_ext <<_ACEOF
17647/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017648
John Criswella0137d32003-10-13 16:22:01 +000017649#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017650#include <stdlib.h>
17651
John Criswella0137d32003-10-13 16:22:01 +000017652int
17653main ()
17654{
17655
Reid Spencer2706f8c2004-09-19 23:53:36 +000017656volatile double A, B;
17657char Buffer[100];
17658A = 1;
17659A /= 10.0;
17660sprintf(Buffer, "%a", A);
17661B = atof(Buffer);
17662if (A != B)
17663 return (1);
17664if (A != 0x1.999999999999ap-4)
17665 return (1);
17666return (0);
John Criswella0137d32003-10-13 16:22:01 +000017667 ;
17668 return 0;
17669}
17670_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017671rm -f conftest$ac_exeext
17672if { (ac_try="$ac_link"
17673case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676esac
17677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_link") 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } && { ac_try='./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
Reid Spencer3be58f92004-11-27 22:01:43 +000017691 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017692else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017693 echo "$as_me: program exited with status $ac_status" >&5
17694echo "$as_me: failed program was:" >&5
17695sed 's/^/| /' conftest.$ac_ext >&5
17696
17697( exit $ac_status )
17698llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017699fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017700rm -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 +000017701fi
Reid Spencera773bd52006-08-04 18:18:08 +000017702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017703
Reid Spencer2706f8c2004-09-19 23:53:36 +000017704 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017705ac_cpp='$CPP $CPPFLAGS'
17706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17708ac_compiler_gnu=$ac_cv_c_compiler_gnu
17709
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017710fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017711{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17712echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017713 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017715cat >>confdefs.h <<\_ACEOF
17716#define HAVE_PRINTF_A 1
17717_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017718
Reid Spencer2706f8c2004-09-19 23:53:36 +000017719 fi
John Criswella0137d32003-10-13 16:22:01 +000017720
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017722{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17723echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17724if test "${ac_cv_func_rand48+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017726else
Reid Spencera773bd52006-08-04 18:18:08 +000017727 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017728ac_cpp='$CXXCPP $CPPFLAGS'
17729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017733 cat >conftest.$ac_ext <<_ACEOF
17734/* confdefs.h. */
17735_ACEOF
17736cat confdefs.h >>conftest.$ac_ext
17737cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017738/* end confdefs.h. */
17739#include <stdlib.h>
17740int
17741main ()
17742{
17743srand48(0);lrand48();drand48();
17744 ;
17745 return 0;
17746}
17747_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017748rm -f conftest.$ac_objext
17749if { (ac_try="$ac_compile"
17750case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17753esac
17754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_compile") 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
17773 { (case "(($ac_try" in
17774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775 *) ac_try_echo=$ac_try;;
17776esac
17777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778 (eval "$ac_try") 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017782 ac_cv_func_rand48=yes
17783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017784 echo "$as_me: failed program was:" >&5
17785sed 's/^/| /' conftest.$ac_ext >&5
17786
17787 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017789
Reid Spencera773bd52006-08-04 18:18:08 +000017790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017791 ac_ext=c
17792ac_cpp='$CPP $CPPFLAGS'
17793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17795ac_compiler_gnu=$ac_cv_c_compiler_gnu
17796
17797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017798{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17799echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017800
17801if test "$ac_cv_func_rand48" = "yes" ; then
17802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017803cat >>confdefs.h <<\_ACEOF
17804#define HAVE_RAND48 1
17805_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017806
17807fi
John Criswell0021c312004-02-13 21:57:29 +000017808
17809
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017810{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17811echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17812if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17814else
17815 cat >conftest.$ac_ext <<_ACEOF
17816/* confdefs.h. */
17817_ACEOF
17818cat confdefs.h >>conftest.$ac_ext
17819cat >>conftest.$ac_ext <<_ACEOF
17820/* end confdefs.h. */
17821$ac_includes_default
17822int
17823main ()
17824{
17825#ifndef strerror_s
17826 char *p = (char *) strerror_s;
17827 return !p;
17828#endif
17829
17830 ;
17831 return 0;
17832}
17833_ACEOF
17834rm -f conftest.$ac_objext
17835if { (ac_try="$ac_compile"
17836case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17839esac
17840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_compile") 2>conftest.er1
17842 ac_status=$?
17843 grep -v '^ *+' conftest.er1 >conftest.err
17844 rm -f conftest.er1
17845 cat conftest.err >&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); } &&
17848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849 { (case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17852esac
17853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_try") 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; } &&
17858 { ac_try='test -s conftest.$ac_objext'
17859 { (case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17862esac
17863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_try") 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_have_decl_strerror_s=yes
17869else
17870 echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
17873 ac_cv_have_decl_strerror_s=no
17874fi
17875
17876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877fi
17878{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17879echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17880if test $ac_cv_have_decl_strerror_s = yes; then
17881
17882cat >>confdefs.h <<_ACEOF
17883#define HAVE_DECL_STRERROR_S 1
17884_ACEOF
17885
17886
17887else
17888 cat >>confdefs.h <<_ACEOF
17889#define HAVE_DECL_STRERROR_S 0
17890_ACEOF
17891
17892
17893fi
17894
17895
17896
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017897if test "$llvm_cv_os_type" = "MingW" ; then
17898 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17899echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17900if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17902else
17903 ac_check_lib_save_LIBS=$LIBS
17904LIBS="-lgcc $LIBS"
17905cat >conftest.$ac_ext <<_ACEOF
17906/* confdefs.h. */
17907_ACEOF
17908cat confdefs.h >>conftest.$ac_ext
17909cat >>conftest.$ac_ext <<_ACEOF
17910/* end confdefs.h. */
17911
17912/* Override any GCC internal prototype to avoid an error.
17913 Use char because int might match the return type of a GCC
17914 builtin and then its argument prototype would still apply. */
17915#ifdef __cplusplus
17916extern "C"
17917#endif
17918char _alloca ();
17919int
17920main ()
17921{
17922return _alloca ();
17923 ;
17924 return 0;
17925}
17926_ACEOF
17927rm -f conftest.$ac_objext conftest$ac_exeext
17928if { (ac_try="$ac_link"
17929case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17932esac
17933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_link") 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17942 { (case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17945esac
17946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_try") 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest$ac_exeext'
17952 { (case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955esac
17956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_try") 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 ac_cv_lib_gcc__alloca=yes
17962else
17963 echo "$as_me: failed program was:" >&5
17964sed 's/^/| /' conftest.$ac_ext >&5
17965
17966 ac_cv_lib_gcc__alloca=no
17967fi
17968
17969rm -f core conftest.err conftest.$ac_objext \
17970 conftest$ac_exeext conftest.$ac_ext
17971LIBS=$ac_check_lib_save_LIBS
17972fi
17973{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17974echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17975if test $ac_cv_lib_gcc__alloca = yes; then
17976
17977cat >>confdefs.h <<\_ACEOF
17978#define HAVE__ALLOCA 1
17979_ACEOF
17980
17981fi
17982
17983 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17984echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17985if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987else
17988 ac_check_lib_save_LIBS=$LIBS
17989LIBS="-lgcc $LIBS"
17990cat >conftest.$ac_ext <<_ACEOF
17991/* confdefs.h. */
17992_ACEOF
17993cat confdefs.h >>conftest.$ac_ext
17994cat >>conftest.$ac_ext <<_ACEOF
17995/* end confdefs.h. */
17996
17997/* Override any GCC internal prototype to avoid an error.
17998 Use char because int might match the return type of a GCC
17999 builtin and then its argument prototype would still apply. */
18000#ifdef __cplusplus
18001extern "C"
18002#endif
18003char __alloca ();
18004int
18005main ()
18006{
18007return __alloca ();
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012rm -f conftest.$ac_objext conftest$ac_exeext
18013if { (ac_try="$ac_link"
18014case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18017esac
18018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_link") 2>conftest.er1
18020 ac_status=$?
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
18026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18027 { (case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18030esac
18031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_try") 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } &&
18036 { ac_try='test -s conftest$ac_exeext'
18037 { (case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18040esac
18041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_try") 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
18046 ac_cv_lib_gcc___alloca=yes
18047else
18048 echo "$as_me: failed program was:" >&5
18049sed 's/^/| /' conftest.$ac_ext >&5
18050
18051 ac_cv_lib_gcc___alloca=no
18052fi
18053
18054rm -f core conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056LIBS=$ac_check_lib_save_LIBS
18057fi
18058{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18059echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18060if test $ac_cv_lib_gcc___alloca = yes; then
18061
18062cat >>confdefs.h <<\_ACEOF
18063#define HAVE___ALLOCA 1
18064_ACEOF
18065
18066fi
18067
18068 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18069echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18070if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072else
18073 ac_check_lib_save_LIBS=$LIBS
18074LIBS="-lgcc $LIBS"
18075cat >conftest.$ac_ext <<_ACEOF
18076/* confdefs.h. */
18077_ACEOF
18078cat confdefs.h >>conftest.$ac_ext
18079cat >>conftest.$ac_ext <<_ACEOF
18080/* end confdefs.h. */
18081
18082/* Override any GCC internal prototype to avoid an error.
18083 Use char because int might match the return type of a GCC
18084 builtin and then its argument prototype would still apply. */
18085#ifdef __cplusplus
18086extern "C"
18087#endif
18088char __chkstk ();
18089int
18090main ()
18091{
18092return __chkstk ();
18093 ;
18094 return 0;
18095}
18096_ACEOF
18097rm -f conftest.$ac_objext conftest$ac_exeext
18098if { (ac_try="$ac_link"
18099case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18102esac
18103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_link") 2>conftest.er1
18105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
18111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115esac
18116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest$ac_exeext'
18122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18125esac
18126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_lib_gcc___chkstk=yes
18132else
18133 echo "$as_me: failed program was:" >&5
18134sed 's/^/| /' conftest.$ac_ext >&5
18135
18136 ac_cv_lib_gcc___chkstk=no
18137fi
18138
18139rm -f core conftest.err conftest.$ac_objext \
18140 conftest$ac_exeext conftest.$ac_ext
18141LIBS=$ac_check_lib_save_LIBS
18142fi
18143{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18144echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18145if test $ac_cv_lib_gcc___chkstk = yes; then
18146
18147cat >>confdefs.h <<\_ACEOF
18148#define HAVE___CHKSTK 1
18149_ACEOF
18150
18151fi
18152
18153 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18154echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18155if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18157else
18158 ac_check_lib_save_LIBS=$LIBS
18159LIBS="-lgcc $LIBS"
18160cat >conftest.$ac_ext <<_ACEOF
18161/* confdefs.h. */
18162_ACEOF
18163cat confdefs.h >>conftest.$ac_ext
18164cat >>conftest.$ac_ext <<_ACEOF
18165/* end confdefs.h. */
18166
18167/* Override any GCC internal prototype to avoid an error.
18168 Use char because int might match the return type of a GCC
18169 builtin and then its argument prototype would still apply. */
18170#ifdef __cplusplus
18171extern "C"
18172#endif
18173char ___chkstk ();
18174int
18175main ()
18176{
18177return ___chkstk ();
18178 ;
18179 return 0;
18180}
18181_ACEOF
18182rm -f conftest.$ac_objext conftest$ac_exeext
18183if { (ac_try="$ac_link"
18184case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187esac
18188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_link") 2>conftest.er1
18190 ac_status=$?
18191 grep -v '^ *+' conftest.er1 >conftest.err
18192 rm -f conftest.er1
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
18196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18200esac
18201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest$ac_exeext'
18207 { (case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18210esac
18211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_try") 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_lib_gcc____chkstk=yes
18217else
18218 echo "$as_me: failed program was:" >&5
18219sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 ac_cv_lib_gcc____chkstk=no
18222fi
18223
18224rm -f core conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18226LIBS=$ac_check_lib_save_LIBS
18227fi
18228{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18229echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18230if test $ac_cv_lib_gcc____chkstk = yes; then
18231
18232cat >>confdefs.h <<\_ACEOF
18233#define HAVE____CHKSTK 1
18234_ACEOF
18235
18236fi
18237
18238
18239 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18240echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18241if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18243else
18244 ac_check_lib_save_LIBS=$LIBS
18245LIBS="-lgcc $LIBS"
18246cat >conftest.$ac_ext <<_ACEOF
18247/* confdefs.h. */
18248_ACEOF
18249cat confdefs.h >>conftest.$ac_ext
18250cat >>conftest.$ac_ext <<_ACEOF
18251/* end confdefs.h. */
18252
18253/* Override any GCC internal prototype to avoid an error.
18254 Use char because int might match the return type of a GCC
18255 builtin and then its argument prototype would still apply. */
18256#ifdef __cplusplus
18257extern "C"
18258#endif
18259char __ashldi3 ();
18260int
18261main ()
18262{
18263return __ashldi3 ();
18264 ;
18265 return 0;
18266}
18267_ACEOF
18268rm -f conftest.$ac_objext conftest$ac_exeext
18269if { (ac_try="$ac_link"
18270case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18273esac
18274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_link") 2>conftest.er1
18276 ac_status=$?
18277 grep -v '^ *+' conftest.er1 >conftest.err
18278 rm -f conftest.er1
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18283 { (case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18286esac
18287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_try") 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest$ac_exeext'
18293 { (case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18296esac
18297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_try") 2>&5
18299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; }; then
18302 ac_cv_lib_gcc___ashldi3=yes
18303else
18304 echo "$as_me: failed program was:" >&5
18305sed 's/^/| /' conftest.$ac_ext >&5
18306
18307 ac_cv_lib_gcc___ashldi3=no
18308fi
18309
18310rm -f core conftest.err conftest.$ac_objext \
18311 conftest$ac_exeext conftest.$ac_ext
18312LIBS=$ac_check_lib_save_LIBS
18313fi
18314{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18315echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18316if test $ac_cv_lib_gcc___ashldi3 = yes; then
18317
18318cat >>confdefs.h <<\_ACEOF
18319#define HAVE___ASHLDI3 1
18320_ACEOF
18321
18322fi
18323
18324 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18325echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18326if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18328else
18329 ac_check_lib_save_LIBS=$LIBS
18330LIBS="-lgcc $LIBS"
18331cat >conftest.$ac_ext <<_ACEOF
18332/* confdefs.h. */
18333_ACEOF
18334cat confdefs.h >>conftest.$ac_ext
18335cat >>conftest.$ac_ext <<_ACEOF
18336/* end confdefs.h. */
18337
18338/* Override any GCC internal prototype to avoid an error.
18339 Use char because int might match the return type of a GCC
18340 builtin and then its argument prototype would still apply. */
18341#ifdef __cplusplus
18342extern "C"
18343#endif
18344char __ashrdi3 ();
18345int
18346main ()
18347{
18348return __ashrdi3 ();
18349 ;
18350 return 0;
18351}
18352_ACEOF
18353rm -f conftest.$ac_objext conftest$ac_exeext
18354if { (ac_try="$ac_link"
18355case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18358esac
18359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_link") 2>conftest.er1
18361 ac_status=$?
18362 grep -v '^ *+' conftest.er1 >conftest.err
18363 rm -f conftest.er1
18364 cat conftest.err >&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18368 { (case "(($ac_try" in
18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370 *) ac_try_echo=$ac_try;;
18371esac
18372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373 (eval "$ac_try") 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try='test -s conftest$ac_exeext'
18378 { (case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18381esac
18382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_try") 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 ac_cv_lib_gcc___ashrdi3=yes
18388else
18389 echo "$as_me: failed program was:" >&5
18390sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 ac_cv_lib_gcc___ashrdi3=no
18393fi
18394
18395rm -f core conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18397LIBS=$ac_check_lib_save_LIBS
18398fi
18399{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18400echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18401if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18402
18403cat >>confdefs.h <<\_ACEOF
18404#define HAVE___ASHRDI3 1
18405_ACEOF
18406
18407fi
18408
18409 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18410echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18411if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
18413else
18414 ac_check_lib_save_LIBS=$LIBS
18415LIBS="-lgcc $LIBS"
18416cat >conftest.$ac_ext <<_ACEOF
18417/* confdefs.h. */
18418_ACEOF
18419cat confdefs.h >>conftest.$ac_ext
18420cat >>conftest.$ac_ext <<_ACEOF
18421/* end confdefs.h. */
18422
18423/* Override any GCC internal prototype to avoid an error.
18424 Use char because int might match the return type of a GCC
18425 builtin and then its argument prototype would still apply. */
18426#ifdef __cplusplus
18427extern "C"
18428#endif
18429char __divdi3 ();
18430int
18431main ()
18432{
18433return __divdi3 ();
18434 ;
18435 return 0;
18436}
18437_ACEOF
18438rm -f conftest.$ac_objext conftest$ac_exeext
18439if { (ac_try="$ac_link"
18440case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443esac
18444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_link") 2>conftest.er1
18446 ac_status=$?
18447 grep -v '^ *+' conftest.er1 >conftest.err
18448 rm -f conftest.er1
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456esac
18457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest$ac_exeext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466esac
18467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_lib_gcc___divdi3=yes
18473else
18474 echo "$as_me: failed program was:" >&5
18475sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 ac_cv_lib_gcc___divdi3=no
18478fi
18479
18480rm -f core conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18482LIBS=$ac_check_lib_save_LIBS
18483fi
18484{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18485echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18486if test $ac_cv_lib_gcc___divdi3 = yes; then
18487
18488cat >>confdefs.h <<\_ACEOF
18489#define HAVE___DIVDI3 1
18490_ACEOF
18491
18492fi
18493
18494 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18495echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18496if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18498else
18499 ac_check_lib_save_LIBS=$LIBS
18500LIBS="-lgcc $LIBS"
18501cat >conftest.$ac_ext <<_ACEOF
18502/* confdefs.h. */
18503_ACEOF
18504cat confdefs.h >>conftest.$ac_ext
18505cat >>conftest.$ac_ext <<_ACEOF
18506/* end confdefs.h. */
18507
18508/* Override any GCC internal prototype to avoid an error.
18509 Use char because int might match the return type of a GCC
18510 builtin and then its argument prototype would still apply. */
18511#ifdef __cplusplus
18512extern "C"
18513#endif
18514char __fixdfdi ();
18515int
18516main ()
18517{
18518return __fixdfdi ();
18519 ;
18520 return 0;
18521}
18522_ACEOF
18523rm -f conftest.$ac_objext conftest$ac_exeext
18524if { (ac_try="$ac_link"
18525case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528esac
18529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541esac
18542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18551esac
18552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_lib_gcc___fixdfdi=yes
18558else
18559 echo "$as_me: failed program was:" >&5
18560sed 's/^/| /' conftest.$ac_ext >&5
18561
18562 ac_cv_lib_gcc___fixdfdi=no
18563fi
18564
18565rm -f core conftest.err conftest.$ac_objext \
18566 conftest$ac_exeext conftest.$ac_ext
18567LIBS=$ac_check_lib_save_LIBS
18568fi
18569{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18570echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18571if test $ac_cv_lib_gcc___fixdfdi = yes; then
18572
18573cat >>confdefs.h <<\_ACEOF
18574#define HAVE___FIXDFDI 1
18575_ACEOF
18576
18577fi
18578
18579 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18580echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18581if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583else
18584 ac_check_lib_save_LIBS=$LIBS
18585LIBS="-lgcc $LIBS"
18586cat >conftest.$ac_ext <<_ACEOF
18587/* confdefs.h. */
18588_ACEOF
18589cat confdefs.h >>conftest.$ac_ext
18590cat >>conftest.$ac_ext <<_ACEOF
18591/* end confdefs.h. */
18592
18593/* Override any GCC internal prototype to avoid an error.
18594 Use char because int might match the return type of a GCC
18595 builtin and then its argument prototype would still apply. */
18596#ifdef __cplusplus
18597extern "C"
18598#endif
18599char __fixsfdi ();
18600int
18601main ()
18602{
18603return __fixsfdi ();
18604 ;
18605 return 0;
18606}
18607_ACEOF
18608rm -f conftest.$ac_objext conftest$ac_exeext
18609if { (ac_try="$ac_link"
18610case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613esac
18614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18623 { (case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18626esac
18627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_try") 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; } &&
18632 { ac_try='test -s conftest$ac_exeext'
18633 { (case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18636esac
18637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_try") 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_cv_lib_gcc___fixsfdi=yes
18643else
18644 echo "$as_me: failed program was:" >&5
18645sed 's/^/| /' conftest.$ac_ext >&5
18646
18647 ac_cv_lib_gcc___fixsfdi=no
18648fi
18649
18650rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652LIBS=$ac_check_lib_save_LIBS
18653fi
18654{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18655echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18656if test $ac_cv_lib_gcc___fixsfdi = yes; then
18657
18658cat >>confdefs.h <<\_ACEOF
18659#define HAVE___FIXSFDI 1
18660_ACEOF
18661
18662fi
18663
18664 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18665echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18666if test "${ac_cv_lib_gcc___floatdidf+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 __floatdidf ();
18685int
18686main ()
18687{
18688return __floatdidf ();
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___floatdidf=yes
18728else
18729 echo "$as_me: failed program was:" >&5
18730sed 's/^/| /' conftest.$ac_ext >&5
18731
18732 ac_cv_lib_gcc___floatdidf=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___floatdidf" >&5
18740echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18741if test $ac_cv_lib_gcc___floatdidf = yes; then
18742
18743cat >>confdefs.h <<\_ACEOF
18744#define HAVE___FLOATDIDF 1
18745_ACEOF
18746
18747fi
18748
18749 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18750echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18751if test "${ac_cv_lib_gcc___lshrdi3+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 __lshrdi3 ();
18770int
18771main ()
18772{
18773return __lshrdi3 ();
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___lshrdi3=yes
18813else
18814 echo "$as_me: failed program was:" >&5
18815sed 's/^/| /' conftest.$ac_ext >&5
18816
18817 ac_cv_lib_gcc___lshrdi3=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___lshrdi3" >&5
18825echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18826if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18827
18828cat >>confdefs.h <<\_ACEOF
18829#define HAVE___LSHRDI3 1
18830_ACEOF
18831
18832fi
18833
18834 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18835echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18836if test "${ac_cv_lib_gcc___moddi3+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 __moddi3 ();
18855int
18856main ()
18857{
18858return __moddi3 ();
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___moddi3=yes
18898else
18899 echo "$as_me: failed program was:" >&5
18900sed 's/^/| /' conftest.$ac_ext >&5
18901
18902 ac_cv_lib_gcc___moddi3=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___moddi3" >&5
18910echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18911if test $ac_cv_lib_gcc___moddi3 = yes; then
18912
18913cat >>confdefs.h <<\_ACEOF
18914#define HAVE___MODDI3 1
18915_ACEOF
18916
18917fi
18918
18919 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18920echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18921if test "${ac_cv_lib_gcc___udivdi3+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 __udivdi3 ();
18940int
18941main ()
18942{
18943return __udivdi3 ();
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___udivdi3=yes
18983else
18984 echo "$as_me: failed program was:" >&5
18985sed 's/^/| /' conftest.$ac_ext >&5
18986
18987 ac_cv_lib_gcc___udivdi3=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___udivdi3" >&5
18995echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18996if test $ac_cv_lib_gcc___udivdi3 = yes; then
18997
18998cat >>confdefs.h <<\_ACEOF
18999#define HAVE___UDIVDI3 1
19000_ACEOF
19001
19002fi
19003
19004 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19005echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19006if test "${ac_cv_lib_gcc___umoddi3+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 __umoddi3 ();
19025int
19026main ()
19027{
19028return __umoddi3 ();
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___umoddi3=yes
19068else
19069 echo "$as_me: failed program was:" >&5
19070sed 's/^/| /' conftest.$ac_ext >&5
19071
19072 ac_cv_lib_gcc___umoddi3=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___umoddi3" >&5
19080echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19081if test $ac_cv_lib_gcc___umoddi3 = yes; then
19082
19083cat >>confdefs.h <<\_ACEOF
19084#define HAVE___UMODDI3 1
19085_ACEOF
19086
19087fi
19088
19089
19090 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19091echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19092if test "${ac_cv_lib_gcc___main+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19094else
19095 ac_check_lib_save_LIBS=$LIBS
19096LIBS="-lgcc $LIBS"
19097cat >conftest.$ac_ext <<_ACEOF
19098/* confdefs.h. */
19099_ACEOF
19100cat confdefs.h >>conftest.$ac_ext
19101cat >>conftest.$ac_ext <<_ACEOF
19102/* end confdefs.h. */
19103
19104/* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19107#ifdef __cplusplus
19108extern "C"
19109#endif
19110char __main ();
19111int
19112main ()
19113{
19114return __main ();
19115 ;
19116 return 0;
19117}
19118_ACEOF
19119rm -f conftest.$ac_objext conftest$ac_exeext
19120if { (ac_try="$ac_link"
19121case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19124esac
19125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>conftest.er1
19127 ac_status=$?
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19134 { (case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19137esac
19138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_try") 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest$ac_exeext'
19144 { (case "(($ac_try" in
19145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146 *) ac_try_echo=$ac_try;;
19147esac
19148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149 (eval "$ac_try") 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 ac_cv_lib_gcc___main=yes
19154else
19155 echo "$as_me: failed program was:" >&5
19156sed 's/^/| /' conftest.$ac_ext >&5
19157
19158 ac_cv_lib_gcc___main=no
19159fi
19160
19161rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163LIBS=$ac_check_lib_save_LIBS
19164fi
19165{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19166echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19167if test $ac_cv_lib_gcc___main = yes; then
19168
19169cat >>confdefs.h <<\_ACEOF
19170#define HAVE___MAIN 1
19171_ACEOF
19172
19173fi
19174
19175 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19176echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19177if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19179else
19180 ac_check_lib_save_LIBS=$LIBS
19181LIBS="-lgcc $LIBS"
19182cat >conftest.$ac_ext <<_ACEOF
19183/* confdefs.h. */
19184_ACEOF
19185cat confdefs.h >>conftest.$ac_ext
19186cat >>conftest.$ac_ext <<_ACEOF
19187/* end confdefs.h. */
19188
19189/* Override any GCC internal prototype to avoid an error.
19190 Use char because int might match the return type of a GCC
19191 builtin and then its argument prototype would still apply. */
19192#ifdef __cplusplus
19193extern "C"
19194#endif
19195char __cmpdi2 ();
19196int
19197main ()
19198{
19199return __cmpdi2 ();
19200 ;
19201 return 0;
19202}
19203_ACEOF
19204rm -f conftest.$ac_objext conftest$ac_exeext
19205if { (ac_try="$ac_link"
19206case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19209esac
19210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_link") 2>conftest.er1
19212 ac_status=$?
19213 grep -v '^ *+' conftest.er1 >conftest.err
19214 rm -f conftest.er1
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19219 { (case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19222esac
19223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_try") 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest$ac_exeext'
19229 { (case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232esac
19233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_try") 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_lib_gcc___cmpdi2=yes
19239else
19240 echo "$as_me: failed program was:" >&5
19241sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_cv_lib_gcc___cmpdi2=no
19244fi
19245
19246rm -f core conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
19248LIBS=$ac_check_lib_save_LIBS
19249fi
19250{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19251echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19252if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19253
19254cat >>confdefs.h <<\_ACEOF
19255#define HAVE___CMPDI2 1
19256_ACEOF
19257
19258fi
19259
19260fi
19261
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019262if test "$llvm_cv_os_type" = "MingW" ; then
19263 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19264echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19265 cat >conftest.$ac_ext <<_ACEOF
19266#include <windows.h>
19267#include <imagehlp.h>
19268extern void foo(PENUMLOADED_MODULES_CALLBACK);
19269extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19270_ACEOF
19271rm -f conftest.$ac_objext
19272if { (ac_try="$ac_compile"
19273case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19276esac
19277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_compile") 2>conftest.er1
19279 ac_status=$?
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19286 { (case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19289esac
19290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_try") 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; } &&
19295 { ac_try='test -s conftest.$ac_objext'
19296 { (case "(($ac_try" in
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298 *) ac_try_echo=$ac_try;;
19299esac
19300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301 (eval "$ac_try") 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
19305
19306 { echo "$as_me:$LINENO: result: yes" >&5
19307echo "${ECHO_T}yes" >&6; }
19308 llvm_cv_win32_elmcb_pcstr="PCSTR"
19309
19310else
19311 echo "$as_me: failed program was:" >&5
19312sed 's/^/| /' conftest.$ac_ext >&5
19313
19314
19315 { echo "$as_me:$LINENO: result: no" >&5
19316echo "${ECHO_T}no" >&6; }
19317 llvm_cv_win32_elmcb_pcstr="PSTR"
19318
19319fi
19320
19321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19322
19323cat >>confdefs.h <<_ACEOF
19324#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19325_ACEOF
19326
19327fi
19328
Torok Edwin871384f2010-01-26 08:50:50 +000019329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019330{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19331echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19332if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019334else
Reid Spencera773bd52006-08-04 18:18:08 +000019335 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019336ac_cpp='$CXXCPP $CPPFLAGS'
19337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019341 cat >conftest.$ac_ext <<_ACEOF
19342/* confdefs.h. */
19343_ACEOF
19344cat confdefs.h >>conftest.$ac_ext
19345cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019346/* end confdefs.h. */
19347#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019348int
19349main ()
19350{
19351float f; isnan(f);
19352 ;
19353 return 0;
19354}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019356rm -f conftest.$ac_objext
19357if { (ac_try="$ac_compile"
19358case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361esac
19362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_compile") 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
19370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19371 { (case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19374esac
19375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_try") 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest.$ac_objext'
19381 { (case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384esac
19385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_try") 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019390 ac_cv_func_isnan_in_math_h=yes
19391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019392 echo "$as_me: failed program was:" >&5
19393sed 's/^/| /' conftest.$ac_ext >&5
19394
19395 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019397
Reid Spencera773bd52006-08-04 18:18:08 +000019398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019399 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019400ac_cpp='$CPP $CPPFLAGS'
19401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19403ac_compiler_gnu=$ac_cv_c_compiler_gnu
19404
19405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019406{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19407echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019408
19409
19410if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019411
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019412cat >>confdefs.h <<\_ACEOF
19413#define HAVE_ISNAN_IN_MATH_H 1
19414_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019415
Reid Spencerabec8f92004-10-27 23:03:44 +000019416fi
19417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019418{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19419echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19420if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019422else
Reid Spencera773bd52006-08-04 18:18:08 +000019423 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019424ac_cpp='$CXXCPP $CPPFLAGS'
19425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019429 cat >conftest.$ac_ext <<_ACEOF
19430/* confdefs.h. */
19431_ACEOF
19432cat confdefs.h >>conftest.$ac_ext
19433cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019434/* end confdefs.h. */
19435#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019436int
19437main ()
19438{
19439float f; isnan(f);
19440 ;
19441 return 0;
19442}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019443_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019444rm -f conftest.$ac_objext
19445if { (ac_try="$ac_compile"
19446case "(($ac_try" in
19447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448 *) ac_try_echo=$ac_try;;
19449esac
19450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451 (eval "$ac_compile") 2>conftest.er1
19452 ac_status=$?
19453 grep -v '^ *+' conftest.er1 >conftest.err
19454 rm -f conftest.er1
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19462esac
19463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
19469 { (case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19472esac
19473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_try") 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019478 ac_cv_func_isnan_in_cmath=yes
19479else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019480 echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019485
Reid Spencera773bd52006-08-04 18:18:08 +000019486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019487 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019488ac_cpp='$CPP $CPPFLAGS'
19489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19491ac_compiler_gnu=$ac_cv_c_compiler_gnu
19492
19493fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019494{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19495echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019496
19497if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019499cat >>confdefs.h <<\_ACEOF
19500#define HAVE_ISNAN_IN_CMATH 1
19501_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019502
Reid Spencerabec8f92004-10-27 23:03:44 +000019503fi
19504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019505{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19506echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19507if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019509else
Reid Spencera773bd52006-08-04 18:18:08 +000019510 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019511ac_cpp='$CXXCPP $CPPFLAGS'
19512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019516 cat >conftest.$ac_ext <<_ACEOF
19517/* confdefs.h. */
19518_ACEOF
19519cat confdefs.h >>conftest.$ac_ext
19520cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019521/* end confdefs.h. */
19522#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019523int
19524main ()
19525{
19526float f; std::isnan(f);
19527 ;
19528 return 0;
19529}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019530_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019531rm -f conftest.$ac_objext
19532if { (ac_try="$ac_compile"
19533case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19536esac
19537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_compile") 2>conftest.er1
19539 ac_status=$?
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19546 { (case "(($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_try") 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; } &&
19555 { ac_try='test -s conftest.$ac_objext'
19556 { (case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19559esac
19560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561 (eval "$ac_try") 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019565 ac_cv_func_std_isnan_in_cmath=yes
19566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019567 echo "$as_me: failed program was:" >&5
19568sed 's/^/| /' conftest.$ac_ext >&5
19569
19570 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019572
Reid Spencera773bd52006-08-04 18:18:08 +000019573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019574 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019575ac_cpp='$CPP $CPPFLAGS'
19576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19578ac_compiler_gnu=$ac_cv_c_compiler_gnu
19579
19580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019581{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19582echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019583
19584if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019586cat >>confdefs.h <<\_ACEOF
19587#define HAVE_STD_ISNAN_IN_CMATH 1
19588_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019589
Reid Spencerabec8f92004-10-27 23:03:44 +000019590fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019591
19592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019593{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19594echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19595if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019597else
Reid Spencera773bd52006-08-04 18:18:08 +000019598 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019599ac_cpp='$CXXCPP $CPPFLAGS'
19600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019604 cat >conftest.$ac_ext <<_ACEOF
19605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019609/* end confdefs.h. */
19610#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019611int
19612main ()
19613{
19614float f; isinf(f);
19615 ;
19616 return 0;
19617}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019618_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019619rm -f conftest.$ac_objext
19620if { (ac_try="$ac_compile"
19621case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19624esac
19625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_compile") 2>conftest.er1
19627 ac_status=$?
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19637esac
19638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019653 ac_cv_func_isinf_in_math_h=yes
19654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019655 echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019660
Reid Spencera773bd52006-08-04 18:18:08 +000019661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019662 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019663ac_cpp='$CPP $CPPFLAGS'
19664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19666ac_compiler_gnu=$ac_cv_c_compiler_gnu
19667
19668fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19670echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019671
19672if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019674cat >>confdefs.h <<\_ACEOF
19675#define HAVE_ISINF_IN_MATH_H 1
19676_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019677
Reid Spencerabec8f92004-10-27 23:03:44 +000019678fi
19679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019680{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19681echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19682if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019684else
Reid Spencera773bd52006-08-04 18:18:08 +000019685 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019686ac_cpp='$CXXCPP $CPPFLAGS'
19687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019691 cat >conftest.$ac_ext <<_ACEOF
19692/* confdefs.h. */
19693_ACEOF
19694cat confdefs.h >>conftest.$ac_ext
19695cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019696/* end confdefs.h. */
19697#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019698int
19699main ()
19700{
19701float f; isinf(f);
19702 ;
19703 return 0;
19704}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019705_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019706rm -f conftest.$ac_objext
19707if { (ac_try="$ac_compile"
19708case "(($ac_try" in
19709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710 *) ac_try_echo=$ac_try;;
19711esac
19712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713 (eval "$ac_compile") 2>conftest.er1
19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } &&
19720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734esac
19735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_try") 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019740 ac_cv_func_isinf_in_cmath=yes
19741else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019742 echo "$as_me: failed program was:" >&5
19743sed 's/^/| /' conftest.$ac_ext >&5
19744
19745 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019746fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019747
Reid Spencera773bd52006-08-04 18:18:08 +000019748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019749 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019750ac_cpp='$CPP $CPPFLAGS'
19751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19753ac_compiler_gnu=$ac_cv_c_compiler_gnu
19754
19755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019756{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19757echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019758
19759if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019761cat >>confdefs.h <<\_ACEOF
19762#define HAVE_ISINF_IN_CMATH 1
19763_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019764
Reid Spencerabec8f92004-10-27 23:03:44 +000019765fi
19766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019767{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19768echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19769if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019771else
Reid Spencera773bd52006-08-04 18:18:08 +000019772 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019773ac_cpp='$CXXCPP $CPPFLAGS'
19774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019778 cat >conftest.$ac_ext <<_ACEOF
19779/* confdefs.h. */
19780_ACEOF
19781cat confdefs.h >>conftest.$ac_ext
19782cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019783/* end confdefs.h. */
19784#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019785int
19786main ()
19787{
19788float f; std::isinf(f)}
19789 ;
19790 return 0;
19791}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019792_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019793rm -f conftest.$ac_objext
19794if { (ac_try="$ac_compile"
19795case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19798esac
19799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_compile") 2>conftest.er1
19801 ac_status=$?
19802 grep -v '^ *+' conftest.er1 >conftest.err
19803 rm -f conftest.er1
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19808 { (case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811esac
19812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_try") 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; } &&
19817 { ac_try='test -s conftest.$ac_objext'
19818 { (case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821esac
19822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_try") 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019827 ac_cv_func_std_isinf_in_cmath=yes
19828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019829 echo "$as_me: failed program was:" >&5
19830sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019834
Reid Spencera773bd52006-08-04 18:18:08 +000019835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019836 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019837ac_cpp='$CPP $CPPFLAGS'
19838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19840ac_compiler_gnu=$ac_cv_c_compiler_gnu
19841
19842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019843{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19844echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019845
19846if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019848cat >>confdefs.h <<\_ACEOF
19849#define HAVE_STD_ISINF_IN_CMATH 1
19850_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019851
Reid Spencerabec8f92004-10-27 23:03:44 +000019852fi
19853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019854{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19855echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19856if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019858else
Reid Spencera773bd52006-08-04 18:18:08 +000019859 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019860ac_cpp='$CXXCPP $CPPFLAGS'
19861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019865 cat >conftest.$ac_ext <<_ACEOF
19866/* confdefs.h. */
19867_ACEOF
19868cat confdefs.h >>conftest.$ac_ext
19869cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019870/* end confdefs.h. */
19871#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019872int
19873main ()
19874{
19875float f; finite(f);
19876 ;
19877 return 0;
19878}
Brian Gaeked59a6472004-07-21 03:33:58 +000019879_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019880rm -f conftest.$ac_objext
19881if { (ac_try="$ac_compile"
19882case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19885esac
19886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_compile") 2>conftest.er1
19888 ac_status=$?
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898esac
19899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try='test -s conftest.$ac_objext'
19905 { (case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19908esac
19909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_try") 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019914 ac_cv_func_finite_in_ieeefp_h=yes
19915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019916 echo "$as_me: failed program was:" >&5
19917sed 's/^/| /' conftest.$ac_ext >&5
19918
19919 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019921
Reid Spencera773bd52006-08-04 18:18:08 +000019922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019923 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019924ac_cpp='$CPP $CPPFLAGS'
19925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19927ac_compiler_gnu=$ac_cv_c_compiler_gnu
19928
19929fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019930{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19931echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019932
Brian Gaeke6802b552004-10-28 05:06:45 +000019933if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019935cat >>confdefs.h <<\_ACEOF
19936#define HAVE_FINITE_IN_IEEEFP_H 1
19937_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019938
Reid Spencerabec8f92004-10-27 23:03:44 +000019939fi
19940
19941
19942
Reid Spencer30fe5262007-01-20 07:48:49 +000019943if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019944
19945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019946for ac_header in stdlib.h unistd.h
19947do
19948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19954fi
19955ac_res=`eval echo '${'$as_ac_Header'}'`
19956 { echo "$as_me:$LINENO: result: $ac_res" >&5
19957echo "${ECHO_T}$ac_res" >&6; }
19958else
19959 # Is the header compilable?
19960{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19962cat >conftest.$ac_ext <<_ACEOF
19963/* confdefs.h. */
19964_ACEOF
19965cat confdefs.h >>conftest.$ac_ext
19966cat >>conftest.$ac_ext <<_ACEOF
19967/* end confdefs.h. */
19968$ac_includes_default
19969#include <$ac_header>
19970_ACEOF
19971rm -f conftest.$ac_objext
19972if { (ac_try="$ac_compile"
19973case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19976esac
19977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_compile") 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19986 { (case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989esac
19990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_try") 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest.$ac_objext'
19996 { (case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
19999esac
20000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_try") 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ac_header_compiler=yes
20006else
20007 echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020010 ac_header_compiler=no
20011fi
20012
20013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20015echo "${ECHO_T}$ac_header_compiler" >&6; }
20016
20017# Is the header present?
20018{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20020cat >conftest.$ac_ext <<_ACEOF
20021/* confdefs.h. */
20022_ACEOF
20023cat confdefs.h >>conftest.$ac_ext
20024cat >>conftest.$ac_ext <<_ACEOF
20025/* end confdefs.h. */
20026#include <$ac_header>
20027_ACEOF
20028if { (ac_try="$ac_cpp conftest.$ac_ext"
20029case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20032esac
20033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } >/dev/null; then
20041 if test -s conftest.err; then
20042 ac_cpp_err=$ac_c_preproc_warn_flag
20043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20044 else
20045 ac_cpp_err=
20046 fi
20047else
20048 ac_cpp_err=yes
20049fi
20050if test -z "$ac_cpp_err"; then
20051 ac_header_preproc=yes
20052else
20053 echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
20056 ac_header_preproc=no
20057fi
20058
20059rm -f conftest.err conftest.$ac_ext
20060{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061echo "${ECHO_T}$ac_header_preproc" >&6; }
20062
20063# So? What about this header?
20064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20065 yes:no: )
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20067echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20069echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc=yes
20071 ;;
20072 no:yes:* )
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20078echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20080echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20084echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20085 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020086## ------------------------------------ ##
20087## Report this to http://llvm.org/bugs/ ##
20088## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020089_ASBOX
20090 ) | sed "s/^/$as_me: WARNING: /" >&2
20091 ;;
20092esac
20093{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097else
20098 eval "$as_ac_Header=\$ac_header_preproc"
20099fi
20100ac_res=`eval echo '${'$as_ac_Header'}'`
20101 { echo "$as_me:$LINENO: result: $ac_res" >&5
20102echo "${ECHO_T}$ac_res" >&6; }
20103
20104fi
20105if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020106 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020107#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020108_ACEOF
20109
20110fi
20111
20112done
20113
20114
20115for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020116do
20117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20118{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20120if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20122else
20123 cat >conftest.$ac_ext <<_ACEOF
20124/* confdefs.h. */
20125_ACEOF
20126cat confdefs.h >>conftest.$ac_ext
20127cat >>conftest.$ac_ext <<_ACEOF
20128/* end confdefs.h. */
20129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20131#define $ac_func innocuous_$ac_func
20132
20133/* System header to define __stub macros and hopefully few prototypes,
20134 which can conflict with char $ac_func (); below.
20135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20136 <limits.h> exists even on freestanding compilers. */
20137
20138#ifdef __STDC__
20139# include <limits.h>
20140#else
20141# include <assert.h>
20142#endif
20143
20144#undef $ac_func
20145
20146/* Override any GCC internal prototype to avoid an error.
20147 Use char because int might match the return type of a GCC
20148 builtin and then its argument prototype would still apply. */
20149#ifdef __cplusplus
20150extern "C"
20151#endif
20152char $ac_func ();
20153/* The GNU C library defines this for functions which it implements
20154 to always fail with ENOSYS. Some functions are actually named
20155 something starting with __ and the normal name is an alias. */
20156#if defined __stub_$ac_func || defined __stub___$ac_func
20157choke me
20158#endif
20159
20160int
20161main ()
20162{
20163return $ac_func ();
20164 ;
20165 return 0;
20166}
20167_ACEOF
20168rm -f conftest.$ac_objext conftest$ac_exeext
20169if { (ac_try="$ac_link"
20170case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20173esac
20174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175 (eval "$ac_link") 2>conftest.er1
20176 ac_status=$?
20177 grep -v '^ *+' conftest.er1 >conftest.err
20178 rm -f conftest.er1
20179 cat conftest.err >&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
20182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20183 { (case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20186esac
20187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_try") 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest$ac_exeext'
20193 { (case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20196esac
20197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_try") 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 eval "$as_ac_var=yes"
20203else
20204 echo "$as_me: failed program was:" >&5
20205sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 eval "$as_ac_var=no"
20208fi
20209
20210rm -f core conftest.err conftest.$ac_objext \
20211 conftest$ac_exeext conftest.$ac_ext
20212fi
20213ac_res=`eval echo '${'$as_ac_var'}'`
20214 { echo "$as_me:$LINENO: result: $ac_res" >&5
20215echo "${ECHO_T}$ac_res" >&6; }
20216if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020217 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020219_ACEOF
20220
20221fi
20222done
20223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020224{ echo "$as_me:$LINENO: checking for working mmap" >&5
20225echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20226if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020229 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020230 ac_cv_func_mmap_fixed_mapped=no
20231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020232 cat >conftest.$ac_ext <<_ACEOF
20233/* confdefs.h. */
20234_ACEOF
20235cat confdefs.h >>conftest.$ac_ext
20236cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020237/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020238$ac_includes_default
20239/* malloc might have been renamed as rpl_malloc. */
20240#undef malloc
20241
20242/* Thanks to Mike Haertel and Jim Avera for this test.
20243 Here is a matrix of mmap possibilities:
20244 mmap private not fixed
20245 mmap private fixed at somewhere currently unmapped
20246 mmap private fixed at somewhere already mapped
20247 mmap shared not fixed
20248 mmap shared fixed at somewhere currently unmapped
20249 mmap shared fixed at somewhere already mapped
20250 For private mappings, we should verify that changes cannot be read()
20251 back from the file, nor mmap's back from the file at a different
20252 address. (There have been systems where private was not correctly
20253 implemented like the infamous i386 svr4.0, and systems where the
20254 VM page cache was not coherent with the file system buffer cache
20255 like early versions of FreeBSD and possibly contemporary NetBSD.)
20256 For shared mappings, we should conversely verify that changes get
20257 propagated back to all the places they're supposed to be.
20258
20259 Grep wants private fixed already mapped.
20260 The main things grep needs to know about mmap are:
20261 * does it exist and is it safe to write into the mmap'd area
20262 * how to use it (BSD variants) */
20263
20264#include <fcntl.h>
20265#include <sys/mman.h>
20266
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020267#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020268char *malloc ();
20269#endif
20270
20271/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020272#if !HAVE_GETPAGESIZE
20273/* Assume that all systems that can run configure have sys/param.h. */
20274# if !HAVE_SYS_PARAM_H
20275# define HAVE_SYS_PARAM_H 1
20276# endif
20277
John Criswell7a73b802003-06-30 21:59:07 +000020278# ifdef _SC_PAGESIZE
20279# define getpagesize() sysconf(_SC_PAGESIZE)
20280# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020281# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020282# include <sys/param.h>
20283# ifdef EXEC_PAGESIZE
20284# define getpagesize() EXEC_PAGESIZE
20285# else /* no EXEC_PAGESIZE */
20286# ifdef NBPG
20287# define getpagesize() NBPG * CLSIZE
20288# ifndef CLSIZE
20289# define CLSIZE 1
20290# endif /* no CLSIZE */
20291# else /* no NBPG */
20292# ifdef NBPC
20293# define getpagesize() NBPC
20294# else /* no NBPC */
20295# ifdef PAGESIZE
20296# define getpagesize() PAGESIZE
20297# endif /* PAGESIZE */
20298# endif /* no NBPC */
20299# endif /* no NBPG */
20300# endif /* no EXEC_PAGESIZE */
20301# else /* no HAVE_SYS_PARAM_H */
20302# define getpagesize() 8192 /* punt totally */
20303# endif /* no HAVE_SYS_PARAM_H */
20304# endif /* no _SC_PAGESIZE */
20305
20306#endif /* no HAVE_GETPAGESIZE */
20307
20308int
20309main ()
20310{
20311 char *data, *data2, *data3;
20312 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020313 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020314
20315 pagesize = getpagesize ();
20316
20317 /* First, make a file with some known garbage in it. */
20318 data = (char *) malloc (pagesize);
20319 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020320 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020321 for (i = 0; i < pagesize; ++i)
20322 *(data + i) = rand ();
20323 umask (0);
20324 fd = creat ("conftest.mmap", 0600);
20325 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020326 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020327 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020328 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020329 close (fd);
20330
20331 /* Next, try to mmap the file at a fixed address which already has
20332 something else allocated at it. If we can, also make sure that
20333 we see the same garbage. */
20334 fd = open ("conftest.mmap", O_RDWR);
20335 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020336 return 1;
20337 data2 = (char *) malloc (2 * pagesize);
20338 if (!data2)
20339 return 1;
20340 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020341 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020342 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020343 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020344 for (i = 0; i < pagesize; ++i)
20345 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020346 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020347
20348 /* Finally, make sure that changes to the mapped area do not
20349 percolate back to the file as seen by read(). (This is a bug on
20350 some variants of i386 svr4.0.) */
20351 for (i = 0; i < pagesize; ++i)
20352 *(data2 + i) = *(data2 + i) + 1;
20353 data3 = (char *) malloc (pagesize);
20354 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020355 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020356 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020358 for (i = 0; i < pagesize; ++i)
20359 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020361 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020362 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020363}
20364_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020365rm -f conftest$ac_exeext
20366if { (ac_try="$ac_link"
20367case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20370esac
20371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_link") 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20376 { (case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379esac
20380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_try") 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020385 ac_cv_func_mmap_fixed_mapped=yes
20386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020387 echo "$as_me: program exited with status $ac_status" >&5
20388echo "$as_me: failed program was:" >&5
20389sed 's/^/| /' conftest.$ac_ext >&5
20390
20391( exit $ac_status )
20392ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394rm -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 +000020395fi
Reid Spencera773bd52006-08-04 18:18:08 +000020396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020397
John Criswell7a73b802003-06-30 21:59:07 +000020398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020399{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20400echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020401if test $ac_cv_func_mmap_fixed_mapped = yes; then
20402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020403cat >>confdefs.h <<\_ACEOF
20404#define HAVE_MMAP 1
20405_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020406
20407fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020408rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020410 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20411echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20412if test "${ac_cv_func_mmap_file+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020414else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020415 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020416ac_cpp='$CPP $CPPFLAGS'
20417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20419ac_compiler_gnu=$ac_cv_c_compiler_gnu
20420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020421 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020422 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020424 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020426 /* confdefs.h. */
20427_ACEOF
20428cat confdefs.h >>conftest.$ac_ext
20429cat >>conftest.$ac_ext <<_ACEOF
20430/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020431
John Criswell7a73b802003-06-30 21:59:07 +000020432#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020433#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020434#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020435
20436int
20437main ()
20438{
John Criswell7a73b802003-06-30 21:59:07 +000020439
20440 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020441 fd = creat ("foo",0777);
20442 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20443 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020444 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020445 ;
20446 return 0;
20447}
John Criswell7a73b802003-06-30 21:59:07 +000020448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020449rm -f conftest$ac_exeext
20450if { (ac_try="$ac_link"
20451case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20454esac
20455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_link") 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20460 { (case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20463esac
20464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_try") 2>&5
20466 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020469 ac_cv_func_mmap_file=yes
20470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020471 echo "$as_me: program exited with status $ac_status" >&5
20472echo "$as_me: failed program was:" >&5
20473sed 's/^/| /' conftest.$ac_ext >&5
20474
20475( exit $ac_status )
20476ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020478rm -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 +000020479fi
Reid Spencera773bd52006-08-04 18:18:08 +000020480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481
John Criswell7a73b802003-06-30 21:59:07 +000020482 ac_ext=c
20483ac_cpp='$CPP $CPPFLAGS'
20484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20486ac_compiler_gnu=$ac_cv_c_compiler_gnu
20487
20488
20489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020490{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20491echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020492if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020494cat >>confdefs.h <<\_ACEOF
20495#define HAVE_MMAP_FILE
20496_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020497
20498 MMAP_FILE=yes
20499
20500fi
20501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020502 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20503echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20504if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020506else
Reid Spencer582a23c2004-12-29 07:07:57 +000020507 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020508 ac_cv_need_dev_zero_for_mmap=yes
20509 else
20510 ac_cv_need_dev_zero_for_mmap=no
20511 fi
20512
20513fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020514{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20515echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020516if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020518cat >>confdefs.h <<\_ACEOF
20519#define NEED_DEV_ZERO_FOR_MMAP 1
20520_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020521
20522fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020523
Reid Spencer30fe5262007-01-20 07:48:49 +000020524 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20525 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020526 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20527echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020528 fi
20529 if test "$ac_cv_func_mmap_file" = "no"
20530 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020531 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20532echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020533 fi
John Criswellb13092b2003-07-22 21:00:24 +000020534fi
John Criswell7a73b802003-06-30 21:59:07 +000020535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20537echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020538ac_ext=cpp
20539ac_cpp='$CXXCPP $CPPFLAGS'
20540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020544cat >conftest.$ac_ext <<_ACEOF
20545/* confdefs.h. */
20546_ACEOF
20547cat confdefs.h >>conftest.$ac_ext
20548cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020549/* end confdefs.h. */
20550int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020551 volatile unsigned long val = 1;
20552 __sync_synchronize();
20553 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020554 __sync_add_and_fetch(&val, 1);
20555 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020556 return 0;
20557 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020558
20559_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020560rm -f conftest.$ac_objext conftest$ac_exeext
20561if { (ac_try="$ac_link"
20562case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20565esac
20566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_link") 2>conftest.er1
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
20574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20575 { (case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20578esac
20579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_try") 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; } &&
20584 { ac_try='test -s conftest$ac_exeext'
20585 { (case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20588esac
20589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_try") 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020594 ac_ext=c
20595ac_cpp='$CPP $CPPFLAGS'
20596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598ac_compiler_gnu=$ac_cv_c_compiler_gnu
20599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600 { echo "$as_me:$LINENO: result: yes" >&5
20601echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020603cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020604#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020605_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020606
Owen Andersond4b272b2009-05-18 23:58:51 +000020607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020608 echo "$as_me: failed program was:" >&5
20609sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020611 { echo "$as_me:$LINENO: result: no" >&5
20612echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020614cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020615#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616_ACEOF
20617
20618 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20619echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020621
Owen Andersond4b272b2009-05-18 23:58:51 +000020622rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020623 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020624
John Criswell7a73b802003-06-30 21:59:07 +000020625
Nick Lewycky4372e692009-09-29 06:18:23 +000020626if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020627 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20628echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20629if test "${llvm_cv_linux_mixed+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020631else
20632 ac_ext=c
20633ac_cpp='$CPP $CPPFLAGS'
20634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636ac_compiler_gnu=$ac_cv_c_compiler_gnu
20637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020638 cat >conftest.$ac_ext <<_ACEOF
20639/* confdefs.h. */
20640_ACEOF
20641cat confdefs.h >>conftest.$ac_ext
20642cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020643/* end confdefs.h. */
20644#ifndef __x86_64__
20645 error: Not x86-64 even if uname says so!
20646 #endif
20647
20648int
20649main ()
20650{
20651
20652 ;
20653 return 0;
20654}
20655_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020656rm -f conftest.$ac_objext
20657if { (ac_try="$ac_compile"
20658case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661esac
20662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_compile") 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20671 { (case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674esac
20675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_try") 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; } &&
20680 { ac_try='test -s conftest.$ac_objext'
20681 { (case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684esac
20685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_try") 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020690 llvm_cv_linux_mixed=no
20691else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692 echo "$as_me: failed program was:" >&5
20693sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020696fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020697
Nick Lewycky4372e692009-09-29 06:18:23 +000020698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20699 ac_ext=c
20700ac_cpp='$CPP $CPPFLAGS'
20701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20703ac_compiler_gnu=$ac_cv_c_compiler_gnu
20704
20705
20706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020707{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20708echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020709
20710 if test "$llvm_cv_linux_mixed" = "yes"; then
20711 llvm_cv_target_arch="x86"
20712 ARCH="x86"
20713 fi
20714fi
20715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020716
Reid Spencer9372f152007-07-30 20:13:24 +000020717for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020718do
20719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20720{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20722if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
20724else
20725 cat >conftest.$ac_ext <<_ACEOF
20726/* confdefs.h. */
20727_ACEOF
20728cat confdefs.h >>conftest.$ac_ext
20729cat >>conftest.$ac_ext <<_ACEOF
20730/* end confdefs.h. */
20731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20733#define $ac_func innocuous_$ac_func
20734
20735/* System header to define __stub macros and hopefully few prototypes,
20736 which can conflict with char $ac_func (); below.
20737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20738 <limits.h> exists even on freestanding compilers. */
20739
20740#ifdef __STDC__
20741# include <limits.h>
20742#else
20743# include <assert.h>
20744#endif
20745
20746#undef $ac_func
20747
20748/* Override any GCC internal prototype to avoid an error.
20749 Use char because int might match the return type of a GCC
20750 builtin and then its argument prototype would still apply. */
20751#ifdef __cplusplus
20752extern "C"
20753#endif
20754char $ac_func ();
20755/* The GNU C library defines this for functions which it implements
20756 to always fail with ENOSYS. Some functions are actually named
20757 something starting with __ and the normal name is an alias. */
20758#if defined __stub_$ac_func || defined __stub___$ac_func
20759choke me
20760#endif
20761
20762int
20763main ()
20764{
20765return $ac_func ();
20766 ;
20767 return 0;
20768}
20769_ACEOF
20770rm -f conftest.$ac_objext conftest$ac_exeext
20771if { (ac_try="$ac_link"
20772case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20775esac
20776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_link") 2>conftest.er1
20778 ac_status=$?
20779 grep -v '^ *+' conftest.er1 >conftest.err
20780 rm -f conftest.er1
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } &&
20784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20785 { (case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20788esac
20789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_try") 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; } &&
20794 { ac_try='test -s conftest$ac_exeext'
20795 { (case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798esac
20799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_try") 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 eval "$as_ac_var=yes"
20805else
20806 echo "$as_me: failed program was:" >&5
20807sed 's/^/| /' conftest.$ac_ext >&5
20808
20809 eval "$as_ac_var=no"
20810fi
20811
20812rm -f core conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext conftest.$ac_ext
20814fi
20815ac_res=`eval echo '${'$as_ac_var'}'`
20816 { echo "$as_me:$LINENO: result: $ac_res" >&5
20817echo "${ECHO_T}$ac_res" >&6; }
20818if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020819 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020821_ACEOF
20822
20823fi
20824done
20825
20826
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020827SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020828
20829
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020830SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20831
20832
Reid Spencere9de0912004-08-20 09:03:57 +000020833# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020834# information into substitutions that will end up in Makefile.config.in
20835# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020836if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020837 prefix="/usr/local"
20838fi
Reid Spencere9de0912004-08-20 09:03:57 +000020839eval LLVM_PREFIX="${prefix}";
20840eval LLVM_BINDIR="${prefix}/bin";
20841eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020842eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020843eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020844eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020845eval LLVM_INCLUDEDIR="${prefix}/include";
20846eval LLVM_INFODIR="${prefix}/info";
20847eval LLVM_MANDIR="${prefix}/man";
20848LLVM_CONFIGTIME=`date`
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020860# Place the various directores into the config.h file as #defines so that we
20861# can know about the installation paths within LLVM.
20862
Reid Spencere9de0912004-08-20 09:03:57 +000020863cat >>confdefs.h <<_ACEOF
20864#define LLVM_PREFIX "$LLVM_PREFIX"
20865_ACEOF
20866
20867
20868cat >>confdefs.h <<_ACEOF
20869#define LLVM_BINDIR "$LLVM_BINDIR"
20870_ACEOF
20871
20872
20873cat >>confdefs.h <<_ACEOF
20874#define LLVM_LIBDIR "$LLVM_LIBDIR"
20875_ACEOF
20876
20877
20878cat >>confdefs.h <<_ACEOF
20879#define LLVM_DATADIR "$LLVM_DATADIR"
20880_ACEOF
20881
20882
20883cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020884#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020885_ACEOF
20886
20887
20888cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020889#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020890_ACEOF
20891
20892
20893cat >>confdefs.h <<_ACEOF
20894#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20895_ACEOF
20896
20897
20898cat >>confdefs.h <<_ACEOF
20899#define LLVM_INFODIR "$LLVM_INFODIR"
20900_ACEOF
20901
20902
20903cat >>confdefs.h <<_ACEOF
20904#define LLVM_MANDIR "$LLVM_MANDIR"
20905_ACEOF
20906
20907
20908cat >>confdefs.h <<_ACEOF
20909#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20910_ACEOF
20911
20912
Eric Christopher790e11c2007-12-01 00:34:39 +000020913cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020914#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020915_ACEOF
20916
20917
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020918# Determine which bindings to build.
20919if test "$BINDINGS_TO_BUILD" = auto ; then
20920 BINDINGS_TO_BUILD=""
20921 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20922 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20923 fi
20924fi
20925BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20926
20927
20928# This isn't really configurey, but it avoids having to repeat the list in
20929# other files.
20930ALL_BINDINGS=ocaml
20931
20932
Gordon Henriksenf0915682007-10-02 16:42:22 +000020933# Do any work necessary to ensure that bindings have what they need.
20934binding_prereqs_failed=0
20935for a_binding in $BINDINGS_TO_BUILD ; do
20936 case "$a_binding" in
20937 ocaml)
20938 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020939 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20940echo "$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 +000020941 binding_prereqs_failed=1
20942 fi
20943 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020944 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20945echo "$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 +000020946 binding_prereqs_failed=1
20947 fi
20948 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020949 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20950echo "$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 +000020951 fi
20952 if test "x$with_ocaml_libdir" != xauto ; then
20953 OCAML_LIBDIR=$with_ocaml_libdir
20954
20955 else
20956 ocaml_stdlib="`"$OCAMLC" -where`"
20957 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20958 then
20959 # ocaml stdlib is beneath our prefix; use stdlib
20960 OCAML_LIBDIR=$ocaml_stdlib
20961
20962 else
20963 # ocaml stdlib is outside our prefix; use libdir/ocaml
20964 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20965
20966 fi
20967 fi
20968 ;;
20969 esac
20970done
20971if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020972 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20973echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20974 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020975fi
20976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020977{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20978echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20979if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020981else
20982 ac_ext=cpp
20983ac_cpp='$CXXCPP $CPPFLAGS'
20984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20987
20988 oldcxxflags="$CXXFLAGS"
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000020989 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020990 cat >conftest.$ac_ext <<_ACEOF
20991/* confdefs.h. */
20992_ACEOF
20993cat confdefs.h >>conftest.$ac_ext
20994cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020995/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000020996template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020997int
20998main ()
20999{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021000X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021001 ;
21002 return 0;
21003}
21004_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021005rm -f conftest.$ac_objext
21006if { (ac_try="$ac_compile"
21007case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21010esac
21011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_compile") 2>conftest.er1
21013 ac_status=$?
21014 grep -v '^ *+' conftest.er1 >conftest.err
21015 rm -f conftest.er1
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21020 { (case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21023esac
21024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_try") 2>&5
21026 ac_status=$?
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest.$ac_objext'
21030 { (case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21033esac
21034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_try") 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021039 llvm_cv_cxx_visibility_inlines_hidden=yes
21040else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021041 echo "$as_me: failed program was:" >&5
21042sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021046
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 CXXFLAGS="$oldcxxflags"
21049 ac_ext=c
21050ac_cpp='$CPP $CPPFLAGS'
21051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21053ac_compiler_gnu=$ac_cv_c_compiler_gnu
21054
21055
21056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021057{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21058echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021059if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21060 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21061
21062else
21063 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21064
21065fi
21066
Gordon Henriksenf0915682007-10-02 16:42:22 +000021067
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021068if test "$llvm_cv_link_use_r" = "yes" ; then
21069 RPATH="-Wl,-R"
21070else
21071 RPATH="-Wl,-rpath"
21072fi
21073
21074
21075if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21076 RDYNAMIC="-Wl,-export-dynamic"
21077else
21078 RDYNAMIC=""
21079fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021080
21081
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021082
Eric Christophera1cba682010-08-08 02:44:25 +000021083ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021084
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021085
21086
21087
21088
21089
Douglas Gregor1555a232009-06-16 20:12:29 +000021090ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21091
21092ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21093
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021094ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21095
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021096ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21097
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021098ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021099
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021100
Reid Spencera773bd52006-08-04 18:18:08 +000021101ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021102
Eric Christopher360fa9a2011-10-26 00:42:12 +000021103
Reid Spencerea949cf2006-08-16 00:45:38 +000021104ac_config_files="$ac_config_files llvm.spec"
21105
21106
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021107ac_config_files="$ac_config_files docs/doxygen.cfg"
21108
21109if test -f ${srcdir}/tools/clang/README.txt; then
21110 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21111
21112fi
21113
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021114ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021115
Eric Christopher360fa9a2011-10-26 00:42:12 +000021116
Reid Spencera773bd52006-08-04 18:18:08 +000021117ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021118
Reid Spencera773bd52006-08-04 18:18:08 +000021119ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021120
21121
Reid Spencera773bd52006-08-04 18:18:08 +000021122ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021123
21124
Reid Spencera773bd52006-08-04 18:18:08 +000021125ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021126
21127
Reid Spencera773bd52006-08-04 18:18:08 +000021128ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021129
21130
Reid Spencer8b2e1412006-11-17 03:32:33 +000021131ac_config_commands="$ac_config_commands runtime/Makefile"
21132
21133
Reid Spencera773bd52006-08-04 18:18:08 +000021134ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021135
21136
Reid Spencera773bd52006-08-04 18:18:08 +000021137ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021138
21139
Bill Wendlingf24eb392009-01-04 23:12:30 +000021140ac_config_commands="$ac_config_commands unittests/Makefile"
21141
21142
Reid Spencera773bd52006-08-04 18:18:08 +000021143ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021144
21145
Reid Spencera773bd52006-08-04 18:18:08 +000021146ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021147
21148
Reid Spencera773bd52006-08-04 18:18:08 +000021149ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021150
21151
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021152ac_config_commands="$ac_config_commands bindings/Makefile"
21153
21154
21155ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21156
21157
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021158
John Criswell7a73b802003-06-30 21:59:07 +000021159cat >confcache <<\_ACEOF
21160# This file is a shell script that caches the results of configure
21161# tests run on this system so they can be shared between configure
21162# scripts and configure runs, see configure's option --config-cache.
21163# It is not useful on other systems. If it contains results you don't
21164# want to keep, you may remove or edit it.
21165#
21166# config.status only pays attention to the cache file if you give it
21167# the --recheck option to rerun configure.
21168#
John Criswell0c38eaf2003-09-10 15:17:25 +000021169# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021170# loading this file, other *unset* `ac_cv_foo' will be assigned the
21171# following values.
21172
21173_ACEOF
21174
21175# The following way of writing the cache mishandles newlines in values,
21176# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021177# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021178# Ultrix sh set writes to stderr and can't be redirected directly,
21179# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021180(
21181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21182 eval ac_val=\$$ac_var
21183 case $ac_val in #(
21184 *${as_nl}*)
21185 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021186 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21187echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021188 esac
21189 case $ac_var in #(
21190 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021191 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021192 esac ;;
21193 esac
21194 done
21195
John Criswell7a73b802003-06-30 21:59:07 +000021196 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021197 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21198 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021199 # `set' does not quote correctly, so add quotes (double-quote
21200 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021201 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021202 "s/'/'\\\\''/g;
21203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021204 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021205 *)
21206 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021208 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021209 esac |
21210 sort
21211) |
John Criswell7a73b802003-06-30 21:59:07 +000021212 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021213 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021214 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021215 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21217 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021218 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21219 :end' >>confcache
21220if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21221 if test -w "$cache_file"; then
21222 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021223 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21224echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021225 cat confcache >$cache_file
21226 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021227 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21228echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021229 fi
21230fi
21231rm -f confcache
21232
21233test "x$prefix" = xNONE && prefix=$ac_default_prefix
21234# Let make expand exec_prefix.
21235test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21236
John Criswell7a73b802003-06-30 21:59:07 +000021237DEFS=-DHAVE_CONFIG_H
21238
John Criswell0c38eaf2003-09-10 15:17:25 +000021239ac_libobjs=
21240ac_ltlibobjs=
21241for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21242 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021243 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021244 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021245 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21246 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021247 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21248 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021249done
21250LIBOBJS=$ac_libobjs
21251
21252LTLIBOBJS=$ac_ltlibobjs
21253
21254
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021255if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021256 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21257Usually this means the macro was only invoked conditionally." >&5
21258echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21259Usually this means the macro was only invoked conditionally." >&2;}
21260 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021261fi
21262if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021263 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21264Usually this means the macro was only invoked conditionally." >&5
21265echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21266Usually this means the macro was only invoked conditionally." >&2;}
21267 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021268fi
John Criswell7a73b802003-06-30 21:59:07 +000021269
21270: ${CONFIG_STATUS=./config.status}
21271ac_clean_files_save=$ac_clean_files
21272ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021273{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21274echo "$as_me: creating $CONFIG_STATUS" >&6;}
21275cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021276#! $SHELL
21277# Generated by $as_me.
21278# Run this file to recreate the current configuration.
21279# Compiler output produced by configure, useful for debugging
21280# configure, is in config.log if it exists.
21281
21282debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021283ac_cs_recheck=false
21284ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021285SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021288cat >>$CONFIG_STATUS <<\_ACEOF
21289## --------------------- ##
21290## M4sh Initialization. ##
21291## --------------------- ##
21292
21293# Be Bourne compatible
21294if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021295 emulate sh
21296 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021297 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021298 # is contrary to our usage. Disable this feature.
21299 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021300 setopt NO_GLOB_SUBST
21301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021302 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021304BIN_SH=xpg4; export BIN_SH # for Tru64
21305DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021306
John Criswell7a73b802003-06-30 21:59:07 +000021307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021308# PATH needs CR
21309# Avoid depending upon Character Ranges.
21310as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21311as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21312as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21313as_cr_digits='0123456789'
21314as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021315
21316# The user is always right.
21317if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021318 echo "#! /bin/sh" >conf$$.sh
21319 echo "exit 0" >>conf$$.sh
21320 chmod +x conf$$.sh
21321 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21322 PATH_SEPARATOR=';'
21323 else
21324 PATH_SEPARATOR=:
21325 fi
21326 rm -f conf$$.sh
21327fi
21328
21329# Support unset when possible.
21330if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21331 as_unset=unset
21332else
21333 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021334fi
John Criswell7a73b802003-06-30 21:59:07 +000021335
Reid Spencera773bd52006-08-04 18:18:08 +000021336
21337# IFS
21338# We need space, tab and new line, in precisely that order. Quoting is
21339# there to prevent editors from complaining about space-tab.
21340# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21341# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021342as_nl='
21343'
Reid Spencera773bd52006-08-04 18:18:08 +000021344IFS=" "" $as_nl"
21345
21346# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021347case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021348 *[\\/]* ) as_myself=$0 ;;
21349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021350for as_dir in $PATH
21351do
21352 IFS=$as_save_IFS
21353 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021354 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21355done
Reid Spencera773bd52006-08-04 18:18:08 +000021356IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021357
Reid Spencera773bd52006-08-04 18:18:08 +000021358 ;;
21359esac
21360# We did not find ourselves, most probably we were run as `sh COMMAND'
21361# in which case we are not to be found in the path.
21362if test "x$as_myself" = x; then
21363 as_myself=$0
21364fi
21365if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021366 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21367 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021368fi
21369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021370# Work around bugs in pre-3.0 UWIN ksh.
21371for as_var in ENV MAIL MAILPATH
21372do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021373done
21374PS1='$ '
21375PS2='> '
21376PS4='+ '
21377
21378# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379for as_var in \
21380 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21381 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21382 LC_TELEPHONE LC_TIME
21383do
21384 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21385 eval $as_var=C; export $as_var
21386 else
21387 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021388 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021389done
Torok Edwin871384f2010-01-26 08:50:50 +000021390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021391# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021392if expr a : '\(a\)' >/dev/null 2>&1 &&
21393 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21394 as_expr=expr
21395else
21396 as_expr=false
21397fi
21398
21399if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21400 as_basename=basename
21401else
21402 as_basename=false
21403fi
21404
21405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021406# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021407as_me=`$as_basename -- "$0" ||
21408$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21409 X"$0" : 'X\(//\)$' \| \
21410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021411echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021412 sed '/^.*\/\([^/][^/]*\)\/*$/{
21413 s//\1/
21414 q
21415 }
21416 /^X\/\(\/\/\)$/{
21417 s//\1/
21418 q
21419 }
21420 /^X\/\(\/\).*/{
21421 s//\1/
21422 q
21423 }
21424 s/.*/./; q'`
21425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021426# CDPATH.
21427$as_unset CDPATH
21428
21429
21430
21431 as_lineno_1=$LINENO
21432 as_lineno_2=$LINENO
21433 test "x$as_lineno_1" != "x$as_lineno_2" &&
21434 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21435
21436 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21437 # uniformly replaced by the line number. The first 'sed' inserts a
21438 # line-number line after each line using $LINENO; the second 'sed'
21439 # does the real work. The second script uses 'N' to pair each
21440 # line-number line with the line containing $LINENO, and appends
21441 # trailing '-' during substitution so that $LINENO is not a special
21442 # case at line end.
21443 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21444 # scripts with optimization help from Paolo Bonzini. Blame Lee
21445 # E. McMahon (1931-1989) for sed's syntax. :-)
21446 sed -n '
21447 p
21448 /[$]LINENO/=
21449 ' <$as_myself |
21450 sed '
21451 s/[$]LINENO.*/&-/
21452 t lineno
21453 b
21454 :lineno
21455 N
21456 :loop
21457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21458 t loop
21459 s/-\n.*//
21460 ' >$as_me.lineno &&
21461 chmod +x "$as_me.lineno" ||
21462 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21463 { (exit 1); exit 1; }; }
21464
21465 # Don't try to exec as it changes $[0], causing all sort of problems
21466 # (the dirname of $[0] is not the place where we might find the
21467 # original and so on. Autoconf is especially sensitive to this).
21468 . "./$as_me.lineno"
21469 # Exit status is that of the last command.
21470 exit
21471}
21472
21473
21474if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21475 as_dirname=dirname
21476else
21477 as_dirname=false
21478fi
Reid Spencera773bd52006-08-04 18:18:08 +000021479
21480ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021481case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021482-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021483 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021484 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021486 esac;;
21487*)
21488 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021489esac
21490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021491if expr a : '\(a\)' >/dev/null 2>&1 &&
21492 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21493 as_expr=expr
21494else
21495 as_expr=false
21496fi
21497
John Criswell7a73b802003-06-30 21:59:07 +000021498rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021499if test -d conf$$.dir; then
21500 rm -f conf$$.dir/conf$$.file
21501else
21502 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021505echo >conf$$.file
21506if ln -s conf$$.file conf$$ 2>/dev/null; then
21507 as_ln_s='ln -s'
21508 # ... but there are two gotchas:
21509 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21510 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21511 # In both cases, we have to default to `cp -p'.
21512 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021513 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514elif ln conf$$.file conf$$ 2>/dev/null; then
21515 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021516else
21517 as_ln_s='cp -p'
21518fi
Reid Spencera773bd52006-08-04 18:18:08 +000021519rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21520rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021521
John Criswell0c38eaf2003-09-10 15:17:25 +000021522if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021523 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021524else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021525 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021526 as_mkdir_p=false
21527fi
21528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021529# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21530# systems may use methods other than mode bits to determine executability.
21531cat >conf$$.file <<_ASEOF
21532#! /bin/sh
21533exit 0
21534_ASEOF
21535chmod +x conf$$.file
21536if test -x conf$$.file >/dev/null 2>&1; then
21537 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021539 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021541rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021542
21543# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021544as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021545
21546# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021547as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021548
21549
John Criswell7a73b802003-06-30 21:59:07 +000021550exec 6>&1
21551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021553# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021554# values after options handling.
21555ac_log="
Eric Christopherf33ab862011-12-21 00:52:44 +000021556This file was extended by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021557generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021558
21559 CONFIG_FILES = $CONFIG_FILES
21560 CONFIG_HEADERS = $CONFIG_HEADERS
21561 CONFIG_LINKS = $CONFIG_LINKS
21562 CONFIG_COMMANDS = $CONFIG_COMMANDS
21563 $ $0 $@
21564
Reid Spencera773bd52006-08-04 18:18:08 +000021565on `(hostname || uname -n) 2>/dev/null | sed 1q`
21566"
21567
John Criswell7a73b802003-06-30 21:59:07 +000021568_ACEOF
21569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021570cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021571# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021572config_files="$ac_config_files"
21573config_headers="$ac_config_headers"
21574config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021575
Reid Spencera773bd52006-08-04 18:18:08 +000021576_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021578cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021579ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021580\`$as_me' instantiates files from templates according to the
21581current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021584
21585 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021586 -V, --version print version number, then exit
21587 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021588 -d, --debug don't remove temporary files
21589 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021590 --file=FILE[:TEMPLATE]
21591 instantiate the configuration file FILE
21592 --header=FILE[:TEMPLATE]
21593 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021594
21595Configuration files:
21596$config_files
21597
21598Configuration headers:
21599$config_headers
21600
John Criswellc764fbc2003-09-06 15:17:13 +000021601Configuration commands:
21602$config_commands
21603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021605
Reid Spencera773bd52006-08-04 18:18:08 +000021606_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021607cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021608ac_cs_version="\\
Eric Christopherf33ab862011-12-21 00:52:44 +000021609LLVM config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021610configured by $0, generated by GNU Autoconf 2.60,
21611 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021613Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021614This config.status script is free software; the Free Software Foundation
21615gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021616
21617ac_pwd='$ac_pwd'
21618srcdir='$srcdir'
21619INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021620_ACEOF
21621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021622cat >>$CONFIG_STATUS <<\_ACEOF
21623# If no file are specified by the user, then we need to provide default
21624# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021625ac_need_defaults=:
21626while test $# != 0
21627do
21628 case $1 in
21629 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021630 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21631 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021632 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021633 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021634 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021635 ac_option=$1
21636 ac_optarg=$2
21637 ac_shift=shift
21638 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021639 esac
21640
John Criswell0c38eaf2003-09-10 15:17:25 +000021641 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021642 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021643 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21644 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021645 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021646 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021647 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021648 debug=: ;;
21649 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021650 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021651 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021652 ac_need_defaults=false;;
21653 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021654 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021655 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021656 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021657 --he | --h)
21658 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021659 { echo "$as_me: error: ambiguous option: $1
21660Try \`$0 --help' for more information." >&2
21661 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021662 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021663 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21665 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21666 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021667
21668 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021669 -*) { echo "$as_me: error: unrecognized option: $1
21670Try \`$0 --help' for more information." >&2
21671 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021673 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021674 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021675
21676 esac
21677 shift
21678done
21679
John Criswell0c38eaf2003-09-10 15:17:25 +000021680ac_configure_extra_args=
21681
21682if $ac_cs_silent; then
21683 exec 6>/dev/null
21684 ac_configure_extra_args="$ac_configure_extra_args --silent"
21685fi
21686
21687_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021688cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021689if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021690 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21691 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021692 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021693 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021694fi
21695
John Criswell7a73b802003-06-30 21:59:07 +000021696_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021697cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021698exec 5>>config.log
21699{
21700 echo
21701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21702## Running $as_me. ##
21703_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021704 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021705} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021706
Reid Spencera773bd52006-08-04 18:18:08 +000021707_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021709#
Reid Spencera773bd52006-08-04 18:18:08 +000021710# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021711#
Reid Spencerc0682832005-02-24 19:05:19 +000021712llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021713
21714_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021716cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021717
21718# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021719for ac_config_target in $ac_config_targets
21720do
Reid Spencera773bd52006-08-04 18:18:08 +000021721 case $ac_config_target in
21722 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021723 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021724 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21725 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021726 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021727 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021728 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021729 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021730 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021731 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21732 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021733 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021734 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21735 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21736 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21737 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21738 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021739 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021740 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21741 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021742 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021743 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21744 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21745 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021746 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21747 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021749 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21750echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21751 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021752 esac
21753done
21754
Reid Spencera773bd52006-08-04 18:18:08 +000021755
John Criswell7a73b802003-06-30 21:59:07 +000021756# If the user did not use the arguments to specify the items to instantiate,
21757# then the envvar interface is used. Set only those that are not.
21758# We use the long form for the default assignment because of an extremely
21759# bizarre bug on SunOS 4.1.3.
21760if $ac_need_defaults; then
21761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021764fi
21765
John Criswell0c38eaf2003-09-10 15:17:25 +000021766# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021767# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021768# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021769# Hook for its removal unless debugging.
21770# Note that there is a small window in which the directory will not be cleaned:
21771# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021772$debug ||
21773{
Reid Spencera773bd52006-08-04 18:18:08 +000021774 tmp=
21775 trap 'exit_status=$?
21776 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21777' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021778 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021779}
John Criswell7a73b802003-06-30 21:59:07 +000021780# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021781
John Criswell7a73b802003-06-30 21:59:07 +000021782{
Reid Spencera773bd52006-08-04 18:18:08 +000021783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021784 test -n "$tmp" && test -d "$tmp"
21785} ||
21786{
Reid Spencera773bd52006-08-04 18:18:08 +000021787 tmp=./conf$$-$RANDOM
21788 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021789} ||
21790{
21791 echo "$me: cannot create a temporary directory in ." >&2
21792 { (exit 1); exit 1; }
21793}
John Criswell7a73b802003-06-30 21:59:07 +000021794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021795#
21796# Set up the sed scripts for CONFIG_FILES section.
21797#
21798
21799# No need to generate the scripts if there are no CONFIG_FILES.
21800# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021801if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021802
21803_ACEOF
21804
Reid Spencera773bd52006-08-04 18:18:08 +000021805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021806
Reid Spencera773bd52006-08-04 18:18:08 +000021807ac_delim='%!_!# '
21808for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809 cat >conf$$subs.sed <<_ACEOF
21810SHELL!$SHELL$ac_delim
21811PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21812PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21813PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21814PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21815PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21816PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21817exec_prefix!$exec_prefix$ac_delim
21818prefix!$prefix$ac_delim
21819program_transform_name!$program_transform_name$ac_delim
21820bindir!$bindir$ac_delim
21821sbindir!$sbindir$ac_delim
21822libexecdir!$libexecdir$ac_delim
21823datarootdir!$datarootdir$ac_delim
21824datadir!$datadir$ac_delim
21825sysconfdir!$sysconfdir$ac_delim
21826sharedstatedir!$sharedstatedir$ac_delim
21827localstatedir!$localstatedir$ac_delim
21828includedir!$includedir$ac_delim
21829oldincludedir!$oldincludedir$ac_delim
21830docdir!$docdir$ac_delim
21831infodir!$infodir$ac_delim
21832htmldir!$htmldir$ac_delim
21833dvidir!$dvidir$ac_delim
21834pdfdir!$pdfdir$ac_delim
21835psdir!$psdir$ac_delim
21836libdir!$libdir$ac_delim
21837localedir!$localedir$ac_delim
21838mandir!$mandir$ac_delim
21839DEFS!$DEFS$ac_delim
21840ECHO_C!$ECHO_C$ac_delim
21841ECHO_N!$ECHO_N$ac_delim
21842ECHO_T!$ECHO_T$ac_delim
21843LIBS!$LIBS$ac_delim
21844build_alias!$build_alias$ac_delim
21845host_alias!$host_alias$ac_delim
21846target_alias!$target_alias$ac_delim
21847LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021848CC!$CC$ac_delim
21849CFLAGS!$CFLAGS$ac_delim
21850LDFLAGS!$LDFLAGS$ac_delim
21851CPPFLAGS!$CPPFLAGS$ac_delim
21852ac_ct_CC!$ac_ct_CC$ac_delim
21853EXEEXT!$EXEEXT$ac_delim
21854OBJEXT!$OBJEXT$ac_delim
21855CXX!$CXX$ac_delim
21856CXXFLAGS!$CXXFLAGS$ac_delim
21857ac_ct_CXX!$ac_ct_CXX$ac_delim
21858CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021859subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021860ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21861LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021862build!$build$ac_delim
21863build_cpu!$build_cpu$ac_delim
21864build_vendor!$build_vendor$ac_delim
21865build_os!$build_os$ac_delim
21866host!$host$ac_delim
21867host_cpu!$host_cpu$ac_delim
21868host_vendor!$host_vendor$ac_delim
21869host_os!$host_os$ac_delim
21870target!$target$ac_delim
21871target_cpu!$target_cpu$ac_delim
21872target_vendor!$target_vendor$ac_delim
21873target_os!$target_os$ac_delim
21874OS!$OS$ac_delim
21875HOST_OS!$HOST_OS$ac_delim
21876TARGET_OS!$TARGET_OS$ac_delim
21877LINKALL!$LINKALL$ac_delim
21878NOLINKALL!$NOLINKALL$ac_delim
21879LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21880LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21881ARCH!$ARCH$ac_delim
21882ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021883GREP!$GREP$ac_delim
21884EGREP!$EGREP$ac_delim
21885LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21886BUILD_CC!$BUILD_CC$ac_delim
21887BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21888BUILD_CXX!$BUILD_CXX$ac_delim
21889CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021890ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021891ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21892ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21893DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21894ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21895EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21896DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21897DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21898JIT!$JIT$ac_delim
21899TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021900ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021901ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000021902LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021903ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021905ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021906ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021909 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021910 break
21911 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021912 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21913echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21914 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021915 else
21916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021917 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021918done
21919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021920ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21921if test -n "$ac_eof"; then
21922 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21923 ac_eof=`expr $ac_eof + 1`
21924fi
21925
21926cat >>$CONFIG_STATUS <<_ACEOF
21927cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21928/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021929_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021930sed '
21931s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21932s/^/s,@/; s/!/@,|#_!!_#|/
21933:n
21934t n
21935s/'"$ac_delim"'$/,g/; t
21936s/$/\\/; p
21937N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21938' >>$CONFIG_STATUS <conf$$subs.sed
21939rm -f conf$$subs.sed
21940cat >>$CONFIG_STATUS <<_ACEOF
21941CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021942_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021943
21944
21945ac_delim='%!_!# '
21946for ac_last_try in false false false false false :; do
21947 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000021948ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021949TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21950LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21951LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021952LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021953LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021954ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021955OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021956EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021957EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021958CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021959BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021960INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021961NM!$NM$ac_delim
21962ifGNUmake!$ifGNUmake$ac_delim
21963LN_S!$LN_S$ac_delim
21964CMP!$CMP$ac_delim
21965CP!$CP$ac_delim
21966DATE!$DATE$ac_delim
21967FIND!$FIND$ac_delim
21968MKDIR!$MKDIR$ac_delim
21969MV!$MV$ac_delim
21970RANLIB!$RANLIB$ac_delim
21971AR!$AR$ac_delim
21972RM!$RM$ac_delim
21973SED!$SED$ac_delim
21974TAR!$TAR$ac_delim
21975BINPWD!$BINPWD$ac_delim
21976GRAPHVIZ!$GRAPHVIZ$ac_delim
21977DOT!$DOT$ac_delim
21978FDP!$FDP$ac_delim
21979NEATO!$NEATO$ac_delim
21980TWOPI!$TWOPI$ac_delim
21981CIRCO!$CIRCO$ac_delim
21982GV!$GV$ac_delim
21983DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021984XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021985PERL!$PERL$ac_delim
21986HAVE_PERL!$HAVE_PERL$ac_delim
21987INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21988INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21989INSTALL_DATA!$INSTALL_DATA$ac_delim
21990BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021991CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992DOXYGEN!$DOXYGEN$ac_delim
21993GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021994GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021995POD2HTML!$POD2HTML$ac_delim
21996POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021997PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021998RUNTEST!$RUNTEST$ac_delim
21999TCLSH!$TCLSH$ac_delim
22000ZIP!$ZIP$ac_delim
22001OCAMLC!$OCAMLC$ac_delim
22002OCAMLOPT!$OCAMLOPT$ac_delim
22003OCAMLDEP!$OCAMLDEP$ac_delim
22004OCAMLDOC!$OCAMLDOC$ac_delim
22005GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022006HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022007INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22008INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22009CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22010CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22011LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22013NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22014USE_UDIS86!$USE_UDIS86$ac_delim
22015USE_OPROFILE!$USE_OPROFILE$ac_delim
22016HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22017HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22018MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022019SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022020SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022021LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22022LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22023LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22024LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22025LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22026LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22027LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22028LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22029LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22030LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22031BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22032ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022033OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22034ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22035RPATH!$RPATH$ac_delim
22036RDYNAMIC!$RDYNAMIC$ac_delim
22037LIBOBJS!$LIBOBJS$ac_delim
22038LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022039_ACEOF
22040
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022041 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022042 break
22043 elif $ac_last_try; then
22044 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22045echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22046 { (exit 1); exit 1; }; }
22047 else
22048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22049 fi
22050done
22051
22052ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22053if test -n "$ac_eof"; then
22054 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22055 ac_eof=`expr $ac_eof + 1`
22056fi
22057
22058cat >>$CONFIG_STATUS <<_ACEOF
22059cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022060/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22061_ACEOF
22062sed '
22063s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22064s/^/s,@/; s/!/@,|#_!!_#|/
22065:n
22066t n
22067s/'"$ac_delim"'$/,g/; t
22068s/$/\\/; p
22069N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22070' >>$CONFIG_STATUS <conf$$subs.sed
22071rm -f conf$$subs.sed
22072cat >>$CONFIG_STATUS <<_ACEOF
22073:end
22074s/|#_!!_#|//g
22075CEOF$ac_eof
22076_ACEOF
22077
22078
Reid Spencera773bd52006-08-04 18:18:08 +000022079# VPATH may cause trouble with some makes, so we remove $(srcdir),
22080# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22081# trailing colons and then remove the whole line if VPATH becomes empty
22082# (actually we leave an empty line to preserve line numbers).
22083if test "x$srcdir" = x.; then
22084 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22085s/:*\$(srcdir):*/:/
22086s/:*\${srcdir}:*/:/
22087s/:*@srcdir@:*/:/
22088s/^\([^=]*=[ ]*\):*/\1/
22089s/:*$//
22090s/^[^=]*=[ ]*$//
22091}'
22092fi
22093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022094cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022095fi # test -n "$CONFIG_FILES"
22096
Reid Spencera773bd52006-08-04 18:18:08 +000022097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022098for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022099do
22100 case $ac_tag in
22101 :[FHLC]) ac_mode=$ac_tag; continue;;
22102 esac
22103 case $ac_mode$ac_tag in
22104 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022105 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22106echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22107 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022108 :[FH]-) ac_tag=-:-;;
22109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22110 esac
22111 ac_save_IFS=$IFS
22112 IFS=:
22113 set x $ac_tag
22114 IFS=$ac_save_IFS
22115 shift
22116 ac_file=$1
22117 shift
22118
22119 case $ac_mode in
22120 :L) ac_source=$1;;
22121 :[FH])
22122 ac_file_inputs=
22123 for ac_f
22124 do
22125 case $ac_f in
22126 -) ac_f="$tmp/stdin";;
22127 *) # Look for the file first in the build tree, then in the source tree
22128 # (if the path is not absolute). The absolute path cannot be DOS-style,
22129 # because $ac_f cannot contain `:'.
22130 test -f "$ac_f" ||
22131 case $ac_f in
22132 [\\/$]*) false;;
22133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22134 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022135 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22136echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22137 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022138 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022139 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022140 done
22141
22142 # Let's still pretend it is `configure' which instantiates (i.e., don't
22143 # use $as_me), people would be surprised to read:
22144 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022145 configure_input="Generated from "`IFS=:
22146 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022147 if test x"$ac_file" != x-; then
22148 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149 { echo "$as_me:$LINENO: creating $ac_file" >&5
22150echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022151 fi
22152
22153 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022154 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022155 esac
22156 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022157 esac
22158
Reid Spencera773bd52006-08-04 18:18:08 +000022159 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022160$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022161 X"$ac_file" : 'X\(//\)[^/]' \| \
22162 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022164echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22166 s//\1/
22167 q
22168 }
22169 /^X\(\/\/\)[^/].*/{
22170 s//\1/
22171 q
22172 }
22173 /^X\(\/\/\)$/{
22174 s//\1/
22175 q
22176 }
22177 /^X\(\/\).*/{
22178 s//\1/
22179 q
22180 }
22181 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022182 { as_dir="$ac_dir"
22183 case $as_dir in #(
22184 -*) as_dir=./$as_dir;;
22185 esac
22186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22187 as_dirs=
22188 while :; do
22189 case $as_dir in #(
22190 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22191 *) as_qdir=$as_dir;;
22192 esac
22193 as_dirs="'$as_qdir' $as_dirs"
22194 as_dir=`$as_dirname -- "$as_dir" ||
22195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22196 X"$as_dir" : 'X\(//\)[^/]' \| \
22197 X"$as_dir" : 'X\(//\)$' \| \
22198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22199echo X"$as_dir" |
22200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22201 s//\1/
22202 q
22203 }
22204 /^X\(\/\/\)[^/].*/{
22205 s//\1/
22206 q
22207 }
22208 /^X\(\/\/\)$/{
22209 s//\1/
22210 q
22211 }
22212 /^X\(\/\).*/{
22213 s//\1/
22214 q
22215 }
22216 s/.*/./; q'`
22217 test -d "$as_dir" && break
22218 done
22219 test -z "$as_dirs" || eval "mkdir $as_dirs"
22220 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22221echo "$as_me: error: cannot create directory $as_dir" >&2;}
22222 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022223 ac_builddir=.
22224
Reid Spencera773bd52006-08-04 18:18:08 +000022225case "$ac_dir" in
22226.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22227*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022229 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022230 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022231 case $ac_top_builddir_sub in
22232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22234 esac ;;
22235esac
22236ac_abs_top_builddir=$ac_pwd
22237ac_abs_builddir=$ac_pwd$ac_dir_suffix
22238# for backward compatibility:
22239ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022240
22241case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022242 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022243 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022244 ac_top_srcdir=$ac_top_builddir_sub
22245 ac_abs_top_srcdir=$ac_pwd ;;
22246 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022247 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022248 ac_top_srcdir=$srcdir
22249 ac_abs_top_srcdir=$srcdir ;;
22250 *) # Relative name.
22251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22252 ac_top_srcdir=$ac_top_build_prefix$srcdir
22253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022254esac
Reid Spencera773bd52006-08-04 18:18:08 +000022255ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022256
John Criswell7a73b802003-06-30 21:59:07 +000022257
Reid Spencera773bd52006-08-04 18:18:08 +000022258 case $ac_mode in
22259 :F)
22260 #
22261 # CONFIG_FILE
22262 #
John Criswell7a73b802003-06-30 21:59:07 +000022263
22264 case $INSTALL in
22265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022267 esac
John Criswell7a73b802003-06-30 21:59:07 +000022268_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022270cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022271# If the template does not know about datarootdir, expand it.
22272# FIXME: This hack should be removed a few years after 2.60.
22273ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022274
22275case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022276 p
22277 q
22278}
22279/@datadir@/p
22280/@docdir@/p
22281/@infodir@/p
22282/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022283/@mandir@/p
22284' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022285*datarootdir*) ac_datarootdir_seen=yes;;
22286*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022287 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22288echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022289_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022291 ac_datarootdir_hack='
22292 s&@datadir@&$datadir&g
22293 s&@docdir@&$docdir&g
22294 s&@infodir@&$infodir&g
22295 s&@localedir@&$localedir&g
22296 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022297 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022298esac
22299_ACEOF
22300
22301# Neutralize VPATH when `$srcdir' = `.'.
22302# Shell code in configure.ac might set extrasub.
22303# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022304cat >>$CONFIG_STATUS <<_ACEOF
22305 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022306$extrasub
22307_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022308cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022309:t
22310/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022311s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022312s&@top_builddir@&$ac_top_builddir_sub&;t t
22313s&@srcdir@&$ac_srcdir&;t t
22314s&@abs_srcdir@&$ac_abs_srcdir&;t t
22315s&@top_srcdir@&$ac_top_srcdir&;t t
22316s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22317s&@builddir@&$ac_builddir&;t t
22318s&@abs_builddir@&$ac_abs_builddir&;t t
22319s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22320s&@INSTALL@&$ac_INSTALL&;t t
22321$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022322" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022323
Reid Spencera773bd52006-08-04 18:18:08 +000022324test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22325 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22326 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022327 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022328which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022329echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022330which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022331
Reid Spencera773bd52006-08-04 18:18:08 +000022332 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022333 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022334 -) cat "$tmp/out"; rm -f "$tmp/out";;
22335 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22336 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022337 ;;
22338 :H)
22339 #
22340 # CONFIG_HEADER
22341 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022342_ACEOF
22343
22344# Transform confdefs.h into a sed script `conftest.defines', that
22345# substitutes the proper values into config.h.in to produce config.h.
22346rm -f conftest.defines conftest.tail
22347# First, append a space to every undef/define line, to ease matching.
22348echo 's/$/ /' >conftest.defines
22349# Then, protect against being on the right side of a sed subst, or in
22350# an unquoted here document, in config.status. If some macros were
22351# called several times there might be several #defines for the same
22352# symbol, which is useless. But do not sort them, since the last
22353# AC_DEFINE must be honored.
22354ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22355# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22356# NAME is the cpp macro being defined, VALUE is the value it is being given.
22357# PARAMS is the parameter list in the macro definition--in most cases, it's
22358# just an empty string.
22359ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22360ac_dB='\\)[ (].*,\\1define\\2'
22361ac_dC=' '
22362ac_dD=' ,'
22363
22364uniq confdefs.h |
22365 sed -n '
22366 t rset
22367 :rset
22368 s/^[ ]*#[ ]*define[ ][ ]*//
22369 t ok
22370 d
22371 :ok
22372 s/[\\&,]/\\&/g
22373 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22374 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22375 ' >>conftest.defines
22376
22377# Remove the space that was appended to ease matching.
22378# Then replace #undef with comments. This is necessary, for
22379# example, in the case of _POSIX_SOURCE, which is predefined and required
22380# on some systems where configure will not decide to define it.
22381# (The regexp can be short, since the line contains either #define or #undef.)
22382echo 's/ $//
22383s,^[ #]*u.*,/* & */,' >>conftest.defines
22384
22385# Break up conftest.defines:
22386ac_max_sed_lines=50
22387
22388# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22389# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22390# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22391# et cetera.
22392ac_in='$ac_file_inputs'
22393ac_out='"$tmp/out1"'
22394ac_nxt='"$tmp/out2"'
22395
22396while :
22397do
22398 # Write a here document:
22399 cat >>$CONFIG_STATUS <<_ACEOF
22400 # First, check the format of the line:
22401 cat >"\$tmp/defines.sed" <<\\CEOF
22402/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22403/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22404b
22405:def
22406_ACEOF
22407 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22408 echo 'CEOF
22409 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22410 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22411 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22412 grep . conftest.tail >/dev/null || break
22413 rm -f conftest.defines
22414 mv conftest.tail conftest.defines
22415done
22416rm -f conftest.defines conftest.tail
22417
22418echo "ac_result=$ac_in" >>$CONFIG_STATUS
22419cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022420 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022421 echo "/* $configure_input */" >"$tmp/config.h"
22422 cat "$ac_result" >>"$tmp/config.h"
22423 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22424 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22425echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022426 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022427 rm -f $ac_file
22428 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022429 fi
22430 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022431 echo "/* $configure_input */"
22432 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022433 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022434 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022435 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022437 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22438echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022439 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022440 esac
John Criswell7a73b802003-06-30 21:59:07 +000022441
Reid Spencera773bd52006-08-04 18:18:08 +000022442
22443 case $ac_file$ac_mode in
22444 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022445 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022446 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022447 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022448 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022449 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022450 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022451 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022452 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022453 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022454 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022455 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022456 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022457 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022458 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022459 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022460 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022461 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022462 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022463 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022464 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022465 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022466 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022467 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022468 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022469 ${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 +000022470
22471 esac
22472done # for ac_tag
22473
John Criswell7a73b802003-06-30 21:59:07 +000022474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022475{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022477chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022478ac_clean_files=$ac_clean_files_save
22479
22480
22481# configure is writing to config.log, and then calls config.status.
22482# config.status does its own redirection, appending to config.log.
22483# Unfortunately, on DOS this fails, as config.log is still kept open
22484# by configure, so config.status won't be able to write to it; its
22485# output is simply discarded. So we exec the FD to /dev/null,
22486# effectively closing config.log, so it can be properly (re)opened and
22487# appended to by config.status. When coming back to configure, we
22488# need to make the FD available again.
22489if test "$no_create" != yes; then
22490 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022491 ac_config_status_args=
22492 test "$silent" = yes &&
22493 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022494 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022496 exec 5>>config.log
22497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22498 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022499 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022500fi
22501
John Criswell12399a12003-09-30 15:55:44 +000022502#
22503# CONFIG_SUBDIRS section.
22504#
22505if test "$no_recursion" != yes; then
22506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022507 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022508 ac_sub_configure_args=
22509 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022510 eval "set x $ac_configure_args"
22511 shift
22512 for ac_arg
22513 do
John Criswell12399a12003-09-30 15:55:44 +000022514 if test -n "$ac_prev"; then
22515 ac_prev=
22516 continue
22517 fi
22518 case $ac_arg in
22519 -cache-file | --cache-file | --cache-fil | --cache-fi \
22520 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22521 ac_prev=cache_file ;;
22522 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22523 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22524 | --c=*)
22525 ;;
22526 --config-cache | -C)
22527 ;;
22528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22529 ac_prev=srcdir ;;
22530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22531 ;;
22532 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22533 ac_prev=prefix ;;
22534 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22535 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022536 *)
22537 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022538 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022539 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022540 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022541 esac
22542 done
22543
22544 # Always prepend --prefix to ensure using the same prefix
22545 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022546 ac_arg="--prefix=$prefix"
22547 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022548 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022549 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022550 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022551
22552 ac_popdir=`pwd`
22553 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22554
22555 # Do not complain, so a configure script can configure whichever
22556 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022557 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022558
Reid Spencera773bd52006-08-04 18:18:08 +000022559 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022560 echo "$as_me:$LINENO: $ac_msg" >&5
22561 echo "$ac_msg" >&6
22562 { as_dir="$ac_dir"
22563 case $as_dir in #(
22564 -*) as_dir=./$as_dir;;
22565 esac
22566 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22567 as_dirs=
22568 while :; do
22569 case $as_dir in #(
22570 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22571 *) as_qdir=$as_dir;;
22572 esac
22573 as_dirs="'$as_qdir' $as_dirs"
22574 as_dir=`$as_dirname -- "$as_dir" ||
22575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22576 X"$as_dir" : 'X\(//\)[^/]' \| \
22577 X"$as_dir" : 'X\(//\)$' \| \
22578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22579echo X"$as_dir" |
22580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22581 s//\1/
22582 q
22583 }
22584 /^X\(\/\/\)[^/].*/{
22585 s//\1/
22586 q
22587 }
22588 /^X\(\/\/\)$/{
22589 s//\1/
22590 q
22591 }
22592 /^X\(\/\).*/{
22593 s//\1/
22594 q
22595 }
22596 s/.*/./; q'`
22597 test -d "$as_dir" && break
22598 done
22599 test -z "$as_dirs" || eval "mkdir $as_dirs"
22600 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22601echo "$as_me: error: cannot create directory $as_dir" >&2;}
22602 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022603 ac_builddir=.
22604
Reid Spencera773bd52006-08-04 18:18:08 +000022605case "$ac_dir" in
22606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22607*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022608 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022609 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022610 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022611 case $ac_top_builddir_sub in
22612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22614 esac ;;
22615esac
22616ac_abs_top_builddir=$ac_pwd
22617ac_abs_builddir=$ac_pwd$ac_dir_suffix
22618# for backward compatibility:
22619ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022620
22621case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022622 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022623 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022624 ac_top_srcdir=$ac_top_builddir_sub
22625 ac_abs_top_srcdir=$ac_pwd ;;
22626 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022627 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022628 ac_top_srcdir=$srcdir
22629 ac_abs_top_srcdir=$srcdir ;;
22630 *) # Relative name.
22631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22632 ac_top_srcdir=$ac_top_build_prefix$srcdir
22633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022634esac
Reid Spencera773bd52006-08-04 18:18:08 +000022635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022636
22637
Reid Spencera773bd52006-08-04 18:18:08 +000022638 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022639
22640 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022641 if test -f "$ac_srcdir/configure.gnu"; then
22642 ac_sub_configure=$ac_srcdir/configure.gnu
22643 elif test -f "$ac_srcdir/configure"; then
22644 ac_sub_configure=$ac_srcdir/configure
22645 elif test -f "$ac_srcdir/configure.in"; then
22646 # This should be Cygnus configure.
22647 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022648 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022649 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22650echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022651 ac_sub_configure=
22652 fi
22653
22654 # The recursion is here.
22655 if test -n "$ac_sub_configure"; then
22656 # Make the cache file name correct relative to the subdirectory.
22657 case $cache_file in
22658 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022659 *) # Relative name.
22660 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022661 esac
22662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022663 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22664echo "$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 +000022665 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022666 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22667 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022668 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22669echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22670 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022671 fi
22672
Reid Spencera773bd52006-08-04 18:18:08 +000022673 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022674 done
22675fi
22676