blob: 2bbfe59108b4d267342aa7fc360edd87cd360dcc [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
769INTEL_JITEVENTS_INCDIR
770INTEL_JITEVENTS_LIBDIR
Eric Christopher46e6bcf2012-08-03 19:47:19 +0000771XML2CONFIG
772LIBXML2_LIBS
773LIBXML2_INC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774HAVE_PTHREAD
775HUGE_VAL_SANITY
776MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000778SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVM_PREFIX
780LLVM_BINDIR
781LLVM_LIBDIR
782LLVM_DATADIR
783LLVM_DOCSDIR
784LLVM_ETCDIR
785LLVM_INCLUDEDIR
786LLVM_INFODIR
787LLVM_MANDIR
788LLVM_CONFIGTIME
789BINDINGS_TO_BUILD
790ALL_BINDINGS
791OCAML_LIBDIR
792ENABLE_VISIBILITY_INLINES_HIDDEN
793RPATH
794RDYNAMIC
795LIBOBJS
796LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000797ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000798 ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000805CXX
806CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000807CCC
808CPP'
John Criswell0157f502010-03-19 21:31:39 +0000809ac_subdirs_all='projects/llvm-gcc
810projects/test-suite
811projects/llvm-test
812projects/poolalloc
813projects/llvm-poolalloc
814projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000816projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/llvm-java
819projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000820projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000821projects/llvm-kernel
822tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000823
824# Initialize some variables set by options.
825ac_init_help=
826ac_init_version=false
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000849# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000858includedir='${prefix}/include'
859oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000869
870ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000871ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000872for ac_option
873do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000876 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000877 ac_prev=
878 continue
879 fi
880
Reid Spencera773bd52006-08-04 18:18:08 +0000881 case $ac_option in
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *) ac_optarg=yes ;;
884 esac
John Criswell7a73b802003-06-30 21:59:07 +0000885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
Reid Spencera773bd52006-08-04 18:18:08 +0000888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000913 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000915 datadir=$ac_optarg ;;
916
Reid Spencera773bd52006-08-04 18:18:08 +0000917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
John Criswell7a73b802003-06-30 21:59:07 +0000924 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000925 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000926 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000942
943 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000944 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000945 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000946 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
947 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
948 { (exit 1); exit 1; }; }
949 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
950 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000951
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
960
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
964
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
971
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
976
Reid Spencera773bd52006-08-04 18:18:08 +0000977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
John Criswell7a73b802003-06-30 21:59:07 +0000983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1006
Reid Spencera773bd52006-08-04 18:18:08 +00001007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
John Criswell7a73b802003-06-30 21:59:07 +00001012 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001017 localstatedir=$ac_optarg ;;
1018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1023
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1031
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1035
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1044
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1080
Reid Spencera773bd52006-08-04 18:18:08 +00001081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
John Criswell7a73b802003-06-30 21:59:07 +00001091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001142 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001143 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package| sed 's/-/_/g'`
1147 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001148
1149 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001151 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001152 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package | sed 's/-/_/g'`
1156 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001157
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1161
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1168
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001176 -*) { echo "$as_me: error: unrecognized option: $ac_option
1177Try \`$0 --help' for more information." >&2
1178 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001179 ;;
1180
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001184 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1186 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001187 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001188 export $ac_envvar ;;
1189
1190 *)
1191 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001194 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 ;;
1197
1198 esac
1199done
1200
1201if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001203 { echo "$as_me: error: missing argument to $ac_option" >&2
1204 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001205fi
1206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001207# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001212do
Reid Spencera773bd52006-08-04 18:18:08 +00001213 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001214 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001217 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001218 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001220done
1221
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001233 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
Reid Spencera773bd52006-08-04 18:18:08 +00001246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: Working directory cannot be determined" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001252 { echo "$as_me: error: pwd does not report name of working directory" >&2
1253 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001254
1255
John Criswell7a73b802003-06-30 21:59:07 +00001256# Find the source files, if location was not specified.
1257if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001259 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001260 ac_confdir=`$as_dirname -- "$0" ||
1261$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$0" : 'X\(//\)[^/]' \| \
1263 X"$0" : 'X\(//\)$' \| \
1264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001283 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001284 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001285 srcdir=..
1286 fi
1287else
1288 ac_srcdir_defaulted=no
1289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001294fi
Reid Spencera773bd52006-08-04 18:18:08 +00001295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001297 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1298 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001299 pwd)`
1300# When building in place, set srcdir=.
1301if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303fi
1304# Remove unnecessary trailing slashes from srcdir.
1305# Double slashes in file names in object file debugging info
1306# mess up M-x gdb in Emacs.
1307case $srcdir in
1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309esac
1310for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315done
John Criswell7a73b802003-06-30 21:59:07 +00001316
1317#
1318# Report the --help message.
1319#
1320if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001324\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001325
1326Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331Defaults for the options are specified in brackets.
1332
1333Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
John Criswell7a73b802003-06-30 21:59:07 +00001344Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001348 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001349
1350By default, \`make install' will install all the files in
1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353for instance \`--prefix=\$HOME'.
1354
1355For better control, use the options below.
1356
1357Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001372 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001377_ACEOF
1378
1379 cat <<\_ACEOF
1380
1381System types:
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 --target=TARGET configure for building compilers for TARGET [HOST]
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001390 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001391 esac
1392 cat <<\_ACEOF
1393
1394Optional Features:
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001397 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001398 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher82120022012-08-03 19:47:14 +00001399 --enable-cxx11 Use c++11 if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 --enable-optimized Compile with optimizations enabled (default is NO)
1401 --enable-profiling Compile with profiling enabled (default is NO)
1402 --enable-assertions Compile with assertion checks enabled (default is
1403 YES)
Eric Christopher09a88732012-08-03 19:58:20 +00001404 --enable-werror Compile with -Werror enabled (default is NO)
David Greenea696d242007-06-28 19:36:08 +00001405 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001406 Compile with expensive debug checks enabled (default
1407 is NO)
1408 --enable-debug-runtime Build runtime libs with debug symbols (default is
1409 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001410 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1411 optimization is on and YES if it's off)
Daniel Dunbar7126ee02012-08-14 18:14:22 +00001412 --enable-keep-symbols Do not strip installed executables)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001413 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001414 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001415 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001416 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001417 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001418 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001419 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001420 --enable-shared Build a shared library and link tools against it
1421 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001422 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001423 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001424 --enable-timestamps Enable embedding timestamp information in build
1425 (default is YES)
Eric Christopherc69bdad2012-09-21 23:03:29 +00001426 --enable-backtraces Enable embedding backtraces on crash (default is
1427 YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001428 --enable-targets Build specific host targets: all or
1429 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001430 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Tom Stellard38cda132012-07-16 18:19:46 +00001431 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira0e80e182012-08-09 01:13:59 +00001432 --enable-experimental-targets
1433 Build experimental host targets: disable or
1434 target1,target2,... (default=disable)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001435 --enable-bindings Build specific language bindings:
1436 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001437 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001438 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001439
1440Optional Packages:
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001443 --with-optimize-option Select the compiler options to use for optimized
1444 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001445 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001446 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001447 --with-ocaml-libdir Specify install location for ocaml bindings (default
1448 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001449 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001450 --with-clang-resource-dir
1451 Relative directory from the Clang binary for
1452 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001453 --with-c-include-dirs Colon separated list of directories clang will
1454 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001455 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001456 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001457 --with-binutils-include Specify path to binutils/include/ containing
1458 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001459 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001460 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001461 --with-internal-prefix Installation directory for internal files
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001462 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001463 --with-oprofile=<prefix>
1464 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001465 --with-intel-jitevents=<vtune-amplifier-dir>
1466 Specify location of run-time support library for
1467 Intel JIT API
1468 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001469
1470Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001471 CC C compiler command
1472 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001475 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001476 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001477 CXX C++ compiler command
1478 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001479 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001480
1481Use these variables to override the choices made by `configure' or to help
1482it to find libraries and programs with nonstandard names/locations.
1483
Eric Christopherf33ab862011-12-21 00:52:44 +00001484Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001485_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001486ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001487fi
1488
1489if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001492 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001493 ac_builddir=.
1494
Reid Spencera773bd52006-08-04 18:18:08 +00001495case "$ac_dir" in
1496.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001499 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001500 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 esac ;;
1505esac
1506ac_abs_top_builddir=$ac_pwd
1507ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508# for backward compatibility:
1509ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001510
1511case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001512 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001513 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001517 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1520 *) # Relative name.
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001524esac
Reid Spencera773bd52006-08-04 18:18:08 +00001525ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001526
Reid Spencera773bd52006-08-04 18:18:08 +00001527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001535 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001536 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001537 fi || ac_status=$?
1538 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001539 done
1540fi
1541
Reid Spencera773bd52006-08-04 18:18:08 +00001542test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001543if $ac_init_version; then
1544 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001545LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001546generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001548Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15492002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001550This configure script is free software; the Free Software Foundation
1551gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001552
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001553Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001554_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001555 exit
John Criswell7a73b802003-06-30 21:59:07 +00001556fi
Reid Spencera773bd52006-08-04 18:18:08 +00001557cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001558This file contains any messages produced by compilers while
1559running configure, to aid debugging if configure makes a mistake.
1560
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001561It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001562generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001563
1564 $ $0 $@
1565
1566_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001567exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001568{
1569cat <<_ASUNAME
1570## --------- ##
1571## Platform. ##
1572## --------- ##
1573
1574hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1575uname -m = `(uname -m) 2>/dev/null || echo unknown`
1576uname -r = `(uname -r) 2>/dev/null || echo unknown`
1577uname -s = `(uname -s) 2>/dev/null || echo unknown`
1578uname -v = `(uname -v) 2>/dev/null || echo unknown`
1579
1580/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1581/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1582
1583/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1584/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1585/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001586/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001587/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1588/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1589/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1590
1591_ASUNAME
1592
1593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594for as_dir in $PATH
1595do
1596 IFS=$as_save_IFS
1597 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001598 echo "PATH: $as_dir"
1599done
Reid Spencera773bd52006-08-04 18:18:08 +00001600IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001601
1602} >&5
1603
1604cat >&5 <<_ACEOF
1605
1606
1607## ----------- ##
1608## Core tests. ##
1609## ----------- ##
1610
1611_ACEOF
1612
1613
1614# Keep a trace of the command line.
1615# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001616# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001617# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001618# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001619ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001620ac_configure_args0=
1621ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001622ac_must_keep_next=false
1623for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001624do
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 for ac_arg
1626 do
1627 case $ac_arg in
1628 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1630 | -silent | --silent | --silen | --sile | --sil)
1631 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001632 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001633 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 esac
1635 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001636 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001638 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001639 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001640 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001642 case $ac_arg in
1643 *=* | --config-cache | -C | -disable-* | --disable-* \
1644 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1645 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1646 | -with-* | --with-* | -without-* | --without-* | --x)
1647 case "$ac_configure_args0 " in
1648 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1649 esac
1650 ;;
1651 -* ) ac_must_keep_next=true ;;
1652 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001653 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001654 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001655 ;;
1656 esac
1657 done
John Criswell7a73b802003-06-30 21:59:07 +00001658done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001659$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1660$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 +00001661
1662# When interrupted or exit'd, cleanup temporary files, and complete
1663# config.log. We remove comments because anyway the quotes in there
1664# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001665# WARNING: Use '\'' to represent an apostrophe within the trap.
1666# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001667trap 'exit_status=$?
1668 # Save into config.log some information that might help in debugging.
1669 {
1670 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001671
John Criswell7a73b802003-06-30 21:59:07 +00001672 cat <<\_ASBOX
1673## ---------------- ##
1674## Cache variables. ##
1675## ---------------- ##
1676_ASBOX
1677 echo
1678 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001679(
1680 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1681 eval ac_val=\$$ac_var
1682 case $ac_val in #(
1683 *${as_nl}*)
1684 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001685 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1686echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001687 esac
1688 case $ac_var in #(
1689 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001690 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001691 esac ;;
1692 esac
1693 done
John Criswell7a73b802003-06-30 21:59:07 +00001694 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001695 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1696 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001697 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001698 "s/'\''/'\''\\\\'\'''\''/g;
1699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1700 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001701 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001703 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001704 esac |
1705 sort
1706)
John Criswell7a73b802003-06-30 21:59:07 +00001707 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001708
1709 cat <<\_ASBOX
1710## ----------------- ##
1711## Output variables. ##
1712## ----------------- ##
1713_ASBOX
1714 echo
1715 for ac_var in $ac_subst_vars
1716 do
Reid Spencera773bd52006-08-04 18:18:08 +00001717 eval ac_val=\$$ac_var
1718 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001719 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001720 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001721 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001722 done | sort
1723 echo
1724
1725 if test -n "$ac_subst_files"; then
1726 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001727## ------------------- ##
1728## File substitutions. ##
1729## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001730_ASBOX
1731 echo
1732 for ac_var in $ac_subst_files
1733 do
Reid Spencera773bd52006-08-04 18:18:08 +00001734 eval ac_val=\$$ac_var
1735 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001737 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001738 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 done | sort
1740 echo
1741 fi
1742
John Criswell7a73b802003-06-30 21:59:07 +00001743 if test -s confdefs.h; then
1744 cat <<\_ASBOX
1745## ----------- ##
1746## confdefs.h. ##
1747## ----------- ##
1748_ASBOX
1749 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001750 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001751 echo
1752 fi
1753 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001754 echo "$as_me: caught signal $ac_signal"
1755 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001756 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001757 rm -f core *.core core.conftest.* &&
1758 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001759 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001760' 0
John Criswell7a73b802003-06-30 21:59:07 +00001761for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001762 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001763done
1764ac_signal=0
1765
1766# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001767rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001768
1769# Predefined preprocessor variables.
1770
1771cat >>confdefs.h <<_ACEOF
1772#define PACKAGE_NAME "$PACKAGE_NAME"
1773_ACEOF
1774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775
John Criswell7a73b802003-06-30 21:59:07 +00001776cat >>confdefs.h <<_ACEOF
1777#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1778_ACEOF
1779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001780
John Criswell7a73b802003-06-30 21:59:07 +00001781cat >>confdefs.h <<_ACEOF
1782#define PACKAGE_VERSION "$PACKAGE_VERSION"
1783_ACEOF
1784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785
John Criswell7a73b802003-06-30 21:59:07 +00001786cat >>confdefs.h <<_ACEOF
1787#define PACKAGE_STRING "$PACKAGE_STRING"
1788_ACEOF
1789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790
John Criswell7a73b802003-06-30 21:59:07 +00001791cat >>confdefs.h <<_ACEOF
1792#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1793_ACEOF
1794
1795
1796# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001798if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001800elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001802else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803 set x "$ac_default_prefix/share/config.site" \
1804 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001806shift
1807for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001808do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 if test -r "$ac_site_file"; then
1810 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1811echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001812 sed 's/^/| /' "$ac_site_file" >&5
1813 . "$ac_site_file"
1814 fi
1815done
1816
1817if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001818 # Some versions of bash will fail to source /dev/null (special
1819 # files actually), so we avoid doing that.
1820 if test -f "$cache_file"; then
1821 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1822echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001824 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1825 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001826 esac
1827 fi
1828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001829 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1830echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001831 >$cache_file
1832fi
1833
1834# Check that the precious variables saved in the cache have kept the same
1835# value.
1836ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001837for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001838 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1839 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001840 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1841 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001842 case $ac_old_set,$ac_new_set in
1843 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001844 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1845echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001846 ac_cache_corrupted=: ;;
1847 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001848 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1849echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001850 ac_cache_corrupted=: ;;
1851 ,);;
1852 *)
1853 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001854 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1855echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1856 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1857echo "$as_me: former value: $ac_old_val" >&2;}
1858 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1859echo "$as_me: current value: $ac_new_val" >&2;}
1860 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001861 fi;;
1862 esac
1863 # Pass precious variables to config.status.
1864 if test "$ac_new_set" = set; then
1865 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001866 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001867 *) ac_arg=$ac_var=$ac_new_val ;;
1868 esac
1869 case " $ac_configure_args " in
1870 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001871 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001872 esac
1873 fi
1874done
1875if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001876 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1877echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1878 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1879echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1880 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
Reid Spencera773bd52006-08-04 18:18:08 +00001906
John Criswell7a73b802003-06-30 21:59:07 +00001907ac_ext=c
1908ac_cpp='$CPP $CPPFLAGS'
1909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912
1913
1914
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001915cat >>confdefs.h <<\_ACEOF
1916#define LLVM_VERSION_MAJOR 3
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001921#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001922_ACEOF
1923
1924
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001925LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001926
1927
1928
1929
1930
1931
1932
John Criswell7a73b802003-06-30 21:59:07 +00001933ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001934for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001935 if 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/install.sh"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install.sh -c"
1942 break
1943 elif test -f "$ac_dir/shtool"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/shtool install -c"
1946 break
1947 fi
John Criswell7a73b802003-06-30 21:59:07 +00001948done
1949if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1951echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1952 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001953fi
Reid Spencera773bd52006-08-04 18:18:08 +00001954
1955# These three variables are undocumented and unsupported,
1956# and are intended to be withdrawn in a future Autoconf release.
1957# They can cause serious problems if a builder's source tree is in a directory
1958# whose full name contains unusual characters.
1959ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1960ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1961ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962
John Criswell7a73b802003-06-30 21:59:07 +00001963
John Criswell392aaa32003-07-22 19:18:09 +00001964
Reid Spencer2706f8c2004-09-19 23:53:36 +00001965if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001966 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001967 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1968echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1969 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001970 fi
John Criswell93e1c722003-09-15 17:04:06 +00001971fi
1972
Nick Lewycky83fc4472009-09-29 05:48:51 +00001973ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001974ac_cpp='$CPP $CPPFLAGS'
1975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001978if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001979 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001980 do
1981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1985if test "${ac_cv_prog_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001987else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001990else
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 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 +00001998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002000 break 2
2001 fi
2002done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002003done
Reid Spencera773bd52006-08-04 18:18:08 +00002004IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002005
2006fi
2007fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002008CC=$ac_cv_prog_CC
2009if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002010 { echo "$as_me:$LINENO: result: $CC" >&5
2011echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002013 { echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002015fi
2016
Reid Spencera773bd52006-08-04 18:18:08 +00002017
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002018 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002019 done
2020fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021if test -z "$CC"; then
2022 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002023 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002024do
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002031else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 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 +00002042 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002044 break 2
2045 fi
2046done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002047done
Reid Spencera773bd52006-08-04 18:18:08 +00002048IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002049
2050fi
2051fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002052ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002054 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057 { echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002059fi
2060
Reid Spencera773bd52006-08-04 18:18:08 +00002061
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002062 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002063done
John Criswell7a73b802003-06-30 21:59:07 +00002064
Reid Spencera773bd52006-08-04 18:18:08 +00002065 if test "x$ac_ct_CC" = x; then
2066 CC=""
2067 else
2068 case $cross_compiling:$ac_tool_warned in
2069yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2071whose name does not start with the host triplet. If you think this
2072configuration is useful to you, please write to autoconf@gnu.org." >&5
2073echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2074whose name does not start with the host triplet. If you think this
2075configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002076ac_tool_warned=yes ;;
2077esac
2078 CC=$ac_ct_CC
2079 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080fi
2081
John Criswell7a73b802003-06-30 21:59:07 +00002082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2084See \`config.log' for more details." >&5
2085echo "$as_me: error: no acceptable C compiler found in \$PATH
2086See \`config.log' for more details." >&2;}
2087 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002088
John Criswell7a73b802003-06-30 21:59:07 +00002089# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002090echo "$as_me:$LINENO: checking for C compiler version" >&5
2091ac_compiler=`set X $ac_compile; echo $2`
2092{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002093case "(($ac_try" in
2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 *) ac_try_echo=$ac_try;;
2096esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002099 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2102{ (ac_try="$ac_compiler -v >&5"
2103case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106esac
2107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108 (eval "$ac_compiler -v >&5") 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112{ (ac_try="$ac_compiler -V >&5"
2113case "(($ac_try" in
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2116esac
2117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler -V >&5") 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002123cat >conftest.$ac_ext <<_ACEOF
2124/* confdefs.h. */
2125_ACEOF
2126cat confdefs.h >>conftest.$ac_ext
2127cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002128/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002129
John Criswell7a73b802003-06-30 21:59:07 +00002130int
2131main ()
2132{
2133
2134 ;
2135 return 0;
2136}
2137_ACEOF
2138ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002139ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002140# Try to create an executable without -o first, disregard a.out.
2141# It will help us diagnose broken compilers, and finding out an intuition
2142# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2144echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2145ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2146#
2147# List of possible output files, starting from the most likely.
2148# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2149# only as a last resort. b.out is created by i960 compilers.
2150ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2151#
2152# The IRIX 6 linker writes into existing files which may not be
2153# executable, retaining their permissions. Remove them first so a
2154# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002155ac_rmfiles=
2156for ac_file in $ac_files
2157do
2158 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2161 esac
2162done
2163rm -f $ac_rmfiles
2164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002165if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002166case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002171 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002172 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002175 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2176# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2177# in a Makefile. We should not override ac_cv_exeext if it was cached,
2178# so that the user can short-circuit this test for compilers unknown to
2179# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002180for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002181do
2182 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002183 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002185 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 # We found the default executable, but exeext='' is most
2188 # certainly right.
2189 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002190 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002191 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002192 then :; else
2193 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194 fi
2195 # We set ac_cv_exeext here because the later test for it is not
2196 # safe: cross compilers may not add the suffix if given an `-o'
2197 # argument, so we may need to know it at that point already.
2198 # Even if this section looks crufty: it has the advantage of
2199 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002200 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002201 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002202 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002203 esac
2204done
Reid Spencera773bd52006-08-04 18:18:08 +00002205test "$ac_cv_exeext" = no && ac_cv_exeext=
2206
John Criswell7a73b802003-06-30 21:59:07 +00002207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002209sed 's/^/| /' conftest.$ac_ext >&5
2210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002211{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212See \`config.log' for more details." >&5
2213echo "$as_me: error: C compiler cannot create executables
2214See \`config.log' for more details." >&2;}
2215 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002216fi
John Criswell7a73b802003-06-30 21:59:07 +00002217
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002218ac_exeext=$ac_cv_exeext
2219{ echo "$as_me:$LINENO: result: $ac_file" >&5
2220echo "${ECHO_T}$ac_file" >&6; }
2221
2222# Check that the compiler produces executables we can run. If not, either
2223# the compiler is broken, or we cross compile.
2224{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2226# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227# If not cross compiling, check that we can run a simple program.
2228if test "$cross_compiling" != yes; then
2229 if { ac_try='./$ac_file'
2230 { (case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2233esac
2234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2235 (eval "$ac_try") 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 cross_compiling=no
2240 else
2241 if test "$cross_compiling" = maybe; then
2242 cross_compiling=yes
2243 else
2244 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245If you meant to cross compile, use \`--host'.
2246See \`config.log' for more details." >&5
2247echo "$as_me: error: cannot run C compiled programs.
2248If you meant to cross compile, use \`--host'.
2249See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2251 fi
2252 fi
2253fi
2254{ echo "$as_me:$LINENO: result: yes" >&5
2255echo "${ECHO_T}yes" >&6; }
2256
2257rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002258ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002259# Check that the compiler produces executables we can run. If not, either
2260# the compiler is broken, or we cross compile.
2261{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2263{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264echo "${ECHO_T}$cross_compiling" >&6; }
2265
2266{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2268if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002269case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2272esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002274 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002275 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2280# work properly (i.e., refer to `conftest.exe'), while it won't with
2281# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002282for ac_file in conftest.exe conftest conftest.*; do
2283 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002284 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002287 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002288 * ) break;;
2289 esac
2290done
2291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293See \`config.log' for more details." >&5
2294echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002298
2299rm -f conftest$ac_cv_exeext
2300{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002302
2303rm -f conftest.$ac_ext
2304EXEEXT=$ac_cv_exeext
2305ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002306{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2308if test "${ac_cv_objext+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002310else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002311 cat >conftest.$ac_ext <<_ACEOF
2312/* confdefs.h. */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002316/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002317
John Criswell7a73b802003-06-30 21:59:07 +00002318int
2319main ()
2320{
2321
2322 ;
2323 return 0;
2324}
2325_ACEOF
2326rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002328case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002333 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002334 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002337 for ac_file in conftest.o conftest.obj conftest.*; do
2338 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002339 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342 break;;
2343 esac
2344done
2345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002347sed 's/^/| /' conftest.$ac_ext >&5
2348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002349{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2350See \`config.log' for more details." >&5
2351echo "$as_me: error: cannot compute suffix of object files: cannot compile
2352See \`config.log' for more details." >&2;}
2353 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002355
John Criswell7a73b802003-06-30 21:59:07 +00002356rm -f conftest.$ac_cv_objext conftest.$ac_ext
2357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002358{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2359echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002360OBJEXT=$ac_cv_objext
2361ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002362{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2363echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2364if test "${ac_cv_c_compiler_gnu+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002366else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002367 cat >conftest.$ac_ext <<_ACEOF
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002372/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002373
John Criswell7a73b802003-06-30 21:59:07 +00002374int
2375main ()
2376{
2377#ifndef __GNUC__
2378 choke me
2379#endif
2380
2381 ;
2382 return 0;
2383}
2384_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002385rm -f conftest.$ac_objext
2386if { (ac_try="$ac_compile"
2387case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390esac
2391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_compile") 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2400 { (case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403esac
2404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_try") 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2413esac
2414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_try") 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002419 ac_compiler_gnu=yes
2420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002421 echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002426
Reid Spencera773bd52006-08-04 18:18:08 +00002427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002429
2430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002431{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2432echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2433GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434ac_test_CFLAGS=${CFLAGS+set}
2435ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002436{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2437echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2438if test "${ac_cv_prog_cc_g+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002440else
Reid Spencera773bd52006-08-04 18:18:08 +00002441 ac_save_c_werror_flag=$ac_c_werror_flag
2442 ac_c_werror_flag=yes
2443 ac_cv_prog_cc_g=no
2444 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002445 cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h. */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002451
John Criswell7a73b802003-06-30 21:59:07 +00002452int
2453main ()
2454{
2455
2456 ;
2457 return 0;
2458}
2459_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460rm -f conftest.$ac_objext
2461if { (ac_try="$ac_compile"
2462case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465esac
2466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>conftest.er1
2468 ac_status=$?
2469 grep -v '^ *+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2475 { (case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478esac
2479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_try") 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488esac
2489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_try") 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002496 echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 CFLAGS=""
2500 cat >conftest.$ac_ext <<_ACEOF
2501/* confdefs.h. */
2502_ACEOF
2503cat confdefs.h >>conftest.$ac_ext
2504cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002505/* end confdefs.h. */
2506
2507int
2508main ()
2509{
2510
2511 ;
2512 return 0;
2513}
2514_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002515rm -f conftest.$ac_objext
2516if { (ac_try="$ac_compile"
2517case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_compile") 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530 { (case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2533esac
2534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_try") 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; } &&
2539 { ac_try='test -s conftest.$ac_objext'
2540 { (case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2543esac
2544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_try") 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 :
Torok Edwin871384f2010-01-26 08:50:50 +00002550else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002551 echo "$as_me: failed program was:" >&5
2552sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002555 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002556 cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h. */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002561/* end confdefs.h. */
2562
2563int
2564main ()
2565{
2566
2567 ;
2568 return 0;
2569}
2570_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002571rm -f conftest.$ac_objext
2572if { (ac_try="$ac_compile"
2573case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576esac
2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_compile") 2>conftest.er1
2579 ac_status=$?
2580 grep -v '^ *+' conftest.er1 >conftest.err
2581 rm -f conftest.er1
2582 cat conftest.err >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2586 { (case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589esac
2590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_try") 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2599esac
2600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_try") 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002605 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606else
2607 echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610
John Criswell7a73b802003-06-30 21:59:07 +00002611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002612
Reid Spencera773bd52006-08-04 18:18:08 +00002613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002615
Reid Spencera773bd52006-08-04 18:18:08 +00002616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618
Reid Spencera773bd52006-08-04 18:18:08 +00002619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 ac_c_werror_flag=$ac_save_c_werror_flag
2621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002622{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2623echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624if test "$ac_test_CFLAGS" = set; then
2625 CFLAGS=$ac_save_CFLAGS
2626elif test $ac_cv_prog_cc_g = yes; then
2627 if test "$GCC" = yes; then
2628 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002629 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002631 fi
2632else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633 if test "$GCC" = yes; then
2634 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002635 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002637 fi
2638fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002639{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2640echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2641if test "${ac_cv_prog_cc_c89+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643else
Reid Spencera773bd52006-08-04 18:18:08 +00002644 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002646cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h. */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651/* end confdefs.h. */
2652#include <stdarg.h>
2653#include <stdio.h>
2654#include <sys/types.h>
2655#include <sys/stat.h>
2656/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2657struct buf { int x; };
2658FILE * (*rcsopen) (struct buf *, struct stat *, int);
2659static char *e (p, i)
2660 char **p;
2661 int i;
2662{
2663 return p[i];
2664}
2665static char *f (char * (*g) (char **, int), char **p, ...)
2666{
2667 char *s;
2668 va_list v;
2669 va_start (v,p);
2670 s = g (p, va_arg (v,int));
2671 va_end (v);
2672 return s;
2673}
2674
2675/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2676 function prototypes and stuff, but not '\xHH' hex character constants.
2677 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002678 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2680 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002681 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2683
Reid Spencera773bd52006-08-04 18:18:08 +00002684/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2685 inside strings and character constants. */
2686#define FOO(x) 'x'
2687int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2688
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002689int test (int i, double x);
2690struct s1 {int (*f) (int a);};
2691struct s2 {int (*f) (double a);};
2692int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693int argc;
2694char **argv;
2695int
2696main ()
2697{
2698return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2699 ;
2700 return 0;
2701}
2702_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002703for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002705do
2706 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002707 rm -f conftest.$ac_objext
2708if { (ac_try="$ac_compile"
2709case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722 { (case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_try") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_try") 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002741 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002742else
2743 echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002747fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748
Reid Spencera773bd52006-08-04 18:18:08 +00002749rm -f core conftest.err conftest.$ac_objext
2750 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002751done
Reid Spencera773bd52006-08-04 18:18:08 +00002752rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002753CC=$ac_save_CC
2754
2755fi
Reid Spencera773bd52006-08-04 18:18:08 +00002756# AC_CACHE_VAL
2757case "x$ac_cv_prog_cc_c89" in
2758 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002759 { echo "$as_me:$LINENO: result: none needed" >&5
2760echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002761 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002762 { echo "$as_me:$LINENO: result: unsupported" >&5
2763echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002764 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002765 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002766 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2767echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002768esac
2769
John Criswell0c38eaf2003-09-10 15:17:25 +00002770
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002771ac_ext=c
2772ac_cpp='$CPP $CPPFLAGS'
2773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
Eric Christopherffee5722011-09-16 20:36:25 +00002777ac_ext=cpp
2778ac_cpp='$CXXCPP $CPPFLAGS'
2779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2782if test -z "$CXX"; then
2783 if test -n "$CCC"; then
2784 CXX=$CCC
2785 else
2786 if test -n "$ac_tool_prefix"; then
2787 for ac_prog in clang++ llvm-g++ g++
2788 do
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2793if test "${ac_cv_prog_CXX+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2795else
2796 if test -n "$CXX"; then
2797 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810done
2811done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816CXX=$ac_cv_prog_CXX
2817if test -n "$CXX"; then
2818 { echo "$as_me:$LINENO: result: $CXX" >&5
2819echo "${ECHO_T}$CXX" >&6; }
2820else
2821 { echo "$as_me:$LINENO: result: no" >&5
2822echo "${ECHO_T}no" >&6; }
2823fi
2824
2825
2826 test -n "$CXX" && break
2827 done
2828fi
2829if test -z "$CXX"; then
2830 ac_ct_CXX=$CXX
2831 for ac_prog in clang++ llvm-g++ g++
2832do
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840 if test -n "$ac_ct_CXX"; then
2841 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_ac_ct_CXX="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854done
2855done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2861if test -n "$ac_ct_CXX"; then
2862 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2863echo "${ECHO_T}$ac_ct_CXX" >&6; }
2864else
2865 { echo "$as_me:$LINENO: result: no" >&5
2866echo "${ECHO_T}no" >&6; }
2867fi
2868
2869
2870 test -n "$ac_ct_CXX" && break
2871done
2872
2873 if test "x$ac_ct_CXX" = x; then
2874 CXX="g++"
2875 else
2876 case $cross_compiling:$ac_tool_warned in
2877yes:)
2878{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2879whose name does not start with the host triplet. If you think this
2880configuration is useful to you, please write to autoconf@gnu.org." >&5
2881echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2882whose name does not start with the host triplet. If you think this
2883configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2884ac_tool_warned=yes ;;
2885esac
2886 CXX=$ac_ct_CXX
2887 fi
2888fi
2889
2890 fi
2891fi
2892# Provide some information about the compiler.
2893echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2894ac_compiler=`set X $ac_compile; echo $2`
2895{ (ac_try="$ac_compiler --version >&5"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler --version >&5") 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905{ (ac_try="$ac_compiler -v >&5"
2906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compiler -v >&5") 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915{ (ac_try="$ac_compiler -V >&5"
2916case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919esac
2920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler -V >&5") 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925
2926{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2927echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2928if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931 cat >conftest.$ac_ext <<_ACEOF
2932/* confdefs.h. */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
2936/* end confdefs.h. */
2937
2938int
2939main ()
2940{
2941#ifndef __GNUC__
2942 choke me
2943#endif
2944
2945 ;
2946 return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext
2950if { (ac_try="$ac_compile"
2951case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>conftest.er1
2957 ac_status=$?
2958 grep -v '^ *+' conftest.er1 >conftest.err
2959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_try") 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_try") 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2983 ac_compiler_gnu=yes
2984else
2985 echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 ac_compiler_gnu=no
2989fi
2990
2991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2993
2994fi
2995{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2996echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2997GXX=`test $ac_compiler_gnu = yes && echo yes`
2998ac_test_CXXFLAGS=${CXXFLAGS+set}
2999ac_save_CXXFLAGS=$CXXFLAGS
3000{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3001echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3002if test "${ac_cv_prog_cxx_g+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004else
3005 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3006 ac_cxx_werror_flag=yes
3007 ac_cv_prog_cxx_g=no
3008 CXXFLAGS="-g"
3009 cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
3015
3016int
3017main ()
3018{
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext
3025if { (ac_try="$ac_compile"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 ac_cv_prog_cxx_g=yes
3059else
3060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063 CXXFLAGS=""
3064 cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h. */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h. */
3070
3071int
3072main ()
3073{
3074
3075 ;
3076 return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext
3080if { (ac_try="$ac_compile"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107esac
3108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 :
3114else
3115 echo "$as_me: failed program was:" >&5
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3119 CXXFLAGS="-g"
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_cv_prog_cxx_g=yes
3170else
3171 echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174
3175fi
3176
3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178fi
3179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181fi
3182
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3185fi
3186{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3187echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3188if test "$ac_test_CXXFLAGS" = set; then
3189 CXXFLAGS=$ac_save_CXXFLAGS
3190elif test $ac_cv_prog_cxx_g = yes; then
3191 if test "$GXX" = yes; then
3192 CXXFLAGS="-g -O2"
3193 else
3194 CXXFLAGS="-g"
3195 fi
3196else
3197 if test "$GXX" = yes; then
3198 CXXFLAGS="-O2"
3199 else
3200 CXXFLAGS=
3201 fi
3202fi
3203ac_ext=c
3204ac_cpp='$CPP $CPPFLAGS'
3205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003208
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3215echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003216# On Suns, sometimes $CPP names a directory.
3217if test -n "$CPP" && test -d "$CPP"; then
3218 CPP=
3219fi
3220if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003221 if test "${ac_cv_prog_CPP+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003223else
3224 # Double quotes because CPP needs to be expanded
3225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3226 do
3227 ac_preproc_ok=false
3228for ac_c_preproc_warn_flag in '' yes
3229do
3230 # Use a header file that comes with gcc, so configuring glibc
3231 # with a fresh cross-compiler works.
3232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233 # <limits.h> exists even on freestanding compilers.
3234 # On the NeXT, cc -E runs the code through the compiler's parser,
3235 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003236 cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003241/* end confdefs.h. */
3242#ifdef __STDC__
3243# include <limits.h>
3244#else
3245# include <assert.h>
3246#endif
3247 Syntax error
3248_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003249if { (ac_try="$ac_cpp conftest.$ac_ext"
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_c_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265 else
3266 ac_cpp_err=
3267 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003269 ac_cpp_err=yes
3270fi
3271if test -z "$ac_cpp_err"; then
3272 :
3273else
3274 echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003277 # Broken: fails on valid input.
3278continue
3279fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003280
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281rm -f conftest.err conftest.$ac_ext
3282
Reid Spencera773bd52006-08-04 18:18:08 +00003283 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003285 cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290/* end confdefs.h. */
3291#include <ac_nonexistent.h>
3292_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003293if { (ac_try="$ac_cpp conftest.$ac_ext"
3294case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297esac
3298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } >/dev/null; then
3306 if test -s conftest.err; then
3307 ac_cpp_err=$ac_c_preproc_warn_flag
3308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3309 else
3310 ac_cpp_err=
3311 fi
3312else
3313 ac_cpp_err=yes
3314fi
3315if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003316 # Broken: success on invalid input.
3317continue
3318else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003319 echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322 # Passes both tests.
3323ac_preproc_ok=:
3324break
3325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003326
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327rm -f conftest.err conftest.$ac_ext
3328
3329done
3330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003332if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333 break
3334fi
3335
3336 done
3337 ac_cv_prog_CPP=$CPP
3338
3339fi
3340 CPP=$ac_cv_prog_CPP
3341else
3342 ac_cv_prog_CPP=$CPP
3343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003344{ echo "$as_me:$LINENO: result: $CPP" >&5
3345echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346ac_preproc_ok=false
3347for ac_c_preproc_warn_flag in '' yes
3348do
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360/* end confdefs.h. */
3361#ifdef __STDC__
3362# include <limits.h>
3363#else
3364# include <assert.h>
3365#endif
3366 Syntax error
3367_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003368if { (ac_try="$ac_cpp conftest.$ac_ext"
3369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
3373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null; then
3381 if test -s conftest.err; then
3382 ac_cpp_err=$ac_c_preproc_warn_flag
3383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3384 else
3385 ac_cpp_err=
3386 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003387else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003388 ac_cpp_err=yes
3389fi
3390if test -z "$ac_cpp_err"; then
3391 :
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396 # Broken: fails on valid input.
3397continue
3398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003399
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400rm -f conftest.err conftest.$ac_ext
3401
Reid Spencera773bd52006-08-04 18:18:08 +00003402 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003403 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003404 cat >conftest.$ac_ext <<_ACEOF
3405/* confdefs.h. */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003409/* end confdefs.h. */
3410#include <ac_nonexistent.h>
3411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003412if { (ac_try="$ac_cpp conftest.$ac_ext"
3413case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416esac
3417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } >/dev/null; then
3425 if test -s conftest.err; then
3426 ac_cpp_err=$ac_c_preproc_warn_flag
3427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428 else
3429 ac_cpp_err=
3430 fi
3431else
3432 ac_cpp_err=yes
3433fi
3434if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435 # Broken: success on invalid input.
3436continue
3437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003438 echo "$as_me: failed program was:" >&5
3439sed 's/^/| /' conftest.$ac_ext >&5
3440
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003441 # Passes both tests.
3442ac_preproc_ok=:
3443break
3444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003445
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003446rm -f conftest.err conftest.$ac_ext
3447
3448done
3449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3450rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003451if $ac_preproc_ok; then
3452 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003453else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003454 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3455See \`config.log' for more details." >&5
3456echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3457See \`config.log' for more details." >&2;}
3458 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003459fi
3460
John Criswell7a73b802003-06-30 21:59:07 +00003461ac_ext=c
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
John Criswell7a73b802003-06-30 21:59:07 +00003467
Eric Christopherffee5722011-09-16 20:36:25 +00003468
3469
3470if test -d ${srcdir}/projects/llvm-gcc ; then
3471 subdirs="$subdirs projects/llvm-gcc"
3472
3473fi
3474
3475if test -d ${srcdir}/projects/test-suite ; then
3476 subdirs="$subdirs projects/test-suite"
3477
3478fi
3479
3480if test -d ${srcdir}/projects/llvm-test ; then
3481 subdirs="$subdirs projects/llvm-test"
3482
3483fi
3484
3485if test -d ${srcdir}/projects/poolalloc ; then
3486 subdirs="$subdirs projects/poolalloc"
3487
3488fi
3489
3490if test -d ${srcdir}/projects/llvm-poolalloc ; then
3491 subdirs="$subdirs projects/llvm-poolalloc"
3492
3493fi
3494
3495for i in `ls ${srcdir}/projects`
3496do
3497 if test -d ${srcdir}/projects/${i} ; then
3498 case ${i} in
3499 sample) subdirs="$subdirs projects/sample"
3500 ;;
3501 privbracket) subdirs="$subdirs projects/privbracket"
3502 ;;
3503 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3504 ;;
3505 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3506;;
3507 llvm-java) subdirs="$subdirs projects/llvm-java"
3508 ;;
3509 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3510 ;;
3511 safecode) subdirs="$subdirs projects/safecode"
3512 ;;
3513 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3514 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003515 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003516 llvm-gcc) ;;
3517 test-suite) ;;
3518 llvm-test) ;;
3519 poolalloc) ;;
3520 llvm-poolalloc) ;;
3521 *)
3522 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3523echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3524 ;;
3525 esac
3526 fi
3527done
3528
3529# Check whether --enable-polly was given.
3530if test "${enable_polly+set}" = set; then
3531 enableval=$enable_polly;
3532else
3533 enableval=default
3534fi
3535
3536case "$enableval" in
3537 yes) ENABLE_POLLY=1
3538 ;;
3539 no) ENABLE_POLLY=0
3540 ;;
3541 default) ENABLE_POLLY=1
3542 ;;
3543 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3544echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3545 { (exit 1); exit 1; }; } ;;
3546esac
3547
3548
3549if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3550 LLVM_HAS_POLLY=1
3551
3552 subdirs="$subdirs tools/polly"
3553
3554fi
3555
3556
3557# Make sure we can run config.sub.
3558$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3559 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3560echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3561 { (exit 1); exit 1; }; }
3562
3563{ echo "$as_me:$LINENO: checking build system type" >&5
3564echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3565if test "${ac_cv_build+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
3568 ac_build_alias=$build_alias
3569test "x$ac_build_alias" = x &&
3570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3571test "x$ac_build_alias" = x &&
3572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3573echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3574 { (exit 1); exit 1; }; }
3575ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3576 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3577echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3578 { (exit 1); exit 1; }; }
3579
3580fi
3581{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3582echo "${ECHO_T}$ac_cv_build" >&6; }
3583case $ac_cv_build in
3584*-*-*) ;;
3585*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3586echo "$as_me: error: invalid value of canonical build" >&2;}
3587 { (exit 1); exit 1; }; };;
3588esac
3589build=$ac_cv_build
3590ac_save_IFS=$IFS; IFS='-'
3591set x $ac_cv_build
3592shift
3593build_cpu=$1
3594build_vendor=$2
3595shift; shift
3596# Remember, the first character of IFS is used to create $*,
3597# except with old shells:
3598build_os=$*
3599IFS=$ac_save_IFS
3600case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3601
3602
3603{ echo "$as_me:$LINENO: checking host system type" >&5
3604echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3605if test "${ac_cv_host+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608 if test "x$host_alias" = x; then
3609 ac_cv_host=$ac_cv_build
3610else
3611 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3612 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3613echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3614 { (exit 1); exit 1; }; }
3615fi
3616
3617fi
3618{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3619echo "${ECHO_T}$ac_cv_host" >&6; }
3620case $ac_cv_host in
3621*-*-*) ;;
3622*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3623echo "$as_me: error: invalid value of canonical host" >&2;}
3624 { (exit 1); exit 1; }; };;
3625esac
3626host=$ac_cv_host
3627ac_save_IFS=$IFS; IFS='-'
3628set x $ac_cv_host
3629shift
3630host_cpu=$1
3631host_vendor=$2
3632shift; shift
3633# Remember, the first character of IFS is used to create $*,
3634# except with old shells:
3635host_os=$*
3636IFS=$ac_save_IFS
3637case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3638
3639
3640{ echo "$as_me:$LINENO: checking target system type" >&5
3641echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3642if test "${ac_cv_target+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644else
3645 if test "x$target_alias" = x; then
3646 ac_cv_target=$ac_cv_host
3647else
3648 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3649 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3650echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3651 { (exit 1); exit 1; }; }
3652fi
3653
3654fi
3655{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3656echo "${ECHO_T}$ac_cv_target" >&6; }
3657case $ac_cv_target in
3658*-*-*) ;;
3659*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3660echo "$as_me: error: invalid value of canonical target" >&2;}
3661 { (exit 1); exit 1; }; };;
3662esac
3663target=$ac_cv_target
3664ac_save_IFS=$IFS; IFS='-'
3665set x $ac_cv_target
3666shift
3667target_cpu=$1
3668target_vendor=$2
3669shift; shift
3670# Remember, the first character of IFS is used to create $*,
3671# except with old shells:
3672target_os=$*
3673IFS=$ac_save_IFS
3674case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3675
3676
3677# The aliases save the names the user supplied, while $host etc.
3678# will get canonicalized.
3679test -n "$target_alias" &&
3680 test "$program_prefix$program_suffix$program_transform_name" = \
3681 NONENONEs,x,x, &&
3682 program_prefix=${target_alias}-
3683
3684{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3685echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3686if test "${llvm_cv_os_type+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688else
3689 case $host in
3690 *-*-aix*)
3691 llvm_cv_link_all_option="-Wl,--whole-archive"
3692 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693 llvm_cv_os_type="AIX"
3694 llvm_cv_platform_type="Unix" ;;
3695 *-*-irix*)
3696 llvm_cv_link_all_option="-Wl,--whole-archive"
3697 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3698 llvm_cv_os_type="IRIX"
3699 llvm_cv_platform_type="Unix" ;;
3700 *-*-cygwin*)
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="Cygwin"
3704 llvm_cv_platform_type="Unix" ;;
3705 *-*-darwin*)
3706 llvm_cv_link_all_option="-Wl,-all_load"
3707 llvm_cv_no_link_all_option="-Wl,-noall_load"
3708 llvm_cv_os_type="Darwin"
3709 llvm_cv_platform_type="Unix" ;;
3710 *-*-minix*)
3711 llvm_cv_link_all_option="-Wl,-all_load"
3712 llvm_cv_no_link_all_option="-Wl,-noall_load"
3713 llvm_cv_os_type="Minix"
3714 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003715 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="FreeBSD"
3719 llvm_cv_platform_type="Unix" ;;
3720 *-*-openbsd*)
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="OpenBSD"
3724 llvm_cv_platform_type="Unix" ;;
3725 *-*-netbsd*)
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="NetBSD"
3729 llvm_cv_platform_type="Unix" ;;
3730 *-*-dragonfly*)
3731 llvm_cv_link_all_option="-Wl,--whole-archive"
3732 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733 llvm_cv_os_type="DragonFly"
3734 llvm_cv_platform_type="Unix" ;;
3735 *-*-hpux*)
3736 llvm_cv_link_all_option="-Wl,--whole-archive"
3737 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738 llvm_cv_os_type="HP-UX"
3739 llvm_cv_platform_type="Unix" ;;
3740 *-*-interix*)
3741 llvm_cv_link_all_option="-Wl,--whole-archive"
3742 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3743 llvm_cv_os_type="Interix"
3744 llvm_cv_platform_type="Unix" ;;
3745 *-*-linux*)
3746 llvm_cv_link_all_option="-Wl,--whole-archive"
3747 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748 llvm_cv_os_type="Linux"
3749 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003750 *-*-gnu*)
3751 llvm_cv_link_all_option="-Wl,--whole-archive"
3752 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753 llvm_cv_os_type="GNU"
3754 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003755 *-*-solaris*)
3756 llvm_cv_link_all_option="-Wl,-z,allextract"
3757 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3758 llvm_cv_os_type="SunOS"
3759 llvm_cv_platform_type="Unix" ;;
3760 *-*-auroraux*)
3761 llvm_cv_link_all_option="-Wl,-z,allextract"
3762 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3763 llvm_cv_os_type="AuroraUX"
3764 llvm_cv_platform_type="Unix" ;;
3765 *-*-win32*)
3766 llvm_cv_link_all_option="-Wl,--whole-archive"
3767 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768 llvm_cv_os_type="Win32"
3769 llvm_cv_platform_type="Win32" ;;
3770 *-*-mingw*)
3771 llvm_cv_link_all_option="-Wl,--whole-archive"
3772 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773 llvm_cv_os_type="MingW"
3774 llvm_cv_platform_type="Win32" ;;
3775 *-*-haiku*)
3776 llvm_cv_link_all_option="-Wl,--whole-archive"
3777 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3778 llvm_cv_os_type="Haiku"
3779 llvm_cv_platform_type="Unix" ;;
3780 *-unknown-eabi*)
3781 llvm_cv_link_all_option="-Wl,--whole-archive"
3782 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3783 llvm_cv_os_type="Freestanding"
3784 llvm_cv_platform_type="Unix" ;;
3785 *-unknown-elf*)
3786 llvm_cv_link_all_option="-Wl,--whole-archive"
3787 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3788 llvm_cv_os_type="Freestanding"
3789 llvm_cv_platform_type="Unix" ;;
3790 *)
3791 llvm_cv_link_all_option=""
3792 llvm_cv_no_link_all_option=""
3793 llvm_cv_os_type="Unknown"
3794 llvm_cv_platform_type="Unknown" ;;
3795esac
3796fi
3797{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3798echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3799
3800{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3801echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3802if test "${llvm_cv_target_os_type+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805 case $target in
3806 *-*-aix*)
3807 llvm_cv_target_os_type="AIX" ;;
3808 *-*-irix*)
3809 llvm_cv_target_os_type="IRIX" ;;
3810 *-*-cygwin*)
3811 llvm_cv_target_os_type="Cygwin" ;;
3812 *-*-darwin*)
3813 llvm_cv_target_os_type="Darwin" ;;
3814 *-*-minix*)
3815 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003816 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003817 llvm_cv_target_os_type="FreeBSD" ;;
3818 *-*-openbsd*)
3819 llvm_cv_target_os_type="OpenBSD" ;;
3820 *-*-netbsd*)
3821 llvm_cv_target_os_type="NetBSD" ;;
3822 *-*-dragonfly*)
3823 llvm_cv_target_os_type="DragonFly" ;;
3824 *-*-hpux*)
3825 llvm_cv_target_os_type="HP-UX" ;;
3826 *-*-interix*)
3827 llvm_cv_target_os_type="Interix" ;;
3828 *-*-linux*)
3829 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003830 *-*-gnu*)
3831 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003832 *-*-solaris*)
3833 llvm_cv_target_os_type="SunOS" ;;
3834 *-*-auroraux*)
3835 llvm_cv_target_os_type="AuroraUX" ;;
3836 *-*-win32*)
3837 llvm_cv_target_os_type="Win32" ;;
3838 *-*-mingw*)
3839 llvm_cv_target_os_type="MingW" ;;
3840 *-*-haiku*)
3841 llvm_cv_target_os_type="Haiku" ;;
3842 *-*-rtems*)
3843 llvm_cv_target_os_type="RTEMS" ;;
3844 *-*-nacl*)
3845 llvm_cv_target_os_type="NativeClient" ;;
3846 *-unknown-eabi*)
3847 llvm_cv_target_os_type="Freestanding" ;;
3848 *)
3849 llvm_cv_target_os_type="Unknown" ;;
3850esac
3851fi
3852{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3853echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3854
3855if test "$llvm_cv_os_type" = "Unknown" ; then
3856 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3857echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3858 { (exit 1); exit 1; }; }
3859fi
3860
3861OS=$llvm_cv_os_type
3862
3863HOST_OS=$llvm_cv_os_type
3864
3865TARGET_OS=$llvm_cv_target_os_type
3866
3867
3868LINKALL=$llvm_cv_link_all_option
3869
3870NOLINKALL=$llvm_cv_no_link_all_option
3871
3872
3873case $llvm_cv_platform_type in
3874 Unix)
3875
3876cat >>confdefs.h <<\_ACEOF
3877#define LLVM_ON_UNIX 1
3878_ACEOF
3879
3880 LLVM_ON_UNIX=1
3881
3882 LLVM_ON_WIN32=0
3883
3884 ;;
3885 Win32)
3886
3887cat >>confdefs.h <<\_ACEOF
3888#define LLVM_ON_WIN32 1
3889_ACEOF
3890
3891 LLVM_ON_UNIX=0
3892
3893 LLVM_ON_WIN32=1
3894
3895 ;;
3896esac
3897
3898{ echo "$as_me:$LINENO: checking target architecture" >&5
3899echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3900if test "${llvm_cv_target_arch+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902else
3903 case $target in
3904 i?86-*) llvm_cv_target_arch="x86" ;;
3905 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3906 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3907 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003908 arm*-*) llvm_cv_target_arch="ARM" ;;
3909 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003910 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003911 xcore-*) llvm_cv_target_arch="XCore" ;;
3912 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003913 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003914 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003915 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003916 *) llvm_cv_target_arch="Unknown" ;;
3917esac
3918fi
3919{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3920echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3921
3922if test "$llvm_cv_target_arch" = "Unknown" ; then
3923 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3924echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3925fi
3926
Eric Christopherffee5722011-09-16 20:36:25 +00003927case "$llvm_cv_target_arch" in
3928 x86) LLVM_NATIVE_ARCH="X86" ;;
3929 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3930 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3931esac
3932
3933ARCH=$llvm_cv_target_arch
3934
3935
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003936case $host in
3937 i?86-*) host_arch="x86" ;;
3938 amd64-* | x86_64-*) host_arch="x86_64" ;;
3939 sparc*-*) host_arch="Sparc" ;;
3940 powerpc*-*) host_arch="PowerPC" ;;
3941 arm*-*) host_arch="ARM" ;;
3942 mips-*) host_arch="Mips" ;;
3943 mipsel-*) host_arch="Mips" ;;
3944 xcore-*) host_arch="XCore" ;;
3945 msp430-*) host_arch="MSP430" ;;
3946 hexagon-*) host_arch="Hexagon" ;;
3947 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003948 *) host_arch="Unknown" ;;
3949esac
3950
3951if test "$host_arch" = "Unknown" ; then
3952 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3953echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3954fi
3955
3956HOST_ARCH=$host_arch
3957
3958
Eric Christopherffee5722011-09-16 20:36:25 +00003959
3960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3962echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3963if test "${ac_cv_path_GREP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003966 # Extract the first word of "grep ggrep" to use in msg output
3967if test -z "$GREP"; then
3968set dummy grep ggrep; ac_prog_name=$2
3969if test "${ac_cv_path_GREP+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971else
Reid Spencera773bd52006-08-04 18:18:08 +00003972 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003973# Loop through the user's path and test for each of PROGNAME-LIST
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003975for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003976do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003979 for ac_prog in grep ggrep; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3983 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003984 # Check for GNU $ac_path_GREP
3985case `"$ac_path_GREP" --version 2>&1` in
3986*GNU*)
3987 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988*)
3989 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003990 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003991 while :
3992 do
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003996 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003997 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004000 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_GREP="$ac_path_GREP"
4003 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004004 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4007 done
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009esac
4010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004011
4012 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004013 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004014done
4015
4016done
Reid Spencera773bd52006-08-04 18:18:08 +00004017IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004018
4019
4020fi
4021
4022GREP="$ac_cv_path_GREP"
4023if test -z "$GREP"; then
4024 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026 { (exit 1); exit 1; }; }
4027fi
4028
Reid Spencera773bd52006-08-04 18:18:08 +00004029else
4030 ac_cv_path_GREP=$GREP
4031fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004033
Reid Spencera773bd52006-08-04 18:18:08 +00004034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004035{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4036echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004037 GREP="$ac_cv_path_GREP"
4038
4039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004040{ echo "$as_me:$LINENO: checking for egrep" >&5
4041echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4042if test "${ac_cv_path_EGREP+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004044else
4045 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046 then ac_cv_path_EGREP="$GREP -E"
4047 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004048 # Extract the first word of "egrep" to use in msg output
4049if test -z "$EGREP"; then
4050set dummy egrep; ac_prog_name=$2
4051if test "${ac_cv_path_EGREP+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053else
Reid Spencera773bd52006-08-04 18:18:08 +00004054 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004055# Loop through the user's path and test for each of PROGNAME-LIST
4056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004057for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058do
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004061 for ac_prog in egrep; do
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4065 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004066 # Check for GNU $ac_path_EGREP
4067case `"$ac_path_EGREP" --version 2>&1` in
4068*GNU*)
4069 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070*)
4071 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004072 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004073 while :
4074 do
4075 cat "conftest.in" "conftest.in" >"conftest.tmp"
4076 mv "conftest.tmp" "conftest.in"
4077 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004078 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004079 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004081 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004082 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083 # Best one so far, save it but keep looking for a better one
4084 ac_cv_path_EGREP="$ac_path_EGREP"
4085 ac_path_EGREP_max=$ac_count
4086 fi
4087 # 10*(2^10) chars as input seems more than enough
4088 test $ac_count -gt 10 && break
4089 done
4090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091esac
4092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004093
4094 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004095 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004096done
4097
4098done
Reid Spencera773bd52006-08-04 18:18:08 +00004099IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004100
4101
4102fi
4103
4104EGREP="$ac_cv_path_EGREP"
4105if test -z "$EGREP"; then
4106 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4107echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4108 { (exit 1); exit 1; }; }
4109fi
4110
Reid Spencera773bd52006-08-04 18:18:08 +00004111else
4112 ac_cv_path_EGREP=$EGREP
4113fi
4114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004115
Reid Spencera773bd52006-08-04 18:18:08 +00004116 fi
4117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004118{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4119echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004120 EGREP="$ac_cv_path_EGREP"
4121
4122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004123{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4124echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4125if test "${ac_cv_header_stdc+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004128 cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004133/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004134#include <stdlib.h>
4135#include <stdarg.h>
4136#include <string.h>
4137#include <float.h>
4138
John Criswell0c38eaf2003-09-10 15:17:25 +00004139int
4140main ()
4141{
4142
4143 ;
4144 return 0;
4145}
John Criswell7a73b802003-06-30 21:59:07 +00004146_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004147rm -f conftest.$ac_objext
4148if { (ac_try="$ac_compile"
4149case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
4153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_compile") 2>conftest.er1
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4162 { (case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165esac
4166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_try") 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175esac
4176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4177 (eval "$ac_try") 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004181 ac_cv_header_stdc=yes
4182else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004183 echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004188
Reid Spencera773bd52006-08-04 18:18:08 +00004189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004190
4191if test $ac_cv_header_stdc = yes; then
4192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004193 cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004199#include <string.h>
4200
4201_ACEOF
4202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203 $EGREP "memchr" >/dev/null 2>&1; then
4204 :
John Criswell7a73b802003-06-30 21:59:07 +00004205else
4206 ac_cv_header_stdc=no
4207fi
4208rm -f conftest*
4209
4210fi
4211
4212if test $ac_cv_header_stdc = yes; then
4213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004214 cat >conftest.$ac_ext <<_ACEOF
4215/* confdefs.h. */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004220#include <stdlib.h>
4221
4222_ACEOF
4223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004224 $EGREP "free" >/dev/null 2>&1; then
4225 :
John Criswell7a73b802003-06-30 21:59:07 +00004226else
4227 ac_cv_header_stdc=no
4228fi
4229rm -f conftest*
4230
4231fi
4232
4233if test $ac_cv_header_stdc = yes; then
4234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004235 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004236 :
4237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238 cat >conftest.$ac_ext <<_ACEOF
4239/* confdefs.h. */
4240_ACEOF
4241cat confdefs.h >>conftest.$ac_ext
4242cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004243/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004244#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004245#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004246#if ((' ' & 0x0FF) == 0x020)
4247# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4248# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4249#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004250# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004251 (('a' <= (c) && (c) <= 'i') \
4252 || ('j' <= (c) && (c) <= 'r') \
4253 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004254# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4255#endif
4256
4257#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4258int
4259main ()
4260{
4261 int i;
4262 for (i = 0; i < 256; i++)
4263 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004264 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004265 return 2;
4266 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004267}
4268_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004269rm -f conftest$ac_exeext
4270if { (ac_try="$ac_link"
4271case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_link") 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283esac
4284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 :
John Criswell7a73b802003-06-30 21:59:07 +00004290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291 echo "$as_me: program exited with status $ac_status" >&5
4292echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295( exit $ac_status )
4296ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004298rm -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 +00004299fi
4300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301
John Criswell7a73b802003-06-30 21:59:07 +00004302fi
4303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004304{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4305echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004306if test $ac_cv_header_stdc = yes; then
4307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004308cat >>confdefs.h <<\_ACEOF
4309#define STDC_HEADERS 1
4310_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004311
4312fi
4313
Reid Spencera773bd52006-08-04 18:18:08 +00004314# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004315
4316
4317
4318
4319
4320
4321
4322
4323
Reid Spencera773bd52006-08-04 18:18:08 +00004324for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4325 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004326do
4327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4328{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332else
4333 cat >conftest.$ac_ext <<_ACEOF
4334/* confdefs.h. */
4335_ACEOF
4336cat confdefs.h >>conftest.$ac_ext
4337cat >>conftest.$ac_ext <<_ACEOF
4338/* end confdefs.h. */
4339$ac_includes_default
4340
4341#include <$ac_header>
4342_ACEOF
4343rm -f conftest.$ac_objext
4344if { (ac_try="$ac_compile"
4345case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348esac
4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4358 { (case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361esac
4362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_try") 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371esac
4372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_try") 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 eval "$as_ac_Header=yes"
4378else
4379 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382 eval "$as_ac_Header=no"
4383fi
4384
4385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386fi
4387ac_res=`eval echo '${'$as_ac_Header'}'`
4388 { echo "$as_me:$LINENO: result: $ac_res" >&5
4389echo "${ECHO_T}$ac_res" >&6; }
4390if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004391 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004393_ACEOF
4394
4395fi
4396
4397done
4398
4399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4401echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4402if test "${ac_cv_c_bigendian+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004404else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405 # See if sys/param.h defines the BYTE_ORDER macro.
4406cat >conftest.$ac_ext <<_ACEOF
4407/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004408_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409cat confdefs.h >>conftest.$ac_ext
4410cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004411/* end confdefs.h. */
4412#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004414
4415int
4416main ()
4417{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004418#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4419 bogus endian macros
4420#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004421
4422 ;
4423 return 0;
4424}
4425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004426rm -f conftest.$ac_objext
4427if { (ac_try="$ac_compile"
4428case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431esac
4432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_compile") 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4441 { (case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444esac
4445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_try") 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; } &&
4450 { ac_try='test -s conftest.$ac_objext'
4451 { (case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454esac
4455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_try") 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004460 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h. */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004466/* end confdefs.h. */
4467#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004468#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004469
4470int
4471main ()
4472{
4473#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004474 not big endian
4475#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004476
4477 ;
4478 return 0;
4479}
4480_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004481rm -f conftest.$ac_objext
4482if { (ac_try="$ac_compile"
4483case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486esac
4487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_compile") 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4496 { (case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499esac
4500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_try") 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509esac
4510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004515 ac_cv_c_bigendian=yes
4516else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004517 echo "$as_me: failed program was:" >&5
4518sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004520 ac_cv_c_bigendian=no
4521fi
4522
4523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524else
4525 echo "$as_me: failed program was:" >&5
4526sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 # It does not; compile a test program.
4529if test "$cross_compiling" = yes; then
4530 # try to guess the endianness by grepping values into an object file
4531 ac_cv_c_bigendian=unknown
4532 cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h. */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h. */
4538short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4539short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4540void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4541short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4542short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4543void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004544int
4545main ()
4546{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004547 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004548 ;
4549 return 0;
4550}
4551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552rm -f conftest.$ac_objext
4553if { (ac_try="$ac_compile"
4554case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_compile") 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567 { (case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570esac
4571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_try") 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_try") 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004587 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004588fi
4589if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4590 if test "$ac_cv_c_bigendian" = unknown; then
4591 ac_cv_c_bigendian=no
4592 else
4593 # finding both strings is unlikely to happen, but who knows?
4594 ac_cv_c_bigendian=unknown
4595 fi
4596fi
Reid Spencera773bd52006-08-04 18:18:08 +00004597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004598 echo "$as_me: failed program was:" >&5
4599sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004601
Torok Edwin871384f2010-01-26 08:50:50 +00004602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603
Reid Spencera773bd52006-08-04 18:18:08 +00004604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606 cat >conftest.$ac_ext <<_ACEOF
4607/* confdefs.h. */
4608_ACEOF
4609cat confdefs.h >>conftest.$ac_ext
4610cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004611/* end confdefs.h. */
4612$ac_includes_default
4613int
4614main ()
4615{
4616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 /* Are we little or big endian? From Harbison&Steele. */
4618 union
4619 {
4620 long int l;
4621 char c[sizeof (long int)];
4622 } u;
4623 u.l = 1;
4624 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004625
4626 ;
4627 return 0;
4628}
4629_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004630rm -f conftest$ac_exeext
4631if { (ac_try="$ac_link"
4632case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635esac
4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_link") 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4641 { (case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644esac
4645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_try") 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004650 ac_cv_c_bigendian=no
4651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004652 echo "$as_me: program exited with status $ac_status" >&5
4653echo "$as_me: failed program was:" >&5
4654sed 's/^/| /' conftest.$ac_ext >&5
4655
4656( exit $ac_status )
4657ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004659rm -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 +00004660fi
4661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004662
Reid Spencera773bd52006-08-04 18:18:08 +00004663fi
4664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666fi
4667{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4668echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4669case $ac_cv_c_bigendian in
4670 yes)
4671 ENDIAN=big
4672 ;;
4673 no)
4674 ENDIAN=little
4675 ;;
4676 *)
4677 { { echo "$as_me:$LINENO: error: unknown endianness
4678presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4679echo "$as_me: error: unknown endianness
4680presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4681 { (exit 1); exit 1; }; } ;;
4682esac
Reid Spencera773bd52006-08-04 18:18:08 +00004683
4684
4685if test "$cross_compiling" = yes; then
4686 LLVM_CROSS_COMPILING=1
4687
4688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004689{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4690echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4691if test "${ac_cv_build_exeext+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004693else
4694 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4695 ac_cv_build_exeext=.exe
4696else
4697 ac_build_prefix=${build_alias}-
4698
4699 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4700set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004705else
4706 if test -n "$BUILD_CC"; then
4707 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 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 +00004716 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004718 break 2
4719 fi
4720done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004721done
Reid Spencera773bd52006-08-04 18:18:08 +00004722IFS=$as_save_IFS
4723
4724fi
4725fi
4726BUILD_CC=$ac_cv_prog_BUILD_CC
4727if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004728 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004731 { echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004733fi
4734
4735
4736 if test -z "$BUILD_CC"; then
4737 # Extract the first word of "gcc", so it can be a program name with args.
4738set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004743else
4744 if test -n "$BUILD_CC"; then
4745 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4746else
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 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 +00004754 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004756 break 2
4757 fi
4758done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004759done
Reid Spencera773bd52006-08-04 18:18:08 +00004760IFS=$as_save_IFS
4761
4762fi
4763fi
4764BUILD_CC=$ac_cv_prog_BUILD_CC
4765if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004766 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4767echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004769 { echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004771fi
4772
4773
4774 if test -z "$BUILD_CC"; then
4775 # Extract the first word of "cc", so it can be a program name with args.
4776set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004781else
4782 if test -n "$BUILD_CC"; then
4783 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4784else
4785 ac_prog_rejected=no
4786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 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 +00004793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4794 ac_prog_rejected=yes
4795 continue
4796 fi
4797 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004799 break 2
4800 fi
4801done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004802done
Reid Spencera773bd52006-08-04 18:18:08 +00004803IFS=$as_save_IFS
4804
4805if test $ac_prog_rejected = yes; then
4806 # We found a bogon in the path, so make sure we never use it.
4807 set dummy $ac_cv_prog_BUILD_CC
4808 shift
4809 if test $# != 0; then
4810 # We chose a different compiler from the bogus one.
4811 # However, it has the same basename, so the bogon will be chosen
4812 # first if we set BUILD_CC to just the basename; use the full file name.
4813 shift
4814 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4815 fi
4816fi
4817fi
4818fi
4819BUILD_CC=$ac_cv_prog_BUILD_CC
4820if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004821 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4822echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004823else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004824 { echo "$as_me:$LINENO: result: no" >&5
4825echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004826fi
4827
4828
4829 fi
4830 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4832echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4833 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004834 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4835 rm -f conftest*
4836 echo 'int main () { return 0; }' > conftest.$ac_ext
4837 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004838 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004839 (eval $ac_build_link) 2>&5
4840 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004843 for file in conftest.*; do
4844 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004845 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004846 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4847 esac
4848 done
4849 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4851echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4852 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004853 fi
4854 rm -f conftest*
4855 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4856fi
4857fi
4858
4859BUILD_EXEEXT=""
4860test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004861{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4862echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004863ac_build_exeext=$BUILD_EXEEXT
4864
Jim Grosbach673612e2008-10-02 22:56:44 +00004865 ac_build_prefix=${build_alias}-
4866 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4867set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004872else
4873 if test -n "$BUILD_CXX"; then
4874 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 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 +00004883 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004885 break 2
4886 fi
4887done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004888done
Jim Grosbach673612e2008-10-02 22:56:44 +00004889IFS=$as_save_IFS
4890
4891fi
4892fi
4893BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004895 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004898 { echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004900fi
4901
4902
4903 if test -z "$BUILD_CXX"; then
4904 # Extract the first word of "g++", so it can be a program name with args.
4905set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004910else
4911 if test -n "$BUILD_CXX"; then
4912 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4913else
4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915for as_dir in $PATH
4916do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 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 +00004921 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004923 break 2
4924 fi
4925done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004926done
Jim Grosbach673612e2008-10-02 22:56:44 +00004927IFS=$as_save_IFS
4928
4929fi
4930fi
4931BUILD_CXX=$ac_cv_prog_BUILD_CXX
4932if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004933 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4934echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004935else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004936 { echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004938fi
4939
4940
4941 if test -z "$BUILD_CXX"; then
4942 # Extract the first word of "c++", so it can be a program name with args.
4943set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004948else
4949 if test -n "$BUILD_CXX"; then
4950 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4951else
4952 ac_prog_rejected=no
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 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 +00004960 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4961 ac_prog_rejected=yes
4962 continue
4963 fi
4964 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004966 break 2
4967 fi
4968done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004969done
Jim Grosbach673612e2008-10-02 22:56:44 +00004970IFS=$as_save_IFS
4971
4972if test $ac_prog_rejected = yes; then
4973 # We found a bogon in the path, so make sure we never use it.
4974 set dummy $ac_cv_prog_BUILD_CXX
4975 shift
4976 if test $# != 0; then
4977 # We chose a different compiler from the bogus one.
4978 # However, it has the same basename, so the bogon will be chosen
4979 # first if we set BUILD_CXX to just the basename; use the full file name.
4980 shift
4981 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4982 fi
4983fi
4984fi
4985fi
4986BUILD_CXX=$ac_cv_prog_BUILD_CXX
4987if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004988 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4989echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004991 { echo "$as_me:$LINENO: result: no" >&5
4992echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004993fi
4994
4995
4996 fi
4997 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004998else
4999 LLVM_CROSS_COMPILING=0
5000
5001fi
5002
Dan Gohman56fb5f92010-08-04 16:25:01 +00005003if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005004 cvsbuild="yes"
5005 optimize="no"
5006 CVSBUILD=CVSBUILD=1
5007
5008else
5009 cvsbuild="no"
5010 optimize="yes"
5011fi
5012
5013
Eric Christopherbee515f2011-11-11 22:51:42 +00005014# Check whether --enable-libcpp was given.
5015if test "${enable_libcpp+set}" = set; then
5016 enableval=$enable_libcpp;
5017else
5018 enableval=default
5019fi
5020
5021case "$enableval" in
5022 yes) ENABLE_LIBCPP=1
5023 ;;
5024 no) ENABLE_LIBCPP=0
5025 ;;
5026 default) ENABLE_LIBCPP=0
5027;;
5028 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5029echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5030 { (exit 1); exit 1; }; } ;;
5031esac
5032
Eric Christopher82120022012-08-03 19:47:14 +00005033# Check whether --enable-cxx11 was given.
5034if test "${enable_cxx11+set}" = set; then
5035 enableval=$enable_cxx11;
5036else
5037 enableval=default
5038fi
5039
5040case "$enableval" in
5041 yes) ENABLE_CXX11=1
5042 ;;
5043 no) ENABLE_CXX11=0
5044 ;;
5045 default) ENABLE_CXX11=0
5046;;
5047 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5048echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5049 { (exit 1); exit 1; }; } ;;
5050esac
5051
Reid Spencera773bd52006-08-04 18:18:08 +00005052# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005053if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005054 enableval=$enable_optimized;
5055else
5056 enableval=$optimize
5057fi
5058
5059if test ${enableval} = "no" ; then
5060 ENABLE_OPTIMIZED=
5061
5062else
5063 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5064
5065fi
5066
David Greene2a5a12c2009-04-17 14:50:39 +00005067# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005068if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005069 enableval=$enable_profiling;
5070else
5071 enableval="no"
5072fi
5073
5074if test ${enableval} = "no" ; then
5075 ENABLE_PROFILING=
5076
5077else
5078 ENABLE_PROFILING=ENABLE_PROFILING=1
5079
5080fi
5081
Reid Spencera773bd52006-08-04 18:18:08 +00005082# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005083if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005084 enableval=$enable_assertions;
5085else
5086 enableval="yes"
5087fi
5088
5089if test ${enableval} = "yes" ; then
5090 DISABLE_ASSERTIONS=
5091
5092else
5093 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5094
5095fi
5096
Eric Christopher09a88732012-08-03 19:58:20 +00005097# Check whether --enable-werror was given.
5098if test "${enable_werror+set}" = set; then
5099 enableval=$enable_werror;
5100else
5101 enableval="no"
5102fi
5103
5104case "$enableval" in
5105 yes) ENABLE_WERROR=1
5106 ;;
5107 no) ENABLE_WERROR=0
5108 ;;
5109 default) ENABLE_WERROR=0
5110;;
5111 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5112echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5113 { (exit 1); exit 1; }; } ;;
5114esac
5115
David Greenea696d242007-06-28 19:36:08 +00005116# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005117if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005118 enableval=$enable_expensive_checks;
5119else
5120 enableval="no"
5121fi
5122
5123if test ${enableval} = "yes" ; then
5124 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5125
5126 EXPENSIVE_CHECKS=yes
5127
5128else
5129 ENABLE_EXPENSIVE_CHECKS=
5130
5131 EXPENSIVE_CHECKS=no
5132
5133fi
5134
Reid Spencer8b2e1412006-11-17 03:32:33 +00005135# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005136if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005137 enableval=$enable_debug_runtime;
5138else
5139 enableval=no
5140fi
5141
5142if test ${enableval} = "no" ; then
5143 DEBUG_RUNTIME=
5144
5145else
5146 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5147
5148fi
5149
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005150# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005151if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005152 enableval=$enable_debug_symbols;
5153else
5154 enableval=no
5155fi
5156
5157if test ${enableval} = "no" ; then
5158 DEBUG_SYMBOLS=
5159
5160else
5161 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5162
5163fi
5164
Daniel Dunbar7126ee02012-08-14 18:14:22 +00005165# Check whether --enable-keep-symbols was given.
5166if test "${enable_keep_symbols+set}" = set; then
5167 enableval=$enable_keep_symbols;
5168else
5169 enableval=no
5170fi
5171
5172if test ${enableval} = "no" ; then
5173 KEEP_SYMBOLS=
5174
5175else
5176 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5177
5178fi
5179
Reid Spencera773bd52006-08-04 18:18:08 +00005180# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005181if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005182 enableval=$enable_jit;
5183else
5184 enableval=default
5185fi
5186
5187if test ${enableval} = "no"
5188then
5189 JIT=
5190
5191else
5192 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005193 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005194 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005195 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005196 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005197 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005198 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005199 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005200 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005201 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005202 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005203 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005204 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005205 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005206 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005207 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005208 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005209 Hexagon) TARGET_HAS_JIT=0
5210 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005211 MBlaze) TARGET_HAS_JIT=0
5212 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005213 NVPTX) TARGET_HAS_JIT=0
5214 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005215 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005216 ;;
5217 esac
5218fi
5219
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005220# Check whether --enable-docs was given.
5221if test "${enable_docs+set}" = set; then
5222 enableval=$enable_docs;
5223else
5224 enableval=default
5225fi
5226
5227case "$enableval" in
5228 yes) ENABLE_DOCS=1
5229 ;;
5230 no) ENABLE_DOCS=0
5231 ;;
5232 default) ENABLE_DOCS=1
5233 ;;
5234 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5235echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5236 { (exit 1); exit 1; }; } ;;
5237esac
5238
Reid Spencera773bd52006-08-04 18:18:08 +00005239# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005240if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005241 enableval=$enable_doxygen;
5242else
5243 enableval=default
5244fi
5245
5246case "$enableval" in
5247 yes) ENABLE_DOXYGEN=1
5248 ;;
5249 no) ENABLE_DOXYGEN=0
5250 ;;
5251 default) ENABLE_DOXYGEN=0
5252 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5254echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005256esac
5257
5258# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005259if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005260 enableval=$enable_threads;
5261else
Reid Spencer65c5d752006-11-05 17:08:18 +00005262 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005263fi
5264
5265case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005266 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005267 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005268 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005269 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005270 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005271 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5273echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005275esac
5276
Owen Andersona8603702009-05-19 22:18:56 +00005277cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005278#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005279_ACEOF
5280
5281
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005282# Check whether --enable-pthreads was given.
5283if test "${enable_pthreads+set}" = set; then
5284 enableval=$enable_pthreads;
5285else
5286 enableval=default
5287fi
5288
5289case "$enableval" in
5290 yes) ENABLE_PTHREADS=1
5291 ;;
5292 no) ENABLE_PTHREADS=0
5293 ;;
5294 default) ENABLE_PTHREADS=1
5295 ;;
5296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5297echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5299esac
5300
Reid Spencer89b0d992006-12-16 22:07:52 +00005301# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005302if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005303 enableval=$enable_pic;
5304else
5305 enableval=default
5306fi
5307
5308case "$enableval" in
5309 yes) ENABLE_PIC=1
5310 ;;
5311 no) ENABLE_PIC=0
5312 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005313 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005314 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005315 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5316echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5317 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005318esac
5319
5320cat >>confdefs.h <<_ACEOF
5321#define ENABLE_PIC $ENABLE_PIC
5322_ACEOF
5323
5324
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005325# Check whether --enable-shared was given.
5326if test "${enable_shared+set}" = set; then
5327 enableval=$enable_shared;
5328else
5329 enableval=default
5330fi
5331
5332case "$enableval" in
5333 yes) ENABLE_SHARED=1
5334 ;;
5335 no) ENABLE_SHARED=0
5336 ;;
5337 default) ENABLE_SHARED=0
5338 ;;
5339 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5340echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5341 { (exit 1); exit 1; }; } ;;
5342esac
5343
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005344# Check whether --enable-embed-stdcxx was given.
5345if test "${enable_embed_stdcxx+set}" = set; then
5346 enableval=$enable_embed_stdcxx;
5347else
5348 enableval=default
5349fi
5350
5351case "$enableval" in
5352 yes) ENABLE_EMBED_STDCXX=1
5353 ;;
5354 no) ENABLE_EMBED_STDCXX=0
5355 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005356 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005357 ;;
5358 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5359echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5360 { (exit 1); exit 1; }; } ;;
5361esac
5362
Daniel Dunbardd464df2010-05-10 20:11:56 +00005363# Check whether --enable-timestamps was given.
5364if test "${enable_timestamps+set}" = set; then
5365 enableval=$enable_timestamps;
5366else
5367 enableval=default
5368fi
5369
5370case "$enableval" in
5371 yes) ENABLE_TIMESTAMPS=1
5372 ;;
5373 no) ENABLE_TIMESTAMPS=0
5374 ;;
5375 default) ENABLE_TIMESTAMPS=1
5376 ;;
5377 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5378echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5379 { (exit 1); exit 1; }; } ;;
5380esac
5381
5382cat >>confdefs.h <<_ACEOF
5383#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5384_ACEOF
5385
5386
Eric Christopherc69bdad2012-09-21 23:03:29 +00005387
5388# Check whether --enable-backtraces was given.
5389if test "${enable_backtraces+set}" = set; then
5390 enableval=$enable_backtraces;
5391else
5392 enableval=default
5393fi
5394
5395case "$enableval" in
5396 yes) ENABLE_TIMESTAMPS=1
5397 ;;
5398 no) ENABLE_TIMESTAMPS=0
5399 ;;
5400 default) ENABLE_TIMESTAMPS=1
5401 ;;
5402 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5403echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5404 { (exit 1); exit 1; }; } ;;
5405esac
5406
5407cat >>confdefs.h <<_ACEOF
5408#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5409_ACEOF
5410
5411
Reid Spencera773bd52006-08-04 18:18:08 +00005412TARGETS_TO_BUILD=""
5413# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005414if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005415 enableval=$enable_targets;
5416else
5417 enableval=all
5418fi
5419
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005420if test "$enableval" = host-only ; then
5421 enableval=host
5422fi
Reid Spencera773bd52006-08-04 18:18:08 +00005423case "$enableval" in
Tom Stellard38cda132012-07-16 18:19:46 +00005424 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005425 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5426 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005427 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5428 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5429 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5430 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005431 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5432 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005433 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005434 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005435 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5436 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005437 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005438 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005439 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005440 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005441 host) case "$llvm_cv_target_arch" in
5442 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5443 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5444 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5445 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005446 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5447 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005448 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005449 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005450 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5451 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005452 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005453 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005454 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5455echo "$as_me: error: Can not set target to build" >&2;}
5456 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005457 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005458 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5459echo "$as_me: error: Unrecognized target $a_target" >&2;}
5460 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005461 esac
5462 done
5463 ;;
5464esac
Victor Oliveira0e80e182012-08-09 01:13:59 +00005465
5466# Check whether --enable-experimental-targets was given.
5467if test "${enable_experimental_targets+set}" = set; then
5468 enableval=$enable_experimental_targets;
5469else
5470 enableval=disable
5471fi
5472
5473
5474if test ${enableval} != "disable"
5475then
5476 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5477fi
5478
Reid Spencera773bd52006-08-04 18:18:08 +00005479TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5480
5481
Douglas Gregor0711c302009-06-17 00:43:20 +00005482for a_target in $TARGETS_TO_BUILD; do
5483 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5484
5485cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005486#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5487_ACEOF
5488
5489 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5490 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005491 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005492 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005493 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5494 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5495 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005496 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5497 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5498 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005499
5500cat >>confdefs.h <<_ACEOF
5501#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005502_ACEOF
5503
5504
5505cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005506#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5507_ACEOF
5508
5509
5510cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005511#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005512_ACEOF
5513
5514
5515cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005516#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005517_ACEOF
5518
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005519 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005520
5521cat >>confdefs.h <<_ACEOF
5522#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5523_ACEOF
5524
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005525 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005526 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5527
5528cat >>confdefs.h <<_ACEOF
5529#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5530_ACEOF
5531
5532 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005533 fi
5534done
5535
Douglas Gregor1555a232009-06-16 20:12:29 +00005536LLVM_ENUM_TARGETS=""
5537LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005538LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005539LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005540for target_to_build in $TARGETS_TO_BUILD; do
5541 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005542 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005543 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5544 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005545 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5546 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5547 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005548 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5549 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5550 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005551done
5552
5553
5554
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005555
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005556
Reid Spencera773bd52006-08-04 18:18:08 +00005557
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005558# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005559if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005560 withval=$with_optimize_option;
5561else
5562 withval=default
5563fi
5564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005565{ echo "$as_me:$LINENO: checking optimization flags" >&5
5566echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005567case "$withval" in
5568 default)
5569 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005570 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005571 MingW) optimize_option=-O2 ;;
5572 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005573 esac ;;
5574 *) optimize_option="$withval" ;;
5575esac
5576OPTIMIZE_OPTION=$optimize_option
5577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005578{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5579echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005580
5581
Reid Spencera773bd52006-08-04 18:18:08 +00005582# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005583if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005584 withval=$with_extra_options;
5585else
5586 withval=default
5587fi
5588
5589case "$withval" in
5590 default) EXTRA_OPTIONS= ;;
5591 *) EXTRA_OPTIONS=$withval ;;
5592esac
5593EXTRA_OPTIONS=$EXTRA_OPTIONS
5594
5595
Daniel Dunbared344d22011-06-16 22:30:41 +00005596
5597# Check whether --with-extra-ld-options was given.
5598if test "${with_extra_ld_options+set}" = set; then
5599 withval=$with_extra_ld_options;
5600else
5601 withval=default
5602fi
5603
5604case "$withval" in
5605 default) EXTRA_LD_OPTIONS= ;;
5606 *) EXTRA_LD_OPTIONS=$withval ;;
5607esac
5608EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5609
5610
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005611# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005612if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005613 enableval=$enable_bindings;
5614else
5615 enableval=default
5616fi
5617
5618BINDINGS_TO_BUILD=""
5619case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005620 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005621 all ) BINDINGS_TO_BUILD="ocaml" ;;
5622 none | no) BINDINGS_TO_BUILD="" ;;
5623 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5624 case "$a_binding" in
5625 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005626 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5627echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5628 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005629 esac
5630 done
5631 ;;
5632esac
5633
Reid Spencera773bd52006-08-04 18:18:08 +00005634
Gordon Henriksenf0915682007-10-02 16:42:22 +00005635# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005636if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005637 withval=$with_ocaml_libdir;
5638else
5639 withval=auto
5640fi
5641
5642case "$withval" in
5643 auto) with_ocaml_libdir="$withval" ;;
5644 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005645 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5646echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5647 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005648esac
5649
5650
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005651# Check whether --with-clang-srcdir was given.
5652if test "${with_clang_srcdir+set}" = set; then
5653 withval=$with_clang_srcdir;
5654else
5655 withval="-"
5656fi
5657
5658case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005659 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005660 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5661 *) clang_src_root="$ac_pwd/$withval" ;;
5662esac
5663CLANG_SRC_ROOT=$clang_src_root
5664
5665
5666
Chandler Carruth6b241162010-10-19 08:21:25 +00005667# Check whether --with-clang-resource-dir was given.
5668if test "${with_clang_resource_dir+set}" = set; then
5669 withval=$with_clang_resource_dir;
5670else
5671 withval=""
5672fi
5673
5674
5675cat >>confdefs.h <<_ACEOF
5676#define CLANG_RESOURCE_DIR "$withval"
5677_ACEOF
5678
5679
5680
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005681# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005682if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005683 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005684else
5685 withval=""
5686fi
5687
5688
5689cat >>confdefs.h <<_ACEOF
5690#define C_INCLUDE_DIRS "$withval"
5691_ACEOF
5692
5693
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005694# Clang normally uses the system c++ headers and libraries. With this option,
5695# clang will use the ones provided by a gcc installation instead. This option should
5696# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005697
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005698# Check whether --with-gcc-toolchain was given.
5699if test "${with_gcc_toolchain+set}" = set; then
5700 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005701else
5702 withval=""
5703fi
5704
5705
5706cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005707#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005708_ACEOF
5709
5710
5711
Sebastian Pope4f1b372012-04-30 20:06:58 +00005712# Check whether --with-default-sysroot was given.
5713if test "${with_default_sysroot+set}" = set; then
5714 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005715else
5716 withval=""
5717fi
5718
5719
5720cat >>confdefs.h <<_ACEOF
5721#define DEFAULT_SYSROOT "$withval"
5722_ACEOF
5723
5724
5725
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005726# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005727if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005728 withval=$with_binutils_include;
5729else
5730 withval=default
5731fi
5732
5733case "$withval" in
5734 default) WITH_BINUTILS_INCDIR=default ;;
5735 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005736 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5737echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5738 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005739esac
5740if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5741 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5742
5743 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5744 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005745 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5746echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5747 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005748 fi
5749fi
5750
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005751
5752# Check whether --with-bug-report-url was given.
5753if test "${with_bug_report_url+set}" = set; then
5754 withval=$with_bug_report_url;
5755else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005756 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005757fi
5758
5759
5760cat >>confdefs.h <<_ACEOF
5761#define BUG_REPORT_URL "$withval"
5762_ACEOF
5763
5764
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005765# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005766if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005767 enableval=$enable_libffi; case "$enableval" in
5768 yes) llvm_cv_enable_libffi="yes" ;;
5769 no) llvm_cv_enable_libffi="no" ;;
5770 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005771echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5772 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005773 esac
5774else
5775 llvm_cv_enable_libffi=no
5776fi
5777
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005778
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005779
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005780# Check whether --with-internal-prefix was given.
5781if test "${with_internal_prefix+set}" = set; then
5782 withval=$with_internal_prefix;
5783else
5784 withval=""
5785fi
5786
5787INTERNAL_PREFIX=$withval
5788
5789
5790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005791{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5792echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5793if test "${lt_cv_path_NM+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005795else
5796 if test -n "$NM"; then
5797 # Let the user override the test.
5798 lt_cv_path_NM="$NM"
5799else
5800 lt_nm_to_check="${ac_tool_prefix}nm"
5801 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5802 lt_nm_to_check="$lt_nm_to_check nm"
5803 fi
5804 for lt_tmp_nm in $lt_nm_to_check; do
5805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5806 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5807 IFS="$lt_save_ifs"
5808 test -z "$ac_dir" && ac_dir=.
5809 tmp_nm="$ac_dir/$lt_tmp_nm"
5810 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5811 # Check to see if the nm accepts a BSD-compat flag.
5812 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5813 # nm: unknown option "B" ignored
5814 # Tru64's nm complains that /dev/null is an invalid object file
5815 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5816 */dev/null* | *'Invalid file or object type'*)
5817 lt_cv_path_NM="$tmp_nm -B"
5818 break
5819 ;;
5820 *)
5821 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5822 */dev/null*)
5823 lt_cv_path_NM="$tmp_nm -p"
5824 break
5825 ;;
5826 *)
5827 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5828 continue # so that we can try to find one that supports BSD flags
5829 ;;
5830 esac
5831 ;;
5832 esac
5833 fi
5834 done
5835 IFS="$lt_save_ifs"
5836 done
5837 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5838fi
5839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005840{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5841echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005842NM="$lt_cv_path_NM"
5843
5844
5845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005846{ echo "$as_me:$LINENO: checking for GNU make" >&5
5847echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5848if test "${llvm_cv_gnu_make_command+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005850else
5851 llvm_cv_gnu_make_command=''
5852 for a in "$MAKE" make gmake gnumake ; do
5853 if test -z "$a" ; then continue ; fi ;
5854 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5855 then
5856 llvm_cv_gnu_make_command=$a ;
5857 break;
5858 fi
5859 done
5860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005861{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5862echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005863 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5864 ifGNUmake='' ;
5865 else
5866 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005867 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5868echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005869 fi
5870
5871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5873echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005874LN_S=$as_ln_s
5875if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876 { echo "$as_me:$LINENO: result: yes" >&5
5877echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005878else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005879 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5880echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005881fi
5882
5883# Extract the first word of "cmp", so it can be a program name with args.
5884set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887if test "${ac_cv_path_CMP+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005889else
5890 case $CMP in
5891 [\\/]* | ?:[\\/]*)
5892 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5893 ;;
5894 *)
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 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 +00005902 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005904 break 2
5905 fi
5906done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005907done
Reid Spencera773bd52006-08-04 18:18:08 +00005908IFS=$as_save_IFS
5909
5910 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5911 ;;
5912esac
5913fi
5914CMP=$ac_cv_path_CMP
5915if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005916 { echo "$as_me:$LINENO: result: $CMP" >&5
5917echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005919 { echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005921fi
5922
5923
5924# Extract the first word of "cp", so it can be a program name with args.
5925set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928if test "${ac_cv_path_CP+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005930else
5931 case $CP in
5932 [\\/]* | ?:[\\/]*)
5933 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5934 ;;
5935 *)
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 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 +00005943 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005945 break 2
5946 fi
5947done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005948done
Reid Spencera773bd52006-08-04 18:18:08 +00005949IFS=$as_save_IFS
5950
5951 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5952 ;;
5953esac
5954fi
5955CP=$ac_cv_path_CP
5956if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005957 { echo "$as_me:$LINENO: result: $CP" >&5
5958echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005960 { echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005962fi
5963
5964
5965# Extract the first word of "date", so it can be a program name with args.
5966set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969if test "${ac_cv_path_DATE+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005971else
5972 case $DATE in
5973 [\\/]* | ?:[\\/]*)
5974 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5975 ;;
5976 *)
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 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 +00005984 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005986 break 2
5987 fi
5988done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005989done
Reid Spencera773bd52006-08-04 18:18:08 +00005990IFS=$as_save_IFS
5991
5992 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5993 ;;
5994esac
5995fi
5996DATE=$ac_cv_path_DATE
5997if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005998 { echo "$as_me:$LINENO: result: $DATE" >&5
5999echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006000else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006001 { echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006003fi
6004
6005
6006# Extract the first word of "find", so it can be a program name with args.
6007set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6010if test "${ac_cv_path_FIND+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006012else
6013 case $FIND in
6014 [\\/]* | ?:[\\/]*)
6015 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6016 ;;
6017 *)
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 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 +00006025 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006027 break 2
6028 fi
6029done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006030done
Reid Spencera773bd52006-08-04 18:18:08 +00006031IFS=$as_save_IFS
6032
6033 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6034 ;;
6035esac
6036fi
6037FIND=$ac_cv_path_FIND
6038if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006039 { echo "$as_me:$LINENO: result: $FIND" >&5
6040echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006041else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006042 { echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006044fi
6045
6046
6047# Extract the first word of "grep", so it can be a program name with args.
6048set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051if test "${ac_cv_path_GREP+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006053else
6054 case $GREP in
6055 [\\/]* | ?:[\\/]*)
6056 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6057 ;;
6058 *)
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 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 +00006066 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006068 break 2
6069 fi
6070done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006071done
Reid Spencera773bd52006-08-04 18:18:08 +00006072IFS=$as_save_IFS
6073
6074 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6075 ;;
6076esac
6077fi
6078GREP=$ac_cv_path_GREP
6079if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006080 { echo "$as_me:$LINENO: result: $GREP" >&5
6081echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083 { echo "$as_me:$LINENO: result: no" >&5
6084echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006085fi
6086
6087
6088# Extract the first word of "mkdir", so it can be a program name with args.
6089set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092if test "${ac_cv_path_MKDIR+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006094else
6095 case $MKDIR in
6096 [\\/]* | ?:[\\/]*)
6097 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6098 ;;
6099 *)
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 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 +00006107 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006109 break 2
6110 fi
6111done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006112done
Reid Spencera773bd52006-08-04 18:18:08 +00006113IFS=$as_save_IFS
6114
6115 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6116 ;;
6117esac
6118fi
6119MKDIR=$ac_cv_path_MKDIR
6120if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006121 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6122echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006124 { echo "$as_me:$LINENO: result: no" >&5
6125echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006126fi
6127
6128
6129# Extract the first word of "mv", so it can be a program name with args.
6130set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133if test "${ac_cv_path_MV+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006135else
6136 case $MV in
6137 [\\/]* | ?:[\\/]*)
6138 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6139 ;;
6140 *)
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 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 +00006148 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006150 break 2
6151 fi
6152done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006153done
Reid Spencera773bd52006-08-04 18:18:08 +00006154IFS=$as_save_IFS
6155
6156 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6157 ;;
6158esac
6159fi
6160MV=$ac_cv_path_MV
6161if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006162 { echo "$as_me:$LINENO: result: $MV" >&5
6163echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165 { echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006167fi
6168
6169
6170if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6172set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175if test "${ac_cv_prog_RANLIB+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006177else
6178 if test -n "$RANLIB"; then
6179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 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 +00006188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006190 break 2
6191 fi
6192done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193done
Reid Spencera773bd52006-08-04 18:18:08 +00006194IFS=$as_save_IFS
6195
6196fi
6197fi
6198RANLIB=$ac_cv_prog_RANLIB
6199if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6201echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203 { echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006205fi
6206
6207
6208fi
6209if test -z "$ac_cv_prog_RANLIB"; then
6210 ac_ct_RANLIB=$RANLIB
6211 # Extract the first word of "ranlib", so it can be a program name with args.
6212set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006217else
6218 if test -n "$ac_ct_RANLIB"; then
6219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 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 +00006228 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006230 break 2
6231 fi
6232done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233done
Reid Spencera773bd52006-08-04 18:18:08 +00006234IFS=$as_save_IFS
6235
6236fi
6237fi
6238ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6239if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6241echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243 { echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006245fi
6246
6247 if test "x$ac_ct_RANLIB" = x; then
6248 RANLIB=":"
6249 else
6250 case $cross_compiling:$ac_tool_warned in
6251yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6253whose name does not start with the host triplet. If you think this
6254configuration is useful to you, please write to autoconf@gnu.org." >&5
6255echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6256whose name does not start with the host triplet. If you think this
6257configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006258ac_tool_warned=yes ;;
6259esac
6260 RANLIB=$ac_ct_RANLIB
6261 fi
6262else
6263 RANLIB="$ac_cv_prog_RANLIB"
6264fi
6265
Torok Edwin871384f2010-01-26 08:50:50 +00006266if test -n "$ac_tool_prefix"; then
6267 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6268set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271if test "${ac_cv_prog_AR+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006273else
6274 if test -n "$AR"; then
6275 ac_cv_prog_AR="$AR" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 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 +00006284 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006286 break 2
6287 fi
6288done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006289done
Torok Edwin871384f2010-01-26 08:50:50 +00006290IFS=$as_save_IFS
6291
6292fi
6293fi
6294AR=$ac_cv_prog_AR
6295if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006296 { echo "$as_me:$LINENO: result: $AR" >&5
6297echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006298else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006299 { echo "$as_me:$LINENO: result: no" >&5
6300echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006301fi
6302
6303
6304fi
6305if test -z "$ac_cv_prog_AR"; then
6306 ac_ct_AR=$AR
6307 # Extract the first word of "ar", so it can be a program name with args.
6308set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006313else
6314 if test -n "$ac_ct_AR"; then
6315 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 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 +00006324 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006326 break 2
6327 fi
6328done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006329done
Torok Edwin871384f2010-01-26 08:50:50 +00006330IFS=$as_save_IFS
6331
6332fi
6333fi
6334ac_ct_AR=$ac_cv_prog_ac_ct_AR
6335if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006336 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6337echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006339 { echo "$as_me:$LINENO: result: no" >&5
6340echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006341fi
6342
6343 if test "x$ac_ct_AR" = x; then
6344 AR="false"
6345 else
6346 case $cross_compiling:$ac_tool_warned in
6347yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6349whose name does not start with the host triplet. If you think this
6350configuration is useful to you, please write to autoconf@gnu.org." >&5
6351echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6352whose name does not start with the host triplet. If you think this
6353configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006354ac_tool_warned=yes ;;
6355esac
6356 AR=$ac_ct_AR
6357 fi
6358else
6359 AR="$ac_cv_prog_AR"
6360fi
6361
Reid Spencera773bd52006-08-04 18:18:08 +00006362# Extract the first word of "rm", so it can be a program name with args.
6363set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6366if test "${ac_cv_path_RM+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006368else
6369 case $RM in
6370 [\\/]* | ?:[\\/]*)
6371 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6372 ;;
6373 *)
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375for as_dir in $PATH
6376do
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 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 +00006381 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006383 break 2
6384 fi
6385done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006386done
Reid Spencera773bd52006-08-04 18:18:08 +00006387IFS=$as_save_IFS
6388
6389 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6390 ;;
6391esac
6392fi
6393RM=$ac_cv_path_RM
6394if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006395 { echo "$as_me:$LINENO: result: $RM" >&5
6396echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006397else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006398 { echo "$as_me:$LINENO: result: no" >&5
6399echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006400fi
6401
6402
6403# Extract the first word of "sed", so it can be a program name with args.
6404set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407if test "${ac_cv_path_SED+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006409else
6410 case $SED in
6411 [\\/]* | ?:[\\/]*)
6412 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6413 ;;
6414 *)
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 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 +00006422 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006424 break 2
6425 fi
6426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427done
Reid Spencera773bd52006-08-04 18:18:08 +00006428IFS=$as_save_IFS
6429
6430 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6431 ;;
6432esac
6433fi
6434SED=$ac_cv_path_SED
6435if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006436 { echo "$as_me:$LINENO: result: $SED" >&5
6437echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006439 { echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006441fi
6442
6443
6444# Extract the first word of "tar", so it can be a program name with args.
6445set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6448if test "${ac_cv_path_TAR+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006450else
6451 case $TAR in
6452 [\\/]* | ?:[\\/]*)
6453 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6454 ;;
6455 *)
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 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 +00006463 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006465 break 2
6466 fi
6467done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006468done
Reid Spencera773bd52006-08-04 18:18:08 +00006469IFS=$as_save_IFS
6470
6471 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6472 ;;
6473esac
6474fi
6475TAR=$ac_cv_path_TAR
6476if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006477 { echo "$as_me:$LINENO: result: $TAR" >&5
6478echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006479else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480 { echo "$as_me:$LINENO: result: no" >&5
6481echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006482fi
6483
6484
6485# Extract the first word of "pwd", so it can be a program name with args.
6486set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489if test "${ac_cv_path_BINPWD+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006491else
6492 case $BINPWD in
6493 [\\/]* | ?:[\\/]*)
6494 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6495 ;;
6496 *)
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 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 +00006504 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006506 break 2
6507 fi
6508done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509done
Reid Spencera773bd52006-08-04 18:18:08 +00006510IFS=$as_save_IFS
6511
6512 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6513 ;;
6514esac
6515fi
6516BINPWD=$ac_cv_path_BINPWD
6517if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006518 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6519echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006521 { echo "$as_me:$LINENO: result: no" >&5
6522echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006523fi
6524
6525
6526
6527# Extract the first word of "Graphviz", so it can be a program name with args.
6528set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006533else
6534 case $GRAPHVIZ in
6535 [\\/]* | ?:[\\/]*)
6536 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6537 ;;
6538 *)
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 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 +00006546 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006548 break 2
6549 fi
6550done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006551done
Reid Spencera773bd52006-08-04 18:18:08 +00006552IFS=$as_save_IFS
6553
6554 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6555 ;;
6556esac
6557fi
6558GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6559if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006560 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6561echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006563 { echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006565fi
6566
6567
6568if test "$GRAPHVIZ" != "echo Graphviz" ; then
6569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006570cat >>confdefs.h <<\_ACEOF
6571#define HAVE_GRAPHVIZ 1
6572_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006573
Jeff Cohen28783c32007-01-12 18:22:38 +00006574 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006575 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6576 fi
6577
6578cat >>confdefs.h <<_ACEOF
6579#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6580_ACEOF
6581
6582fi
6583# Extract the first word of "dot", so it can be a program name with args.
6584set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587if test "${ac_cv_path_DOT+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006589else
6590 case $DOT in
6591 [\\/]* | ?:[\\/]*)
6592 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6593 ;;
6594 *)
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 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 +00006602 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006604 break 2
6605 fi
6606done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006607done
Reid Spencera773bd52006-08-04 18:18:08 +00006608IFS=$as_save_IFS
6609
6610 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6611 ;;
6612esac
6613fi
6614DOT=$ac_cv_path_DOT
6615if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006616 { echo "$as_me:$LINENO: result: $DOT" >&5
6617echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006619 { echo "$as_me:$LINENO: result: no" >&5
6620echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006621fi
6622
6623
6624if test "$DOT" != "echo dot" ; then
6625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006626cat >>confdefs.h <<\_ACEOF
6627#define HAVE_DOT 1
6628_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006629
Jeff Cohen28783c32007-01-12 18:22:38 +00006630 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006631 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6632 fi
6633
6634cat >>confdefs.h <<_ACEOF
6635#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6636_ACEOF
6637
6638fi
David Greenef0b9eff2009-07-09 17:16:26 +00006639# Extract the first word of "fdp", so it can be a program name with args.
6640set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643if test "${ac_cv_path_FDP+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006645else
6646 case $FDP in
6647 [\\/]* | ?:[\\/]*)
6648 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6649 ;;
6650 *)
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 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 +00006658 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006660 break 2
6661 fi
6662done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006663done
David Greenef0b9eff2009-07-09 17:16:26 +00006664IFS=$as_save_IFS
6665
6666 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6667 ;;
6668esac
6669fi
6670FDP=$ac_cv_path_FDP
6671if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006672 { echo "$as_me:$LINENO: result: $FDP" >&5
6673echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006675 { echo "$as_me:$LINENO: result: no" >&5
6676echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006677fi
6678
6679
6680if test "$FDP" != "echo fdp" ; then
6681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006682cat >>confdefs.h <<\_ACEOF
6683#define HAVE_FDP 1
6684_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006685
6686 if test "$llvm_cv_os_type" = "MingW" ; then
6687 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6688 fi
6689
6690cat >>confdefs.h <<_ACEOF
6691#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6692_ACEOF
6693
6694fi
6695# Extract the first word of "neato", so it can be a program name with args.
6696set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699if test "${ac_cv_path_NEATO+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006701else
6702 case $NEATO in
6703 [\\/]* | ?:[\\/]*)
6704 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6705 ;;
6706 *)
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 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 +00006714 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006716 break 2
6717 fi
6718done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719done
David Greenef0b9eff2009-07-09 17:16:26 +00006720IFS=$as_save_IFS
6721
6722 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6723 ;;
6724esac
6725fi
6726NEATO=$ac_cv_path_NEATO
6727if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728 { echo "$as_me:$LINENO: result: $NEATO" >&5
6729echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731 { echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006733fi
6734
6735
6736if test "$NEATO" != "echo neato" ; then
6737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006738cat >>confdefs.h <<\_ACEOF
6739#define HAVE_NEATO 1
6740_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006741
6742 if test "$llvm_cv_os_type" = "MingW" ; then
6743 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6744 fi
6745
6746cat >>confdefs.h <<_ACEOF
6747#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6748_ACEOF
6749
6750fi
6751# Extract the first word of "twopi", so it can be a program name with args.
6752set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755if test "${ac_cv_path_TWOPI+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006757else
6758 case $TWOPI in
6759 [\\/]* | ?:[\\/]*)
6760 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6761 ;;
6762 *)
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 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 +00006770 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006772 break 2
6773 fi
6774done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006775done
David Greenef0b9eff2009-07-09 17:16:26 +00006776IFS=$as_save_IFS
6777
6778 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6779 ;;
6780esac
6781fi
6782TWOPI=$ac_cv_path_TWOPI
6783if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6785echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006786else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006787 { echo "$as_me:$LINENO: result: no" >&5
6788echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006789fi
6790
6791
6792if test "$TWOPI" != "echo twopi" ; then
6793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006794cat >>confdefs.h <<\_ACEOF
6795#define HAVE_TWOPI 1
6796_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006797
6798 if test "$llvm_cv_os_type" = "MingW" ; then
6799 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800 fi
6801
6802cat >>confdefs.h <<_ACEOF
6803#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6804_ACEOF
6805
6806fi
6807# Extract the first word of "circo", so it can be a program name with args.
6808set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811if test "${ac_cv_path_CIRCO+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006813else
6814 case $CIRCO in
6815 [\\/]* | ?:[\\/]*)
6816 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6817 ;;
6818 *)
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 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 +00006826 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006828 break 2
6829 fi
6830done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006831done
David Greenef0b9eff2009-07-09 17:16:26 +00006832IFS=$as_save_IFS
6833
6834 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6835 ;;
6836esac
6837fi
6838CIRCO=$ac_cv_path_CIRCO
6839if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6841echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843 { echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006845fi
6846
6847
6848if test "$CIRCO" != "echo circo" ; then
6849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850cat >>confdefs.h <<\_ACEOF
6851#define HAVE_CIRCO 1
6852_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006853
6854 if test "$llvm_cv_os_type" = "MingW" ; then
6855 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6856 fi
6857
6858cat >>confdefs.h <<_ACEOF
6859#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6860_ACEOF
6861
6862fi
Reid Spencera773bd52006-08-04 18:18:08 +00006863for ac_prog in gv gsview32
6864do
6865 # Extract the first word of "$ac_prog", so it can be a program name with args.
6866set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869if test "${ac_cv_path_GV+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006871else
6872 case $GV in
6873 [\\/]* | ?:[\\/]*)
6874 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6875 ;;
6876 *)
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 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 +00006884 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006886 break 2
6887 fi
6888done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006889done
Reid Spencera773bd52006-08-04 18:18:08 +00006890IFS=$as_save_IFS
6891
6892 ;;
6893esac
6894fi
6895GV=$ac_cv_path_GV
6896if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897 { echo "$as_me:$LINENO: result: $GV" >&5
6898echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006902fi
6903
6904
6905 test -n "$GV" && break
6906done
6907test -n "$GV" || GV="echo gv"
6908
6909if test "$GV" != "echo gv" ; then
6910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006911cat >>confdefs.h <<\_ACEOF
6912#define HAVE_GV 1
6913_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006914
Jeff Cohen28783c32007-01-12 18:22:38 +00006915 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006916 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6917 fi
6918
6919cat >>confdefs.h <<_ACEOF
6920#define LLVM_PATH_GV "$GV${EXEEXT}"
6921_ACEOF
6922
6923fi
6924# Extract the first word of "dotty", so it can be a program name with args.
6925set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928if test "${ac_cv_path_DOTTY+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006930else
6931 case $DOTTY in
6932 [\\/]* | ?:[\\/]*)
6933 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6934 ;;
6935 *)
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 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 +00006943 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006945 break 2
6946 fi
6947done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006948done
Reid Spencera773bd52006-08-04 18:18:08 +00006949IFS=$as_save_IFS
6950
6951 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6952 ;;
6953esac
6954fi
6955DOTTY=$ac_cv_path_DOTTY
6956if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6958echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006962fi
6963
6964
6965if test "$DOTTY" != "echo dotty" ; then
6966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967cat >>confdefs.h <<\_ACEOF
6968#define HAVE_DOTTY 1
6969_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006970
Jeff Cohen28783c32007-01-12 18:22:38 +00006971 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006972 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6973 fi
6974
6975cat >>confdefs.h <<_ACEOF
6976#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6977_ACEOF
6978
6979fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006980# Extract the first word of "xdot.py", so it can be a program name with args.
6981set dummy xdot.py; ac_word=$2
6982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984if test "${ac_cv_path_XDOT_PY+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986else
6987 case $XDOT_PY in
6988 [\\/]* | ?:[\\/]*)
6989 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6990 ;;
6991 *)
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003done
7004done
7005IFS=$as_save_IFS
7006
7007 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7008 ;;
7009esac
7010fi
7011XDOT_PY=$ac_cv_path_XDOT_PY
7012if test -n "$XDOT_PY"; then
7013 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7014echo "${ECHO_T}$XDOT_PY" >&6; }
7015else
7016 { echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6; }
7018fi
7019
7020
7021if test "$XDOT_PY" != "echo xdot.py" ; then
7022
7023cat >>confdefs.h <<\_ACEOF
7024#define HAVE_XDOT_PY 1
7025_ACEOF
7026
7027 if test "$llvm_cv_os_type" = "MingW" ; then
7028 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7029 fi
7030
7031cat >>confdefs.h <<_ACEOF
7032#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7033_ACEOF
7034
7035fi
Reid Spencera773bd52006-08-04 18:18:08 +00007036
Reid Spencera773bd52006-08-04 18:18:08 +00007037# Find a good install program. We prefer a C program (faster),
7038# so one script is as good as another. But avoid the broken or
7039# incompatible versions:
7040# SysV /etc/install, /usr/sbin/install
7041# SunOS /usr/etc/install
7042# IRIX /sbin/install
7043# AIX /bin/install
7044# AmigaOS /C/install, which installs bootblocks on floppy discs
7045# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7046# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7047# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7048# OS/2's system install, which has a completely different semantic
7049# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007050{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7051echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007052if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007053if test "${ac_cv_path_install+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007055else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061 # Account for people who put trailing slashes in PATH elements.
7062case $as_dir/ in
7063 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007064 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007065 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007066 /usr/ucb/* ) ;;
7067 *)
7068 # OSF1 and SCO ODT 3.0 have their own names for install.
7069 # Don't use installbsd from OSF since it installs stuff as root
7070 # by default.
7071 for ac_prog in ginstall scoinst install; do
7072 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073 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 +00007074 if test $ac_prog = install &&
7075 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7076 # AIX install. It has an incompatible calling convention.
7077 :
7078 elif test $ac_prog = install &&
7079 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7080 # program-specific install script used by HP pwplus--don't use.
7081 :
7082 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7084 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007085 fi
7086 fi
7087 done
7088 done
7089 ;;
7090esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091done
Reid Spencera773bd52006-08-04 18:18:08 +00007092IFS=$as_save_IFS
7093
7094
7095fi
7096 if test "${ac_cv_path_install+set}" = set; then
7097 INSTALL=$ac_cv_path_install
7098 else
7099 # As a last resort, use the slow shell script. Don't cache a
7100 # value for INSTALL within a source directory, because that will
7101 # break other packages using the cache if that directory is
7102 # removed, or if the value is a relative name.
7103 INSTALL=$ac_install_sh
7104 fi
7105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007106{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7107echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007108
7109# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7110# It thinks the first close brace ends the variable substitution.
7111test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7112
7113test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7114
7115test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7116
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007117case "$INSTALL" in
7118 [\\/$]* | ?:[\\/]* ) ;;
7119 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7120esac
Reid Spencera773bd52006-08-04 18:18:08 +00007121
7122# Extract the first word of "bzip2", so it can be a program name with args.
7123set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126if test "${ac_cv_path_BZIP2+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007128else
7129 case $BZIP2 in
7130 [\\/]* | ?:[\\/]*)
7131 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7132 ;;
7133 *)
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 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 +00007141 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007143 break 2
7144 fi
7145done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146done
Reid Spencera773bd52006-08-04 18:18:08 +00007147IFS=$as_save_IFS
7148
Reid Spencera773bd52006-08-04 18:18:08 +00007149 ;;
7150esac
7151fi
7152BZIP2=$ac_cv_path_BZIP2
7153if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7155echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007159fi
7160
7161
mike-m68cb3192010-05-06 23:45:43 +00007162# Extract the first word of "cat", so it can be a program name with args.
7163set dummy cat; ac_word=$2
7164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166if test "${ac_cv_path_CAT+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169 case $CAT in
7170 [\\/]* | ?:[\\/]*)
7171 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7172 ;;
7173 *)
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
7185done
7186done
7187IFS=$as_save_IFS
7188
7189 ;;
7190esac
7191fi
7192CAT=$ac_cv_path_CAT
7193if test -n "$CAT"; then
7194 { echo "$as_me:$LINENO: result: $CAT" >&5
7195echo "${ECHO_T}$CAT" >&6; }
7196else
7197 { echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6; }
7199fi
7200
7201
Reid Spencera773bd52006-08-04 18:18:08 +00007202# Extract the first word of "doxygen", so it can be a program name with args.
7203set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_DOXYGEN+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007208else
7209 case $DOXYGEN in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 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 +00007221 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007223 break 2
7224 fi
7225done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226done
Reid Spencera773bd52006-08-04 18:18:08 +00007227IFS=$as_save_IFS
7228
Reid Spencera773bd52006-08-04 18:18:08 +00007229 ;;
7230esac
7231fi
7232DOXYGEN=$ac_cv_path_DOXYGEN
7233if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7235echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007236else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 { echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007239fi
7240
7241
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007242# Extract the first word of "groff", so it can be a program name with args.
7243set dummy groff; ac_word=$2
7244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246if test "${ac_cv_path_GROFF+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249 case $GROFF in
7250 [\\/]* | ?:[\\/]*)
7251 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7252 ;;
7253 *)
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7264 fi
7265done
7266done
7267IFS=$as_save_IFS
7268
7269 ;;
7270esac
7271fi
7272GROFF=$ac_cv_path_GROFF
7273if test -n "$GROFF"; then
7274 { echo "$as_me:$LINENO: result: $GROFF" >&5
7275echo "${ECHO_T}$GROFF" >&6; }
7276else
7277 { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
7279fi
7280
7281
Reid Spencera773bd52006-08-04 18:18:08 +00007282# Extract the first word of "gzip", so it can be a program name with args.
7283set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007286if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007288else
Eric Christopher031d3072010-12-10 01:31:51 +00007289 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007290 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007291 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007292 ;;
7293 *)
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 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 +00007301 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007303 break 2
7304 fi
7305done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306done
Reid Spencera773bd52006-08-04 18:18:08 +00007307IFS=$as_save_IFS
7308
Reid Spencera773bd52006-08-04 18:18:08 +00007309 ;;
7310esac
7311fi
Eric Christopher031d3072010-12-10 01:31:51 +00007312GZIPBIN=$ac_cv_path_GZIPBIN
7313if test -n "$GZIPBIN"; then
7314 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7315echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 { echo "$as_me:$LINENO: result: no" >&5
7318echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007319fi
7320
7321
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007322# Extract the first word of "pdfroff", so it can be a program name with args.
7323set dummy pdfroff; ac_word=$2
7324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326if test "${ac_cv_path_PDFROFF+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328else
7329 case $PDFROFF in
7330 [\\/]* | ?:[\\/]*)
7331 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7332 ;;
7333 *)
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7344 fi
7345done
7346done
7347IFS=$as_save_IFS
7348
7349 ;;
7350esac
7351fi
7352PDFROFF=$ac_cv_path_PDFROFF
7353if test -n "$PDFROFF"; then
7354 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7355echo "${ECHO_T}$PDFROFF" >&6; }
7356else
7357 { echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6; }
7359fi
7360
7361
Reid Spencera773bd52006-08-04 18:18:08 +00007362# Extract the first word of "zip", so it can be a program name with args.
7363set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366if test "${ac_cv_path_ZIP+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007368else
7369 case $ZIP in
7370 [\\/]* | ?:[\\/]*)
7371 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7372 ;;
7373 *)
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375for as_dir in $PATH
7376do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 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 +00007381 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007383 break 2
7384 fi
7385done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007386done
Reid Spencera773bd52006-08-04 18:18:08 +00007387IFS=$as_save_IFS
7388
Reid Spencera773bd52006-08-04 18:18:08 +00007389 ;;
7390esac
7391fi
7392ZIP=$ac_cv_path_ZIP
7393if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394 { echo "$as_me:$LINENO: result: $ZIP" >&5
7395echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397 { echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007399fi
7400
7401
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007402for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007403do
7404 # Extract the first word of "$ac_prog", so it can be a program name with args.
7405set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408if test "${ac_cv_path_OCAMLC+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007410else
7411 case $OCAMLC in
7412 [\\/]* | ?:[\\/]*)
7413 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7414 ;;
7415 *)
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 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 +00007423 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007425 break 2
7426 fi
7427done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007428done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007429IFS=$as_save_IFS
7430
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007431 ;;
7432esac
7433fi
7434OCAMLC=$ac_cv_path_OCAMLC
7435if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7437echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439 { echo "$as_me:$LINENO: result: no" >&5
7440echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007441fi
7442
7443
Gordon Henriksene7072162008-03-07 18:20:01 +00007444 test -n "$OCAMLC" && break
7445done
7446
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007447for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007448do
7449 # Extract the first word of "$ac_prog", so it can be a program name with args.
7450set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7453if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007455else
7456 case $OCAMLOPT in
7457 [\\/]* | ?:[\\/]*)
7458 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7459 ;;
7460 *)
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 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 +00007468 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007470 break 2
7471 fi
7472done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007474IFS=$as_save_IFS
7475
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007476 ;;
7477esac
7478fi
7479OCAMLOPT=$ac_cv_path_OCAMLOPT
7480if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007481 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7482echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484 { echo "$as_me:$LINENO: result: no" >&5
7485echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007486fi
7487
7488
Gordon Henriksene7072162008-03-07 18:20:01 +00007489 test -n "$OCAMLOPT" && break
7490done
7491
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007492for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007493do
7494 # Extract the first word of "$ac_prog", so it can be a program name with args.
7495set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7498if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007500else
7501 case $OCAMLDEP in
7502 [\\/]* | ?:[\\/]*)
7503 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7504 ;;
7505 *)
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007513 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007515 break 2
7516 fi
7517done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007518done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007519IFS=$as_save_IFS
7520
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007521 ;;
7522esac
7523fi
7524OCAMLDEP=$ac_cv_path_OCAMLDEP
7525if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7527echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 { echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007531fi
7532
7533
Gordon Henriksene7072162008-03-07 18:20:01 +00007534 test -n "$OCAMLDEP" && break
7535done
7536
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007537for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007538do
7539 # Extract the first word of "$ac_prog", so it can be a program name with args.
7540set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7543if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007545else
7546 case $OCAMLDOC in
7547 [\\/]* | ?:[\\/]*)
7548 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7549 ;;
7550 *)
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 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 +00007558 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007560 break 2
7561 fi
7562done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007564IFS=$as_save_IFS
7565
7566 ;;
7567esac
7568fi
7569OCAMLDOC=$ac_cv_path_OCAMLDOC
7570if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7572echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007574 { echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007576fi
7577
7578
7579 test -n "$OCAMLDOC" && break
7580done
7581
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007582for ac_prog in gas as
7583do
7584 # Extract the first word of "$ac_prog", so it can be a program name with args.
7585set dummy $ac_prog; ac_word=$2
7586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588if test "${ac_cv_path_GAS+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591 case $GAS in
7592 [\\/]* | ?:[\\/]*)
7593 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7594 ;;
7595 *)
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607done
7608done
7609IFS=$as_save_IFS
7610
7611 ;;
7612esac
7613fi
7614GAS=$ac_cv_path_GAS
7615if test -n "$GAS"; then
7616 { echo "$as_me:$LINENO: result: $GAS" >&5
7617echo "${ECHO_T}$GAS" >&6; }
7618else
7619 { echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6; }
7621fi
7622
7623
7624 test -n "$GAS" && break
7625done
7626
Reid Spencera773bd52006-08-04 18:18:08 +00007627
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007628{ echo "$as_me:$LINENO: checking for linker version" >&5
7629echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7630if test "${llvm_cv_link_version+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else
7633
7634 version_string="$(ld -v 2>&1 | head -1)"
7635
7636 # Check for ld64.
7637 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007638 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007639 else
7640 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7641 fi
7642
7643fi
7644{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7645echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7646
7647cat >>confdefs.h <<_ACEOF
7648#define HOST_LINK_VERSION "$llvm_cv_link_version"
7649_ACEOF
7650
7651
7652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007653{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7654echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7655if test "${llvm_cv_link_use_r+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007657else
7658 ac_ext=c
7659ac_cpp='$CPP $CPPFLAGS'
7660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662ac_compiler_gnu=$ac_cv_c_compiler_gnu
7663
7664 oldcflags="$CFLAGS"
7665 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666 cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h. */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007671/* end confdefs.h. */
7672
7673int
7674main ()
7675{
Dan Gohman39ed6782010-04-25 00:12:20 +00007676
Reid Spencera773bd52006-08-04 18:18:08 +00007677 ;
7678 return 0;
7679}
7680_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007681rm -f conftest.$ac_objext conftest$ac_exeext
7682if { (ac_try="$ac_link"
7683case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7686esac
7687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_link") 2>conftest.er1
7689 ac_status=$?
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } &&
7695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7696 { (case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699esac
7700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7701 (eval "$ac_try") 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest$ac_exeext'
7706 { (case "(($ac_try" in
7707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7708 *) ac_try_echo=$ac_try;;
7709esac
7710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7711 (eval "$ac_try") 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007715 llvm_cv_link_use_r=yes
7716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007717 echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007721fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722
Bill Wendlingebcceee2009-04-18 11:20:33 +00007723rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007724 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007725 CFLAGS="$oldcflags"
7726 ac_ext=c
7727ac_cpp='$CPP $CPPFLAGS'
7728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730ac_compiler_gnu=$ac_cv_c_compiler_gnu
7731
7732
7733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7735echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007736if test "$llvm_cv_link_use_r" = yes ; then
7737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738cat >>confdefs.h <<\_ACEOF
7739#define HAVE_LINK_R 1
7740_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007741
7742 fi
7743
7744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7746echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7747if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007749else
7750 ac_ext=c
7751ac_cpp='$CPP $CPPFLAGS'
7752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755
7756 oldcflags="$CFLAGS"
7757 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007758 cat >conftest.$ac_ext <<_ACEOF
7759/* confdefs.h. */
7760_ACEOF
7761cat confdefs.h >>conftest.$ac_ext
7762cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007763/* end confdefs.h. */
7764
7765int
7766main ()
7767{
Dan Gohman39ed6782010-04-25 00:12:20 +00007768
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007769 ;
7770 return 0;
7771}
7772_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007773rm -f conftest.$ac_objext conftest$ac_exeext
7774if { (ac_try="$ac_link"
7775case "(($ac_try" in
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7778esac
7779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_link") 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7788 { (case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7791esac
7792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_try") 2>&5
7794 ac_status=$?
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); }; } &&
7797 { ac_try='test -s conftest$ac_exeext'
7798 { (case "(($ac_try" in
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7801esac
7802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803 (eval "$ac_try") 2>&5
7804 ac_status=$?
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007807 llvm_cv_link_use_export_dynamic=yes
7808else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007809 echo "$as_me: failed program was:" >&5
7810sed 's/^/| /' conftest.$ac_ext >&5
7811
7812 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007813fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814
Bill Wendlingebcceee2009-04-18 11:20:33 +00007815rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007816 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007817 CFLAGS="$oldcflags"
7818 ac_ext=c
7819ac_cpp='$CPP $CPPFLAGS'
7820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824
7825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007826{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7827echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007828if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007830cat >>confdefs.h <<\_ACEOF
7831#define HAVE_LINK_EXPORT_DYNAMIC 1
7832_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007833
7834 fi
7835
7836
Dan Gohmanda612d62010-06-01 14:56:56 +00007837{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7838echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7839if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842 ac_ext=c
7843ac_cpp='$CPP $CPPFLAGS'
7844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7846ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847
7848 oldcflags="$CFLAGS"
7849
7850 # The following code is from the autoconf manual,
7851 # "11.13: Limitations of Usual Tools".
7852 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7853 # Use mktemp if possible; otherwise fall back on mkdir,
7854 # with $RANDOM to make collisions less likely.
7855 : ${TMPDIR=/tmp}
7856 {
7857 tmp=`
7858 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7859 ` &&
7860 test -n "$tmp" && test -d "$tmp"
7861 } || {
7862 tmp=$TMPDIR/foo$$-$RANDOM
7863 (umask 077 && mkdir "$tmp")
7864 } || exit $?
7865
Dan Gohmanda612d62010-06-01 14:56:56 +00007866 echo "{" > "$tmp/export.map"
7867 echo " global: main;" >> "$tmp/export.map"
7868 echo " local: *;" >> "$tmp/export.map"
7869 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007870
Dan Gohmanda612d62010-06-01 14:56:56 +00007871 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007872 cat >conftest.$ac_ext <<_ACEOF
7873/* confdefs.h. */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
7877/* end confdefs.h. */
7878
7879int
7880main ()
7881{
Dan Gohman39ed6782010-04-25 00:12:20 +00007882
Dan Gohman391569c2010-04-16 22:59:06 +00007883 ;
7884 return 0;
7885}
7886_ACEOF
7887rm -f conftest.$ac_objext conftest$ac_exeext
7888if { (ac_try="$ac_link"
7889case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7892esac
7893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_link") 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7902 { (case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905esac
7906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_try") 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; } &&
7911 { ac_try='test -s conftest$ac_exeext'
7912 { (case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7915esac
7916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_try") 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007921 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007922else
7923 echo "$as_me: failed program was:" >&5
7924sed 's/^/| /' conftest.$ac_ext >&5
7925
Dan Gohman943005e2010-06-01 16:22:27 +00007926 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007927fi
7928
7929rm -f core conftest.err conftest.$ac_objext \
7930 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007931 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007932 rmdir "$tmp"
7933 CFLAGS="$oldcflags"
7934 ac_ext=c
7935ac_cpp='$CPP $CPPFLAGS'
7936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939
7940
7941fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007942{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7943echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7944if test "$llvm_cv_link_use_version_script" = yes ; then
7945 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007946
7947 fi
7948
7949
Reid Spencera773bd52006-08-04 18:18:08 +00007950
7951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007952{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7953echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7954if test "${ac_cv_c_const+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007957 cat >conftest.$ac_ext <<_ACEOF
7958/* confdefs.h. */
7959_ACEOF
7960cat confdefs.h >>conftest.$ac_ext
7961cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007962/* end confdefs.h. */
7963
7964int
7965main ()
7966{
7967/* FIXME: Include the comments suggested by Paul. */
7968#ifndef __cplusplus
7969 /* Ultrix mips cc rejects this. */
7970 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007971 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00007972 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007973 char const *const *ccp;
7974 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00007975 /* NEC SVR4.0.2 mips cc rejects this. */
7976 struct point {int x, y;};
7977 static struct point const zero = {0,0};
7978 /* AIX XL C 1.02.0.0 rejects this.
7979 It does not let you subtract one const X* pointer from another in
7980 an arm of an if-expression whose if-part is not a constant
7981 expression */
7982 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00007984 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985 ++ccp;
7986 p = (char**) ccp;
7987 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00007988 { /* SCO 3.2v4 cc rejects this. */
7989 char *t;
7990 char const *s = 0 ? (char *) 0 : (char const *) 0;
7991
7992 *t++ = 0;
7993 if (s) return 0;
7994 }
7995 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7996 int x[] = {25, 17};
7997 const int *foo = &x[0];
7998 ++foo;
7999 }
8000 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8001 typedef const int *iptr;
8002 iptr p = 0;
8003 ++p;
8004 }
8005 { /* AIX XL C 1.02.0.0 rejects this saying
8006 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8007 struct s { int j; const int *ap[3]; };
8008 struct s *b; b->j = 5;
8009 }
8010 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8011 const int foo = 10;
8012 if (!foo) return 0;
8013 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008015#endif
8016
8017 ;
8018 return 0;
8019}
8020_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008021rm -f conftest.$ac_objext
8022if { (ac_try="$ac_compile"
8023case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026esac
8027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039esac
8040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_try") 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest.$ac_objext'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008055 ac_cv_c_const=yes
8056else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008057 echo "$as_me: failed program was:" >&5
8058sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008062
Reid Spencera773bd52006-08-04 18:18:08 +00008063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8066echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008067if test $ac_cv_c_const = no; then
8068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008069cat >>confdefs.h <<\_ACEOF
8070#define const
8071_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008072
8073fi
8074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008075
8076
8077
8078
8079
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008080ac_header_dirent=no
8081for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008082 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8083{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8084echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008087else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008088 cat >conftest.$ac_ext <<_ACEOF
8089/* confdefs.h. */
8090_ACEOF
8091cat confdefs.h >>conftest.$ac_ext
8092cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008093/* end confdefs.h. */
8094#include <sys/types.h>
8095#include <$ac_hdr>
8096
8097int
8098main ()
8099{
8100if ((DIR *) 0)
8101return 0;
8102 ;
8103 return 0;
8104}
8105_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008106rm -f conftest.$ac_objext
8107if { (ac_try="$ac_compile"
8108case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111esac
8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121 { (case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124esac
8125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134esac
8135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008140 eval "$as_ac_Header=yes"
8141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142 echo "$as_me: failed program was:" >&5
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008147
Reid Spencera773bd52006-08-04 18:18:08 +00008148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008149fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008150ac_res=`eval echo '${'$as_ac_Header'}'`
8151 { echo "$as_me:$LINENO: result: $ac_res" >&5
8152echo "${ECHO_T}$ac_res" >&6; }
8153if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008154 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008156_ACEOF
8157
8158ac_header_dirent=$ac_hdr; break
8159fi
8160
8161done
8162# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8163if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008164 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8165echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8166if test "${ac_cv_search_opendir+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008168else
8169 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008170cat >conftest.$ac_ext <<_ACEOF
8171/* confdefs.h. */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008175/* end confdefs.h. */
8176
Reid Spencera773bd52006-08-04 18:18:08 +00008177/* Override any GCC internal prototype to avoid an error.
8178 Use char because int might match the return type of a GCC
8179 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008180#ifdef __cplusplus
8181extern "C"
8182#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008183char opendir ();
8184int
8185main ()
8186{
Reid Spencera773bd52006-08-04 18:18:08 +00008187return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008188 ;
8189 return 0;
8190}
8191_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008192for ac_lib in '' dir; do
8193 if test -z "$ac_lib"; then
8194 ac_res="none required"
8195 else
8196 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008198 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008199 rm -f conftest.$ac_objext conftest$ac_exeext
8200if { (ac_try="$ac_link"
8201case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204esac
8205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_link") 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214 { (case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8217esac
8218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_try") 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest$ac_exeext'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227esac
8228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008233 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234else
8235 echo "$as_me: failed program was:" >&5
8236sed 's/^/| /' conftest.$ac_ext >&5
8237
8238
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008239fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240
Bill Wendlingebcceee2009-04-18 11:20:33 +00008241rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242 conftest$ac_exeext
8243 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008244 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008245fi
John Criswell7a73b802003-06-30 21:59:07 +00008246done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008247if test "${ac_cv_search_opendir+set}" = set; then
8248 :
Reid Spencera773bd52006-08-04 18:18:08 +00008249else
8250 ac_cv_search_opendir=no
8251fi
8252rm conftest.$ac_ext
8253LIBS=$ac_func_search_save_LIBS
8254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008255{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8256echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008257ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008258if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008260
Reid Spencera773bd52006-08-04 18:18:08 +00008261fi
8262
8263else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008264 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8265echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8266if test "${ac_cv_search_opendir+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008268else
8269 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008270cat >conftest.$ac_ext <<_ACEOF
8271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008275/* end confdefs.h. */
8276
8277/* Override any GCC internal prototype to avoid an error.
8278 Use char because int might match the return type of a GCC
8279 builtin and then its argument prototype would still apply. */
8280#ifdef __cplusplus
8281extern "C"
8282#endif
8283char opendir ();
8284int
8285main ()
8286{
8287return opendir ();
8288 ;
8289 return 0;
8290}
8291_ACEOF
8292for ac_lib in '' x; do
8293 if test -z "$ac_lib"; then
8294 ac_res="none required"
8295 else
8296 ac_res=-l$ac_lib
8297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8298 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008299 rm -f conftest.$ac_objext conftest$ac_exeext
8300if { (ac_try="$ac_link"
8301case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304esac
8305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_link") 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317esac
8318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; } &&
8323 { ac_try='test -s conftest$ac_exeext'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327esac
8328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008333 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334else
8335 echo "$as_me: failed program was:" >&5
8336sed 's/^/| /' conftest.$ac_ext >&5
8337
8338
Reid Spencera773bd52006-08-04 18:18:08 +00008339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008340
Bill Wendlingebcceee2009-04-18 11:20:33 +00008341rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008342 conftest$ac_exeext
8343 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008344 break
8345fi
8346done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347if test "${ac_cv_search_opendir+set}" = set; then
8348 :
Reid Spencera773bd52006-08-04 18:18:08 +00008349else
8350 ac_cv_search_opendir=no
8351fi
8352rm conftest.$ac_ext
8353LIBS=$ac_func_search_save_LIBS
8354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008355{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8356echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008357ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008358if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8360
8361fi
8362
8363fi
John Criswell7a73b802003-06-30 21:59:07 +00008364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008365
John Criswell7a73b802003-06-30 21:59:07 +00008366for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008367do
8368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374fi
8375ac_res=`eval echo '${'$as_ac_Header'}'`
8376 { echo "$as_me:$LINENO: result: $ac_res" >&5
8377echo "${ECHO_T}$ac_res" >&6; }
8378else
8379 # Is the header compilable?
8380{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8382cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h. */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
8387/* end confdefs.h. */
8388$ac_includes_default
8389#include <$ac_header>
8390_ACEOF
8391rm -f conftest.$ac_objext
8392if { (ac_try="$ac_compile"
8393case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396esac
8397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_compile") 2>conftest.er1
8399 ac_status=$?
8400 grep -v '^ *+' conftest.er1 >conftest.err
8401 rm -f conftest.er1
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8406 { (case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409esac
8410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_try") 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest.$ac_objext'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419esac
8420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_header_compiler=yes
8426else
8427 echo "$as_me: failed program was:" >&5
8428sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ac_header_compiler=no
8431fi
8432
8433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8435echo "${ECHO_T}$ac_header_compiler" >&6; }
8436
8437# Is the header present?
8438{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8440cat >conftest.$ac_ext <<_ACEOF
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
8446#include <$ac_header>
8447_ACEOF
8448if { (ac_try="$ac_cpp conftest.$ac_ext"
8449case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452esac
8453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } >/dev/null; then
8461 if test -s conftest.err; then
8462 ac_cpp_err=$ac_c_preproc_warn_flag
8463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8464 else
8465 ac_cpp_err=
8466 fi
8467else
8468 ac_cpp_err=yes
8469fi
8470if test -z "$ac_cpp_err"; then
8471 ac_header_preproc=yes
8472else
8473 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ac_header_preproc=no
8477fi
8478
8479rm -f conftest.err conftest.$ac_ext
8480{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8481echo "${ECHO_T}$ac_header_preproc" >&6; }
8482
8483# So? What about this header?
8484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8485 yes:no: )
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8490 ac_header_preproc=yes
8491 ;;
8492 no:yes:* )
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8496echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8500echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8505 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008506## ------------------------------------ ##
8507## Report this to http://llvm.org/bugs/ ##
8508## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008509_ASBOX
8510 ) | sed "s/^/$as_me: WARNING: /" >&2
8511 ;;
8512esac
8513{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517else
8518 eval "$as_ac_Header=\$ac_header_preproc"
8519fi
8520ac_res=`eval echo '${'$as_ac_Header'}'`
8521 { echo "$as_me:$LINENO: result: $ac_res" >&5
8522echo "${ECHO_T}$ac_res" >&6; }
8523
8524fi
8525if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008526 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008528_ACEOF
8529
8530fi
8531
8532done
8533
Reid Spencera773bd52006-08-04 18:18:08 +00008534# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008536 enableval=$enable_ltdl_install;
8537fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008538
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008540
8541
8542if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008543 INSTALL_LTDL_TRUE=
8544 INSTALL_LTDL_FALSE='#'
8545else
8546 INSTALL_LTDL_TRUE='#'
8547 INSTALL_LTDL_FALSE=
8548fi
8549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008550
8551
8552if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008553 CONVENIENCE_LTDL_TRUE=
8554 CONVENIENCE_LTDL_FALSE='#'
8555else
8556 CONVENIENCE_LTDL_TRUE='#'
8557 CONVENIENCE_LTDL_FALSE=
8558fi
8559
8560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008561{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8562echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008563library_names_spec=
8564libname_spec='lib$name'
8565soname_spec=
8566shrext_cmds=".so"
8567postinstall_cmds=
8568postuninstall_cmds=
8569finish_cmds=
8570finish_eval=
8571shlibpath_var=
8572shlibpath_overrides_runpath=unknown
8573version_type=none
8574dynamic_linker="$host_os ld.so"
8575sys_lib_dlsearch_path_spec="/lib /usr/lib"
8576if test "$GCC" = yes; then
8577 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8578 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8579 # if the path contains ";" then we assume it to be the separator
8580 # otherwise default to the standard path separator (i.e. ":") - it is
8581 # assumed that no part of a normal pathname contains ";" but that should
8582 # okay in the real world where ";" in dirpaths is itself problematic.
8583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8584 else
8585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8586 fi
8587else
8588 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8589fi
8590need_lib_prefix=unknown
8591hardcode_into_libs=no
8592
8593# when you set need_version to no, make sure it does not cause -set_version
8594# flags to be left without arguments
8595need_version=unknown
8596
8597case $host_os in
8598aix3*)
8599 version_type=linux
8600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8601 shlibpath_var=LIBPATH
8602
8603 # AIX 3 has no versioning support, so we append a major version to the name.
8604 soname_spec='${libname}${release}${shared_ext}$major'
8605 ;;
8606
8607aix4* | aix5*)
8608 version_type=linux
8609 need_lib_prefix=no
8610 need_version=no
8611 hardcode_into_libs=yes
8612 if test "$host_cpu" = ia64; then
8613 # AIX 5 supports IA64
8614 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8615 shlibpath_var=LD_LIBRARY_PATH
8616 else
8617 # With GCC up to 2.95.x, collect2 would create an import file
8618 # for dependence libraries. The import file would start with
8619 # the line `#! .'. This would cause the generated library to
8620 # depend on `.', always an invalid library. This was fixed in
8621 # development snapshots of GCC prior to 3.0.
8622 case $host_os in
8623 aix4 | aix4.[01] | aix4.[01].*)
8624 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8625 echo ' yes '
8626 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8627 :
8628 else
8629 can_build_shared=no
8630 fi
8631 ;;
8632 esac
8633 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8634 # soname into executable. Probably we can add versioning support to
8635 # collect2, so additional links can be useful in future.
8636 if test "$aix_use_runtimelinking" = yes; then
8637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8638 # instead of lib<name>.a to let people know that these are not
8639 # typical AIX shared libraries.
8640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8641 else
8642 # We preserve .a as extension for shared libraries through AIX4.2
8643 # and later when we are not doing run time linking.
8644 library_names_spec='${libname}${release}.a $libname.a'
8645 soname_spec='${libname}${release}${shared_ext}$major'
8646 fi
8647 shlibpath_var=LIBPATH
8648 fi
8649 ;;
8650
8651amigaos*)
8652 library_names_spec='$libname.ixlibrary $libname.a'
8653 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8654 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'
8655 ;;
8656
8657beos*)
8658 library_names_spec='${libname}${shared_ext}'
8659 dynamic_linker="$host_os ld.so"
8660 shlibpath_var=LIBRARY_PATH
8661 ;;
8662
8663bsdi[45]*)
8664 version_type=linux
8665 need_version=no
8666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8667 soname_spec='${libname}${release}${shared_ext}$major'
8668 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8669 shlibpath_var=LD_LIBRARY_PATH
8670 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8671 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8672 # the default ld.so.conf also contains /usr/contrib/lib and
8673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8674 # libtool to hard-code these into programs
8675 ;;
8676
8677cygwin* | mingw* | pw32*)
8678 version_type=windows
8679 shrext_cmds=".dll"
8680 need_version=no
8681 need_lib_prefix=no
8682
8683 case $GCC,$host_os in
8684 yes,cygwin* | yes,mingw* | yes,pw32*)
8685 library_names_spec='$libname.dll.a'
8686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8687 postinstall_cmds='base_file=`basename \${file}`~
8688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8689 dldir=$destdir/`dirname \$dlpath`~
8690 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008691 $install_prog $dir/$dlname \$dldir/$dlname~
8692 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008693 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8694 dlpath=$dir/\$dldll~
8695 $rm \$dlpath'
8696 shlibpath_overrides_runpath=yes
8697
8698 case $host_os in
8699 cygwin*)
8700 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8701 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8702 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8703 ;;
8704 mingw*)
8705 # MinGW DLLs use traditional 'lib' prefix
8706 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8708 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8709 # It is most probably a Windows format PATH printed by
8710 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8711 # path with ; separators, and with drive letters. We can handle the
8712 # drive letters (cygwin fileutils understands them), so leave them,
8713 # especially as we might pass files found there to a mingw objdump,
8714 # which wouldn't understand a cygwinified path. Ahh.
8715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8716 else
8717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8718 fi
8719 ;;
8720 pw32*)
8721 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008722 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 +00008723 ;;
8724 esac
8725 ;;
8726
8727 *)
8728 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8729 ;;
8730 esac
8731 dynamic_linker='Win32 ld.exe'
8732 # FIXME: first we should search . and the directory the executable is in
8733 shlibpath_var=PATH
8734 ;;
8735
8736darwin* | rhapsody*)
8737 dynamic_linker="$host_os dyld"
8738 version_type=darwin
8739 need_lib_prefix=no
8740 need_version=no
8741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8742 soname_spec='${libname}${release}${major}$shared_ext'
8743 shlibpath_overrides_runpath=yes
8744 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008745 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008746 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8747 if test "$GCC" = yes; then
8748 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"`
8749 else
8750 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8751 fi
8752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8753 ;;
8754
8755dgux*)
8756 version_type=linux
8757 need_lib_prefix=no
8758 need_version=no
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8760 soname_spec='${libname}${release}${shared_ext}$major'
8761 shlibpath_var=LD_LIBRARY_PATH
8762 ;;
8763
Eric Christopher360fa9a2011-10-26 00:42:12 +00008764freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008765 dynamic_linker=no
8766 ;;
8767
8768kfreebsd*-gnu)
8769 version_type=linux
8770 need_lib_prefix=no
8771 need_version=no
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8773 soname_spec='${libname}${release}${shared_ext}$major'
8774 shlibpath_var=LD_LIBRARY_PATH
8775 shlibpath_overrides_runpath=no
8776 hardcode_into_libs=yes
8777 dynamic_linker='GNU ld.so'
8778 ;;
8779
Reid Spencera773bd52006-08-04 18:18:08 +00008780freebsd* | dragonfly*)
8781 # DragonFly does not have aout. When/if they implement a new
8782 # versioning mechanism, adjust this.
8783 if test -x /usr/bin/objformat; then
8784 objformat=`/usr/bin/objformat`
8785 else
8786 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008787 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008788 *) objformat=elf ;;
8789 esac
8790 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008791 version_type=freebsd-$objformat
8792 case $version_type in
8793 freebsd-elf*)
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8795 need_version=no
8796 need_lib_prefix=no
8797 ;;
8798 freebsd-*)
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8800 need_version=yes
8801 ;;
8802 esac
8803 shlibpath_var=LD_LIBRARY_PATH
8804 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008805 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008806 shlibpath_overrides_runpath=yes
8807 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008808 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008809 shlibpath_overrides_runpath=yes
8810 hardcode_into_libs=yes
8811 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008814 shlibpath_overrides_runpath=no
8815 hardcode_into_libs=yes
8816 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008817 freebsd*) # from 4.6 on
8818 shlibpath_overrides_runpath=yes
8819 hardcode_into_libs=yes
8820 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008821 esac
8822 ;;
8823
8824gnu*)
8825 version_type=linux
8826 need_lib_prefix=no
8827 need_version=no
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 hardcode_into_libs=yes
8832 ;;
8833
8834hpux9* | hpux10* | hpux11*)
8835 # Give a soname corresponding to the major version so that dld.sl refuses to
8836 # link against other versions.
8837 version_type=sunos
8838 need_lib_prefix=no
8839 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008840 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008841 ia64*)
8842 shrext_cmds='.so'
8843 hardcode_into_libs=yes
8844 dynamic_linker="$host_os dld.so"
8845 shlibpath_var=LD_LIBRARY_PATH
8846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 if test "X$HPUX_IA64_MODE" = X32; then
8850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8851 else
8852 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8853 fi
8854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8855 ;;
8856 hppa*64*)
8857 shrext_cmds='.sl'
8858 hardcode_into_libs=yes
8859 dynamic_linker="$host_os dld.sl"
8860 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8866 ;;
8867 *)
8868 shrext_cmds='.sl'
8869 dynamic_linker="$host_os dld.sl"
8870 shlibpath_var=SHLIB_PATH
8871 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 ;;
8875 esac
8876 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8877 postinstall_cmds='chmod 555 $lib'
8878 ;;
8879
Reid Spencera773bd52006-08-04 18:18:08 +00008880interix3*)
8881 version_type=linux
8882 need_lib_prefix=no
8883 need_version=no
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=no
8889 hardcode_into_libs=yes
8890 ;;
8891
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008892irix5* | irix6* | nonstopux*)
8893 case $host_os in
8894 nonstopux*) version_type=nonstopux ;;
8895 *)
8896 if test "$lt_cv_prog_gnu_ld" = yes; then
8897 version_type=linux
8898 else
8899 version_type=irix
8900 fi ;;
8901 esac
8902 need_lib_prefix=no
8903 need_version=no
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8906 case $host_os in
8907 irix5* | nonstopux*)
8908 libsuff= shlibsuff=
8909 ;;
8910 *)
8911 case $LD in # libtool.m4 will add one of these switches to LD
8912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8913 libsuff= shlibsuff= libmagic=32-bit;;
8914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8915 libsuff=32 shlibsuff=N32 libmagic=N32;;
8916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8917 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8918 *) libsuff= shlibsuff= libmagic=never-match;;
8919 esac
8920 ;;
8921 esac
8922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8923 shlibpath_overrides_runpath=no
8924 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8925 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8926 hardcode_into_libs=yes
8927 ;;
8928
8929# No shared lib support for Linux oldld, aout, or coff.
8930linux*oldld* | linux*aout* | linux*coff*)
8931 dynamic_linker=no
8932 ;;
8933
8934# This must be Linux ELF.
8935linux*)
8936 version_type=linux
8937 need_lib_prefix=no
8938 need_version=no
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
8941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=no
8944 # This implies no fast_install, which is unacceptable.
8945 # Some rework will be needed to allow for fast_install
8946 # before this can be enabled.
8947 hardcode_into_libs=yes
8948
8949 # Append ld.so.conf contents to the search path
8950 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008951 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 +00008952 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8953 fi
8954
8955 # We used to test for /lib/ld.so.1 and disable shared libraries on
8956 # powerpc, because MkLinux only supported shared libraries with the
8957 # GNU dynamic linker. Since this was broken with cross compilers,
8958 # most powerpc-linux boxes support dynamic linking these days and
8959 # people can always --disable-shared, the test was removed, and we
8960 # assume the GNU/Linux dynamic linker is in use.
8961 dynamic_linker='GNU/Linux ld.so'
8962 ;;
8963
8964knetbsd*-gnu)
8965 version_type=linux
8966 need_lib_prefix=no
8967 need_version=no
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 shlibpath_overrides_runpath=no
8972 hardcode_into_libs=yes
8973 dynamic_linker='GNU ld.so'
8974 ;;
8975
8976netbsd*)
8977 version_type=sunos
8978 need_lib_prefix=no
8979 need_version=no
8980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8983 dynamic_linker='NetBSD (a.out) ld.so'
8984 else
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 dynamic_linker='NetBSD ld.elf_so'
8988 fi
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes
8991 hardcode_into_libs=yes
8992 ;;
8993
8994newsos6)
8995 version_type=linux
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 shlibpath_var=LD_LIBRARY_PATH
8998 shlibpath_overrides_runpath=yes
8999 ;;
9000
9001nto-qnx*)
9002 version_type=linux
9003 need_lib_prefix=no
9004 need_version=no
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9009 ;;
9010
Eric Christopherb0f67592012-08-06 20:52:18 +00009011openbsd* | bitrig*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009012 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009013 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009014 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009015 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9016 case $host_os in
9017 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9018 *) need_version=no ;;
9019 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9024 case $host_os in
9025 openbsd2.[89] | openbsd2.[89].*)
9026 shlibpath_overrides_runpath=no
9027 ;;
9028 *)
9029 shlibpath_overrides_runpath=yes
9030 ;;
9031 esac
9032 else
9033 shlibpath_overrides_runpath=yes
9034 fi
9035 ;;
9036
9037os2*)
9038 libname_spec='$name'
9039 shrext_cmds=".dll"
9040 need_lib_prefix=no
9041 library_names_spec='$libname${shared_ext} $libname.a'
9042 dynamic_linker='OS/2 ld.exe'
9043 shlibpath_var=LIBPATH
9044 ;;
9045
9046osf3* | osf4* | osf5*)
9047 version_type=osf
9048 need_lib_prefix=no
9049 need_version=no
9050 soname_spec='${libname}${release}${shared_ext}$major'
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 shlibpath_var=LD_LIBRARY_PATH
9053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9055 ;;
9056
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009057solaris*)
9058 version_type=linux
9059 need_lib_prefix=no
9060 need_version=no
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 shlibpath_overrides_runpath=yes
9065 hardcode_into_libs=yes
9066 # ldd complains unless libraries are executable
9067 postinstall_cmds='chmod +x $lib'
9068 ;;
9069
9070sunos4*)
9071 version_type=sunos
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9076 if test "$with_gnu_ld" = yes; then
9077 need_lib_prefix=no
9078 fi
9079 need_version=yes
9080 ;;
9081
Reid Spencera773bd52006-08-04 18:18:08 +00009082sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009083 version_type=linux
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 case $host_vendor in
9088 sni)
9089 shlibpath_overrides_runpath=no
9090 need_lib_prefix=no
9091 export_dynamic_flag_spec='${wl}-Blargedynsym'
9092 runpath_var=LD_RUN_PATH
9093 ;;
9094 siemens)
9095 need_lib_prefix=no
9096 ;;
9097 motorola)
9098 need_lib_prefix=no
9099 need_version=no
9100 shlibpath_overrides_runpath=no
9101 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9102 ;;
9103 esac
9104 ;;
9105
9106sysv4*MP*)
9107 if test -d /usr/nec ;then
9108 version_type=linux
9109 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9110 soname_spec='$libname${shared_ext}.$major'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 fi
9113 ;;
9114
Reid Spencera773bd52006-08-04 18:18:08 +00009115sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9116 version_type=freebsd-elf
9117 need_lib_prefix=no
9118 need_version=no
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 hardcode_into_libs=yes
9123 if test "$with_gnu_ld" = yes; then
9124 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9125 shlibpath_overrides_runpath=no
9126 else
9127 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9128 shlibpath_overrides_runpath=yes
9129 case $host_os in
9130 sco3.2v5*)
9131 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9132 ;;
9133 esac
9134 fi
9135 sys_lib_dlsearch_path_spec='/usr/lib'
9136 ;;
9137
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009138uts4*)
9139 version_type=linux
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 ;;
9144
9145*)
9146 dynamic_linker=no
9147 ;;
9148esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009149{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9150echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009151test "$dynamic_linker" = no && can_build_shared=no
9152
Reid Spencera773bd52006-08-04 18:18:08 +00009153variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9154if test "$GCC" = yes; then
9155 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9156fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009157
Reid Spencera773bd52006-08-04 18:18:08 +00009158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009159{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9160echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9161if test "${libltdl_cv_shlibext+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009163else
9164
9165module=yes
9166eval libltdl_cv_shlibext=$shrext_cmds
9167
9168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009169{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9170echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009171if test -n "$libltdl_cv_shlibext"; then
9172
9173cat >>confdefs.h <<_ACEOF
9174#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9175_ACEOF
9176
9177fi
9178
9179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009180{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9181echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9182if test "${libltdl_cv_shlibpath_var+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009184else
9185 libltdl_cv_shlibpath_var="$shlibpath_var"
9186fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009187{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9188echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009189if test -n "$libltdl_cv_shlibpath_var"; then
9190
9191cat >>confdefs.h <<_ACEOF
9192#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9193_ACEOF
9194
9195fi
9196
9197
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009198{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9199echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9200if test "${libltdl_cv_sys_search_path+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009202else
9203 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9204fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009205{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9206echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009207if test -n "$libltdl_cv_sys_search_path"; then
9208 sys_search_path=
9209 for dir in $libltdl_cv_sys_search_path; do
9210 if test -z "$sys_search_path"; then
9211 sys_search_path="$dir"
9212 else
9213 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9214 fi
9215 done
9216
9217cat >>confdefs.h <<_ACEOF
9218#define LTDL_SYSSEARCHPATH "$sys_search_path"
9219_ACEOF
9220
9221fi
9222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009223{ echo "$as_me:$LINENO: checking for objdir" >&5
9224echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9225if test "${libltdl_cv_objdir+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227else
9228 libltdl_cv_objdir="$objdir"
9229 if test -n "$objdir"; then
9230 :
9231 else
9232 rm -f .libs 2>/dev/null
9233 mkdir .libs 2>/dev/null
9234 if test -d .libs; then
9235 libltdl_cv_objdir=.libs
9236 else
9237 # MS-DOS does not allow filenames that begin with a dot.
9238 libltdl_cv_objdir=_libs
9239 fi
9240 rmdir .libs 2>/dev/null
9241 fi
9242
9243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009244{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9245echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009246
9247cat >>confdefs.h <<_ACEOF
9248#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9249_ACEOF
9250
9251
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009252
9253
9254
9255
9256# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009257{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9258echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9259if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261else
9262
9263# These are sane defaults that work on at least a few old systems.
9264# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9265
9266# Character class describing NM global symbol codes.
9267symcode='[BCDEGRST]'
9268
9269# Regexp to match symbols that can be accessed directly from C.
9270sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9271
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009272# Transform an extracted symbol line into a proper C declaration
9273lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9274
9275# Transform an extracted symbol line into symbol name and symbol address
9276lt_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'"
9277
9278# Define system-specific variables.
9279case $host_os in
9280aix*)
9281 symcode='[BCDT]'
9282 ;;
9283cygwin* | mingw* | pw32*)
9284 symcode='[ABCDGISTW]'
9285 ;;
9286hpux*) # Its linker distinguishes data from code symbols
9287 if test "$host_cpu" = ia64; then
9288 symcode='[ABCDEGRST]'
9289 fi
9290 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9291 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'"
9292 ;;
9293linux*)
9294 if test "$host_cpu" = ia64; then
9295 symcode='[ABCDGIRSTW]'
9296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9297 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'"
9298 fi
9299 ;;
9300irix* | nonstopux*)
9301 symcode='[BCDEGRST]'
9302 ;;
9303osf*)
9304 symcode='[BCDEGQRST]'
9305 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009306solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307 symcode='[BDRT]'
9308 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009309sco3.2v5*)
9310 symcode='[DT]'
9311 ;;
9312sysv4.2uw2*)
9313 symcode='[DT]'
9314 ;;
9315sysv5* | sco5v6* | unixware* | OpenUNIX*)
9316 symcode='[ABDT]'
9317 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009318sysv4)
9319 symcode='[DFNSTU]'
9320 ;;
9321esac
9322
9323# Handle CRLF in mingw tool chain
9324opt_cr=
9325case $build_os in
9326mingw*)
9327 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9328 ;;
9329esac
9330
9331# If we're using GNU nm, then use its standard symbol codes.
9332case `$NM -V 2>&1` in
9333*GNU* | *'with BFD'*)
9334 symcode='[ABCDGIRSTW]' ;;
9335esac
9336
9337# Try without a prefix undercore, then with it.
9338for ac_symprfx in "" "_"; do
9339
Reid Spencera773bd52006-08-04 18:18:08 +00009340 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9341 symxfrm="\\1 $ac_symprfx\\2 \\2"
9342
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009344 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 +00009345
9346 # Check to see that the pipe works correctly.
9347 pipe_works=no
9348
9349 rm -f conftest*
9350 cat > conftest.$ac_ext <<EOF
9351#ifdef __cplusplus
9352extern "C" {
9353#endif
9354char nm_test_var;
9355void nm_test_func(){}
9356#ifdef __cplusplus
9357}
9358#endif
9359int main(){nm_test_var='a';nm_test_func();return(0);}
9360EOF
9361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009363 (eval $ac_compile) 2>&5
9364 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367 # Now try to grab the symbols.
9368 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009369 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 +00009370 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9371 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009374 # Try sorting and uniquifying the output.
9375 if sort "$nlist" | uniq > "$nlist"T; then
9376 mv -f "$nlist"T "$nlist"
9377 else
9378 rm -f "$nlist"T
9379 fi
9380
9381 # Make sure that we snagged all the symbols we need.
9382 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9383 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9384 cat <<EOF > conftest.$ac_ext
9385#ifdef __cplusplus
9386extern "C" {
9387#endif
9388
9389EOF
9390 # Now generate the symbol file.
9391 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9392
9393 cat <<EOF >> conftest.$ac_ext
9394#if defined (__STDC__) && __STDC__
9395# define lt_ptr_t void *
9396#else
9397# define lt_ptr_t char *
9398# define const
9399#endif
9400
9401/* The mapping between symbol names and symbols. */
9402const struct {
9403 const char *name;
9404 lt_ptr_t address;
9405}
9406lt_preloaded_symbols[] =
9407{
9408EOF
9409 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9410 cat <<\EOF >> conftest.$ac_ext
9411 {0, (lt_ptr_t) 0}
9412};
9413
9414#ifdef __cplusplus
9415}
9416#endif
9417EOF
9418 # Now try linking the two files.
9419 mv conftest.$ac_objext conftstm.$ac_objext
9420 lt_save_LIBS="$LIBS"
9421 lt_save_CFLAGS="$CFLAGS"
9422 LIBS="conftstm.$ac_objext"
9423 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425 (eval $ac_link) 2>&5
9426 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009429 pipe_works=yes
9430 fi
9431 LIBS="$lt_save_LIBS"
9432 CFLAGS="$lt_save_CFLAGS"
9433 else
9434 echo "cannot find nm_test_func in $nlist" >&5
9435 fi
9436 else
9437 echo "cannot find nm_test_var in $nlist" >&5
9438 fi
9439 else
9440 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9441 fi
9442 else
9443 echo "$progname: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9445 fi
9446 rm -f conftest* conftst*
9447
9448 # Do not use the global_symbol_pipe unless it works.
9449 if test "$pipe_works" = yes; then
9450 break
9451 else
9452 lt_cv_sys_global_symbol_pipe=
9453 fi
9454done
9455
9456fi
9457
9458if test -z "$lt_cv_sys_global_symbol_pipe"; then
9459 lt_cv_sys_global_symbol_to_cdecl=
9460fi
9461if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009462 { echo "$as_me:$LINENO: result: failed" >&5
9463echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009465 { echo "$as_me:$LINENO: result: ok" >&5
9466echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009467fi
9468
9469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009470{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9471echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9472if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009474else
9475 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9476 libltdl_cv_preloaded_symbols=yes
9477 else
9478 libltdl_cv_preloaded_symbols=no
9479 fi
9480
9481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009482{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9483echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009484if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009486cat >>confdefs.h <<\_ACEOF
9487#define HAVE_PRELOADED_SYMBOLS 1
9488_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009489
9490fi
9491
9492LIBADD_DL=
9493
9494ac_ext=c
9495ac_cpp='$CPP $CPPFLAGS'
9496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498ac_compiler_gnu=$ac_cv_c_compiler_gnu
9499
9500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009501{ echo "$as_me:$LINENO: checking for shl_load" >&5
9502echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9503if test "${ac_cv_func_shl_load+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505else
9506 cat >conftest.$ac_ext <<_ACEOF
9507/* confdefs.h. */
9508_ACEOF
9509cat confdefs.h >>conftest.$ac_ext
9510cat >>conftest.$ac_ext <<_ACEOF
9511/* end confdefs.h. */
9512/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9514#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009516/* System header to define __stub macros and hopefully few prototypes,
9517 which can conflict with char shl_load (); below.
9518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9519 <limits.h> exists even on freestanding compilers. */
9520
9521#ifdef __STDC__
9522# include <limits.h>
9523#else
9524# include <assert.h>
9525#endif
9526
9527#undef shl_load
9528
9529/* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9532#ifdef __cplusplus
9533extern "C"
9534#endif
9535char shl_load ();
9536/* The GNU C library defines this for functions which it implements
9537 to always fail with ENOSYS. Some functions are actually named
9538 something starting with __ and the normal name is an alias. */
9539#if defined __stub_shl_load || defined __stub___shl_load
9540choke me
9541#endif
9542
9543int
9544main ()
9545{
9546return shl_load ();
9547 ;
9548 return 0;
9549}
9550_ACEOF
9551rm -f conftest.$ac_objext conftest$ac_exeext
9552if { (ac_try="$ac_link"
9553case "(($ac_try" in
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9556esac
9557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_link") 2>conftest.er1
9559 ac_status=$?
9560 grep -v '^ *+' conftest.er1 >conftest.err
9561 rm -f conftest.er1
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9566 { (case "(($ac_try" in
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9569esac
9570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_try") 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try='test -s conftest$ac_exeext'
9576 { (case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579esac
9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_try") 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9585 ac_cv_func_shl_load=yes
9586else
9587 echo "$as_me: failed program was:" >&5
9588sed 's/^/| /' conftest.$ac_ext >&5
9589
9590 ac_cv_func_shl_load=no
9591fi
9592
9593rm -f core conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
9595fi
9596{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9597echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9598if test $ac_cv_func_shl_load = yes; then
9599
9600cat >>confdefs.h <<\_ACEOF
9601#define HAVE_SHL_LOAD 1
9602_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009603
9604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009605 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9606echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9607if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009609else
9610 ac_check_lib_save_LIBS=$LIBS
9611LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009612cat >conftest.$ac_ext <<_ACEOF
9613/* confdefs.h. */
9614_ACEOF
9615cat confdefs.h >>conftest.$ac_ext
9616cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617/* end confdefs.h. */
9618
Reid Spencera773bd52006-08-04 18:18:08 +00009619/* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009622#ifdef __cplusplus
9623extern "C"
9624#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625char shl_load ();
9626int
9627main ()
9628{
Reid Spencera773bd52006-08-04 18:18:08 +00009629return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630 ;
9631 return 0;
9632}
9633_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009634rm -f conftest.$ac_objext conftest$ac_exeext
9635if { (ac_try="$ac_link"
9636case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639esac
9640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9649 { (case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652esac
9653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_try") 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest$ac_exeext'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668 ac_cv_lib_dld_shl_load=yes
9669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009670 echo "$as_me: failed program was:" >&5
9671sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009675
Bill Wendlingebcceee2009-04-18 11:20:33 +00009676rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009677 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009678LIBS=$ac_check_lib_save_LIBS
9679fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009680{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9681echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9682if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009684cat >>confdefs.h <<\_ACEOF
9685#define HAVE_SHL_LOAD 1
9686_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009687
9688 LIBADD_DL="$LIBADD_DL -ldld"
9689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009690 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9691echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9692if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009694else
9695 ac_check_lib_save_LIBS=$LIBS
9696LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009697cat >conftest.$ac_ext <<_ACEOF
9698/* confdefs.h. */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009702/* end confdefs.h. */
9703
Reid Spencera773bd52006-08-04 18:18:08 +00009704/* Override any GCC internal prototype to avoid an error.
9705 Use char because int might match the return type of a GCC
9706 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009707#ifdef __cplusplus
9708extern "C"
9709#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009710char dlopen ();
9711int
9712main ()
9713{
Reid Spencera773bd52006-08-04 18:18:08 +00009714return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009715 ;
9716 return 0;
9717}
9718_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009719rm -f conftest.$ac_objext conftest$ac_exeext
9720if { (ac_try="$ac_link"
9721case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724esac
9725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9734 { (case "(($ac_try" in
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9737esac
9738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_try") 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; } &&
9743 { ac_try='test -s conftest$ac_exeext'
9744 { (case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747esac
9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_try") 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753 ac_cv_lib_dl_dlopen=yes
9754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009755 echo "$as_me: failed program was:" >&5
9756sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009759fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009760
Bill Wendlingebcceee2009-04-18 11:20:33 +00009761rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009762 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763LIBS=$ac_check_lib_save_LIBS
9764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009765{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9766echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9767if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009769cat >>confdefs.h <<\_ACEOF
9770#define HAVE_LIBDL 1
9771_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772
9773 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9774else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009775 cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780/* end confdefs.h. */
9781#if HAVE_DLFCN_H
9782# include <dlfcn.h>
9783#endif
9784
9785int
9786main ()
9787{
9788dlopen(0, 0);
9789 ;
9790 return 0;
9791}
9792_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009793rm -f conftest.$ac_objext conftest$ac_exeext
9794if { (ac_try="$ac_link"
9795case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798esac
9799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_link") 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9808 { (case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811esac
9812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_try") 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest$ac_exeext'
9818 { (case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821esac
9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_try") 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009828cat >>confdefs.h <<\_ACEOF
9829#define HAVE_LIBDL 1
9830_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009831 libltdl_cv_func_dlopen="yes"
9832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009833 echo "$as_me: failed program was:" >&5
9834sed 's/^/| /' conftest.$ac_ext >&5
9835
9836 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9837echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9838if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009840else
9841 ac_check_lib_save_LIBS=$LIBS
9842LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009843cat >conftest.$ac_ext <<_ACEOF
9844/* confdefs.h. */
9845_ACEOF
9846cat confdefs.h >>conftest.$ac_ext
9847cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848/* end confdefs.h. */
9849
Reid Spencera773bd52006-08-04 18:18:08 +00009850/* Override any GCC internal prototype to avoid an error.
9851 Use char because int might match the return type of a GCC
9852 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853#ifdef __cplusplus
9854extern "C"
9855#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856char dlopen ();
9857int
9858main ()
9859{
Reid Spencera773bd52006-08-04 18:18:08 +00009860return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861 ;
9862 return 0;
9863}
9864_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009865rm -f conftest.$ac_objext conftest$ac_exeext
9866if { (ac_try="$ac_link"
9867case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9870esac
9871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>conftest.er1
9873 ac_status=$?
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883esac
9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; } &&
9889 { ac_try='test -s conftest$ac_exeext'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899 ac_cv_lib_svld_dlopen=yes
9900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009901 echo "$as_me: failed program was:" >&5
9902sed 's/^/| /' conftest.$ac_ext >&5
9903
9904 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009906
Bill Wendlingebcceee2009-04-18 11:20:33 +00009907rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009908 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909LIBS=$ac_check_lib_save_LIBS
9910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009911{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9912echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9913if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009915cat >>confdefs.h <<\_ACEOF
9916#define HAVE_LIBDL 1
9917_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918
9919 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009921 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9922echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9923if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009925else
9926 ac_check_lib_save_LIBS=$LIBS
9927LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009928cat >conftest.$ac_ext <<_ACEOF
9929/* confdefs.h. */
9930_ACEOF
9931cat confdefs.h >>conftest.$ac_ext
9932cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933/* end confdefs.h. */
9934
Reid Spencera773bd52006-08-04 18:18:08 +00009935/* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938#ifdef __cplusplus
9939extern "C"
9940#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009941char dld_link ();
9942int
9943main ()
9944{
Reid Spencera773bd52006-08-04 18:18:08 +00009945return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946 ;
9947 return 0;
9948}
9949_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009950rm -f conftest.$ac_objext conftest$ac_exeext
9951if { (ac_try="$ac_link"
9952case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955esac
9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9958 ac_status=$?
9959 grep -v '^ *+' conftest.er1 >conftest.err
9960 rm -f conftest.er1
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9965 { (case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968esac
9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_try") 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978esac
9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_try") 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009984 ac_cv_lib_dld_dld_link=yes
9985else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009986 echo "$as_me: failed program was:" >&5
9987sed 's/^/| /' conftest.$ac_ext >&5
9988
9989 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009991
Bill Wendlingebcceee2009-04-18 11:20:33 +00009992rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009993 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994LIBS=$ac_check_lib_save_LIBS
9995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009996{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9997echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9998if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010000cat >>confdefs.h <<\_ACEOF
10001#define HAVE_DLD 1
10002_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003
10004 LIBADD_DL="$LIBADD_DL -ldld"
10005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010006 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10007echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10008if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010else
10011 cat >conftest.$ac_ext <<_ACEOF
10012/* confdefs.h. */
10013_ACEOF
10014cat confdefs.h >>conftest.$ac_ext
10015cat >>conftest.$ac_ext <<_ACEOF
10016/* end confdefs.h. */
10017/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10019#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010021/* System header to define __stub macros and hopefully few prototypes,
10022 which can conflict with char _dyld_func_lookup (); below.
10023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10024 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010026#ifdef __STDC__
10027# include <limits.h>
10028#else
10029# include <assert.h>
10030#endif
10031
10032#undef _dyld_func_lookup
10033
10034/* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10037#ifdef __cplusplus
10038extern "C"
10039#endif
10040char _dyld_func_lookup ();
10041/* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10045choke me
10046#endif
10047
10048int
10049main ()
10050{
10051return _dyld_func_lookup ();
10052 ;
10053 return 0;
10054}
10055_ACEOF
10056rm -f conftest.$ac_objext conftest$ac_exeext
10057if { (ac_try="$ac_link"
10058case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10061esac
10062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_link") 2>conftest.er1
10064 ac_status=$?
10065 grep -v '^ *+' conftest.er1 >conftest.err
10066 rm -f conftest.er1
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10071 { (case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10074esac
10075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_try") 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; } &&
10080 { ac_try='test -s conftest$ac_exeext'
10081 { (case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10084esac
10085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_try") 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 ac_cv_func__dyld_func_lookup=yes
10091else
10092 echo "$as_me: failed program was:" >&5
10093sed 's/^/| /' conftest.$ac_ext >&5
10094
10095 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010096fi
Reid Spencera773bd52006-08-04 18:18:08 +000010097
Bill Wendlingebcceee2009-04-18 11:20:33 +000010098rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010099 conftest$ac_exeext conftest.$ac_ext
10100fi
10101{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10102echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10103if test $ac_cv_func__dyld_func_lookup = yes; then
10104
10105cat >>confdefs.h <<\_ACEOF
10106#define HAVE_DYLD 1
10107_ACEOF
10108
10109fi
10110
10111
10112fi
10113
10114
10115fi
10116
10117
10118fi
10119
10120rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010122
10123fi
10124
10125
10126fi
10127
10128
10129fi
10130
10131
10132if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10133then
10134 lt_save_LIBS="$LIBS"
10135 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010136
10137for ac_func in dlerror
10138do
10139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10140{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10142if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10144else
10145 cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h. */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h. */
10151/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10153#define $ac_func innocuous_$ac_func
10154
10155/* System header to define __stub macros and hopefully few prototypes,
10156 which can conflict with char $ac_func (); below.
10157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158 <limits.h> exists even on freestanding compilers. */
10159
10160#ifdef __STDC__
10161# include <limits.h>
10162#else
10163# include <assert.h>
10164#endif
10165
10166#undef $ac_func
10167
10168/* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10171#ifdef __cplusplus
10172extern "C"
10173#endif
10174char $ac_func ();
10175/* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178#if defined __stub_$ac_func || defined __stub___$ac_func
10179choke me
10180#endif
10181
10182int
10183main ()
10184{
10185return $ac_func ();
10186 ;
10187 return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext conftest$ac_exeext
10191if { (ac_try="$ac_link"
10192case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195esac
10196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>conftest.er1
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208esac
10209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218esac
10219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 eval "$as_ac_var=yes"
10225else
10226 echo "$as_me: failed program was:" >&5
10227sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 eval "$as_ac_var=no"
10230fi
10231
10232rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234fi
10235ac_res=`eval echo '${'$as_ac_var'}'`
10236 { echo "$as_me:$LINENO: result: $ac_res" >&5
10237echo "${ECHO_T}$ac_res" >&6; }
10238if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010240#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010241_ACEOF
10242
10243fi
10244done
10245
10246 LIBS="$lt_save_LIBS"
10247fi
10248ac_ext=c
10249ac_cpp='$CPP $CPPFLAGS'
10250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10252ac_compiler_gnu=$ac_cv_c_compiler_gnu
10253
10254
10255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010256{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10257echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10258if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260else
10261 ac_cv_sys_symbol_underscore=no
10262 cat > conftest.$ac_ext <<EOF
10263void nm_test_func(){}
10264int main(){nm_test_func;return 0;}
10265EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267 (eval $ac_compile) 2>&5
10268 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271 # Now try to grab the symbols.
10272 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010273 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 +000010274 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10275 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278 # See whether the symbols have a leading underscore.
10279 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10280 ac_cv_sys_symbol_underscore=yes
10281 else
10282 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10283 :
10284 else
10285 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10286 fi
10287 fi
10288 else
10289 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10290 fi
10291 else
10292 echo "configure: failed program was:" >&5
10293 cat conftest.c >&5
10294 fi
10295 rm -rf conftest*
10296
10297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010298{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10299echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300
10301
10302if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10303 if test x"$libltdl_cv_func_dlopen" = xyes ||
10304 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010305 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10306echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10307if test "${libltdl_cv_need_uscore+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010309else
10310 libltdl_cv_need_uscore=unknown
10311 save_LIBS="$LIBS"
10312 LIBS="$LIBS $LIBADD_DL"
10313 if test "$cross_compiling" = yes; then :
10314 libltdl_cv_need_uscore=cross
10315else
10316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10317 lt_status=$lt_dlunknown
10318 cat > conftest.$ac_ext <<EOF
Jordan Rose85042e62012-09-26 00:01:00 +000010319#line 10319 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320#include "confdefs.h"
10321
10322#if HAVE_DLFCN_H
10323#include <dlfcn.h>
10324#endif
10325
10326#include <stdio.h>
10327
10328#ifdef RTLD_GLOBAL
10329# define LT_DLGLOBAL RTLD_GLOBAL
10330#else
10331# ifdef DL_GLOBAL
10332# define LT_DLGLOBAL DL_GLOBAL
10333# else
10334# define LT_DLGLOBAL 0
10335# endif
10336#endif
10337
10338/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10339 find out it does not work in some platform. */
10340#ifndef LT_DLLAZY_OR_NOW
10341# ifdef RTLD_LAZY
10342# define LT_DLLAZY_OR_NOW RTLD_LAZY
10343# else
10344# ifdef DL_LAZY
10345# define LT_DLLAZY_OR_NOW DL_LAZY
10346# else
10347# ifdef RTLD_NOW
10348# define LT_DLLAZY_OR_NOW RTLD_NOW
10349# else
10350# ifdef DL_NOW
10351# define LT_DLLAZY_OR_NOW DL_NOW
10352# else
10353# define LT_DLLAZY_OR_NOW 0
10354# endif
10355# endif
10356# endif
10357# endif
10358#endif
10359
10360#ifdef __cplusplus
10361extern "C" void exit (int);
10362#endif
10363
10364void fnord() { int i=42;}
10365int main ()
10366{
10367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10368 int status = $lt_dlunknown;
10369
10370 if (self)
10371 {
10372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10374 /* dlclose (self); */
10375 }
Reid Spencera773bd52006-08-04 18:18:08 +000010376 else
10377 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378
10379 exit (status);
10380}
10381EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383 (eval $ac_link) 2>&5
10384 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010387 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010388 lt_status=$?
10389 case x$lt_status in
10390 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10391 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010392 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010393 esac
10394 else :
10395 # compilation failed
10396
10397 fi
10398fi
10399rm -fr conftest*
10400
10401 LIBS="$save_LIBS"
10402
10403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010404{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10405echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406 fi
10407fi
10408
10409if test x"$libltdl_cv_need_uscore" = xyes; then
10410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010411cat >>confdefs.h <<\_ACEOF
10412#define NEED_USCORE 1
10413_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414
10415fi
10416
10417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010418{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10419echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10420if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010422else
10423 # PORTME does your system automatically load deplibs for dlopen?
10424 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10425 # For now, we just catch OSes we know something about -- in the
10426 # future, we'll try test this programmatically.
10427 libltdl_cv_sys_dlopen_deplibs=unknown
10428 case "$host_os" in
10429 aix3*|aix4.1.*|aix4.2.*)
10430 # Unknown whether this is true for these versions of AIX, but
10431 # we want this `case' here to explicitly catch those versions.
10432 libltdl_cv_sys_dlopen_deplibs=unknown
10433 ;;
10434 aix[45]*)
10435 libltdl_cv_sys_dlopen_deplibs=yes
10436 ;;
10437 darwin*)
10438 # Assuming the user has installed a libdl from somewhere, this is true
10439 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10440 libltdl_cv_sys_dlopen_deplibs=yes
10441 ;;
10442 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10443 # GNU and its variants, using gnu ld.so (Glibc)
10444 libltdl_cv_sys_dlopen_deplibs=yes
10445 ;;
10446 hpux10*|hpux11*)
10447 libltdl_cv_sys_dlopen_deplibs=yes
10448 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010449 interix*)
10450 libltdl_cv_sys_dlopen_deplibs=yes
10451 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452 irix[12345]*|irix6.[01]*)
10453 # Catch all versions of IRIX before 6.2, and indicate that we don't
10454 # know how it worked for any of those versions.
10455 libltdl_cv_sys_dlopen_deplibs=unknown
10456 ;;
10457 irix*)
10458 # The case above catches anything before 6.2, and it's known that
10459 # at 6.2 and later dlopen does load deplibs.
10460 libltdl_cv_sys_dlopen_deplibs=yes
10461 ;;
10462 netbsd*)
10463 libltdl_cv_sys_dlopen_deplibs=yes
10464 ;;
10465 openbsd*)
10466 libltdl_cv_sys_dlopen_deplibs=yes
10467 ;;
10468 osf[1234]*)
10469 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10470 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010471 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472 libltdl_cv_sys_dlopen_deplibs=no
10473 ;;
10474 osf5.0|osf5.0a|osf5.1)
10475 # dlopen *does* load deplibs and with the right loader patch applied
10476 # it even uses RPATH in a shared library to search for shared objects
10477 # that the library depends on, but there's no easy way to know if that
10478 # patch is installed. Since this is the case, all we can really
10479 # say is unknown -- it depends on the patch being installed. If
10480 # it is, this changes to `yes'. Without it, it would be `no'.
10481 libltdl_cv_sys_dlopen_deplibs=unknown
10482 ;;
10483 osf*)
10484 # the two cases above should catch all versions of osf <= 5.1. Read
10485 # the comments above for what we know about them.
10486 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10487 # is used to find them so we can finally say `yes'.
10488 libltdl_cv_sys_dlopen_deplibs=yes
10489 ;;
10490 solaris*)
10491 libltdl_cv_sys_dlopen_deplibs=yes
10492 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10494 libltdl_cv_sys_dlopen_deplibs=yes
10495 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496 esac
10497
10498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010499{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10500echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010503cat >>confdefs.h <<\_ACEOF
10504#define LTDL_DLOPEN_DEPLIBS 1
10505_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506
10507fi
10508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010509
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010511do
10512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518fi
10519ac_res=`eval echo '${'$as_ac_Header'}'`
10520 { echo "$as_me:$LINENO: result: $ac_res" >&5
10521echo "${ECHO_T}$ac_res" >&6; }
10522else
10523 # Is the header compilable?
10524{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10526cat >conftest.$ac_ext <<_ACEOF
10527/* confdefs.h. */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h. */
10532$ac_includes_default
10533#include <$ac_header>
10534_ACEOF
10535rm -f conftest.$ac_objext
10536if { (ac_try="$ac_compile"
10537case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10540esac
10541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_compile") 2>conftest.er1
10543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553esac
10554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest.$ac_objext'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10563esac
10564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 ac_header_compiler=yes
10570else
10571 echo "$as_me: failed program was:" >&5
10572sed 's/^/| /' conftest.$ac_ext >&5
10573
10574 ac_header_compiler=no
10575fi
10576
10577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10578{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10579echo "${ECHO_T}$ac_header_compiler" >&6; }
10580
10581# Is the header present?
10582{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10584cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
10590#include <$ac_header>
10591_ACEOF
10592if { (ac_try="$ac_cpp conftest.$ac_ext"
10593case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596esac
10597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } >/dev/null; then
10605 if test -s conftest.err; then
10606 ac_cpp_err=$ac_c_preproc_warn_flag
10607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10608 else
10609 ac_cpp_err=
10610 fi
10611else
10612 ac_cpp_err=yes
10613fi
10614if test -z "$ac_cpp_err"; then
10615 ac_header_preproc=yes
10616else
10617 echo "$as_me: failed program was:" >&5
10618sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_header_preproc=no
10621fi
10622
10623rm -f conftest.err conftest.$ac_ext
10624{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10625echo "${ECHO_T}$ac_header_preproc" >&6; }
10626
10627# So? What about this header?
10628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10629 yes:no: )
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10634 ac_header_preproc=yes
10635 ;;
10636 no:yes:* )
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10640echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10644echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10649 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010650## ------------------------------------ ##
10651## Report this to http://llvm.org/bugs/ ##
10652## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010653_ASBOX
10654 ) | sed "s/^/$as_me: WARNING: /" >&2
10655 ;;
10656esac
10657{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661else
10662 eval "$as_ac_Header=\$ac_header_preproc"
10663fi
10664ac_res=`eval echo '${'$as_ac_Header'}'`
10665 { echo "$as_me:$LINENO: result: $ac_res" >&5
10666echo "${ECHO_T}$ac_res" >&6; }
10667
10668fi
10669if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010672_ACEOF
10673
10674fi
10675
10676done
10677
10678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010679{ echo "$as_me:$LINENO: checking for error_t" >&5
10680echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10681if test "${ac_cv_type_error_t+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683else
10684 cat >conftest.$ac_ext <<_ACEOF
10685/* confdefs.h. */
10686_ACEOF
10687cat confdefs.h >>conftest.$ac_ext
10688cat >>conftest.$ac_ext <<_ACEOF
10689/* end confdefs.h. */
10690#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010691# include <argz.h>
10692#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010693
10694typedef error_t ac__type_new_;
10695int
10696main ()
10697{
10698if ((ac__type_new_ *) 0)
10699 return 0;
10700if (sizeof (ac__type_new_))
10701 return 0;
10702 ;
10703 return 0;
10704}
10705_ACEOF
10706rm -f conftest.$ac_objext
10707if { (ac_try="$ac_compile"
10708case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711esac
10712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724esac
10725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_cv_type_error_t=yes
10741else
10742 echo "$as_me: failed program was:" >&5
10743sed 's/^/| /' conftest.$ac_ext >&5
10744
10745 ac_cv_type_error_t=no
10746fi
10747
10748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749fi
10750{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10751echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10752if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010753
10754cat >>confdefs.h <<_ACEOF
10755#define HAVE_ERROR_T 1
10756_ACEOF
10757
10758
10759else
10760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010761cat >>confdefs.h <<\_ACEOF
10762#define error_t int
10763_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764
10765fi
10766
10767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010768
10769
10770
10771
10772
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010773for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010774do
10775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10776{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10778if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780else
10781 cat >conftest.$ac_ext <<_ACEOF
10782/* confdefs.h. */
10783_ACEOF
10784cat confdefs.h >>conftest.$ac_ext
10785cat >>conftest.$ac_ext <<_ACEOF
10786/* end confdefs.h. */
10787/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10789#define $ac_func innocuous_$ac_func
10790
10791/* System header to define __stub macros and hopefully few prototypes,
10792 which can conflict with char $ac_func (); below.
10793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10794 <limits.h> exists even on freestanding compilers. */
10795
10796#ifdef __STDC__
10797# include <limits.h>
10798#else
10799# include <assert.h>
10800#endif
10801
10802#undef $ac_func
10803
10804/* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10807#ifdef __cplusplus
10808extern "C"
10809#endif
10810char $ac_func ();
10811/* The GNU C library defines this for functions which it implements
10812 to always fail with ENOSYS. Some functions are actually named
10813 something starting with __ and the normal name is an alias. */
10814#if defined __stub_$ac_func || defined __stub___$ac_func
10815choke me
10816#endif
10817
10818int
10819main ()
10820{
10821return $ac_func ();
10822 ;
10823 return 0;
10824}
10825_ACEOF
10826rm -f conftest.$ac_objext conftest$ac_exeext
10827if { (ac_try="$ac_link"
10828case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831esac
10832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10841 { (case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10844esac
10845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_try") 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest$ac_exeext'
10851 { (case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854esac
10855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_try") 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 eval "$as_ac_var=yes"
10861else
10862 echo "$as_me: failed program was:" >&5
10863sed 's/^/| /' conftest.$ac_ext >&5
10864
10865 eval "$as_ac_var=no"
10866fi
10867
10868rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext conftest.$ac_ext
10870fi
10871ac_res=`eval echo '${'$as_ac_var'}'`
10872 { echo "$as_me:$LINENO: result: $ac_res" >&5
10873echo "${ECHO_T}$ac_res" >&6; }
10874if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010875 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010876#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877_ACEOF
10878
10879fi
10880done
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010901
10902
10903
10904
10905
10906
10907
10908
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10910 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010911do
10912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918fi
10919ac_res=`eval echo '${'$as_ac_Header'}'`
10920 { echo "$as_me:$LINENO: result: $ac_res" >&5
10921echo "${ECHO_T}$ac_res" >&6; }
10922else
10923 # Is the header compilable?
10924{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10926cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */
10932$ac_includes_default
10933#include <$ac_header>
10934_ACEOF
10935rm -f conftest.$ac_objext
10936if { (ac_try="$ac_compile"
10937case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10940esac
10941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_compile") 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953esac
10954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest.$ac_objext'
10960 { (case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10963esac
10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_try") 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_header_compiler=yes
10970else
10971 echo "$as_me: failed program was:" >&5
10972sed 's/^/| /' conftest.$ac_ext >&5
10973
10974 ac_header_compiler=no
10975fi
10976
10977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10979echo "${ECHO_T}$ac_header_compiler" >&6; }
10980
10981# Is the header present?
10982{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10984cat >conftest.$ac_ext <<_ACEOF
10985/* confdefs.h. */
10986_ACEOF
10987cat confdefs.h >>conftest.$ac_ext
10988cat >>conftest.$ac_ext <<_ACEOF
10989/* end confdefs.h. */
10990#include <$ac_header>
10991_ACEOF
10992if { (ac_try="$ac_cpp conftest.$ac_ext"
10993case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } >/dev/null; then
11005 if test -s conftest.err; then
11006 ac_cpp_err=$ac_c_preproc_warn_flag
11007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11008 else
11009 ac_cpp_err=
11010 fi
11011else
11012 ac_cpp_err=yes
11013fi
11014if test -z "$ac_cpp_err"; then
11015 ac_header_preproc=yes
11016else
11017 echo "$as_me: failed program was:" >&5
11018sed 's/^/| /' conftest.$ac_ext >&5
11019
11020 ac_header_preproc=no
11021fi
11022
11023rm -f conftest.err conftest.$ac_ext
11024{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11025echo "${ECHO_T}$ac_header_preproc" >&6; }
11026
11027# So? What about this header?
11028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11029 yes:no: )
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11033echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11034 ac_header_preproc=yes
11035 ;;
11036 no:yes:* )
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11038echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11040echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11042echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11044echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11048echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11049 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011050## ------------------------------------ ##
11051## Report this to http://llvm.org/bugs/ ##
11052## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011053_ASBOX
11054 ) | sed "s/^/$as_me: WARNING: /" >&2
11055 ;;
11056esac
11057{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061else
11062 eval "$as_ac_Header=\$ac_header_preproc"
11063fi
11064ac_res=`eval echo '${'$as_ac_Header'}'`
11065 { echo "$as_me:$LINENO: result: $ac_res" >&5
11066echo "${ECHO_T}$ac_res" >&6; }
11067
11068fi
11069if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011070 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072_ACEOF
11073
11074fi
11075
11076done
11077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011078
11079
11080
11081
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011083do
11084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11090fi
11091ac_res=`eval echo '${'$as_ac_Header'}'`
11092 { echo "$as_me:$LINENO: result: $ac_res" >&5
11093echo "${ECHO_T}$ac_res" >&6; }
11094else
11095 # Is the header compilable?
11096{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11098cat >conftest.$ac_ext <<_ACEOF
11099/* confdefs.h. */
11100_ACEOF
11101cat confdefs.h >>conftest.$ac_ext
11102cat >>conftest.$ac_ext <<_ACEOF
11103/* end confdefs.h. */
11104$ac_includes_default
11105#include <$ac_header>
11106_ACEOF
11107rm -f conftest.$ac_objext
11108if { (ac_try="$ac_compile"
11109case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112esac
11113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_compile") 2>conftest.er1
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } &&
11121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11122 { (case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125esac
11126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_try") 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; } &&
11131 { ac_try='test -s conftest.$ac_objext'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135esac
11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_header_compiler=yes
11142else
11143 echo "$as_me: failed program was:" >&5
11144sed 's/^/| /' conftest.$ac_ext >&5
11145
11146 ac_header_compiler=no
11147fi
11148
11149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11151echo "${ECHO_T}$ac_header_compiler" >&6; }
11152
11153# Is the header present?
11154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11156cat >conftest.$ac_ext <<_ACEOF
11157/* confdefs.h. */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h. */
11162#include <$ac_header>
11163_ACEOF
11164if { (ac_try="$ac_cpp conftest.$ac_ext"
11165case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168esac
11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } >/dev/null; then
11177 if test -s conftest.err; then
11178 ac_cpp_err=$ac_c_preproc_warn_flag
11179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11180 else
11181 ac_cpp_err=
11182 fi
11183else
11184 ac_cpp_err=yes
11185fi
11186if test -z "$ac_cpp_err"; then
11187 ac_header_preproc=yes
11188else
11189 echo "$as_me: failed program was:" >&5
11190sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 ac_header_preproc=no
11193fi
11194
11195rm -f conftest.err conftest.$ac_ext
11196{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11197echo "${ECHO_T}$ac_header_preproc" >&6; }
11198
11199# So? What about this header?
11200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11201 yes:no: )
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11206 ac_header_preproc=yes
11207 ;;
11208 no:yes:* )
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11221 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011222## ------------------------------------ ##
11223## Report this to http://llvm.org/bugs/ ##
11224## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011225_ASBOX
11226 ) | sed "s/^/$as_me: WARNING: /" >&2
11227 ;;
11228esac
11229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 eval "$as_ac_Header=\$ac_header_preproc"
11235fi
11236ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238echo "${ECHO_T}$ac_res" >&6; }
11239
11240fi
11241if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011244_ACEOF
11245
11246fi
11247
11248done
11249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011250
11251
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011252for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011253do
11254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11260fi
11261ac_res=`eval echo '${'$as_ac_Header'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263echo "${ECHO_T}$ac_res" >&6; }
11264else
11265 # Is the header compilable?
11266{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11268cat >conftest.$ac_ext <<_ACEOF
11269/* confdefs.h. */
11270_ACEOF
11271cat confdefs.h >>conftest.$ac_ext
11272cat >>conftest.$ac_ext <<_ACEOF
11273/* end confdefs.h. */
11274$ac_includes_default
11275#include <$ac_header>
11276_ACEOF
11277rm -f conftest.$ac_objext
11278if { (ac_try="$ac_compile"
11279case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11282esac
11283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_compile") 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11292 { (case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295esac
11296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_try") 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; } &&
11301 { ac_try='test -s conftest.$ac_objext'
11302 { (case "(($ac_try" in
11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304 *) ac_try_echo=$ac_try;;
11305esac
11306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307 (eval "$ac_try") 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 ac_header_compiler=yes
11312else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 ac_header_compiler=no
11317fi
11318
11319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11321echo "${ECHO_T}$ac_header_compiler" >&6; }
11322
11323# Is the header present?
11324{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11326cat >conftest.$ac_ext <<_ACEOF
11327/* confdefs.h. */
11328_ACEOF
11329cat confdefs.h >>conftest.$ac_ext
11330cat >>conftest.$ac_ext <<_ACEOF
11331/* end confdefs.h. */
11332#include <$ac_header>
11333_ACEOF
11334if { (ac_try="$ac_cpp conftest.$ac_ext"
11335case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11338esac
11339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11341 ac_status=$?
11342 grep -v '^ *+' conftest.er1 >conftest.err
11343 rm -f conftest.er1
11344 cat conftest.err >&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } >/dev/null; then
11347 if test -s conftest.err; then
11348 ac_cpp_err=$ac_c_preproc_warn_flag
11349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11350 else
11351 ac_cpp_err=
11352 fi
11353else
11354 ac_cpp_err=yes
11355fi
11356if test -z "$ac_cpp_err"; then
11357 ac_header_preproc=yes
11358else
11359 echo "$as_me: failed program was:" >&5
11360sed 's/^/| /' conftest.$ac_ext >&5
11361
11362 ac_header_preproc=no
11363fi
11364
11365rm -f conftest.err conftest.$ac_ext
11366{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11367echo "${ECHO_T}$ac_header_preproc" >&6; }
11368
11369# So? What about this header?
11370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11371 yes:no: )
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11376 ac_header_preproc=yes
11377 ;;
11378 no:yes:* )
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11382echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11386echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11391 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011392## ------------------------------------ ##
11393## Report this to http://llvm.org/bugs/ ##
11394## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011395_ASBOX
11396 ) | sed "s/^/$as_me: WARNING: /" >&2
11397 ;;
11398esac
11399{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403else
11404 eval "$as_ac_Header=\$ac_header_preproc"
11405fi
11406ac_res=`eval echo '${'$as_ac_Header'}'`
11407 { echo "$as_me:$LINENO: result: $ac_res" >&5
11408echo "${ECHO_T}$ac_res" >&6; }
11409
11410fi
11411if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011414_ACEOF
11415 break
11416fi
11417
11418done
11419
11420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011421
11422
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011424do
11425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11426{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11428if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430else
11431 cat >conftest.$ac_ext <<_ACEOF
11432/* confdefs.h. */
11433_ACEOF
11434cat confdefs.h >>conftest.$ac_ext
11435cat >>conftest.$ac_ext <<_ACEOF
11436/* end confdefs.h. */
11437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11439#define $ac_func innocuous_$ac_func
11440
11441/* System header to define __stub macros and hopefully few prototypes,
11442 which can conflict with char $ac_func (); below.
11443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444 <limits.h> exists even on freestanding compilers. */
11445
11446#ifdef __STDC__
11447# include <limits.h>
11448#else
11449# include <assert.h>
11450#endif
11451
11452#undef $ac_func
11453
11454/* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11457#ifdef __cplusplus
11458extern "C"
11459#endif
11460char $ac_func ();
11461/* The GNU C library defines this for functions which it implements
11462 to always fail with ENOSYS. Some functions are actually named
11463 something starting with __ and the normal name is an alias. */
11464#if defined __stub_$ac_func || defined __stub___$ac_func
11465choke me
11466#endif
11467
11468int
11469main ()
11470{
11471return $ac_func ();
11472 ;
11473 return 0;
11474}
11475_ACEOF
11476rm -f conftest.$ac_objext conftest$ac_exeext
11477if { (ac_try="$ac_link"
11478case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481esac
11482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_link") 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11491 { (case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494esac
11495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_try") 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest$ac_exeext'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504esac
11505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 eval "$as_ac_var=yes"
11511else
11512 echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 eval "$as_ac_var=no"
11516fi
11517
11518rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520fi
11521ac_res=`eval echo '${'$as_ac_var'}'`
11522 { echo "$as_me:$LINENO: result: $ac_res" >&5
11523echo "${ECHO_T}$ac_res" >&6; }
11524if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527_ACEOF
11528 break
11529fi
11530done
11531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011532
11533
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011535do
11536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11537{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11539if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11541else
11542 cat >conftest.$ac_ext <<_ACEOF
11543/* confdefs.h. */
11544_ACEOF
11545cat confdefs.h >>conftest.$ac_ext
11546cat >>conftest.$ac_ext <<_ACEOF
11547/* end confdefs.h. */
11548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11550#define $ac_func innocuous_$ac_func
11551
11552/* System header to define __stub macros and hopefully few prototypes,
11553 which can conflict with char $ac_func (); below.
11554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11555 <limits.h> exists even on freestanding compilers. */
11556
11557#ifdef __STDC__
11558# include <limits.h>
11559#else
11560# include <assert.h>
11561#endif
11562
11563#undef $ac_func
11564
11565/* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11568#ifdef __cplusplus
11569extern "C"
11570#endif
11571char $ac_func ();
11572/* The GNU C library defines this for functions which it implements
11573 to always fail with ENOSYS. Some functions are actually named
11574 something starting with __ and the normal name is an alias. */
11575#if defined __stub_$ac_func || defined __stub___$ac_func
11576choke me
11577#endif
11578
11579int
11580main ()
11581{
11582return $ac_func ();
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext conftest$ac_exeext
11588if { (ac_try="$ac_link"
11589case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11592esac
11593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594 (eval "$ac_link") 2>conftest.er1
11595 ac_status=$?
11596 grep -v '^ *+' conftest.er1 >conftest.err
11597 rm -f conftest.er1
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11602 { (case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605esac
11606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_try") 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; } &&
11611 { ac_try='test -s conftest$ac_exeext'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 eval "$as_ac_var=yes"
11622else
11623 echo "$as_me: failed program was:" >&5
11624sed 's/^/| /' conftest.$ac_ext >&5
11625
11626 eval "$as_ac_var=no"
11627fi
11628
11629rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11631fi
11632ac_res=`eval echo '${'$as_ac_var'}'`
11633 { echo "$as_me:$LINENO: result: $ac_res" >&5
11634echo "${ECHO_T}$ac_res" >&6; }
11635if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638_ACEOF
11639 break
11640fi
11641done
11642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011643
11644
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011645for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011646do
11647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11650if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652else
11653 cat >conftest.$ac_ext <<_ACEOF
11654/* confdefs.h. */
11655_ACEOF
11656cat confdefs.h >>conftest.$ac_ext
11657cat >>conftest.$ac_ext <<_ACEOF
11658/* end confdefs.h. */
11659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11661#define $ac_func innocuous_$ac_func
11662
11663/* System header to define __stub macros and hopefully few prototypes,
11664 which can conflict with char $ac_func (); below.
11665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666 <limits.h> exists even on freestanding compilers. */
11667
11668#ifdef __STDC__
11669# include <limits.h>
11670#else
11671# include <assert.h>
11672#endif
11673
11674#undef $ac_func
11675
11676/* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11679#ifdef __cplusplus
11680extern "C"
11681#endif
11682char $ac_func ();
11683/* The GNU C library defines this for functions which it implements
11684 to always fail with ENOSYS. Some functions are actually named
11685 something starting with __ and the normal name is an alias. */
11686#if defined __stub_$ac_func || defined __stub___$ac_func
11687choke me
11688#endif
11689
11690int
11691main ()
11692{
11693return $ac_func ();
11694 ;
11695 return 0;
11696}
11697_ACEOF
11698rm -f conftest.$ac_objext conftest$ac_exeext
11699if { (ac_try="$ac_link"
11700case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11703esac
11704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_link") 2>conftest.er1
11706 ac_status=$?
11707 grep -v '^ *+' conftest.er1 >conftest.err
11708 rm -f conftest.er1
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } &&
11712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11713 { (case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716esac
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726esac
11727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_try") 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 eval "$as_ac_var=yes"
11733else
11734 echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 eval "$as_ac_var=no"
11738fi
11739
11740rm -f core conftest.err conftest.$ac_objext \
11741 conftest$ac_exeext conftest.$ac_ext
11742fi
11743ac_res=`eval echo '${'$as_ac_var'}'`
11744 { echo "$as_me:$LINENO: result: $ac_res" >&5
11745echo "${ECHO_T}$ac_res" >&6; }
11746if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011749_ACEOF
11750 break
11751fi
11752done
11753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011754
11755
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011756for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011757do
11758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11759{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11761if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764 cat >conftest.$ac_ext <<_ACEOF
11765/* confdefs.h. */
11766_ACEOF
11767cat confdefs.h >>conftest.$ac_ext
11768cat >>conftest.$ac_ext <<_ACEOF
11769/* end confdefs.h. */
11770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11772#define $ac_func innocuous_$ac_func
11773
11774/* System header to define __stub macros and hopefully few prototypes,
11775 which can conflict with char $ac_func (); below.
11776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11777 <limits.h> exists even on freestanding compilers. */
11778
11779#ifdef __STDC__
11780# include <limits.h>
11781#else
11782# include <assert.h>
11783#endif
11784
11785#undef $ac_func
11786
11787/* Override any GCC internal prototype to avoid an error.
11788 Use char because int might match the return type of a GCC
11789 builtin and then its argument prototype would still apply. */
11790#ifdef __cplusplus
11791extern "C"
11792#endif
11793char $ac_func ();
11794/* The GNU C library defines this for functions which it implements
11795 to always fail with ENOSYS. Some functions are actually named
11796 something starting with __ and the normal name is an alias. */
11797#if defined __stub_$ac_func || defined __stub___$ac_func
11798choke me
11799#endif
11800
11801int
11802main ()
11803{
11804return $ac_func ();
11805 ;
11806 return 0;
11807}
11808_ACEOF
11809rm -f conftest.$ac_objext conftest$ac_exeext
11810if { (ac_try="$ac_link"
11811case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814esac
11815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_link") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11824 { (case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827esac
11828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest$ac_exeext'
11834 { (case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837esac
11838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_try") 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 eval "$as_ac_var=yes"
11844else
11845 echo "$as_me: failed program was:" >&5
11846sed 's/^/| /' conftest.$ac_ext >&5
11847
11848 eval "$as_ac_var=no"
11849fi
11850
11851rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853fi
11854ac_res=`eval echo '${'$as_ac_var'}'`
11855 { echo "$as_me:$LINENO: result: $ac_res" >&5
11856echo "${ECHO_T}$ac_res" >&6; }
11857if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011858 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011860_ACEOF
11861
11862fi
11863done
11864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011865
11866
11867
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011868for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011869do
11870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11871{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875else
11876 cat >conftest.$ac_ext <<_ACEOF
11877/* confdefs.h. */
11878_ACEOF
11879cat confdefs.h >>conftest.$ac_ext
11880cat >>conftest.$ac_ext <<_ACEOF
11881/* end confdefs.h. */
11882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11884#define $ac_func innocuous_$ac_func
11885
11886/* System header to define __stub macros and hopefully few prototypes,
11887 which can conflict with char $ac_func (); below.
11888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11889 <limits.h> exists even on freestanding compilers. */
11890
11891#ifdef __STDC__
11892# include <limits.h>
11893#else
11894# include <assert.h>
11895#endif
11896
11897#undef $ac_func
11898
11899/* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11902#ifdef __cplusplus
11903extern "C"
11904#endif
11905char $ac_func ();
11906/* The GNU C library defines this for functions which it implements
11907 to always fail with ENOSYS. Some functions are actually named
11908 something starting with __ and the normal name is an alias. */
11909#if defined __stub_$ac_func || defined __stub___$ac_func
11910choke me
11911#endif
11912
11913int
11914main ()
11915{
11916return $ac_func ();
11917 ;
11918 return 0;
11919}
11920_ACEOF
11921rm -f conftest.$ac_objext conftest$ac_exeext
11922if { (ac_try="$ac_link"
11923case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926esac
11927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_link") 2>conftest.er1
11929 ac_status=$?
11930 grep -v '^ *+' conftest.er1 >conftest.err
11931 rm -f conftest.er1
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11936 { (case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11939esac
11940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_try") 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; } &&
11945 { ac_try='test -s conftest$ac_exeext'
11946 { (case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11949esac
11950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_try") 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 eval "$as_ac_var=yes"
11956else
11957 echo "$as_me: failed program was:" >&5
11958sed 's/^/| /' conftest.$ac_ext >&5
11959
11960 eval "$as_ac_var=no"
11961fi
11962
11963rm -f core conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
11965fi
11966ac_res=`eval echo '${'$as_ac_var'}'`
11967 { echo "$as_me:$LINENO: result: $ac_res" >&5
11968echo "${ECHO_T}$ac_res" >&6; }
11969if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011972_ACEOF
11973
11974fi
11975done
11976
11977
Douglas Gregor01746742009-05-11 18:05:52 +000011978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011979{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11980echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011981
Reid Spencer86901802004-12-08 23:07:27 +000011982ICC=no
11983IXX=no
11984case $CC in
11985 icc*|icpc*)
11986 ICC=yes
11987 IXX=yes
11988 ;;
11989 *)
11990 ;;
11991esac
11992
Duraid Madina937c60a2006-02-15 07:57:42 +000011993if test "$GCC" != "yes" && test "$ICC" != "yes"
11994then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011995 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11996echo "$as_me: error: gcc|icc required but not found" >&2;}
11997 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000011998fi
11999
12000if test "$GXX" != "yes" && test "$IXX" != "yes"
12001then
Eric Christopher73e36da2010-12-08 02:02:14 +000012002 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12003echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012004 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012005fi
12006
Reid Spencer86901802004-12-08 23:07:27 +000012007if test "$GCC" = "yes"
12008then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012009 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012010#if !defined(__GNUC__) || __GNUC__ < 3
12011#error Unsupported GCC version
12012#endif
12013
12014_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012015rm -f conftest.$ac_objext
12016if { (ac_try="$ac_compile"
12017case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020esac
12021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_compile") 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12030 { (case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033esac
12034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_try") 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest.$ac_objext'
12040 { (case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_try") 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12055echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12056 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012058
Chris Lattner399c7c72008-02-05 19:43:53 +000012059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012060fi
12061
12062if test -z "$llvm_cv_gnu_make_command"
12063then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012064 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12065echo "$as_me: error: GNU Make required but not found" >&2;}
12066 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012067fi
12068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012069{ echo "$as_me:$LINENO: result: ok" >&5
12070echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012072{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12073echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012074NO_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 +000012075
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012076NO_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 +000012077
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012078COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12079
12080{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12081echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012082
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012084
12085{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12086echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12087if test "${ac_cv_lib_m_sin+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012089else
12090 ac_check_lib_save_LIBS=$LIBS
12091LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012092cat >conftest.$ac_ext <<_ACEOF
12093/* confdefs.h. */
12094_ACEOF
12095cat confdefs.h >>conftest.$ac_ext
12096cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012097/* end confdefs.h. */
12098
Reid Spencera773bd52006-08-04 18:18:08 +000012099/* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012102#ifdef __cplusplus
12103extern "C"
12104#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012105char sin ();
12106int
12107main ()
12108{
Reid Spencera773bd52006-08-04 18:18:08 +000012109return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012110 ;
12111 return 0;
12112}
12113_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012114rm -f conftest.$ac_objext conftest$ac_exeext
12115if { (ac_try="$ac_link"
12116case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119esac
12120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_link") 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12129 { (case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132esac
12133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_try") 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest$ac_exeext'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012148 ac_cv_lib_m_sin=yes
12149else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012150 echo "$as_me: failed program was:" >&5
12151sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012155
Bill Wendlingebcceee2009-04-18 11:20:33 +000012156rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012157 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012158LIBS=$ac_check_lib_save_LIBS
12159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012160{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12161echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12162if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012163 cat >>confdefs.h <<_ACEOF
12164#define HAVE_LIBM 1
12165_ACEOF
12166
12167 LIBS="-lm $LIBS"
12168
12169fi
12170
Jeff Cohen28783c32007-01-12 18:22:38 +000012171if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012172
12173{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12174echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12175if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012177else
12178 ac_check_lib_save_LIBS=$LIBS
12179LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012180cat >conftest.$ac_ext <<_ACEOF
12181/* confdefs.h. */
12182_ACEOF
12183cat confdefs.h >>conftest.$ac_ext
12184cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012185/* end confdefs.h. */
12186
Reid Spencer48fdf912006-06-01 19:03:21 +000012187
Reid Spencer484fc8e2006-06-01 16:55:59 +000012188int
12189main ()
12190{
Reid Spencera773bd52006-08-04 18:18:08 +000012191return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012192 ;
12193 return 0;
12194}
12195_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012196rm -f conftest.$ac_objext conftest$ac_exeext
12197if { (ac_try="$ac_link"
12198case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201esac
12202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>conftest.er1
12204 ac_status=$?
12205 grep -v '^ *+' conftest.er1 >conftest.err
12206 rm -f conftest.er1
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214esac
12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; } &&
12220 { ac_try='test -s conftest$ac_exeext'
12221 { (case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224esac
12225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_try") 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012230 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012232 echo "$as_me: failed program was:" >&5
12233sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012237
Bill Wendlingebcceee2009-04-18 11:20:33 +000012238rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012239 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012240LIBS=$ac_check_lib_save_LIBS
12241fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012242{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12243echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12244if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012245 cat >>confdefs.h <<_ACEOF
12246#define HAVE_LIBIMAGEHLP 1
12247_ACEOF
12248
12249 LIBS="-limagehlp $LIBS"
12250
12251fi
12252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012253
12254{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12255echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12256if test "${ac_cv_lib_psapi_main+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012258else
12259 ac_check_lib_save_LIBS=$LIBS
12260LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012261cat >conftest.$ac_ext <<_ACEOF
12262/* confdefs.h. */
12263_ACEOF
12264cat confdefs.h >>conftest.$ac_ext
12265cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012266/* end confdefs.h. */
12267
Reid Spencer48fdf912006-06-01 19:03:21 +000012268
Reid Spencer484fc8e2006-06-01 16:55:59 +000012269int
12270main ()
12271{
Reid Spencera773bd52006-08-04 18:18:08 +000012272return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012273 ;
12274 return 0;
12275}
12276_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012277rm -f conftest.$ac_objext conftest$ac_exeext
12278if { (ac_try="$ac_link"
12279case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12282esac
12283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_link") 2>conftest.er1
12285 ac_status=$?
12286 grep -v '^ *+' conftest.er1 >conftest.err
12287 rm -f conftest.er1
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12292 { (case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12295esac
12296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_try") 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
12301 { ac_try='test -s conftest$ac_exeext'
12302 { (case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12305esac
12306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_try") 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012311 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012313 echo "$as_me: failed program was:" >&5
12314sed 's/^/| /' conftest.$ac_ext >&5
12315
12316 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012318
Bill Wendlingebcceee2009-04-18 11:20:33 +000012319rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012320 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012321LIBS=$ac_check_lib_save_LIBS
12322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012323{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12324echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12325if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012326 cat >>confdefs.h <<_ACEOF
12327#define HAVE_LIBPSAPI 1
12328_ACEOF
12329
12330 LIBS="-lpsapi $LIBS"
12331
12332fi
12333
12334fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012336{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12337echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12338if test "${ac_cv_search_dlopen+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012340else
12341 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012342cat >conftest.$ac_ext <<_ACEOF
12343/* confdefs.h. */
12344_ACEOF
12345cat confdefs.h >>conftest.$ac_ext
12346cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012347/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012348
Reid Spencera773bd52006-08-04 18:18:08 +000012349/* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012352#ifdef __cplusplus
12353extern "C"
12354#endif
John Criswell7a73b802003-06-30 21:59:07 +000012355char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012356int
12357main ()
12358{
Reid Spencera773bd52006-08-04 18:18:08 +000012359return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012360 ;
12361 return 0;
12362}
12363_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012364for ac_lib in '' dl; do
12365 if test -z "$ac_lib"; then
12366 ac_res="none required"
12367 else
12368 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012370 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012371 rm -f conftest.$ac_objext conftest$ac_exeext
12372if { (ac_try="$ac_link"
12373case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376esac
12377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_link") 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12386 { (case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389esac
12390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_try") 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest$ac_exeext'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12399esac
12400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012405 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012406else
12407 echo "$as_me: failed program was:" >&5
12408sed 's/^/| /' conftest.$ac_ext >&5
12409
12410
John Criswell7a73b802003-06-30 21:59:07 +000012411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012412
Bill Wendlingebcceee2009-04-18 11:20:33 +000012413rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012414 conftest$ac_exeext
12415 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012416 break
John Criswell7a73b802003-06-30 21:59:07 +000012417fi
Reid Spencera773bd52006-08-04 18:18:08 +000012418done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012419if test "${ac_cv_search_dlopen+set}" = set; then
12420 :
Reid Spencera773bd52006-08-04 18:18:08 +000012421else
12422 ac_cv_search_dlopen=no
12423fi
12424rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012425LIBS=$ac_func_search_save_LIBS
12426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012427{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12428echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012429ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012430if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012433cat >>confdefs.h <<\_ACEOF
12434#define HAVE_DLOPEN 1
12435_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012436
12437else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012438 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12439echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012440fi
12441
12442
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012443if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012444 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12445echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12446if test "${ac_cv_search_ffi_call+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012448else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012449 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012450cat >conftest.$ac_ext <<_ACEOF
12451/* confdefs.h. */
12452_ACEOF
12453cat confdefs.h >>conftest.$ac_ext
12454cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012455/* end confdefs.h. */
12456
12457/* Override any GCC internal prototype to avoid an error.
12458 Use char because int might match the return type of a GCC
12459 builtin and then its argument prototype would still apply. */
12460#ifdef __cplusplus
12461extern "C"
12462#endif
12463char ffi_call ();
12464int
12465main ()
12466{
12467return ffi_call ();
12468 ;
12469 return 0;
12470}
12471_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012472for ac_lib in '' ffi; do
12473 if test -z "$ac_lib"; then
12474 ac_res="none required"
12475 else
12476 ac_res=-l$ac_lib
12477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12478 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012479 rm -f conftest.$ac_objext conftest$ac_exeext
12480if { (ac_try="$ac_link"
12481case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484esac
12485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_link") 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12494 { (case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497esac
12498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_try") 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try='test -s conftest$ac_exeext'
12504 { (case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507esac
12508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_try") 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012513 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012514else
12515 echo "$as_me: failed program was:" >&5
12516sed 's/^/| /' conftest.$ac_ext >&5
12517
12518
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012520
Bill Wendlingebcceee2009-04-18 11:20:33 +000012521rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012522 conftest$ac_exeext
12523 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012524 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012525fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012526done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012527if test "${ac_cv_search_ffi_call+set}" = set; then
12528 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012529else
12530 ac_cv_search_ffi_call=no
12531fi
12532rm conftest.$ac_ext
12533LIBS=$ac_func_search_save_LIBS
12534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012535{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12536echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012537ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012538if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012541cat >>confdefs.h <<\_ACEOF
12542#define HAVE_FFI_CALL 1
12543_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012544
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012545else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012546 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12547echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12548 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012549fi
12550
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012551fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012553{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12554echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12555if test "${ac_cv_search_mallinfo+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012557else
12558 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012559cat >conftest.$ac_ext <<_ACEOF
12560/* confdefs.h. */
12561_ACEOF
12562cat confdefs.h >>conftest.$ac_ext
12563cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012564/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012565
Reid Spencera773bd52006-08-04 18:18:08 +000012566/* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012569#ifdef __cplusplus
12570extern "C"
12571#endif
John Criswell7a73b802003-06-30 21:59:07 +000012572char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012573int
12574main ()
12575{
Reid Spencera773bd52006-08-04 18:18:08 +000012576return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012577 ;
12578 return 0;
12579}
12580_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012581for ac_lib in '' malloc; do
12582 if test -z "$ac_lib"; then
12583 ac_res="none required"
12584 else
12585 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012587 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012588 rm -f conftest.$ac_objext conftest$ac_exeext
12589if { (ac_try="$ac_link"
12590case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593esac
12594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_link") 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12603 { (case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606esac
12607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_try") 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; } &&
12612 { ac_try='test -s conftest$ac_exeext'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616esac
12617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012622 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012623else
12624 echo "$as_me: failed program was:" >&5
12625sed 's/^/| /' conftest.$ac_ext >&5
12626
12627
John Criswell7a73b802003-06-30 21:59:07 +000012628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012629
Bill Wendlingebcceee2009-04-18 11:20:33 +000012630rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012631 conftest$ac_exeext
12632 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012633 break
John Criswell7a73b802003-06-30 21:59:07 +000012634fi
Reid Spencera773bd52006-08-04 18:18:08 +000012635done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012636if test "${ac_cv_search_mallinfo+set}" = set; then
12637 :
Reid Spencera773bd52006-08-04 18:18:08 +000012638else
12639 ac_cv_search_mallinfo=no
12640fi
12641rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012642LIBS=$ac_func_search_save_LIBS
12643fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012644{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12645echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012646ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012647if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012650cat >>confdefs.h <<\_ACEOF
12651#define HAVE_MALLINFO 1
12652_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012653
12654fi
12655
12656
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012657if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012658
12659{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12660echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12661if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012663else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012664 ac_check_lib_save_LIBS=$LIBS
12665LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012666cat >conftest.$ac_ext <<_ACEOF
12667/* confdefs.h. */
12668_ACEOF
12669cat confdefs.h >>conftest.$ac_ext
12670cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012671/* end confdefs.h. */
12672
Reid Spencera773bd52006-08-04 18:18:08 +000012673/* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012676#ifdef __cplusplus
12677extern "C"
12678#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012679char pthread_mutex_init ();
12680int
12681main ()
12682{
Reid Spencera773bd52006-08-04 18:18:08 +000012683return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012684 ;
12685 return 0;
12686}
12687_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012688rm -f conftest.$ac_objext conftest$ac_exeext
12689if { (ac_try="$ac_link"
12690case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693esac
12694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_link") 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706esac
12707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest$ac_exeext'
12713 { (case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12716esac
12717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_try") 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012722 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012724 echo "$as_me: failed program was:" >&5
12725sed 's/^/| /' conftest.$ac_ext >&5
12726
12727 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012729
Bill Wendlingebcceee2009-04-18 11:20:33 +000012730rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012731 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012732LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012734{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12735echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12736if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012737 cat >>confdefs.h <<_ACEOF
12738#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012739_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012740
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012741 LIBS="-lpthread $LIBS"
12742
Reid Spencer22177fe2005-07-12 15:24:20 +000012743fi
12744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012745 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12746echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12747if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012749else
12750 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012751cat >conftest.$ac_ext <<_ACEOF
12752/* confdefs.h. */
12753_ACEOF
12754cat confdefs.h >>conftest.$ac_ext
12755cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012756/* end confdefs.h. */
12757
Reid Spencera773bd52006-08-04 18:18:08 +000012758/* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012761#ifdef __cplusplus
12762extern "C"
12763#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012764char pthread_mutex_lock ();
12765int
12766main ()
12767{
Reid Spencera773bd52006-08-04 18:18:08 +000012768return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012769 ;
12770 return 0;
12771}
12772_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012773for ac_lib in '' pthread; do
12774 if test -z "$ac_lib"; then
12775 ac_res="none required"
12776 else
12777 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012779 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012780 rm -f conftest.$ac_objext conftest$ac_exeext
12781if { (ac_try="$ac_link"
12782case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785esac
12786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_link") 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12795 { (case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798esac
12799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_try") 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest$ac_exeext'
12805 { (case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808esac
12809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_try") 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012814 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012815else
12816 echo "$as_me: failed program was:" >&5
12817sed 's/^/| /' conftest.$ac_ext >&5
12818
12819
Brian Gaeke5f268f72003-12-05 19:29:01 +000012820fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821
Bill Wendlingebcceee2009-04-18 11:20:33 +000012822rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012823 conftest$ac_exeext
12824 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012825 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012826fi
Reid Spencera773bd52006-08-04 18:18:08 +000012827done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12829 :
Reid Spencera773bd52006-08-04 18:18:08 +000012830else
12831 ac_cv_search_pthread_mutex_lock=no
12832fi
12833rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012834LIBS=$ac_func_search_save_LIBS
12835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012836{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12837echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012838ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012839if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012842cat >>confdefs.h <<\_ACEOF
12843#define HAVE_PTHREAD_MUTEX_LOCK 1
12844_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012845
12846fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012848 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12849echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12850if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012852else
12853 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012854cat >conftest.$ac_ext <<_ACEOF
12855/* confdefs.h. */
12856_ACEOF
12857cat confdefs.h >>conftest.$ac_ext
12858cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012859/* end confdefs.h. */
12860
12861/* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12864#ifdef __cplusplus
12865extern "C"
12866#endif
12867char pthread_rwlock_init ();
12868int
12869main ()
12870{
12871return pthread_rwlock_init ();
12872 ;
12873 return 0;
12874}
12875_ACEOF
12876for ac_lib in '' pthread; do
12877 if test -z "$ac_lib"; then
12878 ac_res="none required"
12879 else
12880 ac_res=-l$ac_lib
12881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12882 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012883 rm -f conftest.$ac_objext conftest$ac_exeext
12884if { (ac_try="$ac_link"
12885case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888esac
12889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_link") 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12898 { (case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12901esac
12902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_try") 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest$ac_exeext'
12908 { (case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911esac
12912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_try") 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012917 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012918else
12919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922
Owen Andersonde8aed22009-06-16 18:20:20 +000012923fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012924
Owen Andersonde8aed22009-06-16 18:20:20 +000012925rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012926 conftest$ac_exeext
12927 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012928 break
12929fi
12930done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012931if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12932 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012933else
12934 ac_cv_search_pthread_rwlock_init=no
12935fi
12936rm conftest.$ac_ext
12937LIBS=$ac_func_search_save_LIBS
12938fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012939{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12940echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012941ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012942if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012945cat >>confdefs.h <<\_ACEOF
12946#define HAVE_PTHREAD_RWLOCK_INIT 1
12947_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012948
12949fi
12950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012951 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12952echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12953if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012955else
12956 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012957cat >conftest.$ac_ext <<_ACEOF
12958/* confdefs.h. */
12959_ACEOF
12960cat confdefs.h >>conftest.$ac_ext
12961cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012962/* end confdefs.h. */
12963
12964/* Override any GCC internal prototype to avoid an error.
12965 Use char because int might match the return type of a GCC
12966 builtin and then its argument prototype would still apply. */
12967#ifdef __cplusplus
12968extern "C"
12969#endif
12970char pthread_getspecific ();
12971int
12972main ()
12973{
12974return pthread_getspecific ();
12975 ;
12976 return 0;
12977}
12978_ACEOF
12979for ac_lib in '' pthread; do
12980 if test -z "$ac_lib"; then
12981 ac_res="none required"
12982 else
12983 ac_res=-l$ac_lib
12984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12985 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012986 rm -f conftest.$ac_objext conftest$ac_exeext
12987if { (ac_try="$ac_link"
12988case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991esac
12992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_link") 2>conftest.er1
12994 ac_status=$?
12995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13001 { (case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13004esac
13005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_try") 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest$ac_exeext'
13011 { (case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014esac
13015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_try") 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013020 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021else
13022 echo "$as_me: failed program was:" >&5
13023sed 's/^/| /' conftest.$ac_ext >&5
13024
13025
Owen Anderson27fcfe12009-06-25 23:10:26 +000013026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013027
Owen Anderson27fcfe12009-06-25 23:10:26 +000013028rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013029 conftest$ac_exeext
13030 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013031 break
13032fi
13033done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013034if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13035 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013036else
13037 ac_cv_search_pthread_getspecific=no
13038fi
13039rm conftest.$ac_ext
13040LIBS=$ac_func_search_save_LIBS
13041fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013042{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13043echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013044ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013045if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013048cat >>confdefs.h <<\_ACEOF
13049#define HAVE_PTHREAD_GETSPECIFIC 1
13050_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013051
13052fi
13053
Reid Spencer0a262ba2005-08-24 10:07:20 +000013054fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013055
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013056
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013057# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013058if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013059 withval=$with_udis86;
13060 USE_UDIS86=1
13061
13062 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013063 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013064 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13065 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013066
13067{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13068echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13069if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013071else
13072 ac_check_lib_save_LIBS=$LIBS
13073LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013074cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h. */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013079/* end confdefs.h. */
13080
13081/* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13084#ifdef __cplusplus
13085extern "C"
13086#endif
13087char ud_init ();
13088int
13089main ()
13090{
13091return ud_init ();
13092 ;
13093 return 0;
13094}
13095_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013096rm -f conftest.$ac_objext conftest$ac_exeext
13097if { (ac_try="$ac_link"
13098case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101esac
13102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_link") 2>conftest.er1
13104 ac_status=$?
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13111 { (case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13114esac
13115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_try") 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; } &&
13120 { ac_try='test -s conftest$ac_exeext'
13121 { (case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13124esac
13125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_try") 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013130 ac_cv_lib_udis86_ud_init=yes
13131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013132 echo "$as_me: failed program was:" >&5
13133sed 's/^/| /' conftest.$ac_ext >&5
13134
13135 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013137
Bill Wendlingebcceee2009-04-18 11:20:33 +000013138rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013139 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013140LIBS=$ac_check_lib_save_LIBS
13141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013142{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13143echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13144if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013145 cat >>confdefs.h <<_ACEOF
13146#define HAVE_LIBUDIS86 1
13147_ACEOF
13148
13149 LIBS="-ludis86 $LIBS"
13150
13151else
13152
13153 echo "Error! You need to have libudis86 around."
13154 exit -1
13155
13156fi
13157
13158
13159else
13160 USE_UDIS86=0
13161
13162fi
13163
13164
13165cat >>confdefs.h <<_ACEOF
13166#define USE_UDIS86 $USE_UDIS86
13167_ACEOF
13168
13169
13170
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013171# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013172if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013173 withval=$with_oprofile;
13174 USE_OPROFILE=1
13175
13176 case "$withval" in
13177 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013178 no) llvm_cv_oppath=
13179 USE_OPROFILE=0
13180 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013181 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher42dffa52012-08-03 17:45:31 +000013182 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013183 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013184 case $llvm_cv_os_type in
13185 Linux)
13186 if test -n "$llvm_cv_oppath" ; then
13187 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13188 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013189echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13190if test "${ac_cv_search_bfd_init+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013192else
13193 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013194cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013199/* end confdefs.h. */
13200
13201/* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
13204#ifdef __cplusplus
13205extern "C"
13206#endif
13207char bfd_init ();
13208int
13209main ()
13210{
13211return bfd_init ();
13212 ;
13213 return 0;
13214}
13215_ACEOF
13216for ac_lib in '' bfd; do
13217 if test -z "$ac_lib"; then
13218 ac_res="none required"
13219 else
13220 ac_res=-l$ac_lib
13221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13222 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013223 rm -f conftest.$ac_objext conftest$ac_exeext
13224if { (ac_try="$ac_link"
13225case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13228esac
13229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_link") 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238 { (case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13241esac
13242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_try") 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest$ac_exeext'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251esac
13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013257 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013258else
13259 echo "$as_me: failed program was:" >&5
13260sed 's/^/| /' conftest.$ac_ext >&5
13261
13262
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013264
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013265rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013266 conftest$ac_exeext
13267 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013268 break
13269fi
13270done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271if test "${ac_cv_search_bfd_init+set}" = set; then
13272 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013273else
13274 ac_cv_search_bfd_init=no
13275fi
13276rm conftest.$ac_ext
13277LIBS=$ac_func_search_save_LIBS
13278fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013279{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13280echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013281ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013282if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13284
13285fi
13286
Eli Bendersky61b18512012-03-13 08:33:15 +000013287 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013288echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13289if test "${ac_cv_search_op_open_agent+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013291else
13292 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293cat >conftest.$ac_ext <<_ACEOF
13294/* confdefs.h. */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013298/* end confdefs.h. */
13299
13300/* Override any GCC internal prototype to avoid an error.
13301 Use char because int might match the return type of a GCC
13302 builtin and then its argument prototype would still apply. */
13303#ifdef __cplusplus
13304extern "C"
13305#endif
13306char op_open_agent ();
13307int
13308main ()
13309{
13310return op_open_agent ();
13311 ;
13312 return 0;
13313}
13314_ACEOF
13315for ac_lib in '' opagent; do
13316 if test -z "$ac_lib"; then
13317 ac_res="none required"
13318 else
13319 ac_res=-l$ac_lib
13320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13321 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013322 rm -f conftest.$ac_objext conftest$ac_exeext
13323if { (ac_try="$ac_link"
13324case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327esac
13328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_link") 2>conftest.er1
13330 ac_status=$?
13331 grep -v '^ *+' conftest.er1 >conftest.err
13332 rm -f conftest.er1
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } &&
13336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13337 { (case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340esac
13341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_try") 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; } &&
13346 { ac_try='test -s conftest$ac_exeext'
13347 { (case "(($ac_try" in
13348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349 *) ac_try_echo=$ac_try;;
13350esac
13351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13352 (eval "$ac_try") 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013356 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357else
13358 echo "$as_me: failed program was:" >&5
13359sed 's/^/| /' conftest.$ac_ext >&5
13360
13361
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013362fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013363
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013364rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365 conftest$ac_exeext
13366 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013367 break
13368fi
13369done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013370if test "${ac_cv_search_op_open_agent+set}" = set; then
13371 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013372else
13373 ac_cv_search_op_open_agent=no
13374fi
13375rm conftest.$ac_ext
13376LIBS=$ac_func_search_save_LIBS
13377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013378{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13379echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013380ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013381if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13383
13384else
13385
Eli Bendersky61b18512012-03-13 08:33:15 +000013386 echo "Error! You need to have libopagent around."
13387 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013388
13389fi
13390
Eli Bendersky61b18512012-03-13 08:33:15 +000013391 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013392 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13393echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13394if test "${ac_cv_header_opagent_h+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396fi
13397{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13398echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13399else
13400 # Is the header compilable?
13401{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13402echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13403cat >conftest.$ac_ext <<_ACEOF
13404/* confdefs.h. */
13405_ACEOF
13406cat confdefs.h >>conftest.$ac_ext
13407cat >>conftest.$ac_ext <<_ACEOF
13408/* end confdefs.h. */
13409$ac_includes_default
13410#include <opagent.h>
13411_ACEOF
13412rm -f conftest.$ac_objext
13413if { (ac_try="$ac_compile"
13414case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_compile") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440esac
13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13446 ac_header_compiler=yes
13447else
13448 echo "$as_me: failed program was:" >&5
13449sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013451 ac_header_compiler=no
13452fi
13453
13454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13456echo "${ECHO_T}$ac_header_compiler" >&6; }
13457
13458# Is the header present?
13459{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13460echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13461cat >conftest.$ac_ext <<_ACEOF
13462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h. */
13467#include <opagent.h>
13468_ACEOF
13469if { (ac_try="$ac_cpp conftest.$ac_ext"
13470case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13473esac
13474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } >/dev/null; then
13482 if test -s conftest.err; then
13483 ac_cpp_err=$ac_c_preproc_warn_flag
13484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13485 else
13486 ac_cpp_err=
13487 fi
13488else
13489 ac_cpp_err=yes
13490fi
13491if test -z "$ac_cpp_err"; then
13492 ac_header_preproc=yes
13493else
13494 echo "$as_me: failed program was:" >&5
13495sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ac_header_preproc=no
13498fi
13499
13500rm -f conftest.err conftest.$ac_ext
13501{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13502echo "${ECHO_T}$ac_header_preproc" >&6; }
13503
13504# So? What about this header?
13505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13506 yes:no: )
13507 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13508echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13510echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13511 ac_header_preproc=yes
13512 ;;
13513 no:yes:* )
13514 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13515echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13517echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13519echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13521echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13523echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13525echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13526 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013527## ------------------------------------ ##
13528## Report this to http://llvm.org/bugs/ ##
13529## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013530_ASBOX
13531 ) | sed "s/^/$as_me: WARNING: /" >&2
13532 ;;
13533esac
13534{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13535echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13536if test "${ac_cv_header_opagent_h+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13538else
13539 ac_cv_header_opagent_h=$ac_header_preproc
13540fi
13541{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13542echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13543
13544fi
13545if test $ac_cv_header_opagent_h = yes; then
13546 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013547else
13548
Eli Bendersky61b18512012-03-13 08:33:15 +000013549 echo "Error! You need to have opagent.h around."
13550 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013551
13552fi
13553
13554
Eli Bendersky61b18512012-03-13 08:33:15 +000013555 fi ;;
13556 *)
13557 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13558echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13559 { (exit 1); exit 1; }; } ;;
13560 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013561
13562else
13563
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013564 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013565
13566
13567fi
13568
13569
13570cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013571#define LLVM_USE_OPROFILE $USE_OPROFILE
13572_ACEOF
13573
13574
13575
13576# Check whether --with-intel-jitevents was given.
13577if test "${with_intel_jitevents+set}" = set; then
13578 withval=$with_intel_jitevents;
13579 case $llvm_cv_os_type in
13580 Linux|Win32|Cygwin|MingW) ;;
13581 *)
13582 { { echo "$as_me:$LINENO: error:
13583 Intel JIT API support is available on Linux and Windows only.\"" >&5
13584echo "$as_me: error:
13585 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13586 { (exit 1); exit 1; }; } ;;
13587 esac
13588
13589 USE_INTEL_JITEVENTS=1
13590
13591 case "$llvm_cv_target_arch" in
13592 x86) llvm_intel_jitevents_archdir="lib32";;
13593 x86_64) llvm_intel_jitevents_archdir="lib64";;
13594 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13595 exit -1;;
13596 esac
13597 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13598 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13599 case "$withval" in
13600 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13601 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13602 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013603 esac
13604
13605
13606
13607
13608 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
Eric Christopher42dffa52012-08-03 17:45:31 +000013609 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
Eli Bendersky61b18512012-03-13 08:33:15 +000013610
13611 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13612echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13613if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615else
13616 ac_func_search_save_LIBS=$LIBS
13617cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */
13623
13624/* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
13627#ifdef __cplusplus
13628extern "C"
13629#endif
13630char iJIT_IsProfilingActive ();
13631int
13632main ()
13633{
13634return iJIT_IsProfilingActive ();
13635 ;
13636 return 0;
13637}
13638_ACEOF
13639for ac_lib in '' jitprofiling; do
13640 if test -z "$ac_lib"; then
13641 ac_res="none required"
13642 else
13643 ac_res=-l$ac_lib
13644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13645 fi
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647if { (ac_try="$ac_link"
13648case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
13652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_link") 2>conftest.er1
13654 ac_status=$?
13655 grep -v '^ *+' conftest.er1 >conftest.err
13656 rm -f conftest.er1
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661 { (case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13664esac
13665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_try") 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13674esac
13675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_try") 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13681else
13682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685
13686fi
13687
13688rm -f core conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext
13690 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13691 break
13692fi
13693done
13694if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13695 :
13696else
13697 ac_cv_search_iJIT_IsProfilingActive=no
13698fi
13699rm conftest.$ac_ext
13700LIBS=$ac_func_search_save_LIBS
13701fi
13702{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13703echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13704ac_res=$ac_cv_search_iJIT_IsProfilingActive
13705if test "$ac_res" != no; then
13706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13707
13708else
13709
13710 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13711 exit -1
13712
13713fi
13714
13715 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13716 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13717echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13718if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720fi
13721{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13722echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13723else
13724 # Is the header compilable?
13725{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13726echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13727cat >conftest.$ac_ext <<_ACEOF
13728/* confdefs.h. */
13729_ACEOF
13730cat confdefs.h >>conftest.$ac_ext
13731cat >>conftest.$ac_ext <<_ACEOF
13732/* end confdefs.h. */
13733$ac_includes_default
13734#include <jitprofiling.h>
13735_ACEOF
13736rm -f conftest.$ac_objext
13737if { (ac_try="$ac_compile"
13738case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741esac
13742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_compile") 2>conftest.er1
13744 ac_status=$?
13745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
13750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13751 { (case "(($ac_try" in
13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13754esac
13755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_try") 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest.$ac_objext'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770 ac_header_compiler=yes
13771else
13772 echo "$as_me: failed program was:" >&5
13773sed 's/^/| /' conftest.$ac_ext >&5
13774
13775 ac_header_compiler=no
13776fi
13777
13778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13780echo "${ECHO_T}$ac_header_compiler" >&6; }
13781
13782# Is the header present?
13783{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13784echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13785cat >conftest.$ac_ext <<_ACEOF
13786/* confdefs.h. */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h. */
13791#include <jitprofiling.h>
13792_ACEOF
13793if { (ac_try="$ac_cpp conftest.$ac_ext"
13794case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13797esac
13798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13800 ac_status=$?
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } >/dev/null; then
13806 if test -s conftest.err; then
13807 ac_cpp_err=$ac_c_preproc_warn_flag
13808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13809 else
13810 ac_cpp_err=
13811 fi
13812else
13813 ac_cpp_err=yes
13814fi
13815if test -z "$ac_cpp_err"; then
13816 ac_header_preproc=yes
13817else
13818 echo "$as_me: failed program was:" >&5
13819sed 's/^/| /' conftest.$ac_ext >&5
13820
13821 ac_header_preproc=no
13822fi
13823
13824rm -f conftest.err conftest.$ac_ext
13825{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13826echo "${ECHO_T}$ac_header_preproc" >&6; }
13827
13828# So? What about this header?
13829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13830 yes:no: )
13831 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13832echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13834echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13835 ac_header_preproc=yes
13836 ;;
13837 no:yes:* )
13838 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13839echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13841echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13843echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13845echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13847echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13849echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13850 ( cat <<\_ASBOX
13851## ------------------------------------ ##
13852## Report this to http://llvm.org/bugs/ ##
13853## ------------------------------------ ##
13854_ASBOX
13855 ) | sed "s/^/$as_me: WARNING: /" >&2
13856 ;;
13857esac
13858{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13859echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13860if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13862else
13863 ac_cv_header_jitprofiling_h=$ac_header_preproc
13864fi
13865{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13866echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13867
13868fi
13869if test $ac_cv_header_jitprofiling_h = yes; then
13870 :
13871else
13872
13873 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13874 exit -1
13875
13876fi
13877
13878
13879
13880
13881else
13882
13883 USE_INTEL_JITEVENTS=0
13884
13885
13886fi
13887
13888
13889cat >>confdefs.h <<_ACEOF
13890#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013891_ACEOF
13892
13893
Eric Christopher46e6bcf2012-08-03 19:47:19 +000013894for ac_prog in xml2-config
13895do
13896 # Extract the first word of "$ac_prog", so it can be a program name with args.
13897set dummy $ac_prog; ac_word=$2
13898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13900if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 if test -n "$XML2CONFIG"; then
13904 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13905else
13906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907for as_dir in $PATH
13908do
13909 IFS=$as_save_IFS
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13913 ac_cv_prog_XML2CONFIG="$ac_prog"
13914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13915 break 2
13916 fi
13917done
13918done
13919IFS=$as_save_IFS
13920
13921fi
13922fi
13923XML2CONFIG=$ac_cv_prog_XML2CONFIG
13924if test -n "$XML2CONFIG"; then
13925 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13926echo "${ECHO_T}$XML2CONFIG" >&6; }
13927else
13928 { echo "$as_me:$LINENO: result: no" >&5
13929echo "${ECHO_T}no" >&6; }
13930fi
13931
13932
13933 test -n "$XML2CONFIG" && break
13934done
13935
13936
13937{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13938echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13939if test "x$XML2CONFIG" = "x"; then
13940 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13941echo "${ECHO_T}xml2-config not found" >&6; }
13942else
13943 LIBXML2_INC=`$XML2CONFIG --cflags`
13944 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13945echo "${ECHO_T}$LIBXML2_INC" >&6; }
13946 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13947echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13948if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950else
13951 ac_check_lib_save_LIBS=$LIBS
13952LIBS="-lxml2 $LIBS"
13953cat >conftest.$ac_ext <<_ACEOF
13954/* confdefs.h. */
13955_ACEOF
13956cat confdefs.h >>conftest.$ac_ext
13957cat >>conftest.$ac_ext <<_ACEOF
13958/* end confdefs.h. */
13959
13960/* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13963#ifdef __cplusplus
13964extern "C"
13965#endif
13966char xmlReadFile ();
13967int
13968main ()
13969{
13970return xmlReadFile ();
13971 ;
13972 return 0;
13973}
13974_ACEOF
13975rm -f conftest.$ac_objext conftest$ac_exeext
13976if { (ac_try="$ac_link"
13977case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13980esac
13981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982 (eval "$ac_link") 2>conftest.er1
13983 ac_status=$?
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13990 { (case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13993esac
13994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995 (eval "$ac_try") 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; } &&
13999 { ac_try='test -s conftest$ac_exeext'
14000 { (case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14003esac
14004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_try") 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_lib_xml2_xmlReadFile=yes
14010else
14011 echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 ac_cv_lib_xml2_xmlReadFile=no
14015fi
14016
14017rm -f core conftest.err conftest.$ac_objext \
14018 conftest$ac_exeext conftest.$ac_ext
14019LIBS=$ac_check_lib_save_LIBS
14020fi
14021{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14022echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14023if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14024
14025cat >>confdefs.h <<\_ACEOF
14026#define CLANG_HAVE_LIBXML 1
14027_ACEOF
14028
14029 LIBXML2_LIBS="-lxml2"
14030fi
14031
14032fi
14033
14034
14035
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014037
14038
14039
14040
14041
Reid Spencer59473af2004-12-25 07:31:29 +000014042ac_header_dirent=no
14043for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014044 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14045{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14046echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014049else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014050 cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014055/* end confdefs.h. */
14056#include <sys/types.h>
14057#include <$ac_hdr>
14058
14059int
14060main ()
14061{
14062if ((DIR *) 0)
14063return 0;
14064 ;
14065 return 0;
14066}
14067_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014068rm -f conftest.$ac_objext
14069if { (ac_try="$ac_compile"
14070case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14073esac
14074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_compile") 2>conftest.er1
14076 ac_status=$?
14077 grep -v '^ *+' conftest.er1 >conftest.err
14078 rm -f conftest.er1
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086esac
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; } &&
14092 { ac_try='test -s conftest.$ac_objext'
14093 { (case "(($ac_try" in
14094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14096esac
14097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_try") 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014102 eval "$as_ac_Header=yes"
14103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014104 echo "$as_me: failed program was:" >&5
14105sed 's/^/| /' conftest.$ac_ext >&5
14106
14107 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014108fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014109
Reid Spencera773bd52006-08-04 18:18:08 +000014110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014111fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112ac_res=`eval echo '${'$as_ac_Header'}'`
14113 { echo "$as_me:$LINENO: result: $ac_res" >&5
14114echo "${ECHO_T}$ac_res" >&6; }
14115if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014116 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014118_ACEOF
14119
14120ac_header_dirent=$ac_hdr; break
14121fi
14122
14123done
14124# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14125if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14127echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14128if test "${ac_cv_search_opendir+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014130else
14131 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014132cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h. */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014137/* end confdefs.h. */
14138
Reid Spencera773bd52006-08-04 18:18:08 +000014139/* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014142#ifdef __cplusplus
14143extern "C"
14144#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014145char opendir ();
14146int
14147main ()
14148{
Reid Spencera773bd52006-08-04 18:18:08 +000014149return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014150 ;
14151 return 0;
14152}
14153_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014154for ac_lib in '' dir; do
14155 if test -z "$ac_lib"; then
14156 ac_res="none required"
14157 else
14158 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014160 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014161 rm -f conftest.$ac_objext conftest$ac_exeext
14162if { (ac_try="$ac_link"
14163case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166esac
14167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_link") 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14179esac
14180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try='test -s conftest$ac_exeext'
14186 { (case "(($ac_try" in
14187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14189esac
14190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_try") 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014195 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014196else
14197 echo "$as_me: failed program was:" >&5
14198sed 's/^/| /' conftest.$ac_ext >&5
14199
14200
Reid Spencer59473af2004-12-25 07:31:29 +000014201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014202
Bill Wendlingebcceee2009-04-18 11:20:33 +000014203rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204 conftest$ac_exeext
14205 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014206 break
Reid Spencer59473af2004-12-25 07:31:29 +000014207fi
Reid Spencera773bd52006-08-04 18:18:08 +000014208done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014209if test "${ac_cv_search_opendir+set}" = set; then
14210 :
Reid Spencera773bd52006-08-04 18:18:08 +000014211else
14212 ac_cv_search_opendir=no
14213fi
14214rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014215LIBS=$ac_func_search_save_LIBS
14216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14218echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014219ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014222
14223fi
14224
14225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014226 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14227echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14228if test "${ac_cv_search_opendir+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014230else
14231 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014232cat >conftest.$ac_ext <<_ACEOF
14233/* confdefs.h. */
14234_ACEOF
14235cat confdefs.h >>conftest.$ac_ext
14236cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014237/* end confdefs.h. */
14238
Reid Spencera773bd52006-08-04 18:18:08 +000014239/* Override any GCC internal prototype to avoid an error.
14240 Use char because int might match the return type of a GCC
14241 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014242#ifdef __cplusplus
14243extern "C"
14244#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014245char opendir ();
14246int
14247main ()
14248{
Reid Spencera773bd52006-08-04 18:18:08 +000014249return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014250 ;
14251 return 0;
14252}
14253_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014254for ac_lib in '' x; do
14255 if test -z "$ac_lib"; then
14256 ac_res="none required"
14257 else
14258 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014260 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014261 rm -f conftest.$ac_objext conftest$ac_exeext
14262if { (ac_try="$ac_link"
14263case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14266esac
14267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268 (eval "$ac_link") 2>conftest.er1
14269 ac_status=$?
14270 grep -v '^ *+' conftest.er1 >conftest.err
14271 rm -f conftest.er1
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14276 { (case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14279esac
14280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_try") 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest$ac_exeext'
14286 { (case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14289esac
14290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_try") 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014295 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014296else
14297 echo "$as_me: failed program was:" >&5
14298sed 's/^/| /' conftest.$ac_ext >&5
14299
14300
Reid Spencer59473af2004-12-25 07:31:29 +000014301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014302
Bill Wendlingebcceee2009-04-18 11:20:33 +000014303rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014304 conftest$ac_exeext
14305 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014306 break
Reid Spencer59473af2004-12-25 07:31:29 +000014307fi
Reid Spencera773bd52006-08-04 18:18:08 +000014308done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014309if test "${ac_cv_search_opendir+set}" = set; then
14310 :
Reid Spencera773bd52006-08-04 18:18:08 +000014311else
14312 ac_cv_search_opendir=no
14313fi
14314rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014315LIBS=$ac_func_search_save_LIBS
14316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014317{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14318echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014319ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014320if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014322
14323fi
14324
14325fi
14326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014327{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14328echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14329if test "${ac_cv_header_mmap_anon+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014331else
14332 ac_ext=c
14333ac_cpp='$CPP $CPPFLAGS'
14334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336ac_compiler_gnu=$ac_cv_c_compiler_gnu
14337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014338 cat >conftest.$ac_ext <<_ACEOF
14339/* confdefs.h. */
14340_ACEOF
14341cat confdefs.h >>conftest.$ac_ext
14342cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014343/* end confdefs.h. */
14344#include <sys/mman.h>
14345#include <unistd.h>
14346#include <fcntl.h>
14347int
14348main ()
14349{
14350mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14351 ;
14352 return 0;
14353}
14354_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355rm -f conftest.$ac_objext
14356if { (ac_try="$ac_compile"
14357case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14360esac
14361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_compile") 2>conftest.er1
14363 ac_status=$?
14364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
14369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14370 { (case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373esac
14374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_try") 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try='test -s conftest.$ac_objext'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383esac
14384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014389 ac_cv_header_mmap_anon=yes
14390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014391 echo "$as_me: failed program was:" >&5
14392sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014396
Reid Spencera773bd52006-08-04 18:18:08 +000014397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014398 ac_ext=c
14399ac_cpp='$CPP $CPPFLAGS'
14400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14402ac_compiler_gnu=$ac_cv_c_compiler_gnu
14403
14404
14405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014406{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14407echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014408if test "$ac_cv_header_mmap_anon" = yes; then
14409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410cat >>confdefs.h <<\_ACEOF
14411#define HAVE_MMAP_ANONYMOUS 1
14412_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014413
14414fi
14415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014416{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14417echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14418if test "${ac_cv_header_stat_broken+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014421 cat >conftest.$ac_ext <<_ACEOF
14422/* confdefs.h. */
14423_ACEOF
14424cat confdefs.h >>conftest.$ac_ext
14425cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014426/* end confdefs.h. */
14427#include <sys/types.h>
14428#include <sys/stat.h>
14429
Reid Spencera773bd52006-08-04 18:18:08 +000014430#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431# if S_ISBLK (S_IFDIR)
14432You lose.
14433# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014434#endif
14435
Reid Spencera773bd52006-08-04 18:18:08 +000014436#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014437# if S_ISBLK (S_IFCHR)
14438You lose.
14439# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014440#endif
14441
Reid Spencera773bd52006-08-04 18:18:08 +000014442#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014443# if S_ISLNK (S_IFREG)
14444You lose.
14445# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014446#endif
14447
Reid Spencera773bd52006-08-04 18:18:08 +000014448#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014449# if S_ISSOCK (S_IFREG)
14450You lose.
14451# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014452#endif
14453
14454_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14456 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014457 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014458else
14459 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014461rm -f conftest*
14462
Reid Spencer59473af2004-12-25 07:31:29 +000014463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014464{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14465echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014466if test $ac_cv_header_stat_broken = yes; then
14467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014468cat >>confdefs.h <<\_ACEOF
14469#define STAT_MACROS_BROKEN 1
14470_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014471
14472fi
14473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014474{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14475echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14476if test "${ac_cv_header_sys_wait_h+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014479 cat >conftest.$ac_ext <<_ACEOF
14480/* confdefs.h. */
14481_ACEOF
14482cat confdefs.h >>conftest.$ac_ext
14483cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014485#include <sys/types.h>
14486#include <sys/wait.h>
14487#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014488# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014489#endif
14490#ifndef WIFEXITED
14491# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14492#endif
14493
John Criswell7a73b802003-06-30 21:59:07 +000014494int
14495main ()
14496{
14497 int s;
14498 wait (&s);
14499 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14500 ;
14501 return 0;
14502}
14503_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014504rm -f conftest.$ac_objext
14505if { (ac_try="$ac_compile"
14506case "(($ac_try" in
14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508 *) ac_try_echo=$ac_try;;
14509esac
14510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14511 (eval "$ac_compile") 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14519 { (case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522esac
14523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_try") 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; } &&
14528 { ac_try='test -s conftest.$ac_objext'
14529 { (case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532esac
14533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_try") 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014538 ac_cv_header_sys_wait_h=yes
14539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014540 echo "$as_me: failed program was:" >&5
14541sed 's/^/| /' conftest.$ac_ext >&5
14542
14543 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014544fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014545
Reid Spencera773bd52006-08-04 18:18:08 +000014546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014548{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14549echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014550if test $ac_cv_header_sys_wait_h = yes; then
14551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014552cat >>confdefs.h <<\_ACEOF
14553#define HAVE_SYS_WAIT_H 1
14554_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014555
14556fi
14557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014558{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14559echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14560if test "${ac_cv_header_time+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014563 cat >conftest.$ac_ext <<_ACEOF
14564/* confdefs.h. */
14565_ACEOF
14566cat confdefs.h >>conftest.$ac_ext
14567cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014568/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014569#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014570#include <sys/time.h>
14571#include <time.h>
14572
14573int
14574main ()
14575{
14576if ((struct tm *) 0)
14577return 0;
14578 ;
14579 return 0;
14580}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014581_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014582rm -f conftest.$ac_objext
14583if { (ac_try="$ac_compile"
14584case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14587esac
14588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_compile") 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14597 { (case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600esac
14601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_try") 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try='test -s conftest.$ac_objext'
14607 { (case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14610esac
14611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_try") 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014616 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014618 echo "$as_me: failed program was:" >&5
14619sed 's/^/| /' conftest.$ac_ext >&5
14620
14621 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014623
Reid Spencera773bd52006-08-04 18:18:08 +000014624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014626{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14627echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014628if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014630cat >>confdefs.h <<\_ACEOF
14631#define TIME_WITH_SYS_TIME 1
14632_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014633
14634fi
14635
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014637
14638
14639
14640
14641
14642
Reid Spencer59473af2004-12-25 07:31:29 +000014643for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014644do
14645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651fi
14652ac_res=`eval echo '${'$as_ac_Header'}'`
14653 { echo "$as_me:$LINENO: result: $ac_res" >&5
14654echo "${ECHO_T}$ac_res" >&6; }
14655else
14656 # Is the header compilable?
14657{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14659cat >conftest.$ac_ext <<_ACEOF
14660/* confdefs.h. */
14661_ACEOF
14662cat confdefs.h >>conftest.$ac_ext
14663cat >>conftest.$ac_ext <<_ACEOF
14664/* end confdefs.h. */
14665$ac_includes_default
14666#include <$ac_header>
14667_ACEOF
14668rm -f conftest.$ac_objext
14669if { (ac_try="$ac_compile"
14670case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673esac
14674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_compile") 2>conftest.er1
14676 ac_status=$?
14677 grep -v '^ *+' conftest.er1 >conftest.err
14678 rm -f conftest.er1
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } &&
14682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14683 { (case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686esac
14687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_try") 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest.$ac_objext'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696esac
14697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_try") 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_header_compiler=yes
14703else
14704 echo "$as_me: failed program was:" >&5
14705sed 's/^/| /' conftest.$ac_ext >&5
14706
14707 ac_header_compiler=no
14708fi
14709
14710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14712echo "${ECHO_T}$ac_header_compiler" >&6; }
14713
14714# Is the header present?
14715{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14717cat >conftest.$ac_ext <<_ACEOF
14718/* confdefs.h. */
14719_ACEOF
14720cat confdefs.h >>conftest.$ac_ext
14721cat >>conftest.$ac_ext <<_ACEOF
14722/* end confdefs.h. */
14723#include <$ac_header>
14724_ACEOF
14725if { (ac_try="$ac_cpp conftest.$ac_ext"
14726case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729esac
14730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } >/dev/null; then
14738 if test -s conftest.err; then
14739 ac_cpp_err=$ac_c_preproc_warn_flag
14740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14741 else
14742 ac_cpp_err=
14743 fi
14744else
14745 ac_cpp_err=yes
14746fi
14747if test -z "$ac_cpp_err"; then
14748 ac_header_preproc=yes
14749else
14750 echo "$as_me: failed program was:" >&5
14751sed 's/^/| /' conftest.$ac_ext >&5
14752
14753 ac_header_preproc=no
14754fi
14755
14756rm -f conftest.err conftest.$ac_ext
14757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14758echo "${ECHO_T}$ac_header_preproc" >&6; }
14759
14760# So? What about this header?
14761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14762 yes:no: )
14763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14767 ac_header_preproc=yes
14768 ;;
14769 no:yes:* )
14770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14782 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014783## ------------------------------------ ##
14784## Report this to http://llvm.org/bugs/ ##
14785## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014786_ASBOX
14787 ) | sed "s/^/$as_me: WARNING: /" >&2
14788 ;;
14789esac
14790{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794else
14795 eval "$as_ac_Header=\$ac_header_preproc"
14796fi
14797ac_res=`eval echo '${'$as_ac_Header'}'`
14798 { echo "$as_me:$LINENO: result: $ac_res" >&5
14799echo "${ECHO_T}$ac_res" >&6; }
14800
14801fi
14802if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014803 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014805_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014806
14807fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014808
Reid Spencer59473af2004-12-25 07:31:29 +000014809done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014811
14812
14813
14814
14815
14816
Douglas Gregor071d73d2009-05-18 17:21:34 +000014817for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014818do
14819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14825fi
14826ac_res=`eval echo '${'$as_ac_Header'}'`
14827 { echo "$as_me:$LINENO: result: $ac_res" >&5
14828echo "${ECHO_T}$ac_res" >&6; }
14829else
14830 # Is the header compilable?
14831{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14833cat >conftest.$ac_ext <<_ACEOF
14834/* confdefs.h. */
14835_ACEOF
14836cat confdefs.h >>conftest.$ac_ext
14837cat >>conftest.$ac_ext <<_ACEOF
14838/* end confdefs.h. */
14839$ac_includes_default
14840#include <$ac_header>
14841_ACEOF
14842rm -f conftest.$ac_objext
14843if { (ac_try="$ac_compile"
14844case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14847esac
14848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857 { (case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860esac
14861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_try") 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 ac_header_compiler=yes
14877else
14878 echo "$as_me: failed program was:" >&5
14879sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 ac_header_compiler=no
14882fi
14883
14884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14886echo "${ECHO_T}$ac_header_compiler" >&6; }
14887
14888# Is the header present?
14889{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14891cat >conftest.$ac_ext <<_ACEOF
14892/* confdefs.h. */
14893_ACEOF
14894cat confdefs.h >>conftest.$ac_ext
14895cat >>conftest.$ac_ext <<_ACEOF
14896/* end confdefs.h. */
14897#include <$ac_header>
14898_ACEOF
14899if { (ac_try="$ac_cpp conftest.$ac_ext"
14900case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14903esac
14904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14906 ac_status=$?
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } >/dev/null; then
14912 if test -s conftest.err; then
14913 ac_cpp_err=$ac_c_preproc_warn_flag
14914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14915 else
14916 ac_cpp_err=
14917 fi
14918else
14919 ac_cpp_err=yes
14920fi
14921if test -z "$ac_cpp_err"; then
14922 ac_header_preproc=yes
14923else
14924 echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5
14926
14927 ac_header_preproc=no
14928fi
14929
14930rm -f conftest.err conftest.$ac_ext
14931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932echo "${ECHO_T}$ac_header_preproc" >&6; }
14933
14934# So? What about this header?
14935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14936 yes:no: )
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941 ac_header_preproc=yes
14942 ;;
14943 no:yes:* )
14944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14956 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014957## ------------------------------------ ##
14958## Report this to http://llvm.org/bugs/ ##
14959## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014960_ASBOX
14961 ) | sed "s/^/$as_me: WARNING: /" >&2
14962 ;;
14963esac
14964{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968else
14969 eval "$as_ac_Header=\$ac_header_preproc"
14970fi
14971ac_res=`eval echo '${'$as_ac_Header'}'`
14972 { echo "$as_me:$LINENO: result: $ac_res" >&5
14973echo "${ECHO_T}$ac_res" >&6; }
14974
14975fi
14976if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014977 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014979_ACEOF
14980
14981fi
14982
14983done
14984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014985
14986
Douglas Gregor071d73d2009-05-18 17:21:34 +000014987for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014988do
14989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14995fi
14996ac_res=`eval echo '${'$as_ac_Header'}'`
14997 { echo "$as_me:$LINENO: result: $ac_res" >&5
14998echo "${ECHO_T}$ac_res" >&6; }
14999else
15000 # Is the header compilable?
15001{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15003cat >conftest.$ac_ext <<_ACEOF
15004/* confdefs.h. */
15005_ACEOF
15006cat confdefs.h >>conftest.$ac_ext
15007cat >>conftest.$ac_ext <<_ACEOF
15008/* end confdefs.h. */
15009$ac_includes_default
15010#include <$ac_header>
15011_ACEOF
15012rm -f conftest.$ac_objext
15013if { (ac_try="$ac_compile"
15014case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017esac
15018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15027 { (case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030esac
15031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15040esac
15041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_try") 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 ac_header_compiler=yes
15047else
15048 echo "$as_me: failed program was:" >&5
15049sed 's/^/| /' conftest.$ac_ext >&5
15050
15051 ac_header_compiler=no
15052fi
15053
15054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15056echo "${ECHO_T}$ac_header_compiler" >&6; }
15057
15058# Is the header present?
15059{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15061cat >conftest.$ac_ext <<_ACEOF
15062/* confdefs.h. */
15063_ACEOF
15064cat confdefs.h >>conftest.$ac_ext
15065cat >>conftest.$ac_ext <<_ACEOF
15066/* end confdefs.h. */
15067#include <$ac_header>
15068_ACEOF
15069if { (ac_try="$ac_cpp conftest.$ac_ext"
15070case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15073esac
15074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15076 ac_status=$?
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } >/dev/null; then
15082 if test -s conftest.err; then
15083 ac_cpp_err=$ac_c_preproc_warn_flag
15084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15085 else
15086 ac_cpp_err=
15087 fi
15088else
15089 ac_cpp_err=yes
15090fi
15091if test -z "$ac_cpp_err"; then
15092 ac_header_preproc=yes
15093else
15094 echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097 ac_header_preproc=no
15098fi
15099
15100rm -f conftest.err conftest.$ac_ext
15101{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15102echo "${ECHO_T}$ac_header_preproc" >&6; }
15103
15104# So? What about this header?
15105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15106 yes:no: )
15107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15111 ac_header_preproc=yes
15112 ;;
15113 no:yes:* )
15114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15126 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015127## ------------------------------------ ##
15128## Report this to http://llvm.org/bugs/ ##
15129## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015130_ASBOX
15131 ) | sed "s/^/$as_me: WARNING: /" >&2
15132 ;;
15133esac
15134{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138else
15139 eval "$as_ac_Header=\$ac_header_preproc"
15140fi
15141ac_res=`eval echo '${'$as_ac_Header'}'`
15142 { echo "$as_me:$LINENO: result: $ac_res" >&5
15143echo "${ECHO_T}$ac_res" >&6; }
15144
15145fi
15146if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015147 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015149_ACEOF
15150
15151fi
15152
15153done
Reid Spencer59473af2004-12-25 07:31:29 +000015154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015155
15156
15157
15158
Daniel Dunbar3e462932011-02-03 02:40:02 +000015159
15160for 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 +000015161do
15162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168fi
15169ac_res=`eval echo '${'$as_ac_Header'}'`
15170 { echo "$as_me:$LINENO: result: $ac_res" >&5
15171echo "${ECHO_T}$ac_res" >&6; }
15172else
15173 # Is the header compilable?
15174{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15176cat >conftest.$ac_ext <<_ACEOF
15177/* confdefs.h. */
15178_ACEOF
15179cat confdefs.h >>conftest.$ac_ext
15180cat >>conftest.$ac_ext <<_ACEOF
15181/* end confdefs.h. */
15182$ac_includes_default
15183#include <$ac_header>
15184_ACEOF
15185rm -f conftest.$ac_objext
15186if { (ac_try="$ac_compile"
15187case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15190esac
15191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192 (eval "$ac_compile") 2>conftest.er1
15193 ac_status=$?
15194 grep -v '^ *+' conftest.er1 >conftest.err
15195 rm -f conftest.er1
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15200 { (case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15203esac
15204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205 (eval "$ac_try") 2>&5
15206 ac_status=$?
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; } &&
15209 { ac_try='test -s conftest.$ac_objext'
15210 { (case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213esac
15214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_try") 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_header_compiler=yes
15220else
15221 echo "$as_me: failed program was:" >&5
15222sed 's/^/| /' conftest.$ac_ext >&5
15223
15224 ac_header_compiler=no
15225fi
15226
15227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15229echo "${ECHO_T}$ac_header_compiler" >&6; }
15230
15231# Is the header present?
15232{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15234cat >conftest.$ac_ext <<_ACEOF
15235/* confdefs.h. */
15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
15240#include <$ac_header>
15241_ACEOF
15242if { (ac_try="$ac_cpp conftest.$ac_ext"
15243case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15246esac
15247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15249 ac_status=$?
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } >/dev/null; then
15255 if test -s conftest.err; then
15256 ac_cpp_err=$ac_c_preproc_warn_flag
15257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15258 else
15259 ac_cpp_err=
15260 fi
15261else
15262 ac_cpp_err=yes
15263fi
15264if test -z "$ac_cpp_err"; then
15265 ac_header_preproc=yes
15266else
15267 echo "$as_me: failed program was:" >&5
15268sed 's/^/| /' conftest.$ac_ext >&5
15269
15270 ac_header_preproc=no
15271fi
15272
15273rm -f conftest.err conftest.$ac_ext
15274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15275echo "${ECHO_T}$ac_header_preproc" >&6; }
15276
15277# So? What about this header?
15278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15279 yes:no: )
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15284 ac_header_preproc=yes
15285 ;;
15286 no:yes:* )
15287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15299 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015300## ------------------------------------ ##
15301## Report this to http://llvm.org/bugs/ ##
15302## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015303_ASBOX
15304 ) | sed "s/^/$as_me: WARNING: /" >&2
15305 ;;
15306esac
15307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15311else
15312 eval "$as_ac_Header=\$ac_header_preproc"
15313fi
15314ac_res=`eval echo '${'$as_ac_Header'}'`
15315 { echo "$as_me:$LINENO: result: $ac_res" >&5
15316echo "${ECHO_T}$ac_res" >&6; }
15317
15318fi
15319if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015320 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015322_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015323
15324fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015325
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015326done
15327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015328
15329
15330
15331
Douglas Gregor01746742009-05-11 18:05:52 +000015332for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015333do
15334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340fi
15341ac_res=`eval echo '${'$as_ac_Header'}'`
15342 { echo "$as_me:$LINENO: result: $ac_res" >&5
15343echo "${ECHO_T}$ac_res" >&6; }
15344else
15345 # Is the header compilable?
15346{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15348cat >conftest.$ac_ext <<_ACEOF
15349/* confdefs.h. */
15350_ACEOF
15351cat confdefs.h >>conftest.$ac_ext
15352cat >>conftest.$ac_ext <<_ACEOF
15353/* end confdefs.h. */
15354$ac_includes_default
15355#include <$ac_header>
15356_ACEOF
15357rm -f conftest.$ac_objext
15358if { (ac_try="$ac_compile"
15359case "(($ac_try" in
15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361 *) ac_try_echo=$ac_try;;
15362esac
15363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364 (eval "$ac_compile") 2>conftest.er1
15365 ac_status=$?
15366 grep -v '^ *+' conftest.er1 >conftest.err
15367 rm -f conftest.er1
15368 cat conftest.err >&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } &&
15371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15372 { (case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375esac
15376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_try") 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15385esac
15386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_try") 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15391 ac_header_compiler=yes
15392else
15393 echo "$as_me: failed program was:" >&5
15394sed 's/^/| /' conftest.$ac_ext >&5
15395
15396 ac_header_compiler=no
15397fi
15398
15399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15401echo "${ECHO_T}$ac_header_compiler" >&6; }
15402
15403# Is the header present?
15404{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15406cat >conftest.$ac_ext <<_ACEOF
15407/* confdefs.h. */
15408_ACEOF
15409cat confdefs.h >>conftest.$ac_ext
15410cat >>conftest.$ac_ext <<_ACEOF
15411/* end confdefs.h. */
15412#include <$ac_header>
15413_ACEOF
15414if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15427 if test -s conftest.err; then
15428 ac_cpp_err=$ac_c_preproc_warn_flag
15429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15430 else
15431 ac_cpp_err=
15432 fi
15433else
15434 ac_cpp_err=yes
15435fi
15436if test -z "$ac_cpp_err"; then
15437 ac_header_preproc=yes
15438else
15439 echo "$as_me: failed program was:" >&5
15440sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 ac_header_preproc=no
15443fi
15444
15445rm -f conftest.err conftest.$ac_ext
15446{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15447echo "${ECHO_T}$ac_header_preproc" >&6; }
15448
15449# So? What about this header?
15450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15451 yes:no: )
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15456 ac_header_preproc=yes
15457 ;;
15458 no:yes:* )
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15471 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015472## ------------------------------------ ##
15473## Report this to http://llvm.org/bugs/ ##
15474## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015475_ASBOX
15476 ) | sed "s/^/$as_me: WARNING: /" >&2
15477 ;;
15478esac
15479{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15483else
15484 eval "$as_ac_Header=\$ac_header_preproc"
15485fi
15486ac_res=`eval echo '${'$as_ac_Header'}'`
15487 { echo "$as_me:$LINENO: result: $ac_res" >&5
15488echo "${ECHO_T}$ac_res" >&6; }
15489
15490fi
15491if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015492 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015494_ACEOF
15495
15496fi
15497
15498done
15499
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015500
15501for ac_header in valgrind/valgrind.h
15502do
15503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15509fi
15510ac_res=`eval echo '${'$as_ac_Header'}'`
15511 { echo "$as_me:$LINENO: result: $ac_res" >&5
15512echo "${ECHO_T}$ac_res" >&6; }
15513else
15514 # Is the header compilable?
15515{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15517cat >conftest.$ac_ext <<_ACEOF
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
15523$ac_includes_default
15524#include <$ac_header>
15525_ACEOF
15526rm -f conftest.$ac_objext
15527if { (ac_try="$ac_compile"
15528case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15531esac
15532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_compile") 2>conftest.er1
15534 ac_status=$?
15535 grep -v '^ *+' conftest.er1 >conftest.err
15536 rm -f conftest.er1
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15541 { (case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15544esac
15545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest.$ac_objext'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15554esac
15555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_header_compiler=yes
15561else
15562 echo "$as_me: failed program was:" >&5
15563sed 's/^/| /' conftest.$ac_ext >&5
15564
15565 ac_header_compiler=no
15566fi
15567
15568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15570echo "${ECHO_T}$ac_header_compiler" >&6; }
15571
15572# Is the header present?
15573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15575cat >conftest.$ac_ext <<_ACEOF
15576/* confdefs.h. */
15577_ACEOF
15578cat confdefs.h >>conftest.$ac_ext
15579cat >>conftest.$ac_ext <<_ACEOF
15580/* end confdefs.h. */
15581#include <$ac_header>
15582_ACEOF
15583if { (ac_try="$ac_cpp conftest.$ac_ext"
15584case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587esac
15588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15590 ac_status=$?
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } >/dev/null; then
15596 if test -s conftest.err; then
15597 ac_cpp_err=$ac_c_preproc_warn_flag
15598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15599 else
15600 ac_cpp_err=
15601 fi
15602else
15603 ac_cpp_err=yes
15604fi
15605if test -z "$ac_cpp_err"; then
15606 ac_header_preproc=yes
15607else
15608 echo "$as_me: failed program was:" >&5
15609sed 's/^/| /' conftest.$ac_ext >&5
15610
15611 ac_header_preproc=no
15612fi
15613
15614rm -f conftest.err conftest.$ac_ext
15615{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15616echo "${ECHO_T}$ac_header_preproc" >&6; }
15617
15618# So? What about this header?
15619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15620 yes:no: )
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15625 ac_header_preproc=yes
15626 ;;
15627 no:yes:* )
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15631echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15635echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15640 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015641## ------------------------------------ ##
15642## Report this to http://llvm.org/bugs/ ##
15643## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015644_ASBOX
15645 ) | sed "s/^/$as_me: WARNING: /" >&2
15646 ;;
15647esac
15648{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15652else
15653 eval "$as_ac_Header=\$ac_header_preproc"
15654fi
15655ac_res=`eval echo '${'$as_ac_Header'}'`
15656 { echo "$as_me:$LINENO: result: $ac_res" >&5
15657echo "${ECHO_T}$ac_res" >&6; }
15658
15659fi
15660if test `eval echo '${'$as_ac_Header'}'` = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15663_ACEOF
15664
15665fi
15666
15667done
15668
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015669
15670for ac_header in fenv.h
15671do
15672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678fi
15679ac_res=`eval echo '${'$as_ac_Header'}'`
15680 { echo "$as_me:$LINENO: result: $ac_res" >&5
15681echo "${ECHO_T}$ac_res" >&6; }
15682else
15683 # Is the header compilable?
15684{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15685echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15686cat >conftest.$ac_ext <<_ACEOF
15687/* confdefs.h. */
15688_ACEOF
15689cat confdefs.h >>conftest.$ac_ext
15690cat >>conftest.$ac_ext <<_ACEOF
15691/* end confdefs.h. */
15692$ac_includes_default
15693#include <$ac_header>
15694_ACEOF
15695rm -f conftest.$ac_objext
15696if { (ac_try="$ac_compile"
15697case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15700esac
15701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_compile") 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15710 { (case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15713esac
15714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_try") 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; } &&
15719 { ac_try='test -s conftest.$ac_objext'
15720 { (case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15723esac
15724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_try") 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_header_compiler=yes
15730else
15731 echo "$as_me: failed program was:" >&5
15732sed 's/^/| /' conftest.$ac_ext >&5
15733
15734 ac_header_compiler=no
15735fi
15736
15737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15739echo "${ECHO_T}$ac_header_compiler" >&6; }
15740
15741# Is the header present?
15742{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15744cat >conftest.$ac_ext <<_ACEOF
15745/* confdefs.h. */
15746_ACEOF
15747cat confdefs.h >>conftest.$ac_ext
15748cat >>conftest.$ac_ext <<_ACEOF
15749/* end confdefs.h. */
15750#include <$ac_header>
15751_ACEOF
15752if { (ac_try="$ac_cpp conftest.$ac_ext"
15753case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15756esac
15757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15759 ac_status=$?
15760 grep -v '^ *+' conftest.er1 >conftest.err
15761 rm -f conftest.er1
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } >/dev/null; then
15765 if test -s conftest.err; then
15766 ac_cpp_err=$ac_c_preproc_warn_flag
15767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15768 else
15769 ac_cpp_err=
15770 fi
15771else
15772 ac_cpp_err=yes
15773fi
15774if test -z "$ac_cpp_err"; then
15775 ac_header_preproc=yes
15776else
15777 echo "$as_me: failed program was:" >&5
15778sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 ac_header_preproc=no
15781fi
15782
15783rm -f conftest.err conftest.$ac_ext
15784{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785echo "${ECHO_T}$ac_header_preproc" >&6; }
15786
15787# So? What about this header?
15788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15789 yes:no: )
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15793echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15794 ac_header_preproc=yes
15795 ;;
15796 no:yes:* )
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15798echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15800echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15802echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15804echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15808echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15809 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015810## ------------------------------------ ##
15811## Report this to http://llvm.org/bugs/ ##
15812## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015813_ASBOX
15814 ) | sed "s/^/$as_me: WARNING: /" >&2
15815 ;;
15816esac
15817{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821else
15822 eval "$as_ac_Header=\$ac_header_preproc"
15823fi
15824ac_res=`eval echo '${'$as_ac_Header'}'`
15825 { echo "$as_me:$LINENO: result: $ac_res" >&5
15826echo "${ECHO_T}$ac_res" >&6; }
15827
15828fi
15829if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830 cat >>confdefs.h <<_ACEOF
15831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15832_ACEOF
15833
15834fi
15835
15836done
15837
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015838if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015839
15840for ac_header in pthread.h
15841do
15842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15848fi
15849ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851echo "${ECHO_T}$ac_res" >&6; }
15852else
15853 # Is the header compilable?
15854{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15856cat >conftest.$ac_ext <<_ACEOF
15857/* confdefs.h. */
15858_ACEOF
15859cat confdefs.h >>conftest.$ac_ext
15860cat >>conftest.$ac_ext <<_ACEOF
15861/* end confdefs.h. */
15862$ac_includes_default
15863#include <$ac_header>
15864_ACEOF
15865rm -f conftest.$ac_objext
15866if { (ac_try="$ac_compile"
15867case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15870esac
15871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_compile") 2>conftest.er1
15873 ac_status=$?
15874 grep -v '^ *+' conftest.er1 >conftest.err
15875 rm -f conftest.er1
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15880 { (case "(($ac_try" in
15881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882 *) ac_try_echo=$ac_try;;
15883esac
15884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885 (eval "$ac_try") 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893esac
15894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_try") 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_header_compiler=yes
15900else
15901 echo "$as_me: failed program was:" >&5
15902sed 's/^/| /' conftest.$ac_ext >&5
15903
15904 ac_header_compiler=no
15905fi
15906
15907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15909echo "${ECHO_T}$ac_header_compiler" >&6; }
15910
15911# Is the header present?
15912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15914cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h. */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h. */
15920#include <$ac_header>
15921_ACEOF
15922if { (ac_try="$ac_cpp conftest.$ac_ext"
15923case "(($ac_try" in
15924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925 *) ac_try_echo=$ac_try;;
15926esac
15927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15929 ac_status=$?
15930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } >/dev/null; then
15935 if test -s conftest.err; then
15936 ac_cpp_err=$ac_c_preproc_warn_flag
15937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15938 else
15939 ac_cpp_err=
15940 fi
15941else
15942 ac_cpp_err=yes
15943fi
15944if test -z "$ac_cpp_err"; then
15945 ac_header_preproc=yes
15946else
15947 echo "$as_me: failed program was:" >&5
15948sed 's/^/| /' conftest.$ac_ext >&5
15949
15950 ac_header_preproc=no
15951fi
15952
15953rm -f conftest.err conftest.$ac_ext
15954{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955echo "${ECHO_T}$ac_header_preproc" >&6; }
15956
15957# So? What about this header?
15958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15959 yes:no: )
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15964 ac_header_preproc=yes
15965 ;;
15966 no:yes:* )
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15974echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15979 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015980## ------------------------------------ ##
15981## Report this to http://llvm.org/bugs/ ##
15982## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015983_ASBOX
15984 ) | sed "s/^/$as_me: WARNING: /" >&2
15985 ;;
15986esac
15987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15991else
15992 eval "$as_ac_Header=\$ac_header_preproc"
15993fi
15994ac_res=`eval echo '${'$as_ac_Header'}'`
15995 { echo "$as_me:$LINENO: result: $ac_res" >&5
15996echo "${ECHO_T}$ac_res" >&6; }
15997
15998fi
15999if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016000 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016002_ACEOF
16003 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016004
16005else
16006 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016007
16008fi
16009
Reid Spencerbe3e4192007-08-17 05:45:26 +000016010done
Reid Spencer1000b732006-12-01 00:37:14 +000016011
16012else
16013 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016014
16015fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016016
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016017if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016018
16019
16020for ac_header in ffi.h ffi/ffi.h
16021do
16022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16028fi
16029ac_res=`eval echo '${'$as_ac_Header'}'`
16030 { echo "$as_me:$LINENO: result: $ac_res" >&5
16031echo "${ECHO_T}$ac_res" >&6; }
16032else
16033 # Is the header compilable?
16034{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16036cat >conftest.$ac_ext <<_ACEOF
16037/* confdefs.h. */
16038_ACEOF
16039cat confdefs.h >>conftest.$ac_ext
16040cat >>conftest.$ac_ext <<_ACEOF
16041/* end confdefs.h. */
16042$ac_includes_default
16043#include <$ac_header>
16044_ACEOF
16045rm -f conftest.$ac_objext
16046if { (ac_try="$ac_compile"
16047case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16050esac
16051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_compile") 2>conftest.er1
16053 ac_status=$?
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060 { (case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063esac
16064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_try") 2>&5
16066 ac_status=$?
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest.$ac_objext'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 ac_header_compiler=yes
16080else
16081 echo "$as_me: failed program was:" >&5
16082sed 's/^/| /' conftest.$ac_ext >&5
16083
16084 ac_header_compiler=no
16085fi
16086
16087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16089echo "${ECHO_T}$ac_header_compiler" >&6; }
16090
16091# Is the header present?
16092{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16093echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16094cat >conftest.$ac_ext <<_ACEOF
16095/* confdefs.h. */
16096_ACEOF
16097cat confdefs.h >>conftest.$ac_ext
16098cat >>conftest.$ac_ext <<_ACEOF
16099/* end confdefs.h. */
16100#include <$ac_header>
16101_ACEOF
16102if { (ac_try="$ac_cpp conftest.$ac_ext"
16103case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16106esac
16107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16109 ac_status=$?
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } >/dev/null; then
16115 if test -s conftest.err; then
16116 ac_cpp_err=$ac_c_preproc_warn_flag
16117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16118 else
16119 ac_cpp_err=
16120 fi
16121else
16122 ac_cpp_err=yes
16123fi
16124if test -z "$ac_cpp_err"; then
16125 ac_header_preproc=yes
16126else
16127 echo "$as_me: failed program was:" >&5
16128sed 's/^/| /' conftest.$ac_ext >&5
16129
16130 ac_header_preproc=no
16131fi
16132
16133rm -f conftest.err conftest.$ac_ext
16134{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16135echo "${ECHO_T}$ac_header_preproc" >&6; }
16136
16137# So? What about this header?
16138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16139 yes:no: )
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16141echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16143echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16144 ac_header_preproc=yes
16145 ;;
16146 no:yes:* )
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16148echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16150echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16152echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16154echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16156echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16158echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16159 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016160## ------------------------------------ ##
16161## Report this to http://llvm.org/bugs/ ##
16162## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016163_ASBOX
16164 ) | sed "s/^/$as_me: WARNING: /" >&2
16165 ;;
16166esac
16167{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16171else
16172 eval "$as_ac_Header=\$ac_header_preproc"
16173fi
16174ac_res=`eval echo '${'$as_ac_Header'}'`
16175 { echo "$as_me:$LINENO: result: $ac_res" >&5
16176echo "${ECHO_T}$ac_res" >&6; }
16177
16178fi
16179if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016180 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016182_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016183
16184fi
16185
16186done
16187
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016188fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016189
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016190
Eric Christopher654dee42010-06-22 21:01:04 +000016191for ac_header in CrashReporterClient.h
16192do
16193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16199fi
16200ac_res=`eval echo '${'$as_ac_Header'}'`
16201 { echo "$as_me:$LINENO: result: $ac_res" >&5
16202echo "${ECHO_T}$ac_res" >&6; }
16203else
16204 # Is the header compilable?
16205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16207cat >conftest.$ac_ext <<_ACEOF
16208/* confdefs.h. */
16209_ACEOF
16210cat confdefs.h >>conftest.$ac_ext
16211cat >>conftest.$ac_ext <<_ACEOF
16212/* end confdefs.h. */
16213$ac_includes_default
16214#include <$ac_header>
16215_ACEOF
16216rm -f conftest.$ac_objext
16217if { (ac_try="$ac_compile"
16218case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221esac
16222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_compile") 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234esac
16235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; } &&
16240 { ac_try='test -s conftest.$ac_objext'
16241 { (case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16244esac
16245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_try") 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_header_compiler=yes
16251else
16252 echo "$as_me: failed program was:" >&5
16253sed 's/^/| /' conftest.$ac_ext >&5
16254
16255 ac_header_compiler=no
16256fi
16257
16258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16259{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16260echo "${ECHO_T}$ac_header_compiler" >&6; }
16261
16262# Is the header present?
16263{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16265cat >conftest.$ac_ext <<_ACEOF
16266/* confdefs.h. */
16267_ACEOF
16268cat confdefs.h >>conftest.$ac_ext
16269cat >>conftest.$ac_ext <<_ACEOF
16270/* end confdefs.h. */
16271#include <$ac_header>
16272_ACEOF
16273if { (ac_try="$ac_cpp conftest.$ac_ext"
16274case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277esac
16278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16280 ac_status=$?
16281 grep -v '^ *+' conftest.er1 >conftest.err
16282 rm -f conftest.er1
16283 cat conftest.err >&5
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } >/dev/null; then
16286 if test -s conftest.err; then
16287 ac_cpp_err=$ac_c_preproc_warn_flag
16288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16289 else
16290 ac_cpp_err=
16291 fi
16292else
16293 ac_cpp_err=yes
16294fi
16295if test -z "$ac_cpp_err"; then
16296 ac_header_preproc=yes
16297else
16298 echo "$as_me: failed program was:" >&5
16299sed 's/^/| /' conftest.$ac_ext >&5
16300
16301 ac_header_preproc=no
16302fi
16303
16304rm -f conftest.err conftest.$ac_ext
16305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16306echo "${ECHO_T}$ac_header_preproc" >&6; }
16307
16308# So? What about this header?
16309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16310 yes:no: )
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16315 ac_header_preproc=yes
16316 ;;
16317 no:yes:* )
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16321echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16325echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16330 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016331## ------------------------------------ ##
16332## Report this to http://llvm.org/bugs/ ##
16333## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016334_ASBOX
16335 ) | sed "s/^/$as_me: WARNING: /" >&2
16336 ;;
16337esac
16338{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16342else
16343 eval "$as_ac_Header=\$ac_header_preproc"
16344fi
16345ac_res=`eval echo '${'$as_ac_Header'}'`
16346 { echo "$as_me:$LINENO: result: $ac_res" >&5
16347echo "${ECHO_T}$ac_res" >&6; }
16348
16349fi
16350if test `eval echo '${'$as_ac_Header'}'` = yes; then
16351 cat >>confdefs.h <<_ACEOF
16352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16353_ACEOF
16354
16355fi
16356
16357done
16358
16359
Eric Christopher51e57132010-12-07 02:05:42 +000016360{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16361echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016362cat >conftest.$ac_ext <<_ACEOF
16363/* confdefs.h. */
16364_ACEOF
16365cat confdefs.h >>conftest.$ac_ext
16366cat >>conftest.$ac_ext <<_ACEOF
16367/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016368extern const char *__crashreporter_info__;
16369 int main() {
16370 __crashreporter_info__ = "test";
16371 return 0;
16372 }
Eric Christopher481d4022010-12-03 07:45:22 +000016373
Eric Christopher481d4022010-12-03 07:45:22 +000016374_ACEOF
16375rm -f conftest.$ac_objext conftest$ac_exeext
16376if { (ac_try="$ac_link"
16377case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380esac
16381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_link") 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16390 { (case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16393esac
16394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_try") 2>&5
16396 ac_status=$?
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest$ac_exeext'
16400 { (case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16403esac
16404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_try") 2>&5
16406 ac_status=$?
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016409 { echo "$as_me:$LINENO: result: yes" >&5
16410echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016411
16412cat >>confdefs.h <<\_ACEOF
16413#define HAVE_CRASHREPORTER_INFO 1
16414_ACEOF
16415
Eric Christopher51e57132010-12-07 02:05:42 +000016416else
16417 echo "$as_me: failed program was:" >&5
16418sed 's/^/| /' conftest.$ac_ext >&5
16419
16420 { echo "$as_me:$LINENO: result: no" >&5
16421echo "${ECHO_T}no" >&6; }
16422
16423cat >>confdefs.h <<\_ACEOF
16424#define HAVE_CRASHREPORTER_INFO 0
16425_ACEOF
16426
Eric Christopher481d4022010-12-03 07:45:22 +000016427fi
Eric Christopher654dee42010-06-22 21:01:04 +000016428
Eric Christopher51e57132010-12-07 02:05:42 +000016429rm -f core conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16431
16432
Reid Spencer8085cff2005-01-16 02:58:39 +000016433
Torok Edwin871384f2010-01-26 08:50:50 +000016434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016435 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16436echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16437if test "${ac_cv_huge_val_sanity+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016439else
16440
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016441 ac_ext=cpp
16442ac_cpp='$CXXCPP $CPPFLAGS'
16443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016446
Eric Christopherc7718502010-03-02 05:06:54 +000016447 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016448 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016449 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016450 ac_cv_huge_val_sanity=yes
16451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016452 cat >conftest.$ac_ext <<_ACEOF
16453/* confdefs.h. */
16454_ACEOF
16455cat confdefs.h >>conftest.$ac_ext
16456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016457/* end confdefs.h. */
16458#include <math.h>
16459int
16460main ()
16461{
16462double x = HUGE_VAL; return x != x;
16463 ;
16464 return 0;
16465}
16466_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016467rm -f conftest$ac_exeext
16468if { (ac_try="$ac_link"
16469case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16472esac
16473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_link") 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16481esac
16482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016487 ac_cv_huge_val_sanity=yes
16488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016489 echo "$as_me: program exited with status $ac_status" >&5
16490echo "$as_me: failed program was:" >&5
16491sed 's/^/| /' conftest.$ac_ext >&5
16492
16493( exit $ac_status )
16494ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016495fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016496rm -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 +000016497fi
16498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016499
Eric Christopherc7718502010-03-02 05:06:54 +000016500 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016501 ac_ext=c
16502ac_cpp='$CPP $CPPFLAGS'
16503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16505ac_compiler_gnu=$ac_cv_c_compiler_gnu
16506
16507
16508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016509{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16510echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016511 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16512
16513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016514{ echo "$as_me:$LINENO: checking for pid_t" >&5
16515echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16516if test "${ac_cv_type_pid_t+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16518else
16519 cat >conftest.$ac_ext <<_ACEOF
16520/* confdefs.h. */
16521_ACEOF
16522cat confdefs.h >>conftest.$ac_ext
16523cat >>conftest.$ac_ext <<_ACEOF
16524/* end confdefs.h. */
16525$ac_includes_default
16526typedef pid_t ac__type_new_;
16527int
16528main ()
16529{
16530if ((ac__type_new_ *) 0)
16531 return 0;
16532if (sizeof (ac__type_new_))
16533 return 0;
16534 ;
16535 return 0;
16536}
16537_ACEOF
16538rm -f conftest.$ac_objext
16539if { (ac_try="$ac_compile"
16540case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16543esac
16544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_compile") 2>conftest.er1
16546 ac_status=$?
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16553 { (case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16556esac
16557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_try") 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; } &&
16562 { ac_try='test -s conftest.$ac_objext'
16563 { (case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16566esac
16567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_try") 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ac_cv_type_pid_t=yes
16573else
16574 echo "$as_me: failed program was:" >&5
16575sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016577 ac_cv_type_pid_t=no
16578fi
16579
16580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581fi
16582{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16583echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16584if test $ac_cv_type_pid_t = yes; then
16585 :
John Criswell7a73b802003-06-30 21:59:07 +000016586else
16587
16588cat >>confdefs.h <<_ACEOF
16589#define pid_t int
16590_ACEOF
16591
16592fi
16593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016594{ echo "$as_me:$LINENO: checking for size_t" >&5
16595echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16596if test "${ac_cv_type_size_t+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16598else
16599 cat >conftest.$ac_ext <<_ACEOF
16600/* confdefs.h. */
16601_ACEOF
16602cat confdefs.h >>conftest.$ac_ext
16603cat >>conftest.$ac_ext <<_ACEOF
16604/* end confdefs.h. */
16605$ac_includes_default
16606typedef size_t ac__type_new_;
16607int
16608main ()
16609{
16610if ((ac__type_new_ *) 0)
16611 return 0;
16612if (sizeof (ac__type_new_))
16613 return 0;
16614 ;
16615 return 0;
16616}
16617_ACEOF
16618rm -f conftest.$ac_objext
16619if { (ac_try="$ac_compile"
16620case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16623esac
16624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16626 ac_status=$?
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16633 { (case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636esac
16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_try") 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16646esac
16647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_try") 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_cv_type_size_t=yes
16653else
16654 echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016657 ac_cv_type_size_t=no
16658fi
16659
16660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661fi
16662{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16663echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16664if test $ac_cv_type_size_t = yes; then
16665 :
John Criswell7a73b802003-06-30 21:59:07 +000016666else
16667
16668cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016669#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016670_ACEOF
16671
16672fi
16673
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016674
16675cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016676#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016677_ACEOF
16678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016679{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16680echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16681if test "${ac_cv_struct_tm+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016684 cat >conftest.$ac_ext <<_ACEOF
16685/* confdefs.h. */
16686_ACEOF
16687cat confdefs.h >>conftest.$ac_ext
16688cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016689/* end confdefs.h. */
16690#include <sys/types.h>
16691#include <time.h>
16692
16693int
16694main ()
16695{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016696struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016697 ;
16698 return 0;
16699}
16700_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016701rm -f conftest.$ac_objext
16702if { (ac_try="$ac_compile"
16703case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16706esac
16707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_compile") 2>conftest.er1
16709 ac_status=$?
16710 grep -v '^ *+' conftest.er1 >conftest.err
16711 rm -f conftest.er1
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16719esac
16720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest.$ac_objext'
16726 { (case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16729esac
16730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_try") 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016735 ac_cv_struct_tm=time.h
16736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016737 echo "$as_me: failed program was:" >&5
16738sed 's/^/| /' conftest.$ac_ext >&5
16739
16740 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016742
Reid Spencera773bd52006-08-04 18:18:08 +000016743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016745{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16746echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016747if test $ac_cv_struct_tm = sys/time.h; then
16748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016749cat >>confdefs.h <<\_ACEOF
16750#define TM_IN_SYS_TIME 1
16751_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016752
16753fi
16754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016755{ echo "$as_me:$LINENO: checking for int64_t" >&5
16756echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16757if test "${ac_cv_type_int64_t+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759else
16760 cat >conftest.$ac_ext <<_ACEOF
16761/* confdefs.h. */
16762_ACEOF
16763cat confdefs.h >>conftest.$ac_ext
16764cat >>conftest.$ac_ext <<_ACEOF
16765/* end confdefs.h. */
16766$ac_includes_default
16767typedef int64_t ac__type_new_;
16768int
16769main ()
16770{
16771if ((ac__type_new_ *) 0)
16772 return 0;
16773if (sizeof (ac__type_new_))
16774 return 0;
16775 ;
16776 return 0;
16777}
16778_ACEOF
16779rm -f conftest.$ac_objext
16780if { (ac_try="$ac_compile"
16781case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16784esac
16785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_compile") 2>conftest.er1
16787 ac_status=$?
16788 grep -v '^ *+' conftest.er1 >conftest.err
16789 rm -f conftest.er1
16790 cat conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } &&
16793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794 { (case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16797esac
16798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_try") 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest.$ac_objext'
16804 { (case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16807esac
16808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_try") 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_cv_type_int64_t=yes
16814else
16815 echo "$as_me: failed program was:" >&5
16816sed 's/^/| /' conftest.$ac_ext >&5
16817
16818 ac_cv_type_int64_t=no
16819fi
16820
16821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16822fi
16823{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16824echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16825if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016826
16827cat >>confdefs.h <<_ACEOF
16828#define HAVE_INT64_T 1
16829_ACEOF
16830
16831
16832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016833 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16834echo "$as_me: error: Type int64_t required but not found" >&2;}
16835 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016836fi
16837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016838{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16839echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16840if test "${ac_cv_type_uint64_t+set}" = set; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16842else
16843 cat >conftest.$ac_ext <<_ACEOF
16844/* confdefs.h. */
16845_ACEOF
16846cat confdefs.h >>conftest.$ac_ext
16847cat >>conftest.$ac_ext <<_ACEOF
16848/* end confdefs.h. */
16849$ac_includes_default
16850typedef uint64_t ac__type_new_;
16851int
16852main ()
16853{
16854if ((ac__type_new_ *) 0)
16855 return 0;
16856if (sizeof (ac__type_new_))
16857 return 0;
16858 ;
16859 return 0;
16860}
16861_ACEOF
16862rm -f conftest.$ac_objext
16863if { (ac_try="$ac_compile"
16864case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16867esac
16868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_compile") 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880esac
16881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; } &&
16886 { ac_try='test -s conftest.$ac_objext'
16887 { (case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16890esac
16891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_try") 2>&5
16893 ac_status=$?
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896 ac_cv_type_uint64_t=yes
16897else
16898 echo "$as_me: failed program was:" >&5
16899sed 's/^/| /' conftest.$ac_ext >&5
16900
16901 ac_cv_type_uint64_t=no
16902fi
16903
16904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16905fi
16906{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16907echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16908if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016909
16910cat >>confdefs.h <<_ACEOF
16911#define HAVE_UINT64_T 1
16912_ACEOF
16913
16914
16915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016916 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16917echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16918if test "${ac_cv_type_u_int64_t+set}" = set; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16920else
16921 cat >conftest.$ac_ext <<_ACEOF
16922/* confdefs.h. */
16923_ACEOF
16924cat confdefs.h >>conftest.$ac_ext
16925cat >>conftest.$ac_ext <<_ACEOF
16926/* end confdefs.h. */
16927$ac_includes_default
16928typedef u_int64_t ac__type_new_;
16929int
16930main ()
16931{
16932if ((ac__type_new_ *) 0)
16933 return 0;
16934if (sizeof (ac__type_new_))
16935 return 0;
16936 ;
16937 return 0;
16938}
16939_ACEOF
16940rm -f conftest.$ac_objext
16941if { (ac_try="$ac_compile"
16942case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16945esac
16946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_compile") 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
16954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16955 { (case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958esac
16959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_try") 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; } &&
16964 { ac_try='test -s conftest.$ac_objext'
16965 { (case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16968esac
16969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_try") 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 ac_cv_type_u_int64_t=yes
16975else
16976 echo "$as_me: failed program was:" >&5
16977sed 's/^/| /' conftest.$ac_ext >&5
16978
16979 ac_cv_type_u_int64_t=no
16980fi
16981
16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983fi
16984{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16985echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16986if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016987
16988cat >>confdefs.h <<_ACEOF
16989#define HAVE_U_INT64_T 1
16990_ACEOF
16991
16992
Misha Brukmanceca9042004-09-02 23:02:30 +000016993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016994 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16995echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16996 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016997fi
16998
John Criswell679ff312004-09-02 18:44:44 +000016999fi
17000
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017001
17002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017003
17004
17005
17006
17007
17008
17009
Reid Spencerdf3be822006-01-23 08:15:53 +000017010for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017011do
17012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17017else
17018 cat >conftest.$ac_ext <<_ACEOF
17019/* confdefs.h. */
17020_ACEOF
17021cat confdefs.h >>conftest.$ac_ext
17022cat >>conftest.$ac_ext <<_ACEOF
17023/* end confdefs.h. */
17024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17026#define $ac_func innocuous_$ac_func
17027
17028/* System header to define __stub macros and hopefully few prototypes,
17029 which can conflict with char $ac_func (); below.
17030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17031 <limits.h> exists even on freestanding compilers. */
17032
17033#ifdef __STDC__
17034# include <limits.h>
17035#else
17036# include <assert.h>
17037#endif
17038
17039#undef $ac_func
17040
17041/* Override any GCC internal prototype to avoid an error.
17042 Use char because int might match the return type of a GCC
17043 builtin and then its argument prototype would still apply. */
17044#ifdef __cplusplus
17045extern "C"
17046#endif
17047char $ac_func ();
17048/* The GNU C library defines this for functions which it implements
17049 to always fail with ENOSYS. Some functions are actually named
17050 something starting with __ and the normal name is an alias. */
17051#if defined __stub_$ac_func || defined __stub___$ac_func
17052choke me
17053#endif
17054
17055int
17056main ()
17057{
17058return $ac_func ();
17059 ;
17060 return 0;
17061}
17062_ACEOF
17063rm -f conftest.$ac_objext conftest$ac_exeext
17064if { (ac_try="$ac_link"
17065case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068esac
17069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_link") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17078 { (case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081esac
17082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_try") 2>&5
17084 ac_status=$?
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest$ac_exeext'
17088 { (case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091esac
17092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_try") 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 eval "$as_ac_var=yes"
17098else
17099 echo "$as_me: failed program was:" >&5
17100sed 's/^/| /' conftest.$ac_ext >&5
17101
17102 eval "$as_ac_var=no"
17103fi
17104
17105rm -f core conftest.err conftest.$ac_objext \
17106 conftest$ac_exeext conftest.$ac_ext
17107fi
17108ac_res=`eval echo '${'$as_ac_var'}'`
17109 { echo "$as_me:$LINENO: result: $ac_res" >&5
17110echo "${ECHO_T}$ac_res" >&6; }
17111if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017112 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017114_ACEOF
17115
17116fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017117done
John Criswell7a73b802003-06-30 21:59:07 +000017118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017119
17120
17121
17122
Reid Spencer96cf5872007-07-13 10:05:30 +000017123for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017124do
17125as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17126{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17127echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17128if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130else
17131 cat >conftest.$ac_ext <<_ACEOF
17132/* confdefs.h. */
17133_ACEOF
17134cat confdefs.h >>conftest.$ac_ext
17135cat >>conftest.$ac_ext <<_ACEOF
17136/* end confdefs.h. */
17137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17139#define $ac_func innocuous_$ac_func
17140
17141/* System header to define __stub macros and hopefully few prototypes,
17142 which can conflict with char $ac_func (); below.
17143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17144 <limits.h> exists even on freestanding compilers. */
17145
17146#ifdef __STDC__
17147# include <limits.h>
17148#else
17149# include <assert.h>
17150#endif
17151
17152#undef $ac_func
17153
17154/* Override any GCC internal prototype to avoid an error.
17155 Use char because int might match the return type of a GCC
17156 builtin and then its argument prototype would still apply. */
17157#ifdef __cplusplus
17158extern "C"
17159#endif
17160char $ac_func ();
17161/* The GNU C library defines this for functions which it implements
17162 to always fail with ENOSYS. Some functions are actually named
17163 something starting with __ and the normal name is an alias. */
17164#if defined __stub_$ac_func || defined __stub___$ac_func
17165choke me
17166#endif
17167
17168int
17169main ()
17170{
17171return $ac_func ();
17172 ;
17173 return 0;
17174}
17175_ACEOF
17176rm -f conftest.$ac_objext conftest$ac_exeext
17177if { (ac_try="$ac_link"
17178case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17181esac
17182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_link") 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194esac
17195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; } &&
17200 { ac_try='test -s conftest$ac_exeext'
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17204esac
17205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 eval "$as_ac_var=yes"
17211else
17212 echo "$as_me: failed program was:" >&5
17213sed 's/^/| /' conftest.$ac_ext >&5
17214
17215 eval "$as_ac_var=no"
17216fi
17217
17218rm -f core conftest.err conftest.$ac_objext \
17219 conftest$ac_exeext conftest.$ac_ext
17220fi
17221ac_res=`eval echo '${'$as_ac_var'}'`
17222 { echo "$as_me:$LINENO: result: $ac_res" >&5
17223echo "${ECHO_T}$ac_res" >&6; }
17224if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017225 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017227_ACEOF
17228
17229fi
17230done
17231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017232
17233
17234
17235
17236
Reid Spencerb90645c2007-02-16 19:17:20 +000017237for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017238do
17239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17240{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17242if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17244else
17245 cat >conftest.$ac_ext <<_ACEOF
17246/* confdefs.h. */
17247_ACEOF
17248cat confdefs.h >>conftest.$ac_ext
17249cat >>conftest.$ac_ext <<_ACEOF
17250/* end confdefs.h. */
17251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17253#define $ac_func innocuous_$ac_func
17254
17255/* System header to define __stub macros and hopefully few prototypes,
17256 which can conflict with char $ac_func (); below.
17257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17258 <limits.h> exists even on freestanding compilers. */
17259
17260#ifdef __STDC__
17261# include <limits.h>
17262#else
17263# include <assert.h>
17264#endif
17265
17266#undef $ac_func
17267
17268/* Override any GCC internal prototype to avoid an error.
17269 Use char because int might match the return type of a GCC
17270 builtin and then its argument prototype would still apply. */
17271#ifdef __cplusplus
17272extern "C"
17273#endif
17274char $ac_func ();
17275/* The GNU C library defines this for functions which it implements
17276 to always fail with ENOSYS. Some functions are actually named
17277 something starting with __ and the normal name is an alias. */
17278#if defined __stub_$ac_func || defined __stub___$ac_func
17279choke me
17280#endif
17281
17282int
17283main ()
17284{
17285return $ac_func ();
17286 ;
17287 return 0;
17288}
17289_ACEOF
17290rm -f conftest.$ac_objext conftest$ac_exeext
17291if { (ac_try="$ac_link"
17292case "(($ac_try" in
17293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294 *) ac_try_echo=$ac_try;;
17295esac
17296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17297 (eval "$ac_link") 2>conftest.er1
17298 ac_status=$?
17299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17305 { (case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17308esac
17309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_try") 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest$ac_exeext'
17315 { (case "(($ac_try" in
17316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317 *) ac_try_echo=$ac_try;;
17318esac
17319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320 (eval "$ac_try") 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 eval "$as_ac_var=yes"
17325else
17326 echo "$as_me: failed program was:" >&5
17327sed 's/^/| /' conftest.$ac_ext >&5
17328
17329 eval "$as_ac_var=no"
17330fi
17331
17332rm -f core conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17334fi
17335ac_res=`eval echo '${'$as_ac_var'}'`
17336 { echo "$as_me:$LINENO: result: $ac_res" >&5
17337echo "${ECHO_T}$ac_res" >&6; }
17338if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017339 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017341_ACEOF
17342
17343fi
17344done
17345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017346
17347
17348
Reid Spencerb90645c2007-02-16 19:17:20 +000017349for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017350do
17351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17352{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17354if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17356else
17357 cat >conftest.$ac_ext <<_ACEOF
17358/* confdefs.h. */
17359_ACEOF
17360cat confdefs.h >>conftest.$ac_ext
17361cat >>conftest.$ac_ext <<_ACEOF
17362/* end confdefs.h. */
17363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17365#define $ac_func innocuous_$ac_func
17366
17367/* System header to define __stub macros and hopefully few prototypes,
17368 which can conflict with char $ac_func (); below.
17369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17370 <limits.h> exists even on freestanding compilers. */
17371
17372#ifdef __STDC__
17373# include <limits.h>
17374#else
17375# include <assert.h>
17376#endif
17377
17378#undef $ac_func
17379
17380/* Override any GCC internal prototype to avoid an error.
17381 Use char because int might match the return type of a GCC
17382 builtin and then its argument prototype would still apply. */
17383#ifdef __cplusplus
17384extern "C"
17385#endif
17386char $ac_func ();
17387/* The GNU C library defines this for functions which it implements
17388 to always fail with ENOSYS. Some functions are actually named
17389 something starting with __ and the normal name is an alias. */
17390#if defined __stub_$ac_func || defined __stub___$ac_func
17391choke me
17392#endif
17393
17394int
17395main ()
17396{
17397return $ac_func ();
17398 ;
17399 return 0;
17400}
17401_ACEOF
17402rm -f conftest.$ac_objext conftest$ac_exeext
17403if { (ac_try="$ac_link"
17404case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17407esac
17408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_link") 2>conftest.er1
17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420esac
17421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest$ac_exeext'
17427 { (case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17430esac
17431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_try") 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 eval "$as_ac_var=yes"
17437else
17438 echo "$as_me: failed program was:" >&5
17439sed 's/^/| /' conftest.$ac_ext >&5
17440
17441 eval "$as_ac_var=no"
17442fi
17443
17444rm -f core conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17446fi
17447ac_res=`eval echo '${'$as_ac_var'}'`
17448 { echo "$as_me:$LINENO: result: $ac_res" >&5
17449echo "${ECHO_T}$ac_res" >&6; }
17450if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017451 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017453_ACEOF
17454
17455fi
17456done
17457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017458
17459
17460
17461
17462
Eric Christophere4291822010-04-16 05:14:21 +000017463
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017464
17465for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017466do
17467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17468{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17470if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17472else
17473 cat >conftest.$ac_ext <<_ACEOF
17474/* confdefs.h. */
17475_ACEOF
17476cat confdefs.h >>conftest.$ac_ext
17477cat >>conftest.$ac_ext <<_ACEOF
17478/* end confdefs.h. */
17479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17481#define $ac_func innocuous_$ac_func
17482
17483/* System header to define __stub macros and hopefully few prototypes,
17484 which can conflict with char $ac_func (); below.
17485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17486 <limits.h> exists even on freestanding compilers. */
17487
17488#ifdef __STDC__
17489# include <limits.h>
17490#else
17491# include <assert.h>
17492#endif
17493
17494#undef $ac_func
17495
17496/* Override any GCC internal prototype to avoid an error.
17497 Use char because int might match the return type of a GCC
17498 builtin and then its argument prototype would still apply. */
17499#ifdef __cplusplus
17500extern "C"
17501#endif
17502char $ac_func ();
17503/* The GNU C library defines this for functions which it implements
17504 to always fail with ENOSYS. Some functions are actually named
17505 something starting with __ and the normal name is an alias. */
17506#if defined __stub_$ac_func || defined __stub___$ac_func
17507choke me
17508#endif
17509
17510int
17511main ()
17512{
17513return $ac_func ();
17514 ;
17515 return 0;
17516}
17517_ACEOF
17518rm -f conftest.$ac_objext conftest$ac_exeext
17519if { (ac_try="$ac_link"
17520case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17523esac
17524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_link") 2>conftest.er1
17526 ac_status=$?
17527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17536esac
17537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546esac
17547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_try") 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 eval "$as_ac_var=yes"
17553else
17554 echo "$as_me: failed program was:" >&5
17555sed 's/^/| /' conftest.$ac_ext >&5
17556
17557 eval "$as_ac_var=no"
17558fi
17559
17560rm -f core conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17562fi
17563ac_res=`eval echo '${'$as_ac_var'}'`
17564 { echo "$as_me:$LINENO: result: $ac_res" >&5
17565echo "${ECHO_T}$ac_res" >&6; }
17566if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017567 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017569_ACEOF
17570
17571fi
17572done
Reid Spencerdf3be822006-01-23 08:15:53 +000017573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017574
17575
17576
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017577
17578for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017579do
17580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17581{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17583if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17585else
17586 cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
17592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594#define $ac_func innocuous_$ac_func
17595
17596/* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char $ac_func (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
17600
17601#ifdef __STDC__
17602# include <limits.h>
17603#else
17604# include <assert.h>
17605#endif
17606
17607#undef $ac_func
17608
17609/* Override any GCC internal prototype to avoid an error.
17610 Use char because int might match the return type of a GCC
17611 builtin and then its argument prototype would still apply. */
17612#ifdef __cplusplus
17613extern "C"
17614#endif
17615char $ac_func ();
17616/* The GNU C library defines this for functions which it implements
17617 to always fail with ENOSYS. Some functions are actually named
17618 something starting with __ and the normal name is an alias. */
17619#if defined __stub_$ac_func || defined __stub___$ac_func
17620choke me
17621#endif
17622
17623int
17624main ()
17625{
17626return $ac_func ();
17627 ;
17628 return 0;
17629}
17630_ACEOF
17631rm -f conftest.$ac_objext conftest$ac_exeext
17632if { (ac_try="$ac_link"
17633case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17636esac
17637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_link") 2>conftest.er1
17639 ac_status=$?
17640 grep -v '^ *+' conftest.er1 >conftest.err
17641 rm -f conftest.er1
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649esac
17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659esac
17660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 eval "$as_ac_var=yes"
17666else
17667 echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 eval "$as_ac_var=no"
17671fi
17672
17673rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17675fi
17676ac_res=`eval echo '${'$as_ac_var'}'`
17677 { echo "$as_me:$LINENO: result: $ac_res" >&5
17678echo "${ECHO_T}$ac_res" >&6; }
17679if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017680 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017682_ACEOF
17683
17684fi
17685done
17686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017687
17688
17689
17690
Chris Lattner511f11d2005-11-14 07:25:50 +000017691for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017692do
17693as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17694{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17695echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17696if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698else
17699 cat >conftest.$ac_ext <<_ACEOF
17700/* confdefs.h. */
17701_ACEOF
17702cat confdefs.h >>conftest.$ac_ext
17703cat >>conftest.$ac_ext <<_ACEOF
17704/* end confdefs.h. */
17705/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17707#define $ac_func innocuous_$ac_func
17708
17709/* System header to define __stub macros and hopefully few prototypes,
17710 which can conflict with char $ac_func (); below.
17711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 <limits.h> exists even on freestanding compilers. */
17713
17714#ifdef __STDC__
17715# include <limits.h>
17716#else
17717# include <assert.h>
17718#endif
17719
17720#undef $ac_func
17721
17722/* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17725#ifdef __cplusplus
17726extern "C"
17727#endif
17728char $ac_func ();
17729/* The GNU C library defines this for functions which it implements
17730 to always fail with ENOSYS. Some functions are actually named
17731 something starting with __ and the normal name is an alias. */
17732#if defined __stub_$ac_func || defined __stub___$ac_func
17733choke me
17734#endif
17735
17736int
17737main ()
17738{
17739return $ac_func ();
17740 ;
17741 return 0;
17742}
17743_ACEOF
17744rm -f conftest.$ac_objext conftest$ac_exeext
17745if { (ac_try="$ac_link"
17746case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749esac
17750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_link") 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17762esac
17763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest$ac_exeext'
17769 { (case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17772esac
17773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_try") 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 eval "$as_ac_var=yes"
17779else
17780 echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783 eval "$as_ac_var=no"
17784fi
17785
17786rm -f core conftest.err conftest.$ac_objext \
17787 conftest$ac_exeext conftest.$ac_ext
17788fi
17789ac_res=`eval echo '${'$as_ac_var'}'`
17790 { echo "$as_me:$LINENO: result: $ac_res" >&5
17791echo "${ECHO_T}$ac_res" >&6; }
17792if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017793 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017795_ACEOF
17796
17797fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017798done
John Criswell7a73b802003-06-30 21:59:07 +000017799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017800
17801
17802
17803
Daniel Dunbar3e462932011-02-03 02:40:02 +000017804
17805for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017806do
17807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17808{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17810if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17812else
17813 cat >conftest.$ac_ext <<_ACEOF
17814/* confdefs.h. */
17815_ACEOF
17816cat confdefs.h >>conftest.$ac_ext
17817cat >>conftest.$ac_ext <<_ACEOF
17818/* end confdefs.h. */
17819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17821#define $ac_func innocuous_$ac_func
17822
17823/* System header to define __stub macros and hopefully few prototypes,
17824 which can conflict with char $ac_func (); below.
17825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17826 <limits.h> exists even on freestanding compilers. */
17827
17828#ifdef __STDC__
17829# include <limits.h>
17830#else
17831# include <assert.h>
17832#endif
17833
17834#undef $ac_func
17835
17836/* Override any GCC internal prototype to avoid an error.
17837 Use char because int might match the return type of a GCC
17838 builtin and then its argument prototype would still apply. */
17839#ifdef __cplusplus
17840extern "C"
17841#endif
17842char $ac_func ();
17843/* The GNU C library defines this for functions which it implements
17844 to always fail with ENOSYS. Some functions are actually named
17845 something starting with __ and the normal name is an alias. */
17846#if defined __stub_$ac_func || defined __stub___$ac_func
17847choke me
17848#endif
17849
17850int
17851main ()
17852{
17853return $ac_func ();
17854 ;
17855 return 0;
17856}
17857_ACEOF
17858rm -f conftest.$ac_objext conftest$ac_exeext
17859if { (ac_try="$ac_link"
17860case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863esac
17864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_link") 2>conftest.er1
17866 ac_status=$?
17867 grep -v '^ *+' conftest.er1 >conftest.err
17868 rm -f conftest.er1
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } &&
17872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17873 { (case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876esac
17877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_try") 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest$ac_exeext'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17886esac
17887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 eval "$as_ac_var=yes"
17893else
17894 echo "$as_me: failed program was:" >&5
17895sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 eval "$as_ac_var=no"
17898fi
17899
17900rm -f core conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
17902fi
17903ac_res=`eval echo '${'$as_ac_var'}'`
17904 { echo "$as_me:$LINENO: result: $ac_res" >&5
17905echo "${ECHO_T}$ac_res" >&6; }
17906if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017907 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017909_ACEOF
17910
17911fi
17912done
17913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017914{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17915echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17916if test "${llvm_cv_c_printf_a+set}" = set; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017918else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017919 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017920ac_cpp='$CPP $CPPFLAGS'
17921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17923ac_compiler_gnu=$ac_cv_c_compiler_gnu
17924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017925 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017926 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017928 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017930 /* confdefs.h. */
17931_ACEOF
17932cat confdefs.h >>conftest.$ac_ext
17933cat >>conftest.$ac_ext <<_ACEOF
17934/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017935
John Criswella0137d32003-10-13 16:22:01 +000017936#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017937#include <stdlib.h>
17938
John Criswella0137d32003-10-13 16:22:01 +000017939int
17940main ()
17941{
17942
Reid Spencer2706f8c2004-09-19 23:53:36 +000017943volatile double A, B;
17944char Buffer[100];
17945A = 1;
17946A /= 10.0;
17947sprintf(Buffer, "%a", A);
17948B = atof(Buffer);
17949if (A != B)
17950 return (1);
17951if (A != 0x1.999999999999ap-4)
17952 return (1);
17953return (0);
John Criswella0137d32003-10-13 16:22:01 +000017954 ;
17955 return 0;
17956}
17957_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017958rm -f conftest$ac_exeext
17959if { (ac_try="$ac_link"
17960case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17963esac
17964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_link") 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17969 { (case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17972esac
17973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_try") 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017978 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017980 echo "$as_me: program exited with status $ac_status" >&5
17981echo "$as_me: failed program was:" >&5
17982sed 's/^/| /' conftest.$ac_ext >&5
17983
17984( exit $ac_status )
17985llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017986fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017987rm -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 +000017988fi
Reid Spencera773bd52006-08-04 18:18:08 +000017989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017990
Reid Spencer2706f8c2004-09-19 23:53:36 +000017991 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017992ac_cpp='$CPP $CPPFLAGS'
17993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17995ac_compiler_gnu=$ac_cv_c_compiler_gnu
17996
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017997fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017998{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17999echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018000 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018002cat >>confdefs.h <<\_ACEOF
18003#define HAVE_PRINTF_A 1
18004_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018005
Reid Spencer2706f8c2004-09-19 23:53:36 +000018006 fi
John Criswella0137d32003-10-13 16:22:01 +000018007
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018009{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18010echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18011if test "${ac_cv_func_rand48+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018013else
Reid Spencera773bd52006-08-04 18:18:08 +000018014 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018015ac_cpp='$CXXCPP $CPPFLAGS'
18016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018020 cat >conftest.$ac_ext <<_ACEOF
18021/* confdefs.h. */
18022_ACEOF
18023cat confdefs.h >>conftest.$ac_ext
18024cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018025/* end confdefs.h. */
18026#include <stdlib.h>
18027int
18028main ()
18029{
18030srand48(0);lrand48();drand48();
18031 ;
18032 return 0;
18033}
18034_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018035rm -f conftest.$ac_objext
18036if { (ac_try="$ac_compile"
18037case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18040esac
18041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_compile") 2>conftest.er1
18043 ac_status=$?
18044 grep -v '^ *+' conftest.er1 >conftest.err
18045 rm -f conftest.er1
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
18049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18050 { (case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18053esac
18054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_try") 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; } &&
18059 { ac_try='test -s conftest.$ac_objext'
18060 { (case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18063esac
18064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_try") 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018069 ac_cv_func_rand48=yes
18070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018071 echo "$as_me: failed program was:" >&5
18072sed 's/^/| /' conftest.$ac_ext >&5
18073
18074 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018076
Reid Spencera773bd52006-08-04 18:18:08 +000018077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018078 ac_ext=c
18079ac_cpp='$CPP $CPPFLAGS'
18080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18082ac_compiler_gnu=$ac_cv_c_compiler_gnu
18083
18084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018085{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18086echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018087
18088if test "$ac_cv_func_rand48" = "yes" ; then
18089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018090cat >>confdefs.h <<\_ACEOF
18091#define HAVE_RAND48 1
18092_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018093
18094fi
John Criswell0021c312004-02-13 21:57:29 +000018095
18096
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018097{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18098echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18099if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18101else
18102 cat >conftest.$ac_ext <<_ACEOF
18103/* confdefs.h. */
18104_ACEOF
18105cat confdefs.h >>conftest.$ac_ext
18106cat >>conftest.$ac_ext <<_ACEOF
18107/* end confdefs.h. */
18108$ac_includes_default
18109int
18110main ()
18111{
18112#ifndef strerror_s
18113 char *p = (char *) strerror_s;
18114 return !p;
18115#endif
18116
18117 ;
18118 return 0;
18119}
18120_ACEOF
18121rm -f conftest.$ac_objext
18122if { (ac_try="$ac_compile"
18123case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18126esac
18127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_compile") 2>conftest.er1
18129 ac_status=$?
18130 grep -v '^ *+' conftest.er1 >conftest.err
18131 rm -f conftest.er1
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
18135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18136 { (case "(($ac_try" in
18137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18139esac
18140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141 (eval "$ac_try") 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest.$ac_objext'
18146 { (case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18149esac
18150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_try") 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 ac_cv_have_decl_strerror_s=yes
18156else
18157 echo "$as_me: failed program was:" >&5
18158sed 's/^/| /' conftest.$ac_ext >&5
18159
18160 ac_cv_have_decl_strerror_s=no
18161fi
18162
18163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164fi
18165{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18166echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18167if test $ac_cv_have_decl_strerror_s = yes; then
18168
18169cat >>confdefs.h <<_ACEOF
18170#define HAVE_DECL_STRERROR_S 1
18171_ACEOF
18172
18173
18174else
18175 cat >>confdefs.h <<_ACEOF
18176#define HAVE_DECL_STRERROR_S 0
18177_ACEOF
18178
18179
18180fi
18181
18182
18183
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018184if test "$llvm_cv_os_type" = "MingW" ; then
18185 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18186echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18187if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189else
18190 ac_check_lib_save_LIBS=$LIBS
18191LIBS="-lgcc $LIBS"
18192cat >conftest.$ac_ext <<_ACEOF
18193/* confdefs.h. */
18194_ACEOF
18195cat confdefs.h >>conftest.$ac_ext
18196cat >>conftest.$ac_ext <<_ACEOF
18197/* end confdefs.h. */
18198
18199/* Override any GCC internal prototype to avoid an error.
18200 Use char because int might match the return type of a GCC
18201 builtin and then its argument prototype would still apply. */
18202#ifdef __cplusplus
18203extern "C"
18204#endif
18205char _alloca ();
18206int
18207main ()
18208{
18209return _alloca ();
18210 ;
18211 return 0;
18212}
18213_ACEOF
18214rm -f conftest.$ac_objext conftest$ac_exeext
18215if { (ac_try="$ac_link"
18216case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18219esac
18220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_link") 2>conftest.er1
18222 ac_status=$?
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232esac
18233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest$ac_exeext'
18239 { (case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18242esac
18243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_try") 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 ac_cv_lib_gcc__alloca=yes
18249else
18250 echo "$as_me: failed program was:" >&5
18251sed 's/^/| /' conftest.$ac_ext >&5
18252
18253 ac_cv_lib_gcc__alloca=no
18254fi
18255
18256rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258LIBS=$ac_check_lib_save_LIBS
18259fi
18260{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18261echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18262if test $ac_cv_lib_gcc__alloca = yes; then
18263
18264cat >>confdefs.h <<\_ACEOF
18265#define HAVE__ALLOCA 1
18266_ACEOF
18267
18268fi
18269
18270 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18271echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18272if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18274else
18275 ac_check_lib_save_LIBS=$LIBS
18276LIBS="-lgcc $LIBS"
18277cat >conftest.$ac_ext <<_ACEOF
18278/* confdefs.h. */
18279_ACEOF
18280cat confdefs.h >>conftest.$ac_ext
18281cat >>conftest.$ac_ext <<_ACEOF
18282/* end confdefs.h. */
18283
18284/* Override any GCC internal prototype to avoid an error.
18285 Use char because int might match the return type of a GCC
18286 builtin and then its argument prototype would still apply. */
18287#ifdef __cplusplus
18288extern "C"
18289#endif
18290char __alloca ();
18291int
18292main ()
18293{
18294return __alloca ();
18295 ;
18296 return 0;
18297}
18298_ACEOF
18299rm -f conftest.$ac_objext conftest$ac_exeext
18300if { (ac_try="$ac_link"
18301case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18304esac
18305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_link") 2>conftest.er1
18307 ac_status=$?
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
18313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18314 { (case "(($ac_try" in
18315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18316 *) ac_try_echo=$ac_try;;
18317esac
18318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319 (eval "$ac_try") 2>&5
18320 ac_status=$?
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); }; } &&
18323 { ac_try='test -s conftest$ac_exeext'
18324 { (case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327esac
18328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_try") 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_cv_lib_gcc___alloca=yes
18334else
18335 echo "$as_me: failed program was:" >&5
18336sed 's/^/| /' conftest.$ac_ext >&5
18337
18338 ac_cv_lib_gcc___alloca=no
18339fi
18340
18341rm -f core conftest.err conftest.$ac_objext \
18342 conftest$ac_exeext conftest.$ac_ext
18343LIBS=$ac_check_lib_save_LIBS
18344fi
18345{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18346echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18347if test $ac_cv_lib_gcc___alloca = yes; then
18348
18349cat >>confdefs.h <<\_ACEOF
18350#define HAVE___ALLOCA 1
18351_ACEOF
18352
18353fi
18354
18355 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18356echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18357if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18359else
18360 ac_check_lib_save_LIBS=$LIBS
18361LIBS="-lgcc $LIBS"
18362cat >conftest.$ac_ext <<_ACEOF
18363/* confdefs.h. */
18364_ACEOF
18365cat confdefs.h >>conftest.$ac_ext
18366cat >>conftest.$ac_ext <<_ACEOF
18367/* end confdefs.h. */
18368
18369/* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18372#ifdef __cplusplus
18373extern "C"
18374#endif
18375char __chkstk ();
18376int
18377main ()
18378{
18379return __chkstk ();
18380 ;
18381 return 0;
18382}
18383_ACEOF
18384rm -f conftest.$ac_objext conftest$ac_exeext
18385if { (ac_try="$ac_link"
18386case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18389esac
18390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_link") 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18402esac
18403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest$ac_exeext'
18409 { (case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412esac
18413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_try") 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_cv_lib_gcc___chkstk=yes
18419else
18420 echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423 ac_cv_lib_gcc___chkstk=no
18424fi
18425
18426rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18428LIBS=$ac_check_lib_save_LIBS
18429fi
18430{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18431echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18432if test $ac_cv_lib_gcc___chkstk = yes; then
18433
18434cat >>confdefs.h <<\_ACEOF
18435#define HAVE___CHKSTK 1
18436_ACEOF
18437
18438fi
18439
18440 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18441echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18442if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18444else
18445 ac_check_lib_save_LIBS=$LIBS
18446LIBS="-lgcc $LIBS"
18447cat >conftest.$ac_ext <<_ACEOF
18448/* confdefs.h. */
18449_ACEOF
18450cat confdefs.h >>conftest.$ac_ext
18451cat >>conftest.$ac_ext <<_ACEOF
18452/* end confdefs.h. */
18453
18454/* Override any GCC internal prototype to avoid an error.
18455 Use char because int might match the return type of a GCC
18456 builtin and then its argument prototype would still apply. */
18457#ifdef __cplusplus
18458extern "C"
18459#endif
18460char ___chkstk ();
18461int
18462main ()
18463{
18464return ___chkstk ();
18465 ;
18466 return 0;
18467}
18468_ACEOF
18469rm -f conftest.$ac_objext conftest$ac_exeext
18470if { (ac_try="$ac_link"
18471case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18474esac
18475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_link") 2>conftest.er1
18477 ac_status=$?
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } &&
18483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18484 { (case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18487esac
18488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_try") 2>&5
18490 ac_status=$?
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; } &&
18493 { ac_try='test -s conftest$ac_exeext'
18494 { (case "(($ac_try" in
18495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496 *) ac_try_echo=$ac_try;;
18497esac
18498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499 (eval "$ac_try") 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
18503 ac_cv_lib_gcc____chkstk=yes
18504else
18505 echo "$as_me: failed program was:" >&5
18506sed 's/^/| /' conftest.$ac_ext >&5
18507
18508 ac_cv_lib_gcc____chkstk=no
18509fi
18510
18511rm -f core conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext conftest.$ac_ext
18513LIBS=$ac_check_lib_save_LIBS
18514fi
18515{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18516echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18517if test $ac_cv_lib_gcc____chkstk = yes; then
18518
18519cat >>confdefs.h <<\_ACEOF
18520#define HAVE____CHKSTK 1
18521_ACEOF
18522
18523fi
18524
18525
18526 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18527echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18528if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18530else
18531 ac_check_lib_save_LIBS=$LIBS
18532LIBS="-lgcc $LIBS"
18533cat >conftest.$ac_ext <<_ACEOF
18534/* confdefs.h. */
18535_ACEOF
18536cat confdefs.h >>conftest.$ac_ext
18537cat >>conftest.$ac_ext <<_ACEOF
18538/* end confdefs.h. */
18539
18540/* Override any GCC internal prototype to avoid an error.
18541 Use char because int might match the return type of a GCC
18542 builtin and then its argument prototype would still apply. */
18543#ifdef __cplusplus
18544extern "C"
18545#endif
18546char __ashldi3 ();
18547int
18548main ()
18549{
18550return __ashldi3 ();
18551 ;
18552 return 0;
18553}
18554_ACEOF
18555rm -f conftest.$ac_objext conftest$ac_exeext
18556if { (ac_try="$ac_link"
18557case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560esac
18561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_link") 2>conftest.er1
18563 ac_status=$?
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18570 { (case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573esac
18574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_try") 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; } &&
18579 { ac_try='test -s conftest$ac_exeext'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18583esac
18584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 ac_cv_lib_gcc___ashldi3=yes
18590else
18591 echo "$as_me: failed program was:" >&5
18592sed 's/^/| /' conftest.$ac_ext >&5
18593
18594 ac_cv_lib_gcc___ashldi3=no
18595fi
18596
18597rm -f core conftest.err conftest.$ac_objext \
18598 conftest$ac_exeext conftest.$ac_ext
18599LIBS=$ac_check_lib_save_LIBS
18600fi
18601{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18602echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18603if test $ac_cv_lib_gcc___ashldi3 = yes; then
18604
18605cat >>confdefs.h <<\_ACEOF
18606#define HAVE___ASHLDI3 1
18607_ACEOF
18608
18609fi
18610
18611 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18612echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18613if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18615else
18616 ac_check_lib_save_LIBS=$LIBS
18617LIBS="-lgcc $LIBS"
18618cat >conftest.$ac_ext <<_ACEOF
18619/* confdefs.h. */
18620_ACEOF
18621cat confdefs.h >>conftest.$ac_ext
18622cat >>conftest.$ac_ext <<_ACEOF
18623/* end confdefs.h. */
18624
18625/* Override any GCC internal prototype to avoid an error.
18626 Use char because int might match the return type of a GCC
18627 builtin and then its argument prototype would still apply. */
18628#ifdef __cplusplus
18629extern "C"
18630#endif
18631char __ashrdi3 ();
18632int
18633main ()
18634{
18635return __ashrdi3 ();
18636 ;
18637 return 0;
18638}
18639_ACEOF
18640rm -f conftest.$ac_objext conftest$ac_exeext
18641if { (ac_try="$ac_link"
18642case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18645esac
18646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_link") 2>conftest.er1
18648 ac_status=$?
18649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
18654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18655 { (case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658esac
18659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_try") 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest$ac_exeext'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668esac
18669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_cv_lib_gcc___ashrdi3=yes
18675else
18676 echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679 ac_cv_lib_gcc___ashrdi3=no
18680fi
18681
18682rm -f core conftest.err conftest.$ac_objext \
18683 conftest$ac_exeext conftest.$ac_ext
18684LIBS=$ac_check_lib_save_LIBS
18685fi
18686{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18687echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18688if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18689
18690cat >>confdefs.h <<\_ACEOF
18691#define HAVE___ASHRDI3 1
18692_ACEOF
18693
18694fi
18695
18696 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18697echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18698if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18700else
18701 ac_check_lib_save_LIBS=$LIBS
18702LIBS="-lgcc $LIBS"
18703cat >conftest.$ac_ext <<_ACEOF
18704/* confdefs.h. */
18705_ACEOF
18706cat confdefs.h >>conftest.$ac_ext
18707cat >>conftest.$ac_ext <<_ACEOF
18708/* end confdefs.h. */
18709
18710/* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18713#ifdef __cplusplus
18714extern "C"
18715#endif
18716char __divdi3 ();
18717int
18718main ()
18719{
18720return __divdi3 ();
18721 ;
18722 return 0;
18723}
18724_ACEOF
18725rm -f conftest.$ac_objext conftest$ac_exeext
18726if { (ac_try="$ac_link"
18727case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_link") 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743esac
18744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest$ac_exeext'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753esac
18754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_lib_gcc___divdi3=yes
18760else
18761 echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
18763
18764 ac_cv_lib_gcc___divdi3=no
18765fi
18766
18767rm -f core conftest.err conftest.$ac_objext \
18768 conftest$ac_exeext conftest.$ac_ext
18769LIBS=$ac_check_lib_save_LIBS
18770fi
18771{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18772echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18773if test $ac_cv_lib_gcc___divdi3 = yes; then
18774
18775cat >>confdefs.h <<\_ACEOF
18776#define HAVE___DIVDI3 1
18777_ACEOF
18778
18779fi
18780
18781 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18782echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18783if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18785else
18786 ac_check_lib_save_LIBS=$LIBS
18787LIBS="-lgcc $LIBS"
18788cat >conftest.$ac_ext <<_ACEOF
18789/* confdefs.h. */
18790_ACEOF
18791cat confdefs.h >>conftest.$ac_ext
18792cat >>conftest.$ac_ext <<_ACEOF
18793/* end confdefs.h. */
18794
18795/* Override any GCC internal prototype to avoid an error.
18796 Use char because int might match the return type of a GCC
18797 builtin and then its argument prototype would still apply. */
18798#ifdef __cplusplus
18799extern "C"
18800#endif
18801char __fixdfdi ();
18802int
18803main ()
18804{
18805return __fixdfdi ();
18806 ;
18807 return 0;
18808}
18809_ACEOF
18810rm -f conftest.$ac_objext conftest$ac_exeext
18811if { (ac_try="$ac_link"
18812case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18815esac
18816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_link") 2>conftest.er1
18818 ac_status=$?
18819 grep -v '^ *+' conftest.er1 >conftest.err
18820 rm -f conftest.er1
18821 cat conftest.err >&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); } &&
18824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18825 { (case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828esac
18829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_try") 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try='test -s conftest$ac_exeext'
18835 { (case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18838esac
18839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840 (eval "$ac_try") 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; }; then
18844 ac_cv_lib_gcc___fixdfdi=yes
18845else
18846 echo "$as_me: failed program was:" >&5
18847sed 's/^/| /' conftest.$ac_ext >&5
18848
18849 ac_cv_lib_gcc___fixdfdi=no
18850fi
18851
18852rm -f core conftest.err conftest.$ac_objext \
18853 conftest$ac_exeext conftest.$ac_ext
18854LIBS=$ac_check_lib_save_LIBS
18855fi
18856{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18857echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18858if test $ac_cv_lib_gcc___fixdfdi = yes; then
18859
18860cat >>confdefs.h <<\_ACEOF
18861#define HAVE___FIXDFDI 1
18862_ACEOF
18863
18864fi
18865
18866 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18867echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18868if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18870else
18871 ac_check_lib_save_LIBS=$LIBS
18872LIBS="-lgcc $LIBS"
18873cat >conftest.$ac_ext <<_ACEOF
18874/* confdefs.h. */
18875_ACEOF
18876cat confdefs.h >>conftest.$ac_ext
18877cat >>conftest.$ac_ext <<_ACEOF
18878/* end confdefs.h. */
18879
18880/* Override any GCC internal prototype to avoid an error.
18881 Use char because int might match the return type of a GCC
18882 builtin and then its argument prototype would still apply. */
18883#ifdef __cplusplus
18884extern "C"
18885#endif
18886char __fixsfdi ();
18887int
18888main ()
18889{
18890return __fixsfdi ();
18891 ;
18892 return 0;
18893}
18894_ACEOF
18895rm -f conftest.$ac_objext conftest$ac_exeext
18896if { (ac_try="$ac_link"
18897case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900esac
18901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_link") 2>conftest.er1
18903 ac_status=$?
18904 grep -v '^ *+' conftest.er1 >conftest.err
18905 rm -f conftest.er1
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } &&
18909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18910 { (case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913esac
18914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_try") 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; } &&
18919 { ac_try='test -s conftest$ac_exeext'
18920 { (case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923esac
18924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_try") 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; }; then
18929 ac_cv_lib_gcc___fixsfdi=yes
18930else
18931 echo "$as_me: failed program was:" >&5
18932sed 's/^/| /' conftest.$ac_ext >&5
18933
18934 ac_cv_lib_gcc___fixsfdi=no
18935fi
18936
18937rm -f core conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
18939LIBS=$ac_check_lib_save_LIBS
18940fi
18941{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18942echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18943if test $ac_cv_lib_gcc___fixsfdi = yes; then
18944
18945cat >>confdefs.h <<\_ACEOF
18946#define HAVE___FIXSFDI 1
18947_ACEOF
18948
18949fi
18950
18951 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18952echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18953if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18955else
18956 ac_check_lib_save_LIBS=$LIBS
18957LIBS="-lgcc $LIBS"
18958cat >conftest.$ac_ext <<_ACEOF
18959/* confdefs.h. */
18960_ACEOF
18961cat confdefs.h >>conftest.$ac_ext
18962cat >>conftest.$ac_ext <<_ACEOF
18963/* end confdefs.h. */
18964
18965/* Override any GCC internal prototype to avoid an error.
18966 Use char because int might match the return type of a GCC
18967 builtin and then its argument prototype would still apply. */
18968#ifdef __cplusplus
18969extern "C"
18970#endif
18971char __floatdidf ();
18972int
18973main ()
18974{
18975return __floatdidf ();
18976 ;
18977 return 0;
18978}
18979_ACEOF
18980rm -f conftest.$ac_objext conftest$ac_exeext
18981if { (ac_try="$ac_link"
18982case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18985esac
18986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_link") 2>conftest.er1
18988 ac_status=$?
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18995 { (case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18998esac
18999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000 (eval "$ac_try") 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; } &&
19004 { ac_try='test -s conftest$ac_exeext'
19005 { (case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_try") 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
19014 ac_cv_lib_gcc___floatdidf=yes
19015else
19016 echo "$as_me: failed program was:" >&5
19017sed 's/^/| /' conftest.$ac_ext >&5
19018
19019 ac_cv_lib_gcc___floatdidf=no
19020fi
19021
19022rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19024LIBS=$ac_check_lib_save_LIBS
19025fi
19026{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19027echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19028if test $ac_cv_lib_gcc___floatdidf = yes; then
19029
19030cat >>confdefs.h <<\_ACEOF
19031#define HAVE___FLOATDIDF 1
19032_ACEOF
19033
19034fi
19035
19036 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19037echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19038if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040else
19041 ac_check_lib_save_LIBS=$LIBS
19042LIBS="-lgcc $LIBS"
19043cat >conftest.$ac_ext <<_ACEOF
19044/* confdefs.h. */
19045_ACEOF
19046cat confdefs.h >>conftest.$ac_ext
19047cat >>conftest.$ac_ext <<_ACEOF
19048/* end confdefs.h. */
19049
19050/* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19053#ifdef __cplusplus
19054extern "C"
19055#endif
19056char __lshrdi3 ();
19057int
19058main ()
19059{
19060return __lshrdi3 ();
19061 ;
19062 return 0;
19063}
19064_ACEOF
19065rm -f conftest.$ac_objext conftest$ac_exeext
19066if { (ac_try="$ac_link"
19067case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070esac
19071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_link") 2>conftest.er1
19073 ac_status=$?
19074 grep -v '^ *+' conftest.er1 >conftest.err
19075 rm -f conftest.er1
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } &&
19079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19080 { (case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19083esac
19084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_try") 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest$ac_exeext'
19090 { (case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19093esac
19094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_lib_gcc___lshrdi3=yes
19100else
19101 echo "$as_me: failed program was:" >&5
19102sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 ac_cv_lib_gcc___lshrdi3=no
19105fi
19106
19107rm -f core conftest.err conftest.$ac_objext \
19108 conftest$ac_exeext conftest.$ac_ext
19109LIBS=$ac_check_lib_save_LIBS
19110fi
19111{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19112echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19113if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19114
19115cat >>confdefs.h <<\_ACEOF
19116#define HAVE___LSHRDI3 1
19117_ACEOF
19118
19119fi
19120
19121 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19122echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19123if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125else
19126 ac_check_lib_save_LIBS=$LIBS
19127LIBS="-lgcc $LIBS"
19128cat >conftest.$ac_ext <<_ACEOF
19129/* confdefs.h. */
19130_ACEOF
19131cat confdefs.h >>conftest.$ac_ext
19132cat >>conftest.$ac_ext <<_ACEOF
19133/* end confdefs.h. */
19134
19135/* Override any GCC internal prototype to avoid an error.
19136 Use char because int might match the return type of a GCC
19137 builtin and then its argument prototype would still apply. */
19138#ifdef __cplusplus
19139extern "C"
19140#endif
19141char __moddi3 ();
19142int
19143main ()
19144{
19145return __moddi3 ();
19146 ;
19147 return 0;
19148}
19149_ACEOF
19150rm -f conftest.$ac_objext conftest$ac_exeext
19151if { (ac_try="$ac_link"
19152case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19155esac
19156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_link") 2>conftest.er1
19158 ac_status=$?
19159 grep -v '^ *+' conftest.er1 >conftest.err
19160 rm -f conftest.er1
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
19164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19165 { (case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19168esac
19169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_try") 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; } &&
19174 { ac_try='test -s conftest$ac_exeext'
19175 { (case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19178esac
19179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_try") 2>&5
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 ac_cv_lib_gcc___moddi3=yes
19185else
19186 echo "$as_me: failed program was:" >&5
19187sed 's/^/| /' conftest.$ac_ext >&5
19188
19189 ac_cv_lib_gcc___moddi3=no
19190fi
19191
19192rm -f core conftest.err conftest.$ac_objext \
19193 conftest$ac_exeext conftest.$ac_ext
19194LIBS=$ac_check_lib_save_LIBS
19195fi
19196{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19197echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19198if test $ac_cv_lib_gcc___moddi3 = yes; then
19199
19200cat >>confdefs.h <<\_ACEOF
19201#define HAVE___MODDI3 1
19202_ACEOF
19203
19204fi
19205
19206 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19207echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19208if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19210else
19211 ac_check_lib_save_LIBS=$LIBS
19212LIBS="-lgcc $LIBS"
19213cat >conftest.$ac_ext <<_ACEOF
19214/* confdefs.h. */
19215_ACEOF
19216cat confdefs.h >>conftest.$ac_ext
19217cat >>conftest.$ac_ext <<_ACEOF
19218/* end confdefs.h. */
19219
19220/* Override any GCC internal prototype to avoid an error.
19221 Use char because int might match the return type of a GCC
19222 builtin and then its argument prototype would still apply. */
19223#ifdef __cplusplus
19224extern "C"
19225#endif
19226char __udivdi3 ();
19227int
19228main ()
19229{
19230return __udivdi3 ();
19231 ;
19232 return 0;
19233}
19234_ACEOF
19235rm -f conftest.$ac_objext conftest$ac_exeext
19236if { (ac_try="$ac_link"
19237case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19240esac
19241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_link") 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253esac
19254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest$ac_exeext'
19260 { (case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19263esac
19264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_cv_lib_gcc___udivdi3=yes
19270else
19271 echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 ac_cv_lib_gcc___udivdi3=no
19275fi
19276
19277rm -f core conftest.err conftest.$ac_objext \
19278 conftest$ac_exeext conftest.$ac_ext
19279LIBS=$ac_check_lib_save_LIBS
19280fi
19281{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19282echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19283if test $ac_cv_lib_gcc___udivdi3 = yes; then
19284
19285cat >>confdefs.h <<\_ACEOF
19286#define HAVE___UDIVDI3 1
19287_ACEOF
19288
19289fi
19290
19291 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19292echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19293if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19295else
19296 ac_check_lib_save_LIBS=$LIBS
19297LIBS="-lgcc $LIBS"
19298cat >conftest.$ac_ext <<_ACEOF
19299/* confdefs.h. */
19300_ACEOF
19301cat confdefs.h >>conftest.$ac_ext
19302cat >>conftest.$ac_ext <<_ACEOF
19303/* end confdefs.h. */
19304
19305/* Override any GCC internal prototype to avoid an error.
19306 Use char because int might match the return type of a GCC
19307 builtin and then its argument prototype would still apply. */
19308#ifdef __cplusplus
19309extern "C"
19310#endif
19311char __umoddi3 ();
19312int
19313main ()
19314{
19315return __umoddi3 ();
19316 ;
19317 return 0;
19318}
19319_ACEOF
19320rm -f conftest.$ac_objext conftest$ac_exeext
19321if { (ac_try="$ac_link"
19322case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19325esac
19326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_link") 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
19334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19335 { (case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19338esac
19339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340 (eval "$ac_try") 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; } &&
19344 { ac_try='test -s conftest$ac_exeext'
19345 { (case "(($ac_try" in
19346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347 *) ac_try_echo=$ac_try;;
19348esac
19349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350 (eval "$ac_try") 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 ac_cv_lib_gcc___umoddi3=yes
19355else
19356 echo "$as_me: failed program was:" >&5
19357sed 's/^/| /' conftest.$ac_ext >&5
19358
19359 ac_cv_lib_gcc___umoddi3=no
19360fi
19361
19362rm -f core conftest.err conftest.$ac_objext \
19363 conftest$ac_exeext conftest.$ac_ext
19364LIBS=$ac_check_lib_save_LIBS
19365fi
19366{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19367echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19368if test $ac_cv_lib_gcc___umoddi3 = yes; then
19369
19370cat >>confdefs.h <<\_ACEOF
19371#define HAVE___UMODDI3 1
19372_ACEOF
19373
19374fi
19375
19376
19377 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19378echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19379if test "${ac_cv_lib_gcc___main+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19381else
19382 ac_check_lib_save_LIBS=$LIBS
19383LIBS="-lgcc $LIBS"
19384cat >conftest.$ac_ext <<_ACEOF
19385/* confdefs.h. */
19386_ACEOF
19387cat confdefs.h >>conftest.$ac_ext
19388cat >>conftest.$ac_ext <<_ACEOF
19389/* end confdefs.h. */
19390
19391/* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19394#ifdef __cplusplus
19395extern "C"
19396#endif
19397char __main ();
19398int
19399main ()
19400{
19401return __main ();
19402 ;
19403 return 0;
19404}
19405_ACEOF
19406rm -f conftest.$ac_objext conftest$ac_exeext
19407if { (ac_try="$ac_link"
19408case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19411esac
19412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_link") 2>conftest.er1
19414 ac_status=$?
19415 grep -v '^ *+' conftest.er1 >conftest.err
19416 rm -f conftest.er1
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
19420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19421 { (case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424esac
19425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_try") 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest$ac_exeext'
19431 { (case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19434esac
19435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_try") 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 ac_cv_lib_gcc___main=yes
19441else
19442 echo "$as_me: failed program was:" >&5
19443sed 's/^/| /' conftest.$ac_ext >&5
19444
19445 ac_cv_lib_gcc___main=no
19446fi
19447
19448rm -f core conftest.err conftest.$ac_objext \
19449 conftest$ac_exeext conftest.$ac_ext
19450LIBS=$ac_check_lib_save_LIBS
19451fi
19452{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19453echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19454if test $ac_cv_lib_gcc___main = yes; then
19455
19456cat >>confdefs.h <<\_ACEOF
19457#define HAVE___MAIN 1
19458_ACEOF
19459
19460fi
19461
19462 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19463echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19464if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19466else
19467 ac_check_lib_save_LIBS=$LIBS
19468LIBS="-lgcc $LIBS"
19469cat >conftest.$ac_ext <<_ACEOF
19470/* confdefs.h. */
19471_ACEOF
19472cat confdefs.h >>conftest.$ac_ext
19473cat >>conftest.$ac_ext <<_ACEOF
19474/* end confdefs.h. */
19475
19476/* Override any GCC internal prototype to avoid an error.
19477 Use char because int might match the return type of a GCC
19478 builtin and then its argument prototype would still apply. */
19479#ifdef __cplusplus
19480extern "C"
19481#endif
19482char __cmpdi2 ();
19483int
19484main ()
19485{
19486return __cmpdi2 ();
19487 ;
19488 return 0;
19489}
19490_ACEOF
19491rm -f conftest.$ac_objext conftest$ac_exeext
19492if { (ac_try="$ac_link"
19493case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19496esac
19497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_link") 2>conftest.er1
19499 ac_status=$?
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509esac
19510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest$ac_exeext'
19516 { (case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519esac
19520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_try") 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_lib_gcc___cmpdi2=yes
19526else
19527 echo "$as_me: failed program was:" >&5
19528sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ac_cv_lib_gcc___cmpdi2=no
19531fi
19532
19533rm -f core conftest.err conftest.$ac_objext \
19534 conftest$ac_exeext conftest.$ac_ext
19535LIBS=$ac_check_lib_save_LIBS
19536fi
19537{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19538echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19539if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19540
19541cat >>confdefs.h <<\_ACEOF
19542#define HAVE___CMPDI2 1
19543_ACEOF
19544
19545fi
19546
19547fi
19548
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019549if test "$llvm_cv_os_type" = "MingW" ; then
19550 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19551echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19552 cat >conftest.$ac_ext <<_ACEOF
19553#include <windows.h>
19554#include <imagehlp.h>
19555extern void foo(PENUMLOADED_MODULES_CALLBACK);
19556extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19557_ACEOF
19558rm -f conftest.$ac_objext
19559if { (ac_try="$ac_compile"
19560case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19563esac
19564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_compile") 2>conftest.er1
19566 ac_status=$?
19567 grep -v '^ *+' conftest.er1 >conftest.err
19568 rm -f conftest.er1
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19573 { (case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19576esac
19577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_try") 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
19583 { (case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586esac
19587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_try") 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592
19593 { echo "$as_me:$LINENO: result: yes" >&5
19594echo "${ECHO_T}yes" >&6; }
19595 llvm_cv_win32_elmcb_pcstr="PCSTR"
19596
19597else
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601
19602 { echo "$as_me:$LINENO: result: no" >&5
19603echo "${ECHO_T}no" >&6; }
19604 llvm_cv_win32_elmcb_pcstr="PSTR"
19605
19606fi
19607
19608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19609
19610cat >>confdefs.h <<_ACEOF
19611#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19612_ACEOF
19613
19614fi
19615
Torok Edwin871384f2010-01-26 08:50:50 +000019616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019617{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19618echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19619if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019621else
Reid Spencera773bd52006-08-04 18:18:08 +000019622 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019623ac_cpp='$CXXCPP $CPPFLAGS'
19624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019628 cat >conftest.$ac_ext <<_ACEOF
19629/* confdefs.h. */
19630_ACEOF
19631cat confdefs.h >>conftest.$ac_ext
19632cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019633/* end confdefs.h. */
19634#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019635int
19636main ()
19637{
19638float f; isnan(f);
19639 ;
19640 return 0;
19641}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019642_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019643rm -f conftest.$ac_objext
19644if { (ac_try="$ac_compile"
19645case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648esac
19649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_compile") 2>conftest.er1
19651 ac_status=$?
19652 grep -v '^ *+' conftest.er1 >conftest.err
19653 rm -f conftest.er1
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } &&
19657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19658 { (case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19661esac
19662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_try") 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; } &&
19667 { ac_try='test -s conftest.$ac_objext'
19668 { (case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19671esac
19672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_try") 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019677 ac_cv_func_isnan_in_math_h=yes
19678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019679 echo "$as_me: failed program was:" >&5
19680sed 's/^/| /' conftest.$ac_ext >&5
19681
19682 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019684
Reid Spencera773bd52006-08-04 18:18:08 +000019685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019686 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019687ac_cpp='$CPP $CPPFLAGS'
19688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690ac_compiler_gnu=$ac_cv_c_compiler_gnu
19691
19692fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019693{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19694echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019695
19696
19697if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019699cat >>confdefs.h <<\_ACEOF
19700#define HAVE_ISNAN_IN_MATH_H 1
19701_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019702
Reid Spencerabec8f92004-10-27 23:03:44 +000019703fi
19704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019705{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19706echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19707if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019709else
Reid Spencera773bd52006-08-04 18:18:08 +000019710 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019711ac_cpp='$CXXCPP $CPPFLAGS'
19712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019716 cat >conftest.$ac_ext <<_ACEOF
19717/* confdefs.h. */
19718_ACEOF
19719cat confdefs.h >>conftest.$ac_ext
19720cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019721/* end confdefs.h. */
19722#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019723int
19724main ()
19725{
19726float f; isnan(f);
19727 ;
19728 return 0;
19729}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019730_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019731rm -f conftest.$ac_objext
19732if { (ac_try="$ac_compile"
19733case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736esac
19737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_compile") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19746 { (case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19749esac
19750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_try") 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; } &&
19755 { ac_try='test -s conftest.$ac_objext'
19756 { (case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19759esac
19760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_try") 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019765 ac_cv_func_isnan_in_cmath=yes
19766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019767 echo "$as_me: failed program was:" >&5
19768sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019771fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019772
Reid Spencera773bd52006-08-04 18:18:08 +000019773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019774 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019775ac_cpp='$CPP $CPPFLAGS'
19776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19778ac_compiler_gnu=$ac_cv_c_compiler_gnu
19779
19780fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019781{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19782echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019783
19784if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019786cat >>confdefs.h <<\_ACEOF
19787#define HAVE_ISNAN_IN_CMATH 1
19788_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019789
Reid Spencerabec8f92004-10-27 23:03:44 +000019790fi
19791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019792{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19793echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19794if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019796else
Reid Spencera773bd52006-08-04 18:18:08 +000019797 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019798ac_cpp='$CXXCPP $CPPFLAGS'
19799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019803 cat >conftest.$ac_ext <<_ACEOF
19804/* confdefs.h. */
19805_ACEOF
19806cat confdefs.h >>conftest.$ac_ext
19807cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019808/* end confdefs.h. */
19809#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019810int
19811main ()
19812{
19813float f; std::isnan(f);
19814 ;
19815 return 0;
19816}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019817_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019818rm -f conftest.$ac_objext
19819if { (ac_try="$ac_compile"
19820case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823esac
19824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_compile") 2>conftest.er1
19826 ac_status=$?
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19836esac
19837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
19843 { (case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846esac
19847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_try") 2>&5
19849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019852 ac_cv_func_std_isnan_in_cmath=yes
19853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019854 echo "$as_me: failed program was:" >&5
19855sed 's/^/| /' conftest.$ac_ext >&5
19856
19857 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019859
Reid Spencera773bd52006-08-04 18:18:08 +000019860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019861 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019862ac_cpp='$CPP $CPPFLAGS'
19863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865ac_compiler_gnu=$ac_cv_c_compiler_gnu
19866
19867fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019868{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19869echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019870
19871if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019873cat >>confdefs.h <<\_ACEOF
19874#define HAVE_STD_ISNAN_IN_CMATH 1
19875_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019876
Reid Spencerabec8f92004-10-27 23:03:44 +000019877fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019878
19879
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019880{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19881echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19882if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019884else
Reid Spencera773bd52006-08-04 18:18:08 +000019885 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019886ac_cpp='$CXXCPP $CPPFLAGS'
19887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019891 cat >conftest.$ac_ext <<_ACEOF
19892/* confdefs.h. */
19893_ACEOF
19894cat confdefs.h >>conftest.$ac_ext
19895cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019896/* end confdefs.h. */
19897#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019898int
19899main ()
19900{
19901float f; isinf(f);
19902 ;
19903 return 0;
19904}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019905_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019906rm -f conftest.$ac_objext
19907if { (ac_try="$ac_compile"
19908case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19911esac
19912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913 (eval "$ac_compile") 2>conftest.er1
19914 ac_status=$?
19915 grep -v '^ *+' conftest.er1 >conftest.err
19916 rm -f conftest.er1
19917 cat conftest.err >&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } &&
19920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19921 { (case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924esac
19925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_try") 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; } &&
19930 { ac_try='test -s conftest.$ac_objext'
19931 { (case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19934esac
19935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_try") 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019940 ac_cv_func_isinf_in_math_h=yes
19941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019942 echo "$as_me: failed program was:" >&5
19943sed 's/^/| /' conftest.$ac_ext >&5
19944
19945 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019947
Reid Spencera773bd52006-08-04 18:18:08 +000019948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019949 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019950ac_cpp='$CPP $CPPFLAGS'
19951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19953ac_compiler_gnu=$ac_cv_c_compiler_gnu
19954
19955fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019956{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19957echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019958
19959if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019961cat >>confdefs.h <<\_ACEOF
19962#define HAVE_ISINF_IN_MATH_H 1
19963_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019964
Reid Spencerabec8f92004-10-27 23:03:44 +000019965fi
19966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019967{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19968echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19969if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019971else
Reid Spencera773bd52006-08-04 18:18:08 +000019972 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019973ac_cpp='$CXXCPP $CPPFLAGS'
19974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019978 cat >conftest.$ac_ext <<_ACEOF
19979/* confdefs.h. */
19980_ACEOF
19981cat confdefs.h >>conftest.$ac_ext
19982cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019983/* end confdefs.h. */
19984#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019985int
19986main ()
19987{
19988float f; isinf(f);
19989 ;
19990 return 0;
19991}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019993rm -f conftest.$ac_objext
19994if { (ac_try="$ac_compile"
19995case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998esac
19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_compile") 2>conftest.er1
20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20008 { (case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20011esac
20012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_try") 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; } &&
20017 { ac_try='test -s conftest.$ac_objext'
20018 { (case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20021esac
20022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_try") 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020027 ac_cv_func_isinf_in_cmath=yes
20028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020029 echo "$as_me: failed program was:" >&5
20030sed 's/^/| /' conftest.$ac_ext >&5
20031
20032 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020034
Reid Spencera773bd52006-08-04 18:18:08 +000020035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020036 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020037ac_cpp='$CPP $CPPFLAGS'
20038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040ac_compiler_gnu=$ac_cv_c_compiler_gnu
20041
20042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020043{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20044echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020045
20046if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020048cat >>confdefs.h <<\_ACEOF
20049#define HAVE_ISINF_IN_CMATH 1
20050_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020051
Reid Spencerabec8f92004-10-27 23:03:44 +000020052fi
20053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020054{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20055echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20056if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20057 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020058else
Reid Spencera773bd52006-08-04 18:18:08 +000020059 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020060ac_cpp='$CXXCPP $CPPFLAGS'
20061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020065 cat >conftest.$ac_ext <<_ACEOF
20066/* confdefs.h. */
20067_ACEOF
20068cat confdefs.h >>conftest.$ac_ext
20069cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020070/* end confdefs.h. */
20071#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020072int
20073main ()
20074{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000020075float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000020076 ;
20077 return 0;
20078}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020079_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020080rm -f conftest.$ac_objext
20081if { (ac_try="$ac_compile"
20082case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20085esac
20086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_compile") 2>conftest.er1
20088 ac_status=$?
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } &&
20094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20095 { (case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098esac
20099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_try") 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; } &&
20104 { ac_try='test -s conftest.$ac_objext'
20105 { (case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108esac
20109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_try") 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020114 ac_cv_func_std_isinf_in_cmath=yes
20115else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020116 echo "$as_me: failed program was:" >&5
20117sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020120fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020121
Reid Spencera773bd52006-08-04 18:18:08 +000020122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020123 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020124ac_cpp='$CPP $CPPFLAGS'
20125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127ac_compiler_gnu=$ac_cv_c_compiler_gnu
20128
20129fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020130{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20131echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020132
20133if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020135cat >>confdefs.h <<\_ACEOF
20136#define HAVE_STD_ISINF_IN_CMATH 1
20137_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020138
Reid Spencerabec8f92004-10-27 23:03:44 +000020139fi
20140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020141{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20142echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20143if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020145else
Reid Spencera773bd52006-08-04 18:18:08 +000020146 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020147ac_cpp='$CXXCPP $CPPFLAGS'
20148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020152 cat >conftest.$ac_ext <<_ACEOF
20153/* confdefs.h. */
20154_ACEOF
20155cat confdefs.h >>conftest.$ac_ext
20156cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020157/* end confdefs.h. */
20158#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020159int
20160main ()
20161{
20162float f; finite(f);
20163 ;
20164 return 0;
20165}
Brian Gaeked59a6472004-07-21 03:33:58 +000020166_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020167rm -f conftest.$ac_objext
20168if { (ac_try="$ac_compile"
20169case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20172esac
20173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_compile") 2>conftest.er1
20175 ac_status=$?
20176 grep -v '^ *+' conftest.er1 >conftest.err
20177 rm -f conftest.er1
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20182 { (case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185esac
20186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_try") 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; } &&
20191 { ac_try='test -s conftest.$ac_objext'
20192 { (case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20195esac
20196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_try") 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020201 ac_cv_func_finite_in_ieeefp_h=yes
20202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020203 echo "$as_me: failed program was:" >&5
20204sed 's/^/| /' conftest.$ac_ext >&5
20205
20206 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020208
Reid Spencera773bd52006-08-04 18:18:08 +000020209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020210 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020211ac_cpp='$CPP $CPPFLAGS'
20212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20214ac_compiler_gnu=$ac_cv_c_compiler_gnu
20215
20216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020217{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20218echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020219
Brian Gaeke6802b552004-10-28 05:06:45 +000020220if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020222cat >>confdefs.h <<\_ACEOF
20223#define HAVE_FINITE_IN_IEEEFP_H 1
20224_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020225
Reid Spencerabec8f92004-10-27 23:03:44 +000020226fi
20227
20228
20229
Reid Spencer30fe5262007-01-20 07:48:49 +000020230if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020231
20232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020233for ac_header in stdlib.h unistd.h
20234do
20235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20241fi
20242ac_res=`eval echo '${'$as_ac_Header'}'`
20243 { echo "$as_me:$LINENO: result: $ac_res" >&5
20244echo "${ECHO_T}$ac_res" >&6; }
20245else
20246 # Is the header compilable?
20247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20249cat >conftest.$ac_ext <<_ACEOF
20250/* confdefs.h. */
20251_ACEOF
20252cat confdefs.h >>conftest.$ac_ext
20253cat >>conftest.$ac_ext <<_ACEOF
20254/* end confdefs.h. */
20255$ac_includes_default
20256#include <$ac_header>
20257_ACEOF
20258rm -f conftest.$ac_objext
20259if { (ac_try="$ac_compile"
20260case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20263esac
20264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_compile") 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276esac
20277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest.$ac_objext'
20283 { (case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286esac
20287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_try") 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_header_compiler=yes
20293else
20294 echo "$as_me: failed program was:" >&5
20295sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020297 ac_header_compiler=no
20298fi
20299
20300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20302echo "${ECHO_T}$ac_header_compiler" >&6; }
20303
20304# Is the header present?
20305{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20307cat >conftest.$ac_ext <<_ACEOF
20308/* confdefs.h. */
20309_ACEOF
20310cat confdefs.h >>conftest.$ac_ext
20311cat >>conftest.$ac_ext <<_ACEOF
20312/* end confdefs.h. */
20313#include <$ac_header>
20314_ACEOF
20315if { (ac_try="$ac_cpp conftest.$ac_ext"
20316case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319esac
20320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } >/dev/null; then
20328 if test -s conftest.err; then
20329 ac_cpp_err=$ac_c_preproc_warn_flag
20330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20331 else
20332 ac_cpp_err=
20333 fi
20334else
20335 ac_cpp_err=yes
20336fi
20337if test -z "$ac_cpp_err"; then
20338 ac_header_preproc=yes
20339else
20340 echo "$as_me: failed program was:" >&5
20341sed 's/^/| /' conftest.$ac_ext >&5
20342
20343 ac_header_preproc=no
20344fi
20345
20346rm -f conftest.err conftest.$ac_ext
20347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20348echo "${ECHO_T}$ac_header_preproc" >&6; }
20349
20350# So? What about this header?
20351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20352 yes:no: )
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20357 ac_header_preproc=yes
20358 ;;
20359 no:yes:* )
20360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20372 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020373## ------------------------------------ ##
20374## Report this to http://llvm.org/bugs/ ##
20375## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020376_ASBOX
20377 ) | sed "s/^/$as_me: WARNING: /" >&2
20378 ;;
20379esac
20380{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20384else
20385 eval "$as_ac_Header=\$ac_header_preproc"
20386fi
20387ac_res=`eval echo '${'$as_ac_Header'}'`
20388 { echo "$as_me:$LINENO: result: $ac_res" >&5
20389echo "${ECHO_T}$ac_res" >&6; }
20390
20391fi
20392if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020393 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020395_ACEOF
20396
20397fi
20398
20399done
20400
20401
20402for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020403do
20404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20405{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20407if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20409else
20410 cat >conftest.$ac_ext <<_ACEOF
20411/* confdefs.h. */
20412_ACEOF
20413cat confdefs.h >>conftest.$ac_ext
20414cat >>conftest.$ac_ext <<_ACEOF
20415/* end confdefs.h. */
20416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20418#define $ac_func innocuous_$ac_func
20419
20420/* System header to define __stub macros and hopefully few prototypes,
20421 which can conflict with char $ac_func (); below.
20422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20423 <limits.h> exists even on freestanding compilers. */
20424
20425#ifdef __STDC__
20426# include <limits.h>
20427#else
20428# include <assert.h>
20429#endif
20430
20431#undef $ac_func
20432
20433/* Override any GCC internal prototype to avoid an error.
20434 Use char because int might match the return type of a GCC
20435 builtin and then its argument prototype would still apply. */
20436#ifdef __cplusplus
20437extern "C"
20438#endif
20439char $ac_func ();
20440/* The GNU C library defines this for functions which it implements
20441 to always fail with ENOSYS. Some functions are actually named
20442 something starting with __ and the normal name is an alias. */
20443#if defined __stub_$ac_func || defined __stub___$ac_func
20444choke me
20445#endif
20446
20447int
20448main ()
20449{
20450return $ac_func ();
20451 ;
20452 return 0;
20453}
20454_ACEOF
20455rm -f conftest.$ac_objext conftest$ac_exeext
20456if { (ac_try="$ac_link"
20457case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20460esac
20461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_link") 2>conftest.er1
20463 ac_status=$?
20464 grep -v '^ *+' conftest.er1 >conftest.err
20465 rm -f conftest.er1
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } &&
20469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20470 { (case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20473esac
20474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_try") 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; } &&
20479 { ac_try='test -s conftest$ac_exeext'
20480 { (case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20483esac
20484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_try") 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 eval "$as_ac_var=yes"
20490else
20491 echo "$as_me: failed program was:" >&5
20492sed 's/^/| /' conftest.$ac_ext >&5
20493
20494 eval "$as_ac_var=no"
20495fi
20496
20497rm -f core conftest.err conftest.$ac_objext \
20498 conftest$ac_exeext conftest.$ac_ext
20499fi
20500ac_res=`eval echo '${'$as_ac_var'}'`
20501 { echo "$as_me:$LINENO: result: $ac_res" >&5
20502echo "${ECHO_T}$ac_res" >&6; }
20503if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020504 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020506_ACEOF
20507
20508fi
20509done
20510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020511{ echo "$as_me:$LINENO: checking for working mmap" >&5
20512echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20513if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020516 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020517 ac_cv_func_mmap_fixed_mapped=no
20518else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020519 cat >conftest.$ac_ext <<_ACEOF
20520/* confdefs.h. */
20521_ACEOF
20522cat confdefs.h >>conftest.$ac_ext
20523cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020524/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020525$ac_includes_default
20526/* malloc might have been renamed as rpl_malloc. */
20527#undef malloc
20528
20529/* Thanks to Mike Haertel and Jim Avera for this test.
20530 Here is a matrix of mmap possibilities:
20531 mmap private not fixed
20532 mmap private fixed at somewhere currently unmapped
20533 mmap private fixed at somewhere already mapped
20534 mmap shared not fixed
20535 mmap shared fixed at somewhere currently unmapped
20536 mmap shared fixed at somewhere already mapped
20537 For private mappings, we should verify that changes cannot be read()
20538 back from the file, nor mmap's back from the file at a different
20539 address. (There have been systems where private was not correctly
20540 implemented like the infamous i386 svr4.0, and systems where the
20541 VM page cache was not coherent with the file system buffer cache
20542 like early versions of FreeBSD and possibly contemporary NetBSD.)
20543 For shared mappings, we should conversely verify that changes get
20544 propagated back to all the places they're supposed to be.
20545
20546 Grep wants private fixed already mapped.
20547 The main things grep needs to know about mmap are:
20548 * does it exist and is it safe to write into the mmap'd area
20549 * how to use it (BSD variants) */
20550
20551#include <fcntl.h>
20552#include <sys/mman.h>
20553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020554#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020555char *malloc ();
20556#endif
20557
20558/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020559#if !HAVE_GETPAGESIZE
20560/* Assume that all systems that can run configure have sys/param.h. */
20561# if !HAVE_SYS_PARAM_H
20562# define HAVE_SYS_PARAM_H 1
20563# endif
20564
John Criswell7a73b802003-06-30 21:59:07 +000020565# ifdef _SC_PAGESIZE
20566# define getpagesize() sysconf(_SC_PAGESIZE)
20567# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020569# include <sys/param.h>
20570# ifdef EXEC_PAGESIZE
20571# define getpagesize() EXEC_PAGESIZE
20572# else /* no EXEC_PAGESIZE */
20573# ifdef NBPG
20574# define getpagesize() NBPG * CLSIZE
20575# ifndef CLSIZE
20576# define CLSIZE 1
20577# endif /* no CLSIZE */
20578# else /* no NBPG */
20579# ifdef NBPC
20580# define getpagesize() NBPC
20581# else /* no NBPC */
20582# ifdef PAGESIZE
20583# define getpagesize() PAGESIZE
20584# endif /* PAGESIZE */
20585# endif /* no NBPC */
20586# endif /* no NBPG */
20587# endif /* no EXEC_PAGESIZE */
20588# else /* no HAVE_SYS_PARAM_H */
20589# define getpagesize() 8192 /* punt totally */
20590# endif /* no HAVE_SYS_PARAM_H */
20591# endif /* no _SC_PAGESIZE */
20592
20593#endif /* no HAVE_GETPAGESIZE */
20594
20595int
20596main ()
20597{
20598 char *data, *data2, *data3;
20599 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020600 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020601
20602 pagesize = getpagesize ();
20603
20604 /* First, make a file with some known garbage in it. */
20605 data = (char *) malloc (pagesize);
20606 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020607 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020608 for (i = 0; i < pagesize; ++i)
20609 *(data + i) = rand ();
20610 umask (0);
20611 fd = creat ("conftest.mmap", 0600);
20612 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020613 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020614 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020615 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020616 close (fd);
20617
20618 /* Next, try to mmap the file at a fixed address which already has
20619 something else allocated at it. If we can, also make sure that
20620 we see the same garbage. */
20621 fd = open ("conftest.mmap", O_RDWR);
20622 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020623 return 1;
20624 data2 = (char *) malloc (2 * pagesize);
20625 if (!data2)
20626 return 1;
20627 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020628 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020629 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020630 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020631 for (i = 0; i < pagesize; ++i)
20632 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020633 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020634
20635 /* Finally, make sure that changes to the mapped area do not
20636 percolate back to the file as seen by read(). (This is a bug on
20637 some variants of i386 svr4.0.) */
20638 for (i = 0; i < pagesize; ++i)
20639 *(data2 + i) = *(data2 + i) + 1;
20640 data3 = (char *) malloc (pagesize);
20641 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020642 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020643 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020644 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020645 for (i = 0; i < pagesize; ++i)
20646 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020647 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020648 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020649 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020650}
20651_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020652rm -f conftest$ac_exeext
20653if { (ac_try="$ac_link"
20654case "(($ac_try" in
20655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656 *) ac_try_echo=$ac_try;;
20657esac
20658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659 (eval "$ac_link") 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20663 { (case "(($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_try") 2>&5
20669 ac_status=$?
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020672 ac_cv_func_mmap_fixed_mapped=yes
20673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020674 echo "$as_me: program exited with status $ac_status" >&5
20675echo "$as_me: failed program was:" >&5
20676sed 's/^/| /' conftest.$ac_ext >&5
20677
20678( exit $ac_status )
20679ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020681rm -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 +000020682fi
Reid Spencera773bd52006-08-04 18:18:08 +000020683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020684
John Criswell7a73b802003-06-30 21:59:07 +000020685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020686{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20687echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020688if test $ac_cv_func_mmap_fixed_mapped = yes; then
20689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020690cat >>confdefs.h <<\_ACEOF
20691#define HAVE_MMAP 1
20692_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020693
20694fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020695rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020697 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20698echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20699if test "${ac_cv_func_mmap_file+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020701else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020702 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020703ac_cpp='$CPP $CPPFLAGS'
20704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20706ac_compiler_gnu=$ac_cv_c_compiler_gnu
20707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020708 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020709 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020711 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020713 /* confdefs.h. */
20714_ACEOF
20715cat confdefs.h >>conftest.$ac_ext
20716cat >>conftest.$ac_ext <<_ACEOF
20717/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020718
John Criswell7a73b802003-06-30 21:59:07 +000020719#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020720#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020721#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020722
20723int
20724main ()
20725{
John Criswell7a73b802003-06-30 21:59:07 +000020726
20727 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020728 fd = creat ("foo",0777);
20729 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20730 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020731 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020732 ;
20733 return 0;
20734}
John Criswell7a73b802003-06-30 21:59:07 +000020735_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020736rm -f conftest$ac_exeext
20737if { (ac_try="$ac_link"
20738case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20741esac
20742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_link") 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20747 { (case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20750esac
20751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_try") 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020756 ac_cv_func_mmap_file=yes
20757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020758 echo "$as_me: program exited with status $ac_status" >&5
20759echo "$as_me: failed program was:" >&5
20760sed 's/^/| /' conftest.$ac_ext >&5
20761
20762( exit $ac_status )
20763ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020765rm -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 +000020766fi
Reid Spencera773bd52006-08-04 18:18:08 +000020767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020768
John Criswell7a73b802003-06-30 21:59:07 +000020769 ac_ext=c
20770ac_cpp='$CPP $CPPFLAGS'
20771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20773ac_compiler_gnu=$ac_cv_c_compiler_gnu
20774
20775
20776fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020777{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20778echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020779if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020781cat >>confdefs.h <<\_ACEOF
20782#define HAVE_MMAP_FILE
20783_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020784
20785 MMAP_FILE=yes
20786
20787fi
20788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20790echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20791if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020793else
Reid Spencer582a23c2004-12-29 07:07:57 +000020794 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020795 ac_cv_need_dev_zero_for_mmap=yes
20796 else
20797 ac_cv_need_dev_zero_for_mmap=no
20798 fi
20799
20800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020801{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20802echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020803if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020805cat >>confdefs.h <<\_ACEOF
20806#define NEED_DEV_ZERO_FOR_MMAP 1
20807_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020808
20809fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020810
Reid Spencer30fe5262007-01-20 07:48:49 +000020811 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20812 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020813 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20814echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020815 fi
20816 if test "$ac_cv_func_mmap_file" = "no"
20817 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020818 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20819echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020820 fi
John Criswellb13092b2003-07-22 21:00:24 +000020821fi
John Criswell7a73b802003-06-30 21:59:07 +000020822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020823{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20824echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020825ac_ext=cpp
20826ac_cpp='$CXXCPP $CPPFLAGS'
20827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020831cat >conftest.$ac_ext <<_ACEOF
20832/* confdefs.h. */
20833_ACEOF
20834cat confdefs.h >>conftest.$ac_ext
20835cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020836/* end confdefs.h. */
20837int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020838 volatile unsigned long val = 1;
20839 __sync_synchronize();
20840 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020841 __sync_add_and_fetch(&val, 1);
20842 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020843 return 0;
20844 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020845
20846_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020847rm -f conftest.$ac_objext conftest$ac_exeext
20848if { (ac_try="$ac_link"
20849case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20852esac
20853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_link") 2>conftest.er1
20855 ac_status=$?
20856 grep -v '^ *+' conftest.er1 >conftest.err
20857 rm -f conftest.er1
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20862 { (case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865esac
20866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_try") 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; } &&
20871 { ac_try='test -s conftest$ac_exeext'
20872 { (case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875esac
20876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_try") 2>&5
20878 ac_status=$?
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020881 ac_ext=c
20882ac_cpp='$CPP $CPPFLAGS'
20883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885ac_compiler_gnu=$ac_cv_c_compiler_gnu
20886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887 { echo "$as_me:$LINENO: result: yes" >&5
20888echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020890cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020891#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020892_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020893
Owen Andersond4b272b2009-05-18 23:58:51 +000020894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020895 echo "$as_me: failed program was:" >&5
20896sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898 { echo "$as_me:$LINENO: result: no" >&5
20899echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020901cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020902#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020903_ACEOF
20904
20905 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20906echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020908
Owen Andersond4b272b2009-05-18 23:58:51 +000020909rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020910 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020911
John Criswell7a73b802003-06-30 21:59:07 +000020912
Nick Lewycky4372e692009-09-29 06:18:23 +000020913if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020914 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20915echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20916if test "${llvm_cv_linux_mixed+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020918else
20919 ac_ext=c
20920ac_cpp='$CPP $CPPFLAGS'
20921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020925 cat >conftest.$ac_ext <<_ACEOF
20926/* confdefs.h. */
20927_ACEOF
20928cat confdefs.h >>conftest.$ac_ext
20929cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020930/* end confdefs.h. */
20931#ifndef __x86_64__
20932 error: Not x86-64 even if uname says so!
20933 #endif
20934
20935int
20936main ()
20937{
20938
20939 ;
20940 return 0;
20941}
20942_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020943rm -f conftest.$ac_objext
20944if { (ac_try="$ac_compile"
20945case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20948esac
20949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_compile") 2>conftest.er1
20951 ac_status=$?
20952 grep -v '^ *+' conftest.er1 >conftest.err
20953 rm -f conftest.er1
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } &&
20957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20958 { (case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20961esac
20962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_try") 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; } &&
20967 { ac_try='test -s conftest.$ac_objext'
20968 { (case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20971esac
20972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_try") 2>&5
20974 ac_status=$?
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020977 llvm_cv_linux_mixed=no
20978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020979 echo "$as_me: failed program was:" >&5
20980sed 's/^/| /' conftest.$ac_ext >&5
20981
20982 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020984
Nick Lewycky4372e692009-09-29 06:18:23 +000020985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20986 ac_ext=c
20987ac_cpp='$CPP $CPPFLAGS'
20988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20990ac_compiler_gnu=$ac_cv_c_compiler_gnu
20991
20992
20993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020994{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20995echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020996
20997 if test "$llvm_cv_linux_mixed" = "yes"; then
20998 llvm_cv_target_arch="x86"
20999 ARCH="x86"
21000 fi
21001fi
21002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021003
Reid Spencer9372f152007-07-30 20:13:24 +000021004for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021005do
21006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21007{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21009if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21011else
21012 cat >conftest.$ac_ext <<_ACEOF
21013/* confdefs.h. */
21014_ACEOF
21015cat confdefs.h >>conftest.$ac_ext
21016cat >>conftest.$ac_ext <<_ACEOF
21017/* end confdefs.h. */
21018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21020#define $ac_func innocuous_$ac_func
21021
21022/* System header to define __stub macros and hopefully few prototypes,
21023 which can conflict with char $ac_func (); below.
21024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21025 <limits.h> exists even on freestanding compilers. */
21026
21027#ifdef __STDC__
21028# include <limits.h>
21029#else
21030# include <assert.h>
21031#endif
21032
21033#undef $ac_func
21034
21035/* Override any GCC internal prototype to avoid an error.
21036 Use char because int might match the return type of a GCC
21037 builtin and then its argument prototype would still apply. */
21038#ifdef __cplusplus
21039extern "C"
21040#endif
21041char $ac_func ();
21042/* The GNU C library defines this for functions which it implements
21043 to always fail with ENOSYS. Some functions are actually named
21044 something starting with __ and the normal name is an alias. */
21045#if defined __stub_$ac_func || defined __stub___$ac_func
21046choke me
21047#endif
21048
21049int
21050main ()
21051{
21052return $ac_func ();
21053 ;
21054 return 0;
21055}
21056_ACEOF
21057rm -f conftest.$ac_objext conftest$ac_exeext
21058if { (ac_try="$ac_link"
21059case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21062esac
21063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_link") 2>conftest.er1
21065 ac_status=$?
21066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
21071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21072 { (case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21075esac
21076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_try") 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest$ac_exeext'
21082 { (case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21085esac
21086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_try") 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; }; then
21091 eval "$as_ac_var=yes"
21092else
21093 echo "$as_me: failed program was:" >&5
21094sed 's/^/| /' conftest.$ac_ext >&5
21095
21096 eval "$as_ac_var=no"
21097fi
21098
21099rm -f core conftest.err conftest.$ac_objext \
21100 conftest$ac_exeext conftest.$ac_ext
21101fi
21102ac_res=`eval echo '${'$as_ac_var'}'`
21103 { echo "$as_me:$LINENO: result: $ac_res" >&5
21104echo "${ECHO_T}$ac_res" >&6; }
21105if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021106 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021108_ACEOF
21109
21110fi
21111done
21112
21113
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021114SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021115
21116
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021117SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21118
21119
Jeff Cohen28783c32007-01-12 18:22:38 +000021120if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021121 prefix="/usr/local"
21122fi
Reid Spencere9de0912004-08-20 09:03:57 +000021123eval LLVM_PREFIX="${prefix}";
21124eval LLVM_BINDIR="${prefix}/bin";
21125eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021126eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021127eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021128eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021129eval LLVM_INCLUDEDIR="${prefix}/include";
21130eval LLVM_INFODIR="${prefix}/info";
21131eval LLVM_MANDIR="${prefix}/man";
21132LLVM_CONFIGTIME=`date`
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021144if test "${ENABLE_TIMESTAMPS}" = "0"; then
21145 LLVM_CONFIGTIME="(timestamp not enabled)"
21146fi
21147
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021148
Reid Spencere9de0912004-08-20 09:03:57 +000021149cat >>confdefs.h <<_ACEOF
21150#define LLVM_PREFIX "$LLVM_PREFIX"
21151_ACEOF
21152
21153
21154cat >>confdefs.h <<_ACEOF
21155#define LLVM_BINDIR "$LLVM_BINDIR"
21156_ACEOF
21157
21158
21159cat >>confdefs.h <<_ACEOF
21160#define LLVM_LIBDIR "$LLVM_LIBDIR"
21161_ACEOF
21162
21163
21164cat >>confdefs.h <<_ACEOF
21165#define LLVM_DATADIR "$LLVM_DATADIR"
21166_ACEOF
21167
21168
21169cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021170#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021171_ACEOF
21172
21173
21174cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021175#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021176_ACEOF
21177
21178
21179cat >>confdefs.h <<_ACEOF
21180#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21181_ACEOF
21182
21183
21184cat >>confdefs.h <<_ACEOF
21185#define LLVM_INFODIR "$LLVM_INFODIR"
21186_ACEOF
21187
21188
21189cat >>confdefs.h <<_ACEOF
21190#define LLVM_MANDIR "$LLVM_MANDIR"
21191_ACEOF
21192
21193
21194cat >>confdefs.h <<_ACEOF
21195#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21196_ACEOF
21197
21198
Eric Christopher790e11c2007-12-01 00:34:39 +000021199cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi2864de72012-07-22 03:04:52 +000021200#define LLVM_HOSTTRIPLE "$host"
21201_ACEOF
21202
21203
21204cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021205#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021206_ACEOF
21207
21208
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021209if test "$BINDINGS_TO_BUILD" = auto ; then
21210 BINDINGS_TO_BUILD=""
21211 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21212 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21213 fi
21214fi
21215BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21216
21217
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021218ALL_BINDINGS=ocaml
21219
21220
Gordon Henriksenf0915682007-10-02 16:42:22 +000021221binding_prereqs_failed=0
21222for a_binding in $BINDINGS_TO_BUILD ; do
21223 case "$a_binding" in
21224 ocaml)
21225 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021226 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21227echo "$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 +000021228 binding_prereqs_failed=1
21229 fi
21230 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021231 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21232echo "$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 +000021233 binding_prereqs_failed=1
21234 fi
21235 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021236 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21237echo "$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 +000021238 fi
21239 if test "x$with_ocaml_libdir" != xauto ; then
21240 OCAML_LIBDIR=$with_ocaml_libdir
21241
21242 else
21243 ocaml_stdlib="`"$OCAMLC" -where`"
21244 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21245 then
21246 # ocaml stdlib is beneath our prefix; use stdlib
21247 OCAML_LIBDIR=$ocaml_stdlib
21248
21249 else
21250 # ocaml stdlib is outside our prefix; use libdir/ocaml
21251 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21252
21253 fi
21254 fi
21255 ;;
21256 esac
21257done
21258if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021259 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21260echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21261 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021262fi
21263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021264{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21265echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21266if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021268else
21269 ac_ext=cpp
21270ac_cpp='$CXXCPP $CPPFLAGS'
21271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21274
21275 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021276 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021277 cat >conftest.$ac_ext <<_ACEOF
21278/* confdefs.h. */
21279_ACEOF
21280cat confdefs.h >>conftest.$ac_ext
21281cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021282/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021283template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021284int
21285main ()
21286{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021287X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021288 ;
21289 return 0;
21290}
21291_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021292rm -f conftest.$ac_objext
21293if { (ac_try="$ac_compile"
21294case "(($ac_try" in
21295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296 *) ac_try_echo=$ac_try;;
21297esac
21298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_compile") 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21307 { (case "(($ac_try" in
21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21310esac
21311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_try") 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; } &&
21316 { ac_try='test -s conftest.$ac_objext'
21317 { (case "(($ac_try" in
21318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319 *) ac_try_echo=$ac_try;;
21320esac
21321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21322 (eval "$ac_try") 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021326 llvm_cv_cxx_visibility_inlines_hidden=yes
21327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021328 echo "$as_me: failed program was:" >&5
21329sed 's/^/| /' conftest.$ac_ext >&5
21330
21331 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021333
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335 CXXFLAGS="$oldcxxflags"
21336 ac_ext=c
21337ac_cpp='$CPP $CPPFLAGS'
21338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21340ac_compiler_gnu=$ac_cv_c_compiler_gnu
21341
21342
21343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21345echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021346if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21347 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21348
21349else
21350 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21351
21352fi
21353
Gordon Henriksenf0915682007-10-02 16:42:22 +000021354
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021355if test "$llvm_cv_link_use_r" = "yes" ; then
21356 RPATH="-Wl,-R"
21357else
21358 RPATH="-Wl,-rpath"
21359fi
21360
21361
21362if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21363 RDYNAMIC="-Wl,-export-dynamic"
21364else
21365 RDYNAMIC=""
21366fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021367
21368
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021369
Eric Christophera1cba682010-08-08 02:44:25 +000021370ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021371
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021372
21373
21374
21375
21376
Douglas Gregor1555a232009-06-16 20:12:29 +000021377ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21378
21379ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21380
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021381ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21382
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021383ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21384
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021385ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021386
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021387
Reid Spencera773bd52006-08-04 18:18:08 +000021388ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021389
Eric Christopher360fa9a2011-10-26 00:42:12 +000021390
Reid Spencerea949cf2006-08-16 00:45:38 +000021391ac_config_files="$ac_config_files llvm.spec"
21392
21393
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021394ac_config_files="$ac_config_files docs/doxygen.cfg"
21395
Eric Christopher63c09512012-02-02 00:16:55 +000021396
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021397if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021398 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021399fi
Eric Christopher63c09512012-02-02 00:16:55 +000021400if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021401 configh="include/clang/Config/config.h"
21402 doxy="docs/doxygen.cfg"
21403 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021404
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021405 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021406
21407fi
21408
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021409ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021410
Eric Christopher360fa9a2011-10-26 00:42:12 +000021411
Reid Spencera773bd52006-08-04 18:18:08 +000021412ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021413
Reid Spencera773bd52006-08-04 18:18:08 +000021414ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021415
21416
Reid Spencera773bd52006-08-04 18:18:08 +000021417ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021418
21419
Reid Spencera773bd52006-08-04 18:18:08 +000021420ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021421
21422
Reid Spencera773bd52006-08-04 18:18:08 +000021423ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021424
21425
Reid Spencer8b2e1412006-11-17 03:32:33 +000021426ac_config_commands="$ac_config_commands runtime/Makefile"
21427
21428
Reid Spencera773bd52006-08-04 18:18:08 +000021429ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021430
21431
Reid Spencera773bd52006-08-04 18:18:08 +000021432ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021433
21434
Bill Wendlingf24eb392009-01-04 23:12:30 +000021435ac_config_commands="$ac_config_commands unittests/Makefile"
21436
21437
Reid Spencera773bd52006-08-04 18:18:08 +000021438ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021439
21440
Reid Spencera773bd52006-08-04 18:18:08 +000021441ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021442
21443
Reid Spencera773bd52006-08-04 18:18:08 +000021444ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021445
21446
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021447ac_config_commands="$ac_config_commands bindings/Makefile"
21448
21449
21450ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21451
21452
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021453
John Criswell7a73b802003-06-30 21:59:07 +000021454cat >confcache <<\_ACEOF
21455# This file is a shell script that caches the results of configure
21456# tests run on this system so they can be shared between configure
21457# scripts and configure runs, see configure's option --config-cache.
21458# It is not useful on other systems. If it contains results you don't
21459# want to keep, you may remove or edit it.
21460#
21461# config.status only pays attention to the cache file if you give it
21462# the --recheck option to rerun configure.
21463#
John Criswell0c38eaf2003-09-10 15:17:25 +000021464# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021465# loading this file, other *unset* `ac_cv_foo' will be assigned the
21466# following values.
21467
21468_ACEOF
21469
21470# The following way of writing the cache mishandles newlines in values,
21471# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021472# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021473# Ultrix sh set writes to stderr and can't be redirected directly,
21474# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021475(
21476 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21477 eval ac_val=\$$ac_var
21478 case $ac_val in #(
21479 *${as_nl}*)
21480 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021481 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21482echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021483 esac
21484 case $ac_var in #(
21485 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021486 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021487 esac ;;
21488 esac
21489 done
21490
John Criswell7a73b802003-06-30 21:59:07 +000021491 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021492 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21493 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021494 # `set' does not quote correctly, so add quotes (double-quote
21495 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021496 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021497 "s/'/'\\\\''/g;
21498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021499 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021500 *)
21501 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021503 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021504 esac |
21505 sort
21506) |
John Criswell7a73b802003-06-30 21:59:07 +000021507 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021508 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021509 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021510 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021511 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21512 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021513 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21514 :end' >>confcache
21515if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21516 if test -w "$cache_file"; then
21517 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021518 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21519echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021520 cat confcache >$cache_file
21521 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21523echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021524 fi
21525fi
21526rm -f confcache
21527
21528test "x$prefix" = xNONE && prefix=$ac_default_prefix
21529# Let make expand exec_prefix.
21530test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21531
John Criswell7a73b802003-06-30 21:59:07 +000021532DEFS=-DHAVE_CONFIG_H
21533
John Criswell0c38eaf2003-09-10 15:17:25 +000021534ac_libobjs=
21535ac_ltlibobjs=
21536for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21537 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021539 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21541 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21543 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021544done
21545LIBOBJS=$ac_libobjs
21546
21547LTLIBOBJS=$ac_ltlibobjs
21548
21549
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021550if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021551 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21552Usually this means the macro was only invoked conditionally." >&5
21553echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21554Usually this means the macro was only invoked conditionally." >&2;}
21555 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021556fi
21557if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021558 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21559Usually this means the macro was only invoked conditionally." >&5
21560echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21561Usually this means the macro was only invoked conditionally." >&2;}
21562 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021563fi
John Criswell7a73b802003-06-30 21:59:07 +000021564
21565: ${CONFIG_STATUS=./config.status}
21566ac_clean_files_save=$ac_clean_files
21567ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021568{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21569echo "$as_me: creating $CONFIG_STATUS" >&6;}
21570cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021571#! $SHELL
21572# Generated by $as_me.
21573# Run this file to recreate the current configuration.
21574# Compiler output produced by configure, useful for debugging
21575# configure, is in config.log if it exists.
21576
21577debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021578ac_cs_recheck=false
21579ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021580SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583cat >>$CONFIG_STATUS <<\_ACEOF
21584## --------------------- ##
21585## M4sh Initialization. ##
21586## --------------------- ##
21587
21588# Be Bourne compatible
21589if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021590 emulate sh
21591 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021593 # is contrary to our usage. Disable this feature.
21594 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021595 setopt NO_GLOB_SUBST
21596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021597 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021599BIN_SH=xpg4; export BIN_SH # for Tru64
21600DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021601
John Criswell7a73b802003-06-30 21:59:07 +000021602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021603# PATH needs CR
21604# Avoid depending upon Character Ranges.
21605as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21606as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21607as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21608as_cr_digits='0123456789'
21609as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021610
21611# The user is always right.
21612if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021613 echo "#! /bin/sh" >conf$$.sh
21614 echo "exit 0" >>conf$$.sh
21615 chmod +x conf$$.sh
21616 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21617 PATH_SEPARATOR=';'
21618 else
21619 PATH_SEPARATOR=:
21620 fi
21621 rm -f conf$$.sh
21622fi
21623
21624# Support unset when possible.
21625if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21626 as_unset=unset
21627else
21628 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021629fi
John Criswell7a73b802003-06-30 21:59:07 +000021630
Reid Spencera773bd52006-08-04 18:18:08 +000021631
21632# IFS
21633# We need space, tab and new line, in precisely that order. Quoting is
21634# there to prevent editors from complaining about space-tab.
21635# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21636# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021637as_nl='
21638'
Reid Spencera773bd52006-08-04 18:18:08 +000021639IFS=" "" $as_nl"
21640
21641# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021642case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021643 *[\\/]* ) as_myself=$0 ;;
21644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021645for as_dir in $PATH
21646do
21647 IFS=$as_save_IFS
21648 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21650done
Reid Spencera773bd52006-08-04 18:18:08 +000021651IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021652
Reid Spencera773bd52006-08-04 18:18:08 +000021653 ;;
21654esac
21655# We did not find ourselves, most probably we were run as `sh COMMAND'
21656# in which case we are not to be found in the path.
21657if test "x$as_myself" = x; then
21658 as_myself=$0
21659fi
21660if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021661 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21662 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021663fi
21664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021665# Work around bugs in pre-3.0 UWIN ksh.
21666for as_var in ENV MAIL MAILPATH
21667do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021668done
21669PS1='$ '
21670PS2='> '
21671PS4='+ '
21672
21673# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021674for as_var in \
21675 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21676 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21677 LC_TELEPHONE LC_TIME
21678do
21679 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21680 eval $as_var=C; export $as_var
21681 else
21682 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021683 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021684done
Torok Edwin871384f2010-01-26 08:50:50 +000021685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021686# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021687if expr a : '\(a\)' >/dev/null 2>&1 &&
21688 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21689 as_expr=expr
21690else
21691 as_expr=false
21692fi
21693
21694if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21695 as_basename=basename
21696else
21697 as_basename=false
21698fi
21699
21700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021701# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021702as_me=`$as_basename -- "$0" ||
21703$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21704 X"$0" : 'X\(//\)$' \| \
21705 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021706echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021707 sed '/^.*\/\([^/][^/]*\)\/*$/{
21708 s//\1/
21709 q
21710 }
21711 /^X\/\(\/\/\)$/{
21712 s//\1/
21713 q
21714 }
21715 /^X\/\(\/\).*/{
21716 s//\1/
21717 q
21718 }
21719 s/.*/./; q'`
21720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021721# CDPATH.
21722$as_unset CDPATH
21723
21724
21725
21726 as_lineno_1=$LINENO
21727 as_lineno_2=$LINENO
21728 test "x$as_lineno_1" != "x$as_lineno_2" &&
21729 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21730
21731 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21732 # uniformly replaced by the line number. The first 'sed' inserts a
21733 # line-number line after each line using $LINENO; the second 'sed'
21734 # does the real work. The second script uses 'N' to pair each
21735 # line-number line with the line containing $LINENO, and appends
21736 # trailing '-' during substitution so that $LINENO is not a special
21737 # case at line end.
21738 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21739 # scripts with optimization help from Paolo Bonzini. Blame Lee
21740 # E. McMahon (1931-1989) for sed's syntax. :-)
21741 sed -n '
21742 p
21743 /[$]LINENO/=
21744 ' <$as_myself |
21745 sed '
21746 s/[$]LINENO.*/&-/
21747 t lineno
21748 b
21749 :lineno
21750 N
21751 :loop
21752 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21753 t loop
21754 s/-\n.*//
21755 ' >$as_me.lineno &&
21756 chmod +x "$as_me.lineno" ||
21757 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21758 { (exit 1); exit 1; }; }
21759
21760 # Don't try to exec as it changes $[0], causing all sort of problems
21761 # (the dirname of $[0] is not the place where we might find the
21762 # original and so on. Autoconf is especially sensitive to this).
21763 . "./$as_me.lineno"
21764 # Exit status is that of the last command.
21765 exit
21766}
21767
21768
21769if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21770 as_dirname=dirname
21771else
21772 as_dirname=false
21773fi
Reid Spencera773bd52006-08-04 18:18:08 +000021774
21775ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021776case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021777-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021778 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021779 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021780 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021781 esac;;
21782*)
21783 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021784esac
21785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021786if expr a : '\(a\)' >/dev/null 2>&1 &&
21787 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21788 as_expr=expr
21789else
21790 as_expr=false
21791fi
21792
John Criswell7a73b802003-06-30 21:59:07 +000021793rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021794if test -d conf$$.dir; then
21795 rm -f conf$$.dir/conf$$.file
21796else
21797 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021798 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021800echo >conf$$.file
21801if ln -s conf$$.file conf$$ 2>/dev/null; then
21802 as_ln_s='ln -s'
21803 # ... but there are two gotchas:
21804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21806 # In both cases, we have to default to `cp -p'.
21807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021808 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809elif ln conf$$.file conf$$ 2>/dev/null; then
21810 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021811else
21812 as_ln_s='cp -p'
21813fi
Reid Spencera773bd52006-08-04 18:18:08 +000021814rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21815rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021816
John Criswell0c38eaf2003-09-10 15:17:25 +000021817if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021818 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021819else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021820 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021821 as_mkdir_p=false
21822fi
21823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21825# systems may use methods other than mode bits to determine executability.
21826cat >conf$$.file <<_ASEOF
21827#! /bin/sh
21828exit 0
21829_ASEOF
21830chmod +x conf$$.file
21831if test -x conf$$.file >/dev/null 2>&1; then
21832 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021834 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021835fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021836rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021837
21838# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021839as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021840
21841# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021842as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021843
21844
John Criswell7a73b802003-06-30 21:59:07 +000021845exec 6>&1
21846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021848# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021849# values after options handling.
21850ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021851This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021853
21854 CONFIG_FILES = $CONFIG_FILES
21855 CONFIG_HEADERS = $CONFIG_HEADERS
21856 CONFIG_LINKS = $CONFIG_LINKS
21857 CONFIG_COMMANDS = $CONFIG_COMMANDS
21858 $ $0 $@
21859
Reid Spencera773bd52006-08-04 18:18:08 +000021860on `(hostname || uname -n) 2>/dev/null | sed 1q`
21861"
21862
John Criswell7a73b802003-06-30 21:59:07 +000021863_ACEOF
21864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021865cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021866# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021867config_files="$ac_config_files"
21868config_headers="$ac_config_headers"
21869config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021870
Reid Spencera773bd52006-08-04 18:18:08 +000021871_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021873cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021874ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021875\`$as_me' instantiates files from templates according to the
21876current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021879
21880 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021881 -V, --version print version number, then exit
21882 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021883 -d, --debug don't remove temporary files
21884 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021885 --file=FILE[:TEMPLATE]
21886 instantiate the configuration file FILE
21887 --header=FILE[:TEMPLATE]
21888 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021889
21890Configuration files:
21891$config_files
21892
21893Configuration headers:
21894$config_headers
21895
John Criswellc764fbc2003-09-06 15:17:13 +000021896Configuration commands:
21897$config_commands
21898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021899Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021900
Reid Spencera773bd52006-08-04 18:18:08 +000021901_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021902cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021903ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021904LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021905configured by $0, generated by GNU Autoconf 2.60,
21906 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021908Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021909This config.status script is free software; the Free Software Foundation
21910gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021911
21912ac_pwd='$ac_pwd'
21913srcdir='$srcdir'
21914INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021915_ACEOF
21916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021917cat >>$CONFIG_STATUS <<\_ACEOF
21918# If no file are specified by the user, then we need to provide default
21919# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021920ac_need_defaults=:
21921while test $# != 0
21922do
21923 case $1 in
21924 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021925 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21926 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021927 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021928 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021929 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021930 ac_option=$1
21931 ac_optarg=$2
21932 ac_shift=shift
21933 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021934 esac
21935
John Criswell0c38eaf2003-09-10 15:17:25 +000021936 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021937 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21939 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021940 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021941 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021942 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021943 debug=: ;;
21944 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021945 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021946 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021947 ac_need_defaults=false;;
21948 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021949 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021950 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021951 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021952 --he | --h)
21953 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021954 { echo "$as_me: error: ambiguous option: $1
21955Try \`$0 --help' for more information." >&2
21956 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021957 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21961 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021962
21963 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021964 -*) { echo "$as_me: error: unrecognized option: $1
21965Try \`$0 --help' for more information." >&2
21966 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021968 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021969 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021970
21971 esac
21972 shift
21973done
21974
John Criswell0c38eaf2003-09-10 15:17:25 +000021975ac_configure_extra_args=
21976
21977if $ac_cs_silent; then
21978 exec 6>/dev/null
21979 ac_configure_extra_args="$ac_configure_extra_args --silent"
21980fi
21981
21982_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021983cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021984if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021985 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21986 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021987 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021989fi
21990
John Criswell7a73b802003-06-30 21:59:07 +000021991_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021993exec 5>>config.log
21994{
21995 echo
21996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21997## Running $as_me. ##
21998_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021999 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000022000} >&5
John Criswell7a73b802003-06-30 21:59:07 +000022001
Reid Spencera773bd52006-08-04 18:18:08 +000022002_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022003cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000022004#
Reid Spencera773bd52006-08-04 18:18:08 +000022005# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000022006#
Reid Spencerc0682832005-02-24 19:05:19 +000022007llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000022008
22009_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022011cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022012
22013# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000022014for ac_config_target in $ac_config_targets
22015do
Reid Spencera773bd52006-08-04 18:18:08 +000022016 case $ac_config_target in
22017 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000022018 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000022019 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22020 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000022021 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000022022 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000022023 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022024 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000022025 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000022026 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000022027 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22028 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000022029 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022030 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22031 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22032 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22033 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22034 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022035 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022036 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22037 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022038 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022039 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22040 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22041 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022042 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22043 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022045 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22046echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22047 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000022048 esac
22049done
22050
Reid Spencera773bd52006-08-04 18:18:08 +000022051
John Criswell7a73b802003-06-30 21:59:07 +000022052# If the user did not use the arguments to specify the items to instantiate,
22053# then the envvar interface is used. Set only those that are not.
22054# We use the long form for the default assignment because of an extremely
22055# bizarre bug on SunOS 4.1.3.
22056if $ac_need_defaults; then
22057 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22058 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022059 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022060fi
22061
John Criswell0c38eaf2003-09-10 15:17:25 +000022062# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022063# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022064# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022065# Hook for its removal unless debugging.
22066# Note that there is a small window in which the directory will not be cleaned:
22067# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022068$debug ||
22069{
Reid Spencera773bd52006-08-04 18:18:08 +000022070 tmp=
22071 trap 'exit_status=$?
22072 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22073' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022074 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022075}
John Criswell7a73b802003-06-30 21:59:07 +000022076# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022077
John Criswell7a73b802003-06-30 21:59:07 +000022078{
Reid Spencera773bd52006-08-04 18:18:08 +000022079 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022080 test -n "$tmp" && test -d "$tmp"
22081} ||
22082{
Reid Spencera773bd52006-08-04 18:18:08 +000022083 tmp=./conf$$-$RANDOM
22084 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022085} ||
22086{
22087 echo "$me: cannot create a temporary directory in ." >&2
22088 { (exit 1); exit 1; }
22089}
John Criswell7a73b802003-06-30 21:59:07 +000022090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022091#
22092# Set up the sed scripts for CONFIG_FILES section.
22093#
22094
22095# No need to generate the scripts if there are no CONFIG_FILES.
22096# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022097if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022098
22099_ACEOF
22100
Reid Spencera773bd52006-08-04 18:18:08 +000022101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022102
Reid Spencera773bd52006-08-04 18:18:08 +000022103ac_delim='%!_!# '
22104for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022105 cat >conf$$subs.sed <<_ACEOF
22106SHELL!$SHELL$ac_delim
22107PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22108PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22109PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22110PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22111PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22112PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22113exec_prefix!$exec_prefix$ac_delim
22114prefix!$prefix$ac_delim
22115program_transform_name!$program_transform_name$ac_delim
22116bindir!$bindir$ac_delim
22117sbindir!$sbindir$ac_delim
22118libexecdir!$libexecdir$ac_delim
22119datarootdir!$datarootdir$ac_delim
22120datadir!$datadir$ac_delim
22121sysconfdir!$sysconfdir$ac_delim
22122sharedstatedir!$sharedstatedir$ac_delim
22123localstatedir!$localstatedir$ac_delim
22124includedir!$includedir$ac_delim
22125oldincludedir!$oldincludedir$ac_delim
22126docdir!$docdir$ac_delim
22127infodir!$infodir$ac_delim
22128htmldir!$htmldir$ac_delim
22129dvidir!$dvidir$ac_delim
22130pdfdir!$pdfdir$ac_delim
22131psdir!$psdir$ac_delim
22132libdir!$libdir$ac_delim
22133localedir!$localedir$ac_delim
22134mandir!$mandir$ac_delim
22135DEFS!$DEFS$ac_delim
22136ECHO_C!$ECHO_C$ac_delim
22137ECHO_N!$ECHO_N$ac_delim
22138ECHO_T!$ECHO_T$ac_delim
22139LIBS!$LIBS$ac_delim
22140build_alias!$build_alias$ac_delim
22141host_alias!$host_alias$ac_delim
22142target_alias!$target_alias$ac_delim
22143LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022144CC!$CC$ac_delim
22145CFLAGS!$CFLAGS$ac_delim
22146LDFLAGS!$LDFLAGS$ac_delim
22147CPPFLAGS!$CPPFLAGS$ac_delim
22148ac_ct_CC!$ac_ct_CC$ac_delim
22149EXEEXT!$EXEEXT$ac_delim
22150OBJEXT!$OBJEXT$ac_delim
22151CXX!$CXX$ac_delim
22152CXXFLAGS!$CXXFLAGS$ac_delim
22153ac_ct_CXX!$ac_ct_CXX$ac_delim
22154CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022155subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022156ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22157LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022158build!$build$ac_delim
22159build_cpu!$build_cpu$ac_delim
22160build_vendor!$build_vendor$ac_delim
22161build_os!$build_os$ac_delim
22162host!$host$ac_delim
22163host_cpu!$host_cpu$ac_delim
22164host_vendor!$host_vendor$ac_delim
22165host_os!$host_os$ac_delim
22166target!$target$ac_delim
22167target_cpu!$target_cpu$ac_delim
22168target_vendor!$target_vendor$ac_delim
22169target_os!$target_os$ac_delim
22170OS!$OS$ac_delim
22171HOST_OS!$HOST_OS$ac_delim
22172TARGET_OS!$TARGET_OS$ac_delim
22173LINKALL!$LINKALL$ac_delim
22174NOLINKALL!$NOLINKALL$ac_delim
22175LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22176LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22177ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022178HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022179ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022180GREP!$GREP$ac_delim
22181EGREP!$EGREP$ac_delim
22182LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22183BUILD_CC!$BUILD_CC$ac_delim
22184BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22185BUILD_CXX!$BUILD_CXX$ac_delim
22186CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022187ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022188ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022189ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22190ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22191DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022192ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022193ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22194EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22195DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22196DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022197KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022198JIT!$JIT$ac_delim
22199TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022200ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022201ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
Eric Christopher164a3082012-08-28 01:17:46 +000022202LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022203_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022205 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022206 break
22207 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022208 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22209echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22210 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022211 else
22212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022213 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022214done
22215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022216ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22217if test -n "$ac_eof"; then
22218 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22219 ac_eof=`expr $ac_eof + 1`
22220fi
22221
22222cat >>$CONFIG_STATUS <<_ACEOF
22223cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22224/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022225_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022226sed '
22227s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22228s/^/s,@/; s/!/@,|#_!!_#|/
22229:n
22230t n
22231s/'"$ac_delim"'$/,g/; t
22232s/$/\\/; p
22233N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22234' >>$CONFIG_STATUS <conf$$subs.sed
22235rm -f conf$$subs.sed
22236cat >>$CONFIG_STATUS <<_ACEOF
22237CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022238_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022239
22240
22241ac_delim='%!_!# '
22242for ac_last_try in false false false false false :; do
22243 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbar7126ee02012-08-14 18:14:22 +000022244ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Eric Christopher09a88732012-08-03 19:58:20 +000022245ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher82120022012-08-03 19:47:14 +000022246ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022247ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022248ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022249TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22250LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22251LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022252LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022253LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022254OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022255EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022256EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022257CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022258BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022259INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022260NM!$NM$ac_delim
22261ifGNUmake!$ifGNUmake$ac_delim
22262LN_S!$LN_S$ac_delim
22263CMP!$CMP$ac_delim
22264CP!$CP$ac_delim
22265DATE!$DATE$ac_delim
22266FIND!$FIND$ac_delim
22267MKDIR!$MKDIR$ac_delim
22268MV!$MV$ac_delim
22269RANLIB!$RANLIB$ac_delim
22270AR!$AR$ac_delim
22271RM!$RM$ac_delim
22272SED!$SED$ac_delim
22273TAR!$TAR$ac_delim
22274BINPWD!$BINPWD$ac_delim
22275GRAPHVIZ!$GRAPHVIZ$ac_delim
22276DOT!$DOT$ac_delim
22277FDP!$FDP$ac_delim
22278NEATO!$NEATO$ac_delim
22279TWOPI!$TWOPI$ac_delim
22280CIRCO!$CIRCO$ac_delim
22281GV!$GV$ac_delim
22282DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022283XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022284INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22285INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22286INSTALL_DATA!$INSTALL_DATA$ac_delim
22287BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022288CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022289DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022290GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022291GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022292PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022293ZIP!$ZIP$ac_delim
22294OCAMLC!$OCAMLC$ac_delim
22295OCAMLOPT!$OCAMLOPT$ac_delim
22296OCAMLDEP!$OCAMLDEP$ac_delim
22297OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022298GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022299HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022300INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22301INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22302CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22303CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22304LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022305NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22306NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022307COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022308USE_UDIS86!$USE_UDIS86$ac_delim
22309USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022310USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22311INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22312INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Eric Christopher46e6bcf2012-08-03 19:47:19 +000022313XML2CONFIG!$XML2CONFIG$ac_delim
22314LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22315LIBXML2_INC!$LIBXML2_INC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022316HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22317HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22318MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022319SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022320SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22322LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22323LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22324LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22325LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22326LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22327LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22328LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22329LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22330LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22331BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22332ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022333OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22334ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22335RPATH!$RPATH$ac_delim
22336RDYNAMIC!$RDYNAMIC$ac_delim
22337LIBOBJS!$LIBOBJS$ac_delim
22338LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022339_ACEOF
22340
Jordan Rose85042e62012-09-26 00:01:00 +000022341 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022342 break
22343 elif $ac_last_try; then
22344 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22345echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22346 { (exit 1); exit 1; }; }
22347 else
22348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22349 fi
22350done
22351
22352ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22353if test -n "$ac_eof"; then
22354 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22355 ac_eof=`expr $ac_eof + 1`
22356fi
22357
22358cat >>$CONFIG_STATUS <<_ACEOF
22359cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Jordan Rose85042e62012-09-26 00:01:00 +000022360/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grossera84b5672010-11-10 16:31:34 +000022361_ACEOF
22362sed '
22363s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22364s/^/s,@/; s/!/@,|#_!!_#|/
22365:n
22366t n
22367s/'"$ac_delim"'$/,g/; t
22368s/$/\\/; p
22369N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22370' >>$CONFIG_STATUS <conf$$subs.sed
22371rm -f conf$$subs.sed
22372cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose85042e62012-09-26 00:01:00 +000022373:end
22374s/|#_!!_#|//g
Tobias Grossera84b5672010-11-10 16:31:34 +000022375CEOF$ac_eof
22376_ACEOF
22377
22378
Reid Spencera773bd52006-08-04 18:18:08 +000022379# VPATH may cause trouble with some makes, so we remove $(srcdir),
22380# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22381# trailing colons and then remove the whole line if VPATH becomes empty
22382# (actually we leave an empty line to preserve line numbers).
22383if test "x$srcdir" = x.; then
22384 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22385s/:*\$(srcdir):*/:/
22386s/:*\${srcdir}:*/:/
22387s/:*@srcdir@:*/:/
22388s/^\([^=]*=[ ]*\):*/\1/
22389s/:*$//
22390s/^[^=]*=[ ]*$//
22391}'
22392fi
22393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022394cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022395fi # test -n "$CONFIG_FILES"
22396
Reid Spencera773bd52006-08-04 18:18:08 +000022397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022398for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022399do
22400 case $ac_tag in
22401 :[FHLC]) ac_mode=$ac_tag; continue;;
22402 esac
22403 case $ac_mode$ac_tag in
22404 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022405 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22406echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22407 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022408 :[FH]-) ac_tag=-:-;;
22409 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22410 esac
22411 ac_save_IFS=$IFS
22412 IFS=:
22413 set x $ac_tag
22414 IFS=$ac_save_IFS
22415 shift
22416 ac_file=$1
22417 shift
22418
22419 case $ac_mode in
22420 :L) ac_source=$1;;
22421 :[FH])
22422 ac_file_inputs=
22423 for ac_f
22424 do
22425 case $ac_f in
22426 -) ac_f="$tmp/stdin";;
22427 *) # Look for the file first in the build tree, then in the source tree
22428 # (if the path is not absolute). The absolute path cannot be DOS-style,
22429 # because $ac_f cannot contain `:'.
22430 test -f "$ac_f" ||
22431 case $ac_f in
22432 [\\/$]*) false;;
22433 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22434 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022435 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22436echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22437 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022438 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022439 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022440 done
22441
22442 # Let's still pretend it is `configure' which instantiates (i.e., don't
22443 # use $as_me), people would be surprised to read:
22444 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022445 configure_input="Generated from "`IFS=:
22446 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022447 if test x"$ac_file" != x-; then
22448 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022449 { echo "$as_me:$LINENO: creating $ac_file" >&5
22450echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022451 fi
22452
22453 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022454 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022455 esac
22456 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022457 esac
22458
Reid Spencera773bd52006-08-04 18:18:08 +000022459 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022460$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022461 X"$ac_file" : 'X\(//\)[^/]' \| \
22462 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022463 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022464echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22466 s//\1/
22467 q
22468 }
22469 /^X\(\/\/\)[^/].*/{
22470 s//\1/
22471 q
22472 }
22473 /^X\(\/\/\)$/{
22474 s//\1/
22475 q
22476 }
22477 /^X\(\/\).*/{
22478 s//\1/
22479 q
22480 }
22481 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022482 { as_dir="$ac_dir"
22483 case $as_dir in #(
22484 -*) as_dir=./$as_dir;;
22485 esac
22486 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22487 as_dirs=
22488 while :; do
22489 case $as_dir in #(
22490 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22491 *) as_qdir=$as_dir;;
22492 esac
22493 as_dirs="'$as_qdir' $as_dirs"
22494 as_dir=`$as_dirname -- "$as_dir" ||
22495$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22496 X"$as_dir" : 'X\(//\)[^/]' \| \
22497 X"$as_dir" : 'X\(//\)$' \| \
22498 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22499echo X"$as_dir" |
22500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22501 s//\1/
22502 q
22503 }
22504 /^X\(\/\/\)[^/].*/{
22505 s//\1/
22506 q
22507 }
22508 /^X\(\/\/\)$/{
22509 s//\1/
22510 q
22511 }
22512 /^X\(\/\).*/{
22513 s//\1/
22514 q
22515 }
22516 s/.*/./; q'`
22517 test -d "$as_dir" && break
22518 done
22519 test -z "$as_dirs" || eval "mkdir $as_dirs"
22520 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22521echo "$as_me: error: cannot create directory $as_dir" >&2;}
22522 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022523 ac_builddir=.
22524
Reid Spencera773bd52006-08-04 18:18:08 +000022525case "$ac_dir" in
22526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22527*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022529 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022531 case $ac_top_builddir_sub in
22532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22534 esac ;;
22535esac
22536ac_abs_top_builddir=$ac_pwd
22537ac_abs_builddir=$ac_pwd$ac_dir_suffix
22538# for backward compatibility:
22539ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022540
22541case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022542 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022543 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022544 ac_top_srcdir=$ac_top_builddir_sub
22545 ac_abs_top_srcdir=$ac_pwd ;;
22546 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022547 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022548 ac_top_srcdir=$srcdir
22549 ac_abs_top_srcdir=$srcdir ;;
22550 *) # Relative name.
22551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22552 ac_top_srcdir=$ac_top_build_prefix$srcdir
22553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022554esac
Reid Spencera773bd52006-08-04 18:18:08 +000022555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022556
John Criswell7a73b802003-06-30 21:59:07 +000022557
Reid Spencera773bd52006-08-04 18:18:08 +000022558 case $ac_mode in
22559 :F)
22560 #
22561 # CONFIG_FILE
22562 #
John Criswell7a73b802003-06-30 21:59:07 +000022563
22564 case $INSTALL in
22565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022566 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022567 esac
John Criswell7a73b802003-06-30 21:59:07 +000022568_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022570cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022571# If the template does not know about datarootdir, expand it.
22572# FIXME: This hack should be removed a few years after 2.60.
22573ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022574
22575case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022576 p
22577 q
22578}
22579/@datadir@/p
22580/@docdir@/p
22581/@infodir@/p
22582/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022583/@mandir@/p
22584' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022585*datarootdir*) ac_datarootdir_seen=yes;;
22586*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022587 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22588echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022590cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022591 ac_datarootdir_hack='
22592 s&@datadir@&$datadir&g
22593 s&@docdir@&$docdir&g
22594 s&@infodir@&$infodir&g
22595 s&@localedir@&$localedir&g
22596 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022597 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022598esac
22599_ACEOF
22600
22601# Neutralize VPATH when `$srcdir' = `.'.
22602# Shell code in configure.ac might set extrasub.
22603# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022604cat >>$CONFIG_STATUS <<_ACEOF
22605 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022606$extrasub
22607_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022608cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022609:t
22610/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022611s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022612s&@top_builddir@&$ac_top_builddir_sub&;t t
22613s&@srcdir@&$ac_srcdir&;t t
22614s&@abs_srcdir@&$ac_abs_srcdir&;t t
22615s&@top_srcdir@&$ac_top_srcdir&;t t
22616s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22617s&@builddir@&$ac_builddir&;t t
22618s&@abs_builddir@&$ac_abs_builddir&;t t
22619s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22620s&@INSTALL@&$ac_INSTALL&;t t
22621$ac_datarootdir_hack
Jordan Rose85042e62012-09-26 00:01:00 +000022622" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022623
Reid Spencera773bd52006-08-04 18:18:08 +000022624test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22625 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22626 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022627 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022628which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022629echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022630which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022631
Reid Spencera773bd52006-08-04 18:18:08 +000022632 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022633 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022634 -) cat "$tmp/out"; rm -f "$tmp/out";;
22635 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22636 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022637 ;;
22638 :H)
22639 #
22640 # CONFIG_HEADER
22641 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022642_ACEOF
22643
22644# Transform confdefs.h into a sed script `conftest.defines', that
22645# substitutes the proper values into config.h.in to produce config.h.
22646rm -f conftest.defines conftest.tail
22647# First, append a space to every undef/define line, to ease matching.
22648echo 's/$/ /' >conftest.defines
22649# Then, protect against being on the right side of a sed subst, or in
22650# an unquoted here document, in config.status. If some macros were
22651# called several times there might be several #defines for the same
22652# symbol, which is useless. But do not sort them, since the last
22653# AC_DEFINE must be honored.
22654ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22655# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22656# NAME is the cpp macro being defined, VALUE is the value it is being given.
22657# PARAMS is the parameter list in the macro definition--in most cases, it's
22658# just an empty string.
22659ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22660ac_dB='\\)[ (].*,\\1define\\2'
22661ac_dC=' '
22662ac_dD=' ,'
22663
22664uniq confdefs.h |
22665 sed -n '
22666 t rset
22667 :rset
22668 s/^[ ]*#[ ]*define[ ][ ]*//
22669 t ok
22670 d
22671 :ok
22672 s/[\\&,]/\\&/g
22673 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22674 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22675 ' >>conftest.defines
22676
22677# Remove the space that was appended to ease matching.
22678# Then replace #undef with comments. This is necessary, for
22679# example, in the case of _POSIX_SOURCE, which is predefined and required
22680# on some systems where configure will not decide to define it.
22681# (The regexp can be short, since the line contains either #define or #undef.)
22682echo 's/ $//
22683s,^[ #]*u.*,/* & */,' >>conftest.defines
22684
22685# Break up conftest.defines:
22686ac_max_sed_lines=50
22687
22688# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22689# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22690# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22691# et cetera.
22692ac_in='$ac_file_inputs'
22693ac_out='"$tmp/out1"'
22694ac_nxt='"$tmp/out2"'
22695
22696while :
22697do
22698 # Write a here document:
22699 cat >>$CONFIG_STATUS <<_ACEOF
22700 # First, check the format of the line:
22701 cat >"\$tmp/defines.sed" <<\\CEOF
22702/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22703/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22704b
22705:def
22706_ACEOF
22707 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22708 echo 'CEOF
22709 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22710 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22711 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22712 grep . conftest.tail >/dev/null || break
22713 rm -f conftest.defines
22714 mv conftest.tail conftest.defines
22715done
22716rm -f conftest.defines conftest.tail
22717
22718echo "ac_result=$ac_in" >>$CONFIG_STATUS
22719cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022720 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022721 echo "/* $configure_input */" >"$tmp/config.h"
22722 cat "$ac_result" >>"$tmp/config.h"
22723 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22724 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22725echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022726 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022727 rm -f $ac_file
22728 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022729 fi
22730 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022731 echo "/* $configure_input */"
22732 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022733 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022734 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022735 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022737 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22738echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022739 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022740 esac
John Criswell7a73b802003-06-30 21:59:07 +000022741
Reid Spencera773bd52006-08-04 18:18:08 +000022742
22743 case $ac_file$ac_mode in
22744 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022745 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022746 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022747 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022748 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022749 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022750 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022751 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022752 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022753 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022754 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022755 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022756 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022757 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022758 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022759 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022760 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022761 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022762 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022763 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022764 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022765 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022766 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022767 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022768 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022769 ${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 +000022770
22771 esac
22772done # for ac_tag
22773
John Criswell7a73b802003-06-30 21:59:07 +000022774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022775{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022776_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022777chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022778ac_clean_files=$ac_clean_files_save
22779
22780
22781# configure is writing to config.log, and then calls config.status.
22782# config.status does its own redirection, appending to config.log.
22783# Unfortunately, on DOS this fails, as config.log is still kept open
22784# by configure, so config.status won't be able to write to it; its
22785# output is simply discarded. So we exec the FD to /dev/null,
22786# effectively closing config.log, so it can be properly (re)opened and
22787# appended to by config.status. When coming back to configure, we
22788# need to make the FD available again.
22789if test "$no_create" != yes; then
22790 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022791 ac_config_status_args=
22792 test "$silent" = yes &&
22793 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022794 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022796 exec 5>>config.log
22797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22798 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022799 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022800fi
22801
John Criswell12399a12003-09-30 15:55:44 +000022802#
22803# CONFIG_SUBDIRS section.
22804#
22805if test "$no_recursion" != yes; then
22806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022807 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022808 ac_sub_configure_args=
22809 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022810 eval "set x $ac_configure_args"
22811 shift
22812 for ac_arg
22813 do
John Criswell12399a12003-09-30 15:55:44 +000022814 if test -n "$ac_prev"; then
22815 ac_prev=
22816 continue
22817 fi
22818 case $ac_arg in
22819 -cache-file | --cache-file | --cache-fil | --cache-fi \
22820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22821 ac_prev=cache_file ;;
22822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22824 | --c=*)
22825 ;;
22826 --config-cache | -C)
22827 ;;
22828 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22829 ac_prev=srcdir ;;
22830 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22831 ;;
22832 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22833 ac_prev=prefix ;;
22834 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022836 *)
22837 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022838 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022839 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022840 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022841 esac
22842 done
22843
22844 # Always prepend --prefix to ensure using the same prefix
22845 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022846 ac_arg="--prefix=$prefix"
22847 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022848 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022849 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022850 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022851
22852 ac_popdir=`pwd`
22853 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22854
22855 # Do not complain, so a configure script can configure whichever
22856 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022857 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022858
Reid Spencera773bd52006-08-04 18:18:08 +000022859 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022860 echo "$as_me:$LINENO: $ac_msg" >&5
22861 echo "$ac_msg" >&6
22862 { as_dir="$ac_dir"
22863 case $as_dir in #(
22864 -*) as_dir=./$as_dir;;
22865 esac
22866 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22867 as_dirs=
22868 while :; do
22869 case $as_dir in #(
22870 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22871 *) as_qdir=$as_dir;;
22872 esac
22873 as_dirs="'$as_qdir' $as_dirs"
22874 as_dir=`$as_dirname -- "$as_dir" ||
22875$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22876 X"$as_dir" : 'X\(//\)[^/]' \| \
22877 X"$as_dir" : 'X\(//\)$' \| \
22878 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22879echo X"$as_dir" |
22880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22881 s//\1/
22882 q
22883 }
22884 /^X\(\/\/\)[^/].*/{
22885 s//\1/
22886 q
22887 }
22888 /^X\(\/\/\)$/{
22889 s//\1/
22890 q
22891 }
22892 /^X\(\/\).*/{
22893 s//\1/
22894 q
22895 }
22896 s/.*/./; q'`
22897 test -d "$as_dir" && break
22898 done
22899 test -z "$as_dirs" || eval "mkdir $as_dirs"
22900 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22901echo "$as_me: error: cannot create directory $as_dir" >&2;}
22902 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022903 ac_builddir=.
22904
Reid Spencera773bd52006-08-04 18:18:08 +000022905case "$ac_dir" in
22906.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22907*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022909 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022910 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022911 case $ac_top_builddir_sub in
22912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22914 esac ;;
22915esac
22916ac_abs_top_builddir=$ac_pwd
22917ac_abs_builddir=$ac_pwd$ac_dir_suffix
22918# for backward compatibility:
22919ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022920
22921case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022922 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022923 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022924 ac_top_srcdir=$ac_top_builddir_sub
22925 ac_abs_top_srcdir=$ac_pwd ;;
22926 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022927 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022928 ac_top_srcdir=$srcdir
22929 ac_abs_top_srcdir=$srcdir ;;
22930 *) # Relative name.
22931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22932 ac_top_srcdir=$ac_top_build_prefix$srcdir
22933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022934esac
Reid Spencera773bd52006-08-04 18:18:08 +000022935ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022936
22937
Reid Spencera773bd52006-08-04 18:18:08 +000022938 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022939
22940 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022941 if test -f "$ac_srcdir/configure.gnu"; then
22942 ac_sub_configure=$ac_srcdir/configure.gnu
22943 elif test -f "$ac_srcdir/configure"; then
22944 ac_sub_configure=$ac_srcdir/configure
22945 elif test -f "$ac_srcdir/configure.in"; then
22946 # This should be Cygnus configure.
22947 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022948 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022949 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22950echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022951 ac_sub_configure=
22952 fi
22953
22954 # The recursion is here.
22955 if test -n "$ac_sub_configure"; then
22956 # Make the cache file name correct relative to the subdirectory.
22957 case $cache_file in
22958 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022959 *) # Relative name.
22960 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022961 esac
22962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022963 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22964echo "$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 +000022965 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022966 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22967 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022968 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22969echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22970 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022971 fi
22972
Reid Spencera773bd52006-08-04 18:18:08 +000022973 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022974 done
22975fi
22976