blob: 1905537f4e192119ff6e654d23851ec8a1e07885 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
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#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 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'
Benjamin Kramerb85b2d52012-04-20 18:15:07 +0000564PACKAGE_VERSION='3.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_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
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher82120022012-08-03 19:47:14 +0000687ENABLE_CXX11
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000688ENABLE_OPTIMIZED
689ENABLE_PROFILING
690DISABLE_ASSERTIONS
Eric Christopher09a88732012-08-03 19:58:20 +0000691ENABLE_WERROR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_EXPENSIVE_CHECKS
693EXPENSIVE_CHECKS
694DEBUG_RUNTIME
695DEBUG_SYMBOLS
Daniel Dunbar7126ee02012-08-14 18:14:22 +0000696KEEP_SYMBOLS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000697JIT
698TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000699ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000700ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000701LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000702ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000704ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000705ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000706ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000707TARGETS_TO_BUILD
708LLVM_ENUM_TARGETS
709LLVM_ENUM_ASM_PRINTERS
710LLVM_ENUM_ASM_PARSERS
711LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000712OPTIMIZE_OPTION
713EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000714EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000715CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000716BINUTILS_INCDIR
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000717INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000718NM
719ifGNUmake
720LN_S
721CMP
722CP
723DATE
724FIND
725MKDIR
726MV
727RANLIB
728AR
729RM
730SED
731TAR
732BINPWD
733GRAPHVIZ
734DOT
735FDP
736NEATO
737TWOPI
738CIRCO
739GV
740DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000741XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000742INSTALL_PROGRAM
743INSTALL_SCRIPT
744INSTALL_DATA
745BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000746CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747DOXYGEN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000748GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000749GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000750PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000756GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000757HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000765COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000766USE_UDIS86
767USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000768USE_INTEL_JITEVENTS
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000769XML2CONFIG
770LIBXML2_LIBS
771LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772HAVE_PTHREAD
773HUGE_VAL_SANITY
774MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000776SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777LLVM_PREFIX
778LLVM_BINDIR
779LLVM_LIBDIR
780LLVM_DATADIR
781LLVM_DOCSDIR
782LLVM_ETCDIR
783LLVM_INCLUDEDIR
784LLVM_INFODIR
785LLVM_MANDIR
786LLVM_CONFIGTIME
787BINDINGS_TO_BUILD
788ALL_BINDINGS
789OCAML_LIBDIR
790ENABLE_VISIBILITY_INLINES_HIDDEN
791RPATH
792RDYNAMIC
793LIBOBJS
794LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000795ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000796 ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000803CXX
804CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000805CCC
806CPP'
John Criswell0157f502010-03-19 21:31:39 +0000807ac_subdirs_all='projects/llvm-gcc
808projects/test-suite
809projects/llvm-test
810projects/poolalloc
811projects/llvm-poolalloc
812projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000814projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-java
817projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000818projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000819projects/llvm-kernel
820tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000847# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000856includedir='${prefix}/include'
857oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000867
868ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000869ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000870for ac_option
871do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000874 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000875 ac_prev=
876 continue
877 fi
878
Reid Spencera773bd52006-08-04 18:18:08 +0000879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
John Criswell7a73b802003-06-30 21:59:07 +0000883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
Reid Spencera773bd52006-08-04 18:18:08 +0000886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000911 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000913 datadir=$ac_optarg ;;
914
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
John Criswell7a73b802003-06-30 21:59:07 +0000922 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000924 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000940
941 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000943 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
Reid Spencera773bd52006-08-04 18:18:08 +0000975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
John Criswell7a73b802003-06-30 21:59:07 +0000981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
Reid Spencera773bd52006-08-04 18:18:08 +00001005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
John Criswell7a73b802003-06-30 21:59:07 +00001010 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
Reid Spencera773bd52006-08-04 18:18:08 +00001079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
John Criswell7a73b802003-06-30 21:59:07 +00001089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001140 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001146
1147 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001185 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 ;;
1195
1196 esac
1197done
1198
1199if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001203fi
1204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001205# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001210do
Reid Spencera773bd52006-08-04 18:18:08 +00001211 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001212 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001215 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
Reid Spencera773bd52006-08-04 18:18:08 +00001244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001252
1253
John Criswell7a73b802003-06-30 21:59:07 +00001254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001257 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001258 ac_confdir=`$as_dirname -- "$0" ||
1259$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001282 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
Reid Spencera773bd52006-08-04 18:18:08 +00001288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001292fi
Reid Spencera773bd52006-08-04 18:18:08 +00001293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
John Criswell7a73b802003-06-30 21:59:07 +00001314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001322\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
John Criswell7a73b802003-06-30 21:59:07 +00001342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001370 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001375_ACEOF
1376
1377 cat <<\_ACEOF
1378
1379System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001388 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001389 esac
1390 cat <<\_ACEOF
1391
1392Optional Features:
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001395 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001396 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001397 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001398 --enable-optimized Compile with optimizations enabled (default is NO)
1399 --enable-profiling Compile with profiling enabled (default is NO)
1400 --enable-assertions Compile with assertion checks enabled (default is
1401 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001402 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001403 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001404 Compile with expensive debug checks enabled (default
1405 is NO)
1406 --enable-debug-runtime Build runtime libs with debug symbols (default is
1407 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001408 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1409 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001410 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001411 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001412 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001413 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001414 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001415 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001416 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001417 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001418 --enable-shared Build a shared library and link tools against it
1419 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001420 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001421 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001422 --enable-timestamps Enable embedding timestamp information in build
1423 (default is YES)
Eric Christopherc69bdad2012-09-21 23:03:29 +00001424 --enable-backtraces Enable embedding backtraces on crash (default is
1425 YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001426 --enable-targets Build specific host targets: all or
1427 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001428 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001429 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001430 --enable-experimental-targets
1431 Build experimental host targets: disable or
1432 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001433 --enable-bindings Build specific language bindings:
1434 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001435 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001436 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001437
1438Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001441 --with-optimize-option Select the compiler options to use for optimized
1442 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001443 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001444 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001445 --with-ocaml-libdir Specify install location for ocaml bindings (default
1446 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001447 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001448 --with-clang-resource-dir
1449 Relative directory from the Clang binary for
1450 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001451 --with-c-include-dirs Colon separated list of directories clang will
1452 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001453 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001454 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001455 --with-binutils-include Specify path to binutils/include/ containing
1456 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001457 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001458 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001459 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001460 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001461 --with-oprofile=<prefix>
1462 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor770b97b2012-09-28 17:35:20 +00001463 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1464
John Criswell7a73b802003-06-30 21:59:07 +00001465
1466Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001467 CC C compiler command
1468 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001472 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001475 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
Eric Christopherf33ab862011-12-21 00:52:44 +00001480Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001481_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001482ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001489 ac_builddir=.
1490
Reid Spencera773bd52006-08-04 18:18:08 +00001491case "$ac_dir" in
1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001495 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001496 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501esac
1502ac_abs_top_builddir=$ac_pwd
1503ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504# for backward compatibility:
1505ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001506
1507case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001508 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001509 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001513 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001520esac
Reid Spencera773bd52006-08-04 18:18:08 +00001521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001522
Reid Spencera773bd52006-08-04 18:18:08 +00001523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001531 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001535 done
1536fi
1537
Reid Spencera773bd52006-08-04 18:18:08 +00001538test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001539if $ac_init_version; then
1540 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001541LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001542generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001544Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15452002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001548
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001549Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001550_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001551 exit
John Criswell7a73b802003-06-30 21:59:07 +00001552fi
Reid Spencera773bd52006-08-04 18:18:08 +00001553cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001554This file contains any messages produced by compilers while
1555running configure, to aid debugging if configure makes a mistake.
1556
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001557It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001558generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001559
1560 $ $0 $@
1561
1562_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001563exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001564{
1565cat <<_ASUNAME
1566## --------- ##
1567## Platform. ##
1568## --------- ##
1569
1570hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575
1576/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1578
1579/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1580/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1581/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001582/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001583/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1584/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1585/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1586
1587_ASUNAME
1588
1589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590for as_dir in $PATH
1591do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001594 echo "PATH: $as_dir"
1595done
Reid Spencera773bd52006-08-04 18:18:08 +00001596IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001597
1598} >&5
1599
1600cat >&5 <<_ACEOF
1601
1602
1603## ----------- ##
1604## Core tests. ##
1605## ----------- ##
1606
1607_ACEOF
1608
1609
1610# Keep a trace of the command line.
1611# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001612# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001613# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001614# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001615ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001616ac_configure_args0=
1617ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001618ac_must_keep_next=false
1619for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001620do
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 for ac_arg
1622 do
1623 case $ac_arg in
1624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626 | -silent | --silent | --silen | --sile | --sil)
1627 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001628 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 esac
1631 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001632 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001634 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001636 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001638 case $ac_arg in
1639 *=* | --config-cache | -C | -disable-* | --disable-* \
1640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642 | -with-* | --with-* | -without-* | --without-* | --x)
1643 case "$ac_configure_args0 " in
1644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1645 esac
1646 ;;
1647 -* ) ac_must_keep_next=true ;;
1648 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001651 ;;
1652 esac
1653 done
John Criswell7a73b802003-06-30 21:59:07 +00001654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001655$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656$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 +00001657
1658# When interrupted or exit'd, cleanup temporary files, and complete
1659# config.log. We remove comments because anyway the quotes in there
1660# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001661# WARNING: Use '\'' to represent an apostrophe within the trap.
1662# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001663trap 'exit_status=$?
1664 # Save into config.log some information that might help in debugging.
1665 {
1666 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001667
John Criswell7a73b802003-06-30 21:59:07 +00001668 cat <<\_ASBOX
1669## ---------------- ##
1670## Cache variables. ##
1671## ---------------- ##
1672_ASBOX
1673 echo
1674 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001675(
1676 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677 eval ac_val=\$$ac_var
1678 case $ac_val in #(
1679 *${as_nl}*)
1680 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1682echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001683 esac
1684 case $ac_var in #(
1685 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001686 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001687 esac ;;
1688 esac
1689 done
John Criswell7a73b802003-06-30 21:59:07 +00001690 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001691 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001693 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001694 "s/'\''/'\''\\\\'\'''\''/g;
1695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1696 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001697 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001699 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001700 esac |
1701 sort
1702)
John Criswell7a73b802003-06-30 21:59:07 +00001703 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001704
1705 cat <<\_ASBOX
1706## ----------------- ##
1707## Output variables. ##
1708## ----------------- ##
1709_ASBOX
1710 echo
1711 for ac_var in $ac_subst_vars
1712 do
Reid Spencera773bd52006-08-04 18:18:08 +00001713 eval ac_val=\$$ac_var
1714 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001715 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001716 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001717 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 done | sort
1719 echo
1720
1721 if test -n "$ac_subst_files"; then
1722 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001723## ------------------- ##
1724## File substitutions. ##
1725## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001726_ASBOX
1727 echo
1728 for ac_var in $ac_subst_files
1729 do
Reid Spencera773bd52006-08-04 18:18:08 +00001730 eval ac_val=\$$ac_var
1731 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001733 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001734 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001735 done | sort
1736 echo
1737 fi
1738
John Criswell7a73b802003-06-30 21:59:07 +00001739 if test -s confdefs.h; then
1740 cat <<\_ASBOX
1741## ----------- ##
1742## confdefs.h. ##
1743## ----------- ##
1744_ASBOX
1745 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001746 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001747 echo
1748 fi
1749 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001750 echo "$as_me: caught signal $ac_signal"
1751 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001752 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001753 rm -f core *.core core.conftest.* &&
1754 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001755 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001756' 0
John Criswell7a73b802003-06-30 21:59:07 +00001757for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001758 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001759done
1760ac_signal=0
1761
1762# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001763rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001764
1765# Predefined preprocessor variables.
1766
1767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_NAME "$PACKAGE_NAME"
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_TARNAME "$PACKAGE_TARNAME"
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_VERSION "$PACKAGE_VERSION"
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_STRING "$PACKAGE_STRING"
1784_ACEOF
1785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786
John Criswell7a73b802003-06-30 21:59:07 +00001787cat >>confdefs.h <<_ACEOF
1788#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1789_ACEOF
1790
1791
1792# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001794if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001796elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001798else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799 set x "$ac_default_prefix/share/config.site" \
1800 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001802shift
1803for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001804do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 if test -r "$ac_site_file"; then
1806 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1807echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001808 sed 's/^/| /' "$ac_site_file" >&5
1809 . "$ac_site_file"
1810 fi
1811done
1812
1813if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001814 # Some versions of bash will fail to source /dev/null (special
1815 # files actually), so we avoid doing that.
1816 if test -f "$cache_file"; then
1817 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1818echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001819 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001820 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1821 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001822 esac
1823 fi
1824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001825 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1826echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001827 >$cache_file
1828fi
1829
1830# Check that the precious variables saved in the cache have kept the same
1831# value.
1832ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001833for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001834 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1835 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001836 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1837 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001838 case $ac_old_set,$ac_new_set in
1839 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1841echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 ac_cache_corrupted=: ;;
1843 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001844 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1845echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001846 ac_cache_corrupted=: ;;
1847 ,);;
1848 *)
1849 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001850 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1853echo "$as_me: former value: $ac_old_val" >&2;}
1854 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1855echo "$as_me: current value: $ac_new_val" >&2;}
1856 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001857 fi;;
1858 esac
1859 # Pass precious variables to config.status.
1860 if test "$ac_new_set" = set; then
1861 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 *) ac_arg=$ac_var=$ac_new_val ;;
1864 esac
1865 case " $ac_configure_args " in
1866 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001868 esac
1869 fi
1870done
1871if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001872 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
Reid Spencera773bd52006-08-04 18:18:08 +00001902
John Criswell7a73b802003-06-30 21:59:07 +00001903ac_ext=c
1904ac_cpp='$CPP $CPPFLAGS'
1905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908
1909
1910
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001911cat >>confdefs.h <<\_ACEOF
1912#define LLVM_VERSION_MAJOR 3
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001917#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001918_ACEOF
1919
1920
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001921LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001922
1923
1924
1925
1926
1927
1928
John Criswell7a73b802003-06-30 21:59:07 +00001929ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001930for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 if test -f "$ac_dir/install-sh"; then
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/install-sh -c"
1934 break
1935 elif test -f "$ac_dir/install.sh"; then
1936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install.sh -c"
1938 break
1939 elif test -f "$ac_dir/shtool"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/shtool install -c"
1942 break
1943 fi
John Criswell7a73b802003-06-30 21:59:07 +00001944done
1945if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001946 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1947echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1948 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001949fi
Reid Spencera773bd52006-08-04 18:18:08 +00001950
1951# These three variables are undocumented and unsupported,
1952# and are intended to be withdrawn in a future Autoconf release.
1953# They can cause serious problems if a builder's source tree is in a directory
1954# whose full name contains unusual characters.
1955ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1958
John Criswell7a73b802003-06-30 21:59:07 +00001959
John Criswell392aaa32003-07-22 19:18:09 +00001960
Reid Spencer2706f8c2004-09-19 23:53:36 +00001961if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001962 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001963 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1964echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1965 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001966 fi
John Criswell93e1c722003-09-15 17:04:06 +00001967fi
1968
Nick Lewycky83fc4472009-09-29 05:48:51 +00001969ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001970ac_cpp='$CPP $CPPFLAGS'
1971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001974if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001975 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001976 do
1977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001983else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001986else
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 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 +00001994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001996 break 2
1997 fi
1998done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999done
Reid Spencera773bd52006-08-04 18:18:08 +00002000IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002001
2002fi
2003fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002004CC=$ac_cv_prog_CC
2005if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002006 { echo "$as_me:$LINENO: result: $CC" >&5
2007echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002008else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002009 { echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002011fi
2012
Reid Spencera773bd52006-08-04 18:18:08 +00002013
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002014 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002015 done
2016fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002017if test -z "$CC"; then
2018 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002019 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002020do
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002027else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002028 if test -n "$ac_ct_CC"; then
2029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002030else
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 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 +00002038 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002040 break 2
2041 fi
2042done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043done
Reid Spencera773bd52006-08-04 18:18:08 +00002044IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002045
2046fi
2047fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002050 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002052else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002053 { echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002055fi
2056
Reid Spencera773bd52006-08-04 18:18:08 +00002057
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002059done
John Criswell7a73b802003-06-30 21:59:07 +00002060
Reid Spencera773bd52006-08-04 18:18:08 +00002061 if test "x$ac_ct_CC" = x; then
2062 CC=""
2063 else
2064 case $cross_compiling:$ac_tool_warned in
2065yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002066{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067whose name does not start with the host triplet. If you think this
2068configuration is useful to you, please write to autoconf@gnu.org." >&5
2069echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070whose name does not start with the host triplet. If you think this
2071configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002072ac_tool_warned=yes ;;
2073esac
2074 CC=$ac_ct_CC
2075 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002076fi
2077
John Criswell7a73b802003-06-30 21:59:07 +00002078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080See \`config.log' for more details." >&5
2081echo "$as_me: error: no acceptable C compiler found in \$PATH
2082See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002084
John Criswell7a73b802003-06-30 21:59:07 +00002085# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086echo "$as_me:$LINENO: checking for C compiler version" >&5
2087ac_compiler=`set X $ac_compile; echo $2`
2088{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002089case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002095 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098{ (ac_try="$ac_compiler -v >&5"
2099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
2103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -v >&5") 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108{ (ac_try="$ac_compiler -V >&5"
2109case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112esac
2113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -V >&5") 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002119cat >conftest.$ac_ext <<_ACEOF
2120/* confdefs.h. */
2121_ACEOF
2122cat confdefs.h >>conftest.$ac_ext
2123cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002125
John Criswell7a73b802003-06-30 21:59:07 +00002126int
2127main ()
2128{
2129
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002135ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002136# Try to create an executable without -o first, disregard a.out.
2137# It will help us diagnose broken compilers, and finding out an intuition
2138# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002139{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2142#
2143# List of possible output files, starting from the most likely.
2144# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145# only as a last resort. b.out is created by i960 compilers.
2146ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2147#
2148# The IRIX 6 linker writes into existing files which may not be
2149# executable, retaining their permissions. Remove them first so a
2150# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002151ac_rmfiles=
2152for ac_file in $ac_files
2153do
2154 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2157 esac
2158done
2159rm -f $ac_rmfiles
2160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002161if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002162case "(($ac_try" in
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2165esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002167 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002168 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002171 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173# in a Makefile. We should not override ac_cv_exeext if it was cached,
2174# so that the user can short-circuit this test for compilers unknown to
2175# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002176for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002177do
2178 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002179 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002181 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002182 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002183 # We found the default executable, but exeext='' is most
2184 # certainly right.
2185 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002187 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002188 then :; else
2189 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190 fi
2191 # We set ac_cv_exeext here because the later test for it is not
2192 # safe: cross compilers may not add the suffix if given an `-o'
2193 # argument, so we may need to know it at that point already.
2194 # Even if this section looks crufty: it has the advantage of
2195 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002196 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002197 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002198 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002199 esac
2200done
Reid Spencera773bd52006-08-04 18:18:08 +00002201test "$ac_cv_exeext" = no && ac_cv_exeext=
2202
John Criswell7a73b802003-06-30 21:59:07 +00002203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002204 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002205sed 's/^/| /' conftest.$ac_ext >&5
2206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002207{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208See \`config.log' for more details." >&5
2209echo "$as_me: error: C compiler cannot create executables
2210See \`config.log' for more details." >&2;}
2211 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002212fi
John Criswell7a73b802003-06-30 21:59:07 +00002213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002214ac_exeext=$ac_cv_exeext
2215{ echo "$as_me:$LINENO: result: $ac_file" >&5
2216echo "${ECHO_T}$ac_file" >&6; }
2217
2218# Check that the compiler produces executables we can run. If not, either
2219# the compiler is broken, or we cross compile.
2220{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223# If not cross compiling, check that we can run a simple program.
2224if test "$cross_compiling" != yes; then
2225 if { ac_try='./$ac_file'
2226 { (case "(($ac_try" in
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2229esac
2230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231 (eval "$ac_try") 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2235 cross_compiling=no
2236 else
2237 if test "$cross_compiling" = maybe; then
2238 cross_compiling=yes
2239 else
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241If you meant to cross compile, use \`--host'.
2242See \`config.log' for more details." >&5
2243echo "$as_me: error: cannot run C compiled programs.
2244If you meant to cross compile, use \`--host'.
2245See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2247 fi
2248 fi
2249fi
2250{ echo "$as_me:$LINENO: result: yes" >&5
2251echo "${ECHO_T}yes" >&6; }
2252
2253rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002254ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002255# Check that the compiler produces executables we can run. If not, either
2256# the compiler is broken, or we cross compile.
2257{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260echo "${ECHO_T}$cross_compiling" >&6; }
2261
2262{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002265case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002270 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002271 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2276# work properly (i.e., refer to `conftest.exe'), while it won't with
2277# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002278for ac_file in conftest.exe conftest conftest.*; do
2279 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002280 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002283 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002284 * ) break;;
2285 esac
2286done
2287else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&5
2290echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002294
2295rm -f conftest$ac_cv_exeext
2296{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002298
2299rm -f conftest.$ac_ext
2300EXEEXT=$ac_cv_exeext
2301ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002302{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002307 cat >conftest.$ac_ext <<_ACEOF
2308/* confdefs.h. */
2309_ACEOF
2310cat confdefs.h >>conftest.$ac_ext
2311cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002312/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002313
John Criswell7a73b802003-06-30 21:59:07 +00002314int
2315main ()
2316{
2317
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002324case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2327esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002329 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002330 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002333 for ac_file in conftest.o conftest.obj conftest.*; do
2334 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002335 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338 break;;
2339 esac
2340done
2341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002342 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002343sed 's/^/| /' conftest.$ac_ext >&5
2344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346See \`config.log' for more details." >&5
2347echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002351
John Criswell7a73b802003-06-30 21:59:07 +00002352rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002354{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002356OBJEXT=$ac_cv_objext
2357ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002358{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363 cat >conftest.$ac_ext <<_ACEOF
2364/* confdefs.h. */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002368/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002369
John Criswell7a73b802003-06-30 21:59:07 +00002370int
2371main ()
2372{
2373#ifndef __GNUC__
2374 choke me
2375#endif
2376
2377 ;
2378 return 0;
2379}
2380_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002381rm -f conftest.$ac_objext
2382if { (ac_try="$ac_compile"
2383case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386esac
2387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388 (eval "$ac_compile") 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399esac
2400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2409esac
2410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002415 ac_compiler_gnu=yes
2416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417 echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422
Reid Spencera773bd52006-08-04 18:18:08 +00002423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002425
2426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430ac_test_CFLAGS=${CFLAGS+set}
2431ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002432{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434if test "${ac_cv_prog_cc_g+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002436else
Reid Spencera773bd52006-08-04 18:18:08 +00002437 ac_save_c_werror_flag=$ac_c_werror_flag
2438 ac_c_werror_flag=yes
2439 ac_cv_prog_cc_g=no
2440 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002441 cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h. */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002446/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002447
John Criswell7a73b802003-06-30 21:59:07 +00002448int
2449main ()
2450{
2451
2452 ;
2453 return 0;
2454}
2455_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002456rm -f conftest.$ac_objext
2457if { (ac_try="$ac_compile"
2458case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461esac
2462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compile") 2>conftest.er1
2464 ac_status=$?
2465 grep -v '^ *+' conftest.er1 >conftest.err
2466 rm -f conftest.er1
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474esac
2475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002492 echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 CFLAGS=""
2496 cat >conftest.$ac_ext <<_ACEOF
2497/* confdefs.h. */
2498_ACEOF
2499cat confdefs.h >>conftest.$ac_ext
2500cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002501/* end confdefs.h. */
2502
2503int
2504main ()
2505{
2506
2507 ;
2508 return 0;
2509}
2510_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002511rm -f conftest.$ac_objext
2512if { (ac_try="$ac_compile"
2513case "(($ac_try" in
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2516esac
2517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518 (eval "$ac_compile") 2>conftest.er1
2519 ac_status=$?
2520 grep -v '^ *+' conftest.er1 >conftest.err
2521 rm -f conftest.er1
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539esac
2540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_try") 2>&5
2542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2545 :
Torok Edwin871384f2010-01-26 08:50:50 +00002546else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002547 echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002551 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 cat >conftest.$ac_ext <<_ACEOF
2553/* confdefs.h. */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002557/* end confdefs.h. */
2558
2559int
2560main ()
2561{
2562
2563 ;
2564 return 0;
2565}
2566_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002567rm -f conftest.$ac_objext
2568if { (ac_try="$ac_compile"
2569case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2572esac
2573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_compile") 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585esac
2586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595esac
2596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002601 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602else
2603 echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606
John Criswell7a73b802003-06-30 21:59:07 +00002607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608
Reid Spencera773bd52006-08-04 18:18:08 +00002609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611
Reid Spencera773bd52006-08-04 18:18:08 +00002612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002614
Reid Spencera773bd52006-08-04 18:18:08 +00002615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 ac_c_werror_flag=$ac_save_c_werror_flag
2617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620if test "$ac_test_CFLAGS" = set; then
2621 CFLAGS=$ac_save_CFLAGS
2622elif test $ac_cv_prog_cc_g = yes; then
2623 if test "$GCC" = yes; then
2624 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002625 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002627 fi
2628else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629 if test "$GCC" = yes; then
2630 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002631 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002633 fi
2634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002635{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637if test "${ac_cv_prog_cc_c89+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639else
Reid Spencera773bd52006-08-04 18:18:08 +00002640 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002642cat >conftest.$ac_ext <<_ACEOF
2643/* confdefs.h. */
2644_ACEOF
2645cat confdefs.h >>conftest.$ac_ext
2646cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647/* end confdefs.h. */
2648#include <stdarg.h>
2649#include <stdio.h>
2650#include <sys/types.h>
2651#include <sys/stat.h>
2652/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2653struct buf { int x; };
2654FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655static char *e (p, i)
2656 char **p;
2657 int i;
2658{
2659 return p[i];
2660}
2661static char *f (char * (*g) (char **, int), char **p, ...)
2662{
2663 char *s;
2664 va_list v;
2665 va_start (v,p);
2666 s = g (p, va_arg (v,int));
2667 va_end (v);
2668 return s;
2669}
2670
2671/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2672 function prototypes and stuff, but not '\xHH' hex character constants.
2673 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002674 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2676 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002677 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2679
Reid Spencera773bd52006-08-04 18:18:08 +00002680/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681 inside strings and character constants. */
2682#define FOO(x) 'x'
2683int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2684
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002685int test (int i, double x);
2686struct s1 {int (*f) (int a);};
2687struct s2 {int (*f) (double a);};
2688int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689int argc;
2690char **argv;
2691int
2692main ()
2693{
2694return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2695 ;
2696 return 0;
2697}
2698_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002699for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002701do
2702 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002703 rm -f conftest.$ac_objext
2704if { (ac_try="$ac_compile"
2705case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708esac
2709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2711 ac_status=$?
2712 grep -v '^ *+' conftest.er1 >conftest.err
2713 rm -f conftest.er1
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002737 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002738else
2739 echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002744
Reid Spencera773bd52006-08-04 18:18:08 +00002745rm -f core conftest.err conftest.$ac_objext
2746 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002747done
Reid Spencera773bd52006-08-04 18:18:08 +00002748rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002749CC=$ac_save_CC
2750
2751fi
Reid Spencera773bd52006-08-04 18:18:08 +00002752# AC_CACHE_VAL
2753case "x$ac_cv_prog_cc_c89" in
2754 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755 { echo "$as_me:$LINENO: result: none needed" >&5
2756echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002757 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002758 { echo "$as_me:$LINENO: result: unsupported" >&5
2759echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002760 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002761 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002762 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002764esac
2765
John Criswell0c38eaf2003-09-10 15:17:25 +00002766
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002767ac_ext=c
2768ac_cpp='$CPP $CPPFLAGS'
2769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
Eric Christopherffee5722011-09-16 20:36:25 +00002773ac_ext=cpp
2774ac_cpp='$CXXCPP $CPPFLAGS'
2775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778if test -z "$CXX"; then
2779 if test -n "$CCC"; then
2780 CXX=$CCC
2781 else
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in clang++ llvm-g++ g++
2784 do
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789if test "${ac_cv_prog_CXX+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791else
2792 if test -n "$CXX"; then
2793 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806done
2807done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812CXX=$ac_cv_prog_CXX
2813if test -n "$CXX"; then
2814 { echo "$as_me:$LINENO: result: $CXX" >&5
2815echo "${ECHO_T}$CXX" >&6; }
2816else
2817 { echo "$as_me:$LINENO: result: no" >&5
2818echo "${ECHO_T}no" >&6; }
2819fi
2820
2821
2822 test -n "$CXX" && break
2823 done
2824fi
2825if test -z "$CXX"; then
2826 ac_ct_CXX=$CXX
2827 for ac_prog in clang++ llvm-g++ g++
2828do
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830set dummy $ac_prog; ac_word=$2
2831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835else
2836 if test -n "$ac_ct_CXX"; then
2837 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_CXX="$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850done
2851done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857if test -n "$ac_ct_CXX"; then
2858 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859echo "${ECHO_T}$ac_ct_CXX" >&6; }
2860else
2861 { echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6; }
2863fi
2864
2865
2866 test -n "$ac_ct_CXX" && break
2867done
2868
2869 if test "x$ac_ct_CXX" = x; then
2870 CXX="g++"
2871 else
2872 case $cross_compiling:$ac_tool_warned in
2873yes:)
2874{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875whose name does not start with the host triplet. If you think this
2876configuration is useful to you, please write to autoconf@gnu.org." >&5
2877echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878whose name does not start with the host triplet. If you think this
2879configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880ac_tool_warned=yes ;;
2881esac
2882 CXX=$ac_ct_CXX
2883 fi
2884fi
2885
2886 fi
2887fi
2888# Provide some information about the compiler.
2889echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890ac_compiler=`set X $ac_compile; echo $2`
2891{ (ac_try="$ac_compiler --version >&5"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler --version >&5") 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901{ (ac_try="$ac_compiler -v >&5"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -v >&5") 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911{ (ac_try="$ac_compiler -V >&5"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -V >&5") 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921
2922{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926else
2927 cat >conftest.$ac_ext <<_ACEOF
2928/* confdefs.h. */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h. */
2933
2934int
2935main ()
2936{
2937#ifndef __GNUC__
2938 choke me
2939#endif
2940
2941 ;
2942 return 0;
2943}
2944_ACEOF
2945rm -f conftest.$ac_objext
2946if { (ac_try="$ac_compile"
2947case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950esac
2951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2953 ac_status=$?
2954 grep -v '^ *+' conftest.er1 >conftest.err
2955 rm -f conftest.er1
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
2974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 ac_compiler_gnu=yes
2980else
2981 echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 ac_compiler_gnu=no
2985fi
2986
2987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2989
2990fi
2991{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993GXX=`test $ac_compiler_gnu = yes && echo yes`
2994ac_test_CXXFLAGS=${CXXFLAGS+set}
2995ac_save_CXXFLAGS=$CXXFLAGS
2996{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998if test "${ac_cv_prog_cxx_g+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002 ac_cxx_werror_flag=yes
3003 ac_cv_prog_cxx_g=no
3004 CXXFLAGS="-g"
3005 cat >conftest.$ac_ext <<_ACEOF
3006/* confdefs.h. */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h. */
3011
3012int
3013main ()
3014{
3015
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020rm -f conftest.$ac_objext
3021if { (ac_try="$ac_compile"
3022case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 ac_cv_prog_cxx_g=yes
3055else
3056 echo "$as_me: failed program was:" >&5
3057sed 's/^/| /' conftest.$ac_ext >&5
3058
3059 CXXFLAGS=""
3060 cat >conftest.$ac_ext <<_ACEOF
3061/* confdefs.h. */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h. */
3066
3067int
3068main ()
3069{
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext
3076if { (ac_try="$ac_compile"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 :
3110else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3115 CXXFLAGS="-g"
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122
3123int
3124main ()
3125{
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (ac_try="$ac_compile"
3133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_cv_prog_cxx_g=yes
3166else
3167 echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170
3171fi
3172
3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174fi
3175
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177fi
3178
3179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181fi
3182{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184if test "$ac_test_CXXFLAGS" = set; then
3185 CXXFLAGS=$ac_save_CXXFLAGS
3186elif test $ac_cv_prog_cxx_g = yes; then
3187 if test "$GXX" = yes; then
3188 CXXFLAGS="-g -O2"
3189 else
3190 CXXFLAGS="-g"
3191 fi
3192else
3193 if test "$GXX" = yes; then
3194 CXXFLAGS="-O2"
3195 else
3196 CXXFLAGS=
3197 fi
3198fi
3199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003204
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003210{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212# On Suns, sometimes $CPP names a directory.
3213if test -n "$CPP" && test -d "$CPP"; then
3214 CPP=
3215fi
3216if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217 if test "${ac_cv_prog_CPP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219else
3220 # Double quotes because CPP needs to be expanded
3221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3222 do
3223 ac_preproc_ok=false
3224for ac_c_preproc_warn_flag in '' yes
3225do
3226 # Use a header file that comes with gcc, so configuring glibc
3227 # with a fresh cross-compiler works.
3228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229 # <limits.h> exists even on freestanding compilers.
3230 # On the NeXT, cc -E runs the code through the compiler's parser,
3231 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003232 cat >conftest.$ac_ext <<_ACEOF
3233/* confdefs.h. */
3234_ACEOF
3235cat confdefs.h >>conftest.$ac_ext
3236cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003237/* end confdefs.h. */
3238#ifdef __STDC__
3239# include <limits.h>
3240#else
3241# include <assert.h>
3242#endif
3243 Syntax error
3244_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003245if { (ac_try="$ac_cpp conftest.$ac_ext"
3246case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
3250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } >/dev/null; then
3258 if test -s conftest.err; then
3259 ac_cpp_err=$ac_c_preproc_warn_flag
3260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261 else
3262 ac_cpp_err=
3263 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003265 ac_cpp_err=yes
3266fi
3267if test -z "$ac_cpp_err"; then
3268 :
3269else
3270 echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273 # Broken: fails on valid input.
3274continue
3275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003276
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003277rm -f conftest.err conftest.$ac_ext
3278
Reid Spencera773bd52006-08-04 18:18:08 +00003279 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003280 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003281 cat >conftest.$ac_ext <<_ACEOF
3282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286/* end confdefs.h. */
3287#include <ac_nonexistent.h>
3288_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003289if { (ac_try="$ac_cpp conftest.$ac_ext"
3290case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293esac
3294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296 ac_status=$?
3297 grep -v '^ *+' conftest.er1 >conftest.err
3298 rm -f conftest.er1
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null; then
3302 if test -s conftest.err; then
3303 ac_cpp_err=$ac_c_preproc_warn_flag
3304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305 else
3306 ac_cpp_err=
3307 fi
3308else
3309 ac_cpp_err=yes
3310fi
3311if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312 # Broken: success on invalid input.
3313continue
3314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003315 echo "$as_me: failed program was:" >&5
3316sed 's/^/| /' conftest.$ac_ext >&5
3317
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318 # Passes both tests.
3319ac_preproc_ok=:
3320break
3321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003322
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003323rm -f conftest.err conftest.$ac_ext
3324
3325done
3326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003328if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329 break
3330fi
3331
3332 done
3333 ac_cv_prog_CPP=$CPP
3334
3335fi
3336 CPP=$ac_cv_prog_CPP
3337else
3338 ac_cv_prog_CPP=$CPP
3339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003340{ echo "$as_me:$LINENO: result: $CPP" >&5
3341echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342ac_preproc_ok=false
3343for ac_c_preproc_warn_flag in '' yes
3344do
3345 # Use a header file that comes with gcc, so configuring glibc
3346 # with a fresh cross-compiler works.
3347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348 # <limits.h> exists even on freestanding compilers.
3349 # On the NeXT, cc -E runs the code through the compiler's parser,
3350 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003351 cat >conftest.$ac_ext <<_ACEOF
3352/* confdefs.h. */
3353_ACEOF
3354cat confdefs.h >>conftest.$ac_ext
3355cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356/* end confdefs.h. */
3357#ifdef __STDC__
3358# include <limits.h>
3359#else
3360# include <assert.h>
3361#endif
3362 Syntax error
3363_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003364if { (ac_try="$ac_cpp conftest.$ac_ext"
3365case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
3369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380 else
3381 ac_cpp_err=
3382 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003384 ac_cpp_err=yes
3385fi
3386if test -z "$ac_cpp_err"; then
3387 :
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392 # Broken: fails on valid input.
3393continue
3394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003395
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396rm -f conftest.err conftest.$ac_ext
3397
Reid Spencera773bd52006-08-04 18:18:08 +00003398 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003405/* end confdefs.h. */
3406#include <ac_nonexistent.h>
3407_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003408if { (ac_try="$ac_cpp conftest.$ac_ext"
3409case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412esac
3413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null; then
3421 if test -s conftest.err; then
3422 ac_cpp_err=$ac_c_preproc_warn_flag
3423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424 else
3425 ac_cpp_err=
3426 fi
3427else
3428 ac_cpp_err=yes
3429fi
3430if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431 # Broken: success on invalid input.
3432continue
3433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003434 echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437 # Passes both tests.
3438ac_preproc_ok=:
3439break
3440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003441
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442rm -f conftest.err conftest.$ac_ext
3443
3444done
3445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003447if $ac_preproc_ok; then
3448 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003450 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451See \`config.log' for more details." >&5
3452echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455fi
3456
John Criswell7a73b802003-06-30 21:59:07 +00003457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
John Criswell7a73b802003-06-30 21:59:07 +00003463
Eric Christopherffee5722011-09-16 20:36:25 +00003464
3465
3466if test -d ${srcdir}/projects/llvm-gcc ; then
3467 subdirs="$subdirs projects/llvm-gcc"
3468
3469fi
3470
3471if test -d ${srcdir}/projects/test-suite ; then
3472 subdirs="$subdirs projects/test-suite"
3473
3474fi
3475
3476if test -d ${srcdir}/projects/llvm-test ; then
3477 subdirs="$subdirs projects/llvm-test"
3478
3479fi
3480
3481if test -d ${srcdir}/projects/poolalloc ; then
3482 subdirs="$subdirs projects/poolalloc"
3483
3484fi
3485
3486if test -d ${srcdir}/projects/llvm-poolalloc ; then
3487 subdirs="$subdirs projects/llvm-poolalloc"
3488
3489fi
3490
3491for i in `ls ${srcdir}/projects`
3492do
3493 if test -d ${srcdir}/projects/${i} ; then
3494 case ${i} in
3495 sample) subdirs="$subdirs projects/sample"
3496 ;;
3497 privbracket) subdirs="$subdirs projects/privbracket"
3498 ;;
3499 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3500 ;;
3501 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3502;;
3503 llvm-java) subdirs="$subdirs projects/llvm-java"
3504 ;;
3505 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3506 ;;
3507 safecode) subdirs="$subdirs projects/safecode"
3508 ;;
3509 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3510 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003511 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003512 llvm-gcc) ;;
3513 test-suite) ;;
3514 llvm-test) ;;
3515 poolalloc) ;;
3516 llvm-poolalloc) ;;
3517 *)
3518 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3519echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3520 ;;
3521 esac
3522 fi
3523done
3524
3525# Check whether --enable-polly was given.
3526if test "${enable_polly+set}" = set; then
3527 enableval=$enable_polly;
3528else
3529 enableval=default
3530fi
3531
3532case "$enableval" in
3533 yes) ENABLE_POLLY=1
3534 ;;
3535 no) ENABLE_POLLY=0
3536 ;;
3537 default) ENABLE_POLLY=1
3538 ;;
3539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3540echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3541 { (exit 1); exit 1; }; } ;;
3542esac
3543
3544
3545if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3546 LLVM_HAS_POLLY=1
3547
3548 subdirs="$subdirs tools/polly"
3549
3550fi
3551
3552
3553# Make sure we can run config.sub.
3554$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3555 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3556echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3557 { (exit 1); exit 1; }; }
3558
3559{ echo "$as_me:$LINENO: checking build system type" >&5
3560echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3561if test "${ac_cv_build+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 ac_build_alias=$build_alias
3565test "x$ac_build_alias" = x &&
3566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567test "x$ac_build_alias" = x &&
3568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3569echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3570 { (exit 1); exit 1; }; }
3571ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3572 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3573echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3574 { (exit 1); exit 1; }; }
3575
3576fi
3577{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3578echo "${ECHO_T}$ac_cv_build" >&6; }
3579case $ac_cv_build in
3580*-*-*) ;;
3581*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3582echo "$as_me: error: invalid value of canonical build" >&2;}
3583 { (exit 1); exit 1; }; };;
3584esac
3585build=$ac_cv_build
3586ac_save_IFS=$IFS; IFS='-'
3587set x $ac_cv_build
3588shift
3589build_cpu=$1
3590build_vendor=$2
3591shift; shift
3592# Remember, the first character of IFS is used to create $*,
3593# except with old shells:
3594build_os=$*
3595IFS=$ac_save_IFS
3596case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3597
3598
3599{ echo "$as_me:$LINENO: checking host system type" >&5
3600echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3601if test "${ac_cv_host+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603else
3604 if test "x$host_alias" = x; then
3605 ac_cv_host=$ac_cv_build
3606else
3607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3608 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3609echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3610 { (exit 1); exit 1; }; }
3611fi
3612
3613fi
3614{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3615echo "${ECHO_T}$ac_cv_host" >&6; }
3616case $ac_cv_host in
3617*-*-*) ;;
3618*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3619echo "$as_me: error: invalid value of canonical host" >&2;}
3620 { (exit 1); exit 1; }; };;
3621esac
3622host=$ac_cv_host
3623ac_save_IFS=$IFS; IFS='-'
3624set x $ac_cv_host
3625shift
3626host_cpu=$1
3627host_vendor=$2
3628shift; shift
3629# Remember, the first character of IFS is used to create $*,
3630# except with old shells:
3631host_os=$*
3632IFS=$ac_save_IFS
3633case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3634
3635
3636{ echo "$as_me:$LINENO: checking target system type" >&5
3637echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3638if test "${ac_cv_target+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641 if test "x$target_alias" = x; then
3642 ac_cv_target=$ac_cv_host
3643else
3644 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3645 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3646echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3647 { (exit 1); exit 1; }; }
3648fi
3649
3650fi
3651{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3652echo "${ECHO_T}$ac_cv_target" >&6; }
3653case $ac_cv_target in
3654*-*-*) ;;
3655*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3656echo "$as_me: error: invalid value of canonical target" >&2;}
3657 { (exit 1); exit 1; }; };;
3658esac
3659target=$ac_cv_target
3660ac_save_IFS=$IFS; IFS='-'
3661set x $ac_cv_target
3662shift
3663target_cpu=$1
3664target_vendor=$2
3665shift; shift
3666# Remember, the first character of IFS is used to create $*,
3667# except with old shells:
3668target_os=$*
3669IFS=$ac_save_IFS
3670case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3671
3672
3673# The aliases save the names the user supplied, while $host etc.
3674# will get canonicalized.
3675test -n "$target_alias" &&
3676 test "$program_prefix$program_suffix$program_transform_name" = \
3677 NONENONEs,x,x, &&
3678 program_prefix=${target_alias}-
3679
3680{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3681echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3682if test "${llvm_cv_os_type+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685 case $host in
3686 *-*-aix*)
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="AIX"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-irix*)
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="IRIX"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-cygwin*)
3697 llvm_cv_link_all_option="-Wl,--whole-archive"
3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699 llvm_cv_os_type="Cygwin"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-darwin*)
3702 llvm_cv_link_all_option="-Wl,-all_load"
3703 llvm_cv_no_link_all_option="-Wl,-noall_load"
3704 llvm_cv_os_type="Darwin"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-minix*)
3707 llvm_cv_link_all_option="-Wl,-all_load"
3708 llvm_cv_no_link_all_option="-Wl,-noall_load"
3709 llvm_cv_os_type="Minix"
3710 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003711 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="FreeBSD"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-*-openbsd*)
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="OpenBSD"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-*-netbsd*)
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="NetBSD"
3725 llvm_cv_platform_type="Unix" ;;
3726 *-*-dragonfly*)
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="DragonFly"
3730 llvm_cv_platform_type="Unix" ;;
3731 *-*-hpux*)
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="HP-UX"
3735 llvm_cv_platform_type="Unix" ;;
3736 *-*-interix*)
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="Interix"
3740 llvm_cv_platform_type="Unix" ;;
3741 *-*-linux*)
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="Linux"
3745 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003746 *-*-gnu*)
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="GNU"
3750 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003751 *-*-solaris*)
3752 llvm_cv_link_all_option="-Wl,-z,allextract"
3753 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3754 llvm_cv_os_type="SunOS"
3755 llvm_cv_platform_type="Unix" ;;
3756 *-*-auroraux*)
3757 llvm_cv_link_all_option="-Wl,-z,allextract"
3758 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3759 llvm_cv_os_type="AuroraUX"
3760 llvm_cv_platform_type="Unix" ;;
3761 *-*-win32*)
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="Win32"
3765 llvm_cv_platform_type="Win32" ;;
3766 *-*-mingw*)
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="MingW"
3770 llvm_cv_platform_type="Win32" ;;
3771 *-*-haiku*)
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Haiku"
3775 llvm_cv_platform_type="Unix" ;;
3776 *-unknown-eabi*)
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="Freestanding"
3780 llvm_cv_platform_type="Unix" ;;
3781 *-unknown-elf*)
3782 llvm_cv_link_all_option="-Wl,--whole-archive"
3783 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3784 llvm_cv_os_type="Freestanding"
3785 llvm_cv_platform_type="Unix" ;;
3786 *)
3787 llvm_cv_link_all_option=""
3788 llvm_cv_no_link_all_option=""
3789 llvm_cv_os_type="Unknown"
3790 llvm_cv_platform_type="Unknown" ;;
3791esac
3792fi
3793{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3794echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3795
3796{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3797echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3798if test "${llvm_cv_target_os_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 case $target in
3802 *-*-aix*)
3803 llvm_cv_target_os_type="AIX" ;;
3804 *-*-irix*)
3805 llvm_cv_target_os_type="IRIX" ;;
3806 *-*-cygwin*)
3807 llvm_cv_target_os_type="Cygwin" ;;
3808 *-*-darwin*)
3809 llvm_cv_target_os_type="Darwin" ;;
3810 *-*-minix*)
3811 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003812 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003813 llvm_cv_target_os_type="FreeBSD" ;;
3814 *-*-openbsd*)
3815 llvm_cv_target_os_type="OpenBSD" ;;
3816 *-*-netbsd*)
3817 llvm_cv_target_os_type="NetBSD" ;;
3818 *-*-dragonfly*)
3819 llvm_cv_target_os_type="DragonFly" ;;
3820 *-*-hpux*)
3821 llvm_cv_target_os_type="HP-UX" ;;
3822 *-*-interix*)
3823 llvm_cv_target_os_type="Interix" ;;
3824 *-*-linux*)
3825 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003826 *-*-gnu*)
3827 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003828 *-*-solaris*)
3829 llvm_cv_target_os_type="SunOS" ;;
3830 *-*-auroraux*)
3831 llvm_cv_target_os_type="AuroraUX" ;;
3832 *-*-win32*)
3833 llvm_cv_target_os_type="Win32" ;;
3834 *-*-mingw*)
3835 llvm_cv_target_os_type="MingW" ;;
3836 *-*-haiku*)
3837 llvm_cv_target_os_type="Haiku" ;;
3838 *-*-rtems*)
3839 llvm_cv_target_os_type="RTEMS" ;;
3840 *-*-nacl*)
3841 llvm_cv_target_os_type="NativeClient" ;;
3842 *-unknown-eabi*)
3843 llvm_cv_target_os_type="Freestanding" ;;
3844 *)
3845 llvm_cv_target_os_type="Unknown" ;;
3846esac
3847fi
3848{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3849echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3850
3851if test "$llvm_cv_os_type" = "Unknown" ; then
3852 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3853echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3854 { (exit 1); exit 1; }; }
3855fi
3856
3857OS=$llvm_cv_os_type
3858
3859HOST_OS=$llvm_cv_os_type
3860
3861TARGET_OS=$llvm_cv_target_os_type
3862
3863
3864LINKALL=$llvm_cv_link_all_option
3865
3866NOLINKALL=$llvm_cv_no_link_all_option
3867
3868
3869case $llvm_cv_platform_type in
3870 Unix)
3871
3872cat >>confdefs.h <<\_ACEOF
3873#define LLVM_ON_UNIX 1
3874_ACEOF
3875
3876 LLVM_ON_UNIX=1
3877
3878 LLVM_ON_WIN32=0
3879
3880 ;;
3881 Win32)
3882
3883cat >>confdefs.h <<\_ACEOF
3884#define LLVM_ON_WIN32 1
3885_ACEOF
3886
3887 LLVM_ON_UNIX=0
3888
3889 LLVM_ON_WIN32=1
3890
3891 ;;
3892esac
3893
3894{ echo "$as_me:$LINENO: checking target architecture" >&5
3895echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3896if test "${llvm_cv_target_arch+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 case $target in
3900 i?86-*) llvm_cv_target_arch="x86" ;;
3901 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3902 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3903 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003904 arm*-*) llvm_cv_target_arch="ARM" ;;
3905 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003906 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003907 xcore-*) llvm_cv_target_arch="XCore" ;;
3908 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003909 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003910 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003911 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003912 *) llvm_cv_target_arch="Unknown" ;;
3913esac
3914fi
3915{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3916echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3917
3918if test "$llvm_cv_target_arch" = "Unknown" ; then
3919 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3920echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3921fi
3922
Eric Christopherffee5722011-09-16 20:36:25 +00003923case "$llvm_cv_target_arch" in
3924 x86) LLVM_NATIVE_ARCH="X86" ;;
3925 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3926 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3927esac
3928
3929ARCH=$llvm_cv_target_arch
3930
3931
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003932case $host in
3933 i?86-*) host_arch="x86" ;;
3934 amd64-* | x86_64-*) host_arch="x86_64" ;;
3935 sparc*-*) host_arch="Sparc" ;;
3936 powerpc*-*) host_arch="PowerPC" ;;
3937 arm*-*) host_arch="ARM" ;;
3938 mips-*) host_arch="Mips" ;;
3939 mipsel-*) host_arch="Mips" ;;
3940 xcore-*) host_arch="XCore" ;;
3941 msp430-*) host_arch="MSP430" ;;
3942 hexagon-*) host_arch="Hexagon" ;;
3943 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003944 *) host_arch="Unknown" ;;
3945esac
3946
3947if test "$host_arch" = "Unknown" ; then
3948 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3949echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3950fi
3951
3952HOST_ARCH=$host_arch
3953
3954
Eric Christopherffee5722011-09-16 20:36:25 +00003955
3956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959if test "${ac_cv_path_GREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962 # Extract the first word of "grep ggrep" to use in msg output
3963if test -z "$GREP"; then
3964set dummy grep ggrep; ac_prog_name=$2
3965if test "${ac_cv_path_GREP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
Reid Spencera773bd52006-08-04 18:18:08 +00003968 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003969# Loop through the user's path and test for each of PROGNAME-LIST
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003971for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975 for ac_prog in grep ggrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3979 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003980 # Check for GNU $ac_path_GREP
3981case `"$ac_path_GREP" --version 2>&1` in
3982*GNU*)
3983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3984*)
3985 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003987 while :
3988 do
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_GREP="$ac_path_GREP"
3999 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004000 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4003 done
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005esac
4006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004007
4008 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004009 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004010done
4011
4012done
Reid Spencera773bd52006-08-04 18:18:08 +00004013IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004014
4015
4016fi
4017
4018GREP="$ac_cv_path_GREP"
4019if test -z "$GREP"; then
4020 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022 { (exit 1); exit 1; }; }
4023fi
4024
Reid Spencera773bd52006-08-04 18:18:08 +00004025else
4026 ac_cv_path_GREP=$GREP
4027fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004029
Reid Spencera773bd52006-08-04 18:18:08 +00004030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004031{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004033 GREP="$ac_cv_path_GREP"
4034
4035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004036{ echo "$as_me:$LINENO: checking for egrep" >&5
4037echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038if test "${ac_cv_path_EGREP+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004040else
4041 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042 then ac_cv_path_EGREP="$GREP -E"
4043 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004044 # Extract the first word of "egrep" to use in msg output
4045if test -z "$EGREP"; then
4046set dummy egrep; ac_prog_name=$2
4047if test "${ac_cv_path_EGREP+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
Reid Spencera773bd52006-08-04 18:18:08 +00004050 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004051# Loop through the user's path and test for each of PROGNAME-LIST
4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004053for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004057 for ac_prog in egrep; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4061 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004062 # Check for GNU $ac_path_EGREP
4063case `"$ac_path_EGREP" --version 2>&1` in
4064*GNU*)
4065 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4066*)
4067 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004068 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004069 while :
4070 do
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004074 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004075 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004077 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004078 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_EGREP="$ac_path_EGREP"
4081 ac_path_EGREP_max=$ac_count
4082 fi
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4085 done
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087esac
4088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089
4090 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004091 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004092done
4093
4094done
Reid Spencera773bd52006-08-04 18:18:08 +00004095IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004096
4097
4098fi
4099
4100EGREP="$ac_cv_path_EGREP"
4101if test -z "$EGREP"; then
4102 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104 { (exit 1); exit 1; }; }
4105fi
4106
Reid Spencera773bd52006-08-04 18:18:08 +00004107else
4108 ac_cv_path_EGREP=$EGREP
4109fi
4110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111
Reid Spencera773bd52006-08-04 18:18:08 +00004112 fi
4113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004116 EGREP="$ac_cv_path_EGREP"
4117
4118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004119{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4120echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4121if test "${ac_cv_header_stdc+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004124 cat >conftest.$ac_ext <<_ACEOF
4125/* confdefs.h. */
4126_ACEOF
4127cat confdefs.h >>conftest.$ac_ext
4128cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004130#include <stdlib.h>
4131#include <stdarg.h>
4132#include <string.h>
4133#include <float.h>
4134
John Criswell0c38eaf2003-09-10 15:17:25 +00004135int
4136main ()
4137{
4138
4139 ;
4140 return 0;
4141}
John Criswell7a73b802003-06-30 21:59:07 +00004142_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004143rm -f conftest.$ac_objext
4144if { (ac_try="$ac_compile"
4145case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161esac
4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_try") 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004177 ac_cv_header_stdc=yes
4178else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004179 echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004183fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004184
Reid Spencera773bd52006-08-04 18:18:08 +00004185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004186
4187if test $ac_cv_header_stdc = yes; then
4188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004189 cat >conftest.$ac_ext <<_ACEOF
4190/* confdefs.h. */
4191_ACEOF
4192cat confdefs.h >>conftest.$ac_ext
4193cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004194/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004195#include <string.h>
4196
4197_ACEOF
4198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004199 $EGREP "memchr" >/dev/null 2>&1; then
4200 :
John Criswell7a73b802003-06-30 21:59:07 +00004201else
4202 ac_cv_header_stdc=no
4203fi
4204rm -f conftest*
4205
4206fi
4207
4208if test $ac_cv_header_stdc = yes; then
4209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004210 cat >conftest.$ac_ext <<_ACEOF
4211/* confdefs.h. */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004215/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004216#include <stdlib.h>
4217
4218_ACEOF
4219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004220 $EGREP "free" >/dev/null 2>&1; then
4221 :
John Criswell7a73b802003-06-30 21:59:07 +00004222else
4223 ac_cv_header_stdc=no
4224fi
4225rm -f conftest*
4226
4227fi
4228
4229if test $ac_cv_header_stdc = yes; then
4230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004231 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004232 :
4233else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004234 cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004239/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004240#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004241#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004242#if ((' ' & 0x0FF) == 0x020)
4243# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4244# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4245#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004246# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004247 (('a' <= (c) && (c) <= 'i') \
4248 || ('j' <= (c) && (c) <= 'r') \
4249 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004250# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4251#endif
4252
4253#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4254int
4255main ()
4256{
4257 int i;
4258 for (i = 0; i < 256; i++)
4259 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004260 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004261 return 2;
4262 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004263}
4264_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004265rm -f conftest$ac_exeext
4266if { (ac_try="$ac_link"
4267case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270esac
4271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_link") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279esac
4280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 :
John Criswell7a73b802003-06-30 21:59:07 +00004286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287 echo "$as_me: program exited with status $ac_status" >&5
4288echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291( exit $ac_status )
4292ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004294rm -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 +00004295fi
4296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004297
John Criswell7a73b802003-06-30 21:59:07 +00004298fi
4299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004300{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4301echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004302if test $ac_cv_header_stdc = yes; then
4303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004304cat >>confdefs.h <<\_ACEOF
4305#define STDC_HEADERS 1
4306_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004307
4308fi
4309
Reid Spencera773bd52006-08-04 18:18:08 +00004310# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004311
4312
4313
4314
4315
4316
4317
4318
4319
Reid Spencera773bd52006-08-04 18:18:08 +00004320for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4321 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004322do
4323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329 cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h. */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h. */
4335$ac_includes_default
4336
4337#include <$ac_header>
4338_ACEOF
4339rm -f conftest.$ac_objext
4340if { (ac_try="$ac_compile"
4341case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344esac
4345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367esac
4368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 eval "$as_ac_Header=yes"
4374else
4375 echo "$as_me: failed program was:" >&5
4376sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 eval "$as_ac_Header=no"
4379fi
4380
4381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382fi
4383ac_res=`eval echo '${'$as_ac_Header'}'`
4384 { echo "$as_me:$LINENO: result: $ac_res" >&5
4385echo "${ECHO_T}$ac_res" >&6; }
4386if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004387 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004389_ACEOF
4390
4391fi
4392
4393done
4394
4395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004396{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4397echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4398if test "${ac_cv_c_bigendian+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004400else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401 # See if sys/param.h defines the BYTE_ORDER macro.
4402cat >conftest.$ac_ext <<_ACEOF
4403/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004404_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405cat confdefs.h >>conftest.$ac_ext
4406cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004407/* end confdefs.h. */
4408#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004410
4411int
4412main ()
4413{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004414#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4415 bogus endian macros
4416#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004417
4418 ;
4419 return 0;
4420}
4421_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004422rm -f conftest.$ac_objext
4423if { (ac_try="$ac_compile"
4424case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427esac
4428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_compile") 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4437 { (case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440esac
4441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_try") 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
4451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_try") 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004456 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004457cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h. */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004462/* end confdefs.h. */
4463#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004465
4466int
4467main ()
4468{
4469#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004470 not big endian
4471#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004472
4473 ;
4474 return 0;
4475}
4476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004477rm -f conftest.$ac_objext
4478if { (ac_try="$ac_compile"
4479case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_compile") 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4492 { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495esac
4496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505esac
4506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_try") 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004511 ac_cv_c_bigendian=yes
4512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004513 echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004516 ac_cv_c_bigendian=no
4517fi
4518
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520else
4521 echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 # It does not; compile a test program.
4525if test "$cross_compiling" = yes; then
4526 # try to guess the endianness by grepping values into an object file
4527 ac_cv_c_bigendian=unknown
4528 cat >conftest.$ac_ext <<_ACEOF
4529/* confdefs.h. */
4530_ACEOF
4531cat confdefs.h >>conftest.$ac_ext
4532cat >>conftest.$ac_ext <<_ACEOF
4533/* end confdefs.h. */
4534short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4535short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4536void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4537short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4538short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4539void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004540int
4541main ()
4542{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004543 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004544 ;
4545 return 0;
4546}
4547_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548rm -f conftest.$ac_objext
4549if { (ac_try="$ac_compile"
4550case "(($ac_try" in
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4553esac
4554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555 (eval "$ac_compile") 2>conftest.er1
4556 ac_status=$?
4557 grep -v '^ *+' conftest.er1 >conftest.err
4558 rm -f conftest.er1
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
4562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4563 { (case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566esac
4567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_try") 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576esac
4577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_try") 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004583 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584fi
4585if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4586 if test "$ac_cv_c_bigendian" = unknown; then
4587 ac_cv_c_bigendian=no
4588 else
4589 # finding both strings is unlikely to happen, but who knows?
4590 ac_cv_c_bigendian=unknown
4591 fi
4592fi
Reid Spencera773bd52006-08-04 18:18:08 +00004593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594 echo "$as_me: failed program was:" >&5
4595sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004597
Torok Edwin871384f2010-01-26 08:50:50 +00004598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599
Reid Spencera773bd52006-08-04 18:18:08 +00004600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004602 cat >conftest.$ac_ext <<_ACEOF
4603/* confdefs.h. */
4604_ACEOF
4605cat confdefs.h >>conftest.$ac_ext
4606cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004607/* end confdefs.h. */
4608$ac_includes_default
4609int
4610main ()
4611{
4612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004613 /* Are we little or big endian? From Harbison&Steele. */
4614 union
4615 {
4616 long int l;
4617 char c[sizeof (long int)];
4618 } u;
4619 u.l = 1;
4620 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004621
4622 ;
4623 return 0;
4624}
4625_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004626rm -f conftest$ac_exeext
4627if { (ac_try="$ac_link"
4628case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631esac
4632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633 (eval "$ac_link") 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4637 { (case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640esac
4641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_try") 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004646 ac_cv_c_bigendian=no
4647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648 echo "$as_me: program exited with status $ac_status" >&5
4649echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652( exit $ac_status )
4653ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655rm -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 +00004656fi
4657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004658
Reid Spencera773bd52006-08-04 18:18:08 +00004659fi
4660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662fi
4663{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4664echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4665case $ac_cv_c_bigendian in
4666 yes)
4667 ENDIAN=big
4668 ;;
4669 no)
4670 ENDIAN=little
4671 ;;
4672 *)
4673 { { echo "$as_me:$LINENO: error: unknown endianness
4674presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4675echo "$as_me: error: unknown endianness
4676presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4677 { (exit 1); exit 1; }; } ;;
4678esac
Reid Spencera773bd52006-08-04 18:18:08 +00004679
4680
4681if test "$cross_compiling" = yes; then
4682 LLVM_CROSS_COMPILING=1
4683
4684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004685{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4686echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4687if test "${ac_cv_build_exeext+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004689else
4690 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4691 ac_cv_build_exeext=.exe
4692else
4693 ac_build_prefix=${build_alias}-
4694
4695 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4696set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004701else
4702 if test -n "$BUILD_CC"; then
4703 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4704else
4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 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 +00004712 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004714 break 2
4715 fi
4716done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717done
Reid Spencera773bd52006-08-04 18:18:08 +00004718IFS=$as_save_IFS
4719
4720fi
4721fi
4722BUILD_CC=$ac_cv_prog_BUILD_CC
4723if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4725echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004727 { echo "$as_me:$LINENO: result: no" >&5
4728echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004729fi
4730
4731
4732 if test -z "$BUILD_CC"; then
4733 # Extract the first word of "gcc", so it can be a program name with args.
4734set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4737if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004739else
4740 if test -n "$BUILD_CC"; then
4741 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 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 +00004750 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004752 break 2
4753 fi
4754done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004755done
Reid Spencera773bd52006-08-04 18:18:08 +00004756IFS=$as_save_IFS
4757
4758fi
4759fi
4760BUILD_CC=$ac_cv_prog_BUILD_CC
4761if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004762 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4763echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004764else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765 { echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004767fi
4768
4769
4770 if test -z "$BUILD_CC"; then
4771 # Extract the first word of "cc", so it can be a program name with args.
4772set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004777else
4778 if test -n "$BUILD_CC"; then
4779 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4780else
4781 ac_prog_rejected=no
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 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 +00004789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4790 ac_prog_rejected=yes
4791 continue
4792 fi
4793 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004795 break 2
4796 fi
4797done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798done
Reid Spencera773bd52006-08-04 18:18:08 +00004799IFS=$as_save_IFS
4800
4801if test $ac_prog_rejected = yes; then
4802 # We found a bogon in the path, so make sure we never use it.
4803 set dummy $ac_cv_prog_BUILD_CC
4804 shift
4805 if test $# != 0; then
4806 # We chose a different compiler from the bogus one.
4807 # However, it has the same basename, so the bogon will be chosen
4808 # first if we set BUILD_CC to just the basename; use the full file name.
4809 shift
4810 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4811 fi
4812fi
4813fi
4814fi
4815BUILD_CC=$ac_cv_prog_BUILD_CC
4816if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4818echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004820 { echo "$as_me:$LINENO: result: no" >&5
4821echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004822fi
4823
4824
4825 fi
4826 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4828echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4829 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004830 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4831 rm -f conftest*
4832 echo 'int main () { return 0; }' > conftest.$ac_ext
4833 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004834 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004835 (eval $ac_build_link) 2>&5
4836 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004839 for file in conftest.*; do
4840 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004841 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004842 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4843 esac
4844 done
4845 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004846 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4847echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4848 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004849 fi
4850 rm -f conftest*
4851 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4852fi
4853fi
4854
4855BUILD_EXEEXT=""
4856test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004857{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4858echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004859ac_build_exeext=$BUILD_EXEEXT
4860
Jim Grosbach673612e2008-10-02 22:56:44 +00004861 ac_build_prefix=${build_alias}-
4862 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4863set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004868else
4869 if test -n "$BUILD_CXX"; then
4870 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 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 +00004879 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004881 break 2
4882 fi
4883done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884done
Jim Grosbach673612e2008-10-02 22:56:44 +00004885IFS=$as_save_IFS
4886
4887fi
4888fi
4889BUILD_CXX=$ac_cv_prog_BUILD_CXX
4890if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004891 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4892echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894 { echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004896fi
4897
4898
4899 if test -z "$BUILD_CXX"; then
4900 # Extract the first word of "g++", so it can be a program name with args.
4901set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004906else
4907 if test -n "$BUILD_CXX"; then
4908 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 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 +00004917 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004919 break 2
4920 fi
4921done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922done
Jim Grosbach673612e2008-10-02 22:56:44 +00004923IFS=$as_save_IFS
4924
4925fi
4926fi
4927BUILD_CXX=$ac_cv_prog_BUILD_CXX
4928if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004929 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4930echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004931else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004932 { echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004934fi
4935
4936
4937 if test -z "$BUILD_CXX"; then
4938 # Extract the first word of "c++", so it can be a program name with args.
4939set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004944else
4945 if test -n "$BUILD_CXX"; then
4946 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4947else
4948 ac_prog_rejected=no
4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 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 +00004956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4957 ac_prog_rejected=yes
4958 continue
4959 fi
4960 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004962 break 2
4963 fi
4964done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004965done
Jim Grosbach673612e2008-10-02 22:56:44 +00004966IFS=$as_save_IFS
4967
4968if test $ac_prog_rejected = yes; then
4969 # We found a bogon in the path, so make sure we never use it.
4970 set dummy $ac_cv_prog_BUILD_CXX
4971 shift
4972 if test $# != 0; then
4973 # We chose a different compiler from the bogus one.
4974 # However, it has the same basename, so the bogon will be chosen
4975 # first if we set BUILD_CXX to just the basename; use the full file name.
4976 shift
4977 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4978 fi
4979fi
4980fi
4981fi
4982BUILD_CXX=$ac_cv_prog_BUILD_CXX
4983if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004984 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4985echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004986else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004987 { echo "$as_me:$LINENO: result: no" >&5
4988echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004989fi
4990
4991
4992 fi
4993 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004994else
4995 LLVM_CROSS_COMPILING=0
4996
4997fi
4998
Dan Gohman56fb5f92010-08-04 16:25:01 +00004999if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005000 cvsbuild="yes"
5001 optimize="no"
5002 CVSBUILD=CVSBUILD=1
5003
5004else
5005 cvsbuild="no"
5006 optimize="yes"
5007fi
5008
5009
Eric Christopherbee515f2011-11-11 22:51:42 +00005010# Check whether --enable-libcpp was given.
5011if test "${enable_libcpp+set}" = set; then
5012 enableval=$enable_libcpp;
5013else
5014 enableval=default
5015fi
5016
5017case "$enableval" in
5018 yes) ENABLE_LIBCPP=1
5019 ;;
5020 no) ENABLE_LIBCPP=0
5021 ;;
5022 default) ENABLE_LIBCPP=0
5023;;
5024 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5025echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5026 { (exit 1); exit 1; }; } ;;
5027esac
5028
Eric Christopher82120022012-08-03 19:47:14 +00005029# Check whether --enable-cxx11 was given.
5030if test "${enable_cxx11+set}" = set; then
5031 enableval=$enable_cxx11;
5032else
5033 enableval=default
5034fi
5035
5036case "$enableval" in
5037 yes) ENABLE_CXX11=1
5038 ;;
5039 no) ENABLE_CXX11=0
5040 ;;
5041 default) ENABLE_CXX11=0
5042;;
5043 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5044echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5045 { (exit 1); exit 1; }; } ;;
5046esac
5047
Reid Spencera773bd52006-08-04 18:18:08 +00005048# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005049if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005050 enableval=$enable_optimized;
5051else
5052 enableval=$optimize
5053fi
5054
5055if test ${enableval} = "no" ; then
5056 ENABLE_OPTIMIZED=
5057
5058else
5059 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5060
5061fi
5062
David Greene2a5a12c2009-04-17 14:50:39 +00005063# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005064if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005065 enableval=$enable_profiling;
5066else
5067 enableval="no"
5068fi
5069
5070if test ${enableval} = "no" ; then
5071 ENABLE_PROFILING=
5072
5073else
5074 ENABLE_PROFILING=ENABLE_PROFILING=1
5075
5076fi
5077
Reid Spencera773bd52006-08-04 18:18:08 +00005078# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005079if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005080 enableval=$enable_assertions;
5081else
5082 enableval="yes"
5083fi
5084
5085if test ${enableval} = "yes" ; then
5086 DISABLE_ASSERTIONS=
5087
5088else
5089 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5090
5091fi
5092
Eric Christopher09a88732012-08-03 19:58:20 +00005093# Check whether --enable-werror was given.
5094if test "${enable_werror+set}" = set; then
5095 enableval=$enable_werror;
5096else
5097 enableval="no"
5098fi
5099
5100case "$enableval" in
5101 yes) ENABLE_WERROR=1
5102 ;;
5103 no) ENABLE_WERROR=0
5104 ;;
5105 default) ENABLE_WERROR=0
5106;;
5107 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5108echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5109 { (exit 1); exit 1; }; } ;;
5110esac
5111
David Greenea696d242007-06-28 19:36:08 +00005112# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005113if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005114 enableval=$enable_expensive_checks;
5115else
5116 enableval="no"
5117fi
5118
5119if test ${enableval} = "yes" ; then
5120 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5121
5122 EXPENSIVE_CHECKS=yes
5123
5124else
5125 ENABLE_EXPENSIVE_CHECKS=
5126
5127 EXPENSIVE_CHECKS=no
5128
5129fi
5130
Reid Spencer8b2e1412006-11-17 03:32:33 +00005131# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005132if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005133 enableval=$enable_debug_runtime;
5134else
5135 enableval=no
5136fi
5137
5138if test ${enableval} = "no" ; then
5139 DEBUG_RUNTIME=
5140
5141else
5142 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5143
5144fi
5145
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005146# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005147if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005148 enableval=$enable_debug_symbols;
5149else
5150 enableval=no
5151fi
5152
5153if test ${enableval} = "no" ; then
5154 DEBUG_SYMBOLS=
5155
5156else
5157 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5158
5159fi
5160
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005161# Check whether --enable-keep-symbols was given.
5162if test "${enable_keep_symbols+set}" = set; then
5163 enableval=$enable_keep_symbols;
5164else
5165 enableval=no
5166fi
5167
5168if test ${enableval} = "no" ; then
5169 KEEP_SYMBOLS=
5170
5171else
5172 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5173
5174fi
5175
Reid Spencera773bd52006-08-04 18:18:08 +00005176# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005177if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005178 enableval=$enable_jit;
5179else
5180 enableval=default
5181fi
5182
5183if test ${enableval} = "no"
5184then
5185 JIT=
5186
5187else
5188 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005189 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005190 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005191 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005192 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005193 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005194 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005195 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005196 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005197 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005198 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005199 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005200 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005201 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005202 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005203 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005204 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005205 Hexagon) TARGET_HAS_JIT=0
5206 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005207 MBlaze) TARGET_HAS_JIT=0
5208 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005209 NVPTX) TARGET_HAS_JIT=0
5210 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005211 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005212 ;;
5213 esac
5214fi
5215
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005216# Check whether --enable-docs was given.
5217if test "${enable_docs+set}" = set; then
5218 enableval=$enable_docs;
5219else
5220 enableval=default
5221fi
5222
5223case "$enableval" in
5224 yes) ENABLE_DOCS=1
5225 ;;
5226 no) ENABLE_DOCS=0
5227 ;;
5228 default) ENABLE_DOCS=1
5229 ;;
5230 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5231echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5232 { (exit 1); exit 1; }; } ;;
5233esac
5234
Reid Spencera773bd52006-08-04 18:18:08 +00005235# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005236if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005237 enableval=$enable_doxygen;
5238else
5239 enableval=default
5240fi
5241
5242case "$enableval" in
5243 yes) ENABLE_DOXYGEN=1
5244 ;;
5245 no) ENABLE_DOXYGEN=0
5246 ;;
5247 default) ENABLE_DOXYGEN=0
5248 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005249 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5250echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5251 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005252esac
5253
5254# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005255if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005256 enableval=$enable_threads;
5257else
Reid Spencer65c5d752006-11-05 17:08:18 +00005258 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005259fi
5260
5261case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005262 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005263 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005264 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005265 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005266 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005267 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005268 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5269echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5270 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005271esac
5272
Owen Andersona8603702009-05-19 22:18:56 +00005273cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005274#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005275_ACEOF
5276
5277
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005278# Check whether --enable-pthreads was given.
5279if test "${enable_pthreads+set}" = set; then
5280 enableval=$enable_pthreads;
5281else
5282 enableval=default
5283fi
5284
5285case "$enableval" in
5286 yes) ENABLE_PTHREADS=1
5287 ;;
5288 no) ENABLE_PTHREADS=0
5289 ;;
5290 default) ENABLE_PTHREADS=1
5291 ;;
5292 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5293echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5294 { (exit 1); exit 1; }; } ;;
5295esac
5296
Reid Spencer89b0d992006-12-16 22:07:52 +00005297# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005298if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005299 enableval=$enable_pic;
5300else
5301 enableval=default
5302fi
5303
5304case "$enableval" in
5305 yes) ENABLE_PIC=1
5306 ;;
5307 no) ENABLE_PIC=0
5308 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005309 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005310 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005311 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5312echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5313 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005314esac
5315
5316cat >>confdefs.h <<_ACEOF
5317#define ENABLE_PIC $ENABLE_PIC
5318_ACEOF
5319
5320
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005321# Check whether --enable-shared was given.
5322if test "${enable_shared+set}" = set; then
5323 enableval=$enable_shared;
5324else
5325 enableval=default
5326fi
5327
5328case "$enableval" in
5329 yes) ENABLE_SHARED=1
5330 ;;
5331 no) ENABLE_SHARED=0
5332 ;;
5333 default) ENABLE_SHARED=0
5334 ;;
5335 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5336echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5337 { (exit 1); exit 1; }; } ;;
5338esac
5339
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005340# Check whether --enable-embed-stdcxx was given.
5341if test "${enable_embed_stdcxx+set}" = set; then
5342 enableval=$enable_embed_stdcxx;
5343else
5344 enableval=default
5345fi
5346
5347case "$enableval" in
5348 yes) ENABLE_EMBED_STDCXX=1
5349 ;;
5350 no) ENABLE_EMBED_STDCXX=0
5351 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005352 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005353 ;;
5354 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5355echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5356 { (exit 1); exit 1; }; } ;;
5357esac
5358
Daniel Dunbardd464df2010-05-10 20:11:56 +00005359# Check whether --enable-timestamps was given.
5360if test "${enable_timestamps+set}" = set; then
5361 enableval=$enable_timestamps;
5362else
5363 enableval=default
5364fi
5365
5366case "$enableval" in
5367 yes) ENABLE_TIMESTAMPS=1
5368 ;;
5369 no) ENABLE_TIMESTAMPS=0
5370 ;;
5371 default) ENABLE_TIMESTAMPS=1
5372 ;;
5373 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5374echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5375 { (exit 1); exit 1; }; } ;;
5376esac
5377
5378cat >>confdefs.h <<_ACEOF
5379#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5380_ACEOF
5381
5382
Eric Christopherc69bdad2012-09-21 23:03:29 +00005383
5384# Check whether --enable-backtraces was given.
5385if test "${enable_backtraces+set}" = set; then
5386 enableval=$enable_backtraces;
5387else
5388 enableval=default
5389fi
5390
5391case "$enableval" in
5392 yes) ENABLE_TIMESTAMPS=1
5393 ;;
5394 no) ENABLE_TIMESTAMPS=0
5395 ;;
5396 default) ENABLE_TIMESTAMPS=1
5397 ;;
5398 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5399echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5400 { (exit 1); exit 1; }; } ;;
5401esac
5402
5403cat >>confdefs.h <<_ACEOF
5404#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5405_ACEOF
5406
5407
Reid Spencera773bd52006-08-04 18:18:08 +00005408TARGETS_TO_BUILD=""
5409# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005410if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005411 enableval=$enable_targets;
5412else
5413 enableval=all
5414fi
5415
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005416if test "$enableval" = host-only ; then
5417 enableval=host
5418fi
Reid Spencera773bd52006-08-04 18:18:08 +00005419case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005420 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005421 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5422 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005423 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5424 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5425 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5426 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005427 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5428 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005429 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005430 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005431 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5432 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005433 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005434 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005435 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005436 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005437 host) case "$llvm_cv_target_arch" in
5438 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5439 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5440 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5441 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005442 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5443 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005444 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005445 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005446 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5447 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005448 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005449 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005450 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5451echo "$as_me: error: Can not set target to build" >&2;}
5452 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005453 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005454 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5455echo "$as_me: error: Unrecognized target $a_target" >&2;}
5456 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005457 esac
5458 done
5459 ;;
5460esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005461
5462# Check whether --enable-experimental-targets was given.
5463if test "${enable_experimental_targets+set}" = set; then
5464 enableval=$enable_experimental_targets;
5465else
5466 enableval=disable
5467fi
5468
5469
5470if test ${enableval} != "disable"
5471then
5472 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5473fi
5474
Reid Spencera773bd52006-08-04 18:18:08 +00005475TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5476
5477
Douglas Gregor0711c302009-06-17 00:43:20 +00005478for a_target in $TARGETS_TO_BUILD; do
5479 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5480
5481cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005482#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5483_ACEOF
5484
5485 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5486 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005487 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005488 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005489 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5490 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5491 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005492 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5493 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5494 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005495
5496cat >>confdefs.h <<_ACEOF
5497#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005498_ACEOF
5499
5500
5501cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005502#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5503_ACEOF
5504
5505
5506cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005507#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005508_ACEOF
5509
5510
5511cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005512#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005513_ACEOF
5514
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005515 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005516
5517cat >>confdefs.h <<_ACEOF
5518#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5519_ACEOF
5520
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005521 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005522 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5523
5524cat >>confdefs.h <<_ACEOF
5525#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5526_ACEOF
5527
5528 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005529 fi
5530done
5531
Douglas Gregor1555a232009-06-16 20:12:29 +00005532LLVM_ENUM_TARGETS=""
5533LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005534LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005535LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005536for target_to_build in $TARGETS_TO_BUILD; do
5537 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005538 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005539 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5540 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005541 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5542 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5543 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005544 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5545 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5546 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005547done
5548
5549
5550
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005551
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005552
Reid Spencera773bd52006-08-04 18:18:08 +00005553
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005554# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005555if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005556 withval=$with_optimize_option;
5557else
5558 withval=default
5559fi
5560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005561{ echo "$as_me:$LINENO: checking optimization flags" >&5
5562echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005563case "$withval" in
5564 default)
5565 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005566 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005567 MingW) optimize_option=-O2 ;;
5568 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005569 esac ;;
5570 *) optimize_option="$withval" ;;
5571esac
5572OPTIMIZE_OPTION=$optimize_option
5573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005574{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5575echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005576
5577
Reid Spencera773bd52006-08-04 18:18:08 +00005578# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005579if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005580 withval=$with_extra_options;
5581else
5582 withval=default
5583fi
5584
5585case "$withval" in
5586 default) EXTRA_OPTIONS= ;;
5587 *) EXTRA_OPTIONS=$withval ;;
5588esac
5589EXTRA_OPTIONS=$EXTRA_OPTIONS
5590
5591
Daniel Dunbared344d22011-06-16 22:30:41 +00005592
5593# Check whether --with-extra-ld-options was given.
5594if test "${with_extra_ld_options+set}" = set; then
5595 withval=$with_extra_ld_options;
5596else
5597 withval=default
5598fi
5599
5600case "$withval" in
5601 default) EXTRA_LD_OPTIONS= ;;
5602 *) EXTRA_LD_OPTIONS=$withval ;;
5603esac
5604EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5605
5606
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005607# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005608if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005609 enableval=$enable_bindings;
5610else
5611 enableval=default
5612fi
5613
5614BINDINGS_TO_BUILD=""
5615case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005616 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005617 all ) BINDINGS_TO_BUILD="ocaml" ;;
5618 none | no) BINDINGS_TO_BUILD="" ;;
5619 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5620 case "$a_binding" in
5621 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005622 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5623echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5624 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005625 esac
5626 done
5627 ;;
5628esac
5629
Reid Spencera773bd52006-08-04 18:18:08 +00005630
Gordon Henriksenf0915682007-10-02 16:42:22 +00005631# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005632if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005633 withval=$with_ocaml_libdir;
5634else
5635 withval=auto
5636fi
5637
5638case "$withval" in
5639 auto) with_ocaml_libdir="$withval" ;;
5640 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005641 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5642echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5643 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005644esac
5645
5646
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005647# Check whether --with-clang-srcdir was given.
5648if test "${with_clang_srcdir+set}" = set; then
5649 withval=$with_clang_srcdir;
5650else
5651 withval="-"
5652fi
5653
5654case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005655 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005656 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5657 *) clang_src_root="$ac_pwd/$withval" ;;
5658esac
5659CLANG_SRC_ROOT=$clang_src_root
5660
5661
5662
Chandler Carruth6b241162010-10-19 08:21:25 +00005663# Check whether --with-clang-resource-dir was given.
5664if test "${with_clang_resource_dir+set}" = set; then
5665 withval=$with_clang_resource_dir;
5666else
5667 withval=""
5668fi
5669
5670
5671cat >>confdefs.h <<_ACEOF
5672#define CLANG_RESOURCE_DIR "$withval"
5673_ACEOF
5674
5675
5676
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005677# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005678if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005679 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005680else
5681 withval=""
5682fi
5683
5684
5685cat >>confdefs.h <<_ACEOF
5686#define C_INCLUDE_DIRS "$withval"
5687_ACEOF
5688
5689
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005690# Clang normally uses the system c++ headers and libraries. With this option,
5691# clang will use the ones provided by a gcc installation instead. This option should
5692# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005693
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005694# Check whether --with-gcc-toolchain was given.
5695if test "${with_gcc_toolchain+set}" = set; then
5696 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005697else
5698 withval=""
5699fi
5700
5701
5702cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005703#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005704_ACEOF
5705
5706
5707
Sebastian Pope4f1b372012-04-30 20:06:58 +00005708# Check whether --with-default-sysroot was given.
5709if test "${with_default_sysroot+set}" = set; then
5710 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005711else
5712 withval=""
5713fi
5714
5715
5716cat >>confdefs.h <<_ACEOF
5717#define DEFAULT_SYSROOT "$withval"
5718_ACEOF
5719
5720
5721
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005722# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005723if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005724 withval=$with_binutils_include;
5725else
5726 withval=default
5727fi
5728
5729case "$withval" in
5730 default) WITH_BINUTILS_INCDIR=default ;;
5731 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005732 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5733echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5734 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005735esac
5736if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5737 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5738
5739 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5740 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5742echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5743 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005744 fi
5745fi
5746
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005747
5748# Check whether --with-bug-report-url was given.
5749if test "${with_bug_report_url+set}" = set; then
5750 withval=$with_bug_report_url;
5751else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005752 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005753fi
5754
5755
5756cat >>confdefs.h <<_ACEOF
5757#define BUG_REPORT_URL "$withval"
5758_ACEOF
5759
5760
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005761# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005762if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005763 enableval=$enable_libffi; case "$enableval" in
5764 yes) llvm_cv_enable_libffi="yes" ;;
5765 no) llvm_cv_enable_libffi="no" ;;
5766 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5768 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005769 esac
5770else
5771 llvm_cv_enable_libffi=no
5772fi
5773
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005774
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005775
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005776# Check whether --with-internal-prefix was given.
5777if test "${with_internal_prefix+set}" = set; then
5778 withval=$with_internal_prefix;
5779else
5780 withval=""
5781fi
5782
5783INTERNAL_PREFIX=$withval
5784
5785
5786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5788echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5789if test "${lt_cv_path_NM+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005791else
5792 if test -n "$NM"; then
5793 # Let the user override the test.
5794 lt_cv_path_NM="$NM"
5795else
5796 lt_nm_to_check="${ac_tool_prefix}nm"
5797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5798 lt_nm_to_check="$lt_nm_to_check nm"
5799 fi
5800 for lt_tmp_nm in $lt_nm_to_check; do
5801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5803 IFS="$lt_save_ifs"
5804 test -z "$ac_dir" && ac_dir=.
5805 tmp_nm="$ac_dir/$lt_tmp_nm"
5806 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5807 # Check to see if the nm accepts a BSD-compat flag.
5808 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5809 # nm: unknown option "B" ignored
5810 # Tru64's nm complains that /dev/null is an invalid object file
5811 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5812 */dev/null* | *'Invalid file or object type'*)
5813 lt_cv_path_NM="$tmp_nm -B"
5814 break
5815 ;;
5816 *)
5817 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5818 */dev/null*)
5819 lt_cv_path_NM="$tmp_nm -p"
5820 break
5821 ;;
5822 *)
5823 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5824 continue # so that we can try to find one that supports BSD flags
5825 ;;
5826 esac
5827 ;;
5828 esac
5829 fi
5830 done
5831 IFS="$lt_save_ifs"
5832 done
5833 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5834fi
5835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005836{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5837echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005838NM="$lt_cv_path_NM"
5839
5840
5841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005842{ echo "$as_me:$LINENO: checking for GNU make" >&5
5843echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5844if test "${llvm_cv_gnu_make_command+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005846else
5847 llvm_cv_gnu_make_command=''
5848 for a in "$MAKE" make gmake gnumake ; do
5849 if test -z "$a" ; then continue ; fi ;
5850 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5851 then
5852 llvm_cv_gnu_make_command=$a ;
5853 break;
5854 fi
5855 done
5856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005857{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5858echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005859 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5860 ifGNUmake='' ;
5861 else
5862 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5864echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005865 fi
5866
5867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005868{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5869echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005870LN_S=$as_ln_s
5871if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872 { echo "$as_me:$LINENO: result: yes" >&5
5873echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005875 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5876echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005877fi
5878
5879# Extract the first word of "cmp", so it can be a program name with args.
5880set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883if test "${ac_cv_path_CMP+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005885else
5886 case $CMP in
5887 [\\/]* | ?:[\\/]*)
5888 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5889 ;;
5890 *)
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 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 +00005898 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005900 break 2
5901 fi
5902done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005903done
Reid Spencera773bd52006-08-04 18:18:08 +00005904IFS=$as_save_IFS
5905
5906 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5907 ;;
5908esac
5909fi
5910CMP=$ac_cv_path_CMP
5911if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005912 { echo "$as_me:$LINENO: result: $CMP" >&5
5913echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915 { echo "$as_me:$LINENO: result: no" >&5
5916echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005917fi
5918
5919
5920# Extract the first word of "cp", so it can be a program name with args.
5921set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924if test "${ac_cv_path_CP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005926else
5927 case $CP in
5928 [\\/]* | ?:[\\/]*)
5929 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5930 ;;
5931 *)
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 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 +00005939 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005941 break 2
5942 fi
5943done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944done
Reid Spencera773bd52006-08-04 18:18:08 +00005945IFS=$as_save_IFS
5946
5947 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5948 ;;
5949esac
5950fi
5951CP=$ac_cv_path_CP
5952if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953 { echo "$as_me:$LINENO: result: $CP" >&5
5954echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005956 { echo "$as_me:$LINENO: result: no" >&5
5957echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005958fi
5959
5960
5961# Extract the first word of "date", so it can be a program name with args.
5962set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965if test "${ac_cv_path_DATE+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005967else
5968 case $DATE in
5969 [\\/]* | ?:[\\/]*)
5970 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5971 ;;
5972 *)
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 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 +00005980 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005982 break 2
5983 fi
5984done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985done
Reid Spencera773bd52006-08-04 18:18:08 +00005986IFS=$as_save_IFS
5987
5988 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5989 ;;
5990esac
5991fi
5992DATE=$ac_cv_path_DATE
5993if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005994 { echo "$as_me:$LINENO: result: $DATE" >&5
5995echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005997 { echo "$as_me:$LINENO: result: no" >&5
5998echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005999fi
6000
6001
6002# Extract the first word of "find", so it can be a program name with args.
6003set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006if test "${ac_cv_path_FIND+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006008else
6009 case $FIND in
6010 [\\/]* | ?:[\\/]*)
6011 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6012 ;;
6013 *)
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 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 +00006021 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006023 break 2
6024 fi
6025done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026done
Reid Spencera773bd52006-08-04 18:18:08 +00006027IFS=$as_save_IFS
6028
6029 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6030 ;;
6031esac
6032fi
6033FIND=$ac_cv_path_FIND
6034if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006035 { echo "$as_me:$LINENO: result: $FIND" >&5
6036echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006038 { echo "$as_me:$LINENO: result: no" >&5
6039echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006040fi
6041
6042
6043# Extract the first word of "grep", so it can be a program name with args.
6044set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047if test "${ac_cv_path_GREP+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006049else
6050 case $GREP in
6051 [\\/]* | ?:[\\/]*)
6052 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6053 ;;
6054 *)
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 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 +00006062 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006064 break 2
6065 fi
6066done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067done
Reid Spencera773bd52006-08-04 18:18:08 +00006068IFS=$as_save_IFS
6069
6070 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6071 ;;
6072esac
6073fi
6074GREP=$ac_cv_path_GREP
6075if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006076 { echo "$as_me:$LINENO: result: $GREP" >&5
6077echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006078else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006079 { echo "$as_me:$LINENO: result: no" >&5
6080echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006081fi
6082
6083
6084# Extract the first word of "mkdir", so it can be a program name with args.
6085set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088if test "${ac_cv_path_MKDIR+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006090else
6091 case $MKDIR in
6092 [\\/]* | ?:[\\/]*)
6093 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6094 ;;
6095 *)
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 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 +00006103 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006105 break 2
6106 fi
6107done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006108done
Reid Spencera773bd52006-08-04 18:18:08 +00006109IFS=$as_save_IFS
6110
6111 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6112 ;;
6113esac
6114fi
6115MKDIR=$ac_cv_path_MKDIR
6116if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006117 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6118echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006119else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006120 { echo "$as_me:$LINENO: result: no" >&5
6121echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006122fi
6123
6124
6125# Extract the first word of "mv", so it can be a program name with args.
6126set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6129if test "${ac_cv_path_MV+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006131else
6132 case $MV in
6133 [\\/]* | ?:[\\/]*)
6134 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6135 ;;
6136 *)
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 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 +00006144 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006146 break 2
6147 fi
6148done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149done
Reid Spencera773bd52006-08-04 18:18:08 +00006150IFS=$as_save_IFS
6151
6152 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6153 ;;
6154esac
6155fi
6156MV=$ac_cv_path_MV
6157if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158 { echo "$as_me:$LINENO: result: $MV" >&5
6159echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161 { echo "$as_me:$LINENO: result: no" >&5
6162echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006163fi
6164
6165
6166if test -n "$ac_tool_prefix"; then
6167 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6168set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171if test "${ac_cv_prog_RANLIB+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006173else
6174 if test -n "$RANLIB"; then
6175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 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 +00006184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006186 break 2
6187 fi
6188done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189done
Reid Spencera773bd52006-08-04 18:18:08 +00006190IFS=$as_save_IFS
6191
6192fi
6193fi
6194RANLIB=$ac_cv_prog_RANLIB
6195if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6197echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006199 { echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006201fi
6202
6203
6204fi
6205if test -z "$ac_cv_prog_RANLIB"; then
6206 ac_ct_RANLIB=$RANLIB
6207 # Extract the first word of "ranlib", so it can be a program name with args.
6208set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006213else
6214 if test -n "$ac_ct_RANLIB"; then
6215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 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 +00006224 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006226 break 2
6227 fi
6228done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229done
Reid Spencera773bd52006-08-04 18:18:08 +00006230IFS=$as_save_IFS
6231
6232fi
6233fi
6234ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6235if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006236 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6237echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006239 { echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006241fi
6242
6243 if test "x$ac_ct_RANLIB" = x; then
6244 RANLIB=":"
6245 else
6246 case $cross_compiling:$ac_tool_warned in
6247yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6249whose name does not start with the host triplet. If you think this
6250configuration is useful to you, please write to autoconf@gnu.org." >&5
6251echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6252whose name does not start with the host triplet. If you think this
6253configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006254ac_tool_warned=yes ;;
6255esac
6256 RANLIB=$ac_ct_RANLIB
6257 fi
6258else
6259 RANLIB="$ac_cv_prog_RANLIB"
6260fi
6261
Torok Edwin871384f2010-01-26 08:50:50 +00006262if test -n "$ac_tool_prefix"; then
6263 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6264set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6267if test "${ac_cv_prog_AR+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006269else
6270 if test -n "$AR"; then
6271 ac_cv_prog_AR="$AR" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 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 +00006280 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006282 break 2
6283 fi
6284done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285done
Torok Edwin871384f2010-01-26 08:50:50 +00006286IFS=$as_save_IFS
6287
6288fi
6289fi
6290AR=$ac_cv_prog_AR
6291if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292 { echo "$as_me:$LINENO: result: $AR" >&5
6293echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295 { echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006297fi
6298
6299
6300fi
6301if test -z "$ac_cv_prog_AR"; then
6302 ac_ct_AR=$AR
6303 # Extract the first word of "ar", so it can be a program name with args.
6304set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006309else
6310 if test -n "$ac_ct_AR"; then
6311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6312else
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 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 +00006320 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006322 break 2
6323 fi
6324done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325done
Torok Edwin871384f2010-01-26 08:50:50 +00006326IFS=$as_save_IFS
6327
6328fi
6329fi
6330ac_ct_AR=$ac_cv_prog_ac_ct_AR
6331if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6333echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006335 { echo "$as_me:$LINENO: result: no" >&5
6336echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006337fi
6338
6339 if test "x$ac_ct_AR" = x; then
6340 AR="false"
6341 else
6342 case $cross_compiling:$ac_tool_warned in
6343yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6345whose name does not start with the host triplet. If you think this
6346configuration is useful to you, please write to autoconf@gnu.org." >&5
6347echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6348whose name does not start with the host triplet. If you think this
6349configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006350ac_tool_warned=yes ;;
6351esac
6352 AR=$ac_ct_AR
6353 fi
6354else
6355 AR="$ac_cv_prog_AR"
6356fi
6357
Reid Spencera773bd52006-08-04 18:18:08 +00006358# Extract the first word of "rm", so it can be a program name with args.
6359set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362if test "${ac_cv_path_RM+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006364else
6365 case $RM in
6366 [\\/]* | ?:[\\/]*)
6367 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6368 ;;
6369 *)
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 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 +00006377 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006379 break 2
6380 fi
6381done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382done
Reid Spencera773bd52006-08-04 18:18:08 +00006383IFS=$as_save_IFS
6384
6385 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6386 ;;
6387esac
6388fi
6389RM=$ac_cv_path_RM
6390if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006391 { echo "$as_me:$LINENO: result: $RM" >&5
6392echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006394 { echo "$as_me:$LINENO: result: no" >&5
6395echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006396fi
6397
6398
6399# Extract the first word of "sed", so it can be a program name with args.
6400set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6403if test "${ac_cv_path_SED+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006405else
6406 case $SED in
6407 [\\/]* | ?:[\\/]*)
6408 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6409 ;;
6410 *)
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412for as_dir in $PATH
6413do
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 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 +00006418 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006420 break 2
6421 fi
6422done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423done
Reid Spencera773bd52006-08-04 18:18:08 +00006424IFS=$as_save_IFS
6425
6426 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6427 ;;
6428esac
6429fi
6430SED=$ac_cv_path_SED
6431if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006432 { echo "$as_me:$LINENO: result: $SED" >&5
6433echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006435 { echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006437fi
6438
6439
6440# Extract the first word of "tar", so it can be a program name with args.
6441set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444if test "${ac_cv_path_TAR+set}" = set; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006446else
6447 case $TAR in
6448 [\\/]* | ?:[\\/]*)
6449 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6450 ;;
6451 *)
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 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 +00006459 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006461 break 2
6462 fi
6463done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464done
Reid Spencera773bd52006-08-04 18:18:08 +00006465IFS=$as_save_IFS
6466
6467 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6468 ;;
6469esac
6470fi
6471TAR=$ac_cv_path_TAR
6472if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006473 { echo "$as_me:$LINENO: result: $TAR" >&5
6474echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006476 { echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006478fi
6479
6480
6481# Extract the first word of "pwd", so it can be a program name with args.
6482set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6485if test "${ac_cv_path_BINPWD+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006487else
6488 case $BINPWD in
6489 [\\/]* | ?:[\\/]*)
6490 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6491 ;;
6492 *)
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 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 +00006500 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006502 break 2
6503 fi
6504done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006505done
Reid Spencera773bd52006-08-04 18:18:08 +00006506IFS=$as_save_IFS
6507
6508 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6509 ;;
6510esac
6511fi
6512BINPWD=$ac_cv_path_BINPWD
6513if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006514 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6515echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006516else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006517 { echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006519fi
6520
6521
6522
6523# Extract the first word of "Graphviz", so it can be a program name with args.
6524set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6527if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006529else
6530 case $GRAPHVIZ in
6531 [\\/]* | ?:[\\/]*)
6532 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6533 ;;
6534 *)
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 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 +00006542 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006544 break 2
6545 fi
6546done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006547done
Reid Spencera773bd52006-08-04 18:18:08 +00006548IFS=$as_save_IFS
6549
6550 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6551 ;;
6552esac
6553fi
6554GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6555if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006556 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6557echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559 { echo "$as_me:$LINENO: result: no" >&5
6560echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006561fi
6562
6563
6564if test "$GRAPHVIZ" != "echo Graphviz" ; then
6565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566cat >>confdefs.h <<\_ACEOF
6567#define HAVE_GRAPHVIZ 1
6568_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006569
Jeff Cohen28783c32007-01-12 18:22:38 +00006570 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006571 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6572 fi
6573
6574cat >>confdefs.h <<_ACEOF
6575#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6576_ACEOF
6577
6578fi
6579# Extract the first word of "dot", so it can be a program name with args.
6580set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583if test "${ac_cv_path_DOT+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006585else
6586 case $DOT in
6587 [\\/]* | ?:[\\/]*)
6588 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6589 ;;
6590 *)
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 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 +00006598 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006600 break 2
6601 fi
6602done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006603done
Reid Spencera773bd52006-08-04 18:18:08 +00006604IFS=$as_save_IFS
6605
6606 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6607 ;;
6608esac
6609fi
6610DOT=$ac_cv_path_DOT
6611if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006612 { echo "$as_me:$LINENO: result: $DOT" >&5
6613echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615 { echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006617fi
6618
6619
6620if test "$DOT" != "echo dot" ; then
6621
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006622cat >>confdefs.h <<\_ACEOF
6623#define HAVE_DOT 1
6624_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006625
Jeff Cohen28783c32007-01-12 18:22:38 +00006626 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006627 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6628 fi
6629
6630cat >>confdefs.h <<_ACEOF
6631#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6632_ACEOF
6633
6634fi
David Greenef0b9eff2009-07-09 17:16:26 +00006635# Extract the first word of "fdp", so it can be a program name with args.
6636set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639if test "${ac_cv_path_FDP+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006641else
6642 case $FDP in
6643 [\\/]* | ?:[\\/]*)
6644 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6645 ;;
6646 *)
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648for as_dir in $PATH
6649do
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 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 +00006654 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006656 break 2
6657 fi
6658done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006659done
David Greenef0b9eff2009-07-09 17:16:26 +00006660IFS=$as_save_IFS
6661
6662 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6663 ;;
6664esac
6665fi
6666FDP=$ac_cv_path_FDP
6667if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006668 { echo "$as_me:$LINENO: result: $FDP" >&5
6669echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671 { echo "$as_me:$LINENO: result: no" >&5
6672echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006673fi
6674
6675
6676if test "$FDP" != "echo fdp" ; then
6677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006678cat >>confdefs.h <<\_ACEOF
6679#define HAVE_FDP 1
6680_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006681
6682 if test "$llvm_cv_os_type" = "MingW" ; then
6683 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6684 fi
6685
6686cat >>confdefs.h <<_ACEOF
6687#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6688_ACEOF
6689
6690fi
6691# Extract the first word of "neato", so it can be a program name with args.
6692set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695if test "${ac_cv_path_NEATO+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006697else
6698 case $NEATO in
6699 [\\/]* | ?:[\\/]*)
6700 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6701 ;;
6702 *)
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 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 +00006710 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006712 break 2
6713 fi
6714done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006715done
David Greenef0b9eff2009-07-09 17:16:26 +00006716IFS=$as_save_IFS
6717
6718 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6719 ;;
6720esac
6721fi
6722NEATO=$ac_cv_path_NEATO
6723if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724 { echo "$as_me:$LINENO: result: $NEATO" >&5
6725echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006727 { echo "$as_me:$LINENO: result: no" >&5
6728echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006729fi
6730
6731
6732if test "$NEATO" != "echo neato" ; then
6733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734cat >>confdefs.h <<\_ACEOF
6735#define HAVE_NEATO 1
6736_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006737
6738 if test "$llvm_cv_os_type" = "MingW" ; then
6739 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6740 fi
6741
6742cat >>confdefs.h <<_ACEOF
6743#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6744_ACEOF
6745
6746fi
6747# Extract the first word of "twopi", so it can be a program name with args.
6748set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751if test "${ac_cv_path_TWOPI+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006753else
6754 case $TWOPI in
6755 [\\/]* | ?:[\\/]*)
6756 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6757 ;;
6758 *)
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760for as_dir in $PATH
6761do
6762 IFS=$as_save_IFS
6763 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 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 +00006766 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006768 break 2
6769 fi
6770done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771done
David Greenef0b9eff2009-07-09 17:16:26 +00006772IFS=$as_save_IFS
6773
6774 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6775 ;;
6776esac
6777fi
6778TWOPI=$ac_cv_path_TWOPI
6779if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006780 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6781echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006783 { echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006785fi
6786
6787
6788if test "$TWOPI" != "echo twopi" ; then
6789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006790cat >>confdefs.h <<\_ACEOF
6791#define HAVE_TWOPI 1
6792_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006793
6794 if test "$llvm_cv_os_type" = "MingW" ; then
6795 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6796 fi
6797
6798cat >>confdefs.h <<_ACEOF
6799#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6800_ACEOF
6801
6802fi
6803# Extract the first word of "circo", so it can be a program name with args.
6804set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807if test "${ac_cv_path_CIRCO+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006809else
6810 case $CIRCO in
6811 [\\/]* | ?:[\\/]*)
6812 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6813 ;;
6814 *)
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 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 +00006822 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006824 break 2
6825 fi
6826done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827done
David Greenef0b9eff2009-07-09 17:16:26 +00006828IFS=$as_save_IFS
6829
6830 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6831 ;;
6832esac
6833fi
6834CIRCO=$ac_cv_path_CIRCO
6835if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006836 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6837echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839 { echo "$as_me:$LINENO: result: no" >&5
6840echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006841fi
6842
6843
6844if test "$CIRCO" != "echo circo" ; then
6845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846cat >>confdefs.h <<\_ACEOF
6847#define HAVE_CIRCO 1
6848_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006849
6850 if test "$llvm_cv_os_type" = "MingW" ; then
6851 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6852 fi
6853
6854cat >>confdefs.h <<_ACEOF
6855#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6856_ACEOF
6857
6858fi
Reid Spencera773bd52006-08-04 18:18:08 +00006859for ac_prog in gv gsview32
6860do
6861 # Extract the first word of "$ac_prog", so it can be a program name with args.
6862set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865if test "${ac_cv_path_GV+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006867else
6868 case $GV in
6869 [\\/]* | ?:[\\/]*)
6870 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6871 ;;
6872 *)
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874for as_dir in $PATH
6875do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 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 +00006880 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006882 break 2
6883 fi
6884done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885done
Reid Spencera773bd52006-08-04 18:18:08 +00006886IFS=$as_save_IFS
6887
6888 ;;
6889esac
6890fi
6891GV=$ac_cv_path_GV
6892if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006893 { echo "$as_me:$LINENO: result: $GV" >&5
6894echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006896 { echo "$as_me:$LINENO: result: no" >&5
6897echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006898fi
6899
6900
6901 test -n "$GV" && break
6902done
6903test -n "$GV" || GV="echo gv"
6904
6905if test "$GV" != "echo gv" ; then
6906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006907cat >>confdefs.h <<\_ACEOF
6908#define HAVE_GV 1
6909_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006910
Jeff Cohen28783c32007-01-12 18:22:38 +00006911 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006912 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6913 fi
6914
6915cat >>confdefs.h <<_ACEOF
6916#define LLVM_PATH_GV "$GV${EXEEXT}"
6917_ACEOF
6918
6919fi
6920# Extract the first word of "dotty", so it can be a program name with args.
6921set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924if test "${ac_cv_path_DOTTY+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006926else
6927 case $DOTTY in
6928 [\\/]* | ?:[\\/]*)
6929 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6930 ;;
6931 *)
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933for as_dir in $PATH
6934do
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 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 +00006939 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006941 break 2
6942 fi
6943done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944done
Reid Spencera773bd52006-08-04 18:18:08 +00006945IFS=$as_save_IFS
6946
6947 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6948 ;;
6949esac
6950fi
6951DOTTY=$ac_cv_path_DOTTY
6952if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6954echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006956 { echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006958fi
6959
6960
6961if test "$DOTTY" != "echo dotty" ; then
6962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963cat >>confdefs.h <<\_ACEOF
6964#define HAVE_DOTTY 1
6965_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006966
Jeff Cohen28783c32007-01-12 18:22:38 +00006967 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006968 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6969 fi
6970
6971cat >>confdefs.h <<_ACEOF
6972#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6973_ACEOF
6974
6975fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006976# Extract the first word of "xdot.py", so it can be a program name with args.
6977set dummy xdot.py; ac_word=$2
6978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980if test "${ac_cv_path_XDOT_PY+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
6983 case $XDOT_PY in
6984 [\\/]* | ?:[\\/]*)
6985 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6986 ;;
6987 *)
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000done
7001IFS=$as_save_IFS
7002
7003 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7004 ;;
7005esac
7006fi
7007XDOT_PY=$ac_cv_path_XDOT_PY
7008if test -n "$XDOT_PY"; then
7009 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7010echo "${ECHO_T}$XDOT_PY" >&6; }
7011else
7012 { echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6; }
7014fi
7015
7016
7017if test "$XDOT_PY" != "echo xdot.py" ; then
7018
7019cat >>confdefs.h <<\_ACEOF
7020#define HAVE_XDOT_PY 1
7021_ACEOF
7022
7023 if test "$llvm_cv_os_type" = "MingW" ; then
7024 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7025 fi
7026
7027cat >>confdefs.h <<_ACEOF
7028#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7029_ACEOF
7030
7031fi
Reid Spencera773bd52006-08-04 18:18:08 +00007032
Reid Spencera773bd52006-08-04 18:18:08 +00007033# Find a good install program. We prefer a C program (faster),
7034# so one script is as good as another. But avoid the broken or
7035# incompatible versions:
7036# SysV /etc/install, /usr/sbin/install
7037# SunOS /usr/etc/install
7038# IRIX /sbin/install
7039# AIX /bin/install
7040# AmigaOS /C/install, which installs bootblocks on floppy discs
7041# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7042# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7043# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7044# OS/2's system install, which has a completely different semantic
7045# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007046{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7047echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007048if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049if test "${ac_cv_path_install+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007051else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 # Account for people who put trailing slashes in PATH elements.
7058case $as_dir/ in
7059 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007060 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007062 /usr/ucb/* ) ;;
7063 *)
7064 # OSF1 and SCO ODT 3.0 have their own names for install.
7065 # Don't use installbsd from OSF since it installs stuff as root
7066 # by default.
7067 for ac_prog in ginstall scoinst install; do
7068 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007069 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 +00007070 if test $ac_prog = install &&
7071 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7072 # AIX install. It has an incompatible calling convention.
7073 :
7074 elif test $ac_prog = install &&
7075 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7076 # program-specific install script used by HP pwplus--don't use.
7077 :
7078 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007079 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7080 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007081 fi
7082 fi
7083 done
7084 done
7085 ;;
7086esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007087done
Reid Spencera773bd52006-08-04 18:18:08 +00007088IFS=$as_save_IFS
7089
7090
7091fi
7092 if test "${ac_cv_path_install+set}" = set; then
7093 INSTALL=$ac_cv_path_install
7094 else
7095 # As a last resort, use the slow shell script. Don't cache a
7096 # value for INSTALL within a source directory, because that will
7097 # break other packages using the cache if that directory is
7098 # removed, or if the value is a relative name.
7099 INSTALL=$ac_install_sh
7100 fi
7101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7103echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007104
7105# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7106# It thinks the first close brace ends the variable substitution.
7107test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7108
7109test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7110
7111test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7112
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007113case "$INSTALL" in
7114 [\\/$]* | ?:[\\/]* ) ;;
7115 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7116esac
Reid Spencera773bd52006-08-04 18:18:08 +00007117
7118# Extract the first word of "bzip2", so it can be a program name with args.
7119set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007120{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122if test "${ac_cv_path_BZIP2+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007124else
7125 case $BZIP2 in
7126 [\\/]* | ?:[\\/]*)
7127 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7128 ;;
7129 *)
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 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 +00007137 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007139 break 2
7140 fi
7141done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142done
Reid Spencera773bd52006-08-04 18:18:08 +00007143IFS=$as_save_IFS
7144
Reid Spencera773bd52006-08-04 18:18:08 +00007145 ;;
7146esac
7147fi
7148BZIP2=$ac_cv_path_BZIP2
7149if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7151echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153 { echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007155fi
7156
7157
mike-m68cb3192010-05-06 23:45:43 +00007158# Extract the first word of "cat", so it can be a program name with args.
7159set dummy cat; ac_word=$2
7160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162if test "${ac_cv_path_CAT+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164else
7165 case $CAT in
7166 [\\/]* | ?:[\\/]*)
7167 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7168 ;;
7169 *)
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182done
7183IFS=$as_save_IFS
7184
7185 ;;
7186esac
7187fi
7188CAT=$ac_cv_path_CAT
7189if test -n "$CAT"; then
7190 { echo "$as_me:$LINENO: result: $CAT" >&5
7191echo "${ECHO_T}$CAT" >&6; }
7192else
7193 { echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6; }
7195fi
7196
7197
Reid Spencera773bd52006-08-04 18:18:08 +00007198# Extract the first word of "doxygen", so it can be a program name with args.
7199set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202if test "${ac_cv_path_DOXYGEN+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007204else
7205 case $DOXYGEN in
7206 [\\/]* | ?:[\\/]*)
7207 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7208 ;;
7209 *)
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 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 +00007217 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007219 break 2
7220 fi
7221done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222done
Reid Spencera773bd52006-08-04 18:18:08 +00007223IFS=$as_save_IFS
7224
Reid Spencera773bd52006-08-04 18:18:08 +00007225 ;;
7226esac
7227fi
7228DOXYGEN=$ac_cv_path_DOXYGEN
7229if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7231echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007232else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007233 { echo "$as_me:$LINENO: result: no" >&5
7234echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007235fi
7236
7237
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007238# Extract the first word of "groff", so it can be a program name with args.
7239set dummy groff; ac_word=$2
7240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242if test "${ac_cv_path_GROFF+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244else
7245 case $GROFF in
7246 [\\/]* | ?:[\\/]*)
7247 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7248 ;;
7249 *)
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261done
7262done
7263IFS=$as_save_IFS
7264
7265 ;;
7266esac
7267fi
7268GROFF=$ac_cv_path_GROFF
7269if test -n "$GROFF"; then
7270 { echo "$as_me:$LINENO: result: $GROFF" >&5
7271echo "${ECHO_T}$GROFF" >&6; }
7272else
7273 { echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6; }
7275fi
7276
7277
Reid Spencera773bd52006-08-04 18:18:08 +00007278# Extract the first word of "gzip", so it can be a program name with args.
7279set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007282if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007283 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007284else
Eric Christopher031d3072010-12-10 01:31:51 +00007285 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007286 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007287 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007288 ;;
7289 *)
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 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 +00007297 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007299 break 2
7300 fi
7301done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302done
Reid Spencera773bd52006-08-04 18:18:08 +00007303IFS=$as_save_IFS
7304
Reid Spencera773bd52006-08-04 18:18:08 +00007305 ;;
7306esac
7307fi
Eric Christopher031d3072010-12-10 01:31:51 +00007308GZIPBIN=$ac_cv_path_GZIPBIN
7309if test -n "$GZIPBIN"; then
7310 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7311echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 { echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007315fi
7316
7317
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007318# Extract the first word of "pdfroff", so it can be a program name with args.
7319set dummy pdfroff; ac_word=$2
7320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_path_PDFROFF+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325 case $PDFROFF in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343IFS=$as_save_IFS
7344
7345 ;;
7346esac
7347fi
7348PDFROFF=$ac_cv_path_PDFROFF
7349if test -n "$PDFROFF"; then
7350 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7351echo "${ECHO_T}$PDFROFF" >&6; }
7352else
7353 { echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6; }
7355fi
7356
7357
Reid Spencera773bd52006-08-04 18:18:08 +00007358# Extract the first word of "zip", so it can be a program name with args.
7359set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7362if test "${ac_cv_path_ZIP+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007364else
7365 case $ZIP in
7366 [\\/]* | ?:[\\/]*)
7367 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7368 ;;
7369 *)
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 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 +00007377 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007379 break 2
7380 fi
7381done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382done
Reid Spencera773bd52006-08-04 18:18:08 +00007383IFS=$as_save_IFS
7384
Reid Spencera773bd52006-08-04 18:18:08 +00007385 ;;
7386esac
7387fi
7388ZIP=$ac_cv_path_ZIP
7389if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007390 { echo "$as_me:$LINENO: result: $ZIP" >&5
7391echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393 { echo "$as_me:$LINENO: result: no" >&5
7394echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007395fi
7396
7397
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007398for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007399do
7400 # Extract the first word of "$ac_prog", so it can be a program name with args.
7401set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404if test "${ac_cv_path_OCAMLC+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007406else
7407 case $OCAMLC in
7408 [\\/]* | ?:[\\/]*)
7409 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7410 ;;
7411 *)
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 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 +00007419 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007421 break 2
7422 fi
7423done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007425IFS=$as_save_IFS
7426
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007427 ;;
7428esac
7429fi
7430OCAMLC=$ac_cv_path_OCAMLC
7431if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7433echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007434else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435 { echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007437fi
7438
7439
Gordon Henriksene7072162008-03-07 18:20:01 +00007440 test -n "$OCAMLC" && break
7441done
7442
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007443for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007444do
7445 # Extract the first word of "$ac_prog", so it can be a program name with args.
7446set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007451else
7452 case $OCAMLOPT in
7453 [\\/]* | ?:[\\/]*)
7454 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7455 ;;
7456 *)
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 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 +00007464 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007466 break 2
7467 fi
7468done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007470IFS=$as_save_IFS
7471
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007472 ;;
7473esac
7474fi
7475OCAMLOPT=$ac_cv_path_OCAMLOPT
7476if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7478echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007479else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480 { echo "$as_me:$LINENO: result: no" >&5
7481echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007482fi
7483
7484
Gordon Henriksene7072162008-03-07 18:20:01 +00007485 test -n "$OCAMLOPT" && break
7486done
7487
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007488for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007489do
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007496else
7497 case $OCAMLDEP in
7498 [\\/]* | ?:[\\/]*)
7499 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7500 ;;
7501 *)
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 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 +00007509 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007511 break 2
7512 fi
7513done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007515IFS=$as_save_IFS
7516
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007517 ;;
7518esac
7519fi
7520OCAMLDEP=$ac_cv_path_OCAMLDEP
7521if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007522 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7523echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007524else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007525 { echo "$as_me:$LINENO: result: no" >&5
7526echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007527fi
7528
7529
Gordon Henriksene7072162008-03-07 18:20:01 +00007530 test -n "$OCAMLDEP" && break
7531done
7532
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007533for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007534do
7535 # Extract the first word of "$ac_prog", so it can be a program name with args.
7536set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007541else
7542 case $OCAMLDOC in
7543 [\\/]* | ?:[\\/]*)
7544 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7545 ;;
7546 *)
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 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 +00007554 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007556 break 2
7557 fi
7558done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007559done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007560IFS=$as_save_IFS
7561
7562 ;;
7563esac
7564fi
7565OCAMLDOC=$ac_cv_path_OCAMLDOC
7566if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7568echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570 { echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007572fi
7573
7574
7575 test -n "$OCAMLDOC" && break
7576done
7577
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007578for ac_prog in gas as
7579do
7580 # Extract the first word of "$ac_prog", so it can be a program name with args.
7581set dummy $ac_prog; ac_word=$2
7582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584if test "${ac_cv_path_GAS+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587 case $GAS in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7590 ;;
7591 *)
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603done
7604done
7605IFS=$as_save_IFS
7606
7607 ;;
7608esac
7609fi
7610GAS=$ac_cv_path_GAS
7611if test -n "$GAS"; then
7612 { echo "$as_me:$LINENO: result: $GAS" >&5
7613echo "${ECHO_T}$GAS" >&6; }
7614else
7615 { echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6; }
7617fi
7618
7619
7620 test -n "$GAS" && break
7621done
7622
Reid Spencera773bd52006-08-04 18:18:08 +00007623
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007624{ echo "$as_me:$LINENO: checking for linker version" >&5
7625echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7626if test "${llvm_cv_link_version+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629
7630 version_string="$(ld -v 2>&1 | head -1)"
7631
7632 # Check for ld64.
7633 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007634 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007635 else
7636 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7637 fi
7638
7639fi
7640{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7641echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7642
7643cat >>confdefs.h <<_ACEOF
7644#define HOST_LINK_VERSION "$llvm_cv_link_version"
7645_ACEOF
7646
7647
7648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007649{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7650echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7651if test "${llvm_cv_link_use_r+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007653else
7654 ac_ext=c
7655ac_cpp='$CPP $CPPFLAGS'
7656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7658ac_compiler_gnu=$ac_cv_c_compiler_gnu
7659
7660 oldcflags="$CFLAGS"
7661 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007662 cat >conftest.$ac_ext <<_ACEOF
7663/* confdefs.h. */
7664_ACEOF
7665cat confdefs.h >>conftest.$ac_ext
7666cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007667/* end confdefs.h. */
7668
7669int
7670main ()
7671{
Dan Gohman39ed6782010-04-25 00:12:20 +00007672
Reid Spencera773bd52006-08-04 18:18:08 +00007673 ;
7674 return 0;
7675}
7676_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677rm -f conftest.$ac_objext conftest$ac_exeext
7678if { (ac_try="$ac_link"
7679case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7682esac
7683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_link") 2>conftest.er1
7685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7692 { (case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695esac
7696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_try") 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; } &&
7701 { ac_try='test -s conftest$ac_exeext'
7702 { (case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7705esac
7706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_try") 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007711 llvm_cv_link_use_r=yes
7712else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007713 echo "$as_me: failed program was:" >&5
7714sed 's/^/| /' conftest.$ac_ext >&5
7715
7716 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718
Bill Wendlingebcceee2009-04-18 11:20:33 +00007719rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007720 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007721 CFLAGS="$oldcflags"
7722 ac_ext=c
7723ac_cpp='$CPP $CPPFLAGS'
7724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726ac_compiler_gnu=$ac_cv_c_compiler_gnu
7727
7728
7729fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7731echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007732if test "$llvm_cv_link_use_r" = yes ; then
7733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734cat >>confdefs.h <<\_ACEOF
7735#define HAVE_LINK_R 1
7736_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007737
7738 fi
7739
7740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7742echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7743if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007745else
7746 ac_ext=c
7747ac_cpp='$CPP $CPPFLAGS'
7748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7750ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751
7752 oldcflags="$CFLAGS"
7753 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007754 cat >conftest.$ac_ext <<_ACEOF
7755/* confdefs.h. */
7756_ACEOF
7757cat confdefs.h >>conftest.$ac_ext
7758cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007759/* end confdefs.h. */
7760
7761int
7762main ()
7763{
Dan Gohman39ed6782010-04-25 00:12:20 +00007764
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007765 ;
7766 return 0;
7767}
7768_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007769rm -f conftest.$ac_objext conftest$ac_exeext
7770if { (ac_try="$ac_link"
7771case "(($ac_try" in
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7774esac
7775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_link") 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7784 { (case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7787esac
7788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_try") 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; } &&
7793 { ac_try='test -s conftest$ac_exeext'
7794 { (case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797esac
7798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_try") 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007803 llvm_cv_link_use_export_dynamic=yes
7804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805 echo "$as_me: failed program was:" >&5
7806sed 's/^/| /' conftest.$ac_ext >&5
7807
7808 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007810
Bill Wendlingebcceee2009-04-18 11:20:33 +00007811rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007812 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007813 CFLAGS="$oldcflags"
7814 ac_ext=c
7815ac_cpp='$CPP $CPPFLAGS'
7816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819
7820
7821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007822{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7823echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007824if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007826cat >>confdefs.h <<\_ACEOF
7827#define HAVE_LINK_EXPORT_DYNAMIC 1
7828_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007829
7830 fi
7831
7832
Dan Gohmanda612d62010-06-01 14:56:56 +00007833{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7834echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7835if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837else
7838 ac_ext=c
7839ac_cpp='$CPP $CPPFLAGS'
7840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843
7844 oldcflags="$CFLAGS"
7845
7846 # The following code is from the autoconf manual,
7847 # "11.13: Limitations of Usual Tools".
7848 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7849 # Use mktemp if possible; otherwise fall back on mkdir,
7850 # with $RANDOM to make collisions less likely.
7851 : ${TMPDIR=/tmp}
7852 {
7853 tmp=`
7854 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7855 ` &&
7856 test -n "$tmp" && test -d "$tmp"
7857 } || {
7858 tmp=$TMPDIR/foo$$-$RANDOM
7859 (umask 077 && mkdir "$tmp")
7860 } || exit $?
7861
Dan Gohmanda612d62010-06-01 14:56:56 +00007862 echo "{" > "$tmp/export.map"
7863 echo " global: main;" >> "$tmp/export.map"
7864 echo " local: *;" >> "$tmp/export.map"
7865 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007866
Dan Gohmanda612d62010-06-01 14:56:56 +00007867 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007868 cat >conftest.$ac_ext <<_ACEOF
7869/* confdefs.h. */
7870_ACEOF
7871cat confdefs.h >>conftest.$ac_ext
7872cat >>conftest.$ac_ext <<_ACEOF
7873/* end confdefs.h. */
7874
7875int
7876main ()
7877{
Dan Gohman39ed6782010-04-25 00:12:20 +00007878
Dan Gohman391569c2010-04-16 22:59:06 +00007879 ;
7880 return 0;
7881}
7882_ACEOF
7883rm -f conftest.$ac_objext conftest$ac_exeext
7884if { (ac_try="$ac_link"
7885case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888esac
7889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_link") 2>conftest.er1
7891 ac_status=$?
7892 grep -v '^ *+' conftest.er1 >conftest.err
7893 rm -f conftest.er1
7894 cat conftest.err >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } &&
7897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7898 { (case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901esac
7902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_try") 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; } &&
7907 { ac_try='test -s conftest$ac_exeext'
7908 { (case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911esac
7912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_try") 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007917 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007918else
7919 echo "$as_me: failed program was:" >&5
7920sed 's/^/| /' conftest.$ac_ext >&5
7921
Dan Gohman943005e2010-06-01 16:22:27 +00007922 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007923fi
7924
7925rm -f core conftest.err conftest.$ac_objext \
7926 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007927 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007928 rmdir "$tmp"
7929 CFLAGS="$oldcflags"
7930 ac_ext=c
7931ac_cpp='$CPP $CPPFLAGS'
7932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935
7936
7937fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007938{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7939echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7940if test "$llvm_cv_link_use_version_script" = yes ; then
7941 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007942
7943 fi
7944
7945
Reid Spencera773bd52006-08-04 18:18:08 +00007946
7947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007948{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7949echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7950if test "${ac_cv_c_const+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953 cat >conftest.$ac_ext <<_ACEOF
7954/* confdefs.h. */
7955_ACEOF
7956cat confdefs.h >>conftest.$ac_ext
7957cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007958/* end confdefs.h. */
7959
7960int
7961main ()
7962{
7963/* FIXME: Include the comments suggested by Paul. */
7964#ifndef __cplusplus
7965 /* Ultrix mips cc rejects this. */
7966 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007967 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007968 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969 char const *const *ccp;
7970 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007971 /* NEC SVR4.0.2 mips cc rejects this. */
7972 struct point {int x, y;};
7973 static struct point const zero = {0,0};
7974 /* AIX XL C 1.02.0.0 rejects this.
7975 It does not let you subtract one const X* pointer from another in
7976 an arm of an if-expression whose if-part is not a constant
7977 expression */
7978 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007979 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007980 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007981 ++ccp;
7982 p = (char**) ccp;
7983 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007984 { /* SCO 3.2v4 cc rejects this. */
7985 char *t;
7986 char const *s = 0 ? (char *) 0 : (char const *) 0;
7987
7988 *t++ = 0;
7989 if (s) return 0;
7990 }
7991 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7992 int x[] = {25, 17};
7993 const int *foo = &x[0];
7994 ++foo;
7995 }
7996 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7997 typedef const int *iptr;
7998 iptr p = 0;
7999 ++p;
8000 }
8001 { /* AIX XL C 1.02.0.0 rejects this saying
8002 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8003 struct s { int j; const int *ap[3]; };
8004 struct s *b; b->j = 5;
8005 }
8006 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8007 const int foo = 10;
8008 if (!foo) return 0;
8009 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008010 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008011#endif
8012
8013 ;
8014 return 0;
8015}
8016_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008017rm -f conftest.$ac_objext
8018if { (ac_try="$ac_compile"
8019case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022esac
8023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_compile") 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8032 { (case "(($ac_try" in
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8035esac
8036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_try") 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; } &&
8041 { ac_try='test -s conftest.$ac_objext'
8042 { (case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045esac
8046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_try") 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008051 ac_cv_c_const=yes
8052else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008053 echo "$as_me: failed program was:" >&5
8054sed 's/^/| /' conftest.$ac_ext >&5
8055
8056 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008058
Reid Spencera773bd52006-08-04 18:18:08 +00008059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8062echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008063if test $ac_cv_c_const = no; then
8064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065cat >>confdefs.h <<\_ACEOF
8066#define const
8067_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008068
8069fi
8070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008071
8072
8073
8074
8075
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008076ac_header_dirent=no
8077for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008078 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8079{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8080echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008084 cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h. */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008089/* end confdefs.h. */
8090#include <sys/types.h>
8091#include <$ac_hdr>
8092
8093int
8094main ()
8095{
8096if ((DIR *) 0)
8097return 0;
8098 ;
8099 return 0;
8100}
8101_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102rm -f conftest.$ac_objext
8103if { (ac_try="$ac_compile"
8104case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107esac
8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_compile") 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8117 { (case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120esac
8121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_try") 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (case "(($ac_try" in
8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129 *) ac_try_echo=$ac_try;;
8130esac
8131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132 (eval "$ac_try") 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008136 eval "$as_ac_Header=yes"
8137else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138 echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008142fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008143
Reid Spencera773bd52006-08-04 18:18:08 +00008144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008146ac_res=`eval echo '${'$as_ac_Header'}'`
8147 { echo "$as_me:$LINENO: result: $ac_res" >&5
8148echo "${ECHO_T}$ac_res" >&6; }
8149if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008150 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008151#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008152_ACEOF
8153
8154ac_header_dirent=$ac_hdr; break
8155fi
8156
8157done
8158# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8159if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008160 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8161echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8162if test "${ac_cv_search_opendir+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008164else
8165 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008166cat >conftest.$ac_ext <<_ACEOF
8167/* confdefs.h. */
8168_ACEOF
8169cat confdefs.h >>conftest.$ac_ext
8170cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008171/* end confdefs.h. */
8172
Reid Spencera773bd52006-08-04 18:18:08 +00008173/* Override any GCC internal prototype to avoid an error.
8174 Use char because int might match the return type of a GCC
8175 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008176#ifdef __cplusplus
8177extern "C"
8178#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008179char opendir ();
8180int
8181main ()
8182{
Reid Spencera773bd52006-08-04 18:18:08 +00008183return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008184 ;
8185 return 0;
8186}
8187_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008188for ac_lib in '' dir; do
8189 if test -z "$ac_lib"; then
8190 ac_res="none required"
8191 else
8192 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008194 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008195 rm -f conftest.$ac_objext conftest$ac_exeext
8196if { (ac_try="$ac_link"
8197case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200esac
8201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_link") 2>conftest.er1
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
8209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213esac
8214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008229 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230else
8231 echo "$as_me: failed program was:" >&5
8232sed 's/^/| /' conftest.$ac_ext >&5
8233
8234
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236
Bill Wendlingebcceee2009-04-18 11:20:33 +00008237rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238 conftest$ac_exeext
8239 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008240 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008241fi
John Criswell7a73b802003-06-30 21:59:07 +00008242done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243if test "${ac_cv_search_opendir+set}" = set; then
8244 :
Reid Spencera773bd52006-08-04 18:18:08 +00008245else
8246 ac_cv_search_opendir=no
8247fi
8248rm conftest.$ac_ext
8249LIBS=$ac_func_search_save_LIBS
8250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8252echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008253ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008256
Reid Spencera773bd52006-08-04 18:18:08 +00008257fi
8258
8259else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008260 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8261echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8262if test "${ac_cv_search_opendir+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008264else
8265 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008266cat >conftest.$ac_ext <<_ACEOF
8267/* confdefs.h. */
8268_ACEOF
8269cat confdefs.h >>conftest.$ac_ext
8270cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008271/* end confdefs.h. */
8272
8273/* Override any GCC internal prototype to avoid an error.
8274 Use char because int might match the return type of a GCC
8275 builtin and then its argument prototype would still apply. */
8276#ifdef __cplusplus
8277extern "C"
8278#endif
8279char opendir ();
8280int
8281main ()
8282{
8283return opendir ();
8284 ;
8285 return 0;
8286}
8287_ACEOF
8288for ac_lib in '' x; do
8289 if test -z "$ac_lib"; then
8290 ac_res="none required"
8291 else
8292 ac_res=-l$ac_lib
8293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8294 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008295 rm -f conftest.$ac_objext conftest$ac_exeext
8296if { (ac_try="$ac_link"
8297case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300esac
8301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_link") 2>conftest.er1
8303 ac_status=$?
8304 grep -v '^ *+' conftest.er1 >conftest.err
8305 rm -f conftest.er1
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313esac
8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323esac
8324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_try") 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008329 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008330else
8331 echo "$as_me: failed program was:" >&5
8332sed 's/^/| /' conftest.$ac_ext >&5
8333
8334
Reid Spencera773bd52006-08-04 18:18:08 +00008335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336
Bill Wendlingebcceee2009-04-18 11:20:33 +00008337rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338 conftest$ac_exeext
8339 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008340 break
8341fi
8342done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008343if test "${ac_cv_search_opendir+set}" = set; then
8344 :
Reid Spencera773bd52006-08-04 18:18:08 +00008345else
8346 ac_cv_search_opendir=no
8347fi
8348rm conftest.$ac_ext
8349LIBS=$ac_func_search_save_LIBS
8350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008351{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8352echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008353ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8356
8357fi
8358
8359fi
John Criswell7a73b802003-06-30 21:59:07 +00008360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008361
John Criswell7a73b802003-06-30 21:59:07 +00008362for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008363do
8364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370fi
8371ac_res=`eval echo '${'$as_ac_Header'}'`
8372 { echo "$as_me:$LINENO: result: $ac_res" >&5
8373echo "${ECHO_T}$ac_res" >&6; }
8374else
8375 # Is the header compilable?
8376{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8378cat >conftest.$ac_ext <<_ACEOF
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
8384$ac_includes_default
8385#include <$ac_header>
8386_ACEOF
8387rm -f conftest.$ac_objext
8388if { (ac_try="$ac_compile"
8389case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392esac
8393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_compile") 2>conftest.er1
8395 ac_status=$?
8396 grep -v '^ *+' conftest.er1 >conftest.err
8397 rm -f conftest.er1
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8402 { (case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405esac
8406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_try") 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest.$ac_objext'
8412 { (case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8415esac
8416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_try") 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
8421 ac_header_compiler=yes
8422else
8423 echo "$as_me: failed program was:" >&5
8424sed 's/^/| /' conftest.$ac_ext >&5
8425
8426 ac_header_compiler=no
8427fi
8428
8429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8431echo "${ECHO_T}$ac_header_compiler" >&6; }
8432
8433# Is the header present?
8434{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8436cat >conftest.$ac_ext <<_ACEOF
8437/* confdefs.h. */
8438_ACEOF
8439cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */
8442#include <$ac_header>
8443_ACEOF
8444if { (ac_try="$ac_cpp conftest.$ac_ext"
8445case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8448esac
8449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } >/dev/null; then
8457 if test -s conftest.err; then
8458 ac_cpp_err=$ac_c_preproc_warn_flag
8459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8460 else
8461 ac_cpp_err=
8462 fi
8463else
8464 ac_cpp_err=yes
8465fi
8466if test -z "$ac_cpp_err"; then
8467 ac_header_preproc=yes
8468else
8469 echo "$as_me: failed program was:" >&5
8470sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ac_header_preproc=no
8473fi
8474
8475rm -f conftest.err conftest.$ac_ext
8476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8477echo "${ECHO_T}$ac_header_preproc" >&6; }
8478
8479# So? What about this header?
8480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8481 yes:no: )
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8486 ac_header_preproc=yes
8487 ;;
8488 no:yes:* )
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8501 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008502## ------------------------------------ ##
8503## Report this to http://llvm.org/bugs/ ##
8504## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008505_ASBOX
8506 ) | sed "s/^/$as_me: WARNING: /" >&2
8507 ;;
8508esac
8509{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8513else
8514 eval "$as_ac_Header=\$ac_header_preproc"
8515fi
8516ac_res=`eval echo '${'$as_ac_Header'}'`
8517 { echo "$as_me:$LINENO: result: $ac_res" >&5
8518echo "${ECHO_T}$ac_res" >&6; }
8519
8520fi
8521if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008522 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008524_ACEOF
8525
8526fi
8527
8528done
8529
Reid Spencera773bd52006-08-04 18:18:08 +00008530# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008531if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008532 enableval=$enable_ltdl_install;
8533fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008534
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008536
8537
8538if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008539 INSTALL_LTDL_TRUE=
8540 INSTALL_LTDL_FALSE='#'
8541else
8542 INSTALL_LTDL_TRUE='#'
8543 INSTALL_LTDL_FALSE=
8544fi
8545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546
8547
8548if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008549 CONVENIENCE_LTDL_TRUE=
8550 CONVENIENCE_LTDL_FALSE='#'
8551else
8552 CONVENIENCE_LTDL_TRUE='#'
8553 CONVENIENCE_LTDL_FALSE=
8554fi
8555
8556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008557{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8558echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008559library_names_spec=
8560libname_spec='lib$name'
8561soname_spec=
8562shrext_cmds=".so"
8563postinstall_cmds=
8564postuninstall_cmds=
8565finish_cmds=
8566finish_eval=
8567shlibpath_var=
8568shlibpath_overrides_runpath=unknown
8569version_type=none
8570dynamic_linker="$host_os ld.so"
8571sys_lib_dlsearch_path_spec="/lib /usr/lib"
8572if test "$GCC" = yes; then
8573 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8574 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8575 # if the path contains ";" then we assume it to be the separator
8576 # otherwise default to the standard path separator (i.e. ":") - it is
8577 # assumed that no part of a normal pathname contains ";" but that should
8578 # okay in the real world where ";" in dirpaths is itself problematic.
8579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8580 else
8581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8582 fi
8583else
8584 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8585fi
8586need_lib_prefix=unknown
8587hardcode_into_libs=no
8588
8589# when you set need_version to no, make sure it does not cause -set_version
8590# flags to be left without arguments
8591need_version=unknown
8592
8593case $host_os in
8594aix3*)
8595 version_type=linux
8596 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8597 shlibpath_var=LIBPATH
8598
8599 # AIX 3 has no versioning support, so we append a major version to the name.
8600 soname_spec='${libname}${release}${shared_ext}$major'
8601 ;;
8602
8603aix4* | aix5*)
8604 version_type=linux
8605 need_lib_prefix=no
8606 need_version=no
8607 hardcode_into_libs=yes
8608 if test "$host_cpu" = ia64; then
8609 # AIX 5 supports IA64
8610 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8611 shlibpath_var=LD_LIBRARY_PATH
8612 else
8613 # With GCC up to 2.95.x, collect2 would create an import file
8614 # for dependence libraries. The import file would start with
8615 # the line `#! .'. This would cause the generated library to
8616 # depend on `.', always an invalid library. This was fixed in
8617 # development snapshots of GCC prior to 3.0.
8618 case $host_os in
8619 aix4 | aix4.[01] | aix4.[01].*)
8620 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8621 echo ' yes '
8622 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8623 :
8624 else
8625 can_build_shared=no
8626 fi
8627 ;;
8628 esac
8629 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8630 # soname into executable. Probably we can add versioning support to
8631 # collect2, so additional links can be useful in future.
8632 if test "$aix_use_runtimelinking" = yes; then
8633 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8634 # instead of lib<name>.a to let people know that these are not
8635 # typical AIX shared libraries.
8636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8637 else
8638 # We preserve .a as extension for shared libraries through AIX4.2
8639 # and later when we are not doing run time linking.
8640 library_names_spec='${libname}${release}.a $libname.a'
8641 soname_spec='${libname}${release}${shared_ext}$major'
8642 fi
8643 shlibpath_var=LIBPATH
8644 fi
8645 ;;
8646
8647amigaos*)
8648 library_names_spec='$libname.ixlibrary $libname.a'
8649 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8650 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'
8651 ;;
8652
8653beos*)
8654 library_names_spec='${libname}${shared_ext}'
8655 dynamic_linker="$host_os ld.so"
8656 shlibpath_var=LIBRARY_PATH
8657 ;;
8658
8659bsdi[45]*)
8660 version_type=linux
8661 need_version=no
8662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8663 soname_spec='${libname}${release}${shared_ext}$major'
8664 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8665 shlibpath_var=LD_LIBRARY_PATH
8666 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8667 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8668 # the default ld.so.conf also contains /usr/contrib/lib and
8669 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8670 # libtool to hard-code these into programs
8671 ;;
8672
8673cygwin* | mingw* | pw32*)
8674 version_type=windows
8675 shrext_cmds=".dll"
8676 need_version=no
8677 need_lib_prefix=no
8678
8679 case $GCC,$host_os in
8680 yes,cygwin* | yes,mingw* | yes,pw32*)
8681 library_names_spec='$libname.dll.a'
8682 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8683 postinstall_cmds='base_file=`basename \${file}`~
8684 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8685 dldir=$destdir/`dirname \$dlpath`~
8686 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008687 $install_prog $dir/$dlname \$dldir/$dlname~
8688 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008689 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8690 dlpath=$dir/\$dldll~
8691 $rm \$dlpath'
8692 shlibpath_overrides_runpath=yes
8693
8694 case $host_os in
8695 cygwin*)
8696 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8697 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8698 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8699 ;;
8700 mingw*)
8701 # MinGW DLLs use traditional 'lib' prefix
8702 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8703 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8704 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8705 # It is most probably a Windows format PATH printed by
8706 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8707 # path with ; separators, and with drive letters. We can handle the
8708 # drive letters (cygwin fileutils understands them), so leave them,
8709 # especially as we might pass files found there to a mingw objdump,
8710 # which wouldn't understand a cygwinified path. Ahh.
8711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8712 else
8713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8714 fi
8715 ;;
8716 pw32*)
8717 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008718 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 +00008719 ;;
8720 esac
8721 ;;
8722
8723 *)
8724 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8725 ;;
8726 esac
8727 dynamic_linker='Win32 ld.exe'
8728 # FIXME: first we should search . and the directory the executable is in
8729 shlibpath_var=PATH
8730 ;;
8731
8732darwin* | rhapsody*)
8733 dynamic_linker="$host_os dyld"
8734 version_type=darwin
8735 need_lib_prefix=no
8736 need_version=no
8737 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8738 soname_spec='${libname}${release}${major}$shared_ext'
8739 shlibpath_overrides_runpath=yes
8740 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008741 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008742 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8743 if test "$GCC" = yes; then
8744 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"`
8745 else
8746 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8747 fi
8748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8749 ;;
8750
8751dgux*)
8752 version_type=linux
8753 need_lib_prefix=no
8754 need_version=no
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 ;;
8759
Eric Christopher360fa9a2011-10-26 00:42:12 +00008760freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008761 dynamic_linker=no
8762 ;;
8763
8764kfreebsd*-gnu)
8765 version_type=linux
8766 need_lib_prefix=no
8767 need_version=no
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8769 soname_spec='${libname}${release}${shared_ext}$major'
8770 shlibpath_var=LD_LIBRARY_PATH
8771 shlibpath_overrides_runpath=no
8772 hardcode_into_libs=yes
8773 dynamic_linker='GNU ld.so'
8774 ;;
8775
Reid Spencera773bd52006-08-04 18:18:08 +00008776freebsd* | dragonfly*)
8777 # DragonFly does not have aout. When/if they implement a new
8778 # versioning mechanism, adjust this.
8779 if test -x /usr/bin/objformat; then
8780 objformat=`/usr/bin/objformat`
8781 else
8782 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008783 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008784 *) objformat=elf ;;
8785 esac
8786 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008787 version_type=freebsd-$objformat
8788 case $version_type in
8789 freebsd-elf*)
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8791 need_version=no
8792 need_lib_prefix=no
8793 ;;
8794 freebsd-*)
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8796 need_version=yes
8797 ;;
8798 esac
8799 shlibpath_var=LD_LIBRARY_PATH
8800 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008801 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008802 shlibpath_overrides_runpath=yes
8803 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008804 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008805 shlibpath_overrides_runpath=yes
8806 hardcode_into_libs=yes
8807 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008808 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8809 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008810 shlibpath_overrides_runpath=no
8811 hardcode_into_libs=yes
8812 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008813 freebsd*) # from 4.6 on
8814 shlibpath_overrides_runpath=yes
8815 hardcode_into_libs=yes
8816 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008817 esac
8818 ;;
8819
8820gnu*)
8821 version_type=linux
8822 need_lib_prefix=no
8823 need_version=no
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 shlibpath_var=LD_LIBRARY_PATH
8827 hardcode_into_libs=yes
8828 ;;
8829
8830hpux9* | hpux10* | hpux11*)
8831 # Give a soname corresponding to the major version so that dld.sl refuses to
8832 # link against other versions.
8833 version_type=sunos
8834 need_lib_prefix=no
8835 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008836 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008837 ia64*)
8838 shrext_cmds='.so'
8839 hardcode_into_libs=yes
8840 dynamic_linker="$host_os dld.so"
8841 shlibpath_var=LD_LIBRARY_PATH
8842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 if test "X$HPUX_IA64_MODE" = X32; then
8846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8847 else
8848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8849 fi
8850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8851 ;;
8852 hppa*64*)
8853 shrext_cmds='.sl'
8854 hardcode_into_libs=yes
8855 dynamic_linker="$host_os dld.sl"
8856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8862 ;;
8863 *)
8864 shrext_cmds='.sl'
8865 dynamic_linker="$host_os dld.sl"
8866 shlibpath_var=SHLIB_PATH
8867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869 soname_spec='${libname}${release}${shared_ext}$major'
8870 ;;
8871 esac
8872 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8873 postinstall_cmds='chmod 555 $lib'
8874 ;;
8875
Reid Spencera773bd52006-08-04 18:18:08 +00008876interix3*)
8877 version_type=linux
8878 need_lib_prefix=no
8879 need_version=no
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 shlibpath_overrides_runpath=no
8885 hardcode_into_libs=yes
8886 ;;
8887
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008888irix5* | irix6* | nonstopux*)
8889 case $host_os in
8890 nonstopux*) version_type=nonstopux ;;
8891 *)
8892 if test "$lt_cv_prog_gnu_ld" = yes; then
8893 version_type=linux
8894 else
8895 version_type=irix
8896 fi ;;
8897 esac
8898 need_lib_prefix=no
8899 need_version=no
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8902 case $host_os in
8903 irix5* | nonstopux*)
8904 libsuff= shlibsuff=
8905 ;;
8906 *)
8907 case $LD in # libtool.m4 will add one of these switches to LD
8908 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8909 libsuff= shlibsuff= libmagic=32-bit;;
8910 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8911 libsuff=32 shlibsuff=N32 libmagic=N32;;
8912 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8913 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8914 *) libsuff= shlibsuff= libmagic=never-match;;
8915 esac
8916 ;;
8917 esac
8918 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8919 shlibpath_overrides_runpath=no
8920 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8921 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8922 hardcode_into_libs=yes
8923 ;;
8924
8925# No shared lib support for Linux oldld, aout, or coff.
8926linux*oldld* | linux*aout* | linux*coff*)
8927 dynamic_linker=no
8928 ;;
8929
8930# This must be Linux ELF.
8931linux*)
8932 version_type=linux
8933 need_lib_prefix=no
8934 need_version=no
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 soname_spec='${libname}${release}${shared_ext}$major'
8937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8938 shlibpath_var=LD_LIBRARY_PATH
8939 shlibpath_overrides_runpath=no
8940 # This implies no fast_install, which is unacceptable.
8941 # Some rework will be needed to allow for fast_install
8942 # before this can be enabled.
8943 hardcode_into_libs=yes
8944
8945 # Append ld.so.conf contents to the search path
8946 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008947 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 +00008948 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8949 fi
8950
8951 # We used to test for /lib/ld.so.1 and disable shared libraries on
8952 # powerpc, because MkLinux only supported shared libraries with the
8953 # GNU dynamic linker. Since this was broken with cross compilers,
8954 # most powerpc-linux boxes support dynamic linking these days and
8955 # people can always --disable-shared, the test was removed, and we
8956 # assume the GNU/Linux dynamic linker is in use.
8957 dynamic_linker='GNU/Linux ld.so'
8958 ;;
8959
8960knetbsd*-gnu)
8961 version_type=linux
8962 need_lib_prefix=no
8963 need_version=no
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8965 soname_spec='${libname}${release}${shared_ext}$major'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 shlibpath_overrides_runpath=no
8968 hardcode_into_libs=yes
8969 dynamic_linker='GNU ld.so'
8970 ;;
8971
8972netbsd*)
8973 version_type=sunos
8974 need_lib_prefix=no
8975 need_version=no
8976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8979 dynamic_linker='NetBSD (a.out) ld.so'
8980 else
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 dynamic_linker='NetBSD ld.elf_so'
8984 fi
8985 shlibpath_var=LD_LIBRARY_PATH
8986 shlibpath_overrides_runpath=yes
8987 hardcode_into_libs=yes
8988 ;;
8989
8990newsos6)
8991 version_type=linux
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=yes
8995 ;;
8996
8997nto-qnx*)
8998 version_type=linux
8999 need_lib_prefix=no
9000 need_version=no
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=yes
9005 ;;
9006
Eric Christopherb0f67592012-08-06 20:52:18 +00009007openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009008 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009009 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009010 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009011 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9012 case $host_os in
9013 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9014 *) need_version=no ;;
9015 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9020 case $host_os in
9021 openbsd2.[89] | openbsd2.[89].*)
9022 shlibpath_overrides_runpath=no
9023 ;;
9024 *)
9025 shlibpath_overrides_runpath=yes
9026 ;;
9027 esac
9028 else
9029 shlibpath_overrides_runpath=yes
9030 fi
9031 ;;
9032
9033os2*)
9034 libname_spec='$name'
9035 shrext_cmds=".dll"
9036 need_lib_prefix=no
9037 library_names_spec='$libname${shared_ext} $libname.a'
9038 dynamic_linker='OS/2 ld.exe'
9039 shlibpath_var=LIBPATH
9040 ;;
9041
9042osf3* | osf4* | osf5*)
9043 version_type=osf
9044 need_lib_prefix=no
9045 need_version=no
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9050 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9051 ;;
9052
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009053solaris*)
9054 version_type=linux
9055 need_lib_prefix=no
9056 need_version=no
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=yes
9061 hardcode_into_libs=yes
9062 # ldd complains unless libraries are executable
9063 postinstall_cmds='chmod +x $lib'
9064 ;;
9065
9066sunos4*)
9067 version_type=sunos
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9069 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes
9072 if test "$with_gnu_ld" = yes; then
9073 need_lib_prefix=no
9074 fi
9075 need_version=yes
9076 ;;
9077
Reid Spencera773bd52006-08-04 18:18:08 +00009078sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009079 version_type=linux
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 case $host_vendor in
9084 sni)
9085 shlibpath_overrides_runpath=no
9086 need_lib_prefix=no
9087 export_dynamic_flag_spec='${wl}-Blargedynsym'
9088 runpath_var=LD_RUN_PATH
9089 ;;
9090 siemens)
9091 need_lib_prefix=no
9092 ;;
9093 motorola)
9094 need_lib_prefix=no
9095 need_version=no
9096 shlibpath_overrides_runpath=no
9097 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9098 ;;
9099 esac
9100 ;;
9101
9102sysv4*MP*)
9103 if test -d /usr/nec ;then
9104 version_type=linux
9105 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9106 soname_spec='$libname${shared_ext}.$major'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 fi
9109 ;;
9110
Reid Spencera773bd52006-08-04 18:18:08 +00009111sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9112 version_type=freebsd-elf
9113 need_lib_prefix=no
9114 need_version=no
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 hardcode_into_libs=yes
9119 if test "$with_gnu_ld" = yes; then
9120 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9121 shlibpath_overrides_runpath=no
9122 else
9123 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9124 shlibpath_overrides_runpath=yes
9125 case $host_os in
9126 sco3.2v5*)
9127 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9128 ;;
9129 esac
9130 fi
9131 sys_lib_dlsearch_path_spec='/usr/lib'
9132 ;;
9133
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134uts4*)
9135 version_type=linux
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137 soname_spec='${libname}${release}${shared_ext}$major'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 ;;
9140
9141*)
9142 dynamic_linker=no
9143 ;;
9144esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009145{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9146echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009147test "$dynamic_linker" = no && can_build_shared=no
9148
Reid Spencera773bd52006-08-04 18:18:08 +00009149variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9150if test "$GCC" = yes; then
9151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9152fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009153
Reid Spencera773bd52006-08-04 18:18:08 +00009154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009155{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9156echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9157if test "${libltdl_cv_shlibext+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009159else
9160
9161module=yes
9162eval libltdl_cv_shlibext=$shrext_cmds
9163
9164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009165{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9166echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009167if test -n "$libltdl_cv_shlibext"; then
9168
9169cat >>confdefs.h <<_ACEOF
9170#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9171_ACEOF
9172
9173fi
9174
9175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009176{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9177echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9178if test "${libltdl_cv_shlibpath_var+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009180else
9181 libltdl_cv_shlibpath_var="$shlibpath_var"
9182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009183{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9184echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009185if test -n "$libltdl_cv_shlibpath_var"; then
9186
9187cat >>confdefs.h <<_ACEOF
9188#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9189_ACEOF
9190
9191fi
9192
9193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009194{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9195echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9196if test "${libltdl_cv_sys_search_path+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009198else
9199 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9200fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009201{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9202echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009203if test -n "$libltdl_cv_sys_search_path"; then
9204 sys_search_path=
9205 for dir in $libltdl_cv_sys_search_path; do
9206 if test -z "$sys_search_path"; then
9207 sys_search_path="$dir"
9208 else
9209 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9210 fi
9211 done
9212
9213cat >>confdefs.h <<_ACEOF
9214#define LTDL_SYSSEARCHPATH "$sys_search_path"
9215_ACEOF
9216
9217fi
9218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009219{ echo "$as_me:$LINENO: checking for objdir" >&5
9220echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9221if test "${libltdl_cv_objdir+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009223else
9224 libltdl_cv_objdir="$objdir"
9225 if test -n "$objdir"; then
9226 :
9227 else
9228 rm -f .libs 2>/dev/null
9229 mkdir .libs 2>/dev/null
9230 if test -d .libs; then
9231 libltdl_cv_objdir=.libs
9232 else
9233 # MS-DOS does not allow filenames that begin with a dot.
9234 libltdl_cv_objdir=_libs
9235 fi
9236 rmdir .libs 2>/dev/null
9237 fi
9238
9239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009240{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9241echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009242
9243cat >>confdefs.h <<_ACEOF
9244#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9245_ACEOF
9246
9247
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009248
9249
9250
9251
9252# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009253{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9254echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9255if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9256 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257else
9258
9259# These are sane defaults that work on at least a few old systems.
9260# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9261
9262# Character class describing NM global symbol codes.
9263symcode='[BCDEGRST]'
9264
9265# Regexp to match symbols that can be accessed directly from C.
9266sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9267
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009268# Transform an extracted symbol line into a proper C declaration
9269lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9270
9271# Transform an extracted symbol line into symbol name and symbol address
9272lt_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'"
9273
9274# Define system-specific variables.
9275case $host_os in
9276aix*)
9277 symcode='[BCDT]'
9278 ;;
9279cygwin* | mingw* | pw32*)
9280 symcode='[ABCDGISTW]'
9281 ;;
9282hpux*) # Its linker distinguishes data from code symbols
9283 if test "$host_cpu" = ia64; then
9284 symcode='[ABCDEGRST]'
9285 fi
9286 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9287 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'"
9288 ;;
9289linux*)
9290 if test "$host_cpu" = ia64; then
9291 symcode='[ABCDGIRSTW]'
9292 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9293 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'"
9294 fi
9295 ;;
9296irix* | nonstopux*)
9297 symcode='[BCDEGRST]'
9298 ;;
9299osf*)
9300 symcode='[BCDEGQRST]'
9301 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009302solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009303 symcode='[BDRT]'
9304 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009305sco3.2v5*)
9306 symcode='[DT]'
9307 ;;
9308sysv4.2uw2*)
9309 symcode='[DT]'
9310 ;;
9311sysv5* | sco5v6* | unixware* | OpenUNIX*)
9312 symcode='[ABDT]'
9313 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009314sysv4)
9315 symcode='[DFNSTU]'
9316 ;;
9317esac
9318
9319# Handle CRLF in mingw tool chain
9320opt_cr=
9321case $build_os in
9322mingw*)
9323 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9324 ;;
9325esac
9326
9327# If we're using GNU nm, then use its standard symbol codes.
9328case `$NM -V 2>&1` in
9329*GNU* | *'with BFD'*)
9330 symcode='[ABCDGIRSTW]' ;;
9331esac
9332
9333# Try without a prefix undercore, then with it.
9334for ac_symprfx in "" "_"; do
9335
Reid Spencera773bd52006-08-04 18:18:08 +00009336 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9337 symxfrm="\\1 $ac_symprfx\\2 \\2"
9338
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009339 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009340 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 +00009341
9342 # Check to see that the pipe works correctly.
9343 pipe_works=no
9344
9345 rm -f conftest*
9346 cat > conftest.$ac_ext <<EOF
9347#ifdef __cplusplus
9348extern "C" {
9349#endif
9350char nm_test_var;
9351void nm_test_func(){}
9352#ifdef __cplusplus
9353}
9354#endif
9355int main(){nm_test_var='a';nm_test_func();return(0);}
9356EOF
9357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009359 (eval $ac_compile) 2>&5
9360 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009363 # Now try to grab the symbols.
9364 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009365 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 +00009366 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9367 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009370 # Try sorting and uniquifying the output.
9371 if sort "$nlist" | uniq > "$nlist"T; then
9372 mv -f "$nlist"T "$nlist"
9373 else
9374 rm -f "$nlist"T
9375 fi
9376
9377 # Make sure that we snagged all the symbols we need.
9378 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9379 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9380 cat <<EOF > conftest.$ac_ext
9381#ifdef __cplusplus
9382extern "C" {
9383#endif
9384
9385EOF
9386 # Now generate the symbol file.
9387 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9388
9389 cat <<EOF >> conftest.$ac_ext
9390#if defined (__STDC__) && __STDC__
9391# define lt_ptr_t void *
9392#else
9393# define lt_ptr_t char *
9394# define const
9395#endif
9396
9397/* The mapping between symbol names and symbols. */
9398const struct {
9399 const char *name;
9400 lt_ptr_t address;
9401}
9402lt_preloaded_symbols[] =
9403{
9404EOF
9405 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9406 cat <<\EOF >> conftest.$ac_ext
9407 {0, (lt_ptr_t) 0}
9408};
9409
9410#ifdef __cplusplus
9411}
9412#endif
9413EOF
9414 # Now try linking the two files.
9415 mv conftest.$ac_objext conftstm.$ac_objext
9416 lt_save_LIBS="$LIBS"
9417 lt_save_CFLAGS="$CFLAGS"
9418 LIBS="conftstm.$ac_objext"
9419 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009421 (eval $ac_link) 2>&5
9422 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425 pipe_works=yes
9426 fi
9427 LIBS="$lt_save_LIBS"
9428 CFLAGS="$lt_save_CFLAGS"
9429 else
9430 echo "cannot find nm_test_func in $nlist" >&5
9431 fi
9432 else
9433 echo "cannot find nm_test_var in $nlist" >&5
9434 fi
9435 else
9436 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9437 fi
9438 else
9439 echo "$progname: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9441 fi
9442 rm -f conftest* conftst*
9443
9444 # Do not use the global_symbol_pipe unless it works.
9445 if test "$pipe_works" = yes; then
9446 break
9447 else
9448 lt_cv_sys_global_symbol_pipe=
9449 fi
9450done
9451
9452fi
9453
9454if test -z "$lt_cv_sys_global_symbol_pipe"; then
9455 lt_cv_sys_global_symbol_to_cdecl=
9456fi
9457if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009458 { echo "$as_me:$LINENO: result: failed" >&5
9459echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009460else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009461 { echo "$as_me:$LINENO: result: ok" >&5
9462echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009463fi
9464
9465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009466{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9467echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9468if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009470else
9471 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9472 libltdl_cv_preloaded_symbols=yes
9473 else
9474 libltdl_cv_preloaded_symbols=no
9475 fi
9476
9477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009478{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9479echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009480if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009482cat >>confdefs.h <<\_ACEOF
9483#define HAVE_PRELOADED_SYMBOLS 1
9484_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485
9486fi
9487
9488LIBADD_DL=
9489
9490ac_ext=c
9491ac_cpp='$CPP $CPPFLAGS'
9492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9494ac_compiler_gnu=$ac_cv_c_compiler_gnu
9495
9496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009497{ echo "$as_me:$LINENO: checking for shl_load" >&5
9498echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9499if test "${ac_cv_func_shl_load+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501else
9502 cat >conftest.$ac_ext <<_ACEOF
9503/* confdefs.h. */
9504_ACEOF
9505cat confdefs.h >>conftest.$ac_ext
9506cat >>conftest.$ac_ext <<_ACEOF
9507/* end confdefs.h. */
9508/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9510#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009512/* System header to define __stub macros and hopefully few prototypes,
9513 which can conflict with char shl_load (); below.
9514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9515 <limits.h> exists even on freestanding compilers. */
9516
9517#ifdef __STDC__
9518# include <limits.h>
9519#else
9520# include <assert.h>
9521#endif
9522
9523#undef shl_load
9524
9525/* Override any GCC internal prototype to avoid an error.
9526 Use char because int might match the return type of a GCC
9527 builtin and then its argument prototype would still apply. */
9528#ifdef __cplusplus
9529extern "C"
9530#endif
9531char shl_load ();
9532/* The GNU C library defines this for functions which it implements
9533 to always fail with ENOSYS. Some functions are actually named
9534 something starting with __ and the normal name is an alias. */
9535#if defined __stub_shl_load || defined __stub___shl_load
9536choke me
9537#endif
9538
9539int
9540main ()
9541{
9542return shl_load ();
9543 ;
9544 return 0;
9545}
9546_ACEOF
9547rm -f conftest.$ac_objext conftest$ac_exeext
9548if { (ac_try="$ac_link"
9549case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9552esac
9553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_link") 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9562 { (case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9565esac
9566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_try") 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest$ac_exeext'
9572 { (case "(($ac_try" in
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9575esac
9576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_try") 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_cv_func_shl_load=yes
9582else
9583 echo "$as_me: failed program was:" >&5
9584sed 's/^/| /' conftest.$ac_ext >&5
9585
9586 ac_cv_func_shl_load=no
9587fi
9588
9589rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591fi
9592{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9593echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9594if test $ac_cv_func_shl_load = yes; then
9595
9596cat >>confdefs.h <<\_ACEOF
9597#define HAVE_SHL_LOAD 1
9598_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009599
9600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009601 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9602echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9603if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605else
9606 ac_check_lib_save_LIBS=$LIBS
9607LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009608cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h. */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009613/* end confdefs.h. */
9614
Reid Spencera773bd52006-08-04 18:18:08 +00009615/* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618#ifdef __cplusplus
9619extern "C"
9620#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009621char shl_load ();
9622int
9623main ()
9624{
Reid Spencera773bd52006-08-04 18:18:08 +00009625return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009626 ;
9627 return 0;
9628}
9629_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009630rm -f conftest.$ac_objext conftest$ac_exeext
9631if { (ac_try="$ac_link"
9632case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635esac
9636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9645 { (case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9648esac
9649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_try") 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest$ac_exeext'
9655 { (case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658esac
9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_try") 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009664 ac_cv_lib_dld_shl_load=yes
9665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009666 echo "$as_me: failed program was:" >&5
9667sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009671
Bill Wendlingebcceee2009-04-18 11:20:33 +00009672rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009673 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674LIBS=$ac_check_lib_save_LIBS
9675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009676{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9677echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9678if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009680cat >>confdefs.h <<\_ACEOF
9681#define HAVE_SHL_LOAD 1
9682_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683
9684 LIBADD_DL="$LIBADD_DL -ldld"
9685else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009686 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9687echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9688if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009690else
9691 ac_check_lib_save_LIBS=$LIBS
9692LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009693cat >conftest.$ac_ext <<_ACEOF
9694/* confdefs.h. */
9695_ACEOF
9696cat confdefs.h >>conftest.$ac_ext
9697cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009698/* end confdefs.h. */
9699
Reid Spencera773bd52006-08-04 18:18:08 +00009700/* Override any GCC internal prototype to avoid an error.
9701 Use char because int might match the return type of a GCC
9702 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009703#ifdef __cplusplus
9704extern "C"
9705#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009706char dlopen ();
9707int
9708main ()
9709{
Reid Spencera773bd52006-08-04 18:18:08 +00009710return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009711 ;
9712 return 0;
9713}
9714_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009715rm -f conftest.$ac_objext conftest$ac_exeext
9716if { (ac_try="$ac_link"
9717case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720esac
9721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_link") 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9730 { (case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733esac
9734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_try") 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest$ac_exeext'
9740 { (case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9743esac
9744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_try") 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009749 ac_cv_lib_dl_dlopen=yes
9750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009751 echo "$as_me: failed program was:" >&5
9752sed 's/^/| /' conftest.$ac_ext >&5
9753
9754 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009756
Bill Wendlingebcceee2009-04-18 11:20:33 +00009757rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009758 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009759LIBS=$ac_check_lib_save_LIBS
9760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009761{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9762echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9763if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009765cat >>confdefs.h <<\_ACEOF
9766#define HAVE_LIBDL 1
9767_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768
9769 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009771 cat >conftest.$ac_ext <<_ACEOF
9772/* confdefs.h. */
9773_ACEOF
9774cat confdefs.h >>conftest.$ac_ext
9775cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776/* end confdefs.h. */
9777#if HAVE_DLFCN_H
9778# include <dlfcn.h>
9779#endif
9780
9781int
9782main ()
9783{
9784dlopen(0, 0);
9785 ;
9786 return 0;
9787}
9788_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009789rm -f conftest.$ac_objext conftest$ac_exeext
9790if { (ac_try="$ac_link"
9791case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794esac
9795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
9797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807esac
9808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_try") 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009824cat >>confdefs.h <<\_ACEOF
9825#define HAVE_LIBDL 1
9826_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827 libltdl_cv_func_dlopen="yes"
9828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009829 echo "$as_me: failed program was:" >&5
9830sed 's/^/| /' conftest.$ac_ext >&5
9831
9832 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9833echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9834if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009836else
9837 ac_check_lib_save_LIBS=$LIBS
9838LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009839cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h. */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844/* end confdefs.h. */
9845
Reid Spencera773bd52006-08-04 18:18:08 +00009846/* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849#ifdef __cplusplus
9850extern "C"
9851#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852char dlopen ();
9853int
9854main ()
9855{
Reid Spencera773bd52006-08-04 18:18:08 +00009856return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857 ;
9858 return 0;
9859}
9860_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009861rm -f conftest.$ac_objext conftest$ac_exeext
9862if { (ac_try="$ac_link"
9863case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866esac
9867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_link") 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879esac
9880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try='test -s conftest$ac_exeext'
9886 { (case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9889esac
9890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_try") 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009895 ac_cv_lib_svld_dlopen=yes
9896else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009897 echo "$as_me: failed program was:" >&5
9898sed 's/^/| /' conftest.$ac_ext >&5
9899
9900 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009902
Bill Wendlingebcceee2009-04-18 11:20:33 +00009903rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009904 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905LIBS=$ac_check_lib_save_LIBS
9906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009907{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9908echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9909if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009911cat >>confdefs.h <<\_ACEOF
9912#define HAVE_LIBDL 1
9913_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914
9915 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9916else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009917 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9918echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9919if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921else
9922 ac_check_lib_save_LIBS=$LIBS
9923LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009924cat >conftest.$ac_ext <<_ACEOF
9925/* confdefs.h. */
9926_ACEOF
9927cat confdefs.h >>conftest.$ac_ext
9928cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009929/* end confdefs.h. */
9930
Reid Spencera773bd52006-08-04 18:18:08 +00009931/* Override any GCC internal prototype to avoid an error.
9932 Use char because int might match the return type of a GCC
9933 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934#ifdef __cplusplus
9935extern "C"
9936#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937char dld_link ();
9938int
9939main ()
9940{
Reid Spencera773bd52006-08-04 18:18:08 +00009941return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942 ;
9943 return 0;
9944}
9945_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009946rm -f conftest.$ac_objext conftest$ac_exeext
9947if { (ac_try="$ac_link"
9948case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961 { (case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_try") 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974esac
9975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_try") 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009980 ac_cv_lib_dld_dld_link=yes
9981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009982 echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009986fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009987
Bill Wendlingebcceee2009-04-18 11:20:33 +00009988rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009989 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990LIBS=$ac_check_lib_save_LIBS
9991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009992{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9993echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9994if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009996cat >>confdefs.h <<\_ACEOF
9997#define HAVE_DLD 1
9998_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999
10000 LIBADD_DL="$LIBADD_DL -ldld"
10001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010002 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10003echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10004if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006else
10007 cat >conftest.$ac_ext <<_ACEOF
10008/* confdefs.h. */
10009_ACEOF
10010cat confdefs.h >>conftest.$ac_ext
10011cat >>conftest.$ac_ext <<_ACEOF
10012/* end confdefs.h. */
10013/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10015#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010017/* System header to define __stub macros and hopefully few prototypes,
10018 which can conflict with char _dyld_func_lookup (); below.
10019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10020 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010022#ifdef __STDC__
10023# include <limits.h>
10024#else
10025# include <assert.h>
10026#endif
10027
10028#undef _dyld_func_lookup
10029
10030/* Override any GCC internal prototype to avoid an error.
10031 Use char because int might match the return type of a GCC
10032 builtin and then its argument prototype would still apply. */
10033#ifdef __cplusplus
10034extern "C"
10035#endif
10036char _dyld_func_lookup ();
10037/* The GNU C library defines this for functions which it implements
10038 to always fail with ENOSYS. Some functions are actually named
10039 something starting with __ and the normal name is an alias. */
10040#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10041choke me
10042#endif
10043
10044int
10045main ()
10046{
10047return _dyld_func_lookup ();
10048 ;
10049 return 0;
10050}
10051_ACEOF
10052rm -f conftest.$ac_objext conftest$ac_exeext
10053if { (ac_try="$ac_link"
10054case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057esac
10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_link") 2>conftest.er1
10060 ac_status=$?
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10067 { (case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10070esac
10071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_try") 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try='test -s conftest$ac_exeext'
10077 { (case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080esac
10081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_try") 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_cv_func__dyld_func_lookup=yes
10087else
10088 echo "$as_me: failed program was:" >&5
10089sed 's/^/| /' conftest.$ac_ext >&5
10090
10091 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092fi
Reid Spencera773bd52006-08-04 18:18:08 +000010093
Bill Wendlingebcceee2009-04-18 11:20:33 +000010094rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010095 conftest$ac_exeext conftest.$ac_ext
10096fi
10097{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10098echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10099if test $ac_cv_func__dyld_func_lookup = yes; then
10100
10101cat >>confdefs.h <<\_ACEOF
10102#define HAVE_DYLD 1
10103_ACEOF
10104
10105fi
10106
10107
10108fi
10109
10110
10111fi
10112
10113
10114fi
10115
10116rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118
10119fi
10120
10121
10122fi
10123
10124
10125fi
10126
10127
10128if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10129then
10130 lt_save_LIBS="$LIBS"
10131 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010132
10133for ac_func in dlerror
10134do
10135as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10136{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10137echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10138if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10140else
10141 cat >conftest.$ac_ext <<_ACEOF
10142/* confdefs.h. */
10143_ACEOF
10144cat confdefs.h >>conftest.$ac_ext
10145cat >>conftest.$ac_ext <<_ACEOF
10146/* end confdefs.h. */
10147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10149#define $ac_func innocuous_$ac_func
10150
10151/* System header to define __stub macros and hopefully few prototypes,
10152 which can conflict with char $ac_func (); below.
10153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10154 <limits.h> exists even on freestanding compilers. */
10155
10156#ifdef __STDC__
10157# include <limits.h>
10158#else
10159# include <assert.h>
10160#endif
10161
10162#undef $ac_func
10163
10164/* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10167#ifdef __cplusplus
10168extern "C"
10169#endif
10170char $ac_func ();
10171/* The GNU C library defines this for functions which it implements
10172 to always fail with ENOSYS. Some functions are actually named
10173 something starting with __ and the normal name is an alias. */
10174#if defined __stub_$ac_func || defined __stub___$ac_func
10175choke me
10176#endif
10177
10178int
10179main ()
10180{
10181return $ac_func ();
10182 ;
10183 return 0;
10184}
10185_ACEOF
10186rm -f conftest.$ac_objext conftest$ac_exeext
10187if { (ac_try="$ac_link"
10188case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191esac
10192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_link") 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10201 { (case "(($ac_try" in
10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203 *) ac_try_echo=$ac_try;;
10204esac
10205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206 (eval "$ac_try") 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; } &&
10210 { ac_try='test -s conftest$ac_exeext'
10211 { (case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214esac
10215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_try") 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 eval "$as_ac_var=yes"
10221else
10222 echo "$as_me: failed program was:" >&5
10223sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 eval "$as_ac_var=no"
10226fi
10227
10228rm -f core conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230fi
10231ac_res=`eval echo '${'$as_ac_var'}'`
10232 { echo "$as_me:$LINENO: result: $ac_res" >&5
10233echo "${ECHO_T}$ac_res" >&6; }
10234if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237_ACEOF
10238
10239fi
10240done
10241
10242 LIBS="$lt_save_LIBS"
10243fi
10244ac_ext=c
10245ac_cpp='$CPP $CPPFLAGS'
10246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10248ac_compiler_gnu=$ac_cv_c_compiler_gnu
10249
10250
10251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010252{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10253echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10254if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256else
10257 ac_cv_sys_symbol_underscore=no
10258 cat > conftest.$ac_ext <<EOF
10259void nm_test_func(){}
10260int main(){nm_test_func;return 0;}
10261EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263 (eval $ac_compile) 2>&5
10264 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267 # Now try to grab the symbols.
10268 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010269 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 +000010270 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10271 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010274 # See whether the symbols have a leading underscore.
10275 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10276 ac_cv_sys_symbol_underscore=yes
10277 else
10278 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10279 :
10280 else
10281 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10282 fi
10283 fi
10284 else
10285 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10286 fi
10287 else
10288 echo "configure: failed program was:" >&5
10289 cat conftest.c >&5
10290 fi
10291 rm -rf conftest*
10292
10293fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010294{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10295echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296
10297
10298if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10299 if test x"$libltdl_cv_func_dlopen" = xyes ||
10300 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010301 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10302echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10303if test "${libltdl_cv_need_uscore+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305else
10306 libltdl_cv_need_uscore=unknown
10307 save_LIBS="$LIBS"
10308 LIBS="$LIBS $LIBADD_DL"
10309 if test "$cross_compiling" = yes; then :
10310 libltdl_cv_need_uscore=cross
10311else
10312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10313 lt_status=$lt_dlunknown
10314 cat > conftest.$ac_ext <<EOF
Andrew Kaylor770b97b2012-09-28 17:35:20 +000010315#line 10315 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010316#include "confdefs.h"
10317
10318#if HAVE_DLFCN_H
10319#include <dlfcn.h>
10320#endif
10321
10322#include <stdio.h>
10323
10324#ifdef RTLD_GLOBAL
10325# define LT_DLGLOBAL RTLD_GLOBAL
10326#else
10327# ifdef DL_GLOBAL
10328# define LT_DLGLOBAL DL_GLOBAL
10329# else
10330# define LT_DLGLOBAL 0
10331# endif
10332#endif
10333
10334/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10335 find out it does not work in some platform. */
10336#ifndef LT_DLLAZY_OR_NOW
10337# ifdef RTLD_LAZY
10338# define LT_DLLAZY_OR_NOW RTLD_LAZY
10339# else
10340# ifdef DL_LAZY
10341# define LT_DLLAZY_OR_NOW DL_LAZY
10342# else
10343# ifdef RTLD_NOW
10344# define LT_DLLAZY_OR_NOW RTLD_NOW
10345# else
10346# ifdef DL_NOW
10347# define LT_DLLAZY_OR_NOW DL_NOW
10348# else
10349# define LT_DLLAZY_OR_NOW 0
10350# endif
10351# endif
10352# endif
10353# endif
10354#endif
10355
10356#ifdef __cplusplus
10357extern "C" void exit (int);
10358#endif
10359
10360void fnord() { int i=42;}
10361int main ()
10362{
10363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10364 int status = $lt_dlunknown;
10365
10366 if (self)
10367 {
10368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10369 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10370 /* dlclose (self); */
10371 }
Reid Spencera773bd52006-08-04 18:18:08 +000010372 else
10373 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010374
10375 exit (status);
10376}
10377EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010379 (eval $ac_link) 2>&5
10380 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010383 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384 lt_status=$?
10385 case x$lt_status in
10386 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10387 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010388 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389 esac
10390 else :
10391 # compilation failed
10392
10393 fi
10394fi
10395rm -fr conftest*
10396
10397 LIBS="$save_LIBS"
10398
10399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010400{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10401echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402 fi
10403fi
10404
10405if test x"$libltdl_cv_need_uscore" = xyes; then
10406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010407cat >>confdefs.h <<\_ACEOF
10408#define NEED_USCORE 1
10409_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410
10411fi
10412
10413
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010414{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10415echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10416if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418else
10419 # PORTME does your system automatically load deplibs for dlopen?
10420 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10421 # For now, we just catch OSes we know something about -- in the
10422 # future, we'll try test this programmatically.
10423 libltdl_cv_sys_dlopen_deplibs=unknown
10424 case "$host_os" in
10425 aix3*|aix4.1.*|aix4.2.*)
10426 # Unknown whether this is true for these versions of AIX, but
10427 # we want this `case' here to explicitly catch those versions.
10428 libltdl_cv_sys_dlopen_deplibs=unknown
10429 ;;
10430 aix[45]*)
10431 libltdl_cv_sys_dlopen_deplibs=yes
10432 ;;
10433 darwin*)
10434 # Assuming the user has installed a libdl from somewhere, this is true
10435 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10436 libltdl_cv_sys_dlopen_deplibs=yes
10437 ;;
10438 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10439 # GNU and its variants, using gnu ld.so (Glibc)
10440 libltdl_cv_sys_dlopen_deplibs=yes
10441 ;;
10442 hpux10*|hpux11*)
10443 libltdl_cv_sys_dlopen_deplibs=yes
10444 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010445 interix*)
10446 libltdl_cv_sys_dlopen_deplibs=yes
10447 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448 irix[12345]*|irix6.[01]*)
10449 # Catch all versions of IRIX before 6.2, and indicate that we don't
10450 # know how it worked for any of those versions.
10451 libltdl_cv_sys_dlopen_deplibs=unknown
10452 ;;
10453 irix*)
10454 # The case above catches anything before 6.2, and it's known that
10455 # at 6.2 and later dlopen does load deplibs.
10456 libltdl_cv_sys_dlopen_deplibs=yes
10457 ;;
10458 netbsd*)
10459 libltdl_cv_sys_dlopen_deplibs=yes
10460 ;;
10461 openbsd*)
10462 libltdl_cv_sys_dlopen_deplibs=yes
10463 ;;
10464 osf[1234]*)
10465 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10466 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010467 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010468 libltdl_cv_sys_dlopen_deplibs=no
10469 ;;
10470 osf5.0|osf5.0a|osf5.1)
10471 # dlopen *does* load deplibs and with the right loader patch applied
10472 # it even uses RPATH in a shared library to search for shared objects
10473 # that the library depends on, but there's no easy way to know if that
10474 # patch is installed. Since this is the case, all we can really
10475 # say is unknown -- it depends on the patch being installed. If
10476 # it is, this changes to `yes'. Without it, it would be `no'.
10477 libltdl_cv_sys_dlopen_deplibs=unknown
10478 ;;
10479 osf*)
10480 # the two cases above should catch all versions of osf <= 5.1. Read
10481 # the comments above for what we know about them.
10482 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10483 # is used to find them so we can finally say `yes'.
10484 libltdl_cv_sys_dlopen_deplibs=yes
10485 ;;
10486 solaris*)
10487 libltdl_cv_sys_dlopen_deplibs=yes
10488 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10490 libltdl_cv_sys_dlopen_deplibs=yes
10491 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010492 esac
10493
10494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010495{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10496echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010499cat >>confdefs.h <<\_ACEOF
10500#define LTDL_DLOPEN_DEPLIBS 1
10501_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502
10503fi
10504
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010505
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010507do
10508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10514fi
10515ac_res=`eval echo '${'$as_ac_Header'}'`
10516 { echo "$as_me:$LINENO: result: $ac_res" >&5
10517echo "${ECHO_T}$ac_res" >&6; }
10518else
10519 # Is the header compilable?
10520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10522cat >conftest.$ac_ext <<_ACEOF
10523/* confdefs.h. */
10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h. */
10528$ac_includes_default
10529#include <$ac_header>
10530_ACEOF
10531rm -f conftest.$ac_objext
10532if { (ac_try="$ac_compile"
10533case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536esac
10537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_compile") 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10546 { (case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549esac
10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_try") 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest.$ac_objext'
10556 { (case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559esac
10560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_try") 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 ac_header_compiler=yes
10566else
10567 echo "$as_me: failed program was:" >&5
10568sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 ac_header_compiler=no
10571fi
10572
10573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10575echo "${ECHO_T}$ac_header_compiler" >&6; }
10576
10577# Is the header present?
10578{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10580cat >conftest.$ac_ext <<_ACEOF
10581/* confdefs.h. */
10582_ACEOF
10583cat confdefs.h >>conftest.$ac_ext
10584cat >>conftest.$ac_ext <<_ACEOF
10585/* end confdefs.h. */
10586#include <$ac_header>
10587_ACEOF
10588if { (ac_try="$ac_cpp conftest.$ac_ext"
10589case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592esac
10593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } >/dev/null; then
10601 if test -s conftest.err; then
10602 ac_cpp_err=$ac_c_preproc_warn_flag
10603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10604 else
10605 ac_cpp_err=
10606 fi
10607else
10608 ac_cpp_err=yes
10609fi
10610if test -z "$ac_cpp_err"; then
10611 ac_header_preproc=yes
10612else
10613 echo "$as_me: failed program was:" >&5
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
10616 ac_header_preproc=no
10617fi
10618
10619rm -f conftest.err conftest.$ac_ext
10620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10621echo "${ECHO_T}$ac_header_preproc" >&6; }
10622
10623# So? What about this header?
10624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10625 yes:no: )
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10630 ac_header_preproc=yes
10631 ;;
10632 no:yes:* )
10633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10640echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10645 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010646## ------------------------------------ ##
10647## Report this to http://llvm.org/bugs/ ##
10648## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010649_ASBOX
10650 ) | sed "s/^/$as_me: WARNING: /" >&2
10651 ;;
10652esac
10653{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10657else
10658 eval "$as_ac_Header=\$ac_header_preproc"
10659fi
10660ac_res=`eval echo '${'$as_ac_Header'}'`
10661 { echo "$as_me:$LINENO: result: $ac_res" >&5
10662echo "${ECHO_T}$ac_res" >&6; }
10663
10664fi
10665if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010667#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668_ACEOF
10669
10670fi
10671
10672done
10673
10674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010675{ echo "$as_me:$LINENO: checking for error_t" >&5
10676echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10677if test "${ac_cv_type_error_t+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679else
10680 cat >conftest.$ac_ext <<_ACEOF
10681/* confdefs.h. */
10682_ACEOF
10683cat confdefs.h >>conftest.$ac_ext
10684cat >>conftest.$ac_ext <<_ACEOF
10685/* end confdefs.h. */
10686#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687# include <argz.h>
10688#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010689
10690typedef error_t ac__type_new_;
10691int
10692main ()
10693{
10694if ((ac__type_new_ *) 0)
10695 return 0;
10696if (sizeof (ac__type_new_))
10697 return 0;
10698 ;
10699 return 0;
10700}
10701_ACEOF
10702rm -f conftest.$ac_objext
10703if { (ac_try="$ac_compile"
10704case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707esac
10708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_compile") 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10717 { (case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10720esac
10721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_try") 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730esac
10731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_type_error_t=yes
10737else
10738 echo "$as_me: failed program was:" >&5
10739sed 's/^/| /' conftest.$ac_ext >&5
10740
10741 ac_cv_type_error_t=no
10742fi
10743
10744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10745fi
10746{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10747echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10748if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749
10750cat >>confdefs.h <<_ACEOF
10751#define HAVE_ERROR_T 1
10752_ACEOF
10753
10754
10755else
10756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010757cat >>confdefs.h <<\_ACEOF
10758#define error_t int
10759_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760
10761fi
10762
10763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010764
10765
10766
10767
10768
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010770do
10771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10772{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10774if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776else
10777 cat >conftest.$ac_ext <<_ACEOF
10778/* confdefs.h. */
10779_ACEOF
10780cat confdefs.h >>conftest.$ac_ext
10781cat >>conftest.$ac_ext <<_ACEOF
10782/* end confdefs.h. */
10783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10785#define $ac_func innocuous_$ac_func
10786
10787/* System header to define __stub macros and hopefully few prototypes,
10788 which can conflict with char $ac_func (); below.
10789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10790 <limits.h> exists even on freestanding compilers. */
10791
10792#ifdef __STDC__
10793# include <limits.h>
10794#else
10795# include <assert.h>
10796#endif
10797
10798#undef $ac_func
10799
10800/* Override any GCC internal prototype to avoid an error.
10801 Use char because int might match the return type of a GCC
10802 builtin and then its argument prototype would still apply. */
10803#ifdef __cplusplus
10804extern "C"
10805#endif
10806char $ac_func ();
10807/* The GNU C library defines this for functions which it implements
10808 to always fail with ENOSYS. Some functions are actually named
10809 something starting with __ and the normal name is an alias. */
10810#if defined __stub_$ac_func || defined __stub___$ac_func
10811choke me
10812#endif
10813
10814int
10815main ()
10816{
10817return $ac_func ();
10818 ;
10819 return 0;
10820}
10821_ACEOF
10822rm -f conftest.$ac_objext conftest$ac_exeext
10823if { (ac_try="$ac_link"
10824case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10827esac
10828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_link") 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10837 { (case "(($ac_try" in
10838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10839 *) ac_try_echo=$ac_try;;
10840esac
10841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10842 (eval "$ac_try") 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest$ac_exeext'
10847 { (case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850esac
10851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_try") 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 eval "$as_ac_var=yes"
10857else
10858 echo "$as_me: failed program was:" >&5
10859sed 's/^/| /' conftest.$ac_ext >&5
10860
10861 eval "$as_ac_var=no"
10862fi
10863
10864rm -f core conftest.err conftest.$ac_objext \
10865 conftest$ac_exeext conftest.$ac_ext
10866fi
10867ac_res=`eval echo '${'$as_ac_var'}'`
10868 { echo "$as_me:$LINENO: result: $ac_res" >&5
10869echo "${ECHO_T}$ac_res" >&6; }
10870if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010871 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010873_ACEOF
10874
10875fi
10876done
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010897
10898
10899
10900
10901
10902
10903
10904
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010905for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10906 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010907do
10908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914fi
10915ac_res=`eval echo '${'$as_ac_Header'}'`
10916 { echo "$as_me:$LINENO: result: $ac_res" >&5
10917echo "${ECHO_T}$ac_res" >&6; }
10918else
10919 # Is the header compilable?
10920{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10922cat >conftest.$ac_ext <<_ACEOF
10923/* confdefs.h. */
10924_ACEOF
10925cat confdefs.h >>conftest.$ac_ext
10926cat >>conftest.$ac_ext <<_ACEOF
10927/* end confdefs.h. */
10928$ac_includes_default
10929#include <$ac_header>
10930_ACEOF
10931rm -f conftest.$ac_objext
10932if { (ac_try="$ac_compile"
10933case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936esac
10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_compile") 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10946 { (case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949esac
10950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_try") 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest.$ac_objext'
10956 { (case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10959esac
10960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_try") 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_header_compiler=yes
10966else
10967 echo "$as_me: failed program was:" >&5
10968sed 's/^/| /' conftest.$ac_ext >&5
10969
10970 ac_header_compiler=no
10971fi
10972
10973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10975echo "${ECHO_T}$ac_header_compiler" >&6; }
10976
10977# Is the header present?
10978{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10980cat >conftest.$ac_ext <<_ACEOF
10981/* confdefs.h. */
10982_ACEOF
10983cat confdefs.h >>conftest.$ac_ext
10984cat >>conftest.$ac_ext <<_ACEOF
10985/* end confdefs.h. */
10986#include <$ac_header>
10987_ACEOF
10988if { (ac_try="$ac_cpp conftest.$ac_ext"
10989case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992esac
10993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } >/dev/null; then
11001 if test -s conftest.err; then
11002 ac_cpp_err=$ac_c_preproc_warn_flag
11003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11004 else
11005 ac_cpp_err=
11006 fi
11007else
11008 ac_cpp_err=yes
11009fi
11010if test -z "$ac_cpp_err"; then
11011 ac_header_preproc=yes
11012else
11013 echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
11016 ac_header_preproc=no
11017fi
11018
11019rm -f conftest.err conftest.$ac_ext
11020{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11021echo "${ECHO_T}$ac_header_preproc" >&6; }
11022
11023# So? What about this header?
11024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11025 yes:no: )
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11030 ac_header_preproc=yes
11031 ;;
11032 no:yes:* )
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11045 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011046## ------------------------------------ ##
11047## Report this to http://llvm.org/bugs/ ##
11048## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011049_ASBOX
11050 ) | sed "s/^/$as_me: WARNING: /" >&2
11051 ;;
11052esac
11053{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057else
11058 eval "$as_ac_Header=\$ac_header_preproc"
11059fi
11060ac_res=`eval echo '${'$as_ac_Header'}'`
11061 { echo "$as_me:$LINENO: result: $ac_res" >&5
11062echo "${ECHO_T}$ac_res" >&6; }
11063
11064fi
11065if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068_ACEOF
11069
11070fi
11071
11072done
11073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011074
11075
11076
11077
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011079do
11080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086fi
11087ac_res=`eval echo '${'$as_ac_Header'}'`
11088 { echo "$as_me:$LINENO: result: $ac_res" >&5
11089echo "${ECHO_T}$ac_res" >&6; }
11090else
11091 # Is the header compilable?
11092{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11094cat >conftest.$ac_ext <<_ACEOF
11095/* confdefs.h. */
11096_ACEOF
11097cat confdefs.h >>conftest.$ac_ext
11098cat >>conftest.$ac_ext <<_ACEOF
11099/* end confdefs.h. */
11100$ac_includes_default
11101#include <$ac_header>
11102_ACEOF
11103rm -f conftest.$ac_objext
11104if { (ac_try="$ac_compile"
11105case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108esac
11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_compile") 2>conftest.er1
11111 ac_status=$?
11112 grep -v '^ *+' conftest.er1 >conftest.err
11113 rm -f conftest.er1
11114 cat conftest.err >&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11118 { (case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121esac
11122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_try") 2>&5
11124 ac_status=$?
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; } &&
11127 { ac_try='test -s conftest.$ac_objext'
11128 { (case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11131esac
11132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_try") 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 ac_header_compiler=yes
11138else
11139 echo "$as_me: failed program was:" >&5
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
11142 ac_header_compiler=no
11143fi
11144
11145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11146{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11147echo "${ECHO_T}$ac_header_compiler" >&6; }
11148
11149# Is the header present?
11150{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11152cat >conftest.$ac_ext <<_ACEOF
11153/* confdefs.h. */
11154_ACEOF
11155cat confdefs.h >>conftest.$ac_ext
11156cat >>conftest.$ac_ext <<_ACEOF
11157/* end confdefs.h. */
11158#include <$ac_header>
11159_ACEOF
11160if { (ac_try="$ac_cpp conftest.$ac_ext"
11161case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11164esac
11165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11167 ac_status=$?
11168 grep -v '^ *+' conftest.er1 >conftest.err
11169 rm -f conftest.er1
11170 cat conftest.err >&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } >/dev/null; then
11173 if test -s conftest.err; then
11174 ac_cpp_err=$ac_c_preproc_warn_flag
11175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11176 else
11177 ac_cpp_err=
11178 fi
11179else
11180 ac_cpp_err=yes
11181fi
11182if test -z "$ac_cpp_err"; then
11183 ac_header_preproc=yes
11184else
11185 echo "$as_me: failed program was:" >&5
11186sed 's/^/| /' conftest.$ac_ext >&5
11187
11188 ac_header_preproc=no
11189fi
11190
11191rm -f conftest.err conftest.$ac_ext
11192{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11193echo "${ECHO_T}$ac_header_preproc" >&6; }
11194
11195# So? What about this header?
11196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11197 yes:no: )
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11202 ac_header_preproc=yes
11203 ;;
11204 no:yes:* )
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11217 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011218## ------------------------------------ ##
11219## Report this to http://llvm.org/bugs/ ##
11220## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011221_ASBOX
11222 ) | sed "s/^/$as_me: WARNING: /" >&2
11223 ;;
11224esac
11225{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229else
11230 eval "$as_ac_Header=\$ac_header_preproc"
11231fi
11232ac_res=`eval echo '${'$as_ac_Header'}'`
11233 { echo "$as_me:$LINENO: result: $ac_res" >&5
11234echo "${ECHO_T}$ac_res" >&6; }
11235
11236fi
11237if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011238 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240_ACEOF
11241
11242fi
11243
11244done
11245
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011246
11247
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011249do
11250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256fi
11257ac_res=`eval echo '${'$as_ac_Header'}'`
11258 { echo "$as_me:$LINENO: result: $ac_res" >&5
11259echo "${ECHO_T}$ac_res" >&6; }
11260else
11261 # Is the header compilable?
11262{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11264cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
11270$ac_includes_default
11271#include <$ac_header>
11272_ACEOF
11273rm -f conftest.$ac_objext
11274if { (ac_try="$ac_compile"
11275case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11278esac
11279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_compile") 2>conftest.er1
11281 ac_status=$?
11282 grep -v '^ *+' conftest.er1 >conftest.err
11283 rm -f conftest.er1
11284 cat conftest.err >&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } &&
11287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11288 { (case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291esac
11292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_try") 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
11298 { (case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11301esac
11302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_try") 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 ac_header_compiler=yes
11308else
11309 echo "$as_me: failed program was:" >&5
11310sed 's/^/| /' conftest.$ac_ext >&5
11311
11312 ac_header_compiler=no
11313fi
11314
11315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11317echo "${ECHO_T}$ac_header_compiler" >&6; }
11318
11319# Is the header present?
11320{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11321echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11322cat >conftest.$ac_ext <<_ACEOF
11323/* confdefs.h. */
11324_ACEOF
11325cat confdefs.h >>conftest.$ac_ext
11326cat >>conftest.$ac_ext <<_ACEOF
11327/* end confdefs.h. */
11328#include <$ac_header>
11329_ACEOF
11330if { (ac_try="$ac_cpp conftest.$ac_ext"
11331case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } >/dev/null; then
11343 if test -s conftest.err; then
11344 ac_cpp_err=$ac_c_preproc_warn_flag
11345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11346 else
11347 ac_cpp_err=
11348 fi
11349else
11350 ac_cpp_err=yes
11351fi
11352if test -z "$ac_cpp_err"; then
11353 ac_header_preproc=yes
11354else
11355 echo "$as_me: failed program was:" >&5
11356sed 's/^/| /' conftest.$ac_ext >&5
11357
11358 ac_header_preproc=no
11359fi
11360
11361rm -f conftest.err conftest.$ac_ext
11362{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11363echo "${ECHO_T}$ac_header_preproc" >&6; }
11364
11365# So? What about this header?
11366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11367 yes:no: )
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11369echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11371echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11372 ac_header_preproc=yes
11373 ;;
11374 no:yes:* )
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11376echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11378echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11380echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11382echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11384echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11386echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11387 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011388## ------------------------------------ ##
11389## Report this to http://llvm.org/bugs/ ##
11390## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011391_ASBOX
11392 ) | sed "s/^/$as_me: WARNING: /" >&2
11393 ;;
11394esac
11395{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399else
11400 eval "$as_ac_Header=\$ac_header_preproc"
11401fi
11402ac_res=`eval echo '${'$as_ac_Header'}'`
11403 { echo "$as_me:$LINENO: result: $ac_res" >&5
11404echo "${ECHO_T}$ac_res" >&6; }
11405
11406fi
11407if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011410_ACEOF
11411 break
11412fi
11413
11414done
11415
11416
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011417
11418
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011420do
11421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11422{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11424if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11426else
11427 cat >conftest.$ac_ext <<_ACEOF
11428/* confdefs.h. */
11429_ACEOF
11430cat confdefs.h >>conftest.$ac_ext
11431cat >>conftest.$ac_ext <<_ACEOF
11432/* end confdefs.h. */
11433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11435#define $ac_func innocuous_$ac_func
11436
11437/* System header to define __stub macros and hopefully few prototypes,
11438 which can conflict with char $ac_func (); below.
11439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11440 <limits.h> exists even on freestanding compilers. */
11441
11442#ifdef __STDC__
11443# include <limits.h>
11444#else
11445# include <assert.h>
11446#endif
11447
11448#undef $ac_func
11449
11450/* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11453#ifdef __cplusplus
11454extern "C"
11455#endif
11456char $ac_func ();
11457/* The GNU C library defines this for functions which it implements
11458 to always fail with ENOSYS. Some functions are actually named
11459 something starting with __ and the normal name is an alias. */
11460#if defined __stub_$ac_func || defined __stub___$ac_func
11461choke me
11462#endif
11463
11464int
11465main ()
11466{
11467return $ac_func ();
11468 ;
11469 return 0;
11470}
11471_ACEOF
11472rm -f conftest.$ac_objext conftest$ac_exeext
11473if { (ac_try="$ac_link"
11474case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477esac
11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_link") 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11487 { (case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490esac
11491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11492 (eval "$ac_try") 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest$ac_exeext'
11497 { (case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500esac
11501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_try") 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 eval "$as_ac_var=yes"
11507else
11508 echo "$as_me: failed program was:" >&5
11509sed 's/^/| /' conftest.$ac_ext >&5
11510
11511 eval "$as_ac_var=no"
11512fi
11513
11514rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516fi
11517ac_res=`eval echo '${'$as_ac_var'}'`
11518 { echo "$as_me:$LINENO: result: $ac_res" >&5
11519echo "${ECHO_T}$ac_res" >&6; }
11520if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011521 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523_ACEOF
11524 break
11525fi
11526done
11527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011528
11529
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011531do
11532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11533{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11535if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537else
11538 cat >conftest.$ac_ext <<_ACEOF
11539/* confdefs.h. */
11540_ACEOF
11541cat confdefs.h >>conftest.$ac_ext
11542cat >>conftest.$ac_ext <<_ACEOF
11543/* end confdefs.h. */
11544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11546#define $ac_func innocuous_$ac_func
11547
11548/* System header to define __stub macros and hopefully few prototypes,
11549 which can conflict with char $ac_func (); below.
11550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11551 <limits.h> exists even on freestanding compilers. */
11552
11553#ifdef __STDC__
11554# include <limits.h>
11555#else
11556# include <assert.h>
11557#endif
11558
11559#undef $ac_func
11560
11561/* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11564#ifdef __cplusplus
11565extern "C"
11566#endif
11567char $ac_func ();
11568/* The GNU C library defines this for functions which it implements
11569 to always fail with ENOSYS. Some functions are actually named
11570 something starting with __ and the normal name is an alias. */
11571#if defined __stub_$ac_func || defined __stub___$ac_func
11572choke me
11573#endif
11574
11575int
11576main ()
11577{
11578return $ac_func ();
11579 ;
11580 return 0;
11581}
11582_ACEOF
11583rm -f conftest.$ac_objext conftest$ac_exeext
11584if { (ac_try="$ac_link"
11585case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588esac
11589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_link") 2>conftest.er1
11591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
11597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11598 { (case "(($ac_try" in
11599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11601esac
11602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_try") 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (case "(($ac_try" in
11609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610 *) ac_try_echo=$ac_try;;
11611esac
11612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613 (eval "$ac_try") 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 eval "$as_ac_var=yes"
11618else
11619 echo "$as_me: failed program was:" >&5
11620sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 eval "$as_ac_var=no"
11623fi
11624
11625rm -f core conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11627fi
11628ac_res=`eval echo '${'$as_ac_var'}'`
11629 { echo "$as_me:$LINENO: result: $ac_res" >&5
11630echo "${ECHO_T}$ac_res" >&6; }
11631if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011632 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634_ACEOF
11635 break
11636fi
11637done
11638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011639
11640
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011642do
11643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11644{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11646if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648else
11649 cat >conftest.$ac_ext <<_ACEOF
11650/* confdefs.h. */
11651_ACEOF
11652cat confdefs.h >>conftest.$ac_ext
11653cat >>conftest.$ac_ext <<_ACEOF
11654/* end confdefs.h. */
11655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11657#define $ac_func innocuous_$ac_func
11658
11659/* System header to define __stub macros and hopefully few prototypes,
11660 which can conflict with char $ac_func (); below.
11661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11662 <limits.h> exists even on freestanding compilers. */
11663
11664#ifdef __STDC__
11665# include <limits.h>
11666#else
11667# include <assert.h>
11668#endif
11669
11670#undef $ac_func
11671
11672/* Override any GCC internal prototype to avoid an error.
11673 Use char because int might match the return type of a GCC
11674 builtin and then its argument prototype would still apply. */
11675#ifdef __cplusplus
11676extern "C"
11677#endif
11678char $ac_func ();
11679/* The GNU C library defines this for functions which it implements
11680 to always fail with ENOSYS. Some functions are actually named
11681 something starting with __ and the normal name is an alias. */
11682#if defined __stub_$ac_func || defined __stub___$ac_func
11683choke me
11684#endif
11685
11686int
11687main ()
11688{
11689return $ac_func ();
11690 ;
11691 return 0;
11692}
11693_ACEOF
11694rm -f conftest.$ac_objext conftest$ac_exeext
11695if { (ac_try="$ac_link"
11696case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699esac
11700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_link") 2>conftest.er1
11702 ac_status=$?
11703 grep -v '^ *+' conftest.er1 >conftest.err
11704 rm -f conftest.er1
11705 cat conftest.err >&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
11708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11709 { (case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712esac
11713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714 (eval "$ac_try") 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; } &&
11718 { ac_try='test -s conftest$ac_exeext'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722esac
11723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 eval "$as_ac_var=yes"
11729else
11730 echo "$as_me: failed program was:" >&5
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
11733 eval "$as_ac_var=no"
11734fi
11735
11736rm -f core conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738fi
11739ac_res=`eval echo '${'$as_ac_var'}'`
11740 { echo "$as_me:$LINENO: result: $ac_res" >&5
11741echo "${ECHO_T}$ac_res" >&6; }
11742if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745_ACEOF
11746 break
11747fi
11748done
11749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011750
11751
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011753do
11754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11755{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759else
11760 cat >conftest.$ac_ext <<_ACEOF
11761/* confdefs.h. */
11762_ACEOF
11763cat confdefs.h >>conftest.$ac_ext
11764cat >>conftest.$ac_ext <<_ACEOF
11765/* end confdefs.h. */
11766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11768#define $ac_func innocuous_$ac_func
11769
11770/* System header to define __stub macros and hopefully few prototypes,
11771 which can conflict with char $ac_func (); below.
11772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11773 <limits.h> exists even on freestanding compilers. */
11774
11775#ifdef __STDC__
11776# include <limits.h>
11777#else
11778# include <assert.h>
11779#endif
11780
11781#undef $ac_func
11782
11783/* Override any GCC internal prototype to avoid an error.
11784 Use char because int might match the return type of a GCC
11785 builtin and then its argument prototype would still apply. */
11786#ifdef __cplusplus
11787extern "C"
11788#endif
11789char $ac_func ();
11790/* The GNU C library defines this for functions which it implements
11791 to always fail with ENOSYS. Some functions are actually named
11792 something starting with __ and the normal name is an alias. */
11793#if defined __stub_$ac_func || defined __stub___$ac_func
11794choke me
11795#endif
11796
11797int
11798main ()
11799{
11800return $ac_func ();
11801 ;
11802 return 0;
11803}
11804_ACEOF
11805rm -f conftest.$ac_objext conftest$ac_exeext
11806if { (ac_try="$ac_link"
11807case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810esac
11811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_link") 2>conftest.er1
11813 ac_status=$?
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } &&
11819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11820 { (case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11823esac
11824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_try") 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest$ac_exeext'
11830 { (case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833esac
11834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_try") 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 eval "$as_ac_var=yes"
11840else
11841 echo "$as_me: failed program was:" >&5
11842sed 's/^/| /' conftest.$ac_ext >&5
11843
11844 eval "$as_ac_var=no"
11845fi
11846
11847rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849fi
11850ac_res=`eval echo '${'$as_ac_var'}'`
11851 { echo "$as_me:$LINENO: result: $ac_res" >&5
11852echo "${ECHO_T}$ac_res" >&6; }
11853if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856_ACEOF
11857
11858fi
11859done
11860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011861
11862
11863
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011864for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011865do
11866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11867{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871else
11872 cat >conftest.$ac_ext <<_ACEOF
11873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11880#define $ac_func innocuous_$ac_func
11881
11882/* System header to define __stub macros and hopefully few prototypes,
11883 which can conflict with char $ac_func (); below.
11884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885 <limits.h> exists even on freestanding compilers. */
11886
11887#ifdef __STDC__
11888# include <limits.h>
11889#else
11890# include <assert.h>
11891#endif
11892
11893#undef $ac_func
11894
11895/* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11898#ifdef __cplusplus
11899extern "C"
11900#endif
11901char $ac_func ();
11902/* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905#if defined __stub_$ac_func || defined __stub___$ac_func
11906choke me
11907#endif
11908
11909int
11910main ()
11911{
11912return $ac_func ();
11913 ;
11914 return 0;
11915}
11916_ACEOF
11917rm -f conftest.$ac_objext conftest$ac_exeext
11918if { (ac_try="$ac_link"
11919case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922esac
11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } &&
11931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11932 { (case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11935esac
11936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_try") 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest$ac_exeext'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945esac
11946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }; then
11951 eval "$as_ac_var=yes"
11952else
11953 echo "$as_me: failed program was:" >&5
11954sed 's/^/| /' conftest.$ac_ext >&5
11955
11956 eval "$as_ac_var=no"
11957fi
11958
11959rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961fi
11962ac_res=`eval echo '${'$as_ac_var'}'`
11963 { echo "$as_me:$LINENO: result: $ac_res" >&5
11964echo "${ECHO_T}$ac_res" >&6; }
11965if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011966 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968_ACEOF
11969
11970fi
11971done
11972
11973
Douglas Gregor01746742009-05-11 18:05:52 +000011974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011975{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11976echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011977
Reid Spencer86901802004-12-08 23:07:27 +000011978ICC=no
11979IXX=no
11980case $CC in
11981 icc*|icpc*)
11982 ICC=yes
11983 IXX=yes
11984 ;;
11985 *)
11986 ;;
11987esac
11988
Duraid Madina937c60a2006-02-15 07:57:42 +000011989if test "$GCC" != "yes" && test "$ICC" != "yes"
11990then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011991 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11992echo "$as_me: error: gcc|icc required but not found" >&2;}
11993 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011994fi
11995
11996if test "$GXX" != "yes" && test "$IXX" != "yes"
11997then
Eric Christopher73e36da2010-12-08 02:02:14 +000011998 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11999echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012000 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012001fi
12002
Reid Spencer86901802004-12-08 23:07:27 +000012003if test "$GCC" = "yes"
12004then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012005 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012006#if !defined(__GNUC__) || __GNUC__ < 3
12007#error Unsupported GCC version
12008#endif
12009
12010_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012011rm -f conftest.$ac_objext
12012if { (ac_try="$ac_compile"
12013case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_compile") 2>conftest.er1
12019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12029esac
12030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest.$ac_objext'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039esac
12040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012047 echo "$as_me: failed program was:" >&5
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12051echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12052 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012054
Chris Lattner399c7c72008-02-05 19:43:53 +000012055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012056fi
12057
12058if test -z "$llvm_cv_gnu_make_command"
12059then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012060 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12061echo "$as_me: error: GNU Make required but not found" >&2;}
12062 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012063fi
12064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012065{ echo "$as_me:$LINENO: result: ok" >&5
12066echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012068{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12069echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012070NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012071
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012072NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012073
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012074COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12075
12076{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12077echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012078
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012080
12081{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12082echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12083if test "${ac_cv_lib_m_sin+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012085else
12086 ac_check_lib_save_LIBS=$LIBS
12087LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012088cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012093/* end confdefs.h. */
12094
Reid Spencera773bd52006-08-04 18:18:08 +000012095/* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012098#ifdef __cplusplus
12099extern "C"
12100#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012101char sin ();
12102int
12103main ()
12104{
Reid Spencera773bd52006-08-04 18:18:08 +000012105return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012106 ;
12107 return 0;
12108}
12109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012110rm -f conftest.$ac_objext conftest$ac_exeext
12111if { (ac_try="$ac_link"
12112case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115esac
12116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_link") 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12125 { (case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128esac
12129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_try") 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12138esac
12139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_try") 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012144 ac_cv_lib_m_sin=yes
12145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012146 echo "$as_me: failed program was:" >&5
12147sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012151
Bill Wendlingebcceee2009-04-18 11:20:33 +000012152rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012153 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012154LIBS=$ac_check_lib_save_LIBS
12155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12157echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12158if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012159 cat >>confdefs.h <<_ACEOF
12160#define HAVE_LIBM 1
12161_ACEOF
12162
12163 LIBS="-lm $LIBS"
12164
12165fi
12166
Jeff Cohen28783c32007-01-12 18:22:38 +000012167if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012168
12169{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12170echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12171if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012173else
12174 ac_check_lib_save_LIBS=$LIBS
12175LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012176cat >conftest.$ac_ext <<_ACEOF
12177/* confdefs.h. */
12178_ACEOF
12179cat confdefs.h >>conftest.$ac_ext
12180cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012181/* end confdefs.h. */
12182
Reid Spencer48fdf912006-06-01 19:03:21 +000012183
Reid Spencer484fc8e2006-06-01 16:55:59 +000012184int
12185main ()
12186{
Reid Spencera773bd52006-08-04 18:18:08 +000012187return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012188 ;
12189 return 0;
12190}
12191_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012192rm -f conftest.$ac_objext conftest$ac_exeext
12193if { (ac_try="$ac_link"
12194case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197esac
12198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_link") 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210esac
12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest$ac_exeext'
12217 { (case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12220esac
12221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222 (eval "$ac_try") 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012226 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012227else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012228 echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012233
Bill Wendlingebcceee2009-04-18 11:20:33 +000012234rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012235 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012236LIBS=$ac_check_lib_save_LIBS
12237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012238{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12239echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12240if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012241 cat >>confdefs.h <<_ACEOF
12242#define HAVE_LIBIMAGEHLP 1
12243_ACEOF
12244
12245 LIBS="-limagehlp $LIBS"
12246
12247fi
12248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012249
12250{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12251echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12252if test "${ac_cv_lib_psapi_main+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012254else
12255 ac_check_lib_save_LIBS=$LIBS
12256LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012257cat >conftest.$ac_ext <<_ACEOF
12258/* confdefs.h. */
12259_ACEOF
12260cat confdefs.h >>conftest.$ac_ext
12261cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012262/* end confdefs.h. */
12263
Reid Spencer48fdf912006-06-01 19:03:21 +000012264
Reid Spencer484fc8e2006-06-01 16:55:59 +000012265int
12266main ()
12267{
Reid Spencera773bd52006-08-04 18:18:08 +000012268return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012269 ;
12270 return 0;
12271}
12272_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012273rm -f conftest.$ac_objext conftest$ac_exeext
12274if { (ac_try="$ac_link"
12275case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278esac
12279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12288 { (case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12291esac
12292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_try") 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest$ac_exeext'
12298 { (case "(($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_try") 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012307 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012309 echo "$as_me: failed program was:" >&5
12310sed 's/^/| /' conftest.$ac_ext >&5
12311
12312 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012314
Bill Wendlingebcceee2009-04-18 11:20:33 +000012315rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012316 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012317LIBS=$ac_check_lib_save_LIBS
12318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012319{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12320echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12321if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012322 cat >>confdefs.h <<_ACEOF
12323#define HAVE_LIBPSAPI 1
12324_ACEOF
12325
12326 LIBS="-lpsapi $LIBS"
12327
12328fi
12329
12330fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012332{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12333echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12334if test "${ac_cv_search_dlopen+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012336else
12337 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012338cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012343/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012344
Reid Spencera773bd52006-08-04 18:18:08 +000012345/* Override any GCC internal prototype to avoid an error.
12346 Use char because int might match the return type of a GCC
12347 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012348#ifdef __cplusplus
12349extern "C"
12350#endif
John Criswell7a73b802003-06-30 21:59:07 +000012351char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012352int
12353main ()
12354{
Reid Spencera773bd52006-08-04 18:18:08 +000012355return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012356 ;
12357 return 0;
12358}
12359_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012360for ac_lib in '' dl; do
12361 if test -z "$ac_lib"; then
12362 ac_res="none required"
12363 else
12364 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012366 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012367 rm -f conftest.$ac_objext conftest$ac_exeext
12368if { (ac_try="$ac_link"
12369case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_link") 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12382 { (case "(($ac_try" in
12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384 *) ac_try_echo=$ac_try;;
12385esac
12386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12387 (eval "$ac_try") 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest$ac_exeext'
12392 { (case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395esac
12396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_try") 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012401 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012402else
12403 echo "$as_me: failed program was:" >&5
12404sed 's/^/| /' conftest.$ac_ext >&5
12405
12406
John Criswell7a73b802003-06-30 21:59:07 +000012407fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012408
Bill Wendlingebcceee2009-04-18 11:20:33 +000012409rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012410 conftest$ac_exeext
12411 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012412 break
John Criswell7a73b802003-06-30 21:59:07 +000012413fi
Reid Spencera773bd52006-08-04 18:18:08 +000012414done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012415if test "${ac_cv_search_dlopen+set}" = set; then
12416 :
Reid Spencera773bd52006-08-04 18:18:08 +000012417else
12418 ac_cv_search_dlopen=no
12419fi
12420rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012421LIBS=$ac_func_search_save_LIBS
12422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012423{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12424echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012425ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012426if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012429cat >>confdefs.h <<\_ACEOF
12430#define HAVE_DLOPEN 1
12431_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012432
12433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012434 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12435echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012436fi
12437
12438
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012439if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012440 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12441echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12442if test "${ac_cv_search_ffi_call+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012444else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012445 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012446cat >conftest.$ac_ext <<_ACEOF
12447/* confdefs.h. */
12448_ACEOF
12449cat confdefs.h >>conftest.$ac_ext
12450cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012451/* end confdefs.h. */
12452
12453/* Override any GCC internal prototype to avoid an error.
12454 Use char because int might match the return type of a GCC
12455 builtin and then its argument prototype would still apply. */
12456#ifdef __cplusplus
12457extern "C"
12458#endif
12459char ffi_call ();
12460int
12461main ()
12462{
12463return ffi_call ();
12464 ;
12465 return 0;
12466}
12467_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012468for ac_lib in '' ffi; do
12469 if test -z "$ac_lib"; then
12470 ac_res="none required"
12471 else
12472 ac_res=-l$ac_lib
12473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12474 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012475 rm -f conftest.$ac_objext conftest$ac_exeext
12476if { (ac_try="$ac_link"
12477case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12480esac
12481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_link") 2>conftest.er1
12483 ac_status=$?
12484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12490 { (case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493esac
12494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_try") 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest$ac_exeext'
12500 { (case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12503esac
12504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_try") 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012509 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012510else
12511 echo "$as_me: failed program was:" >&5
12512sed 's/^/| /' conftest.$ac_ext >&5
12513
12514
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012515fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012516
Bill Wendlingebcceee2009-04-18 11:20:33 +000012517rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012518 conftest$ac_exeext
12519 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012520 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012521fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012522done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012523if test "${ac_cv_search_ffi_call+set}" = set; then
12524 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012525else
12526 ac_cv_search_ffi_call=no
12527fi
12528rm conftest.$ac_ext
12529LIBS=$ac_func_search_save_LIBS
12530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012531{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12532echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012533ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012534if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012537cat >>confdefs.h <<\_ACEOF
12538#define HAVE_FFI_CALL 1
12539_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012540
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012541else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012542 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12543echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12544 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012545fi
12546
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012547fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012549{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12550echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12551if test "${ac_cv_search_mallinfo+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012553else
12554 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012555cat >conftest.$ac_ext <<_ACEOF
12556/* confdefs.h. */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012560/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012561
Reid Spencera773bd52006-08-04 18:18:08 +000012562/* Override any GCC internal prototype to avoid an error.
12563 Use char because int might match the return type of a GCC
12564 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012565#ifdef __cplusplus
12566extern "C"
12567#endif
John Criswell7a73b802003-06-30 21:59:07 +000012568char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012569int
12570main ()
12571{
Reid Spencera773bd52006-08-04 18:18:08 +000012572return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012573 ;
12574 return 0;
12575}
12576_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012577for ac_lib in '' malloc; do
12578 if test -z "$ac_lib"; then
12579 ac_res="none required"
12580 else
12581 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012583 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012584 rm -f conftest.$ac_objext conftest$ac_exeext
12585if { (ac_try="$ac_link"
12586case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12589esac
12590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_link") 2>conftest.er1
12592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } &&
12598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12599 { (case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602esac
12603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_try") 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
12609 { (case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612esac
12613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_try") 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012618 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012619else
12620 echo "$as_me: failed program was:" >&5
12621sed 's/^/| /' conftest.$ac_ext >&5
12622
12623
John Criswell7a73b802003-06-30 21:59:07 +000012624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012625
Bill Wendlingebcceee2009-04-18 11:20:33 +000012626rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012627 conftest$ac_exeext
12628 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012629 break
John Criswell7a73b802003-06-30 21:59:07 +000012630fi
Reid Spencera773bd52006-08-04 18:18:08 +000012631done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012632if test "${ac_cv_search_mallinfo+set}" = set; then
12633 :
Reid Spencera773bd52006-08-04 18:18:08 +000012634else
12635 ac_cv_search_mallinfo=no
12636fi
12637rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012638LIBS=$ac_func_search_save_LIBS
12639fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012640{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12641echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012642ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012643if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012646cat >>confdefs.h <<\_ACEOF
12647#define HAVE_MALLINFO 1
12648_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012649
12650fi
12651
12652
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012653if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012654
12655{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12656echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12657if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012659else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012660 ac_check_lib_save_LIBS=$LIBS
12661LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012662cat >conftest.$ac_ext <<_ACEOF
12663/* confdefs.h. */
12664_ACEOF
12665cat confdefs.h >>conftest.$ac_ext
12666cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012667/* end confdefs.h. */
12668
Reid Spencera773bd52006-08-04 18:18:08 +000012669/* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012672#ifdef __cplusplus
12673extern "C"
12674#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012675char pthread_mutex_init ();
12676int
12677main ()
12678{
Reid Spencera773bd52006-08-04 18:18:08 +000012679return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012680 ;
12681 return 0;
12682}
12683_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012684rm -f conftest.$ac_objext conftest$ac_exeext
12685if { (ac_try="$ac_link"
12686case "(($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_link") 2>conftest.er1
12692 ac_status=$?
12693 grep -v '^ *+' conftest.er1 >conftest.err
12694 rm -f conftest.er1
12695 cat conftest.err >&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); } &&
12698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702esac
12703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest$ac_exeext'
12709 { (case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12712esac
12713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_try") 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012718 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012720 echo "$as_me: failed program was:" >&5
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012725
Bill Wendlingebcceee2009-04-18 11:20:33 +000012726rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012727 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012728LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012729fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12731echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12732if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012733 cat >>confdefs.h <<_ACEOF
12734#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012735_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012736
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012737 LIBS="-lpthread $LIBS"
12738
Reid Spencer22177fe2005-07-12 15:24:20 +000012739fi
12740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012741 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12742echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12743if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012745else
12746 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012747cat >conftest.$ac_ext <<_ACEOF
12748/* confdefs.h. */
12749_ACEOF
12750cat confdefs.h >>conftest.$ac_ext
12751cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012752/* end confdefs.h. */
12753
Reid Spencera773bd52006-08-04 18:18:08 +000012754/* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012757#ifdef __cplusplus
12758extern "C"
12759#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012760char pthread_mutex_lock ();
12761int
12762main ()
12763{
Reid Spencera773bd52006-08-04 18:18:08 +000012764return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012765 ;
12766 return 0;
12767}
12768_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012769for ac_lib in '' pthread; do
12770 if test -z "$ac_lib"; then
12771 ac_res="none required"
12772 else
12773 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012775 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012776 rm -f conftest.$ac_objext conftest$ac_exeext
12777if { (ac_try="$ac_link"
12778case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12781esac
12782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_link") 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12791 { (case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12794esac
12795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_try") 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804esac
12805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_try") 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012810 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012811else
12812 echo "$as_me: failed program was:" >&5
12813sed 's/^/| /' conftest.$ac_ext >&5
12814
12815
Brian Gaeke5f268f72003-12-05 19:29:01 +000012816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012817
Bill Wendlingebcceee2009-04-18 11:20:33 +000012818rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819 conftest$ac_exeext
12820 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012821 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012822fi
Reid Spencera773bd52006-08-04 18:18:08 +000012823done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12825 :
Reid Spencera773bd52006-08-04 18:18:08 +000012826else
12827 ac_cv_search_pthread_mutex_lock=no
12828fi
12829rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012830LIBS=$ac_func_search_save_LIBS
12831fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012832{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12833echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012834ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012835if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012838cat >>confdefs.h <<\_ACEOF
12839#define HAVE_PTHREAD_MUTEX_LOCK 1
12840_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012841
12842fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012844 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12845echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12846if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012848else
12849 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012850cat >conftest.$ac_ext <<_ACEOF
12851/* confdefs.h. */
12852_ACEOF
12853cat confdefs.h >>conftest.$ac_ext
12854cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012855/* end confdefs.h. */
12856
12857/* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860#ifdef __cplusplus
12861extern "C"
12862#endif
12863char pthread_rwlock_init ();
12864int
12865main ()
12866{
12867return pthread_rwlock_init ();
12868 ;
12869 return 0;
12870}
12871_ACEOF
12872for ac_lib in '' pthread; do
12873 if test -z "$ac_lib"; then
12874 ac_res="none required"
12875 else
12876 ac_res=-l$ac_lib
12877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12878 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012879 rm -f conftest.$ac_objext conftest$ac_exeext
12880if { (ac_try="$ac_link"
12881case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884esac
12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_link") 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12894 { (case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897esac
12898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_try") 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest$ac_exeext'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907esac
12908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012913 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012914else
12915 echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918
Owen Andersonde8aed22009-06-16 18:20:20 +000012919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012920
Owen Andersonde8aed22009-06-16 18:20:20 +000012921rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012922 conftest$ac_exeext
12923 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012924 break
12925fi
12926done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012927if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12928 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012929else
12930 ac_cv_search_pthread_rwlock_init=no
12931fi
12932rm conftest.$ac_ext
12933LIBS=$ac_func_search_save_LIBS
12934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012935{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12936echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012937ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012938if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012941cat >>confdefs.h <<\_ACEOF
12942#define HAVE_PTHREAD_RWLOCK_INIT 1
12943_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012944
12945fi
12946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012947 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12948echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12949if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012951else
12952 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012953cat >conftest.$ac_ext <<_ACEOF
12954/* confdefs.h. */
12955_ACEOF
12956cat confdefs.h >>conftest.$ac_ext
12957cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012958/* end confdefs.h. */
12959
12960/* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12963#ifdef __cplusplus
12964extern "C"
12965#endif
12966char pthread_getspecific ();
12967int
12968main ()
12969{
12970return pthread_getspecific ();
12971 ;
12972 return 0;
12973}
12974_ACEOF
12975for ac_lib in '' pthread; do
12976 if test -z "$ac_lib"; then
12977 ac_res="none required"
12978 else
12979 ac_res=-l$ac_lib
12980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12981 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012982 rm -f conftest.$ac_objext conftest$ac_exeext
12983if { (ac_try="$ac_link"
12984case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987esac
12988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_link") 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997 { (case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000esac
13001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; } &&
13006 { ac_try='test -s conftest$ac_exeext'
13007 { (case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13010esac
13011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_try") 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013016 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013017else
13018 echo "$as_me: failed program was:" >&5
13019sed 's/^/| /' conftest.$ac_ext >&5
13020
13021
Owen Anderson27fcfe12009-06-25 23:10:26 +000013022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013023
Owen Anderson27fcfe12009-06-25 23:10:26 +000013024rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013025 conftest$ac_exeext
13026 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013027 break
13028fi
13029done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013030if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13031 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013032else
13033 ac_cv_search_pthread_getspecific=no
13034fi
13035rm conftest.$ac_ext
13036LIBS=$ac_func_search_save_LIBS
13037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013038{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13039echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013040ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013041if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013044cat >>confdefs.h <<\_ACEOF
13045#define HAVE_PTHREAD_GETSPECIFIC 1
13046_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013047
13048fi
13049
Reid Spencer0a262ba2005-08-24 10:07:20 +000013050fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013051
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013052
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013053# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013054if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013055 withval=$with_udis86;
13056 USE_UDIS86=1
13057
13058 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013059 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013060 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13061 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013062
13063{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13064echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13065if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013067else
13068 ac_check_lib_save_LIBS=$LIBS
13069LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013070cat >conftest.$ac_ext <<_ACEOF
13071/* confdefs.h. */
13072_ACEOF
13073cat confdefs.h >>conftest.$ac_ext
13074cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013075/* end confdefs.h. */
13076
13077/* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080#ifdef __cplusplus
13081extern "C"
13082#endif
13083char ud_init ();
13084int
13085main ()
13086{
13087return ud_init ();
13088 ;
13089 return 0;
13090}
13091_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013092rm -f conftest.$ac_objext conftest$ac_exeext
13093if { (ac_try="$ac_link"
13094case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097esac
13098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_link") 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13107 { (case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_try") 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest$ac_exeext'
13117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13120esac
13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_try") 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013126 ac_cv_lib_udis86_ud_init=yes
13127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128 echo "$as_me: failed program was:" >&5
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
13131 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013133
Bill Wendlingebcceee2009-04-18 11:20:33 +000013134rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013135 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013136LIBS=$ac_check_lib_save_LIBS
13137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13139echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13140if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013141 cat >>confdefs.h <<_ACEOF
13142#define HAVE_LIBUDIS86 1
13143_ACEOF
13144
13145 LIBS="-ludis86 $LIBS"
13146
13147else
13148
13149 echo "Error! You need to have libudis86 around."
13150 exit -1
13151
13152fi
13153
13154
13155else
13156 USE_UDIS86=0
13157
13158fi
13159
13160
13161cat >>confdefs.h <<_ACEOF
13162#define USE_UDIS86 $USE_UDIS86
13163_ACEOF
13164
13165
13166
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013167# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013168if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013169 withval=$with_oprofile;
13170 USE_OPROFILE=1
13171
13172 case "$withval" in
13173 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013174 no) llvm_cv_oppath=
13175 USE_OPROFILE=0
13176 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013177 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013178 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013179 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013180 case $llvm_cv_os_type in
13181 Linux)
13182 if test -n "$llvm_cv_oppath" ; then
13183 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13184 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013185echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13186if test "${ac_cv_search_bfd_init+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013188else
13189 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190cat >conftest.$ac_ext <<_ACEOF
13191/* confdefs.h. */
13192_ACEOF
13193cat confdefs.h >>conftest.$ac_ext
13194cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013195/* end confdefs.h. */
13196
13197/* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13200#ifdef __cplusplus
13201extern "C"
13202#endif
13203char bfd_init ();
13204int
13205main ()
13206{
13207return bfd_init ();
13208 ;
13209 return 0;
13210}
13211_ACEOF
13212for ac_lib in '' bfd; do
13213 if test -z "$ac_lib"; then
13214 ac_res="none required"
13215 else
13216 ac_res=-l$ac_lib
13217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13218 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013219 rm -f conftest.$ac_objext conftest$ac_exeext
13220if { (ac_try="$ac_link"
13221case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224esac
13225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_link") 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13234 { (case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237esac
13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_try") 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest$ac_exeext'
13244 { (case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13247esac
13248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_try") 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013253 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013254else
13255 echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
13258
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013260
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013261rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013262 conftest$ac_exeext
13263 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013264 break
13265fi
13266done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013267if test "${ac_cv_search_bfd_init+set}" = set; then
13268 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013269else
13270 ac_cv_search_bfd_init=no
13271fi
13272rm conftest.$ac_ext
13273LIBS=$ac_func_search_save_LIBS
13274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13276echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013277ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013278if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13280
13281fi
13282
Eli Bendersky61b18512012-03-13 08:33:15 +000013283 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013284echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13285if test "${ac_cv_search_op_open_agent+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013287else
13288 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013289cat >conftest.$ac_ext <<_ACEOF
13290/* confdefs.h. */
13291_ACEOF
13292cat confdefs.h >>conftest.$ac_ext
13293cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013294/* end confdefs.h. */
13295
13296/* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13299#ifdef __cplusplus
13300extern "C"
13301#endif
13302char op_open_agent ();
13303int
13304main ()
13305{
13306return op_open_agent ();
13307 ;
13308 return 0;
13309}
13310_ACEOF
13311for ac_lib in '' opagent; do
13312 if test -z "$ac_lib"; then
13313 ac_res="none required"
13314 else
13315 ac_res=-l$ac_lib
13316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13317 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013318 rm -f conftest.$ac_objext conftest$ac_exeext
13319if { (ac_try="$ac_link"
13320case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323esac
13324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_link") 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336esac
13337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest$ac_exeext'
13343 { (case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346esac
13347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_try") 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013352 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013353else
13354 echo "$as_me: failed program was:" >&5
13355sed 's/^/| /' conftest.$ac_ext >&5
13356
13357
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013359
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013360rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013361 conftest$ac_exeext
13362 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013363 break
13364fi
13365done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013366if test "${ac_cv_search_op_open_agent+set}" = set; then
13367 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013368else
13369 ac_cv_search_op_open_agent=no
13370fi
13371rm conftest.$ac_ext
13372LIBS=$ac_func_search_save_LIBS
13373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013374{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13375echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013376ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013377if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13379
13380else
13381
Eli Bendersky61b18512012-03-13 08:33:15 +000013382 echo "Error! You need to have libopagent around."
13383 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013384
13385fi
13386
Eli Bendersky61b18512012-03-13 08:33:15 +000013387 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013388 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13389echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13390if test "${ac_cv_header_opagent_h+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392fi
13393{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13394echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13395else
13396 # Is the header compilable?
13397{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13398echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13399cat >conftest.$ac_ext <<_ACEOF
13400/* confdefs.h. */
13401_ACEOF
13402cat confdefs.h >>conftest.$ac_ext
13403cat >>conftest.$ac_ext <<_ACEOF
13404/* end confdefs.h. */
13405$ac_includes_default
13406#include <opagent.h>
13407_ACEOF
13408rm -f conftest.$ac_objext
13409if { (ac_try="$ac_compile"
13410case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_compile") 2>conftest.er1
13416 ac_status=$?
13417 grep -v '^ *+' conftest.er1 >conftest.err
13418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest.$ac_objext'
13433 { (case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13436esac
13437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_try") 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_header_compiler=yes
13443else
13444 echo "$as_me: failed program was:" >&5
13445sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013447 ac_header_compiler=no
13448fi
13449
13450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13452echo "${ECHO_T}$ac_header_compiler" >&6; }
13453
13454# Is the header present?
13455{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13456echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13457cat >conftest.$ac_ext <<_ACEOF
13458/* confdefs.h. */
13459_ACEOF
13460cat confdefs.h >>conftest.$ac_ext
13461cat >>conftest.$ac_ext <<_ACEOF
13462/* end confdefs.h. */
13463#include <opagent.h>
13464_ACEOF
13465if { (ac_try="$ac_cpp conftest.$ac_ext"
13466case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469esac
13470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13472 ac_status=$?
13473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } >/dev/null; then
13478 if test -s conftest.err; then
13479 ac_cpp_err=$ac_c_preproc_warn_flag
13480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13481 else
13482 ac_cpp_err=
13483 fi
13484else
13485 ac_cpp_err=yes
13486fi
13487if test -z "$ac_cpp_err"; then
13488 ac_header_preproc=yes
13489else
13490 echo "$as_me: failed program was:" >&5
13491sed 's/^/| /' conftest.$ac_ext >&5
13492
13493 ac_header_preproc=no
13494fi
13495
13496rm -f conftest.err conftest.$ac_ext
13497{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13498echo "${ECHO_T}$ac_header_preproc" >&6; }
13499
13500# So? What about this header?
13501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13502 yes:no: )
13503 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13504echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13506echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13507 ac_header_preproc=yes
13508 ;;
13509 no:yes:* )
13510 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13511echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13513echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13515echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13517echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13519echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13521echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13522 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013523## ------------------------------------ ##
13524## Report this to http://llvm.org/bugs/ ##
13525## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526_ASBOX
13527 ) | sed "s/^/$as_me: WARNING: /" >&2
13528 ;;
13529esac
13530{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13531echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13532if test "${ac_cv_header_opagent_h+set}" = set; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534else
13535 ac_cv_header_opagent_h=$ac_header_preproc
13536fi
13537{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13538echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13539
13540fi
13541if test $ac_cv_header_opagent_h = yes; then
13542 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013543else
13544
Eli Bendersky61b18512012-03-13 08:33:15 +000013545 echo "Error! You need to have opagent.h around."
13546 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013547
13548fi
13549
13550
Eli Bendersky61b18512012-03-13 08:33:15 +000013551 fi ;;
13552 *)
13553 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13554echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13555 { (exit 1); exit 1; }; } ;;
13556 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013557
13558else
13559
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013560 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013561
13562
13563fi
13564
13565
13566cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013567#define LLVM_USE_OPROFILE $USE_OPROFILE
13568_ACEOF
13569
13570
13571
13572# Check whether --with-intel-jitevents was given.
13573if test "${with_intel_jitevents+set}" = set; then
13574 withval=$with_intel_jitevents;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013575 case "$withval" in
13576 yes) USE_INTEL_JITEVENTS=1
13577;;
13578 no) USE_INTEL_JITEVENTS=0
13579;;
13580 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13581echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13582 { (exit 1); exit 1; }; };;
13583 esac
13584
Eli Bendersky61b18512012-03-13 08:33:15 +000013585 case $llvm_cv_os_type in
13586 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013587 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13588echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13589 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013590 esac
13591
Eli Bendersky61b18512012-03-13 08:33:15 +000013592 case "$llvm_cv_target_arch" in
Andrew Kaylor770b97b2012-09-28 17:35:20 +000013593 x86|x86_64) ;;
13594 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13595echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13596 { (exit 1); exit 1; }; };;
Eli Bendersky61b18512012-03-13 08:33:15 +000013597 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013598
13599else
13600
13601 USE_INTEL_JITEVENTS=0
13602
13603
13604fi
13605
13606
13607cat >>confdefs.h <<_ACEOF
13608#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013609_ACEOF
13610
13611
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013612for ac_prog in xml2-config
13613do
13614 # Extract the first word of "$ac_prog", so it can be a program name with args.
13615set dummy $ac_prog; ac_word=$2
13616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13618if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13620else
13621 if test -n "$XML2CONFIG"; then
13622 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13623else
13624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625for as_dir in $PATH
13626do
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_XML2CONFIG="$ac_prog"
13632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 break 2
13634 fi
13635done
13636done
13637IFS=$as_save_IFS
13638
13639fi
13640fi
13641XML2CONFIG=$ac_cv_prog_XML2CONFIG
13642if test -n "$XML2CONFIG"; then
13643 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13644echo "${ECHO_T}$XML2CONFIG" >&6; }
13645else
13646 { echo "$as_me:$LINENO: result: no" >&5
13647echo "${ECHO_T}no" >&6; }
13648fi
13649
13650
13651 test -n "$XML2CONFIG" && break
13652done
13653
13654
13655{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13656echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13657if test "x$XML2CONFIG" = "x"; then
13658 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13659echo "${ECHO_T}xml2-config not found" >&6; }
13660else
13661 LIBXML2_INC=`$XML2CONFIG --cflags`
13662 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13663echo "${ECHO_T}$LIBXML2_INC" >&6; }
13664 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13665echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13666if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668else
13669 ac_check_lib_save_LIBS=$LIBS
13670LIBS="-lxml2 $LIBS"
13671cat >conftest.$ac_ext <<_ACEOF
13672/* confdefs.h. */
13673_ACEOF
13674cat confdefs.h >>conftest.$ac_ext
13675cat >>conftest.$ac_ext <<_ACEOF
13676/* end confdefs.h. */
13677
13678/* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13681#ifdef __cplusplus
13682extern "C"
13683#endif
13684char xmlReadFile ();
13685int
13686main ()
13687{
13688return xmlReadFile ();
13689 ;
13690 return 0;
13691}
13692_ACEOF
13693rm -f conftest.$ac_objext conftest$ac_exeext
13694if { (ac_try="$ac_link"
13695case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698esac
13699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
13707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13708 { (case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13711esac
13712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_try") 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; } &&
13717 { ac_try='test -s conftest$ac_exeext'
13718 { (case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13721esac
13722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_try") 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 ac_cv_lib_xml2_xmlReadFile=yes
13728else
13729 echo "$as_me: failed program was:" >&5
13730sed 's/^/| /' conftest.$ac_ext >&5
13731
13732 ac_cv_lib_xml2_xmlReadFile=no
13733fi
13734
13735rm -f core conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13737LIBS=$ac_check_lib_save_LIBS
13738fi
13739{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13740echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13741if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13742
13743cat >>confdefs.h <<\_ACEOF
13744#define CLANG_HAVE_LIBXML 1
13745_ACEOF
13746
13747 LIBXML2_LIBS="-lxml2"
13748fi
13749
13750fi
13751
13752
13753
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013755
13756
13757
13758
13759
Reid Spencer59473af2004-12-25 07:31:29 +000013760ac_header_dirent=no
13761for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013762 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13763{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13764echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013768 cat >conftest.$ac_ext <<_ACEOF
13769/* confdefs.h. */
13770_ACEOF
13771cat confdefs.h >>conftest.$ac_ext
13772cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013773/* end confdefs.h. */
13774#include <sys/types.h>
13775#include <$ac_hdr>
13776
13777int
13778main ()
13779{
13780if ((DIR *) 0)
13781return 0;
13782 ;
13783 return 0;
13784}
13785_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013786rm -f conftest.$ac_objext
13787if { (ac_try="$ac_compile"
13788case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13791esac
13792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_compile") 2>conftest.er1
13794 ac_status=$?
13795 grep -v '^ *+' conftest.er1 >conftest.err
13796 rm -f conftest.er1
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13801 { (case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804esac
13805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_try") 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; } &&
13810 { ac_try='test -s conftest.$ac_objext'
13811 { (case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13814esac
13815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_try") 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013820 eval "$as_ac_Header=yes"
13821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013822 echo "$as_me: failed program was:" >&5
13823sed 's/^/| /' conftest.$ac_ext >&5
13824
13825 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013826fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013827
Reid Spencera773bd52006-08-04 18:18:08 +000013828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013830ac_res=`eval echo '${'$as_ac_Header'}'`
13831 { echo "$as_me:$LINENO: result: $ac_res" >&5
13832echo "${ECHO_T}$ac_res" >&6; }
13833if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013834 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013835#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013836_ACEOF
13837
13838ac_header_dirent=$ac_hdr; break
13839fi
13840
13841done
13842# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13843if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013844 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13845echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13846if test "${ac_cv_search_opendir+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013848else
13849 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013850cat >conftest.$ac_ext <<_ACEOF
13851/* confdefs.h. */
13852_ACEOF
13853cat confdefs.h >>conftest.$ac_ext
13854cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013855/* end confdefs.h. */
13856
Reid Spencera773bd52006-08-04 18:18:08 +000013857/* Override any GCC internal prototype to avoid an error.
13858 Use char because int might match the return type of a GCC
13859 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013860#ifdef __cplusplus
13861extern "C"
13862#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013863char opendir ();
13864int
13865main ()
13866{
Reid Spencera773bd52006-08-04 18:18:08 +000013867return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013868 ;
13869 return 0;
13870}
13871_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013872for ac_lib in '' dir; do
13873 if test -z "$ac_lib"; then
13874 ac_res="none required"
13875 else
13876 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013878 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013879 rm -f conftest.$ac_objext conftest$ac_exeext
13880if { (ac_try="$ac_link"
13881case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13884esac
13885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_link") 2>conftest.er1
13887 ac_status=$?
13888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13894 { (case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13897esac
13898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_try") 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; } &&
13903 { ac_try='test -s conftest$ac_exeext'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13907esac
13908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013913 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013914else
13915 echo "$as_me: failed program was:" >&5
13916sed 's/^/| /' conftest.$ac_ext >&5
13917
13918
Reid Spencer59473af2004-12-25 07:31:29 +000013919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920
Bill Wendlingebcceee2009-04-18 11:20:33 +000013921rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013922 conftest$ac_exeext
13923 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013924 break
Reid Spencer59473af2004-12-25 07:31:29 +000013925fi
Reid Spencera773bd52006-08-04 18:18:08 +000013926done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013927if test "${ac_cv_search_opendir+set}" = set; then
13928 :
Reid Spencera773bd52006-08-04 18:18:08 +000013929else
13930 ac_cv_search_opendir=no
13931fi
13932rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013933LIBS=$ac_func_search_save_LIBS
13934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013935{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13936echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013937ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013938if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013940
13941fi
13942
13943else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013944 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13945echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13946if test "${ac_cv_search_opendir+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013948else
13949 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013950cat >conftest.$ac_ext <<_ACEOF
13951/* confdefs.h. */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013955/* end confdefs.h. */
13956
Reid Spencera773bd52006-08-04 18:18:08 +000013957/* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013960#ifdef __cplusplus
13961extern "C"
13962#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013963char opendir ();
13964int
13965main ()
13966{
Reid Spencera773bd52006-08-04 18:18:08 +000013967return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013968 ;
13969 return 0;
13970}
13971_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013972for ac_lib in '' x; do
13973 if test -z "$ac_lib"; then
13974 ac_res="none required"
13975 else
13976 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013978 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013979 rm -f conftest.$ac_objext conftest$ac_exeext
13980if { (ac_try="$ac_link"
13981case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984esac
13985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_link") 2>conftest.er1
13987 ac_status=$?
13988 grep -v '^ *+' conftest.er1 >conftest.err
13989 rm -f conftest.er1
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13994 { (case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13997esac
13998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_try") 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007esac
14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014013 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014014else
14015 echo "$as_me: failed program was:" >&5
14016sed 's/^/| /' conftest.$ac_ext >&5
14017
14018
Reid Spencer59473af2004-12-25 07:31:29 +000014019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020
Bill Wendlingebcceee2009-04-18 11:20:33 +000014021rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014022 conftest$ac_exeext
14023 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014024 break
Reid Spencer59473af2004-12-25 07:31:29 +000014025fi
Reid Spencera773bd52006-08-04 18:18:08 +000014026done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027if test "${ac_cv_search_opendir+set}" = set; then
14028 :
Reid Spencera773bd52006-08-04 18:18:08 +000014029else
14030 ac_cv_search_opendir=no
14031fi
14032rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014033LIBS=$ac_func_search_save_LIBS
14034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014035{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14036echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014037ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014038if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014040
14041fi
14042
14043fi
14044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014045{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14046echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14047if test "${ac_cv_header_mmap_anon+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014049else
14050 ac_ext=c
14051ac_cpp='$CPP $CPPFLAGS'
14052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054ac_compiler_gnu=$ac_cv_c_compiler_gnu
14055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014056 cat >conftest.$ac_ext <<_ACEOF
14057/* confdefs.h. */
14058_ACEOF
14059cat confdefs.h >>conftest.$ac_ext
14060cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014061/* end confdefs.h. */
14062#include <sys/mman.h>
14063#include <unistd.h>
14064#include <fcntl.h>
14065int
14066main ()
14067{
14068mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14069 ;
14070 return 0;
14071}
14072_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014073rm -f conftest.$ac_objext
14074if { (ac_try="$ac_compile"
14075case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14078esac
14079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_compile") 2>conftest.er1
14081 ac_status=$?
14082 grep -v '^ *+' conftest.er1 >conftest.err
14083 rm -f conftest.er1
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14088 { (case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14091esac
14092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_try") 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; } &&
14097 { ac_try='test -s conftest.$ac_objext'
14098 { (case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_try") 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014107 ac_cv_header_mmap_anon=yes
14108else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014109 echo "$as_me: failed program was:" >&5
14110sed 's/^/| /' conftest.$ac_ext >&5
14111
14112 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014114
Reid Spencera773bd52006-08-04 18:18:08 +000014115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014116 ac_ext=c
14117ac_cpp='$CPP $CPPFLAGS'
14118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14120ac_compiler_gnu=$ac_cv_c_compiler_gnu
14121
14122
14123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14125echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014126if test "$ac_cv_header_mmap_anon" = yes; then
14127
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014128cat >>confdefs.h <<\_ACEOF
14129#define HAVE_MMAP_ANONYMOUS 1
14130_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014131
14132fi
14133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014134{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14135echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14136if test "${ac_cv_header_stat_broken+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014139 cat >conftest.$ac_ext <<_ACEOF
14140/* confdefs.h. */
14141_ACEOF
14142cat confdefs.h >>conftest.$ac_ext
14143cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014144/* end confdefs.h. */
14145#include <sys/types.h>
14146#include <sys/stat.h>
14147
Reid Spencera773bd52006-08-04 18:18:08 +000014148#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014149# if S_ISBLK (S_IFDIR)
14150You lose.
14151# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014152#endif
14153
Reid Spencera773bd52006-08-04 18:18:08 +000014154#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014155# if S_ISBLK (S_IFCHR)
14156You lose.
14157# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014158#endif
14159
Reid Spencera773bd52006-08-04 18:18:08 +000014160#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014161# if S_ISLNK (S_IFREG)
14162You lose.
14163# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014164#endif
14165
Reid Spencera773bd52006-08-04 18:18:08 +000014166#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014167# if S_ISSOCK (S_IFREG)
14168You lose.
14169# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014170#endif
14171
14172_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14174 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014175 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014176else
14177 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179rm -f conftest*
14180
Reid Spencer59473af2004-12-25 07:31:29 +000014181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14183echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014184if test $ac_cv_header_stat_broken = yes; then
14185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014186cat >>confdefs.h <<\_ACEOF
14187#define STAT_MACROS_BROKEN 1
14188_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014189
14190fi
14191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014192{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14193echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14194if test "${ac_cv_header_sys_wait_h+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014197 cat >conftest.$ac_ext <<_ACEOF
14198/* confdefs.h. */
14199_ACEOF
14200cat confdefs.h >>conftest.$ac_ext
14201cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014202/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014203#include <sys/types.h>
14204#include <sys/wait.h>
14205#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014206# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014207#endif
14208#ifndef WIFEXITED
14209# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14210#endif
14211
John Criswell7a73b802003-06-30 21:59:07 +000014212int
14213main ()
14214{
14215 int s;
14216 wait (&s);
14217 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14218 ;
14219 return 0;
14220}
14221_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014222rm -f conftest.$ac_objext
14223if { (ac_try="$ac_compile"
14224case "(($ac_try" in
14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226 *) ac_try_echo=$ac_try;;
14227esac
14228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_compile") 2>conftest.er1
14230 ac_status=$?
14231 grep -v '^ *+' conftest.er1 >conftest.err
14232 rm -f conftest.er1
14233 cat conftest.err >&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } &&
14236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14237 { (case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240esac
14241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_try") 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14250esac
14251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_try") 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014256 ac_cv_header_sys_wait_h=yes
14257else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258 echo "$as_me: failed program was:" >&5
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
14261 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014262fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014263
Reid Spencera773bd52006-08-04 18:18:08 +000014264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14267echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014268if test $ac_cv_header_sys_wait_h = yes; then
14269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014270cat >>confdefs.h <<\_ACEOF
14271#define HAVE_SYS_WAIT_H 1
14272_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014273
14274fi
14275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14277echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14278if test "${ac_cv_header_time+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014281 cat >conftest.$ac_ext <<_ACEOF
14282/* confdefs.h. */
14283_ACEOF
14284cat confdefs.h >>conftest.$ac_ext
14285cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014286/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014287#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014288#include <sys/time.h>
14289#include <time.h>
14290
14291int
14292main ()
14293{
14294if ((struct tm *) 0)
14295return 0;
14296 ;
14297 return 0;
14298}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014299_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300rm -f conftest.$ac_objext
14301if { (ac_try="$ac_compile"
14302case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305esac
14306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_compile") 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14315 { (case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14318esac
14319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_try") 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; } &&
14324 { ac_try='test -s conftest.$ac_objext'
14325 { (case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14328esac
14329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_try") 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014334 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014336 echo "$as_me: failed program was:" >&5
14337sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341
Reid Spencera773bd52006-08-04 18:18:08 +000014342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14345echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014346if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014348cat >>confdefs.h <<\_ACEOF
14349#define TIME_WITH_SYS_TIME 1
14350_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014351
14352fi
14353
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355
14356
14357
14358
14359
14360
Reid Spencer59473af2004-12-25 07:31:29 +000014361for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014362do
14363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14369fi
14370ac_res=`eval echo '${'$as_ac_Header'}'`
14371 { echo "$as_me:$LINENO: result: $ac_res" >&5
14372echo "${ECHO_T}$ac_res" >&6; }
14373else
14374 # Is the header compilable?
14375{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14377cat >conftest.$ac_ext <<_ACEOF
14378/* confdefs.h. */
14379_ACEOF
14380cat confdefs.h >>conftest.$ac_ext
14381cat >>conftest.$ac_ext <<_ACEOF
14382/* end confdefs.h. */
14383$ac_includes_default
14384#include <$ac_header>
14385_ACEOF
14386rm -f conftest.$ac_objext
14387if { (ac_try="$ac_compile"
14388case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14391esac
14392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_compile") 2>conftest.er1
14394 ac_status=$?
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } &&
14400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14401 { (case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14404esac
14405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_try") 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest.$ac_objext'
14411 { (case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14414esac
14415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_try") 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_header_compiler=yes
14421else
14422 echo "$as_me: failed program was:" >&5
14423sed 's/^/| /' conftest.$ac_ext >&5
14424
14425 ac_header_compiler=no
14426fi
14427
14428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14430echo "${ECHO_T}$ac_header_compiler" >&6; }
14431
14432# Is the header present?
14433{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14435cat >conftest.$ac_ext <<_ACEOF
14436/* confdefs.h. */
14437_ACEOF
14438cat confdefs.h >>conftest.$ac_ext
14439cat >>conftest.$ac_ext <<_ACEOF
14440/* end confdefs.h. */
14441#include <$ac_header>
14442_ACEOF
14443if { (ac_try="$ac_cpp conftest.$ac_ext"
14444case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14447esac
14448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } >/dev/null; then
14456 if test -s conftest.err; then
14457 ac_cpp_err=$ac_c_preproc_warn_flag
14458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14459 else
14460 ac_cpp_err=
14461 fi
14462else
14463 ac_cpp_err=yes
14464fi
14465if test -z "$ac_cpp_err"; then
14466 ac_header_preproc=yes
14467else
14468 echo "$as_me: failed program was:" >&5
14469sed 's/^/| /' conftest.$ac_ext >&5
14470
14471 ac_header_preproc=no
14472fi
14473
14474rm -f conftest.err conftest.$ac_ext
14475{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14476echo "${ECHO_T}$ac_header_preproc" >&6; }
14477
14478# So? What about this header?
14479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14480 yes:no: )
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14484echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14485 ac_header_preproc=yes
14486 ;;
14487 no:yes:* )
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14489echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14491echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14493echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14495echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14497echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14499echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14500 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014501## ------------------------------------ ##
14502## Report this to http://llvm.org/bugs/ ##
14503## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014504_ASBOX
14505 ) | sed "s/^/$as_me: WARNING: /" >&2
14506 ;;
14507esac
14508{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14512else
14513 eval "$as_ac_Header=\$ac_header_preproc"
14514fi
14515ac_res=`eval echo '${'$as_ac_Header'}'`
14516 { echo "$as_me:$LINENO: result: $ac_res" >&5
14517echo "${ECHO_T}$ac_res" >&6; }
14518
14519fi
14520if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014521 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014523_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014524
14525fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014526
Reid Spencer59473af2004-12-25 07:31:29 +000014527done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014529
14530
14531
14532
14533
14534
Douglas Gregor071d73d2009-05-18 17:21:34 +000014535for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014536do
14537as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543fi
14544ac_res=`eval echo '${'$as_ac_Header'}'`
14545 { echo "$as_me:$LINENO: result: $ac_res" >&5
14546echo "${ECHO_T}$ac_res" >&6; }
14547else
14548 # Is the header compilable?
14549{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14550echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14551cat >conftest.$ac_ext <<_ACEOF
14552/* confdefs.h. */
14553_ACEOF
14554cat confdefs.h >>conftest.$ac_ext
14555cat >>conftest.$ac_ext <<_ACEOF
14556/* end confdefs.h. */
14557$ac_includes_default
14558#include <$ac_header>
14559_ACEOF
14560rm -f conftest.$ac_objext
14561if { (ac_try="$ac_compile"
14562case "(($ac_try" in
14563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564 *) ac_try_echo=$ac_try;;
14565esac
14566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567 (eval "$ac_compile") 2>conftest.er1
14568 ac_status=$?
14569 grep -v '^ *+' conftest.er1 >conftest.err
14570 rm -f conftest.er1
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14575 { (case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14578esac
14579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_try") 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } &&
14584 { ac_try='test -s conftest.$ac_objext'
14585 { (case "(($ac_try" in
14586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587 *) ac_try_echo=$ac_try;;
14588esac
14589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590 (eval "$ac_try") 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 ac_header_compiler=yes
14595else
14596 echo "$as_me: failed program was:" >&5
14597sed 's/^/| /' conftest.$ac_ext >&5
14598
14599 ac_header_compiler=no
14600fi
14601
14602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14604echo "${ECHO_T}$ac_header_compiler" >&6; }
14605
14606# Is the header present?
14607{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14609cat >conftest.$ac_ext <<_ACEOF
14610/* confdefs.h. */
14611_ACEOF
14612cat confdefs.h >>conftest.$ac_ext
14613cat >>conftest.$ac_ext <<_ACEOF
14614/* end confdefs.h. */
14615#include <$ac_header>
14616_ACEOF
14617if { (ac_try="$ac_cpp conftest.$ac_ext"
14618case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621esac
14622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } >/dev/null; then
14630 if test -s conftest.err; then
14631 ac_cpp_err=$ac_c_preproc_warn_flag
14632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14633 else
14634 ac_cpp_err=
14635 fi
14636else
14637 ac_cpp_err=yes
14638fi
14639if test -z "$ac_cpp_err"; then
14640 ac_header_preproc=yes
14641else
14642 echo "$as_me: failed program was:" >&5
14643sed 's/^/| /' conftest.$ac_ext >&5
14644
14645 ac_header_preproc=no
14646fi
14647
14648rm -f conftest.err conftest.$ac_ext
14649{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14650echo "${ECHO_T}$ac_header_preproc" >&6; }
14651
14652# So? What about this header?
14653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14654 yes:no: )
14655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14656echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14658echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14659 ac_header_preproc=yes
14660 ;;
14661 no:yes:* )
14662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14663echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14665echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14667echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14669echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14673echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14674 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014675## ------------------------------------ ##
14676## Report this to http://llvm.org/bugs/ ##
14677## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014678_ASBOX
14679 ) | sed "s/^/$as_me: WARNING: /" >&2
14680 ;;
14681esac
14682{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686else
14687 eval "$as_ac_Header=\$ac_header_preproc"
14688fi
14689ac_res=`eval echo '${'$as_ac_Header'}'`
14690 { echo "$as_me:$LINENO: result: $ac_res" >&5
14691echo "${ECHO_T}$ac_res" >&6; }
14692
14693fi
14694if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014695 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014697_ACEOF
14698
14699fi
14700
14701done
14702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014703
14704
Douglas Gregor071d73d2009-05-18 17:21:34 +000014705for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014706do
14707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14713fi
14714ac_res=`eval echo '${'$as_ac_Header'}'`
14715 { echo "$as_me:$LINENO: result: $ac_res" >&5
14716echo "${ECHO_T}$ac_res" >&6; }
14717else
14718 # Is the header compilable?
14719{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14721cat >conftest.$ac_ext <<_ACEOF
14722/* confdefs.h. */
14723_ACEOF
14724cat confdefs.h >>conftest.$ac_ext
14725cat >>conftest.$ac_ext <<_ACEOF
14726/* end confdefs.h. */
14727$ac_includes_default
14728#include <$ac_header>
14729_ACEOF
14730rm -f conftest.$ac_objext
14731if { (ac_try="$ac_compile"
14732case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735esac
14736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_compile") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745 { (case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14748esac
14749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_try") 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; } &&
14754 { ac_try='test -s conftest.$ac_objext'
14755 { (case "(($ac_try" in
14756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14758esac
14759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760 (eval "$ac_try") 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_header_compiler=yes
14765else
14766 echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 ac_header_compiler=no
14770fi
14771
14772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14774echo "${ECHO_T}$ac_header_compiler" >&6; }
14775
14776# Is the header present?
14777{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14779cat >conftest.$ac_ext <<_ACEOF
14780/* confdefs.h. */
14781_ACEOF
14782cat confdefs.h >>conftest.$ac_ext
14783cat >>conftest.$ac_ext <<_ACEOF
14784/* end confdefs.h. */
14785#include <$ac_header>
14786_ACEOF
14787if { (ac_try="$ac_cpp conftest.$ac_ext"
14788case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14791esac
14792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } >/dev/null; then
14800 if test -s conftest.err; then
14801 ac_cpp_err=$ac_c_preproc_warn_flag
14802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14803 else
14804 ac_cpp_err=
14805 fi
14806else
14807 ac_cpp_err=yes
14808fi
14809if test -z "$ac_cpp_err"; then
14810 ac_header_preproc=yes
14811else
14812 echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
14815 ac_header_preproc=no
14816fi
14817
14818rm -f conftest.err conftest.$ac_ext
14819{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820echo "${ECHO_T}$ac_header_preproc" >&6; }
14821
14822# So? What about this header?
14823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14824 yes:no: )
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14828echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14829 ac_header_preproc=yes
14830 ;;
14831 no:yes:* )
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14835echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14837echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14839echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14843echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14844 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014845## ------------------------------------ ##
14846## Report this to http://llvm.org/bugs/ ##
14847## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014848_ASBOX
14849 ) | sed "s/^/$as_me: WARNING: /" >&2
14850 ;;
14851esac
14852{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856else
14857 eval "$as_ac_Header=\$ac_header_preproc"
14858fi
14859ac_res=`eval echo '${'$as_ac_Header'}'`
14860 { echo "$as_me:$LINENO: result: $ac_res" >&5
14861echo "${ECHO_T}$ac_res" >&6; }
14862
14863fi
14864if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014865 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014867_ACEOF
14868
14869fi
14870
14871done
Reid Spencer59473af2004-12-25 07:31:29 +000014872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014873
14874
14875
14876
Daniel Dunbar3e462932011-02-03 02:40:02 +000014877
14878for 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 +000014879do
14880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886fi
14887ac_res=`eval echo '${'$as_ac_Header'}'`
14888 { echo "$as_me:$LINENO: result: $ac_res" >&5
14889echo "${ECHO_T}$ac_res" >&6; }
14890else
14891 # Is the header compilable?
14892{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14894cat >conftest.$ac_ext <<_ACEOF
14895/* confdefs.h. */
14896_ACEOF
14897cat confdefs.h >>conftest.$ac_ext
14898cat >>conftest.$ac_ext <<_ACEOF
14899/* end confdefs.h. */
14900$ac_includes_default
14901#include <$ac_header>
14902_ACEOF
14903rm -f conftest.$ac_objext
14904if { (ac_try="$ac_compile"
14905case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908esac
14909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_compile") 2>conftest.er1
14911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
14917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14918 { (case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921esac
14922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_try") 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try='test -s conftest.$ac_objext'
14928 { (case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14931esac
14932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_try") 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14937 ac_header_compiler=yes
14938else
14939 echo "$as_me: failed program was:" >&5
14940sed 's/^/| /' conftest.$ac_ext >&5
14941
14942 ac_header_compiler=no
14943fi
14944
14945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947echo "${ECHO_T}$ac_header_compiler" >&6; }
14948
14949# Is the header present?
14950{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14952cat >conftest.$ac_ext <<_ACEOF
14953/* confdefs.h. */
14954_ACEOF
14955cat confdefs.h >>conftest.$ac_ext
14956cat >>conftest.$ac_ext <<_ACEOF
14957/* end confdefs.h. */
14958#include <$ac_header>
14959_ACEOF
14960if { (ac_try="$ac_cpp conftest.$ac_ext"
14961case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964esac
14965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } >/dev/null; then
14973 if test -s conftest.err; then
14974 ac_cpp_err=$ac_c_preproc_warn_flag
14975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14976 else
14977 ac_cpp_err=
14978 fi
14979else
14980 ac_cpp_err=yes
14981fi
14982if test -z "$ac_cpp_err"; then
14983 ac_header_preproc=yes
14984else
14985 echo "$as_me: failed program was:" >&5
14986sed 's/^/| /' conftest.$ac_ext >&5
14987
14988 ac_header_preproc=no
14989fi
14990
14991rm -f conftest.err conftest.$ac_ext
14992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14993echo "${ECHO_T}$ac_header_preproc" >&6; }
14994
14995# So? What about this header?
14996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14997 yes:no: )
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15002 ac_header_preproc=yes
15003 ;;
15004 no:yes:* )
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15017 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015018## ------------------------------------ ##
15019## Report this to http://llvm.org/bugs/ ##
15020## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015021_ASBOX
15022 ) | sed "s/^/$as_me: WARNING: /" >&2
15023 ;;
15024esac
15025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15029else
15030 eval "$as_ac_Header=\$ac_header_preproc"
15031fi
15032ac_res=`eval echo '${'$as_ac_Header'}'`
15033 { echo "$as_me:$LINENO: result: $ac_res" >&5
15034echo "${ECHO_T}$ac_res" >&6; }
15035
15036fi
15037if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015038 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015040_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015041
15042fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015043
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015044done
15045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015046
15047
15048
15049
Douglas Gregor01746742009-05-11 18:05:52 +000015050for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015051do
15052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15058fi
15059ac_res=`eval echo '${'$as_ac_Header'}'`
15060 { echo "$as_me:$LINENO: result: $ac_res" >&5
15061echo "${ECHO_T}$ac_res" >&6; }
15062else
15063 # Is the header compilable?
15064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15066cat >conftest.$ac_ext <<_ACEOF
15067/* confdefs.h. */
15068_ACEOF
15069cat confdefs.h >>conftest.$ac_ext
15070cat >>conftest.$ac_ext <<_ACEOF
15071/* end confdefs.h. */
15072$ac_includes_default
15073#include <$ac_header>
15074_ACEOF
15075rm -f conftest.$ac_objext
15076if { (ac_try="$ac_compile"
15077case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15080esac
15081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_compile") 2>conftest.er1
15083 ac_status=$?
15084 grep -v '^ *+' conftest.er1 >conftest.err
15085 rm -f conftest.er1
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15090 { (case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15093esac
15094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_try") 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } &&
15099 { ac_try='test -s conftest.$ac_objext'
15100 { (case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15103esac
15104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_try") 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_header_compiler=yes
15110else
15111 echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114 ac_header_compiler=no
15115fi
15116
15117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15119echo "${ECHO_T}$ac_header_compiler" >&6; }
15120
15121# Is the header present?
15122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15124cat >conftest.$ac_ext <<_ACEOF
15125/* confdefs.h. */
15126_ACEOF
15127cat confdefs.h >>conftest.$ac_ext
15128cat >>conftest.$ac_ext <<_ACEOF
15129/* end confdefs.h. */
15130#include <$ac_header>
15131_ACEOF
15132if { (ac_try="$ac_cpp conftest.$ac_ext"
15133case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15136esac
15137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15139 ac_status=$?
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } >/dev/null; then
15145 if test -s conftest.err; then
15146 ac_cpp_err=$ac_c_preproc_warn_flag
15147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15148 else
15149 ac_cpp_err=
15150 fi
15151else
15152 ac_cpp_err=yes
15153fi
15154if test -z "$ac_cpp_err"; then
15155 ac_header_preproc=yes
15156else
15157 echo "$as_me: failed program was:" >&5
15158sed 's/^/| /' conftest.$ac_ext >&5
15159
15160 ac_header_preproc=no
15161fi
15162
15163rm -f conftest.err conftest.$ac_ext
15164{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15165echo "${ECHO_T}$ac_header_preproc" >&6; }
15166
15167# So? What about this header?
15168case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15169 yes:no: )
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15171echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15173echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15174 ac_header_preproc=yes
15175 ;;
15176 no:yes:* )
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15178echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15180echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15182echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15184echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15188echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15189 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015190## ------------------------------------ ##
15191## Report this to http://llvm.org/bugs/ ##
15192## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015193_ASBOX
15194 ) | sed "s/^/$as_me: WARNING: /" >&2
15195 ;;
15196esac
15197{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201else
15202 eval "$as_ac_Header=\$ac_header_preproc"
15203fi
15204ac_res=`eval echo '${'$as_ac_Header'}'`
15205 { echo "$as_me:$LINENO: result: $ac_res" >&5
15206echo "${ECHO_T}$ac_res" >&6; }
15207
15208fi
15209if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015210 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015212_ACEOF
15213
15214fi
15215
15216done
15217
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015218
15219for ac_header in valgrind/valgrind.h
15220do
15221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227fi
15228ac_res=`eval echo '${'$as_ac_Header'}'`
15229 { echo "$as_me:$LINENO: result: $ac_res" >&5
15230echo "${ECHO_T}$ac_res" >&6; }
15231else
15232 # Is the header compilable?
15233{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15234echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15235cat >conftest.$ac_ext <<_ACEOF
15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
15241$ac_includes_default
15242#include <$ac_header>
15243_ACEOF
15244rm -f conftest.$ac_objext
15245if { (ac_try="$ac_compile"
15246case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249esac
15250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_compile") 2>conftest.er1
15252 ac_status=$?
15253 grep -v '^ *+' conftest.er1 >conftest.err
15254 rm -f conftest.er1
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } &&
15258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15259 { (case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262esac
15263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_try") 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; } &&
15268 { ac_try='test -s conftest.$ac_objext'
15269 { (case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272esac
15273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_try") 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15278 ac_header_compiler=yes
15279else
15280 echo "$as_me: failed program was:" >&5
15281sed 's/^/| /' conftest.$ac_ext >&5
15282
15283 ac_header_compiler=no
15284fi
15285
15286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15287{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15288echo "${ECHO_T}$ac_header_compiler" >&6; }
15289
15290# Is the header present?
15291{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15293cat >conftest.$ac_ext <<_ACEOF
15294/* confdefs.h. */
15295_ACEOF
15296cat confdefs.h >>conftest.$ac_ext
15297cat >>conftest.$ac_ext <<_ACEOF
15298/* end confdefs.h. */
15299#include <$ac_header>
15300_ACEOF
15301if { (ac_try="$ac_cpp conftest.$ac_ext"
15302case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15305esac
15306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15308 ac_status=$?
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } >/dev/null; then
15314 if test -s conftest.err; then
15315 ac_cpp_err=$ac_c_preproc_warn_flag
15316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15317 else
15318 ac_cpp_err=
15319 fi
15320else
15321 ac_cpp_err=yes
15322fi
15323if test -z "$ac_cpp_err"; then
15324 ac_header_preproc=yes
15325else
15326 echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 ac_header_preproc=no
15330fi
15331
15332rm -f conftest.err conftest.$ac_ext
15333{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15334echo "${ECHO_T}$ac_header_preproc" >&6; }
15335
15336# So? What about this header?
15337case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15338 yes:no: )
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15340echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15342echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15343 ac_header_preproc=yes
15344 ;;
15345 no:yes:* )
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15347echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15349echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15351echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15353echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15355echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15357echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15358 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015359## ------------------------------------ ##
15360## Report this to http://llvm.org/bugs/ ##
15361## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015362_ASBOX
15363 ) | sed "s/^/$as_me: WARNING: /" >&2
15364 ;;
15365esac
15366{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370else
15371 eval "$as_ac_Header=\$ac_header_preproc"
15372fi
15373ac_res=`eval echo '${'$as_ac_Header'}'`
15374 { echo "$as_me:$LINENO: result: $ac_res" >&5
15375echo "${ECHO_T}$ac_res" >&6; }
15376
15377fi
15378if test `eval echo '${'$as_ac_Header'}'` = yes; then
15379 cat >>confdefs.h <<_ACEOF
15380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15381_ACEOF
15382
15383fi
15384
15385done
15386
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015387
15388for ac_header in fenv.h
15389do
15390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15396fi
15397ac_res=`eval echo '${'$as_ac_Header'}'`
15398 { echo "$as_me:$LINENO: result: $ac_res" >&5
15399echo "${ECHO_T}$ac_res" >&6; }
15400else
15401 # Is the header compilable?
15402{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15403echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15404cat >conftest.$ac_ext <<_ACEOF
15405/* confdefs.h. */
15406_ACEOF
15407cat confdefs.h >>conftest.$ac_ext
15408cat >>conftest.$ac_ext <<_ACEOF
15409/* end confdefs.h. */
15410$ac_includes_default
15411#include <$ac_header>
15412_ACEOF
15413rm -f conftest.$ac_objext
15414if { (ac_try="$ac_compile"
15415case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418esac
15419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_compile") 2>conftest.er1
15421 ac_status=$?
15422 grep -v '^ *+' conftest.er1 >conftest.err
15423 rm -f conftest.er1
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15428 { (case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431esac
15432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_try") 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441esac
15442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_try") 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_header_compiler=yes
15448else
15449 echo "$as_me: failed program was:" >&5
15450sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 ac_header_compiler=no
15453fi
15454
15455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15456{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457echo "${ECHO_T}$ac_header_compiler" >&6; }
15458
15459# Is the header present?
15460{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15461echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15462cat >conftest.$ac_ext <<_ACEOF
15463/* confdefs.h. */
15464_ACEOF
15465cat confdefs.h >>conftest.$ac_ext
15466cat >>conftest.$ac_ext <<_ACEOF
15467/* end confdefs.h. */
15468#include <$ac_header>
15469_ACEOF
15470if { (ac_try="$ac_cpp conftest.$ac_ext"
15471case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15474esac
15475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } >/dev/null; then
15483 if test -s conftest.err; then
15484 ac_cpp_err=$ac_c_preproc_warn_flag
15485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15486 else
15487 ac_cpp_err=
15488 fi
15489else
15490 ac_cpp_err=yes
15491fi
15492if test -z "$ac_cpp_err"; then
15493 ac_header_preproc=yes
15494else
15495 echo "$as_me: failed program was:" >&5
15496sed 's/^/| /' conftest.$ac_ext >&5
15497
15498 ac_header_preproc=no
15499fi
15500
15501rm -f conftest.err conftest.$ac_ext
15502{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15503echo "${ECHO_T}$ac_header_preproc" >&6; }
15504
15505# So? What about this header?
15506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15507 yes:no: )
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15509echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15511echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15512 ac_header_preproc=yes
15513 ;;
15514 no:yes:* )
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15518echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15520echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15522echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15526echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15527 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015528## ------------------------------------ ##
15529## Report this to http://llvm.org/bugs/ ##
15530## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015531_ASBOX
15532 ) | sed "s/^/$as_me: WARNING: /" >&2
15533 ;;
15534esac
15535{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15539else
15540 eval "$as_ac_Header=\$ac_header_preproc"
15541fi
15542ac_res=`eval echo '${'$as_ac_Header'}'`
15543 { echo "$as_me:$LINENO: result: $ac_res" >&5
15544echo "${ECHO_T}$ac_res" >&6; }
15545
15546fi
15547if test `eval echo '${'$as_ac_Header'}'` = yes; then
15548 cat >>confdefs.h <<_ACEOF
15549#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15550_ACEOF
15551
15552fi
15553
15554done
15555
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015556if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015557
15558for ac_header in pthread.h
15559do
15560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15566fi
15567ac_res=`eval echo '${'$as_ac_Header'}'`
15568 { echo "$as_me:$LINENO: result: $ac_res" >&5
15569echo "${ECHO_T}$ac_res" >&6; }
15570else
15571 # Is the header compilable?
15572{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15574cat >conftest.$ac_ext <<_ACEOF
15575/* confdefs.h. */
15576_ACEOF
15577cat confdefs.h >>conftest.$ac_ext
15578cat >>conftest.$ac_ext <<_ACEOF
15579/* end confdefs.h. */
15580$ac_includes_default
15581#include <$ac_header>
15582_ACEOF
15583rm -f conftest.$ac_objext
15584if { (ac_try="$ac_compile"
15585case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588esac
15589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_compile") 2>conftest.er1
15591 ac_status=$?
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15598 { (case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15601esac
15602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_try") 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; } &&
15607 { ac_try='test -s conftest.$ac_objext'
15608 { (case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611esac
15612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_try") 2>&5
15614 ac_status=$?
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_header_compiler=yes
15618else
15619 echo "$as_me: failed program was:" >&5
15620sed 's/^/| /' conftest.$ac_ext >&5
15621
15622 ac_header_compiler=no
15623fi
15624
15625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15627echo "${ECHO_T}$ac_header_compiler" >&6; }
15628
15629# Is the header present?
15630{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15632cat >conftest.$ac_ext <<_ACEOF
15633/* confdefs.h. */
15634_ACEOF
15635cat confdefs.h >>conftest.$ac_ext
15636cat >>conftest.$ac_ext <<_ACEOF
15637/* end confdefs.h. */
15638#include <$ac_header>
15639_ACEOF
15640if { (ac_try="$ac_cpp conftest.$ac_ext"
15641case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644esac
15645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15647 ac_status=$?
15648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } >/dev/null; then
15653 if test -s conftest.err; then
15654 ac_cpp_err=$ac_c_preproc_warn_flag
15655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15656 else
15657 ac_cpp_err=
15658 fi
15659else
15660 ac_cpp_err=yes
15661fi
15662if test -z "$ac_cpp_err"; then
15663 ac_header_preproc=yes
15664else
15665 echo "$as_me: failed program was:" >&5
15666sed 's/^/| /' conftest.$ac_ext >&5
15667
15668 ac_header_preproc=no
15669fi
15670
15671rm -f conftest.err conftest.$ac_ext
15672{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15673echo "${ECHO_T}$ac_header_preproc" >&6; }
15674
15675# So? What about this header?
15676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15677 yes:no: )
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15682 ac_header_preproc=yes
15683 ;;
15684 no:yes:* )
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15697 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015698## ------------------------------------ ##
15699## Report this to http://llvm.org/bugs/ ##
15700## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015701_ASBOX
15702 ) | sed "s/^/$as_me: WARNING: /" >&2
15703 ;;
15704esac
15705{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15709else
15710 eval "$as_ac_Header=\$ac_header_preproc"
15711fi
15712ac_res=`eval echo '${'$as_ac_Header'}'`
15713 { echo "$as_me:$LINENO: result: $ac_res" >&5
15714echo "${ECHO_T}$ac_res" >&6; }
15715
15716fi
15717if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015718 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015720_ACEOF
15721 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015722
15723else
15724 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015725
15726fi
15727
Reid Spencerbe3e4192007-08-17 05:45:26 +000015728done
Reid Spencer1000b732006-12-01 00:37:14 +000015729
15730else
15731 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015732
15733fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015734
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015735if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015736
15737
15738for ac_header in ffi.h ffi/ffi.h
15739do
15740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15746fi
15747ac_res=`eval echo '${'$as_ac_Header'}'`
15748 { echo "$as_me:$LINENO: result: $ac_res" >&5
15749echo "${ECHO_T}$ac_res" >&6; }
15750else
15751 # Is the header compilable?
15752{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15754cat >conftest.$ac_ext <<_ACEOF
15755/* confdefs.h. */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h. */
15760$ac_includes_default
15761#include <$ac_header>
15762_ACEOF
15763rm -f conftest.$ac_objext
15764if { (ac_try="$ac_compile"
15765case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15768esac
15769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_compile") 2>conftest.er1
15771 ac_status=$?
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
15777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15778 { (case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781esac
15782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_try") 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; } &&
15787 { ac_try='test -s conftest.$ac_objext'
15788 { (case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791esac
15792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_try") 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 ac_header_compiler=yes
15798else
15799 echo "$as_me: failed program was:" >&5
15800sed 's/^/| /' conftest.$ac_ext >&5
15801
15802 ac_header_compiler=no
15803fi
15804
15805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15807echo "${ECHO_T}$ac_header_compiler" >&6; }
15808
15809# Is the header present?
15810{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15812cat >conftest.$ac_ext <<_ACEOF
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818#include <$ac_header>
15819_ACEOF
15820if { (ac_try="$ac_cpp conftest.$ac_ext"
15821case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15824esac
15825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15827 ac_status=$?
15828 grep -v '^ *+' conftest.er1 >conftest.err
15829 rm -f conftest.er1
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } >/dev/null; then
15833 if test -s conftest.err; then
15834 ac_cpp_err=$ac_c_preproc_warn_flag
15835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15836 else
15837 ac_cpp_err=
15838 fi
15839else
15840 ac_cpp_err=yes
15841fi
15842if test -z "$ac_cpp_err"; then
15843 ac_header_preproc=yes
15844else
15845 echo "$as_me: failed program was:" >&5
15846sed 's/^/| /' conftest.$ac_ext >&5
15847
15848 ac_header_preproc=no
15849fi
15850
15851rm -f conftest.err conftest.$ac_ext
15852{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853echo "${ECHO_T}$ac_header_preproc" >&6; }
15854
15855# So? What about this header?
15856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15857 yes:no: )
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15862 ac_header_preproc=yes
15863 ;;
15864 no:yes:* )
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15868echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15872echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15877 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015878## ------------------------------------ ##
15879## Report this to http://llvm.org/bugs/ ##
15880## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015881_ASBOX
15882 ) | sed "s/^/$as_me: WARNING: /" >&2
15883 ;;
15884esac
15885{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15889else
15890 eval "$as_ac_Header=\$ac_header_preproc"
15891fi
15892ac_res=`eval echo '${'$as_ac_Header'}'`
15893 { echo "$as_me:$LINENO: result: $ac_res" >&5
15894echo "${ECHO_T}$ac_res" >&6; }
15895
15896fi
15897if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015898 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015900_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015901
15902fi
15903
15904done
15905
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015906fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015907
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015908
Eric Christopher654dee42010-06-22 21:01:04 +000015909for ac_header in CrashReporterClient.h
15910do
15911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916 echo $ECHO_N "(cached) $ECHO_C" >&6
15917fi
15918ac_res=`eval echo '${'$as_ac_Header'}'`
15919 { echo "$as_me:$LINENO: result: $ac_res" >&5
15920echo "${ECHO_T}$ac_res" >&6; }
15921else
15922 # Is the header compilable?
15923{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15924echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15925cat >conftest.$ac_ext <<_ACEOF
15926/* confdefs.h. */
15927_ACEOF
15928cat confdefs.h >>conftest.$ac_ext
15929cat >>conftest.$ac_ext <<_ACEOF
15930/* end confdefs.h. */
15931$ac_includes_default
15932#include <$ac_header>
15933_ACEOF
15934rm -f conftest.$ac_objext
15935if { (ac_try="$ac_compile"
15936case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15939esac
15940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_compile") 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15949 { (case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15952esac
15953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_try") 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962esac
15963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_header_compiler=yes
15969else
15970 echo "$as_me: failed program was:" >&5
15971sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 ac_header_compiler=no
15974fi
15975
15976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15978echo "${ECHO_T}$ac_header_compiler" >&6; }
15979
15980# Is the header present?
15981{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15983cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */
15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */
15989#include <$ac_header>
15990_ACEOF
15991if { (ac_try="$ac_cpp conftest.$ac_ext"
15992case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995esac
15996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } >/dev/null; then
16004 if test -s conftest.err; then
16005 ac_cpp_err=$ac_c_preproc_warn_flag
16006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16007 else
16008 ac_cpp_err=
16009 fi
16010else
16011 ac_cpp_err=yes
16012fi
16013if test -z "$ac_cpp_err"; then
16014 ac_header_preproc=yes
16015else
16016 echo "$as_me: failed program was:" >&5
16017sed 's/^/| /' conftest.$ac_ext >&5
16018
16019 ac_header_preproc=no
16020fi
16021
16022rm -f conftest.err conftest.$ac_ext
16023{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16024echo "${ECHO_T}$ac_header_preproc" >&6; }
16025
16026# So? What about this header?
16027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16028 yes:no: )
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16033 ac_header_preproc=yes
16034 ;;
16035 no:yes:* )
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16048 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016049## ------------------------------------ ##
16050## Report this to http://llvm.org/bugs/ ##
16051## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016052_ASBOX
16053 ) | sed "s/^/$as_me: WARNING: /" >&2
16054 ;;
16055esac
16056{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16060else
16061 eval "$as_ac_Header=\$ac_header_preproc"
16062fi
16063ac_res=`eval echo '${'$as_ac_Header'}'`
16064 { echo "$as_me:$LINENO: result: $ac_res" >&5
16065echo "${ECHO_T}$ac_res" >&6; }
16066
16067fi
16068if test `eval echo '${'$as_ac_Header'}'` = yes; then
16069 cat >>confdefs.h <<_ACEOF
16070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16071_ACEOF
16072
16073fi
16074
16075done
16076
16077
Eric Christopher51e57132010-12-07 02:05:42 +000016078{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16079echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016080cat >conftest.$ac_ext <<_ACEOF
16081/* confdefs.h. */
16082_ACEOF
16083cat confdefs.h >>conftest.$ac_ext
16084cat >>conftest.$ac_ext <<_ACEOF
16085/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016086extern const char *__crashreporter_info__;
16087 int main() {
16088 __crashreporter_info__ = "test";
16089 return 0;
16090 }
Eric Christopher481d4022010-12-03 07:45:22 +000016091
Eric Christopher481d4022010-12-03 07:45:22 +000016092_ACEOF
16093rm -f conftest.$ac_objext conftest$ac_exeext
16094if { (ac_try="$ac_link"
16095case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16098esac
16099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_link") 2>conftest.er1
16101 ac_status=$?
16102 grep -v '^ *+' conftest.er1 >conftest.err
16103 rm -f conftest.er1
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } &&
16107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16108 { (case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16111esac
16112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113 (eval "$ac_try") 2>&5
16114 ac_status=$?
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; } &&
16117 { ac_try='test -s conftest$ac_exeext'
16118 { (case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16121esac
16122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_try") 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016127 { echo "$as_me:$LINENO: result: yes" >&5
16128echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016129
16130cat >>confdefs.h <<\_ACEOF
16131#define HAVE_CRASHREPORTER_INFO 1
16132_ACEOF
16133
Eric Christopher51e57132010-12-07 02:05:42 +000016134else
16135 echo "$as_me: failed program was:" >&5
16136sed 's/^/| /' conftest.$ac_ext >&5
16137
16138 { echo "$as_me:$LINENO: result: no" >&5
16139echo "${ECHO_T}no" >&6; }
16140
16141cat >>confdefs.h <<\_ACEOF
16142#define HAVE_CRASHREPORTER_INFO 0
16143_ACEOF
16144
Eric Christopher481d4022010-12-03 07:45:22 +000016145fi
Eric Christopher654dee42010-06-22 21:01:04 +000016146
Eric Christopher51e57132010-12-07 02:05:42 +000016147rm -f core conftest.err conftest.$ac_objext \
16148 conftest$ac_exeext conftest.$ac_ext
16149
16150
Reid Spencer8085cff2005-01-16 02:58:39 +000016151
Torok Edwin871384f2010-01-26 08:50:50 +000016152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016153 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16154echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16155if test "${ac_cv_huge_val_sanity+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016157else
16158
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016159 ac_ext=cpp
16160ac_cpp='$CXXCPP $CPPFLAGS'
16161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016164
Eric Christopherc7718502010-03-02 05:06:54 +000016165 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016166 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016167 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016168 ac_cv_huge_val_sanity=yes
16169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016170 cat >conftest.$ac_ext <<_ACEOF
16171/* confdefs.h. */
16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016175/* end confdefs.h. */
16176#include <math.h>
16177int
16178main ()
16179{
16180double x = HUGE_VAL; return x != x;
16181 ;
16182 return 0;
16183}
16184_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016185rm -f conftest$ac_exeext
16186if { (ac_try="$ac_link"
16187case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_link") 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16196 { (case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16199esac
16200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_try") 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016205 ac_cv_huge_val_sanity=yes
16206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016207 echo "$as_me: program exited with status $ac_status" >&5
16208echo "$as_me: failed program was:" >&5
16209sed 's/^/| /' conftest.$ac_ext >&5
16210
16211( exit $ac_status )
16212ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016214rm -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 +000016215fi
16216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016217
Eric Christopherc7718502010-03-02 05:06:54 +000016218 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016219 ac_ext=c
16220ac_cpp='$CPP $CPPFLAGS'
16221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16223ac_compiler_gnu=$ac_cv_c_compiler_gnu
16224
16225
16226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016227{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16228echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016229 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16230
16231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016232{ echo "$as_me:$LINENO: checking for pid_t" >&5
16233echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16234if test "${ac_cv_type_pid_t+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236else
16237 cat >conftest.$ac_ext <<_ACEOF
16238/* confdefs.h. */
16239_ACEOF
16240cat confdefs.h >>conftest.$ac_ext
16241cat >>conftest.$ac_ext <<_ACEOF
16242/* end confdefs.h. */
16243$ac_includes_default
16244typedef pid_t ac__type_new_;
16245int
16246main ()
16247{
16248if ((ac__type_new_ *) 0)
16249 return 0;
16250if (sizeof (ac__type_new_))
16251 return 0;
16252 ;
16253 return 0;
16254}
16255_ACEOF
16256rm -f conftest.$ac_objext
16257if { (ac_try="$ac_compile"
16258case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261esac
16262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_compile") 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271 { (case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274esac
16275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_try") 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest.$ac_objext'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284esac
16285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_cv_type_pid_t=yes
16291else
16292 echo "$as_me: failed program was:" >&5
16293sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016295 ac_cv_type_pid_t=no
16296fi
16297
16298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299fi
16300{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16301echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16302if test $ac_cv_type_pid_t = yes; then
16303 :
John Criswell7a73b802003-06-30 21:59:07 +000016304else
16305
16306cat >>confdefs.h <<_ACEOF
16307#define pid_t int
16308_ACEOF
16309
16310fi
16311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016312{ echo "$as_me:$LINENO: checking for size_t" >&5
16313echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16314if test "${ac_cv_type_size_t+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16316else
16317 cat >conftest.$ac_ext <<_ACEOF
16318/* confdefs.h. */
16319_ACEOF
16320cat confdefs.h >>conftest.$ac_ext
16321cat >>conftest.$ac_ext <<_ACEOF
16322/* end confdefs.h. */
16323$ac_includes_default
16324typedef size_t ac__type_new_;
16325int
16326main ()
16327{
16328if ((ac__type_new_ *) 0)
16329 return 0;
16330if (sizeof (ac__type_new_))
16331 return 0;
16332 ;
16333 return 0;
16334}
16335_ACEOF
16336rm -f conftest.$ac_objext
16337if { (ac_try="$ac_compile"
16338case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16341esac
16342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_compile") 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16351 { (case "(($ac_try" in
16352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353 *) ac_try_echo=$ac_try;;
16354esac
16355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356 (eval "$ac_try") 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
16361 { (case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364esac
16365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_try") 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
16370 ac_cv_type_size_t=yes
16371else
16372 echo "$as_me: failed program was:" >&5
16373sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016375 ac_cv_type_size_t=no
16376fi
16377
16378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16379fi
16380{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16381echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16382if test $ac_cv_type_size_t = yes; then
16383 :
John Criswell7a73b802003-06-30 21:59:07 +000016384else
16385
16386cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016387#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016388_ACEOF
16389
16390fi
16391
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016392
16393cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016394#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016395_ACEOF
16396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016397{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16398echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16399if test "${ac_cv_struct_tm+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016402 cat >conftest.$ac_ext <<_ACEOF
16403/* confdefs.h. */
16404_ACEOF
16405cat confdefs.h >>conftest.$ac_ext
16406cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016407/* end confdefs.h. */
16408#include <sys/types.h>
16409#include <time.h>
16410
16411int
16412main ()
16413{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016414struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016415 ;
16416 return 0;
16417}
16418_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016419rm -f conftest.$ac_objext
16420if { (ac_try="$ac_compile"
16421case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16424esac
16425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_compile") 2>conftest.er1
16427 ac_status=$?
16428 grep -v '^ *+' conftest.er1 >conftest.err
16429 rm -f conftest.er1
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16434 { (case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437esac
16438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_try") 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } &&
16443 { ac_try='test -s conftest.$ac_objext'
16444 { (case "(($ac_try" in
16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446 *) ac_try_echo=$ac_try;;
16447esac
16448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449 (eval "$ac_try") 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016453 ac_cv_struct_tm=time.h
16454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016455 echo "$as_me: failed program was:" >&5
16456sed 's/^/| /' conftest.$ac_ext >&5
16457
16458 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016460
Reid Spencera773bd52006-08-04 18:18:08 +000016461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016462fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016463{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16464echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016465if test $ac_cv_struct_tm = sys/time.h; then
16466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016467cat >>confdefs.h <<\_ACEOF
16468#define TM_IN_SYS_TIME 1
16469_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016470
16471fi
16472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016473{ echo "$as_me:$LINENO: checking for int64_t" >&5
16474echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16475if test "${ac_cv_type_int64_t+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16477else
16478 cat >conftest.$ac_ext <<_ACEOF
16479/* confdefs.h. */
16480_ACEOF
16481cat confdefs.h >>conftest.$ac_ext
16482cat >>conftest.$ac_ext <<_ACEOF
16483/* end confdefs.h. */
16484$ac_includes_default
16485typedef int64_t ac__type_new_;
16486int
16487main ()
16488{
16489if ((ac__type_new_ *) 0)
16490 return 0;
16491if (sizeof (ac__type_new_))
16492 return 0;
16493 ;
16494 return 0;
16495}
16496_ACEOF
16497rm -f conftest.$ac_objext
16498if { (ac_try="$ac_compile"
16499case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16502esac
16503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_compile") 2>conftest.er1
16505 ac_status=$?
16506 grep -v '^ *+' conftest.er1 >conftest.err
16507 rm -f conftest.er1
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } &&
16511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16512 { (case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16515esac
16516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_try") 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; } &&
16521 { ac_try='test -s conftest.$ac_objext'
16522 { (case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525esac
16526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_try") 2>&5
16528 ac_status=$?
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16531 ac_cv_type_int64_t=yes
16532else
16533 echo "$as_me: failed program was:" >&5
16534sed 's/^/| /' conftest.$ac_ext >&5
16535
16536 ac_cv_type_int64_t=no
16537fi
16538
16539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540fi
16541{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16542echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16543if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016544
16545cat >>confdefs.h <<_ACEOF
16546#define HAVE_INT64_T 1
16547_ACEOF
16548
16549
16550else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016551 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16552echo "$as_me: error: Type int64_t required but not found" >&2;}
16553 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016554fi
16555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016556{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16557echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16558if test "${ac_cv_type_uint64_t+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560else
16561 cat >conftest.$ac_ext <<_ACEOF
16562/* confdefs.h. */
16563_ACEOF
16564cat confdefs.h >>conftest.$ac_ext
16565cat >>conftest.$ac_ext <<_ACEOF
16566/* end confdefs.h. */
16567$ac_includes_default
16568typedef uint64_t ac__type_new_;
16569int
16570main ()
16571{
16572if ((ac__type_new_ *) 0)
16573 return 0;
16574if (sizeof (ac__type_new_))
16575 return 0;
16576 ;
16577 return 0;
16578}
16579_ACEOF
16580rm -f conftest.$ac_objext
16581if { (ac_try="$ac_compile"
16582case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16585esac
16586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_compile") 2>conftest.er1
16588 ac_status=$?
16589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16595 { (case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16598esac
16599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_try") 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest.$ac_objext'
16605 { (case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16608esac
16609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_try") 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_cv_type_uint64_t=yes
16615else
16616 echo "$as_me: failed program was:" >&5
16617sed 's/^/| /' conftest.$ac_ext >&5
16618
16619 ac_cv_type_uint64_t=no
16620fi
16621
16622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623fi
16624{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16625echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16626if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016627
16628cat >>confdefs.h <<_ACEOF
16629#define HAVE_UINT64_T 1
16630_ACEOF
16631
16632
16633else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016634 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16635echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16636if test "${ac_cv_type_u_int64_t+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16638else
16639 cat >conftest.$ac_ext <<_ACEOF
16640/* confdefs.h. */
16641_ACEOF
16642cat confdefs.h >>conftest.$ac_ext
16643cat >>conftest.$ac_ext <<_ACEOF
16644/* end confdefs.h. */
16645$ac_includes_default
16646typedef u_int64_t ac__type_new_;
16647int
16648main ()
16649{
16650if ((ac__type_new_ *) 0)
16651 return 0;
16652if (sizeof (ac__type_new_))
16653 return 0;
16654 ;
16655 return 0;
16656}
16657_ACEOF
16658rm -f conftest.$ac_objext
16659if { (ac_try="$ac_compile"
16660case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16663esac
16664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_compile") 2>conftest.er1
16666 ac_status=$?
16667 grep -v '^ *+' conftest.er1 >conftest.err
16668 rm -f conftest.er1
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16673 { (case "(($ac_try" in
16674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16675 *) ac_try_echo=$ac_try;;
16676esac
16677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16678 (eval "$ac_try") 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; } &&
16682 { ac_try='test -s conftest.$ac_objext'
16683 { (case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16686esac
16687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_try") 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; }; then
16692 ac_cv_type_u_int64_t=yes
16693else
16694 echo "$as_me: failed program was:" >&5
16695sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 ac_cv_type_u_int64_t=no
16698fi
16699
16700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16701fi
16702{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16703echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16704if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016705
16706cat >>confdefs.h <<_ACEOF
16707#define HAVE_U_INT64_T 1
16708_ACEOF
16709
16710
Misha Brukmanceca9042004-09-02 23:02:30 +000016711else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016712 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16713echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16714 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016715fi
16716
John Criswell679ff312004-09-02 18:44:44 +000016717fi
16718
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016719
16720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016721
16722
16723
16724
16725
16726
16727
Reid Spencerdf3be822006-01-23 08:15:53 +000016728for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016729do
16730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16731{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16733if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735else
16736 cat >conftest.$ac_ext <<_ACEOF
16737/* confdefs.h. */
16738_ACEOF
16739cat confdefs.h >>conftest.$ac_ext
16740cat >>conftest.$ac_ext <<_ACEOF
16741/* end confdefs.h. */
16742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16744#define $ac_func innocuous_$ac_func
16745
16746/* System header to define __stub macros and hopefully few prototypes,
16747 which can conflict with char $ac_func (); below.
16748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16749 <limits.h> exists even on freestanding compilers. */
16750
16751#ifdef __STDC__
16752# include <limits.h>
16753#else
16754# include <assert.h>
16755#endif
16756
16757#undef $ac_func
16758
16759/* Override any GCC internal prototype to avoid an error.
16760 Use char because int might match the return type of a GCC
16761 builtin and then its argument prototype would still apply. */
16762#ifdef __cplusplus
16763extern "C"
16764#endif
16765char $ac_func ();
16766/* The GNU C library defines this for functions which it implements
16767 to always fail with ENOSYS. Some functions are actually named
16768 something starting with __ and the normal name is an alias. */
16769#if defined __stub_$ac_func || defined __stub___$ac_func
16770choke me
16771#endif
16772
16773int
16774main ()
16775{
16776return $ac_func ();
16777 ;
16778 return 0;
16779}
16780_ACEOF
16781rm -f conftest.$ac_objext conftest$ac_exeext
16782if { (ac_try="$ac_link"
16783case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16786esac
16787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_link") 2>conftest.er1
16789 ac_status=$?
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
16795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16796 { (case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16799esac
16800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_try") 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest$ac_exeext'
16806 { (case "(($ac_try" in
16807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808 *) ac_try_echo=$ac_try;;
16809esac
16810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811 (eval "$ac_try") 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 eval "$as_ac_var=yes"
16816else
16817 echo "$as_me: failed program was:" >&5
16818sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 eval "$as_ac_var=no"
16821fi
16822
16823rm -f core conftest.err conftest.$ac_objext \
16824 conftest$ac_exeext conftest.$ac_ext
16825fi
16826ac_res=`eval echo '${'$as_ac_var'}'`
16827 { echo "$as_me:$LINENO: result: $ac_res" >&5
16828echo "${ECHO_T}$ac_res" >&6; }
16829if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016830 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016832_ACEOF
16833
16834fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016835done
John Criswell7a73b802003-06-30 21:59:07 +000016836
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016837
16838
16839
16840
Reid Spencer96cf5872007-07-13 10:05:30 +000016841for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016842do
16843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16844{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16846if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16848else
16849 cat >conftest.$ac_ext <<_ACEOF
16850/* confdefs.h. */
16851_ACEOF
16852cat confdefs.h >>conftest.$ac_ext
16853cat >>conftest.$ac_ext <<_ACEOF
16854/* end confdefs.h. */
16855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16857#define $ac_func innocuous_$ac_func
16858
16859/* System header to define __stub macros and hopefully few prototypes,
16860 which can conflict with char $ac_func (); below.
16861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16862 <limits.h> exists even on freestanding compilers. */
16863
16864#ifdef __STDC__
16865# include <limits.h>
16866#else
16867# include <assert.h>
16868#endif
16869
16870#undef $ac_func
16871
16872/* Override any GCC internal prototype to avoid an error.
16873 Use char because int might match the return type of a GCC
16874 builtin and then its argument prototype would still apply. */
16875#ifdef __cplusplus
16876extern "C"
16877#endif
16878char $ac_func ();
16879/* The GNU C library defines this for functions which it implements
16880 to always fail with ENOSYS. Some functions are actually named
16881 something starting with __ and the normal name is an alias. */
16882#if defined __stub_$ac_func || defined __stub___$ac_func
16883choke me
16884#endif
16885
16886int
16887main ()
16888{
16889return $ac_func ();
16890 ;
16891 return 0;
16892}
16893_ACEOF
16894rm -f conftest.$ac_objext conftest$ac_exeext
16895if { (ac_try="$ac_link"
16896case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16899esac
16900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_link") 2>conftest.er1
16902 ac_status=$?
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912esac
16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest$ac_exeext'
16919 { (case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16922esac
16923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_try") 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 eval "$as_ac_var=yes"
16929else
16930 echo "$as_me: failed program was:" >&5
16931sed 's/^/| /' conftest.$ac_ext >&5
16932
16933 eval "$as_ac_var=no"
16934fi
16935
16936rm -f core conftest.err conftest.$ac_objext \
16937 conftest$ac_exeext conftest.$ac_ext
16938fi
16939ac_res=`eval echo '${'$as_ac_var'}'`
16940 { echo "$as_me:$LINENO: result: $ac_res" >&5
16941echo "${ECHO_T}$ac_res" >&6; }
16942if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016943 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016944#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016945_ACEOF
16946
16947fi
16948done
16949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016950
16951
16952
16953
16954
Reid Spencerb90645c2007-02-16 19:17:20 +000016955for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016956do
16957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16958{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16960if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962else
16963 cat >conftest.$ac_ext <<_ACEOF
16964/* confdefs.h. */
16965_ACEOF
16966cat confdefs.h >>conftest.$ac_ext
16967cat >>conftest.$ac_ext <<_ACEOF
16968/* end confdefs.h. */
16969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16971#define $ac_func innocuous_$ac_func
16972
16973/* System header to define __stub macros and hopefully few prototypes,
16974 which can conflict with char $ac_func (); below.
16975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16976 <limits.h> exists even on freestanding compilers. */
16977
16978#ifdef __STDC__
16979# include <limits.h>
16980#else
16981# include <assert.h>
16982#endif
16983
16984#undef $ac_func
16985
16986/* Override any GCC internal prototype to avoid an error.
16987 Use char because int might match the return type of a GCC
16988 builtin and then its argument prototype would still apply. */
16989#ifdef __cplusplus
16990extern "C"
16991#endif
16992char $ac_func ();
16993/* The GNU C library defines this for functions which it implements
16994 to always fail with ENOSYS. Some functions are actually named
16995 something starting with __ and the normal name is an alias. */
16996#if defined __stub_$ac_func || defined __stub___$ac_func
16997choke me
16998#endif
16999
17000int
17001main ()
17002{
17003return $ac_func ();
17004 ;
17005 return 0;
17006}
17007_ACEOF
17008rm -f conftest.$ac_objext conftest$ac_exeext
17009if { (ac_try="$ac_link"
17010case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013esac
17014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_link") 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026esac
17027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } &&
17032 { ac_try='test -s conftest$ac_exeext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036esac
17037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 eval "$as_ac_var=yes"
17043else
17044 echo "$as_me: failed program was:" >&5
17045sed 's/^/| /' conftest.$ac_ext >&5
17046
17047 eval "$as_ac_var=no"
17048fi
17049
17050rm -f core conftest.err conftest.$ac_objext \
17051 conftest$ac_exeext conftest.$ac_ext
17052fi
17053ac_res=`eval echo '${'$as_ac_var'}'`
17054 { echo "$as_me:$LINENO: result: $ac_res" >&5
17055echo "${ECHO_T}$ac_res" >&6; }
17056if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017057 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017059_ACEOF
17060
17061fi
17062done
17063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017064
17065
17066
Reid Spencerb90645c2007-02-16 19:17:20 +000017067for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017068do
17069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17070{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17072if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17074else
17075 cat >conftest.$ac_ext <<_ACEOF
17076/* confdefs.h. */
17077_ACEOF
17078cat confdefs.h >>conftest.$ac_ext
17079cat >>conftest.$ac_ext <<_ACEOF
17080/* end confdefs.h. */
17081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17083#define $ac_func innocuous_$ac_func
17084
17085/* System header to define __stub macros and hopefully few prototypes,
17086 which can conflict with char $ac_func (); below.
17087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17088 <limits.h> exists even on freestanding compilers. */
17089
17090#ifdef __STDC__
17091# include <limits.h>
17092#else
17093# include <assert.h>
17094#endif
17095
17096#undef $ac_func
17097
17098/* Override any GCC internal prototype to avoid an error.
17099 Use char because int might match the return type of a GCC
17100 builtin and then its argument prototype would still apply. */
17101#ifdef __cplusplus
17102extern "C"
17103#endif
17104char $ac_func ();
17105/* The GNU C library defines this for functions which it implements
17106 to always fail with ENOSYS. Some functions are actually named
17107 something starting with __ and the normal name is an alias. */
17108#if defined __stub_$ac_func || defined __stub___$ac_func
17109choke me
17110#endif
17111
17112int
17113main ()
17114{
17115return $ac_func ();
17116 ;
17117 return 0;
17118}
17119_ACEOF
17120rm -f conftest.$ac_objext conftest$ac_exeext
17121if { (ac_try="$ac_link"
17122case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17125esac
17126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_link") 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17135 { (case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17138esac
17139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_try") 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; } &&
17144 { ac_try='test -s conftest$ac_exeext'
17145 { (case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17148esac
17149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_try") 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 eval "$as_ac_var=yes"
17155else
17156 echo "$as_me: failed program was:" >&5
17157sed 's/^/| /' conftest.$ac_ext >&5
17158
17159 eval "$as_ac_var=no"
17160fi
17161
17162rm -f core conftest.err conftest.$ac_objext \
17163 conftest$ac_exeext conftest.$ac_ext
17164fi
17165ac_res=`eval echo '${'$as_ac_var'}'`
17166 { echo "$as_me:$LINENO: result: $ac_res" >&5
17167echo "${ECHO_T}$ac_res" >&6; }
17168if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017169 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017171_ACEOF
17172
17173fi
17174done
17175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017176
17177
17178
17179
17180
Eric Christophere4291822010-04-16 05:14:21 +000017181
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017182
17183for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017184do
17185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17186{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17188if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17189 echo $ECHO_N "(cached) $ECHO_C" >&6
17190else
17191 cat >conftest.$ac_ext <<_ACEOF
17192/* confdefs.h. */
17193_ACEOF
17194cat confdefs.h >>conftest.$ac_ext
17195cat >>conftest.$ac_ext <<_ACEOF
17196/* end confdefs.h. */
17197/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17199#define $ac_func innocuous_$ac_func
17200
17201/* System header to define __stub macros and hopefully few prototypes,
17202 which can conflict with char $ac_func (); below.
17203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17204 <limits.h> exists even on freestanding compilers. */
17205
17206#ifdef __STDC__
17207# include <limits.h>
17208#else
17209# include <assert.h>
17210#endif
17211
17212#undef $ac_func
17213
17214/* Override any GCC internal prototype to avoid an error.
17215 Use char because int might match the return type of a GCC
17216 builtin and then its argument prototype would still apply. */
17217#ifdef __cplusplus
17218extern "C"
17219#endif
17220char $ac_func ();
17221/* The GNU C library defines this for functions which it implements
17222 to always fail with ENOSYS. Some functions are actually named
17223 something starting with __ and the normal name is an alias. */
17224#if defined __stub_$ac_func || defined __stub___$ac_func
17225choke me
17226#endif
17227
17228int
17229main ()
17230{
17231return $ac_func ();
17232 ;
17233 return 0;
17234}
17235_ACEOF
17236rm -f conftest.$ac_objext conftest$ac_exeext
17237if { (ac_try="$ac_link"
17238case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241esac
17242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_link") 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254esac
17255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_try") 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest$ac_exeext'
17261 { (case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264esac
17265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_try") 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 eval "$as_ac_var=yes"
17271else
17272 echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 eval "$as_ac_var=no"
17276fi
17277
17278rm -f core conftest.err conftest.$ac_objext \
17279 conftest$ac_exeext conftest.$ac_ext
17280fi
17281ac_res=`eval echo '${'$as_ac_var'}'`
17282 { echo "$as_me:$LINENO: result: $ac_res" >&5
17283echo "${ECHO_T}$ac_res" >&6; }
17284if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017285 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017287_ACEOF
17288
17289fi
17290done
Reid Spencerdf3be822006-01-23 08:15:53 +000017291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017292
17293
17294
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017295
17296for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017297do
17298as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17299{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17300echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17301if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17303else
17304 cat >conftest.$ac_ext <<_ACEOF
17305/* confdefs.h. */
17306_ACEOF
17307cat confdefs.h >>conftest.$ac_ext
17308cat >>conftest.$ac_ext <<_ACEOF
17309/* end confdefs.h. */
17310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17312#define $ac_func innocuous_$ac_func
17313
17314/* System header to define __stub macros and hopefully few prototypes,
17315 which can conflict with char $ac_func (); below.
17316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17317 <limits.h> exists even on freestanding compilers. */
17318
17319#ifdef __STDC__
17320# include <limits.h>
17321#else
17322# include <assert.h>
17323#endif
17324
17325#undef $ac_func
17326
17327/* Override any GCC internal prototype to avoid an error.
17328 Use char because int might match the return type of a GCC
17329 builtin and then its argument prototype would still apply. */
17330#ifdef __cplusplus
17331extern "C"
17332#endif
17333char $ac_func ();
17334/* The GNU C library defines this for functions which it implements
17335 to always fail with ENOSYS. Some functions are actually named
17336 something starting with __ and the normal name is an alias. */
17337#if defined __stub_$ac_func || defined __stub___$ac_func
17338choke me
17339#endif
17340
17341int
17342main ()
17343{
17344return $ac_func ();
17345 ;
17346 return 0;
17347}
17348_ACEOF
17349rm -f conftest.$ac_objext conftest$ac_exeext
17350if { (ac_try="$ac_link"
17351case "(($ac_try" in
17352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17354esac
17355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356 (eval "$ac_link") 2>conftest.er1
17357 ac_status=$?
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } &&
17363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17364 { (case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17367esac
17368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_try") 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try='test -s conftest$ac_exeext'
17374 { (case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377esac
17378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_try") 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 eval "$as_ac_var=yes"
17384else
17385 echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
17388 eval "$as_ac_var=no"
17389fi
17390
17391rm -f core conftest.err conftest.$ac_objext \
17392 conftest$ac_exeext conftest.$ac_ext
17393fi
17394ac_res=`eval echo '${'$as_ac_var'}'`
17395 { echo "$as_me:$LINENO: result: $ac_res" >&5
17396echo "${ECHO_T}$ac_res" >&6; }
17397if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017398 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017400_ACEOF
17401
17402fi
17403done
17404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017405
17406
17407
17408
Chris Lattner511f11d2005-11-14 07:25:50 +000017409for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017410do
17411as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17412{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17414if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17416else
17417 cat >conftest.$ac_ext <<_ACEOF
17418/* confdefs.h. */
17419_ACEOF
17420cat confdefs.h >>conftest.$ac_ext
17421cat >>conftest.$ac_ext <<_ACEOF
17422/* end confdefs.h. */
17423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17425#define $ac_func innocuous_$ac_func
17426
17427/* System header to define __stub macros and hopefully few prototypes,
17428 which can conflict with char $ac_func (); below.
17429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17430 <limits.h> exists even on freestanding compilers. */
17431
17432#ifdef __STDC__
17433# include <limits.h>
17434#else
17435# include <assert.h>
17436#endif
17437
17438#undef $ac_func
17439
17440/* Override any GCC internal prototype to avoid an error.
17441 Use char because int might match the return type of a GCC
17442 builtin and then its argument prototype would still apply. */
17443#ifdef __cplusplus
17444extern "C"
17445#endif
17446char $ac_func ();
17447/* The GNU C library defines this for functions which it implements
17448 to always fail with ENOSYS. Some functions are actually named
17449 something starting with __ and the normal name is an alias. */
17450#if defined __stub_$ac_func || defined __stub___$ac_func
17451choke me
17452#endif
17453
17454int
17455main ()
17456{
17457return $ac_func ();
17458 ;
17459 return 0;
17460}
17461_ACEOF
17462rm -f conftest.$ac_objext conftest$ac_exeext
17463if { (ac_try="$ac_link"
17464case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17467esac
17468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_link") 2>conftest.er1
17470 ac_status=$?
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
17476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17477 { (case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480esac
17481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; } &&
17486 { ac_try='test -s conftest$ac_exeext'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490esac
17491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; }; then
17496 eval "$as_ac_var=yes"
17497else
17498 echo "$as_me: failed program was:" >&5
17499sed 's/^/| /' conftest.$ac_ext >&5
17500
17501 eval "$as_ac_var=no"
17502fi
17503
17504rm -f core conftest.err conftest.$ac_objext \
17505 conftest$ac_exeext conftest.$ac_ext
17506fi
17507ac_res=`eval echo '${'$as_ac_var'}'`
17508 { echo "$as_me:$LINENO: result: $ac_res" >&5
17509echo "${ECHO_T}$ac_res" >&6; }
17510if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017511 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017513_ACEOF
17514
17515fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017516done
John Criswell7a73b802003-06-30 21:59:07 +000017517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017518
17519
17520
17521
Daniel Dunbar3e462932011-02-03 02:40:02 +000017522
17523for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017524do
17525as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17526{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17528if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17530else
17531 cat >conftest.$ac_ext <<_ACEOF
17532/* confdefs.h. */
17533_ACEOF
17534cat confdefs.h >>conftest.$ac_ext
17535cat >>conftest.$ac_ext <<_ACEOF
17536/* end confdefs.h. */
17537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17539#define $ac_func innocuous_$ac_func
17540
17541/* System header to define __stub macros and hopefully few prototypes,
17542 which can conflict with char $ac_func (); below.
17543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17544 <limits.h> exists even on freestanding compilers. */
17545
17546#ifdef __STDC__
17547# include <limits.h>
17548#else
17549# include <assert.h>
17550#endif
17551
17552#undef $ac_func
17553
17554/* Override any GCC internal prototype to avoid an error.
17555 Use char because int might match the return type of a GCC
17556 builtin and then its argument prototype would still apply. */
17557#ifdef __cplusplus
17558extern "C"
17559#endif
17560char $ac_func ();
17561/* The GNU C library defines this for functions which it implements
17562 to always fail with ENOSYS. Some functions are actually named
17563 something starting with __ and the normal name is an alias. */
17564#if defined __stub_$ac_func || defined __stub___$ac_func
17565choke me
17566#endif
17567
17568int
17569main ()
17570{
17571return $ac_func ();
17572 ;
17573 return 0;
17574}
17575_ACEOF
17576rm -f conftest.$ac_objext conftest$ac_exeext
17577if { (ac_try="$ac_link"
17578case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581esac
17582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_link") 2>conftest.er1
17584 ac_status=$?
17585 grep -v '^ *+' conftest.er1 >conftest.err
17586 rm -f conftest.er1
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
17590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17591 { (case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17594esac
17595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_try") 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; } &&
17600 { ac_try='test -s conftest$ac_exeext'
17601 { (case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604esac
17605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_try") 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 eval "$as_ac_var=yes"
17611else
17612 echo "$as_me: failed program was:" >&5
17613sed 's/^/| /' conftest.$ac_ext >&5
17614
17615 eval "$as_ac_var=no"
17616fi
17617
17618rm -f core conftest.err conftest.$ac_objext \
17619 conftest$ac_exeext conftest.$ac_ext
17620fi
17621ac_res=`eval echo '${'$as_ac_var'}'`
17622 { echo "$as_me:$LINENO: result: $ac_res" >&5
17623echo "${ECHO_T}$ac_res" >&6; }
17624if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017625 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017627_ACEOF
17628
17629fi
17630done
17631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017632{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17633echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17634if test "${llvm_cv_c_printf_a+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017636else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017637 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017638ac_cpp='$CPP $CPPFLAGS'
17639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641ac_compiler_gnu=$ac_cv_c_compiler_gnu
17642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017643 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017644 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017646 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017648 /* confdefs.h. */
17649_ACEOF
17650cat confdefs.h >>conftest.$ac_ext
17651cat >>conftest.$ac_ext <<_ACEOF
17652/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017653
John Criswella0137d32003-10-13 16:22:01 +000017654#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017655#include <stdlib.h>
17656
John Criswella0137d32003-10-13 16:22:01 +000017657int
17658main ()
17659{
17660
Reid Spencer2706f8c2004-09-19 23:53:36 +000017661volatile double A, B;
17662char Buffer[100];
17663A = 1;
17664A /= 10.0;
17665sprintf(Buffer, "%a", A);
17666B = atof(Buffer);
17667if (A != B)
17668 return (1);
17669if (A != 0x1.999999999999ap-4)
17670 return (1);
17671return (0);
John Criswella0137d32003-10-13 16:22:01 +000017672 ;
17673 return 0;
17674}
17675_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017676rm -f conftest$ac_exeext
17677if { (ac_try="$ac_link"
17678case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17681esac
17682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_link") 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17687 { (case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690esac
17691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_try") 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017696 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017698 echo "$as_me: program exited with status $ac_status" >&5
17699echo "$as_me: failed program was:" >&5
17700sed 's/^/| /' conftest.$ac_ext >&5
17701
17702( exit $ac_status )
17703llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017705rm -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 +000017706fi
Reid Spencera773bd52006-08-04 18:18:08 +000017707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017708
Reid Spencer2706f8c2004-09-19 23:53:36 +000017709 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017710ac_cpp='$CPP $CPPFLAGS'
17711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17713ac_compiler_gnu=$ac_cv_c_compiler_gnu
17714
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017716{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17717echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017718 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017720cat >>confdefs.h <<\_ACEOF
17721#define HAVE_PRINTF_A 1
17722_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017723
Reid Spencer2706f8c2004-09-19 23:53:36 +000017724 fi
John Criswella0137d32003-10-13 16:22:01 +000017725
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017727{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17728echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17729if test "${ac_cv_func_rand48+set}" = set; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017731else
Reid Spencera773bd52006-08-04 18:18:08 +000017732 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017733ac_cpp='$CXXCPP $CPPFLAGS'
17734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017738 cat >conftest.$ac_ext <<_ACEOF
17739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017743/* end confdefs.h. */
17744#include <stdlib.h>
17745int
17746main ()
17747{
17748srand48(0);lrand48();drand48();
17749 ;
17750 return 0;
17751}
17752_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017753rm -f conftest.$ac_objext
17754if { (ac_try="$ac_compile"
17755case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17758esac
17759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_compile") 2>conftest.er1
17761 ac_status=$?
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771esac
17772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781esac
17782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_try") 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017787 ac_cv_func_rand48=yes
17788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017789 echo "$as_me: failed program was:" >&5
17790sed 's/^/| /' conftest.$ac_ext >&5
17791
17792 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017794
Reid Spencera773bd52006-08-04 18:18:08 +000017795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017796 ac_ext=c
17797ac_cpp='$CPP $CPPFLAGS'
17798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17800ac_compiler_gnu=$ac_cv_c_compiler_gnu
17801
17802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017803{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17804echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017805
17806if test "$ac_cv_func_rand48" = "yes" ; then
17807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017808cat >>confdefs.h <<\_ACEOF
17809#define HAVE_RAND48 1
17810_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017811
17812fi
John Criswell0021c312004-02-13 21:57:29 +000017813
17814
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017815{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17816echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17817if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17819else
17820 cat >conftest.$ac_ext <<_ACEOF
17821/* confdefs.h. */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h. */
17826$ac_includes_default
17827int
17828main ()
17829{
17830#ifndef strerror_s
17831 char *p = (char *) strerror_s;
17832 return !p;
17833#endif
17834
17835 ;
17836 return 0;
17837}
17838_ACEOF
17839rm -f conftest.$ac_objext
17840if { (ac_try="$ac_compile"
17841case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17844esac
17845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846 (eval "$ac_compile") 2>conftest.er1
17847 ac_status=$?
17848 grep -v '^ *+' conftest.er1 >conftest.err
17849 rm -f conftest.er1
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17854 { (case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17857esac
17858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_try") 2>&5
17860 ac_status=$?
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; } &&
17863 { ac_try='test -s conftest.$ac_objext'
17864 { (case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17867esac
17868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_try") 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; }; then
17873 ac_cv_have_decl_strerror_s=yes
17874else
17875 echo "$as_me: failed program was:" >&5
17876sed 's/^/| /' conftest.$ac_ext >&5
17877
17878 ac_cv_have_decl_strerror_s=no
17879fi
17880
17881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882fi
17883{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17884echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17885if test $ac_cv_have_decl_strerror_s = yes; then
17886
17887cat >>confdefs.h <<_ACEOF
17888#define HAVE_DECL_STRERROR_S 1
17889_ACEOF
17890
17891
17892else
17893 cat >>confdefs.h <<_ACEOF
17894#define HAVE_DECL_STRERROR_S 0
17895_ACEOF
17896
17897
17898fi
17899
17900
17901
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017902if test "$llvm_cv_os_type" = "MingW" ; then
17903 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17904echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17905if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17907else
17908 ac_check_lib_save_LIBS=$LIBS
17909LIBS="-lgcc $LIBS"
17910cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h. */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h. */
17916
17917/* Override any GCC internal prototype to avoid an error.
17918 Use char because int might match the return type of a GCC
17919 builtin and then its argument prototype would still apply. */
17920#ifdef __cplusplus
17921extern "C"
17922#endif
17923char _alloca ();
17924int
17925main ()
17926{
17927return _alloca ();
17928 ;
17929 return 0;
17930}
17931_ACEOF
17932rm -f conftest.$ac_objext conftest$ac_exeext
17933if { (ac_try="$ac_link"
17934case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17937esac
17938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_link") 2>conftest.er1
17940 ac_status=$?
17941 grep -v '^ *+' conftest.er1 >conftest.err
17942 rm -f conftest.er1
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17947 { (case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17950esac
17951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_try") 2>&5
17953 ac_status=$?
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; } &&
17956 { ac_try='test -s conftest$ac_exeext'
17957 { (case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17960esac
17961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_try") 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17966 ac_cv_lib_gcc__alloca=yes
17967else
17968 echo "$as_me: failed program was:" >&5
17969sed 's/^/| /' conftest.$ac_ext >&5
17970
17971 ac_cv_lib_gcc__alloca=no
17972fi
17973
17974rm -f core conftest.err conftest.$ac_objext \
17975 conftest$ac_exeext conftest.$ac_ext
17976LIBS=$ac_check_lib_save_LIBS
17977fi
17978{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17979echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17980if test $ac_cv_lib_gcc__alloca = yes; then
17981
17982cat >>confdefs.h <<\_ACEOF
17983#define HAVE__ALLOCA 1
17984_ACEOF
17985
17986fi
17987
17988 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17989echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17990if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17992else
17993 ac_check_lib_save_LIBS=$LIBS
17994LIBS="-lgcc $LIBS"
17995cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h. */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h. */
18001
18002/* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18005#ifdef __cplusplus
18006extern "C"
18007#endif
18008char __alloca ();
18009int
18010main ()
18011{
18012return __alloca ();
18013 ;
18014 return 0;
18015}
18016_ACEOF
18017rm -f conftest.$ac_objext conftest$ac_exeext
18018if { (ac_try="$ac_link"
18019case "(($ac_try" in
18020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021 *) ac_try_echo=$ac_try;;
18022esac
18023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024 (eval "$ac_link") 2>conftest.er1
18025 ac_status=$?
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
18031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18032 { (case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18035esac
18036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037 (eval "$ac_try") 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; } &&
18041 { ac_try='test -s conftest$ac_exeext'
18042 { (case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045esac
18046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_try") 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; }; then
18051 ac_cv_lib_gcc___alloca=yes
18052else
18053 echo "$as_me: failed program was:" >&5
18054sed 's/^/| /' conftest.$ac_ext >&5
18055
18056 ac_cv_lib_gcc___alloca=no
18057fi
18058
18059rm -f core conftest.err conftest.$ac_objext \
18060 conftest$ac_exeext conftest.$ac_ext
18061LIBS=$ac_check_lib_save_LIBS
18062fi
18063{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18064echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18065if test $ac_cv_lib_gcc___alloca = yes; then
18066
18067cat >>confdefs.h <<\_ACEOF
18068#define HAVE___ALLOCA 1
18069_ACEOF
18070
18071fi
18072
18073 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18074echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18075if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077else
18078 ac_check_lib_save_LIBS=$LIBS
18079LIBS="-lgcc $LIBS"
18080cat >conftest.$ac_ext <<_ACEOF
18081/* confdefs.h. */
18082_ACEOF
18083cat confdefs.h >>conftest.$ac_ext
18084cat >>conftest.$ac_ext <<_ACEOF
18085/* end confdefs.h. */
18086
18087/* Override any GCC internal prototype to avoid an error.
18088 Use char because int might match the return type of a GCC
18089 builtin and then its argument prototype would still apply. */
18090#ifdef __cplusplus
18091extern "C"
18092#endif
18093char __chkstk ();
18094int
18095main ()
18096{
18097return __chkstk ();
18098 ;
18099 return 0;
18100}
18101_ACEOF
18102rm -f conftest.$ac_objext conftest$ac_exeext
18103if { (ac_try="$ac_link"
18104case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18107esac
18108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_link") 2>conftest.er1
18110 ac_status=$?
18111 grep -v '^ *+' conftest.er1 >conftest.err
18112 rm -f conftest.er1
18113 cat conftest.err >&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
18116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18117 { (case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18120esac
18121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_try") 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; } &&
18126 { ac_try='test -s conftest$ac_exeext'
18127 { (case "(($ac_try" in
18128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18129 *) ac_try_echo=$ac_try;;
18130esac
18131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18132 (eval "$ac_try") 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_cv_lib_gcc___chkstk=yes
18137else
18138 echo "$as_me: failed program was:" >&5
18139sed 's/^/| /' conftest.$ac_ext >&5
18140
18141 ac_cv_lib_gcc___chkstk=no
18142fi
18143
18144rm -f core conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146LIBS=$ac_check_lib_save_LIBS
18147fi
18148{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18149echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18150if test $ac_cv_lib_gcc___chkstk = yes; then
18151
18152cat >>confdefs.h <<\_ACEOF
18153#define HAVE___CHKSTK 1
18154_ACEOF
18155
18156fi
18157
18158 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18159echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18160if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18162else
18163 ac_check_lib_save_LIBS=$LIBS
18164LIBS="-lgcc $LIBS"
18165cat >conftest.$ac_ext <<_ACEOF
18166/* confdefs.h. */
18167_ACEOF
18168cat confdefs.h >>conftest.$ac_ext
18169cat >>conftest.$ac_ext <<_ACEOF
18170/* end confdefs.h. */
18171
18172/* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18175#ifdef __cplusplus
18176extern "C"
18177#endif
18178char ___chkstk ();
18179int
18180main ()
18181{
18182return ___chkstk ();
18183 ;
18184 return 0;
18185}
18186_ACEOF
18187rm -f conftest.$ac_objext conftest$ac_exeext
18188if { (ac_try="$ac_link"
18189case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18192esac
18193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>conftest.er1
18195 ac_status=$?
18196 grep -v '^ *+' conftest.er1 >conftest.err
18197 rm -f conftest.er1
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
18201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18205esac
18206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest$ac_exeext'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18215esac
18216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_lib_gcc____chkstk=yes
18222else
18223 echo "$as_me: failed program was:" >&5
18224sed 's/^/| /' conftest.$ac_ext >&5
18225
18226 ac_cv_lib_gcc____chkstk=no
18227fi
18228
18229rm -f core conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18231LIBS=$ac_check_lib_save_LIBS
18232fi
18233{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18234echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18235if test $ac_cv_lib_gcc____chkstk = yes; then
18236
18237cat >>confdefs.h <<\_ACEOF
18238#define HAVE____CHKSTK 1
18239_ACEOF
18240
18241fi
18242
18243
18244 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18245echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18246if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18248else
18249 ac_check_lib_save_LIBS=$LIBS
18250LIBS="-lgcc $LIBS"
18251cat >conftest.$ac_ext <<_ACEOF
18252/* confdefs.h. */
18253_ACEOF
18254cat confdefs.h >>conftest.$ac_ext
18255cat >>conftest.$ac_ext <<_ACEOF
18256/* end confdefs.h. */
18257
18258/* Override any GCC internal prototype to avoid an error.
18259 Use char because int might match the return type of a GCC
18260 builtin and then its argument prototype would still apply. */
18261#ifdef __cplusplus
18262extern "C"
18263#endif
18264char __ashldi3 ();
18265int
18266main ()
18267{
18268return __ashldi3 ();
18269 ;
18270 return 0;
18271}
18272_ACEOF
18273rm -f conftest.$ac_objext conftest$ac_exeext
18274if { (ac_try="$ac_link"
18275case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278esac
18279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_link") 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291esac
18292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest$ac_exeext'
18298 { (case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18301esac
18302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_try") 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_cv_lib_gcc___ashldi3=yes
18308else
18309 echo "$as_me: failed program was:" >&5
18310sed 's/^/| /' conftest.$ac_ext >&5
18311
18312 ac_cv_lib_gcc___ashldi3=no
18313fi
18314
18315rm -f core conftest.err conftest.$ac_objext \
18316 conftest$ac_exeext conftest.$ac_ext
18317LIBS=$ac_check_lib_save_LIBS
18318fi
18319{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18320echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18321if test $ac_cv_lib_gcc___ashldi3 = yes; then
18322
18323cat >>confdefs.h <<\_ACEOF
18324#define HAVE___ASHLDI3 1
18325_ACEOF
18326
18327fi
18328
18329 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18330echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18331if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18333else
18334 ac_check_lib_save_LIBS=$LIBS
18335LIBS="-lgcc $LIBS"
18336cat >conftest.$ac_ext <<_ACEOF
18337/* confdefs.h. */
18338_ACEOF
18339cat confdefs.h >>conftest.$ac_ext
18340cat >>conftest.$ac_ext <<_ACEOF
18341/* end confdefs.h. */
18342
18343/* Override any GCC internal prototype to avoid an error.
18344 Use char because int might match the return type of a GCC
18345 builtin and then its argument prototype would still apply. */
18346#ifdef __cplusplus
18347extern "C"
18348#endif
18349char __ashrdi3 ();
18350int
18351main ()
18352{
18353return __ashrdi3 ();
18354 ;
18355 return 0;
18356}
18357_ACEOF
18358rm -f conftest.$ac_objext conftest$ac_exeext
18359if { (ac_try="$ac_link"
18360case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18363esac
18364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_link") 2>conftest.er1
18366 ac_status=$?
18367 grep -v '^ *+' conftest.er1 >conftest.err
18368 rm -f conftest.er1
18369 cat conftest.err >&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); } &&
18372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18373 { (case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18376esac
18377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_try") 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try='test -s conftest$ac_exeext'
18383 { (case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18386esac
18387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388 (eval "$ac_try") 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_cv_lib_gcc___ashrdi3=yes
18393else
18394 echo "$as_me: failed program was:" >&5
18395sed 's/^/| /' conftest.$ac_ext >&5
18396
18397 ac_cv_lib_gcc___ashrdi3=no
18398fi
18399
18400rm -f core conftest.err conftest.$ac_objext \
18401 conftest$ac_exeext conftest.$ac_ext
18402LIBS=$ac_check_lib_save_LIBS
18403fi
18404{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18405echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18406if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18407
18408cat >>confdefs.h <<\_ACEOF
18409#define HAVE___ASHRDI3 1
18410_ACEOF
18411
18412fi
18413
18414 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18415echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18416if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
18418else
18419 ac_check_lib_save_LIBS=$LIBS
18420LIBS="-lgcc $LIBS"
18421cat >conftest.$ac_ext <<_ACEOF
18422/* confdefs.h. */
18423_ACEOF
18424cat confdefs.h >>conftest.$ac_ext
18425cat >>conftest.$ac_ext <<_ACEOF
18426/* end confdefs.h. */
18427
18428/* Override any GCC internal prototype to avoid an error.
18429 Use char because int might match the return type of a GCC
18430 builtin and then its argument prototype would still apply. */
18431#ifdef __cplusplus
18432extern "C"
18433#endif
18434char __divdi3 ();
18435int
18436main ()
18437{
18438return __divdi3 ();
18439 ;
18440 return 0;
18441}
18442_ACEOF
18443rm -f conftest.$ac_objext conftest$ac_exeext
18444if { (ac_try="$ac_link"
18445case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18448esac
18449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_link") 2>conftest.er1
18451 ac_status=$?
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
18457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18461esac
18462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest$ac_exeext'
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18471esac
18472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 ac_cv_lib_gcc___divdi3=yes
18478else
18479 echo "$as_me: failed program was:" >&5
18480sed 's/^/| /' conftest.$ac_ext >&5
18481
18482 ac_cv_lib_gcc___divdi3=no
18483fi
18484
18485rm -f core conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
18487LIBS=$ac_check_lib_save_LIBS
18488fi
18489{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18490echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18491if test $ac_cv_lib_gcc___divdi3 = yes; then
18492
18493cat >>confdefs.h <<\_ACEOF
18494#define HAVE___DIVDI3 1
18495_ACEOF
18496
18497fi
18498
18499 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18500echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18501if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18503else
18504 ac_check_lib_save_LIBS=$LIBS
18505LIBS="-lgcc $LIBS"
18506cat >conftest.$ac_ext <<_ACEOF
18507/* confdefs.h. */
18508_ACEOF
18509cat confdefs.h >>conftest.$ac_ext
18510cat >>conftest.$ac_ext <<_ACEOF
18511/* end confdefs.h. */
18512
18513/* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18516#ifdef __cplusplus
18517extern "C"
18518#endif
18519char __fixdfdi ();
18520int
18521main ()
18522{
18523return __fixdfdi ();
18524 ;
18525 return 0;
18526}
18527_ACEOF
18528rm -f conftest.$ac_objext conftest$ac_exeext
18529if { (ac_try="$ac_link"
18530case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18533esac
18534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_link") 2>conftest.er1
18536 ac_status=$?
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18543 { (case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18546esac
18547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_try") 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; } &&
18552 { ac_try='test -s conftest$ac_exeext'
18553 { (case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18556esac
18557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_try") 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 ac_cv_lib_gcc___fixdfdi=yes
18563else
18564 echo "$as_me: failed program was:" >&5
18565sed 's/^/| /' conftest.$ac_ext >&5
18566
18567 ac_cv_lib_gcc___fixdfdi=no
18568fi
18569
18570rm -f core conftest.err conftest.$ac_objext \
18571 conftest$ac_exeext conftest.$ac_ext
18572LIBS=$ac_check_lib_save_LIBS
18573fi
18574{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18575echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18576if test $ac_cv_lib_gcc___fixdfdi = yes; then
18577
18578cat >>confdefs.h <<\_ACEOF
18579#define HAVE___FIXDFDI 1
18580_ACEOF
18581
18582fi
18583
18584 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18585echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18586if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18588else
18589 ac_check_lib_save_LIBS=$LIBS
18590LIBS="-lgcc $LIBS"
18591cat >conftest.$ac_ext <<_ACEOF
18592/* confdefs.h. */
18593_ACEOF
18594cat confdefs.h >>conftest.$ac_ext
18595cat >>conftest.$ac_ext <<_ACEOF
18596/* end confdefs.h. */
18597
18598/* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18601#ifdef __cplusplus
18602extern "C"
18603#endif
18604char __fixsfdi ();
18605int
18606main ()
18607{
18608return __fixsfdi ();
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613rm -f conftest.$ac_objext conftest$ac_exeext
18614if { (ac_try="$ac_link"
18615case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618esac
18619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_link") 2>conftest.er1
18621 ac_status=$?
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
18627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18628 { (case "(($ac_try" in
18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630 *) ac_try_echo=$ac_try;;
18631esac
18632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633 (eval "$ac_try") 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; } &&
18637 { ac_try='test -s conftest$ac_exeext'
18638 { (case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641esac
18642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_try") 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18647 ac_cv_lib_gcc___fixsfdi=yes
18648else
18649 echo "$as_me: failed program was:" >&5
18650sed 's/^/| /' conftest.$ac_ext >&5
18651
18652 ac_cv_lib_gcc___fixsfdi=no
18653fi
18654
18655rm -f core conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657LIBS=$ac_check_lib_save_LIBS
18658fi
18659{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18660echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18661if test $ac_cv_lib_gcc___fixsfdi = yes; then
18662
18663cat >>confdefs.h <<\_ACEOF
18664#define HAVE___FIXSFDI 1
18665_ACEOF
18666
18667fi
18668
18669 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18670echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18671if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18673else
18674 ac_check_lib_save_LIBS=$LIBS
18675LIBS="-lgcc $LIBS"
18676cat >conftest.$ac_ext <<_ACEOF
18677/* confdefs.h. */
18678_ACEOF
18679cat confdefs.h >>conftest.$ac_ext
18680cat >>conftest.$ac_ext <<_ACEOF
18681/* end confdefs.h. */
18682
18683/* Override any GCC internal prototype to avoid an error.
18684 Use char because int might match the return type of a GCC
18685 builtin and then its argument prototype would still apply. */
18686#ifdef __cplusplus
18687extern "C"
18688#endif
18689char __floatdidf ();
18690int
18691main ()
18692{
18693return __floatdidf ();
18694 ;
18695 return 0;
18696}
18697_ACEOF
18698rm -f conftest.$ac_objext conftest$ac_exeext
18699if { (ac_try="$ac_link"
18700case "(($ac_try" in
18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702 *) ac_try_echo=$ac_try;;
18703esac
18704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705 (eval "$ac_link") 2>conftest.er1
18706 ac_status=$?
18707 grep -v '^ *+' conftest.er1 >conftest.err
18708 rm -f conftest.er1
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } &&
18712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18713 { (case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18716esac
18717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_try") 2>&5
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; } &&
18722 { ac_try='test -s conftest$ac_exeext'
18723 { (case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18726esac
18727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_try") 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 ac_cv_lib_gcc___floatdidf=yes
18733else
18734 echo "$as_me: failed program was:" >&5
18735sed 's/^/| /' conftest.$ac_ext >&5
18736
18737 ac_cv_lib_gcc___floatdidf=no
18738fi
18739
18740rm -f core conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext conftest.$ac_ext
18742LIBS=$ac_check_lib_save_LIBS
18743fi
18744{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18745echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18746if test $ac_cv_lib_gcc___floatdidf = yes; then
18747
18748cat >>confdefs.h <<\_ACEOF
18749#define HAVE___FLOATDIDF 1
18750_ACEOF
18751
18752fi
18753
18754 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18755echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18756if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18758else
18759 ac_check_lib_save_LIBS=$LIBS
18760LIBS="-lgcc $LIBS"
18761cat >conftest.$ac_ext <<_ACEOF
18762/* confdefs.h. */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h. */
18767
18768/* Override any GCC internal prototype to avoid an error.
18769 Use char because int might match the return type of a GCC
18770 builtin and then its argument prototype would still apply. */
18771#ifdef __cplusplus
18772extern "C"
18773#endif
18774char __lshrdi3 ();
18775int
18776main ()
18777{
18778return __lshrdi3 ();
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext conftest$ac_exeext
18784if { (ac_try="$ac_link"
18785case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788esac
18789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_link") 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18798 { (case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18801esac
18802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_try") 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest$ac_exeext'
18808 { (case "(($ac_try" in
18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810 *) ac_try_echo=$ac_try;;
18811esac
18812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18813 (eval "$ac_try") 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 ac_cv_lib_gcc___lshrdi3=yes
18818else
18819 echo "$as_me: failed program was:" >&5
18820sed 's/^/| /' conftest.$ac_ext >&5
18821
18822 ac_cv_lib_gcc___lshrdi3=no
18823fi
18824
18825rm -f core conftest.err conftest.$ac_objext \
18826 conftest$ac_exeext conftest.$ac_ext
18827LIBS=$ac_check_lib_save_LIBS
18828fi
18829{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18830echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18831if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18832
18833cat >>confdefs.h <<\_ACEOF
18834#define HAVE___LSHRDI3 1
18835_ACEOF
18836
18837fi
18838
18839 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18840echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18841if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844 ac_check_lib_save_LIBS=$LIBS
18845LIBS="-lgcc $LIBS"
18846cat >conftest.$ac_ext <<_ACEOF
18847/* confdefs.h. */
18848_ACEOF
18849cat confdefs.h >>conftest.$ac_ext
18850cat >>conftest.$ac_ext <<_ACEOF
18851/* end confdefs.h. */
18852
18853/* Override any GCC internal prototype to avoid an error.
18854 Use char because int might match the return type of a GCC
18855 builtin and then its argument prototype would still apply. */
18856#ifdef __cplusplus
18857extern "C"
18858#endif
18859char __moddi3 ();
18860int
18861main ()
18862{
18863return __moddi3 ();
18864 ;
18865 return 0;
18866}
18867_ACEOF
18868rm -f conftest.$ac_objext conftest$ac_exeext
18869if { (ac_try="$ac_link"
18870case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18873esac
18874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_link") 2>conftest.er1
18876 ac_status=$?
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } &&
18882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18883 { (case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18886esac
18887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_try") 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest$ac_exeext'
18893 { (case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18896esac
18897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_try") 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_cv_lib_gcc___moddi3=yes
18903else
18904 echo "$as_me: failed program was:" >&5
18905sed 's/^/| /' conftest.$ac_ext >&5
18906
18907 ac_cv_lib_gcc___moddi3=no
18908fi
18909
18910rm -f core conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912LIBS=$ac_check_lib_save_LIBS
18913fi
18914{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18915echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18916if test $ac_cv_lib_gcc___moddi3 = yes; then
18917
18918cat >>confdefs.h <<\_ACEOF
18919#define HAVE___MODDI3 1
18920_ACEOF
18921
18922fi
18923
18924 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18925echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18926if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928else
18929 ac_check_lib_save_LIBS=$LIBS
18930LIBS="-lgcc $LIBS"
18931cat >conftest.$ac_ext <<_ACEOF
18932/* confdefs.h. */
18933_ACEOF
18934cat confdefs.h >>conftest.$ac_ext
18935cat >>conftest.$ac_ext <<_ACEOF
18936/* end confdefs.h. */
18937
18938/* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18941#ifdef __cplusplus
18942extern "C"
18943#endif
18944char __udivdi3 ();
18945int
18946main ()
18947{
18948return __udivdi3 ();
18949 ;
18950 return 0;
18951}
18952_ACEOF
18953rm -f conftest.$ac_objext conftest$ac_exeext
18954if { (ac_try="$ac_link"
18955case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18958esac
18959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_link") 2>conftest.er1
18961 ac_status=$?
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } &&
18967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18968 { (case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18971esac
18972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_try") 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest$ac_exeext'
18978 { (case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18981esac
18982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_try") 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_cv_lib_gcc___udivdi3=yes
18988else
18989 echo "$as_me: failed program was:" >&5
18990sed 's/^/| /' conftest.$ac_ext >&5
18991
18992 ac_cv_lib_gcc___udivdi3=no
18993fi
18994
18995rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
18997LIBS=$ac_check_lib_save_LIBS
18998fi
18999{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19000echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19001if test $ac_cv_lib_gcc___udivdi3 = yes; then
19002
19003cat >>confdefs.h <<\_ACEOF
19004#define HAVE___UDIVDI3 1
19005_ACEOF
19006
19007fi
19008
19009 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19010echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19011if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014 ac_check_lib_save_LIBS=$LIBS
19015LIBS="-lgcc $LIBS"
19016cat >conftest.$ac_ext <<_ACEOF
19017/* confdefs.h. */
19018_ACEOF
19019cat confdefs.h >>conftest.$ac_ext
19020cat >>conftest.$ac_ext <<_ACEOF
19021/* end confdefs.h. */
19022
19023/* Override any GCC internal prototype to avoid an error.
19024 Use char because int might match the return type of a GCC
19025 builtin and then its argument prototype would still apply. */
19026#ifdef __cplusplus
19027extern "C"
19028#endif
19029char __umoddi3 ();
19030int
19031main ()
19032{
19033return __umoddi3 ();
19034 ;
19035 return 0;
19036}
19037_ACEOF
19038rm -f conftest.$ac_objext conftest$ac_exeext
19039if { (ac_try="$ac_link"
19040case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043esac
19044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19046 ac_status=$?
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056esac
19057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066esac
19067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_try") 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19072 ac_cv_lib_gcc___umoddi3=yes
19073else
19074 echo "$as_me: failed program was:" >&5
19075sed 's/^/| /' conftest.$ac_ext >&5
19076
19077 ac_cv_lib_gcc___umoddi3=no
19078fi
19079
19080rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19082LIBS=$ac_check_lib_save_LIBS
19083fi
19084{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19085echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19086if test $ac_cv_lib_gcc___umoddi3 = yes; then
19087
19088cat >>confdefs.h <<\_ACEOF
19089#define HAVE___UMODDI3 1
19090_ACEOF
19091
19092fi
19093
19094
19095 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19096echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19097if test "${ac_cv_lib_gcc___main+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19099else
19100 ac_check_lib_save_LIBS=$LIBS
19101LIBS="-lgcc $LIBS"
19102cat >conftest.$ac_ext <<_ACEOF
19103/* confdefs.h. */
19104_ACEOF
19105cat confdefs.h >>conftest.$ac_ext
19106cat >>conftest.$ac_ext <<_ACEOF
19107/* end confdefs.h. */
19108
19109/* Override any GCC internal prototype to avoid an error.
19110 Use char because int might match the return type of a GCC
19111 builtin and then its argument prototype would still apply. */
19112#ifdef __cplusplus
19113extern "C"
19114#endif
19115char __main ();
19116int
19117main ()
19118{
19119return __main ();
19120 ;
19121 return 0;
19122}
19123_ACEOF
19124rm -f conftest.$ac_objext conftest$ac_exeext
19125if { (ac_try="$ac_link"
19126case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19129esac
19130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_link") 2>conftest.er1
19132 ac_status=$?
19133 grep -v '^ *+' conftest.er1 >conftest.err
19134 rm -f conftest.er1
19135 cat conftest.err >&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); } &&
19138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19139 { (case "(($ac_try" in
19140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141 *) ac_try_echo=$ac_try;;
19142esac
19143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144 (eval "$ac_try") 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try='test -s conftest$ac_exeext'
19149 { (case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19152esac
19153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_try") 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_cv_lib_gcc___main=yes
19159else
19160 echo "$as_me: failed program was:" >&5
19161sed 's/^/| /' conftest.$ac_ext >&5
19162
19163 ac_cv_lib_gcc___main=no
19164fi
19165
19166rm -f core conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19168LIBS=$ac_check_lib_save_LIBS
19169fi
19170{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19171echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19172if test $ac_cv_lib_gcc___main = yes; then
19173
19174cat >>confdefs.h <<\_ACEOF
19175#define HAVE___MAIN 1
19176_ACEOF
19177
19178fi
19179
19180 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19181echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19182if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19184else
19185 ac_check_lib_save_LIBS=$LIBS
19186LIBS="-lgcc $LIBS"
19187cat >conftest.$ac_ext <<_ACEOF
19188/* confdefs.h. */
19189_ACEOF
19190cat confdefs.h >>conftest.$ac_ext
19191cat >>conftest.$ac_ext <<_ACEOF
19192/* end confdefs.h. */
19193
19194/* Override any GCC internal prototype to avoid an error.
19195 Use char because int might match the return type of a GCC
19196 builtin and then its argument prototype would still apply. */
19197#ifdef __cplusplus
19198extern "C"
19199#endif
19200char __cmpdi2 ();
19201int
19202main ()
19203{
19204return __cmpdi2 ();
19205 ;
19206 return 0;
19207}
19208_ACEOF
19209rm -f conftest.$ac_objext conftest$ac_exeext
19210if { (ac_try="$ac_link"
19211case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19214esac
19215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_link") 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
19223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19224 { (case "(($ac_try" in
19225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19227esac
19228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19229 (eval "$ac_try") 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try='test -s conftest$ac_exeext'
19234 { (case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19237esac
19238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239 (eval "$ac_try") 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
19243 ac_cv_lib_gcc___cmpdi2=yes
19244else
19245 echo "$as_me: failed program was:" >&5
19246sed 's/^/| /' conftest.$ac_ext >&5
19247
19248 ac_cv_lib_gcc___cmpdi2=no
19249fi
19250
19251rm -f core conftest.err conftest.$ac_objext \
19252 conftest$ac_exeext conftest.$ac_ext
19253LIBS=$ac_check_lib_save_LIBS
19254fi
19255{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19256echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19257if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19258
19259cat >>confdefs.h <<\_ACEOF
19260#define HAVE___CMPDI2 1
19261_ACEOF
19262
19263fi
19264
19265fi
19266
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019267if test "$llvm_cv_os_type" = "MingW" ; then
19268 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19269echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19270 cat >conftest.$ac_ext <<_ACEOF
19271#include <windows.h>
19272#include <imagehlp.h>
19273extern void foo(PENUMLOADED_MODULES_CALLBACK);
19274extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19275_ACEOF
19276rm -f conftest.$ac_objext
19277if { (ac_try="$ac_compile"
19278case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19281esac
19282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19291 { (case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294esac
19295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_try") 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19304esac
19305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310
19311 { echo "$as_me:$LINENO: result: yes" >&5
19312echo "${ECHO_T}yes" >&6; }
19313 llvm_cv_win32_elmcb_pcstr="PCSTR"
19314
19315else
19316 echo "$as_me: failed program was:" >&5
19317sed 's/^/| /' conftest.$ac_ext >&5
19318
19319
19320 { echo "$as_me:$LINENO: result: no" >&5
19321echo "${ECHO_T}no" >&6; }
19322 llvm_cv_win32_elmcb_pcstr="PSTR"
19323
19324fi
19325
19326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19327
19328cat >>confdefs.h <<_ACEOF
19329#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19330_ACEOF
19331
19332fi
19333
Torok Edwin871384f2010-01-26 08:50:50 +000019334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019335{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19336echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19337if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019339else
Reid Spencera773bd52006-08-04 18:18:08 +000019340 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019341ac_cpp='$CXXCPP $CPPFLAGS'
19342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019346 cat >conftest.$ac_ext <<_ACEOF
19347/* confdefs.h. */
19348_ACEOF
19349cat confdefs.h >>conftest.$ac_ext
19350cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019351/* end confdefs.h. */
19352#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019353int
19354main ()
19355{
19356float f; isnan(f);
19357 ;
19358 return 0;
19359}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019360_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019361rm -f conftest.$ac_objext
19362if { (ac_try="$ac_compile"
19363case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19366esac
19367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_compile") 2>conftest.er1
19369 ac_status=$?
19370 grep -v '^ *+' conftest.er1 >conftest.err
19371 rm -f conftest.er1
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19376 { (case "(($ac_try" in
19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19379esac
19380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_try") 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
19386 { (case "(($ac_try" in
19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388 *) ac_try_echo=$ac_try;;
19389esac
19390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391 (eval "$ac_try") 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019395 ac_cv_func_isnan_in_math_h=yes
19396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019397 echo "$as_me: failed program was:" >&5
19398sed 's/^/| /' conftest.$ac_ext >&5
19399
19400 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019402
Reid Spencera773bd52006-08-04 18:18:08 +000019403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019404 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019405ac_cpp='$CPP $CPPFLAGS'
19406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408ac_compiler_gnu=$ac_cv_c_compiler_gnu
19409
19410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019411{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19412echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019413
19414
19415if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019416
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019417cat >>confdefs.h <<\_ACEOF
19418#define HAVE_ISNAN_IN_MATH_H 1
19419_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019420
Reid Spencerabec8f92004-10-27 23:03:44 +000019421fi
19422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019423{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19424echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19425if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019427else
Reid Spencera773bd52006-08-04 18:18:08 +000019428 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019429ac_cpp='$CXXCPP $CPPFLAGS'
19430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019434 cat >conftest.$ac_ext <<_ACEOF
19435/* confdefs.h. */
19436_ACEOF
19437cat confdefs.h >>conftest.$ac_ext
19438cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019439/* end confdefs.h. */
19440#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019441int
19442main ()
19443{
19444float f; isnan(f);
19445 ;
19446 return 0;
19447}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019449rm -f conftest.$ac_objext
19450if { (ac_try="$ac_compile"
19451case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19454esac
19455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_compile") 2>conftest.er1
19457 ac_status=$?
19458 grep -v '^ *+' conftest.er1 >conftest.err
19459 rm -f conftest.er1
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
19463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19467esac
19468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; } &&
19473 { ac_try='test -s conftest.$ac_objext'
19474 { (case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19477esac
19478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_try") 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019483 ac_cv_func_isnan_in_cmath=yes
19484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019485 echo "$as_me: failed program was:" >&5
19486sed 's/^/| /' conftest.$ac_ext >&5
19487
19488 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019490
Reid Spencera773bd52006-08-04 18:18:08 +000019491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019492 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019493ac_cpp='$CPP $CPPFLAGS'
19494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19496ac_compiler_gnu=$ac_cv_c_compiler_gnu
19497
19498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019499{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19500echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019501
19502if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019504cat >>confdefs.h <<\_ACEOF
19505#define HAVE_ISNAN_IN_CMATH 1
19506_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019507
Reid Spencerabec8f92004-10-27 23:03:44 +000019508fi
19509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019510{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19511echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19512if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019514else
Reid Spencera773bd52006-08-04 18:18:08 +000019515 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019516ac_cpp='$CXXCPP $CPPFLAGS'
19517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019521 cat >conftest.$ac_ext <<_ACEOF
19522/* confdefs.h. */
19523_ACEOF
19524cat confdefs.h >>conftest.$ac_ext
19525cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019526/* end confdefs.h. */
19527#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019528int
19529main ()
19530{
19531float f; std::isnan(f);
19532 ;
19533 return 0;
19534}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019535_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019536rm -f conftest.$ac_objext
19537if { (ac_try="$ac_compile"
19538case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19541esac
19542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_compile") 2>conftest.er1
19544 ac_status=$?
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19551 { (case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19554esac
19555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_try") 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; } &&
19560 { ac_try='test -s conftest.$ac_objext'
19561 { (case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19564esac
19565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_try") 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019570 ac_cv_func_std_isnan_in_cmath=yes
19571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019572 echo "$as_me: failed program was:" >&5
19573sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019577
Reid Spencera773bd52006-08-04 18:18:08 +000019578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019579 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019580ac_cpp='$CPP $CPPFLAGS'
19581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19583ac_compiler_gnu=$ac_cv_c_compiler_gnu
19584
19585fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019586{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19587echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019588
19589if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019591cat >>confdefs.h <<\_ACEOF
19592#define HAVE_STD_ISNAN_IN_CMATH 1
19593_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019594
Reid Spencerabec8f92004-10-27 23:03:44 +000019595fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019596
19597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019598{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19599echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19600if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019602else
Reid Spencera773bd52006-08-04 18:18:08 +000019603 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019604ac_cpp='$CXXCPP $CPPFLAGS'
19605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019609 cat >conftest.$ac_ext <<_ACEOF
19610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019614/* end confdefs.h. */
19615#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019616int
19617main ()
19618{
19619float f; isinf(f);
19620 ;
19621 return 0;
19622}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019623_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019624rm -f conftest.$ac_objext
19625if { (ac_try="$ac_compile"
19626case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629esac
19630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_compile") 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19642esac
19643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest.$ac_objext'
19649 { (case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652esac
19653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_try") 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019658 ac_cv_func_isinf_in_math_h=yes
19659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019660 echo "$as_me: failed program was:" >&5
19661sed 's/^/| /' conftest.$ac_ext >&5
19662
19663 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019665
Reid Spencera773bd52006-08-04 18:18:08 +000019666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019667 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019668ac_cpp='$CPP $CPPFLAGS'
19669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19671ac_compiler_gnu=$ac_cv_c_compiler_gnu
19672
19673fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019674{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19675echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019676
19677if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019679cat >>confdefs.h <<\_ACEOF
19680#define HAVE_ISINF_IN_MATH_H 1
19681_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019682
Reid Spencerabec8f92004-10-27 23:03:44 +000019683fi
19684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019685{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19686echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19687if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019689else
Reid Spencera773bd52006-08-04 18:18:08 +000019690 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019691ac_cpp='$CXXCPP $CPPFLAGS'
19692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019696 cat >conftest.$ac_ext <<_ACEOF
19697/* confdefs.h. */
19698_ACEOF
19699cat confdefs.h >>conftest.$ac_ext
19700cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019701/* end confdefs.h. */
19702#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019703int
19704main ()
19705{
19706float f; isinf(f);
19707 ;
19708 return 0;
19709}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019710_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019711rm -f conftest.$ac_objext
19712if { (ac_try="$ac_compile"
19713case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19716esac
19717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_compile") 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19726 { (case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19729esac
19730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_try") 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; } &&
19735 { ac_try='test -s conftest.$ac_objext'
19736 { (case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19739esac
19740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19741 (eval "$ac_try") 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019745 ac_cv_func_isinf_in_cmath=yes
19746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019747 echo "$as_me: failed program was:" >&5
19748sed 's/^/| /' conftest.$ac_ext >&5
19749
19750 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019751fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019752
Reid Spencera773bd52006-08-04 18:18:08 +000019753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019754 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019755ac_cpp='$CPP $CPPFLAGS'
19756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19758ac_compiler_gnu=$ac_cv_c_compiler_gnu
19759
19760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019761{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19762echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019763
19764if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019766cat >>confdefs.h <<\_ACEOF
19767#define HAVE_ISINF_IN_CMATH 1
19768_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019769
Reid Spencerabec8f92004-10-27 23:03:44 +000019770fi
19771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019772{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19773echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19774if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019776else
Reid Spencera773bd52006-08-04 18:18:08 +000019777 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019778ac_cpp='$CXXCPP $CPPFLAGS'
19779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019783 cat >conftest.$ac_ext <<_ACEOF
19784/* confdefs.h. */
19785_ACEOF
19786cat confdefs.h >>conftest.$ac_ext
19787cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019788/* end confdefs.h. */
19789#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019790int
19791main ()
19792{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019793float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019794 ;
19795 return 0;
19796}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019797_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019798rm -f conftest.$ac_objext
19799if { (ac_try="$ac_compile"
19800case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803esac
19804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_compile") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816esac
19817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try='test -s conftest.$ac_objext'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826esac
19827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019832 ac_cv_func_std_isinf_in_cmath=yes
19833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019834 echo "$as_me: failed program was:" >&5
19835sed 's/^/| /' conftest.$ac_ext >&5
19836
19837 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019838fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019839
Reid Spencera773bd52006-08-04 18:18:08 +000019840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019841 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019842ac_cpp='$CPP $CPPFLAGS'
19843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19845ac_compiler_gnu=$ac_cv_c_compiler_gnu
19846
19847fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019848{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19849echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019850
19851if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019853cat >>confdefs.h <<\_ACEOF
19854#define HAVE_STD_ISINF_IN_CMATH 1
19855_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019856
Reid Spencerabec8f92004-10-27 23:03:44 +000019857fi
19858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019859{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19860echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19861if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019863else
Reid Spencera773bd52006-08-04 18:18:08 +000019864 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019865ac_cpp='$CXXCPP $CPPFLAGS'
19866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870 cat >conftest.$ac_ext <<_ACEOF
19871/* confdefs.h. */
19872_ACEOF
19873cat confdefs.h >>conftest.$ac_ext
19874cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019875/* end confdefs.h. */
19876#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019877int
19878main ()
19879{
19880float f; finite(f);
19881 ;
19882 return 0;
19883}
Brian Gaeked59a6472004-07-21 03:33:58 +000019884_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019885rm -f conftest.$ac_objext
19886if { (ac_try="$ac_compile"
19887case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19890esac
19891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_compile") 2>conftest.er1
19893 ac_status=$?
19894 grep -v '^ *+' conftest.er1 >conftest.err
19895 rm -f conftest.er1
19896 cat conftest.err >&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } &&
19899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19900 { (case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903esac
19904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_try") 2>&5
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; } &&
19909 { ac_try='test -s conftest.$ac_objext'
19910 { (case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19913esac
19914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_try") 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019919 ac_cv_func_finite_in_ieeefp_h=yes
19920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019921 echo "$as_me: failed program was:" >&5
19922sed 's/^/| /' conftest.$ac_ext >&5
19923
19924 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019925fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019926
Reid Spencera773bd52006-08-04 18:18:08 +000019927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019928 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019929ac_cpp='$CPP $CPPFLAGS'
19930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19932ac_compiler_gnu=$ac_cv_c_compiler_gnu
19933
19934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019935{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19936echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019937
Brian Gaeke6802b552004-10-28 05:06:45 +000019938if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019939
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019940cat >>confdefs.h <<\_ACEOF
19941#define HAVE_FINITE_IN_IEEEFP_H 1
19942_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019943
Reid Spencerabec8f92004-10-27 23:03:44 +000019944fi
19945
19946
19947
Reid Spencer30fe5262007-01-20 07:48:49 +000019948if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019949
19950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019951for ac_header in stdlib.h unistd.h
19952do
19953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959fi
19960ac_res=`eval echo '${'$as_ac_Header'}'`
19961 { echo "$as_me:$LINENO: result: $ac_res" >&5
19962echo "${ECHO_T}$ac_res" >&6; }
19963else
19964 # Is the header compilable?
19965{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19966echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19967cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h. */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h. */
19973$ac_includes_default
19974#include <$ac_header>
19975_ACEOF
19976rm -f conftest.$ac_objext
19977if { (ac_try="$ac_compile"
19978case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19981esac
19982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_compile") 2>conftest.er1
19984 ac_status=$?
19985 grep -v '^ *+' conftest.er1 >conftest.err
19986 rm -f conftest.er1
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } &&
19990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19994esac
19995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest.$ac_objext'
20001 { (case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004esac
20005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_try") 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_header_compiler=yes
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020015 ac_header_compiler=no
20016fi
20017
20018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20020echo "${ECHO_T}$ac_header_compiler" >&6; }
20021
20022# Is the header present?
20023{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20025cat >conftest.$ac_ext <<_ACEOF
20026/* confdefs.h. */
20027_ACEOF
20028cat confdefs.h >>conftest.$ac_ext
20029cat >>conftest.$ac_ext <<_ACEOF
20030/* end confdefs.h. */
20031#include <$ac_header>
20032_ACEOF
20033if { (ac_try="$ac_cpp conftest.$ac_ext"
20034case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037esac
20038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } >/dev/null; then
20046 if test -s conftest.err; then
20047 ac_cpp_err=$ac_c_preproc_warn_flag
20048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20049 else
20050 ac_cpp_err=
20051 fi
20052else
20053 ac_cpp_err=yes
20054fi
20055if test -z "$ac_cpp_err"; then
20056 ac_header_preproc=yes
20057else
20058 echo "$as_me: failed program was:" >&5
20059sed 's/^/| /' conftest.$ac_ext >&5
20060
20061 ac_header_preproc=no
20062fi
20063
20064rm -f conftest.err conftest.$ac_ext
20065{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20066echo "${ECHO_T}$ac_header_preproc" >&6; }
20067
20068# So? What about this header?
20069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20070 yes:no: )
20071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20075 ac_header_preproc=yes
20076 ;;
20077 no:yes:* )
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20085echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20090 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020091## ------------------------------------ ##
20092## Report this to http://llvm.org/bugs/ ##
20093## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020094_ASBOX
20095 ) | sed "s/^/$as_me: WARNING: /" >&2
20096 ;;
20097esac
20098{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20102else
20103 eval "$as_ac_Header=\$ac_header_preproc"
20104fi
20105ac_res=`eval echo '${'$as_ac_Header'}'`
20106 { echo "$as_me:$LINENO: result: $ac_res" >&5
20107echo "${ECHO_T}$ac_res" >&6; }
20108
20109fi
20110if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020111 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020113_ACEOF
20114
20115fi
20116
20117done
20118
20119
20120for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020121do
20122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20123{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20125if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20126 echo $ECHO_N "(cached) $ECHO_C" >&6
20127else
20128 cat >conftest.$ac_ext <<_ACEOF
20129/* confdefs.h. */
20130_ACEOF
20131cat confdefs.h >>conftest.$ac_ext
20132cat >>conftest.$ac_ext <<_ACEOF
20133/* end confdefs.h. */
20134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20136#define $ac_func innocuous_$ac_func
20137
20138/* System header to define __stub macros and hopefully few prototypes,
20139 which can conflict with char $ac_func (); below.
20140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20141 <limits.h> exists even on freestanding compilers. */
20142
20143#ifdef __STDC__
20144# include <limits.h>
20145#else
20146# include <assert.h>
20147#endif
20148
20149#undef $ac_func
20150
20151/* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20154#ifdef __cplusplus
20155extern "C"
20156#endif
20157char $ac_func ();
20158/* The GNU C library defines this for functions which it implements
20159 to always fail with ENOSYS. Some functions are actually named
20160 something starting with __ and the normal name is an alias. */
20161#if defined __stub_$ac_func || defined __stub___$ac_func
20162choke me
20163#endif
20164
20165int
20166main ()
20167{
20168return $ac_func ();
20169 ;
20170 return 0;
20171}
20172_ACEOF
20173rm -f conftest.$ac_objext conftest$ac_exeext
20174if { (ac_try="$ac_link"
20175case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20178esac
20179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_link") 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191esac
20192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest$ac_exeext'
20198 { (case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20201esac
20202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_try") 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 eval "$as_ac_var=yes"
20208else
20209 echo "$as_me: failed program was:" >&5
20210sed 's/^/| /' conftest.$ac_ext >&5
20211
20212 eval "$as_ac_var=no"
20213fi
20214
20215rm -f core conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
20217fi
20218ac_res=`eval echo '${'$as_ac_var'}'`
20219 { echo "$as_me:$LINENO: result: $ac_res" >&5
20220echo "${ECHO_T}$ac_res" >&6; }
20221if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020222 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020224_ACEOF
20225
20226fi
20227done
20228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020229{ echo "$as_me:$LINENO: checking for working mmap" >&5
20230echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20231if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020233else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020234 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020235 ac_cv_func_mmap_fixed_mapped=no
20236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020237 cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h. */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020242/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020243$ac_includes_default
20244/* malloc might have been renamed as rpl_malloc. */
20245#undef malloc
20246
20247/* Thanks to Mike Haertel and Jim Avera for this test.
20248 Here is a matrix of mmap possibilities:
20249 mmap private not fixed
20250 mmap private fixed at somewhere currently unmapped
20251 mmap private fixed at somewhere already mapped
20252 mmap shared not fixed
20253 mmap shared fixed at somewhere currently unmapped
20254 mmap shared fixed at somewhere already mapped
20255 For private mappings, we should verify that changes cannot be read()
20256 back from the file, nor mmap's back from the file at a different
20257 address. (There have been systems where private was not correctly
20258 implemented like the infamous i386 svr4.0, and systems where the
20259 VM page cache was not coherent with the file system buffer cache
20260 like early versions of FreeBSD and possibly contemporary NetBSD.)
20261 For shared mappings, we should conversely verify that changes get
20262 propagated back to all the places they're supposed to be.
20263
20264 Grep wants private fixed already mapped.
20265 The main things grep needs to know about mmap are:
20266 * does it exist and is it safe to write into the mmap'd area
20267 * how to use it (BSD variants) */
20268
20269#include <fcntl.h>
20270#include <sys/mman.h>
20271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020272#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020273char *malloc ();
20274#endif
20275
20276/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020277#if !HAVE_GETPAGESIZE
20278/* Assume that all systems that can run configure have sys/param.h. */
20279# if !HAVE_SYS_PARAM_H
20280# define HAVE_SYS_PARAM_H 1
20281# endif
20282
John Criswell7a73b802003-06-30 21:59:07 +000020283# ifdef _SC_PAGESIZE
20284# define getpagesize() sysconf(_SC_PAGESIZE)
20285# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020286# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020287# include <sys/param.h>
20288# ifdef EXEC_PAGESIZE
20289# define getpagesize() EXEC_PAGESIZE
20290# else /* no EXEC_PAGESIZE */
20291# ifdef NBPG
20292# define getpagesize() NBPG * CLSIZE
20293# ifndef CLSIZE
20294# define CLSIZE 1
20295# endif /* no CLSIZE */
20296# else /* no NBPG */
20297# ifdef NBPC
20298# define getpagesize() NBPC
20299# else /* no NBPC */
20300# ifdef PAGESIZE
20301# define getpagesize() PAGESIZE
20302# endif /* PAGESIZE */
20303# endif /* no NBPC */
20304# endif /* no NBPG */
20305# endif /* no EXEC_PAGESIZE */
20306# else /* no HAVE_SYS_PARAM_H */
20307# define getpagesize() 8192 /* punt totally */
20308# endif /* no HAVE_SYS_PARAM_H */
20309# endif /* no _SC_PAGESIZE */
20310
20311#endif /* no HAVE_GETPAGESIZE */
20312
20313int
20314main ()
20315{
20316 char *data, *data2, *data3;
20317 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020318 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020319
20320 pagesize = getpagesize ();
20321
20322 /* First, make a file with some known garbage in it. */
20323 data = (char *) malloc (pagesize);
20324 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020325 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020326 for (i = 0; i < pagesize; ++i)
20327 *(data + i) = rand ();
20328 umask (0);
20329 fd = creat ("conftest.mmap", 0600);
20330 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020331 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020332 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020333 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020334 close (fd);
20335
20336 /* Next, try to mmap the file at a fixed address which already has
20337 something else allocated at it. If we can, also make sure that
20338 we see the same garbage. */
20339 fd = open ("conftest.mmap", O_RDWR);
20340 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020341 return 1;
20342 data2 = (char *) malloc (2 * pagesize);
20343 if (!data2)
20344 return 1;
20345 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020346 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020347 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020348 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020349 for (i = 0; i < pagesize; ++i)
20350 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020351 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020352
20353 /* Finally, make sure that changes to the mapped area do not
20354 percolate back to the file as seen by read(). (This is a bug on
20355 some variants of i386 svr4.0.) */
20356 for (i = 0; i < pagesize; ++i)
20357 *(data2 + i) = *(data2 + i) + 1;
20358 data3 = (char *) malloc (pagesize);
20359 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020361 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020363 for (i = 0; i < pagesize; ++i)
20364 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020365 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020366 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020367 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020368}
20369_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020370rm -f conftest$ac_exeext
20371if { (ac_try="$ac_link"
20372case "(($ac_try" in
20373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20375esac
20376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_link") 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20381 { (case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20384esac
20385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_try") 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020390 ac_cv_func_mmap_fixed_mapped=yes
20391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020392 echo "$as_me: program exited with status $ac_status" >&5
20393echo "$as_me: failed program was:" >&5
20394sed 's/^/| /' conftest.$ac_ext >&5
20395
20396( exit $ac_status )
20397ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020399rm -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 +000020400fi
Reid Spencera773bd52006-08-04 18:18:08 +000020401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020402
John Criswell7a73b802003-06-30 21:59:07 +000020403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020404{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20405echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020406if test $ac_cv_func_mmap_fixed_mapped = yes; then
20407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020408cat >>confdefs.h <<\_ACEOF
20409#define HAVE_MMAP 1
20410_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020411
20412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020413rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020415 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20416echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20417if test "${ac_cv_func_mmap_file+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020419else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020420 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020421ac_cpp='$CPP $CPPFLAGS'
20422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20424ac_compiler_gnu=$ac_cv_c_compiler_gnu
20425
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020426 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020427 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020429 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020431 /* confdefs.h. */
20432_ACEOF
20433cat confdefs.h >>conftest.$ac_ext
20434cat >>conftest.$ac_ext <<_ACEOF
20435/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020436
John Criswell7a73b802003-06-30 21:59:07 +000020437#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020438#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020439#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020440
20441int
20442main ()
20443{
John Criswell7a73b802003-06-30 21:59:07 +000020444
20445 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020446 fd = creat ("foo",0777);
20447 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20448 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020449 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020450 ;
20451 return 0;
20452}
John Criswell7a73b802003-06-30 21:59:07 +000020453_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020454rm -f conftest$ac_exeext
20455if { (ac_try="$ac_link"
20456case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459esac
20460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_link") 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20465 { (case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20468esac
20469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_try") 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020474 ac_cv_func_mmap_file=yes
20475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020476 echo "$as_me: program exited with status $ac_status" >&5
20477echo "$as_me: failed program was:" >&5
20478sed 's/^/| /' conftest.$ac_ext >&5
20479
20480( exit $ac_status )
20481ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020483rm -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 +000020484fi
Reid Spencera773bd52006-08-04 18:18:08 +000020485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020486
John Criswell7a73b802003-06-30 21:59:07 +000020487 ac_ext=c
20488ac_cpp='$CPP $CPPFLAGS'
20489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20491ac_compiler_gnu=$ac_cv_c_compiler_gnu
20492
20493
20494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020495{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20496echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020497if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020499cat >>confdefs.h <<\_ACEOF
20500#define HAVE_MMAP_FILE
20501_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020502
20503 MMAP_FILE=yes
20504
20505fi
20506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020507 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20508echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20509if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020511else
Reid Spencer582a23c2004-12-29 07:07:57 +000020512 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020513 ac_cv_need_dev_zero_for_mmap=yes
20514 else
20515 ac_cv_need_dev_zero_for_mmap=no
20516 fi
20517
20518fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020519{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20520echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020521if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020523cat >>confdefs.h <<\_ACEOF
20524#define NEED_DEV_ZERO_FOR_MMAP 1
20525_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020526
20527fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020528
Reid Spencer30fe5262007-01-20 07:48:49 +000020529 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20530 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020531 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20532echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020533 fi
20534 if test "$ac_cv_func_mmap_file" = "no"
20535 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20537echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020538 fi
John Criswellb13092b2003-07-22 21:00:24 +000020539fi
John Criswell7a73b802003-06-30 21:59:07 +000020540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20542echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020543ac_ext=cpp
20544ac_cpp='$CXXCPP $CPPFLAGS'
20545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020549cat >conftest.$ac_ext <<_ACEOF
20550/* confdefs.h. */
20551_ACEOF
20552cat confdefs.h >>conftest.$ac_ext
20553cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020554/* end confdefs.h. */
20555int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020556 volatile unsigned long val = 1;
20557 __sync_synchronize();
20558 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020559 __sync_add_and_fetch(&val, 1);
20560 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020561 return 0;
20562 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020563
20564_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020565rm -f conftest.$ac_objext conftest$ac_exeext
20566if { (ac_try="$ac_link"
20567case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570esac
20571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_link") 2>conftest.er1
20573 ac_status=$?
20574 grep -v '^ *+' conftest.er1 >conftest.err
20575 rm -f conftest.er1
20576 cat conftest.err >&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } &&
20579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20580 { (case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583esac
20584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_try") 2>&5
20586 ac_status=$?
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); }; } &&
20589 { ac_try='test -s conftest$ac_exeext'
20590 { (case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593esac
20594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_try") 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020599 ac_ext=c
20600ac_cpp='$CPP $CPPFLAGS'
20601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20603ac_compiler_gnu=$ac_cv_c_compiler_gnu
20604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020605 { echo "$as_me:$LINENO: result: yes" >&5
20606echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020608cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020609#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020610_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020611
Owen Andersond4b272b2009-05-18 23:58:51 +000020612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613 echo "$as_me: failed program was:" >&5
20614sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616 { echo "$as_me:$LINENO: result: no" >&5
20617echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020619cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020620#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020621_ACEOF
20622
20623 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20624echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020626
Owen Andersond4b272b2009-05-18 23:58:51 +000020627rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020628 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020629
John Criswell7a73b802003-06-30 21:59:07 +000020630
Nick Lewycky4372e692009-09-29 06:18:23 +000020631if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020632 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20633echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20634if test "${llvm_cv_linux_mixed+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020636else
20637 ac_ext=c
20638ac_cpp='$CPP $CPPFLAGS'
20639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20641ac_compiler_gnu=$ac_cv_c_compiler_gnu
20642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020643 cat >conftest.$ac_ext <<_ACEOF
20644/* confdefs.h. */
20645_ACEOF
20646cat confdefs.h >>conftest.$ac_ext
20647cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020648/* end confdefs.h. */
20649#ifndef __x86_64__
20650 error: Not x86-64 even if uname says so!
20651 #endif
20652
20653int
20654main ()
20655{
20656
20657 ;
20658 return 0;
20659}
20660_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020661rm -f conftest.$ac_objext
20662if { (ac_try="$ac_compile"
20663case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20666esac
20667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_compile") 2>conftest.er1
20669 ac_status=$?
20670 grep -v '^ *+' conftest.er1 >conftest.err
20671 rm -f conftest.er1
20672 cat conftest.err >&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } &&
20675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20676 { (case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20679esac
20680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_try") 2>&5
20682 ac_status=$?
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; } &&
20685 { ac_try='test -s conftest.$ac_objext'
20686 { (case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20689esac
20690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_try") 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020695 llvm_cv_linux_mixed=no
20696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020697 echo "$as_me: failed program was:" >&5
20698sed 's/^/| /' conftest.$ac_ext >&5
20699
20700 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020702
Nick Lewycky4372e692009-09-29 06:18:23 +000020703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704 ac_ext=c
20705ac_cpp='$CPP $CPPFLAGS'
20706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708ac_compiler_gnu=$ac_cv_c_compiler_gnu
20709
20710
20711fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020712{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20713echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020714
20715 if test "$llvm_cv_linux_mixed" = "yes"; then
20716 llvm_cv_target_arch="x86"
20717 ARCH="x86"
20718 fi
20719fi
20720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020721
Reid Spencer9372f152007-07-30 20:13:24 +000020722for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020723do
20724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20725{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20727if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20729else
20730 cat >conftest.$ac_ext <<_ACEOF
20731/* confdefs.h. */
20732_ACEOF
20733cat confdefs.h >>conftest.$ac_ext
20734cat >>conftest.$ac_ext <<_ACEOF
20735/* end confdefs.h. */
20736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20738#define $ac_func innocuous_$ac_func
20739
20740/* System header to define __stub macros and hopefully few prototypes,
20741 which can conflict with char $ac_func (); below.
20742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20743 <limits.h> exists even on freestanding compilers. */
20744
20745#ifdef __STDC__
20746# include <limits.h>
20747#else
20748# include <assert.h>
20749#endif
20750
20751#undef $ac_func
20752
20753/* Override any GCC internal prototype to avoid an error.
20754 Use char because int might match the return type of a GCC
20755 builtin and then its argument prototype would still apply. */
20756#ifdef __cplusplus
20757extern "C"
20758#endif
20759char $ac_func ();
20760/* The GNU C library defines this for functions which it implements
20761 to always fail with ENOSYS. Some functions are actually named
20762 something starting with __ and the normal name is an alias. */
20763#if defined __stub_$ac_func || defined __stub___$ac_func
20764choke me
20765#endif
20766
20767int
20768main ()
20769{
20770return $ac_func ();
20771 ;
20772 return 0;
20773}
20774_ACEOF
20775rm -f conftest.$ac_objext conftest$ac_exeext
20776if { (ac_try="$ac_link"
20777case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780esac
20781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_link") 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793esac
20794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try='test -s conftest$ac_exeext'
20800 { (case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20803esac
20804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_try") 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 eval "$as_ac_var=yes"
20810else
20811 echo "$as_me: failed program was:" >&5
20812sed 's/^/| /' conftest.$ac_ext >&5
20813
20814 eval "$as_ac_var=no"
20815fi
20816
20817rm -f core conftest.err conftest.$ac_objext \
20818 conftest$ac_exeext conftest.$ac_ext
20819fi
20820ac_res=`eval echo '${'$as_ac_var'}'`
20821 { echo "$as_me:$LINENO: result: $ac_res" >&5
20822echo "${ECHO_T}$ac_res" >&6; }
20823if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020824 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020826_ACEOF
20827
20828fi
20829done
20830
20831
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020832SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020833
20834
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020835SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20836
20837
Jeff Cohen28783c32007-01-12 18:22:38 +000020838if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020839 prefix="/usr/local"
20840fi
Reid Spencere9de0912004-08-20 09:03:57 +000020841eval LLVM_PREFIX="${prefix}";
20842eval LLVM_BINDIR="${prefix}/bin";
20843eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020844eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020845eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020846eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020847eval LLVM_INCLUDEDIR="${prefix}/include";
20848eval LLVM_INFODIR="${prefix}/info";
20849eval LLVM_MANDIR="${prefix}/man";
20850LLVM_CONFIGTIME=`date`
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000020862if test "${ENABLE_TIMESTAMPS}" = "0"; then
20863 LLVM_CONFIGTIME="(timestamp not enabled)"
20864fi
20865
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020866
Reid Spencere9de0912004-08-20 09:03:57 +000020867cat >>confdefs.h <<_ACEOF
20868#define LLVM_PREFIX "$LLVM_PREFIX"
20869_ACEOF
20870
20871
20872cat >>confdefs.h <<_ACEOF
20873#define LLVM_BINDIR "$LLVM_BINDIR"
20874_ACEOF
20875
20876
20877cat >>confdefs.h <<_ACEOF
20878#define LLVM_LIBDIR "$LLVM_LIBDIR"
20879_ACEOF
20880
20881
20882cat >>confdefs.h <<_ACEOF
20883#define LLVM_DATADIR "$LLVM_DATADIR"
20884_ACEOF
20885
20886
20887cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020888#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020889_ACEOF
20890
20891
20892cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020893#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020894_ACEOF
20895
20896
20897cat >>confdefs.h <<_ACEOF
20898#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20899_ACEOF
20900
20901
20902cat >>confdefs.h <<_ACEOF
20903#define LLVM_INFODIR "$LLVM_INFODIR"
20904_ACEOF
20905
20906
20907cat >>confdefs.h <<_ACEOF
20908#define LLVM_MANDIR "$LLVM_MANDIR"
20909_ACEOF
20910
20911
20912cat >>confdefs.h <<_ACEOF
20913#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20914_ACEOF
20915
20916
Eric Christopher790e11c2007-12-01 00:34:39 +000020917cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000020918#define LLVM_HOSTTRIPLE "$host"
20919_ACEOF
20920
20921
20922cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020923#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020924_ACEOF
20925
20926
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020927if test "$BINDINGS_TO_BUILD" = auto ; then
20928 BINDINGS_TO_BUILD=""
20929 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20930 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20931 fi
20932fi
20933BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20934
20935
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020936ALL_BINDINGS=ocaml
20937
20938
Gordon Henriksenf0915682007-10-02 16:42:22 +000020939binding_prereqs_failed=0
20940for a_binding in $BINDINGS_TO_BUILD ; do
20941 case "$a_binding" in
20942 ocaml)
20943 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020944 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20945echo "$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 +000020946 binding_prereqs_failed=1
20947 fi
20948 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020949 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20950echo "$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 +000020951 binding_prereqs_failed=1
20952 fi
20953 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020954 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20955echo "$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 +000020956 fi
20957 if test "x$with_ocaml_libdir" != xauto ; then
20958 OCAML_LIBDIR=$with_ocaml_libdir
20959
20960 else
20961 ocaml_stdlib="`"$OCAMLC" -where`"
20962 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20963 then
20964 # ocaml stdlib is beneath our prefix; use stdlib
20965 OCAML_LIBDIR=$ocaml_stdlib
20966
20967 else
20968 # ocaml stdlib is outside our prefix; use libdir/ocaml
20969 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20970
20971 fi
20972 fi
20973 ;;
20974 esac
20975done
20976if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020977 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20978echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20979 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020980fi
20981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020982{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20983echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20984if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020986else
20987 ac_ext=cpp
20988ac_cpp='$CXXCPP $CPPFLAGS'
20989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20992
20993 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000020994 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995 cat >conftest.$ac_ext <<_ACEOF
20996/* confdefs.h. */
20997_ACEOF
20998cat confdefs.h >>conftest.$ac_ext
20999cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021000/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021001template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021002int
21003main ()
21004{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021005X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021006 ;
21007 return 0;
21008}
21009_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021010rm -f conftest.$ac_objext
21011if { (ac_try="$ac_compile"
21012case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21015esac
21016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21017 (eval "$ac_compile") 2>conftest.er1
21018 ac_status=$?
21019 grep -v '^ *+' conftest.er1 >conftest.err
21020 rm -f conftest.er1
21021 cat conftest.err >&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } &&
21024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21025 { (case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21028esac
21029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_try") 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; } &&
21034 { ac_try='test -s conftest.$ac_objext'
21035 { (case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21038esac
21039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_try") 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021044 llvm_cv_cxx_visibility_inlines_hidden=yes
21045else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021046 echo "$as_me: failed program was:" >&5
21047sed 's/^/| /' conftest.$ac_ext >&5
21048
21049 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021051
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053 CXXFLAGS="$oldcxxflags"
21054 ac_ext=c
21055ac_cpp='$CPP $CPPFLAGS'
21056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21058ac_compiler_gnu=$ac_cv_c_compiler_gnu
21059
21060
21061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021062{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21063echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021064if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21065 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21066
21067else
21068 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21069
21070fi
21071
Gordon Henriksenf0915682007-10-02 16:42:22 +000021072
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021073if test "$llvm_cv_link_use_r" = "yes" ; then
21074 RPATH="-Wl,-R"
21075else
21076 RPATH="-Wl,-rpath"
21077fi
21078
21079
21080if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21081 RDYNAMIC="-Wl,-export-dynamic"
21082else
21083 RDYNAMIC=""
21084fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021085
21086
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021087
Eric Christophera1cba682010-08-08 02:44:25 +000021088ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021089
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021090
21091
21092
21093
21094
Douglas Gregor1555a232009-06-16 20:12:29 +000021095ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21096
21097ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21098
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021099ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21100
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021101ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21102
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021103ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021104
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021105
Reid Spencera773bd52006-08-04 18:18:08 +000021106ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021107
Eric Christopher360fa9a2011-10-26 00:42:12 +000021108
Reid Spencerea949cf2006-08-16 00:45:38 +000021109ac_config_files="$ac_config_files llvm.spec"
21110
21111
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021112ac_config_files="$ac_config_files docs/doxygen.cfg"
21113
Eric Christopher63c09512012-02-02 00:16:55 +000021114
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021115if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021116 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021117fi
Eric Christopher63c09512012-02-02 00:16:55 +000021118if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021119 configh="include/clang/Config/config.h"
21120 doxy="docs/doxygen.cfg"
21121 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021122
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021123 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021124
21125fi
21126
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021127ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021128
Eric Christopher360fa9a2011-10-26 00:42:12 +000021129
Reid Spencera773bd52006-08-04 18:18:08 +000021130ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021131
Reid Spencera773bd52006-08-04 18:18:08 +000021132ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021133
21134
Reid Spencera773bd52006-08-04 18:18:08 +000021135ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021136
21137
Reid Spencera773bd52006-08-04 18:18:08 +000021138ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021139
21140
Reid Spencera773bd52006-08-04 18:18:08 +000021141ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021142
21143
Reid Spencer8b2e1412006-11-17 03:32:33 +000021144ac_config_commands="$ac_config_commands runtime/Makefile"
21145
21146
Reid Spencera773bd52006-08-04 18:18:08 +000021147ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021148
21149
Reid Spencera773bd52006-08-04 18:18:08 +000021150ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021151
21152
Bill Wendlingf24eb392009-01-04 23:12:30 +000021153ac_config_commands="$ac_config_commands unittests/Makefile"
21154
21155
Reid Spencera773bd52006-08-04 18:18:08 +000021156ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021157
21158
Reid Spencera773bd52006-08-04 18:18:08 +000021159ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021160
21161
Reid Spencera773bd52006-08-04 18:18:08 +000021162ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021163
21164
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021165ac_config_commands="$ac_config_commands bindings/Makefile"
21166
21167
21168ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21169
21170
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021171
John Criswell7a73b802003-06-30 21:59:07 +000021172cat >confcache <<\_ACEOF
21173# This file is a shell script that caches the results of configure
21174# tests run on this system so they can be shared between configure
21175# scripts and configure runs, see configure's option --config-cache.
21176# It is not useful on other systems. If it contains results you don't
21177# want to keep, you may remove or edit it.
21178#
21179# config.status only pays attention to the cache file if you give it
21180# the --recheck option to rerun configure.
21181#
John Criswell0c38eaf2003-09-10 15:17:25 +000021182# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021183# loading this file, other *unset* `ac_cv_foo' will be assigned the
21184# following values.
21185
21186_ACEOF
21187
21188# The following way of writing the cache mishandles newlines in values,
21189# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021190# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021191# Ultrix sh set writes to stderr and can't be redirected directly,
21192# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021193(
21194 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21195 eval ac_val=\$$ac_var
21196 case $ac_val in #(
21197 *${as_nl}*)
21198 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021199 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21200echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021201 esac
21202 case $ac_var in #(
21203 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021204 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021205 esac ;;
21206 esac
21207 done
21208
John Criswell7a73b802003-06-30 21:59:07 +000021209 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021210 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21211 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021212 # `set' does not quote correctly, so add quotes (double-quote
21213 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021214 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021215 "s/'/'\\\\''/g;
21216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021217 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021218 *)
21219 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021221 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021222 esac |
21223 sort
21224) |
John Criswell7a73b802003-06-30 21:59:07 +000021225 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021226 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021227 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021228 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21230 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021231 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21232 :end' >>confcache
21233if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21234 if test -w "$cache_file"; then
21235 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021236 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21237echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021238 cat confcache >$cache_file
21239 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021240 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21241echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021242 fi
21243fi
21244rm -f confcache
21245
21246test "x$prefix" = xNONE && prefix=$ac_default_prefix
21247# Let make expand exec_prefix.
21248test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21249
John Criswell7a73b802003-06-30 21:59:07 +000021250DEFS=-DHAVE_CONFIG_H
21251
John Criswell0c38eaf2003-09-10 15:17:25 +000021252ac_libobjs=
21253ac_ltlibobjs=
21254for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21255 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021256 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021257 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021258 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21259 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021260 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21261 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021262done
21263LIBOBJS=$ac_libobjs
21264
21265LTLIBOBJS=$ac_ltlibobjs
21266
21267
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021268if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021269 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21270Usually this means the macro was only invoked conditionally." >&5
21271echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21272Usually this means the macro was only invoked conditionally." >&2;}
21273 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021274fi
21275if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021276 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21277Usually this means the macro was only invoked conditionally." >&5
21278echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21279Usually this means the macro was only invoked conditionally." >&2;}
21280 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021281fi
John Criswell7a73b802003-06-30 21:59:07 +000021282
21283: ${CONFIG_STATUS=./config.status}
21284ac_clean_files_save=$ac_clean_files
21285ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21287echo "$as_me: creating $CONFIG_STATUS" >&6;}
21288cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021289#! $SHELL
21290# Generated by $as_me.
21291# Run this file to recreate the current configuration.
21292# Compiler output produced by configure, useful for debugging
21293# configure, is in config.log if it exists.
21294
21295debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021296ac_cs_recheck=false
21297ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021298SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021299_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021301cat >>$CONFIG_STATUS <<\_ACEOF
21302## --------------------- ##
21303## M4sh Initialization. ##
21304## --------------------- ##
21305
21306# Be Bourne compatible
21307if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021308 emulate sh
21309 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021310 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021311 # is contrary to our usage. Disable this feature.
21312 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021313 setopt NO_GLOB_SUBST
21314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021315 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317BIN_SH=xpg4; export BIN_SH # for Tru64
21318DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021319
John Criswell7a73b802003-06-30 21:59:07 +000021320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021321# PATH needs CR
21322# Avoid depending upon Character Ranges.
21323as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21324as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21325as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21326as_cr_digits='0123456789'
21327as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021328
21329# The user is always right.
21330if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021331 echo "#! /bin/sh" >conf$$.sh
21332 echo "exit 0" >>conf$$.sh
21333 chmod +x conf$$.sh
21334 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21335 PATH_SEPARATOR=';'
21336 else
21337 PATH_SEPARATOR=:
21338 fi
21339 rm -f conf$$.sh
21340fi
21341
21342# Support unset when possible.
21343if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21344 as_unset=unset
21345else
21346 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021347fi
John Criswell7a73b802003-06-30 21:59:07 +000021348
Reid Spencera773bd52006-08-04 18:18:08 +000021349
21350# IFS
21351# We need space, tab and new line, in precisely that order. Quoting is
21352# there to prevent editors from complaining about space-tab.
21353# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21354# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021355as_nl='
21356'
Reid Spencera773bd52006-08-04 18:18:08 +000021357IFS=" "" $as_nl"
21358
21359# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021360case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021361 *[\\/]* ) as_myself=$0 ;;
21362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021363for as_dir in $PATH
21364do
21365 IFS=$as_save_IFS
21366 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21368done
Reid Spencera773bd52006-08-04 18:18:08 +000021369IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021370
Reid Spencera773bd52006-08-04 18:18:08 +000021371 ;;
21372esac
21373# We did not find ourselves, most probably we were run as `sh COMMAND'
21374# in which case we are not to be found in the path.
21375if test "x$as_myself" = x; then
21376 as_myself=$0
21377fi
21378if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21380 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021381fi
21382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383# Work around bugs in pre-3.0 UWIN ksh.
21384for as_var in ENV MAIL MAILPATH
21385do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021386done
21387PS1='$ '
21388PS2='> '
21389PS4='+ '
21390
21391# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021392for as_var in \
21393 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21394 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21395 LC_TELEPHONE LC_TIME
21396do
21397 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21398 eval $as_var=C; export $as_var
21399 else
21400 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021401 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021402done
Torok Edwin871384f2010-01-26 08:50:50 +000021403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021404# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021405if expr a : '\(a\)' >/dev/null 2>&1 &&
21406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21407 as_expr=expr
21408else
21409 as_expr=false
21410fi
21411
21412if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21413 as_basename=basename
21414else
21415 as_basename=false
21416fi
21417
21418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021419# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021420as_me=`$as_basename -- "$0" ||
21421$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21422 X"$0" : 'X\(//\)$' \| \
21423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021424echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021425 sed '/^.*\/\([^/][^/]*\)\/*$/{
21426 s//\1/
21427 q
21428 }
21429 /^X\/\(\/\/\)$/{
21430 s//\1/
21431 q
21432 }
21433 /^X\/\(\/\).*/{
21434 s//\1/
21435 q
21436 }
21437 s/.*/./; q'`
21438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439# CDPATH.
21440$as_unset CDPATH
21441
21442
21443
21444 as_lineno_1=$LINENO
21445 as_lineno_2=$LINENO
21446 test "x$as_lineno_1" != "x$as_lineno_2" &&
21447 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21448
21449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21450 # uniformly replaced by the line number. The first 'sed' inserts a
21451 # line-number line after each line using $LINENO; the second 'sed'
21452 # does the real work. The second script uses 'N' to pair each
21453 # line-number line with the line containing $LINENO, and appends
21454 # trailing '-' during substitution so that $LINENO is not a special
21455 # case at line end.
21456 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21457 # scripts with optimization help from Paolo Bonzini. Blame Lee
21458 # E. McMahon (1931-1989) for sed's syntax. :-)
21459 sed -n '
21460 p
21461 /[$]LINENO/=
21462 ' <$as_myself |
21463 sed '
21464 s/[$]LINENO.*/&-/
21465 t lineno
21466 b
21467 :lineno
21468 N
21469 :loop
21470 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21471 t loop
21472 s/-\n.*//
21473 ' >$as_me.lineno &&
21474 chmod +x "$as_me.lineno" ||
21475 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21476 { (exit 1); exit 1; }; }
21477
21478 # Don't try to exec as it changes $[0], causing all sort of problems
21479 # (the dirname of $[0] is not the place where we might find the
21480 # original and so on. Autoconf is especially sensitive to this).
21481 . "./$as_me.lineno"
21482 # Exit status is that of the last command.
21483 exit
21484}
21485
21486
21487if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21488 as_dirname=dirname
21489else
21490 as_dirname=false
21491fi
Reid Spencera773bd52006-08-04 18:18:08 +000021492
21493ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021494case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021495-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021496 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021498 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021499 esac;;
21500*)
21501 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021502esac
21503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021504if expr a : '\(a\)' >/dev/null 2>&1 &&
21505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21506 as_expr=expr
21507else
21508 as_expr=false
21509fi
21510
John Criswell7a73b802003-06-30 21:59:07 +000021511rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021512if test -d conf$$.dir; then
21513 rm -f conf$$.dir/conf$$.file
21514else
21515 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021518echo >conf$$.file
21519if ln -s conf$$.file conf$$ 2>/dev/null; then
21520 as_ln_s='ln -s'
21521 # ... but there are two gotchas:
21522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21524 # In both cases, we have to default to `cp -p'.
21525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021526 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527elif ln conf$$.file conf$$ 2>/dev/null; then
21528 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021529else
21530 as_ln_s='cp -p'
21531fi
Reid Spencera773bd52006-08-04 18:18:08 +000021532rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21533rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021534
John Criswell0c38eaf2003-09-10 15:17:25 +000021535if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021537else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021538 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021539 as_mkdir_p=false
21540fi
21541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21543# systems may use methods other than mode bits to determine executability.
21544cat >conf$$.file <<_ASEOF
21545#! /bin/sh
21546exit 0
21547_ASEOF
21548chmod +x conf$$.file
21549if test -x conf$$.file >/dev/null 2>&1; then
21550 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021554rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021555
21556# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021557as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021558
21559# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021560as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021561
21562
John Criswell7a73b802003-06-30 21:59:07 +000021563exec 6>&1
21564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021565# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021566# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021567# values after options handling.
21568ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021569This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021570generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021571
21572 CONFIG_FILES = $CONFIG_FILES
21573 CONFIG_HEADERS = $CONFIG_HEADERS
21574 CONFIG_LINKS = $CONFIG_LINKS
21575 CONFIG_COMMANDS = $CONFIG_COMMANDS
21576 $ $0 $@
21577
Reid Spencera773bd52006-08-04 18:18:08 +000021578on `(hostname || uname -n) 2>/dev/null | sed 1q`
21579"
21580
John Criswell7a73b802003-06-30 21:59:07 +000021581_ACEOF
21582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021584# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021585config_files="$ac_config_files"
21586config_headers="$ac_config_headers"
21587config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021588
Reid Spencera773bd52006-08-04 18:18:08 +000021589_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021591cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021592ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021593\`$as_me' instantiates files from templates according to the
21594current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021596Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021597
21598 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021599 -V, --version print version number, then exit
21600 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021601 -d, --debug don't remove temporary files
21602 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021603 --file=FILE[:TEMPLATE]
21604 instantiate the configuration file FILE
21605 --header=FILE[:TEMPLATE]
21606 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021607
21608Configuration files:
21609$config_files
21610
21611Configuration headers:
21612$config_headers
21613
John Criswellc764fbc2003-09-06 15:17:13 +000021614Configuration commands:
21615$config_commands
21616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021617Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021618
Reid Spencera773bd52006-08-04 18:18:08 +000021619_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021621ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021622LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021623configured by $0, generated by GNU Autoconf 2.60,
21624 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021626Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021627This config.status script is free software; the Free Software Foundation
21628gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021629
21630ac_pwd='$ac_pwd'
21631srcdir='$srcdir'
21632INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021633_ACEOF
21634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021635cat >>$CONFIG_STATUS <<\_ACEOF
21636# If no file are specified by the user, then we need to provide default
21637# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021638ac_need_defaults=:
21639while test $# != 0
21640do
21641 case $1 in
21642 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21644 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021645 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021646 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021647 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021648 ac_option=$1
21649 ac_optarg=$2
21650 ac_shift=shift
21651 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021652 esac
21653
John Criswell0c38eaf2003-09-10 15:17:25 +000021654 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021655 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21657 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021658 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021659 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021660 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021661 debug=: ;;
21662 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021663 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021665 ac_need_defaults=false;;
21666 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021667 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021668 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021669 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021670 --he | --h)
21671 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021672 { echo "$as_me: error: ambiguous option: $1
21673Try \`$0 --help' for more information." >&2
21674 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021675 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021676 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21678 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21679 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021680
21681 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021682 -*) { echo "$as_me: error: unrecognized option: $1
21683Try \`$0 --help' for more information." >&2
21684 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021686 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021687 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021688
21689 esac
21690 shift
21691done
21692
John Criswell0c38eaf2003-09-10 15:17:25 +000021693ac_configure_extra_args=
21694
21695if $ac_cs_silent; then
21696 exec 6>/dev/null
21697 ac_configure_extra_args="$ac_configure_extra_args --silent"
21698fi
21699
21700_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021701cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021702if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021703 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21704 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021705 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021706 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021707fi
21708
John Criswell7a73b802003-06-30 21:59:07 +000021709_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021710cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021711exec 5>>config.log
21712{
21713 echo
21714 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21715## Running $as_me. ##
21716_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021717 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021718} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021719
Reid Spencera773bd52006-08-04 18:18:08 +000021720_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021721cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021722#
Reid Spencera773bd52006-08-04 18:18:08 +000021723# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021724#
Reid Spencerc0682832005-02-24 19:05:19 +000021725llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021726
21727_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021729cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021730
21731# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021732for ac_config_target in $ac_config_targets
21733do
Reid Spencera773bd52006-08-04 18:18:08 +000021734 case $ac_config_target in
21735 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021736 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021737 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21738 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021739 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021740 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021741 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021742 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021743 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021744 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021745 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21746 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021747 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021748 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21749 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21750 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21751 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21752 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021753 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021754 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21755 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021756 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021757 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21758 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21759 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021760 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21761 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021763 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21764echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21765 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021766 esac
21767done
21768
Reid Spencera773bd52006-08-04 18:18:08 +000021769
John Criswell7a73b802003-06-30 21:59:07 +000021770# If the user did not use the arguments to specify the items to instantiate,
21771# then the envvar interface is used. Set only those that are not.
21772# We use the long form for the default assignment because of an extremely
21773# bizarre bug on SunOS 4.1.3.
21774if $ac_need_defaults; then
21775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021777 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021778fi
21779
John Criswell0c38eaf2003-09-10 15:17:25 +000021780# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021781# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021782# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021783# Hook for its removal unless debugging.
21784# Note that there is a small window in which the directory will not be cleaned:
21785# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021786$debug ||
21787{
Reid Spencera773bd52006-08-04 18:18:08 +000021788 tmp=
21789 trap 'exit_status=$?
21790 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21791' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021793}
John Criswell7a73b802003-06-30 21:59:07 +000021794# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021795
John Criswell7a73b802003-06-30 21:59:07 +000021796{
Reid Spencera773bd52006-08-04 18:18:08 +000021797 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021798 test -n "$tmp" && test -d "$tmp"
21799} ||
21800{
Reid Spencera773bd52006-08-04 18:18:08 +000021801 tmp=./conf$$-$RANDOM
21802 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021803} ||
21804{
21805 echo "$me: cannot create a temporary directory in ." >&2
21806 { (exit 1); exit 1; }
21807}
John Criswell7a73b802003-06-30 21:59:07 +000021808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809#
21810# Set up the sed scripts for CONFIG_FILES section.
21811#
21812
21813# No need to generate the scripts if there are no CONFIG_FILES.
21814# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021815if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021816
21817_ACEOF
21818
Reid Spencera773bd52006-08-04 18:18:08 +000021819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820
Reid Spencera773bd52006-08-04 18:18:08 +000021821ac_delim='%!_!# '
21822for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823 cat >conf$$subs.sed <<_ACEOF
21824SHELL!$SHELL$ac_delim
21825PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21826PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21827PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21828PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21829PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21830PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21831exec_prefix!$exec_prefix$ac_delim
21832prefix!$prefix$ac_delim
21833program_transform_name!$program_transform_name$ac_delim
21834bindir!$bindir$ac_delim
21835sbindir!$sbindir$ac_delim
21836libexecdir!$libexecdir$ac_delim
21837datarootdir!$datarootdir$ac_delim
21838datadir!$datadir$ac_delim
21839sysconfdir!$sysconfdir$ac_delim
21840sharedstatedir!$sharedstatedir$ac_delim
21841localstatedir!$localstatedir$ac_delim
21842includedir!$includedir$ac_delim
21843oldincludedir!$oldincludedir$ac_delim
21844docdir!$docdir$ac_delim
21845infodir!$infodir$ac_delim
21846htmldir!$htmldir$ac_delim
21847dvidir!$dvidir$ac_delim
21848pdfdir!$pdfdir$ac_delim
21849psdir!$psdir$ac_delim
21850libdir!$libdir$ac_delim
21851localedir!$localedir$ac_delim
21852mandir!$mandir$ac_delim
21853DEFS!$DEFS$ac_delim
21854ECHO_C!$ECHO_C$ac_delim
21855ECHO_N!$ECHO_N$ac_delim
21856ECHO_T!$ECHO_T$ac_delim
21857LIBS!$LIBS$ac_delim
21858build_alias!$build_alias$ac_delim
21859host_alias!$host_alias$ac_delim
21860target_alias!$target_alias$ac_delim
21861LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021862CC!$CC$ac_delim
21863CFLAGS!$CFLAGS$ac_delim
21864LDFLAGS!$LDFLAGS$ac_delim
21865CPPFLAGS!$CPPFLAGS$ac_delim
21866ac_ct_CC!$ac_ct_CC$ac_delim
21867EXEEXT!$EXEEXT$ac_delim
21868OBJEXT!$OBJEXT$ac_delim
21869CXX!$CXX$ac_delim
21870CXXFLAGS!$CXXFLAGS$ac_delim
21871ac_ct_CXX!$ac_ct_CXX$ac_delim
21872CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021873subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021874ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21875LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021876build!$build$ac_delim
21877build_cpu!$build_cpu$ac_delim
21878build_vendor!$build_vendor$ac_delim
21879build_os!$build_os$ac_delim
21880host!$host$ac_delim
21881host_cpu!$host_cpu$ac_delim
21882host_vendor!$host_vendor$ac_delim
21883host_os!$host_os$ac_delim
21884target!$target$ac_delim
21885target_cpu!$target_cpu$ac_delim
21886target_vendor!$target_vendor$ac_delim
21887target_os!$target_os$ac_delim
21888OS!$OS$ac_delim
21889HOST_OS!$HOST_OS$ac_delim
21890TARGET_OS!$TARGET_OS$ac_delim
21891LINKALL!$LINKALL$ac_delim
21892NOLINKALL!$NOLINKALL$ac_delim
21893LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21894LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21895ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021896HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021898GREP!$GREP$ac_delim
21899EGREP!$EGREP$ac_delim
21900LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21901BUILD_CC!$BUILD_CC$ac_delim
21902BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21903BUILD_CXX!$BUILD_CXX$ac_delim
21904CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021905ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000021906ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21908ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21909DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000021910ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021911ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21912EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21913DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21914DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000021915KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021916JIT!$JIT$ac_delim
21917TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021918ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021919ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Eric Christopher164a3082012-08-28 01:17:46 +000021920LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021921_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021923 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021924 break
21925 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021926 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21927echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21928 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021929 else
21930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021931 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021932done
21933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021934ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21935if test -n "$ac_eof"; then
21936 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21937 ac_eof=`expr $ac_eof + 1`
21938fi
21939
21940cat >>$CONFIG_STATUS <<_ACEOF
21941cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21942/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021943_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021944sed '
21945s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21946s/^/s,@/; s/!/@,|#_!!_#|/
21947:n
21948t n
21949s/'"$ac_delim"'$/,g/; t
21950s/$/\\/; p
21951N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21952' >>$CONFIG_STATUS <conf$$subs.sed
21953rm -f conf$$subs.sed
21954cat >>$CONFIG_STATUS <<_ACEOF
21955CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021956_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021957
21958
21959ac_delim='%!_!# '
21960for ac_last_try in false false false false false :; do
21961 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar7126ee02012-08-14 18:14:22 +000021962ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000021963ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000021964ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000021965ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021966ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021967TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21968LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21969LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021970LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021971LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021972OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021973EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021974EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021975CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021976BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000021977INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021978NM!$NM$ac_delim
21979ifGNUmake!$ifGNUmake$ac_delim
21980LN_S!$LN_S$ac_delim
21981CMP!$CMP$ac_delim
21982CP!$CP$ac_delim
21983DATE!$DATE$ac_delim
21984FIND!$FIND$ac_delim
21985MKDIR!$MKDIR$ac_delim
21986MV!$MV$ac_delim
21987RANLIB!$RANLIB$ac_delim
21988AR!$AR$ac_delim
21989RM!$RM$ac_delim
21990SED!$SED$ac_delim
21991TAR!$TAR$ac_delim
21992BINPWD!$BINPWD$ac_delim
21993GRAPHVIZ!$GRAPHVIZ$ac_delim
21994DOT!$DOT$ac_delim
21995FDP!$FDP$ac_delim
21996NEATO!$NEATO$ac_delim
21997TWOPI!$TWOPI$ac_delim
21998CIRCO!$CIRCO$ac_delim
21999GV!$GV$ac_delim
22000DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022001XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022002INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22003INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22004INSTALL_DATA!$INSTALL_DATA$ac_delim
22005BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022006CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022007DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022008GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022009GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022010PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022011ZIP!$ZIP$ac_delim
22012OCAMLC!$OCAMLC$ac_delim
22013OCAMLOPT!$OCAMLOPT$ac_delim
22014OCAMLDEP!$OCAMLDEP$ac_delim
22015OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022016GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022017HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022018INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22019INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22020CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22021CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22022LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022023NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22024NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022025COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022026USE_UDIS86!$USE_UDIS86$ac_delim
22027USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022028USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022029XML2CONFIG!$XML2CONFIG$ac_delim
22030LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22031LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022032HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22033HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22034MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022035SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022036SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022037LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22038LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22039LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22040LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22041LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22042LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22043LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22044LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22045LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22046LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22047BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22048ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022049OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22050ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22051RPATH!$RPATH$ac_delim
22052RDYNAMIC!$RDYNAMIC$ac_delim
22053LIBOBJS!$LIBOBJS$ac_delim
22054LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022055_ACEOF
22056
Andrew Kaylor770b97b2012-09-28 17:35:20 +000022057 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022058 break
22059 elif $ac_last_try; then
22060 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22061echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22062 { (exit 1); exit 1; }; }
22063 else
22064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22065 fi
22066done
22067
22068ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22069if test -n "$ac_eof"; then
22070 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22071 ac_eof=`expr $ac_eof + 1`
22072fi
22073
22074cat >>$CONFIG_STATUS <<_ACEOF
22075cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Jordan Rose85042e62012-09-26 00:01:00 +000022076/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grossera84b5672010-11-10 16:31:34 +000022077_ACEOF
22078sed '
22079s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22080s/^/s,@/; s/!/@,|#_!!_#|/
22081:n
22082t n
22083s/'"$ac_delim"'$/,g/; t
22084s/$/\\/; p
22085N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22086' >>$CONFIG_STATUS <conf$$subs.sed
22087rm -f conf$$subs.sed
22088cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose85042e62012-09-26 00:01:00 +000022089:end
22090s/|#_!!_#|//g
Tobias Grossera84b5672010-11-10 16:31:34 +000022091CEOF$ac_eof
22092_ACEOF
22093
22094
Reid Spencera773bd52006-08-04 18:18:08 +000022095# VPATH may cause trouble with some makes, so we remove $(srcdir),
22096# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22097# trailing colons and then remove the whole line if VPATH becomes empty
22098# (actually we leave an empty line to preserve line numbers).
22099if test "x$srcdir" = x.; then
22100 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22101s/:*\$(srcdir):*/:/
22102s/:*\${srcdir}:*/:/
22103s/:*@srcdir@:*/:/
22104s/^\([^=]*=[ ]*\):*/\1/
22105s/:*$//
22106s/^[^=]*=[ ]*$//
22107}'
22108fi
22109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022110cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022111fi # test -n "$CONFIG_FILES"
22112
Reid Spencera773bd52006-08-04 18:18:08 +000022113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022114for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022115do
22116 case $ac_tag in
22117 :[FHLC]) ac_mode=$ac_tag; continue;;
22118 esac
22119 case $ac_mode$ac_tag in
22120 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022121 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22122echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22123 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022124 :[FH]-) ac_tag=-:-;;
22125 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22126 esac
22127 ac_save_IFS=$IFS
22128 IFS=:
22129 set x $ac_tag
22130 IFS=$ac_save_IFS
22131 shift
22132 ac_file=$1
22133 shift
22134
22135 case $ac_mode in
22136 :L) ac_source=$1;;
22137 :[FH])
22138 ac_file_inputs=
22139 for ac_f
22140 do
22141 case $ac_f in
22142 -) ac_f="$tmp/stdin";;
22143 *) # Look for the file first in the build tree, then in the source tree
22144 # (if the path is not absolute). The absolute path cannot be DOS-style,
22145 # because $ac_f cannot contain `:'.
22146 test -f "$ac_f" ||
22147 case $ac_f in
22148 [\\/$]*) false;;
22149 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22150 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022151 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22152echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22153 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022154 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022155 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022156 done
22157
22158 # Let's still pretend it is `configure' which instantiates (i.e., don't
22159 # use $as_me), people would be surprised to read:
22160 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161 configure_input="Generated from "`IFS=:
22162 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022163 if test x"$ac_file" != x-; then
22164 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022165 { echo "$as_me:$LINENO: creating $ac_file" >&5
22166echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022167 fi
22168
22169 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022170 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022171 esac
22172 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022173 esac
22174
Reid Spencera773bd52006-08-04 18:18:08 +000022175 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022176$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022177 X"$ac_file" : 'X\(//\)[^/]' \| \
22178 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022179 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022180echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22182 s//\1/
22183 q
22184 }
22185 /^X\(\/\/\)[^/].*/{
22186 s//\1/
22187 q
22188 }
22189 /^X\(\/\/\)$/{
22190 s//\1/
22191 q
22192 }
22193 /^X\(\/\).*/{
22194 s//\1/
22195 q
22196 }
22197 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022198 { as_dir="$ac_dir"
22199 case $as_dir in #(
22200 -*) as_dir=./$as_dir;;
22201 esac
22202 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22203 as_dirs=
22204 while :; do
22205 case $as_dir in #(
22206 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22207 *) as_qdir=$as_dir;;
22208 esac
22209 as_dirs="'$as_qdir' $as_dirs"
22210 as_dir=`$as_dirname -- "$as_dir" ||
22211$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22212 X"$as_dir" : 'X\(//\)[^/]' \| \
22213 X"$as_dir" : 'X\(//\)$' \| \
22214 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22215echo X"$as_dir" |
22216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22217 s//\1/
22218 q
22219 }
22220 /^X\(\/\/\)[^/].*/{
22221 s//\1/
22222 q
22223 }
22224 /^X\(\/\/\)$/{
22225 s//\1/
22226 q
22227 }
22228 /^X\(\/\).*/{
22229 s//\1/
22230 q
22231 }
22232 s/.*/./; q'`
22233 test -d "$as_dir" && break
22234 done
22235 test -z "$as_dirs" || eval "mkdir $as_dirs"
22236 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22237echo "$as_me: error: cannot create directory $as_dir" >&2;}
22238 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022239 ac_builddir=.
22240
Reid Spencera773bd52006-08-04 18:18:08 +000022241case "$ac_dir" in
22242.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22243*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022245 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022246 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022247 case $ac_top_builddir_sub in
22248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22250 esac ;;
22251esac
22252ac_abs_top_builddir=$ac_pwd
22253ac_abs_builddir=$ac_pwd$ac_dir_suffix
22254# for backward compatibility:
22255ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022256
22257case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022258 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022259 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022260 ac_top_srcdir=$ac_top_builddir_sub
22261 ac_abs_top_srcdir=$ac_pwd ;;
22262 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022263 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022264 ac_top_srcdir=$srcdir
22265 ac_abs_top_srcdir=$srcdir ;;
22266 *) # Relative name.
22267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22268 ac_top_srcdir=$ac_top_build_prefix$srcdir
22269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022270esac
Reid Spencera773bd52006-08-04 18:18:08 +000022271ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022272
John Criswell7a73b802003-06-30 21:59:07 +000022273
Reid Spencera773bd52006-08-04 18:18:08 +000022274 case $ac_mode in
22275 :F)
22276 #
22277 # CONFIG_FILE
22278 #
John Criswell7a73b802003-06-30 21:59:07 +000022279
22280 case $INSTALL in
22281 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022282 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022283 esac
John Criswell7a73b802003-06-30 21:59:07 +000022284_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022286cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022287# If the template does not know about datarootdir, expand it.
22288# FIXME: This hack should be removed a few years after 2.60.
22289ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290
22291case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022292 p
22293 q
22294}
22295/@datadir@/p
22296/@docdir@/p
22297/@infodir@/p
22298/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022299/@mandir@/p
22300' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022301*datarootdir*) ac_datarootdir_seen=yes;;
22302*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022303 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22304echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022305_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022306cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022307 ac_datarootdir_hack='
22308 s&@datadir@&$datadir&g
22309 s&@docdir@&$docdir&g
22310 s&@infodir@&$infodir&g
22311 s&@localedir@&$localedir&g
22312 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022313 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022314esac
22315_ACEOF
22316
22317# Neutralize VPATH when `$srcdir' = `.'.
22318# Shell code in configure.ac might set extrasub.
22319# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022320cat >>$CONFIG_STATUS <<_ACEOF
22321 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022322$extrasub
22323_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022324cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022325:t
22326/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022327s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022328s&@top_builddir@&$ac_top_builddir_sub&;t t
22329s&@srcdir@&$ac_srcdir&;t t
22330s&@abs_srcdir@&$ac_abs_srcdir&;t t
22331s&@top_srcdir@&$ac_top_srcdir&;t t
22332s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22333s&@builddir@&$ac_builddir&;t t
22334s&@abs_builddir@&$ac_abs_builddir&;t t
22335s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22336s&@INSTALL@&$ac_INSTALL&;t t
22337$ac_datarootdir_hack
Jordan Rose85042e62012-09-26 00:01:00 +000022338" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022339
Reid Spencera773bd52006-08-04 18:18:08 +000022340test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22341 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022343 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022344which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022345echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022346which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022347
Reid Spencera773bd52006-08-04 18:18:08 +000022348 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022349 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022350 -) cat "$tmp/out"; rm -f "$tmp/out";;
22351 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22352 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022353 ;;
22354 :H)
22355 #
22356 # CONFIG_HEADER
22357 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022358_ACEOF
22359
22360# Transform confdefs.h into a sed script `conftest.defines', that
22361# substitutes the proper values into config.h.in to produce config.h.
22362rm -f conftest.defines conftest.tail
22363# First, append a space to every undef/define line, to ease matching.
22364echo 's/$/ /' >conftest.defines
22365# Then, protect against being on the right side of a sed subst, or in
22366# an unquoted here document, in config.status. If some macros were
22367# called several times there might be several #defines for the same
22368# symbol, which is useless. But do not sort them, since the last
22369# AC_DEFINE must be honored.
22370ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22371# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22372# NAME is the cpp macro being defined, VALUE is the value it is being given.
22373# PARAMS is the parameter list in the macro definition--in most cases, it's
22374# just an empty string.
22375ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22376ac_dB='\\)[ (].*,\\1define\\2'
22377ac_dC=' '
22378ac_dD=' ,'
22379
22380uniq confdefs.h |
22381 sed -n '
22382 t rset
22383 :rset
22384 s/^[ ]*#[ ]*define[ ][ ]*//
22385 t ok
22386 d
22387 :ok
22388 s/[\\&,]/\\&/g
22389 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22390 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22391 ' >>conftest.defines
22392
22393# Remove the space that was appended to ease matching.
22394# Then replace #undef with comments. This is necessary, for
22395# example, in the case of _POSIX_SOURCE, which is predefined and required
22396# on some systems where configure will not decide to define it.
22397# (The regexp can be short, since the line contains either #define or #undef.)
22398echo 's/ $//
22399s,^[ #]*u.*,/* & */,' >>conftest.defines
22400
22401# Break up conftest.defines:
22402ac_max_sed_lines=50
22403
22404# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22405# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22406# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22407# et cetera.
22408ac_in='$ac_file_inputs'
22409ac_out='"$tmp/out1"'
22410ac_nxt='"$tmp/out2"'
22411
22412while :
22413do
22414 # Write a here document:
22415 cat >>$CONFIG_STATUS <<_ACEOF
22416 # First, check the format of the line:
22417 cat >"\$tmp/defines.sed" <<\\CEOF
22418/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22419/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22420b
22421:def
22422_ACEOF
22423 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22424 echo 'CEOF
22425 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22426 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22427 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22428 grep . conftest.tail >/dev/null || break
22429 rm -f conftest.defines
22430 mv conftest.tail conftest.defines
22431done
22432rm -f conftest.defines conftest.tail
22433
22434echo "ac_result=$ac_in" >>$CONFIG_STATUS
22435cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022436 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022437 echo "/* $configure_input */" >"$tmp/config.h"
22438 cat "$ac_result" >>"$tmp/config.h"
22439 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22440 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22441echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022442 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022443 rm -f $ac_file
22444 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022445 fi
22446 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022447 echo "/* $configure_input */"
22448 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022449 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022450 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022451 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022453 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22454echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022455 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022456 esac
John Criswell7a73b802003-06-30 21:59:07 +000022457
Reid Spencera773bd52006-08-04 18:18:08 +000022458
22459 case $ac_file$ac_mode in
22460 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022461 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022462 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022463 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022464 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022465 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022466 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022467 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022468 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022469 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022470 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022471 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022472 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022473 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022474 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022475 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022476 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022477 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022478 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022479 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022480 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022481 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022482 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022483 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022484 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022485 ${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 +000022486
22487 esac
22488done # for ac_tag
22489
John Criswell7a73b802003-06-30 21:59:07 +000022490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022491{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022492_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022493chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022494ac_clean_files=$ac_clean_files_save
22495
22496
22497# configure is writing to config.log, and then calls config.status.
22498# config.status does its own redirection, appending to config.log.
22499# Unfortunately, on DOS this fails, as config.log is still kept open
22500# by configure, so config.status won't be able to write to it; its
22501# output is simply discarded. So we exec the FD to /dev/null,
22502# effectively closing config.log, so it can be properly (re)opened and
22503# appended to by config.status. When coming back to configure, we
22504# need to make the FD available again.
22505if test "$no_create" != yes; then
22506 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022507 ac_config_status_args=
22508 test "$silent" = yes &&
22509 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022510 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022512 exec 5>>config.log
22513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22514 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022515 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022516fi
22517
John Criswell12399a12003-09-30 15:55:44 +000022518#
22519# CONFIG_SUBDIRS section.
22520#
22521if test "$no_recursion" != yes; then
22522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022523 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022524 ac_sub_configure_args=
22525 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022526 eval "set x $ac_configure_args"
22527 shift
22528 for ac_arg
22529 do
John Criswell12399a12003-09-30 15:55:44 +000022530 if test -n "$ac_prev"; then
22531 ac_prev=
22532 continue
22533 fi
22534 case $ac_arg in
22535 -cache-file | --cache-file | --cache-fil | --cache-fi \
22536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22537 ac_prev=cache_file ;;
22538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22540 | --c=*)
22541 ;;
22542 --config-cache | -C)
22543 ;;
22544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22545 ac_prev=srcdir ;;
22546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22547 ;;
22548 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22549 ac_prev=prefix ;;
22550 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22551 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022552 *)
22553 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022554 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022555 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022556 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022557 esac
22558 done
22559
22560 # Always prepend --prefix to ensure using the same prefix
22561 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022562 ac_arg="--prefix=$prefix"
22563 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022564 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022565 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022566 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022567
22568 ac_popdir=`pwd`
22569 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22570
22571 # Do not complain, so a configure script can configure whichever
22572 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022573 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022574
Reid Spencera773bd52006-08-04 18:18:08 +000022575 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022576 echo "$as_me:$LINENO: $ac_msg" >&5
22577 echo "$ac_msg" >&6
22578 { as_dir="$ac_dir"
22579 case $as_dir in #(
22580 -*) as_dir=./$as_dir;;
22581 esac
22582 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22583 as_dirs=
22584 while :; do
22585 case $as_dir in #(
22586 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22587 *) as_qdir=$as_dir;;
22588 esac
22589 as_dirs="'$as_qdir' $as_dirs"
22590 as_dir=`$as_dirname -- "$as_dir" ||
22591$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22592 X"$as_dir" : 'X\(//\)[^/]' \| \
22593 X"$as_dir" : 'X\(//\)$' \| \
22594 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22595echo X"$as_dir" |
22596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22597 s//\1/
22598 q
22599 }
22600 /^X\(\/\/\)[^/].*/{
22601 s//\1/
22602 q
22603 }
22604 /^X\(\/\/\)$/{
22605 s//\1/
22606 q
22607 }
22608 /^X\(\/\).*/{
22609 s//\1/
22610 q
22611 }
22612 s/.*/./; q'`
22613 test -d "$as_dir" && break
22614 done
22615 test -z "$as_dirs" || eval "mkdir $as_dirs"
22616 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22617echo "$as_me: error: cannot create directory $as_dir" >&2;}
22618 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022619 ac_builddir=.
22620
Reid Spencera773bd52006-08-04 18:18:08 +000022621case "$ac_dir" in
22622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22623*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022624 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022625 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022626 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022627 case $ac_top_builddir_sub in
22628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22630 esac ;;
22631esac
22632ac_abs_top_builddir=$ac_pwd
22633ac_abs_builddir=$ac_pwd$ac_dir_suffix
22634# for backward compatibility:
22635ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022636
22637case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022638 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022639 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022640 ac_top_srcdir=$ac_top_builddir_sub
22641 ac_abs_top_srcdir=$ac_pwd ;;
22642 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022643 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022644 ac_top_srcdir=$srcdir
22645 ac_abs_top_srcdir=$srcdir ;;
22646 *) # Relative name.
22647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22648 ac_top_srcdir=$ac_top_build_prefix$srcdir
22649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022650esac
Reid Spencera773bd52006-08-04 18:18:08 +000022651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022652
22653
Reid Spencera773bd52006-08-04 18:18:08 +000022654 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022655
22656 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022657 if test -f "$ac_srcdir/configure.gnu"; then
22658 ac_sub_configure=$ac_srcdir/configure.gnu
22659 elif test -f "$ac_srcdir/configure"; then
22660 ac_sub_configure=$ac_srcdir/configure
22661 elif test -f "$ac_srcdir/configure.in"; then
22662 # This should be Cygnus configure.
22663 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022664 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022665 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22666echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022667 ac_sub_configure=
22668 fi
22669
22670 # The recursion is here.
22671 if test -n "$ac_sub_configure"; then
22672 # Make the cache file name correct relative to the subdirectory.
22673 case $cache_file in
22674 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022675 *) # Relative name.
22676 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022677 esac
22678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022679 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22680echo "$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 +000022681 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022682 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22683 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022684 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22685echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22686 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022687 fi
22688
Reid Spencera773bd52006-08-04 18:18:08 +000022689 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022690 done
22691fi
22692