blob: 8f70ccd606d807463ccaa8b32bf7e78a06bf84e7 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 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#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # 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
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# 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
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 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
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
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.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) 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=.
78 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
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# 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
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for 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
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if 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
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 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
150# CDPATH.
151$as_unset CDPATH
152
153
154if 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=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 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
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if 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
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if 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
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
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(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 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" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
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
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # 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.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 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" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
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
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -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
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 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'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
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
513 as_mkdir_p=:
514else
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
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000836DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000841ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000842TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000843ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000844EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000845BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000846CXX
847CXXFLAGS
848ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000849NM
850ifGNUmake
851LN_S
852CMP
853CP
854DATE
855FIND
856MKDIR
857MV
858RANLIB
859RM
860SED
861TAR
862BINPWD
863GRAPHVIZ
864DOT
865GV
866DOTTY
867PERL
868HAVE_PERL
869INSTALL_PROGRAM
870INSTALL_SCRIPT
871INSTALL_DATA
872BZIP2
873DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000874GROFF
875GZIP
876POD2HTML
877POD2MAN
878RUNTEST
879TCLSH
880ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000881OCAMLC
882OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000883OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000884OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000885GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000886INSTALL_LTDL_TRUE
887INSTALL_LTDL_FALSE
888CONVENIENCE_LTDL_TRUE
889CONVENIENCE_LTDL_FALSE
890LIBADD_DL
891ECHO
892AR
893STRIP
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000899LLVMGCC
900LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000901USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000902HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000903HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000904ALLOCA
905MMAP_FILE
906LLVMCC1
907LLVMCC1PLUS
908LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000909LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000910LLVMGCC_VERSION
911LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000912LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000913SHLIBEXT
914LLVM_PREFIX
915LLVM_BINDIR
916LLVM_LIBDIR
917LLVM_DATADIR
918LLVM_DOCSDIR
919LLVM_ETCDIR
920LLVM_INCLUDEDIR
921LLVM_INFODIR
922LLVM_MANDIR
923LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000924BINDINGS_TO_BUILD
925ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000926OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000927ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000928RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000929RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000930LIBOBJS
931LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000932ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CC
937CFLAGS
938LDFLAGS
939CPPFLAGS
940CPP
941CXX
942CXXFLAGS
943CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000944CXXCPP
945F77
946FFLAGS'
947ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000948projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000949projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000950projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000951projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000952projects/llvm-reopt
953projects/llvm-gcc
954projects/llvm-java
955projects/llvm-tv
956projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000957projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000958projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000959
960# Initialize some variables set by options.
961ac_init_help=
962ac_init_version=false
963# The variables have the same names as the options, with
964# dashes changed to underlines.
965cache_file=/dev/null
966exec_prefix=NONE
967no_create=
968no_recursion=
969prefix=NONE
970program_prefix=NONE
971program_suffix=NONE
972program_transform_name=s,x,x,
973silent=
974site=
975srcdir=
976verbose=
977x_includes=NONE
978x_libraries=NONE
979
980# Installation directory options.
981# These are left unexpanded so users can "make install exec_prefix=/foo"
982# and all the variables that are supposed to be based on exec_prefix
983# by default will actually change.
984# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000985# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000986bindir='${exec_prefix}/bin'
987sbindir='${exec_prefix}/sbin'
988libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000989datarootdir='${prefix}/share'
990datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000991sysconfdir='${prefix}/etc'
992sharedstatedir='${prefix}/com'
993localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000994includedir='${prefix}/include'
995oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000996docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997infodir='${datarootdir}/info'
998htmldir='${docdir}'
999dvidir='${docdir}'
1000pdfdir='${docdir}'
1001psdir='${docdir}'
1002libdir='${exec_prefix}/lib'
1003localedir='${datarootdir}/locale'
1004mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001005
1006ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001007ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001008for ac_option
1009do
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001012 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001013 ac_prev=
1014 continue
1015 fi
1016
Reid Spencera773bd52006-08-04 18:18:08 +00001017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
John Criswell7a73b802003-06-30 21:59:07 +00001021
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1023
Reid Spencera773bd52006-08-04 18:18:08 +00001024 case $ac_dashdash$ac_option in
1025 --)
1026 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001027
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1032
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1037
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1044
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1047
Reid Spencera773bd52006-08-04 18:18:08 +00001048 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001049 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001051 datadir=$ac_optarg ;;
1052
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1059
John Criswell7a73b802003-06-30 21:59:07 +00001060 -disable-* | --disable-*)
1061 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001063 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001064 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001066 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001067 eval enable_$ac_feature=no ;;
1068
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1073
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001078
1079 -enable-* | --enable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001086 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001087
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1096
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1100
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1107
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1112
Reid Spencera773bd52006-08-04 18:18:08 +00001113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1118
John Criswell7a73b802003-06-30 21:59:07 +00001119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1125
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1130
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1135
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1142
Reid Spencera773bd52006-08-04 18:18:08 +00001143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1147
John Criswell7a73b802003-06-30 21:59:07 +00001148 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001149 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001153 localstatedir=$ac_optarg ;;
1154
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1159
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1163
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1167
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1171
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1180
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1185
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1192
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1199
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1216
Reid Spencera773bd52006-08-04 18:18:08 +00001217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1221
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1226
John Criswell7a73b802003-06-30 21:59:07 +00001227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001279 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001282 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001283 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001284
1285 -without-* | --without-*)
1286 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001288 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001289 { echo "$as_me: error: invalid package name: $ac_package" >&2
1290 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001291 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001292 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001293
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1297
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1304
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1311
1312 -*) { echo "$as_me: error: unrecognized option: $ac_option
1313Try \`$0 --help' for more information." >&2
1314 { (exit 1); exit 1; }; }
1315 ;;
1316
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001323 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001324 export $ac_envvar ;;
1325
1326 *)
1327 # FIXME: should be removed in autoconf 3.0.
1328 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332 ;;
1333
1334 esac
1335done
1336
1337if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 { echo "$as_me: error: missing argument to $ac_option" >&2
1340 { (exit 1); exit 1; }; }
1341fi
1342
Reid Spencera773bd52006-08-04 18:18:08 +00001343# Be sure to have absolute directory names.
1344for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001348do
Reid Spencera773bd52006-08-04 18:18:08 +00001349 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001350 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001353 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001354 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001356done
1357
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used." >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1373 fi
1374fi
1375
1376ac_tool_prefix=
1377test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379test "$silent" = yes && exec 6>/dev/null
1380
1381
Reid Spencera773bd52006-08-04 18:18:08 +00001382ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383ac_ls_di=`ls -di .` &&
1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 { echo "$as_me: error: Working directory cannot be determined" >&2
1386 { (exit 1); exit 1; }; }
1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 { echo "$as_me: error: pwd does not report name of working directory" >&2
1389 { (exit 1); exit 1; }; }
1390
1391
John Criswell7a73b802003-06-30 21:59:07 +00001392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001397$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001398 X"$0" : 'X\(//\)[^/]' \| \
1399 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001401echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\).*/{
1415 s//\1/
1416 q
1417 }
1418 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001419 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001420 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001421 srcdir=..
1422 fi
1423else
1424 ac_srcdir_defaulted=no
1425fi
Reid Spencera773bd52006-08-04 18:18:08 +00001426if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001429 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001430fi
Reid Spencera773bd52006-08-04 18:18:08 +00001431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
1433 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001434 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001435 pwd)`
1436# When building in place, set srcdir=.
1437if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 srcdir=.
1439fi
1440# Remove unnecessary trailing slashes from srcdir.
1441# Double slashes in file names in object file debugging info
1442# mess up M-x gdb in Emacs.
1443case $srcdir in
1444*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445esac
1446for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451done
John Criswell7a73b802003-06-30 21:59:07 +00001452
1453#
1454# Report the --help message.
1455#
1456if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1459 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001460\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001461
1462Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465VAR=VALUE. See below for descriptions of some of the useful variables.
1466
1467Defaults for the options are specified in brackets.
1468
1469Configuration:
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479
John Criswell7a73b802003-06-30 21:59:07 +00001480Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001482 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001484 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001485
1486By default, \`make install' will install all the files in
1487\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489for instance \`--prefix=\$HOME'.
1490
1491For better control, use the options below.
1492
1493Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001513_ACEOF
1514
1515 cat <<\_ACEOF
1516
1517System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 --target=TARGET configure for building compilers for TARGET [HOST]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001526 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001527 esac
1528 cat <<\_ACEOF
1529
1530Optional Features:
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001533 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001534 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001535 --enable-expensive-checks
1536
Reid Spencer8b2e1412006-11-17 03:32:33 +00001537 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001538 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001539 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001540 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001541 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001542 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001543 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001544 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001545 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1546 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001547 --enable-bindings Build specific language bindings:
1548 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001549 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001550 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001551 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001552 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001553 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001554 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001555 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001556 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001557 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001558
1559Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001562 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1563 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001564 --with-llvmgcc Specify location of llvm-gcc driver (default
1565 searches PATH)
1566 --with-llvmgxx Specify location of llvm-g++ driver (default
1567 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001568 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001569 --with-ocaml-libdir Specify install location for ocaml bindings (default
1570 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001571 --with-binutils-include Specify path to binutils/include/ containing
1572 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001573 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001577 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001578 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001579
1580Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001581 CC C compiler command
1582 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001587 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001590 CXXCPP C++ preprocessor
1591 F77 Fortran 77 compiler command
1592 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001593
1594Use these variables to override the choices made by `configure' or to help
1595it to find libraries and programs with nonstandard names/locations.
1596
1597Report bugs to <llvmbugs@cs.uiuc.edu>.
1598_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001599ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001600fi
1601
1602if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001605 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001606 ac_builddir=.
1607
Reid Spencera773bd52006-08-04 18:18:08 +00001608case "$ac_dir" in
1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610*)
John Criswell7a73b802003-06-30 21:59:07 +00001611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618esac
1619ac_abs_top_builddir=$ac_pwd
1620ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621# for backward compatibility:
1622ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001623
1624case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001625 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001626 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001630 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001637esac
Reid Spencera773bd52006-08-04 18:18:08 +00001638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001639
Reid Spencera773bd52006-08-04 18:18:08 +00001640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001648 else
1649 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001652 done
1653fi
1654
Reid Spencera773bd52006-08-04 18:18:08 +00001655test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001656if $ac_init_version; then
1657 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001658llvm configure 2.6svn
1659generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001660
Reid Spencera773bd52006-08-04 18:18:08 +00001661Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001665
Tanya Lattnercf067672008-01-17 05:57:22 +00001666Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001667_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001668 exit
John Criswell7a73b802003-06-30 21:59:07 +00001669fi
Reid Spencera773bd52006-08-04 18:18:08 +00001670cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001671This file contains any messages produced by compilers while
1672running configure, to aid debugging if configure makes a mistake.
1673
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001674It was created by llvm $as_me 2.6svn, which was
1675generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001676
1677 $ $0 $@
1678
1679_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001680exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001681{
1682cat <<_ASUNAME
1683## --------- ##
1684## Platform. ##
1685## --------- ##
1686
1687hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692
1693/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1695
1696/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1697/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1698/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001699/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001700/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1701/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1702/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1703
1704_ASUNAME
1705
1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 echo "PATH: $as_dir"
1712done
Reid Spencera773bd52006-08-04 18:18:08 +00001713IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001714
1715} >&5
1716
1717cat >&5 <<_ACEOF
1718
1719
1720## ----------- ##
1721## Core tests. ##
1722## ----------- ##
1723
1724_ACEOF
1725
1726
1727# Keep a trace of the command line.
1728# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001729# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001730# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001731# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001732ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001733ac_configure_args0=
1734ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001735ac_must_keep_next=false
1736for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001737do
John Criswell0c38eaf2003-09-10 15:17:25 +00001738 for ac_arg
1739 do
1740 case $ac_arg in
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1744 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001745 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 esac
1748 case $ac_pass in
1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1750 2)
1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001753 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001755 case $ac_arg in
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762 esac
1763 ;;
1764 -* ) ac_must_keep_next=true ;;
1765 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001767 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001768 ;;
1769 esac
1770 done
John Criswell7a73b802003-06-30 21:59:07 +00001771done
John Criswell0c38eaf2003-09-10 15:17:25 +00001772$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773$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 +00001774
1775# When interrupted or exit'd, cleanup temporary files, and complete
1776# config.log. We remove comments because anyway the quotes in there
1777# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001778# WARNING: Use '\'' to represent an apostrophe within the trap.
1779# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001780trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1782 {
1783 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001784
John Criswell7a73b802003-06-30 21:59:07 +00001785 cat <<\_ASBOX
1786## ---------------- ##
1787## Cache variables. ##
1788## ---------------- ##
1789_ASBOX
1790 echo
1791 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001792(
1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794 eval ac_val=\$$ac_var
1795 case $ac_val in #(
1796 *${as_nl}*)
1797 case $ac_var in #(
1798 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1799echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1800 esac
1801 case $ac_var in #(
1802 _ | IFS | as_nl) ;; #(
1803 *) $as_unset $ac_var ;;
1804 esac ;;
1805 esac
1806 done
John Criswell7a73b802003-06-30 21:59:07 +00001807 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001810 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001814 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001816 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001817 esac |
1818 sort
1819)
John Criswell7a73b802003-06-30 21:59:07 +00001820 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001821
1822 cat <<\_ASBOX
1823## ----------------- ##
1824## Output variables. ##
1825## ----------------- ##
1826_ASBOX
1827 echo
1828 for ac_var in $ac_subst_vars
1829 do
Reid Spencera773bd52006-08-04 18:18:08 +00001830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001835 done | sort
1836 echo
1837
1838 if test -n "$ac_subst_files"; then
1839 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001840## ------------------- ##
1841## File substitutions. ##
1842## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001843_ASBOX
1844 echo
1845 for ac_var in $ac_subst_files
1846 do
Reid Spencera773bd52006-08-04 18:18:08 +00001847 eval ac_val=\$$ac_var
1848 case $ac_val in
1849 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 esac
1851 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001852 done | sort
1853 echo
1854 fi
1855
John Criswell7a73b802003-06-30 21:59:07 +00001856 if test -s confdefs.h; then
1857 cat <<\_ASBOX
1858## ----------- ##
1859## confdefs.h. ##
1860## ----------- ##
1861_ASBOX
1862 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001863 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001864 echo
1865 fi
1866 test "$ac_signal" != 0 &&
1867 echo "$as_me: caught signal $ac_signal"
1868 echo "$as_me: exit $exit_status"
1869 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001872 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001873' 0
John Criswell7a73b802003-06-30 21:59:07 +00001874for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876done
1877ac_signal=0
1878
1879# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001880rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001881
1882# Predefined preprocessor variables.
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_NAME "$PACKAGE_NAME"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_VERSION "$PACKAGE_VERSION"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_STRING "$PACKAGE_STRING"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906_ACEOF
1907
1908
1909# Let the site file select an alternate cache file if it wants to.
1910# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001911if test -n "$CONFIG_SITE"; then
1912 set x "$CONFIG_SITE"
1913elif test "x$prefix" != xNONE; then
1914 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1915else
1916 set x "$ac_default_prefix/share/config.site" \
1917 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001918fi
Reid Spencera773bd52006-08-04 18:18:08 +00001919shift
1920for ac_site_file
1921do
John Criswell7a73b802003-06-30 21:59:07 +00001922 if test -r "$ac_site_file"; then
1923 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924echo "$as_me: loading site script $ac_site_file" >&6;}
1925 sed 's/^/| /' "$ac_site_file" >&5
1926 . "$ac_site_file"
1927 fi
1928done
1929
1930if test -r "$cache_file"; then
1931 # Some versions of bash will fail to source /dev/null (special
1932 # files actually), so we avoid doing that.
1933 if test -f "$cache_file"; then
1934 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935echo "$as_me: loading cache $cache_file" >&6;}
1936 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001939 esac
1940 fi
1941else
1942 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943echo "$as_me: creating cache $cache_file" >&6;}
1944 >$cache_file
1945fi
1946
1947# Check that the precious variables saved in the cache have kept the same
1948# value.
1949ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001950for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001955 case $ac_old_set,$ac_new_set in
1956 set,)
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1960 ,set)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,);;
1965 *)
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001967 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001968echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001969 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001970echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001972echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001974 fi;;
1975 esac
1976 # Pass precious variables to config.status.
1977 if test "$ac_new_set" = set; then
1978 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001979 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001980 *) ac_arg=$ac_var=$ac_new_val ;;
1981 esac
1982 case " $ac_configure_args " in
1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1984 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985 esac
1986 fi
1987done
1988if $ac_cache_corrupted; then
1989 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993 { (exit 1); exit 1; }; }
1994fi
1995
Reid Spencera773bd52006-08-04 18:18:08 +00001996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
John Criswell7a73b802003-06-30 21:59:07 +00002020ac_ext=c
2021ac_cpp='$CPP $CPPFLAGS'
2022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025
2026
2027
Tanya Lattnercf067672008-01-17 05:57:22 +00002028LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002029
2030
2031
2032
2033
2034
2035
John Criswell7a73b802003-06-30 21:59:07 +00002036ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002037for ac_dir in autoconf "$srcdir"/autoconf; do
2038 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install-sh -c"
2041 break
Reid Spencera773bd52006-08-04 18:18:08 +00002042 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install.sh -c"
2045 break
Reid Spencera773bd52006-08-04 18:18:08 +00002046 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/shtool install -c"
2049 break
2050 fi
2051done
2052if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002053 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2054echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002055 { (exit 1); exit 1; }; }
2056fi
Reid Spencera773bd52006-08-04 18:18:08 +00002057
2058# These three variables are undocumented and unsupported,
2059# and are intended to be withdrawn in a future Autoconf release.
2060# They can cause serious problems if a builder's source tree is in a directory
2061# whose full name contains unusual characters.
2062ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2063ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2064ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2065
John Criswell7a73b802003-06-30 21:59:07 +00002066
John Criswell392aaa32003-07-22 19:18:09 +00002067
Reid Spencer2706f8c2004-09-19 23:53:36 +00002068if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2070 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002071echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2072 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002073 fi
John Criswell93e1c722003-09-15 17:04:06 +00002074fi
2075
John Criswell33a911a2003-11-25 20:36:46 +00002076for i in `ls ${srcdir}/projects`
2077do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002078 if test -d ${srcdir}/projects/${i} ; then
2079 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002080 CVS) ;;
2081 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002083 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002084 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002087 # llvm-test is the old name of the test-suite, kept here for backwards
2088 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002089 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002090 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002091 test-suite) subdirs="$subdirs projects/test-suite"
2092 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002096 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002098 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002102 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002103 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002106 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002108 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002110 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111 esac
John Criswell33a911a2003-11-25 20:36:46 +00002112 fi
2113done
John Criswell559a6c12003-09-30 16:31:48 +00002114
John Criswell7a73b802003-06-30 21:59:07 +00002115
2116# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002117$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002120 { (exit 1); exit 1; }; }
2121
Reid Spencera773bd52006-08-04 18:18:08 +00002122{ echo "$as_me:$LINENO: checking build system type" >&5
2123echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002124if test "${ac_cv_build+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
Reid Spencera773bd52006-08-04 18:18:08 +00002127 ac_build_alias=$build_alias
2128test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002134ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002137 { (exit 1); exit 1; }; }
2138
2139fi
Reid Spencera773bd52006-08-04 18:18:08 +00002140{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141echo "${ECHO_T}$ac_cv_build" >&6; }
2142case $ac_cv_build in
2143*-*-*) ;;
2144*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
2147esac
John Criswell7a73b802003-06-30 21:59:07 +00002148build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002149ac_save_IFS=$IFS; IFS='-'
2150set x $ac_cv_build
2151shift
2152build_cpu=$1
2153build_vendor=$2
2154shift; shift
2155# Remember, the first character of IFS is used to create $*,
2156# except with old shells:
2157build_os=$*
2158IFS=$ac_save_IFS
2159case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002160
2161
Reid Spencera773bd52006-08-04 18:18:08 +00002162{ echo "$as_me:$LINENO: checking host system type" >&5
2163echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002164if test "${ac_cv_host+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
Reid Spencera773bd52006-08-04 18:18:08 +00002167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2169else
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002173 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002174fi
John Criswell7a73b802003-06-30 21:59:07 +00002175
2176fi
Reid Spencera773bd52006-08-04 18:18:08 +00002177{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178echo "${ECHO_T}$ac_cv_host" >&6; }
2179case $ac_cv_host in
2180*-*-*) ;;
2181*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2184esac
John Criswell7a73b802003-06-30 21:59:07 +00002185host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002186ac_save_IFS=$IFS; IFS='-'
2187set x $ac_cv_host
2188shift
2189host_cpu=$1
2190host_vendor=$2
2191shift; shift
2192# Remember, the first character of IFS is used to create $*,
2193# except with old shells:
2194host_os=$*
2195IFS=$ac_save_IFS
2196case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002197
2198
Reid Spencera773bd52006-08-04 18:18:08 +00002199{ echo "$as_me:$LINENO: checking target system type" >&5
2200echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002201if test "${ac_cv_target+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
Reid Spencera773bd52006-08-04 18:18:08 +00002204 if test "x$target_alias" = x; then
2205 ac_cv_target=$ac_cv_host
2206else
2207 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002210 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002211fi
John Criswell7a73b802003-06-30 21:59:07 +00002212
2213fi
Reid Spencera773bd52006-08-04 18:18:08 +00002214{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215echo "${ECHO_T}$ac_cv_target" >&6; }
2216case $ac_cv_target in
2217*-*-*) ;;
2218*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219echo "$as_me: error: invalid value of canonical target" >&2;}
2220 { (exit 1); exit 1; }; };;
2221esac
John Criswell7a73b802003-06-30 21:59:07 +00002222target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002223ac_save_IFS=$IFS; IFS='-'
2224set x $ac_cv_target
2225shift
2226target_cpu=$1
2227target_vendor=$2
2228shift; shift
2229# Remember, the first character of IFS is used to create $*,
2230# except with old shells:
2231target_os=$*
2232IFS=$ac_save_IFS
2233case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002234
2235
2236# The aliases save the names the user supplied, while $host etc.
2237# will get canonicalized.
2238test -n "$target_alias" &&
2239 test "$program_prefix$program_suffix$program_transform_name" = \
2240 NONENONEs,x,x, &&
2241 program_prefix=${target_alias}-
2242
Reid Spencera773bd52006-08-04 18:18:08 +00002243{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002248 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252 llvm_cv_os_type="AIX"
2253 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002254 *-*-irix*)
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="IRIX"
2258 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262 llvm_cv_os_type="Cygwin"
2263 llvm_cv_platform_type="Unix" ;;
2264 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002265 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002266 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 llvm_cv_os_type="Darwin"
2268 llvm_cv_platform_type="Unix" ;;
2269 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 llvm_cv_os_type="FreeBSD"
2273 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002274 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002277 llvm_cv_os_type="OpenBSD"
2278 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002279 *-*-netbsd*)
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="NetBSD"
2283 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002284 *-*-dragonfly*)
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="DragonFly"
2288 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002289 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002292 llvm_cv_os_type="HP-UX"
2293 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297 llvm_cv_os_type="Interix"
2298 llvm_cv_platform_type="Unix" ;;
2299 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 llvm_cv_os_type="Linux"
2303 llvm_cv_platform_type="Unix" ;;
2304 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002305 llvm_cv_link_all_option="-Wl,-z,allextract"
2306 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 llvm_cv_os_type="SunOS"
2308 llvm_cv_platform_type="Unix" ;;
2309 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312 llvm_cv_os_type="Win32"
2313 llvm_cv_platform_type="Win32" ;;
2314 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option="-Wl,--whole-archive"
2316 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 llvm_cv_os_type="MingW"
2318 llvm_cv_platform_type="Win32" ;;
2319 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002320 llvm_cv_link_all_option=""
2321 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002322 llvm_cv_os_type="Unknown"
2323 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002324esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002325fi
Reid Spencera773bd52006-08-04 18:18:08 +00002326{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2327echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002328
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329if test "$llvm_cv_os_type" = "Unknown" ; then
2330 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2331echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002332 { (exit 1); exit 1; }; }
2333fi
2334
Reid Spencer7b3e8512004-12-24 06:29:05 +00002335OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002336
2337
Reid Spencera773bd52006-08-04 18:18:08 +00002338LINKALL=$llvm_cv_link_all_option
2339
2340NOLINKALL=$llvm_cv_no_link_all_option
2341
2342
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343case $llvm_cv_platform_type in
2344 Unix)
2345
2346cat >>confdefs.h <<\_ACEOF
2347#define LLVM_ON_UNIX 1
2348_ACEOF
2349
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002350 LLVM_ON_UNIX=1
2351
2352 LLVM_ON_WIN32=0
2353
Reid Spencer7b3e8512004-12-24 06:29:05 +00002354 ;;
2355 Win32)
2356
2357cat >>confdefs.h <<\_ACEOF
2358#define LLVM_ON_WIN32 1
2359_ACEOF
2360
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002361 LLVM_ON_UNIX=0
2362
2363 LLVM_ON_WIN32=1
2364
Reid Spencer7b3e8512004-12-24 06:29:05 +00002365 ;;
2366esac
2367
Reid Spencera773bd52006-08-04 18:18:08 +00002368{ echo "$as_me:$LINENO: checking target architecture" >&5
2369echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370if test "${llvm_cv_target_arch+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002374 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002375 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002376 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2377 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002378 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002379 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002380 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002381 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002382 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002383 xcore-*) llvm_cv_target_arch="XCore" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002384 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002385esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002386fi
Reid Spencera773bd52006-08-04 18:18:08 +00002387{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2388echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002389
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390if test "$llvm_cv_target_arch" = "Unknown" ; then
2391 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2392echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2393fi
John Criswell76595452003-07-01 22:07:39 +00002394
Bill Wendlinga0833352009-03-12 04:10:09 +00002395ARCH=$llvm_cv_target_arch
2396
2397
2398ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399ac_cpp='$CPP $CPPFLAGS'
2400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002403if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002420 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 +00002421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425done
2426done
Reid Spencera773bd52006-08-04 18:18:08 +00002427IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428
2429fi
2430fi
2431CC=$ac_cv_prog_CC
2432if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002433 { echo "$as_me:$LINENO: result: $CC" >&5
2434echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435else
Reid Spencera773bd52006-08-04 18:18:08 +00002436 { echo "$as_me:$LINENO: result: no" >&5
2437echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438fi
2439
Reid Spencera773bd52006-08-04 18:18:08 +00002440
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441fi
2442if test -z "$ac_cv_prog_CC"; then
2443 ac_ct_CC=$CC
2444 # Extract the first word of "gcc", so it can be a program name with args.
2445set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451 if test -n "$ac_ct_CC"; then
2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002460 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 +00002461 ac_cv_prog_ac_ct_CC="gcc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 break 2
2464 fi
2465done
2466done
Reid Spencera773bd52006-08-04 18:18:08 +00002467IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468
2469fi
2470fi
2471ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002473 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475else
Reid Spencera773bd52006-08-04 18:18:08 +00002476 { echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478fi
2479
Reid Spencera773bd52006-08-04 18:18:08 +00002480 if test "x$ac_ct_CC" = x; then
2481 CC=""
2482 else
2483 case $cross_compiling:$ac_tool_warned in
2484yes:)
2485{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2486whose name does not start with the host triplet. If you think this
2487configuration is useful to you, please write to autoconf@gnu.org." >&5
2488echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2489whose name does not start with the host triplet. If you think this
2490configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2491ac_tool_warned=yes ;;
2492esac
2493 CC=$ac_ct_CC
2494 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495else
2496 CC="$ac_cv_prog_CC"
2497fi
2498
2499if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002500 if test -n "$ac_tool_prefix"; then
2501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505if test "${ac_cv_prog_CC+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002517 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 +00002518 ac_cv_prog_CC="${ac_tool_prefix}cc"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522done
2523done
Reid Spencera773bd52006-08-04 18:18:08 +00002524IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002530 { echo "$as_me:$LINENO: result: $CC" >&5
2531echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532else
Reid Spencera773bd52006-08-04 18:18:08 +00002533 { echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535fi
2536
Reid Spencera773bd52006-08-04 18:18:08 +00002537
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539fi
2540if test -z "$CC"; then
2541 # Extract the first word of "cc", so it can be a program name with args.
2542set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550else
2551 ac_prog_rejected=no
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002558 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 +00002559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2560 ac_prog_rejected=yes
2561 continue
2562 fi
2563 ac_cv_prog_CC="cc"
2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567done
2568done
Reid Spencera773bd52006-08-04 18:18:08 +00002569IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570
2571if test $ac_prog_rejected = yes; then
2572 # We found a bogon in the path, so make sure we never use it.
2573 set dummy $ac_cv_prog_CC
2574 shift
2575 if test $# != 0; then
2576 # We chose a different compiler from the bogus one.
2577 # However, it has the same basename, so the bogon will be chosen
2578 # first if we set CC to just the basename; use the full file name.
2579 shift
2580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2581 fi
2582fi
2583fi
2584fi
2585CC=$ac_cv_prog_CC
2586if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002587 { echo "$as_me:$LINENO: result: $CC" >&5
2588echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002589else
Reid Spencera773bd52006-08-04 18:18:08 +00002590 { echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002592fi
2593
Reid Spencera773bd52006-08-04 18:18:08 +00002594
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595fi
2596if test -z "$CC"; then
2597 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002598 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002599 do
2600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002616 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 +00002617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621done
2622done
Reid Spencera773bd52006-08-04 18:18:08 +00002623IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002624
2625fi
2626fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627CC=$ac_cv_prog_CC
2628if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002629 { echo "$as_me:$LINENO: result: $CC" >&5
2630echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002631else
Reid Spencera773bd52006-08-04 18:18:08 +00002632 { echo "$as_me:$LINENO: result: no" >&5
2633echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002634fi
2635
Reid Spencera773bd52006-08-04 18:18:08 +00002636
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002638 done
2639fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640if test -z "$CC"; then
2641 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002642 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002643do
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651 if test -n "$ac_ct_CC"; then
2652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002660 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 +00002661 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665done
2666done
Reid Spencera773bd52006-08-04 18:18:08 +00002667IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002668
2669fi
2670fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002673 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2674echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002675else
Reid Spencera773bd52006-08-04 18:18:08 +00002676 { echo "$as_me:$LINENO: result: no" >&5
2677echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002678fi
2679
Reid Spencera773bd52006-08-04 18:18:08 +00002680
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002682done
John Criswell7a73b802003-06-30 21:59:07 +00002683
Reid Spencera773bd52006-08-04 18:18:08 +00002684 if test "x$ac_ct_CC" = x; then
2685 CC=""
2686 else
2687 case $cross_compiling:$ac_tool_warned in
2688yes:)
2689{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690whose name does not start with the host triplet. If you think this
2691configuration is useful to you, please write to autoconf@gnu.org." >&5
2692echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693whose name does not start with the host triplet. If you think this
2694configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695ac_tool_warned=yes ;;
2696esac
2697 CC=$ac_ct_CC
2698 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699fi
2700
John Criswell7a73b802003-06-30 21:59:07 +00002701fi
2702
2703
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002704test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2705See \`config.log' for more details." >&5
2706echo "$as_me: error: no acceptable C compiler found in \$PATH
2707See \`config.log' for more details." >&2;}
2708 { (exit 1); exit 1; }; }
2709
John Criswell7a73b802003-06-30 21:59:07 +00002710# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002711echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002712ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002713{ (ac_try="$ac_compiler --version >&5"
2714case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717esac
2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002723{ (ac_try="$ac_compiler -v >&5"
2724case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002733{ (ac_try="$ac_compiler -V >&5"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
2743
2744cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002745/* confdefs.h. */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002750
John Criswell7a73b802003-06-30 21:59:07 +00002751int
2752main ()
2753{
2754
2755 ;
2756 return 0;
2757}
2758_ACEOF
2759ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002760ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002761# Try to create an executable without -o first, disregard a.out.
2762# It will help us diagnose broken compilers, and finding out an intuition
2763# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002764{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2765echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002766ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002767#
2768# List of possible output files, starting from the most likely.
2769# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2770# only as a last resort. b.out is created by i960 compilers.
2771ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2772#
2773# The IRIX 6 linker writes into existing files which may not be
2774# executable, retaining their permissions. Remove them first so a
2775# subsequent execution test works.
2776ac_rmfiles=
2777for ac_file in $ac_files
2778do
2779 case $ac_file in
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2781 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2782 esac
2783done
2784rm -f $ac_rmfiles
2785
2786if { (ac_try="$ac_link_default"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002796 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2797# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2798# in a Makefile. We should not override ac_cv_exeext if it was cached,
2799# so that the user can short-circuit this test for compilers unknown to
2800# Autoconf.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002801for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002802do
2803 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002804 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002806 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002807 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002808 # We found the default executable, but exeext='' is most
2809 # certainly right.
2810 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002811 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002812 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2813 then :; else
2814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815 fi
2816 # We set ac_cv_exeext here because the later test for it is not
2817 # safe: cross compilers may not add the suffix if given an `-o'
2818 # argument, so we may need to know it at that point already.
2819 # Even if this section looks crufty: it has the advantage of
2820 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002821 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002822 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002823 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002824 esac
2825done
Reid Spencera773bd52006-08-04 18:18:08 +00002826test "$ac_cv_exeext" = no && ac_cv_exeext=
2827
John Criswell7a73b802003-06-30 21:59:07 +00002828else
2829 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002830sed 's/^/| /' conftest.$ac_ext >&5
2831
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002832{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002833See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002834echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002835See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002836 { (exit 77); exit 77; }; }
2837fi
2838
2839ac_exeext=$ac_cv_exeext
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002840{ echo "$as_me:$LINENO: result: $ac_file" >&5
2841echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002842
Reid Spencera773bd52006-08-04 18:18:08 +00002843# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002844# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002845{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2846echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002847# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2848# If not cross compiling, check that we can run a simple program.
2849if test "$cross_compiling" != yes; then
2850 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002851 { (case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 cross_compiling=no
2861 else
2862 if test "$cross_compiling" = maybe; then
2863 cross_compiling=yes
2864 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002865 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002866If you meant to cross compile, use \`--host'.
2867See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002868echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002869If you meant to cross compile, use \`--host'.
2870See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002871 { (exit 1); exit 1; }; }
2872 fi
2873 fi
2874fi
Reid Spencera773bd52006-08-04 18:18:08 +00002875{ echo "$as_me:$LINENO: result: yes" >&5
2876echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002877
John Criswell0c38eaf2003-09-10 15:17:25 +00002878rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002879ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002880# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002881# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002882{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2883echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2884{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2885echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002886
Reid Spencera773bd52006-08-04 18:18:08 +00002887{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2888echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2889if { (ac_try="$ac_link"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2901# work properly (i.e., refer to `conftest.exe'), while it won't with
2902# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002903for ac_file in conftest.exe conftest conftest.*; do
2904 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002905 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002908 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002909 * ) break;;
2910 esac
2911done
2912else
John Criswell0c38eaf2003-09-10 15:17:25 +00002913 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2914See \`config.log' for more details." >&5
2915echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2916See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002917 { (exit 1); exit 1; }; }
2918fi
2919
2920rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002921{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2922echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002923
2924rm -f conftest.$ac_ext
2925EXEEXT=$ac_cv_exeext
2926ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002927{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2928echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002929if test "${ac_cv_objext+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002938
John Criswell7a73b802003-06-30 21:59:07 +00002939int
2940main ()
2941{
2942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002948if { (ac_try="$ac_compile"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002958 for ac_file in conftest.o conftest.obj conftest.*; do
2959 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002960 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2963 break;;
2964 esac
2965done
2966else
2967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2971See \`config.log' for more details." >&5
2972echo "$as_me: error: cannot compute suffix of object files: cannot compile
2973See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002974 { (exit 1); exit 1; }; }
2975fi
2976
2977rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978fi
Reid Spencera773bd52006-08-04 18:18:08 +00002979{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2980echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002981OBJEXT=$ac_cv_objext
2982ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002983{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2984echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002985if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002989/* confdefs.h. */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002994
John Criswell7a73b802003-06-30 21:59:07 +00002995int
2996main ()
2997{
2998#ifndef __GNUC__
2999 choke me
3000#endif
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003007if { (ac_try="$ac_compile"
3008case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003014 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_try") 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; } &&
3030 { ac_try='test -s conftest.$ac_objext'
3031 { (case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_try") 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003040 ac_compiler_gnu=yes
3041else
3042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003043sed 's/^/| /' conftest.$ac_ext >&5
3044
Reid Spencera773bd52006-08-04 18:18:08 +00003045 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003046fi
Reid Spencera773bd52006-08-04 18:18:08 +00003047
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003049ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003050
3051fi
Reid Spencera773bd52006-08-04 18:18:08 +00003052{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3053echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003054GCC=`test $ac_compiler_gnu = yes && echo yes`
3055ac_test_CFLAGS=${CFLAGS+set}
3056ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003057{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3058echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003059if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061else
Reid Spencera773bd52006-08-04 18:18:08 +00003062 ac_save_c_werror_flag=$ac_c_werror_flag
3063 ac_c_werror_flag=yes
3064 ac_cv_prog_cc_g=no
3065 CFLAGS="-g"
3066 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003072
John Criswell7a73b802003-06-30 21:59:07 +00003073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003089 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003115 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003116else
3117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003118sed 's/^/| /' conftest.$ac_ext >&5
3119
Reid Spencera773bd52006-08-04 18:18:08 +00003120 CFLAGS=""
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003170 :
3171else
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 ac_c_werror_flag=$ac_save_c_werror_flag
3176 CFLAGS="-g"
3177 cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h. */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h. */
3183
3184int
3185main ()
3186{
3187
3188 ;
3189 return 0;
3190}
3191_ACEOF
3192rm -f conftest.$ac_objext
3193if { (ac_try="$ac_compile"
3194case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3207 { (case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_try") 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220esac
3221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_try") 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003226 ac_cv_prog_cc_g=yes
3227else
3228 echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
3231
John Criswell7a73b802003-06-30 21:59:07 +00003232fi
Reid Spencera773bd52006-08-04 18:18:08 +00003233
3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003235fi
Reid Spencera773bd52006-08-04 18:18:08 +00003236
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
3239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3242fi
3243{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3244echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3249 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003250 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003251 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003252 fi
3253else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254 if test "$GCC" = yes; then
3255 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003256 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003258 fi
3259fi
Reid Spencera773bd52006-08-04 18:18:08 +00003260{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3261echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3262if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
Reid Spencera773bd52006-08-04 18:18:08 +00003265 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266ac_save_CC=$CC
3267cat >conftest.$ac_ext <<_ACEOF
3268/* confdefs.h. */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h. */
3273#include <stdarg.h>
3274#include <stdio.h>
3275#include <sys/types.h>
3276#include <sys/stat.h>
3277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278struct buf { int x; };
3279FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280static char *e (p, i)
3281 char **p;
3282 int i;
3283{
3284 return p[i];
3285}
3286static char *f (char * (*g) (char **, int), char **p, ...)
3287{
3288 char *s;
3289 va_list v;
3290 va_start (v,p);
3291 s = g (p, va_arg (v,int));
3292 va_end (v);
3293 return s;
3294}
3295
3296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003299 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003302 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304
Reid Spencera773bd52006-08-04 18:18:08 +00003305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3307#define FOO(x) 'x'
3308int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003310int test (int i, double x);
3311struct s1 {int (*f) (int a);};
3312struct s2 {int (*f) (double a);};
3313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314int argc;
3315char **argv;
3316int
3317main ()
3318{
3319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3320 ;
3321 return 0;
3322}
3323_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003324for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003326do
3327 CC="$ac_save_CC $ac_arg"
3328 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003329if { (ac_try="$ac_compile"
3330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346esac
3347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356esac
3357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_try") 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003362 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363else
3364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
Reid Spencera773bd52006-08-04 18:18:08 +00003367
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368fi
Reid Spencera773bd52006-08-04 18:18:08 +00003369
3370rm -f core conftest.err conftest.$ac_objext
3371 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372done
Reid Spencera773bd52006-08-04 18:18:08 +00003373rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374CC=$ac_save_CC
3375
3376fi
Reid Spencera773bd52006-08-04 18:18:08 +00003377# AC_CACHE_VAL
3378case "x$ac_cv_prog_cc_c89" in
3379 x)
3380 { echo "$as_me:$LINENO: result: none needed" >&5
3381echo "${ECHO_T}none needed" >&6; } ;;
3382 xno)
3383 { echo "$as_me:$LINENO: result: unsupported" >&5
3384echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003386 CC="$CC $ac_cv_prog_cc_c89"
3387 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3388echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389esac
3390
John Criswell0c38eaf2003-09-10 15:17:25 +00003391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399ac_ext=c
3400ac_cpp='$CPP $CPPFLAGS'
3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003404{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3405echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406# On Suns, sometimes $CPP names a directory.
3407if test -n "$CPP" && test -d "$CPP"; then
3408 CPP=
3409fi
3410if test -z "$CPP"; then
3411 if test "${ac_cv_prog_CPP+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 # Double quotes because CPP needs to be expanded
3415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3416 do
3417 ac_preproc_ok=false
3418for ac_c_preproc_warn_flag in '' yes
3419do
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432#ifdef __STDC__
3433# include <limits.h>
3434#else
3435# include <assert.h>
3436#endif
3437 Syntax error
3438_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003439if { (ac_try="$ac_cpp conftest.$ac_ext"
3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
3444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 else
3456 ac_cpp_err=
3457 fi
3458else
3459 ac_cpp_err=yes
3460fi
3461if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462 :
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 # Broken: fails on valid input.
3468continue
3469fi
Reid Spencera773bd52006-08-04 18:18:08 +00003470
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003471rm -f conftest.err conftest.$ac_ext
3472
Reid Spencera773bd52006-08-04 18:18:08 +00003473 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#include <ac_nonexistent.h>
3482_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003483if { (ac_try="$ac_cpp conftest.$ac_ext"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
3488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003495 (exit $ac_status); } >/dev/null; then
3496 if test -s conftest.err; then
3497 ac_cpp_err=$ac_c_preproc_warn_flag
3498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499 else
3500 ac_cpp_err=
3501 fi
3502else
3503 ac_cpp_err=yes
3504fi
3505if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506 # Broken: success on invalid input.
3507continue
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 # Passes both tests.
3513ac_preproc_ok=:
3514break
3515fi
Reid Spencera773bd52006-08-04 18:18:08 +00003516
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003517rm -f conftest.err conftest.$ac_ext
3518
3519done
3520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521rm -f conftest.err conftest.$ac_ext
3522if $ac_preproc_ok; then
3523 break
3524fi
3525
3526 done
3527 ac_cv_prog_CPP=$CPP
3528
3529fi
3530 CPP=$ac_cv_prog_CPP
3531else
3532 ac_cv_prog_CPP=$CPP
3533fi
Reid Spencera773bd52006-08-04 18:18:08 +00003534{ echo "$as_me:$LINENO: result: $CPP" >&5
3535echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003536ac_preproc_ok=false
3537for ac_c_preproc_warn_flag in '' yes
3538do
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
3551#ifdef __STDC__
3552# include <limits.h>
3553#else
3554# include <assert.h>
3555#endif
3556 Syntax error
3557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003558if { (ac_try="$ac_cpp conftest.$ac_ext"
3559case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562esac
3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 else
3575 ac_cpp_err=
3576 fi
3577else
3578 ac_cpp_err=yes
3579fi
3580if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581 :
3582else
3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 # Broken: fails on valid input.
3587continue
3588fi
Reid Spencera773bd52006-08-04 18:18:08 +00003589
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003590rm -f conftest.err conftest.$ac_ext
3591
Reid Spencera773bd52006-08-04 18:18:08 +00003592 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600#include <ac_nonexistent.h>
3601_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003602if { (ac_try="$ac_cpp conftest.$ac_ext"
3603case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606esac
3607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003614 (exit $ac_status); } >/dev/null; then
3615 if test -s conftest.err; then
3616 ac_cpp_err=$ac_c_preproc_warn_flag
3617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 else
3619 ac_cpp_err=
3620 fi
3621else
3622 ac_cpp_err=yes
3623fi
3624if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625 # Broken: success on invalid input.
3626continue
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 # Passes both tests.
3632ac_preproc_ok=:
3633break
3634fi
Reid Spencera773bd52006-08-04 18:18:08 +00003635
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003636rm -f conftest.err conftest.$ac_ext
3637
3638done
3639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640rm -f conftest.err conftest.$ac_ext
3641if $ac_preproc_ok; then
3642 :
3643else
3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645See \`config.log' for more details." >&5
3646echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3649fi
3650
John Criswell7a73b802003-06-30 21:59:07 +00003651ac_ext=c
3652ac_cpp='$CPP $CPPFLAGS'
3653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
John Criswell7a73b802003-06-30 21:59:07 +00003657
Reid Spencera773bd52006-08-04 18:18:08 +00003658{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
Reid Spencera773bd52006-08-04 18:18:08 +00003663 # Extract the first word of "grep ggrep" to use in msg output
3664if test -z "$GREP"; then
3665set dummy grep ggrep; ac_prog_name=$2
3666if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
Reid Spencera773bd52006-08-04 18:18:08 +00003669 ac_path_GREP_found=false
3670# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003672for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003676 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003677 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003679 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003680 # Check for GNU ac_path_GREP and select it if it is found.
3681 # Check for GNU $ac_path_GREP
3682case `"$ac_path_GREP" --version 2>&1` in
3683*GNU*)
3684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3685*)
3686 ac_count=0
3687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688 while :
3689 do
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 echo 'GREP' >> "conftest.nl"
3694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696 ac_count=`expr $ac_count + 1`
3697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_GREP="$ac_path_GREP"
3700 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003701 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3704 done
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706esac
3707
3708
3709 $ac_path_GREP_found && break 3
3710 done
3711done
3712
3713done
3714IFS=$as_save_IFS
3715
3716
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003717fi
Reid Spencera773bd52006-08-04 18:18:08 +00003718
3719GREP="$ac_cv_path_GREP"
3720if test -z "$GREP"; then
3721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723 { (exit 1); exit 1; }; }
3724fi
3725
3726else
3727 ac_cv_path_GREP=$GREP
3728fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003729
John Criswell7a73b802003-06-30 21:59:07 +00003730
Reid Spencera773bd52006-08-04 18:18:08 +00003731fi
3732{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734 GREP="$ac_cv_path_GREP"
3735
3736
3737{ echo "$as_me:$LINENO: checking for egrep" >&5
3738echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743 then ac_cv_path_EGREP="$GREP -E"
3744 else
3745 # Extract the first word of "egrep" to use in msg output
3746if test -z "$EGREP"; then
3747set dummy egrep; ac_prog_name=$2
3748if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 ac_path_EGREP_found=false
3752# Loop through the user's path and test for each of PROGNAME-LIST
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_prog in egrep; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003761 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003762 # Check for GNU ac_path_EGREP and select it if it is found.
3763 # Check for GNU $ac_path_EGREP
3764case `"$ac_path_EGREP" --version 2>&1` in
3765*GNU*)
3766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3767*)
3768 ac_count=0
3769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3770 while :
3771 do
3772 cat "conftest.in" "conftest.in" >"conftest.tmp"
3773 mv "conftest.tmp" "conftest.in"
3774 cp "conftest.in" "conftest.nl"
3775 echo 'EGREP' >> "conftest.nl"
3776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3778 ac_count=`expr $ac_count + 1`
3779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780 # Best one so far, save it but keep looking for a better one
3781 ac_cv_path_EGREP="$ac_path_EGREP"
3782 ac_path_EGREP_max=$ac_count
3783 fi
3784 # 10*(2^10) chars as input seems more than enough
3785 test $ac_count -gt 10 && break
3786 done
3787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3788esac
3789
3790
3791 $ac_path_EGREP_found && break 3
3792 done
3793done
3794
3795done
3796IFS=$as_save_IFS
3797
3798
3799fi
3800
3801EGREP="$ac_cv_path_EGREP"
3802if test -z "$EGREP"; then
3803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805 { (exit 1); exit 1; }; }
3806fi
3807
3808else
3809 ac_cv_path_EGREP=$EGREP
3810fi
3811
3812
3813 fi
3814fi
3815{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817 EGREP="$ac_cv_path_EGREP"
3818
3819
3820{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003822if test "${ac_cv_header_stdc+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003831#include <stdlib.h>
3832#include <stdarg.h>
3833#include <string.h>
3834#include <float.h>
3835
John Criswell0c38eaf2003-09-10 15:17:25 +00003836int
3837main ()
3838{
3839
3840 ;
3841 return 0;
3842}
John Criswell7a73b802003-06-30 21:59:07 +00003843_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003844rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003845if { (ac_try="$ac_compile"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003852 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003857 (exit $ac_status); } &&
3858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3859 { (case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862esac
3863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_try") 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; } &&
3868 { ac_try='test -s conftest.$ac_objext'
3869 { (case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872esac
3873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_try") 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003878 ac_cv_header_stdc=yes
3879else
3880 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003881sed 's/^/| /' conftest.$ac_ext >&5
3882
Reid Spencera773bd52006-08-04 18:18:08 +00003883 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003884fi
Reid Spencera773bd52006-08-04 18:18:08 +00003885
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003887
3888if test $ac_cv_header_stdc = yes; then
3889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003891/* confdefs.h. */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003896#include <string.h>
3897
3898_ACEOF
3899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003900 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003901 :
3902else
3903 ac_cv_header_stdc=no
3904fi
3905rm -f conftest*
3906
3907fi
3908
3909if test $ac_cv_header_stdc = yes; then
3910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003912/* confdefs.h. */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003917#include <stdlib.h>
3918
3919_ACEOF
3920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003921 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003922 :
3923else
3924 ac_cv_header_stdc=no
3925fi
3926rm -f conftest*
3927
3928fi
3929
3930if test $ac_cv_header_stdc = yes; then
3931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3932 if test "$cross_compiling" = yes; then
3933 :
3934else
3935 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003941#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003942#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003943#if ((' ' & 0x0FF) == 0x020)
3944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003947# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003948 (('a' <= (c) && (c) <= 'i') \
3949 || ('j' <= (c) && (c) <= 'r') \
3950 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003951# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952#endif
3953
3954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3955int
3956main ()
3957{
3958 int i;
3959 for (i = 0; i < 256; i++)
3960 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003961 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003962 return 2;
3963 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003964}
3965_ACEOF
3966rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003967if { (ac_try="$ac_link"
3968case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971esac
3972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003977 { (case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980esac
3981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 :
3987else
3988 echo "$as_me: program exited with status $ac_status" >&5
3989echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003990sed 's/^/| /' conftest.$ac_ext >&5
3991
John Criswell7a73b802003-06-30 21:59:07 +00003992( exit $ac_status )
3993ac_cv_header_stdc=no
3994fi
Reid Spencera773bd52006-08-04 18:18:08 +00003995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996fi
3997
3998
John Criswell7a73b802003-06-30 21:59:07 +00003999fi
4000fi
Reid Spencera773bd52006-08-04 18:18:08 +00004001{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004003if test $ac_cv_header_stdc = yes; then
4004
4005cat >>confdefs.h <<\_ACEOF
4006#define STDC_HEADERS 1
4007_ACEOF
4008
4009fi
4010
Reid Spencera773bd52006-08-04 18:18:08 +00004011# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4022 inttypes.h stdint.h unistd.h
4023do
4024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030 cat >conftest.$ac_ext <<_ACEOF
4031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
4036$ac_includes_default
4037
4038#include <$ac_header>
4039_ACEOF
4040rm -f conftest.$ac_objext
4041if { (ac_try="$ac_compile"
4042case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004053 (exit $ac_status); } &&
4054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4055 { (case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058esac
4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_try") 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068esac
4069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_try") 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004074 eval "$as_ac_Header=yes"
4075else
4076 echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 eval "$as_ac_Header=no"
4080fi
4081
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083fi
4084ac_res=`eval echo '${'$as_ac_Header'}'`
4085 { echo "$as_me:$LINENO: result: $ac_res" >&5
4086echo "${ECHO_T}$ac_res" >&6; }
4087if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090_ACEOF
4091
4092fi
4093
4094done
4095
4096
4097{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4098echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4099if test "${ac_cv_c_bigendian+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102 # See if sys/param.h defines the BYTE_ORDER macro.
4103cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109#include <sys/types.h>
4110#include <sys/param.h>
4111
4112int
4113main ()
4114{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004115#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004116 bogus endian macros
4117#endif
4118
4119 ;
4120 return 0;
4121}
4122_ACEOF
4123rm -f conftest.$ac_objext
4124if { (ac_try="$ac_compile"
4125case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004157 # It does; now see whether it defined to BIG_ENDIAN or not.
4158cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h. */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h. */
4164#include <sys/types.h>
4165#include <sys/param.h>
4166
4167int
4168main ()
4169{
4170#if BYTE_ORDER != BIG_ENDIAN
4171 not big endian
4172#endif
4173
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178rm -f conftest.$ac_objext
4179if { (ac_try="$ac_compile"
4180case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_compile") 2>conftest.er1
4186 ac_status=$?
4187 grep -v '^ *+' conftest.er1 >conftest.err
4188 rm -f conftest.er1
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196esac
4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
4207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_try") 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004212 ac_cv_c_bigendian=yes
4213else
4214 echo "$as_me: failed program was:" >&5
4215sed 's/^/| /' conftest.$ac_ext >&5
4216
4217 ac_cv_c_bigendian=no
4218fi
4219
4220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221else
4222 echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 # It does not; compile a test program.
4226if test "$cross_compiling" = yes; then
4227 # try to guess the endianness by grepping values into an object file
4228 ac_cv_c_bigendian=unknown
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4241int
4242main ()
4243{
4244 _ascii (); _ebcdic ();
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext
4250if { (ac_try="$ac_compile"
4251case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004283 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4284 ac_cv_c_bigendian=yes
4285fi
4286if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4287 if test "$ac_cv_c_bigendian" = unknown; then
4288 ac_cv_c_bigendian=no
4289 else
4290 # finding both strings is unlikely to happen, but who knows?
4291 ac_cv_c_bigendian=unknown
4292 fi
4293fi
4294else
4295 echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298
4299fi
4300
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302else
4303 cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h. */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h. */
4309$ac_includes_default
4310int
4311main ()
4312{
4313
4314 /* Are we little or big endian? From Harbison&Steele. */
4315 union
4316 {
4317 long int l;
4318 char c[sizeof (long int)];
4319 } u;
4320 u.l = 1;
4321 return u.c[sizeof (long int) - 1] == 1;
4322
4323 ;
4324 return 0;
4325}
4326_ACEOF
4327rm -f conftest$ac_exeext
4328if { (ac_try="$ac_link"
4329case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_link") 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338 { (case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341esac
4342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_c_bigendian=no
4348else
4349 echo "$as_me: program exited with status $ac_status" >&5
4350echo "$as_me: failed program was:" >&5
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
4353( exit $ac_status )
4354ac_cv_c_bigendian=yes
4355fi
4356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357fi
4358
4359
4360fi
4361
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363fi
4364{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4365echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4366case $ac_cv_c_bigendian in
4367 yes)
4368 ENDIAN=big
4369 ;;
4370 no)
4371 ENDIAN=little
4372 ;;
4373 *)
4374 { { echo "$as_me:$LINENO: error: unknown endianness
4375presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4376echo "$as_me: error: unknown endianness
4377presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4378 { (exit 1); exit 1; }; } ;;
4379esac
4380
4381
4382if test "$cross_compiling" = yes; then
4383 LLVM_CROSS_COMPILING=1
4384
4385
4386{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4387echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4388if test "${ac_cv_build_exeext+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4392 ac_cv_build_exeext=.exe
4393else
4394 ac_build_prefix=${build_alias}-
4395
4396 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4397set dummy ${ac_build_prefix}gcc; ac_word=$2
4398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 if test -n "$BUILD_CC"; then
4404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004412 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 +00004413 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423BUILD_CC=$ac_cv_prog_BUILD_CC
4424if test -n "$BUILD_CC"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426echo "${ECHO_T}$BUILD_CC" >&6; }
4427else
4428 { echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6; }
4430fi
4431
4432
4433 if test -z "$BUILD_CC"; then
4434 # Extract the first word of "gcc", so it can be a program name with args.
4435set dummy gcc; ac_word=$2
4436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004450 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 +00004451 ac_cv_prog_BUILD_CC="gcc"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4454 fi
4455done
4456done
4457IFS=$as_save_IFS
4458
4459fi
4460fi
4461BUILD_CC=$ac_cv_prog_BUILD_CC
4462if test -n "$BUILD_CC"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464echo "${ECHO_T}$BUILD_CC" >&6; }
4465else
4466 { echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6; }
4468fi
4469
4470
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "cc", so it can be a program name with args.
4473set dummy cc; ac_word=$2
4474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481else
4482 ac_prog_rejected=no
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004489 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 +00004490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4491 ac_prog_rejected=yes
4492 continue
4493 fi
4494 ac_cv_prog_BUILD_CC="cc"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498done
4499done
4500IFS=$as_save_IFS
4501
4502if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_BUILD_CC
4505 shift
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set BUILD_CC to just the basename; use the full file name.
4510 shift
4511 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4512 fi
4513fi
4514fi
4515fi
4516BUILD_CC=$ac_cv_prog_BUILD_CC
4517if test -n "$BUILD_CC"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519echo "${ECHO_T}$BUILD_CC" >&6; }
4520else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6; }
4523fi
4524
4525
4526 fi
4527 fi
4528 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4529echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4530 { (exit 1); exit 1; }; }
4531 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4532 rm -f conftest*
4533 echo 'int main () { return 0; }' > conftest.$ac_ext
4534 ac_cv_build_exeext=
4535 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4536 (eval $ac_build_link) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; then
4540 for file in conftest.*; do
4541 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004542 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004543 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4544 esac
4545 done
4546 else
4547 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4548echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4549 { (exit 1); exit 1; }; }
4550 fi
4551 rm -f conftest*
4552 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4553fi
4554fi
4555
4556BUILD_EXEEXT=""
4557test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4558{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4559echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4560ac_build_exeext=$BUILD_EXEEXT
4561
Jim Grosbach673612e2008-10-02 22:56:44 +00004562 ac_build_prefix=${build_alias}-
4563 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4564set dummy ${ac_build_prefix}g++; ac_word=$2
4565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4567if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570 if test -n "$BUILD_CXX"; then
4571 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4572else
4573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH
4575do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004579 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 +00004580 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4583 fi
4584done
4585done
4586IFS=$as_save_IFS
4587
4588fi
4589fi
4590BUILD_CXX=$ac_cv_prog_BUILD_CXX
4591if test -n "$BUILD_CXX"; then
4592 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4593echo "${ECHO_T}$BUILD_CXX" >&6; }
4594else
4595 { echo "$as_me:$LINENO: result: no" >&5
4596echo "${ECHO_T}no" >&6; }
4597fi
4598
4599
4600 if test -z "$BUILD_CXX"; then
4601 # Extract the first word of "g++", so it can be a program name with args.
4602set dummy g++; ac_word=$2
4603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608 if test -n "$BUILD_CXX"; then
4609 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004617 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 +00004618 ac_cv_prog_BUILD_CXX="g++"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622done
4623done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629if test -n "$BUILD_CXX"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631echo "${ECHO_T}$BUILD_CXX" >&6; }
4632else
4633 { echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6; }
4635fi
4636
4637
4638 if test -z "$BUILD_CXX"; then
4639 # Extract the first word of "c++", so it can be a program name with args.
4640set dummy c++; ac_word=$2
4641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646 if test -n "$BUILD_CXX"; then
4647 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4648else
4649 ac_prog_rejected=no
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004656 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 +00004657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4658 ac_prog_rejected=yes
4659 continue
4660 fi
4661 ac_cv_prog_BUILD_CXX="c++"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665done
4666done
4667IFS=$as_save_IFS
4668
4669if test $ac_prog_rejected = yes; then
4670 # We found a bogon in the path, so make sure we never use it.
4671 set dummy $ac_cv_prog_BUILD_CXX
4672 shift
4673 if test $# != 0; then
4674 # We chose a different compiler from the bogus one.
4675 # However, it has the same basename, so the bogon will be chosen
4676 # first if we set BUILD_CXX to just the basename; use the full file name.
4677 shift
4678 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4679 fi
4680fi
4681fi
4682fi
4683BUILD_CXX=$ac_cv_prog_BUILD_CXX
4684if test -n "$BUILD_CXX"; then
4685 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4686echo "${ECHO_T}$BUILD_CXX" >&6; }
4687else
4688 { echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6; }
4690fi
4691
4692
4693 fi
4694 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004695else
4696 LLVM_CROSS_COMPILING=0
4697
4698fi
4699
Nick Lewycky5b28f862009-04-10 05:18:27 +00004700if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004701 cvsbuild="yes"
4702 optimize="no"
4703 CVSBUILD=CVSBUILD=1
4704
4705else
4706 cvsbuild="no"
4707 optimize="yes"
4708fi
4709
4710
4711# Check whether --enable-optimized was given.
4712if test "${enable_optimized+set}" = set; then
4713 enableval=$enable_optimized;
4714else
4715 enableval=$optimize
4716fi
4717
4718if test ${enableval} = "no" ; then
4719 ENABLE_OPTIMIZED=
4720
4721else
4722 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4723
4724fi
4725
4726# Check whether --enable-assertions was given.
4727if test "${enable_assertions+set}" = set; then
4728 enableval=$enable_assertions;
4729else
4730 enableval="yes"
4731fi
4732
4733if test ${enableval} = "yes" ; then
4734 DISABLE_ASSERTIONS=
4735
4736else
4737 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4738
4739fi
4740
David Greenea696d242007-06-28 19:36:08 +00004741# Check whether --enable-expensive-checks was given.
4742if test "${enable_expensive_checks+set}" = set; then
4743 enableval=$enable_expensive_checks;
4744else
4745 enableval="no"
4746fi
4747
4748if test ${enableval} = "yes" ; then
4749 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4750
4751 EXPENSIVE_CHECKS=yes
4752
4753else
4754 ENABLE_EXPENSIVE_CHECKS=
4755
4756 EXPENSIVE_CHECKS=no
4757
4758fi
4759
Reid Spencer8b2e1412006-11-17 03:32:33 +00004760# Check whether --enable-debug-runtime was given.
4761if test "${enable_debug_runtime+set}" = set; then
4762 enableval=$enable_debug_runtime;
4763else
4764 enableval=no
4765fi
4766
4767if test ${enableval} = "no" ; then
4768 DEBUG_RUNTIME=
4769
4770else
4771 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4772
4773fi
4774
Reid Spencera773bd52006-08-04 18:18:08 +00004775# Check whether --enable-jit was given.
4776if test "${enable_jit+set}" = set; then
4777 enableval=$enable_jit;
4778else
4779 enableval=default
4780fi
4781
4782if test ${enableval} = "no"
4783then
4784 JIT=
4785
4786else
4787 case "$llvm_cv_target_arch" in
4788 x86) TARGET_HAS_JIT=1
4789 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004790 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004791 ;;
4792 PowerPC) TARGET_HAS_JIT=1
4793 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004794 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004795 ;;
4796 Alpha) TARGET_HAS_JIT=1
4797 ;;
4798 IA64) TARGET_HAS_JIT=0
4799 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004800 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004801 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004802 Mips) TARGET_HAS_JIT=0
4803 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004804 PIC16) TARGET_HAS_JIT=0
4805 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004806 XCore) TARGET_HAS_JIT=0
4807 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004808 *) TARGET_HAS_JIT=0
4809 ;;
4810 esac
4811fi
4812
4813# Check whether --enable-doxygen was given.
4814if test "${enable_doxygen+set}" = set; then
4815 enableval=$enable_doxygen;
4816else
4817 enableval=default
4818fi
4819
4820case "$enableval" in
4821 yes) ENABLE_DOXYGEN=1
4822 ;;
4823 no) ENABLE_DOXYGEN=0
4824 ;;
4825 default) ENABLE_DOXYGEN=0
4826 ;;
4827 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4828echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4829 { (exit 1); exit 1; }; } ;;
4830esac
4831
4832# Check whether --enable-threads was given.
4833if test "${enable_threads+set}" = set; then
4834 enableval=$enable_threads;
4835else
Reid Spencer65c5d752006-11-05 17:08:18 +00004836 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004837fi
4838
4839case "$enableval" in
4840 yes) ENABLE_THREADS=1
4841 ;;
4842 no) ENABLE_THREADS=0
4843 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004844 default) ENABLE_THREADS=1
4845 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004846 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4847echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4848 { (exit 1); exit 1; }; } ;;
4849esac
4850
4851cat >>confdefs.h <<_ACEOF
4852#define ENABLE_THREADS $ENABLE_THREADS
4853_ACEOF
4854
4855
Reid Spencer89b0d992006-12-16 22:07:52 +00004856# Check whether --enable-pic was given.
4857if test "${enable_pic+set}" = set; then
4858 enableval=$enable_pic;
4859else
4860 enableval=default
4861fi
4862
4863case "$enableval" in
4864 yes) ENABLE_PIC=1
4865 ;;
4866 no) ENABLE_PIC=0
4867 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004868 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004869 ;;
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4871echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4873esac
4874
4875cat >>confdefs.h <<_ACEOF
4876#define ENABLE_PIC $ENABLE_PIC
4877_ACEOF
4878
4879
Reid Spencera773bd52006-08-04 18:18:08 +00004880TARGETS_TO_BUILD=""
4881# Check whether --enable-targets was given.
4882if test "${enable_targets+set}" = set; then
4883 enableval=$enable_targets;
4884else
4885 enableval=all
4886fi
4887
4888case "$enableval" in
Richard Osborneb25baef2008-11-07 10:59:00 +00004889 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004890 host-only)
4891 case "$llvm_cv_target_arch" in
4892 x86) TARGETS_TO_BUILD="X86" ;;
4893 x86_64) TARGETS_TO_BUILD="X86" ;;
4894 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4895 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4896 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4897 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004898 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004899 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004900 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004901 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004902 XCore) TARGETS_TO_BUILD="XCore" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004903 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4904echo "$as_me: error: Can not set target to build" >&2;}
4905 { (exit 1); exit 1; }; } ;;
4906 esac
4907 ;;
4908 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4909 case "$a_target" in
4910 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4911 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4913 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4914 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4915 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004916 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004917 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004918 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004919 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004920 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004921 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4922 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004923 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004924 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4925echo "$as_me: error: Unrecognized target $a_target" >&2;}
4926 { (exit 1); exit 1; }; } ;;
4927 esac
4928 done
4929 ;;
4930esac
Reid Spencera773bd52006-08-04 18:18:08 +00004931TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4932
4933
Reid Spencer65c5d752006-11-05 17:08:18 +00004934# Check whether --enable-cbe-printf-a was given.
4935if test "${enable_cbe_printf_a+set}" = set; then
4936 enableval=$enable_cbe_printf_a;
4937else
4938 enableval=default
4939fi
4940
4941case "$enableval" in
4942 yes) ENABLE_CBE_PRINTF_A=1
4943 ;;
4944 no) ENABLE_CBE_PRINTF_A=0
4945 ;;
4946 default) ENABLE_CBE_PRINTF_A=1
4947 ;;
4948 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4949echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4950 { (exit 1); exit 1; }; } ;;
4951esac
4952
4953cat >>confdefs.h <<_ACEOF
4954#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4955_ACEOF
4956
4957
Reid Spencera773bd52006-08-04 18:18:08 +00004958
4959# Check whether --with-llvmgccdir was given.
4960if test "${with_llvmgccdir+set}" = set; then
4961 withval=$with_llvmgccdir;
4962else
4963 withval=default
4964fi
4965
4966case "$withval" in
4967 default) WITH_LLVMGCCDIR=default ;;
4968 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4969 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4970echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4971 { (exit 1); exit 1; }; } ;;
4972esac
4973
4974
Devang Patel5d28b882007-12-04 22:54:47 +00004975# Check whether --with-llvmgcc was given.
4976if test "${with_llvmgcc+set}" = set; then
4977 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4978 WITH_LLVMGCCDIR=""
4979fi
4980
4981
4982
4983# Check whether --with-llvmgxx was given.
4984if test "${with_llvmgxx+set}" = set; then
4985 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4986 WITH_LLVMGCCDIR=""
4987fi
4988
4989
4990if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4991 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4992echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4993 { (exit 1); exit 1; }; };
4994fi
4995
4996if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4997 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4998echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4999 { (exit 1); exit 1; }; };
5000fi
5001
5002
Reid Spencera773bd52006-08-04 18:18:08 +00005003# Check whether --with-extra-options was given.
5004if test "${with_extra_options+set}" = set; then
5005 withval=$with_extra_options;
5006else
5007 withval=default
5008fi
5009
5010case "$withval" in
5011 default) EXTRA_OPTIONS= ;;
5012 *) EXTRA_OPTIONS=$withval ;;
5013esac
5014EXTRA_OPTIONS=$EXTRA_OPTIONS
5015
5016
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005017# Check whether --enable-bindings was given.
5018if test "${enable_bindings+set}" = set; then
5019 enableval=$enable_bindings;
5020else
5021 enableval=default
5022fi
5023
5024BINDINGS_TO_BUILD=""
5025case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005026 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005027 all ) BINDINGS_TO_BUILD="ocaml" ;;
5028 none | no) BINDINGS_TO_BUILD="" ;;
5029 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5030 case "$a_binding" in
5031 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5032 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5033echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5034 { (exit 1); exit 1; }; } ;;
5035 esac
5036 done
5037 ;;
5038esac
5039
Reid Spencera773bd52006-08-04 18:18:08 +00005040
Gordon Henriksenf0915682007-10-02 16:42:22 +00005041# Check whether --with-ocaml-libdir was given.
5042if test "${with_ocaml_libdir+set}" = set; then
5043 withval=$with_ocaml_libdir;
5044else
5045 withval=auto
5046fi
5047
5048case "$withval" in
5049 auto) with_ocaml_libdir="$withval" ;;
5050 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5051 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5052echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5053 { (exit 1); exit 1; }; } ;;
5054esac
5055
5056
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005057# Check whether --with-binutils-include was given.
5058if test "${with_binutils_include+set}" = set; then
5059 withval=$with_binutils_include;
5060else
5061 withval=default
5062fi
5063
5064case "$withval" in
5065 default) WITH_BINUTILS_INCDIR=default ;;
5066 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5067 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5068echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5069 { (exit 1); exit 1; }; } ;;
5070esac
5071if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5072 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5073
5074 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5075 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5076 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5077echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5078 { (exit 1); exit 1; }; };
5079 fi
5080fi
5081
5082
Reid Spencera773bd52006-08-04 18:18:08 +00005083ac_ext=c
5084ac_cpp='$CPP $CPPFLAGS'
5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5089echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5090# On Suns, sometimes $CPP names a directory.
5091if test -n "$CPP" && test -d "$CPP"; then
5092 CPP=
5093fi
5094if test -z "$CPP"; then
5095 if test "${ac_cv_prog_CPP+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098 # Double quotes because CPP needs to be expanded
5099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5100 do
5101 ac_preproc_ok=false
5102for ac_c_preproc_warn_flag in '' yes
5103do
5104 # Use a header file that comes with gcc, so configuring glibc
5105 # with a fresh cross-compiler works.
5106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107 # <limits.h> exists even on freestanding compilers.
5108 # On the NeXT, cc -E runs the code through the compiler's parser,
5109 # not just through cpp. "Syntax error" is here to catch this case.
5110 cat >conftest.$ac_ext <<_ACEOF
5111/* confdefs.h. */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h. */
5116#ifdef __STDC__
5117# include <limits.h>
5118#else
5119# include <assert.h>
5120#endif
5121 Syntax error
5122_ACEOF
5123if { (ac_try="$ac_cpp conftest.$ac_ext"
5124case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127esac
5128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5139 else
5140 ac_cpp_err=
5141 fi
5142else
5143 ac_cpp_err=yes
5144fi
5145if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005146 :
5147else
5148 echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 # Broken: fails on valid input.
5152continue
5153fi
5154
5155rm -f conftest.err conftest.$ac_ext
5156
5157 # OK, works on sane cases. Now check whether nonexistent headers
5158 # can be detected and how.
5159 cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h. */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h. */
5165#include <ac_nonexistent.h>
5166_ACEOF
5167if { (ac_try="$ac_cpp conftest.$ac_ext"
5168case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171esac
5172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005179 (exit $ac_status); } >/dev/null; then
5180 if test -s conftest.err; then
5181 ac_cpp_err=$ac_c_preproc_warn_flag
5182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5183 else
5184 ac_cpp_err=
5185 fi
5186else
5187 ac_cpp_err=yes
5188fi
5189if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005190 # Broken: success on invalid input.
5191continue
5192else
5193 echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196 # Passes both tests.
5197ac_preproc_ok=:
5198break
5199fi
5200
5201rm -f conftest.err conftest.$ac_ext
5202
5203done
5204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205rm -f conftest.err conftest.$ac_ext
5206if $ac_preproc_ok; then
5207 break
5208fi
5209
5210 done
5211 ac_cv_prog_CPP=$CPP
5212
5213fi
5214 CPP=$ac_cv_prog_CPP
5215else
5216 ac_cv_prog_CPP=$CPP
5217fi
5218{ echo "$as_me:$LINENO: result: $CPP" >&5
5219echo "${ECHO_T}$CPP" >&6; }
5220ac_preproc_ok=false
5221for ac_c_preproc_warn_flag in '' yes
5222do
5223 # Use a header file that comes with gcc, so configuring glibc
5224 # with a fresh cross-compiler works.
5225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226 # <limits.h> exists even on freestanding compilers.
5227 # On the NeXT, cc -E runs the code through the compiler's parser,
5228 # not just through cpp. "Syntax error" is here to catch this case.
5229 cat >conftest.$ac_ext <<_ACEOF
5230/* confdefs.h. */
5231_ACEOF
5232cat confdefs.h >>conftest.$ac_ext
5233cat >>conftest.$ac_ext <<_ACEOF
5234/* end confdefs.h. */
5235#ifdef __STDC__
5236# include <limits.h>
5237#else
5238# include <assert.h>
5239#endif
5240 Syntax error
5241_ACEOF
5242if { (ac_try="$ac_cpp conftest.$ac_ext"
5243case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246esac
5247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_c_preproc_warn_flag
5257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5258 else
5259 ac_cpp_err=
5260 fi
5261else
5262 ac_cpp_err=yes
5263fi
5264if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005265 :
5266else
5267 echo "$as_me: failed program was:" >&5
5268sed 's/^/| /' conftest.$ac_ext >&5
5269
5270 # Broken: fails on valid input.
5271continue
5272fi
5273
5274rm -f conftest.err conftest.$ac_ext
5275
5276 # OK, works on sane cases. Now check whether nonexistent headers
5277 # can be detected and how.
5278 cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h. */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h. */
5284#include <ac_nonexistent.h>
5285_ACEOF
5286if { (ac_try="$ac_cpp conftest.$ac_ext"
5287case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290esac
5291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005298 (exit $ac_status); } >/dev/null; then
5299 if test -s conftest.err; then
5300 ac_cpp_err=$ac_c_preproc_warn_flag
5301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5302 else
5303 ac_cpp_err=
5304 fi
5305else
5306 ac_cpp_err=yes
5307fi
5308if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005309 # Broken: success on invalid input.
5310continue
5311else
5312 echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 # Passes both tests.
5316ac_preproc_ok=:
5317break
5318fi
5319
5320rm -f conftest.err conftest.$ac_ext
5321
5322done
5323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5324rm -f conftest.err conftest.$ac_ext
5325if $ac_preproc_ok; then
5326 :
5327else
5328 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5329See \`config.log' for more details." >&5
5330echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5331See \`config.log' for more details." >&2;}
5332 { (exit 1); exit 1; }; }
5333fi
5334
5335ac_ext=c
5336ac_cpp='$CPP $CPPFLAGS'
5337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340
5341ac_ext=c
5342ac_cpp='$CPP $CPPFLAGS'
5343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346if test -n "$ac_tool_prefix"; then
5347 for ac_prog in gcc
5348 do
5349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5353if test "${ac_cv_prog_CC+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356 if test -n "$CC"; then
5357 ac_cv_prog_CC="$CC" # Let the user override the test.
5358else
5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005365 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 +00005366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370done
5371done
5372IFS=$as_save_IFS
5373
5374fi
5375fi
5376CC=$ac_cv_prog_CC
5377if test -n "$CC"; then
5378 { echo "$as_me:$LINENO: result: $CC" >&5
5379echo "${ECHO_T}$CC" >&6; }
5380else
5381 { echo "$as_me:$LINENO: result: no" >&5
5382echo "${ECHO_T}no" >&6; }
5383fi
5384
5385
5386 test -n "$CC" && break
5387 done
5388fi
5389if test -z "$CC"; then
5390 ac_ct_CC=$CC
5391 for ac_prog in gcc
5392do
5393 # Extract the first word of "$ac_prog", so it can be a program name with args.
5394set dummy $ac_prog; ac_word=$2
5395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399else
5400 if test -n "$ac_ct_CC"; then
5401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5402else
5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005409 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 +00005410 ac_cv_prog_ac_ct_CC="$ac_prog"
5411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414done
5415done
5416IFS=$as_save_IFS
5417
5418fi
5419fi
5420ac_ct_CC=$ac_cv_prog_ac_ct_CC
5421if test -n "$ac_ct_CC"; then
5422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5423echo "${ECHO_T}$ac_ct_CC" >&6; }
5424else
5425 { echo "$as_me:$LINENO: result: no" >&5
5426echo "${ECHO_T}no" >&6; }
5427fi
5428
5429
5430 test -n "$ac_ct_CC" && break
5431done
5432
5433 if test "x$ac_ct_CC" = x; then
5434 CC=""
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437yes:)
5438{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5439whose name does not start with the host triplet. If you think this
5440configuration is useful to you, please write to autoconf@gnu.org." >&5
5441echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5442whose name does not start with the host triplet. If you think this
5443configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5444ac_tool_warned=yes ;;
5445esac
5446 CC=$ac_ct_CC
5447 fi
5448fi
5449
5450
5451test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5452See \`config.log' for more details." >&5
5453echo "$as_me: error: no acceptable C compiler found in \$PATH
5454See \`config.log' for more details." >&2;}
5455 { (exit 1); exit 1; }; }
5456
5457# Provide some information about the compiler.
5458echo "$as_me:$LINENO: checking for C compiler version" >&5
5459ac_compiler=`set X $ac_compile; echo $2`
5460{ (ac_try="$ac_compiler --version >&5"
5461case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464esac
5465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compiler --version >&5") 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }
5470{ (ac_try="$ac_compiler -v >&5"
5471case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474esac
5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compiler -v >&5") 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }
5480{ (ac_try="$ac_compiler -V >&5"
5481case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484esac
5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compiler -V >&5") 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }
5490
5491{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5492echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5493if test "${ac_cv_c_compiler_gnu+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496 cat >conftest.$ac_ext <<_ACEOF
5497/* confdefs.h. */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */
5502
5503int
5504main ()
5505{
5506#ifndef __GNUC__
5507 choke me
5508#endif
5509
5510 ;
5511 return 0;
5512}
5513_ACEOF
5514rm -f conftest.$ac_objext
5515if { (ac_try="$ac_compile"
5516case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519esac
5520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_compile") 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5529 { (case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532esac
5533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_try") 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542esac
5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_try") 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005548 ac_compiler_gnu=yes
5549else
5550 echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 ac_compiler_gnu=no
5554fi
5555
5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557ac_cv_c_compiler_gnu=$ac_compiler_gnu
5558
5559fi
5560{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5561echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5562GCC=`test $ac_compiler_gnu = yes && echo yes`
5563ac_test_CFLAGS=${CFLAGS+set}
5564ac_save_CFLAGS=$CFLAGS
5565{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5566echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5567if test "${ac_cv_prog_cc_g+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570 ac_save_c_werror_flag=$ac_c_werror_flag
5571 ac_c_werror_flag=yes
5572 ac_cv_prog_cc_g=no
5573 CFLAGS="-g"
5574 cat >conftest.$ac_ext <<_ACEOF
5575/* confdefs.h. */
5576_ACEOF
5577cat confdefs.h >>conftest.$ac_ext
5578cat >>conftest.$ac_ext <<_ACEOF
5579/* end confdefs.h. */
5580
5581int
5582main ()
5583{
5584
5585 ;
5586 return 0;
5587}
5588_ACEOF
5589rm -f conftest.$ac_objext
5590if { (ac_try="$ac_compile"
5591case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594esac
5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_compile") 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5604 { (case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607esac
5608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_try") 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617esac
5618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_try") 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005623 ac_cv_prog_cc_g=yes
5624else
5625 echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628 CFLAGS=""
5629 cat >conftest.$ac_ext <<_ACEOF
5630/* confdefs.h. */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h. */
5635
5636int
5637main ()
5638{
5639
5640 ;
5641 return 0;
5642}
5643_ACEOF
5644rm -f conftest.$ac_objext
5645if { (ac_try="$ac_compile"
5646case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compile") 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5659 { (case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662esac
5663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_try") 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672esac
5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_try") 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005678 :
5679else
5680 echo "$as_me: failed program was:" >&5
5681sed 's/^/| /' conftest.$ac_ext >&5
5682
5683 ac_c_werror_flag=$ac_save_c_werror_flag
5684 CFLAGS="-g"
5685 cat >conftest.$ac_ext <<_ACEOF
5686/* confdefs.h. */
5687_ACEOF
5688cat confdefs.h >>conftest.$ac_ext
5689cat >>conftest.$ac_ext <<_ACEOF
5690/* end confdefs.h. */
5691
5692int
5693main ()
5694{
5695
5696 ;
5697 return 0;
5698}
5699_ACEOF
5700rm -f conftest.$ac_objext
5701if { (ac_try="$ac_compile"
5702case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705esac
5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compile") 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5715 { (case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718esac
5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728esac
5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_try") 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005734 ac_cv_prog_cc_g=yes
5735else
5736 echo "$as_me: failed program was:" >&5
5737sed 's/^/| /' conftest.$ac_ext >&5
5738
5739
5740fi
5741
5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743fi
5744
5745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746fi
5747
5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 ac_c_werror_flag=$ac_save_c_werror_flag
5750fi
5751{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5752echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5753if test "$ac_test_CFLAGS" = set; then
5754 CFLAGS=$ac_save_CFLAGS
5755elif test $ac_cv_prog_cc_g = yes; then
5756 if test "$GCC" = yes; then
5757 CFLAGS="-g -O2"
5758 else
5759 CFLAGS="-g"
5760 fi
5761else
5762 if test "$GCC" = yes; then
5763 CFLAGS="-O2"
5764 else
5765 CFLAGS=
5766 fi
5767fi
5768{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5769echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5770if test "${ac_cv_prog_cc_c89+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773 ac_cv_prog_cc_c89=no
5774ac_save_CC=$CC
5775cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781#include <stdarg.h>
5782#include <stdio.h>
5783#include <sys/types.h>
5784#include <sys/stat.h>
5785/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5786struct buf { int x; };
5787FILE * (*rcsopen) (struct buf *, struct stat *, int);
5788static char *e (p, i)
5789 char **p;
5790 int i;
5791{
5792 return p[i];
5793}
5794static char *f (char * (*g) (char **, int), char **p, ...)
5795{
5796 char *s;
5797 va_list v;
5798 va_start (v,p);
5799 s = g (p, va_arg (v,int));
5800 va_end (v);
5801 return s;
5802}
5803
5804/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5805 function prototypes and stuff, but not '\xHH' hex character constants.
5806 These don't provoke an error unfortunately, instead are silently treated
5807 as 'x'. The following induces an error, until -std is added to get
5808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5809 array size at least. It's necessary to write '\x00'==0 to get something
5810 that's true only with -std. */
5811int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5812
5813/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5814 inside strings and character constants. */
5815#define FOO(x) 'x'
5816int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5817
5818int test (int i, double x);
5819struct s1 {int (*f) (int a);};
5820struct s2 {int (*f) (double a);};
5821int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5822int argc;
5823char **argv;
5824int
5825main ()
5826{
5827return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5834do
5835 CC="$ac_save_CC $ac_arg"
5836 rm -f conftest.$ac_objext
5837if { (ac_try="$ac_compile"
5838case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5851 { (case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_try") 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest.$ac_objext'
5861 { (case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_try") 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005870 ac_cv_prog_cc_c89=$ac_arg
5871else
5872 echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875
5876fi
5877
5878rm -f core conftest.err conftest.$ac_objext
5879 test "x$ac_cv_prog_cc_c89" != "xno" && break
5880done
5881rm -f conftest.$ac_ext
5882CC=$ac_save_CC
5883
5884fi
5885# AC_CACHE_VAL
5886case "x$ac_cv_prog_cc_c89" in
5887 x)
5888 { echo "$as_me:$LINENO: result: none needed" >&5
5889echo "${ECHO_T}none needed" >&6; } ;;
5890 xno)
5891 { echo "$as_me:$LINENO: result: unsupported" >&5
5892echo "${ECHO_T}unsupported" >&6; } ;;
5893 *)
5894 CC="$CC $ac_cv_prog_cc_c89"
5895 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5896echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5897esac
5898
5899
5900ac_ext=c
5901ac_cpp='$CPP $CPPFLAGS'
5902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
5906ac_ext=cpp
5907ac_cpp='$CXXCPP $CPPFLAGS'
5908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5911if test -z "$CXX"; then
5912 if test -n "$CCC"; then
5913 CXX=$CCC
5914 else
5915 if test -n "$ac_tool_prefix"; then
5916 for ac_prog in g++
5917 do
5918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922if test "${ac_cv_prog_CXX+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925 if test -n "$CXX"; then
5926 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5927else
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005934 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 +00005935 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939done
5940done
5941IFS=$as_save_IFS
5942
5943fi
5944fi
5945CXX=$ac_cv_prog_CXX
5946if test -n "$CXX"; then
5947 { echo "$as_me:$LINENO: result: $CXX" >&5
5948echo "${ECHO_T}$CXX" >&6; }
5949else
5950 { echo "$as_me:$LINENO: result: no" >&5
5951echo "${ECHO_T}no" >&6; }
5952fi
5953
5954
5955 test -n "$CXX" && break
5956 done
5957fi
5958if test -z "$CXX"; then
5959 ac_ct_CXX=$CXX
5960 for ac_prog in g++
5961do
5962 # Extract the first word of "$ac_prog", so it can be a program name with args.
5963set dummy $ac_prog; ac_word=$2
5964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 if test -n "$ac_ct_CXX"; then
5970 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005978 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 +00005979 ac_cv_prog_ac_ct_CXX="$ac_prog"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983done
5984done
5985IFS=$as_save_IFS
5986
5987fi
5988fi
5989ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5990if test -n "$ac_ct_CXX"; then
5991 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5992echo "${ECHO_T}$ac_ct_CXX" >&6; }
5993else
5994 { echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6; }
5996fi
5997
5998
5999 test -n "$ac_ct_CXX" && break
6000done
6001
6002 if test "x$ac_ct_CXX" = x; then
6003 CXX="g++"
6004 else
6005 case $cross_compiling:$ac_tool_warned in
6006yes:)
6007{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6008whose name does not start with the host triplet. If you think this
6009configuration is useful to you, please write to autoconf@gnu.org." >&5
6010echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6011whose name does not start with the host triplet. If you think this
6012configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6013ac_tool_warned=yes ;;
6014esac
6015 CXX=$ac_ct_CXX
6016 fi
6017fi
6018
6019 fi
6020fi
6021# Provide some information about the compiler.
6022echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6023ac_compiler=`set X $ac_compile; echo $2`
6024{ (ac_try="$ac_compiler --version >&5"
6025case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_compiler --version >&5") 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }
6034{ (ac_try="$ac_compiler -v >&5"
6035case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038esac
6039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compiler -v >&5") 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }
6044{ (ac_try="$ac_compiler -V >&5"
6045case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048esac
6049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compiler -V >&5") 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }
6054
6055{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6056echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6057if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060 cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h. */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h. */
6066
6067int
6068main ()
6069{
6070#ifndef __GNUC__
6071 choke me
6072#endif
6073
6074 ;
6075 return 0;
6076}
6077_ACEOF
6078rm -f conftest.$ac_objext
6079if { (ac_try="$ac_compile"
6080case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6093 { (case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_try") 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106esac
6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_try") 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006112 ac_compiler_gnu=yes
6113else
6114 echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 ac_compiler_gnu=no
6118fi
6119
6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6122
6123fi
6124{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6125echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6126GXX=`test $ac_compiler_gnu = yes && echo yes`
6127ac_test_CXXFLAGS=${CXXFLAGS+set}
6128ac_save_CXXFLAGS=$CXXFLAGS
6129{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6130echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6131if test "${ac_cv_prog_cxx_g+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6135 ac_cxx_werror_flag=yes
6136 ac_cv_prog_cxx_g=no
6137 CXXFLAGS="-g"
6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
6144
6145int
6146main ()
6147{
6148
6149 ;
6150 return 0;
6151}
6152_ACEOF
6153rm -f conftest.$ac_objext
6154if { (ac_try="$ac_compile"
6155case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_compile") 2>conftest.er1
6161 ac_status=$?
6162 grep -v '^ *+' conftest.er1 >conftest.err
6163 rm -f conftest.er1
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6168 { (case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171esac
6172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_try") 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; } &&
6177 { ac_try='test -s conftest.$ac_objext'
6178 { (case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181esac
6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_try") 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006187 ac_cv_prog_cxx_g=yes
6188else
6189 echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 CXXFLAGS=""
6193 cat >conftest.$ac_ext <<_ACEOF
6194/* confdefs.h. */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
6198/* end confdefs.h. */
6199
6200int
6201main ()
6202{
6203
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext
6209if { (ac_try="$ac_compile"
6210case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_compile") 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6223 { (case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6226esac
6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_try") 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006242 :
6243else
6244 echo "$as_me: failed program was:" >&5
6245sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6248 CXXFLAGS="-g"
6249 cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255
6256int
6257main ()
6258{
6259
6260 ;
6261 return 0;
6262}
6263_ACEOF
6264rm -f conftest.$ac_objext
6265if { (ac_try="$ac_compile"
6266case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compile") 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006277 (exit $ac_status); } &&
6278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6279 { (case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_try") 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_try") 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006298 ac_cv_prog_cxx_g=yes
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303
6304fi
6305
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307fi
6308
6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310fi
6311
6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6314fi
6315{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6316echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6317if test "$ac_test_CXXFLAGS" = set; then
6318 CXXFLAGS=$ac_save_CXXFLAGS
6319elif test $ac_cv_prog_cxx_g = yes; then
6320 if test "$GXX" = yes; then
6321 CXXFLAGS="-g -O2"
6322 else
6323 CXXFLAGS="-g"
6324 fi
6325else
6326 if test "$GXX" = yes; then
6327 CXXFLAGS="-O2"
6328 else
6329 CXXFLAGS=
6330 fi
6331fi
6332ac_ext=c
6333ac_cpp='$CPP $CPPFLAGS'
6334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337
Reid Spencera773bd52006-08-04 18:18:08 +00006338
6339{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6340echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6341if test "${lt_cv_path_NM+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344 if test -n "$NM"; then
6345 # Let the user override the test.
6346 lt_cv_path_NM="$NM"
6347else
6348 lt_nm_to_check="${ac_tool_prefix}nm"
6349 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6350 lt_nm_to_check="$lt_nm_to_check nm"
6351 fi
6352 for lt_tmp_nm in $lt_nm_to_check; do
6353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6354 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6355 IFS="$lt_save_ifs"
6356 test -z "$ac_dir" && ac_dir=.
6357 tmp_nm="$ac_dir/$lt_tmp_nm"
6358 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6359 # Check to see if the nm accepts a BSD-compat flag.
6360 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6361 # nm: unknown option "B" ignored
6362 # Tru64's nm complains that /dev/null is an invalid object file
6363 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6364 */dev/null* | *'Invalid file or object type'*)
6365 lt_cv_path_NM="$tmp_nm -B"
6366 break
6367 ;;
6368 *)
6369 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6370 */dev/null*)
6371 lt_cv_path_NM="$tmp_nm -p"
6372 break
6373 ;;
6374 *)
6375 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6376 continue # so that we can try to find one that supports BSD flags
6377 ;;
6378 esac
6379 ;;
6380 esac
6381 fi
6382 done
6383 IFS="$lt_save_ifs"
6384 done
6385 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6386fi
6387fi
6388{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6389echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6390NM="$lt_cv_path_NM"
6391
6392
6393
6394{ echo "$as_me:$LINENO: checking for GNU make" >&5
6395echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6396if test "${llvm_cv_gnu_make_command+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399 llvm_cv_gnu_make_command=''
6400 for a in "$MAKE" make gmake gnumake ; do
6401 if test -z "$a" ; then continue ; fi ;
6402 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6403 then
6404 llvm_cv_gnu_make_command=$a ;
6405 break;
6406 fi
6407 done
6408fi
6409{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6410echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6411 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6412 ifGNUmake='' ;
6413 else
6414 ifGNUmake='#' ;
6415 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6416echo "${ECHO_T}\"Not found\"" >&6; };
6417 fi
6418
6419
6420{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6421echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6422LN_S=$as_ln_s
6423if test "$LN_S" = "ln -s"; then
6424 { echo "$as_me:$LINENO: result: yes" >&5
6425echo "${ECHO_T}yes" >&6; }
6426else
6427 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6428echo "${ECHO_T}no, using $LN_S" >&6; }
6429fi
6430
6431# Extract the first word of "cmp", so it can be a program name with args.
6432set dummy cmp; ac_word=$2
6433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435if test "${ac_cv_path_CMP+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438 case $CMP in
6439 [\\/]* | ?:[\\/]*)
6440 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6441 ;;
6442 *)
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006449 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 +00006450 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454done
6455done
6456IFS=$as_save_IFS
6457
6458 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6459 ;;
6460esac
6461fi
6462CMP=$ac_cv_path_CMP
6463if test -n "$CMP"; then
6464 { echo "$as_me:$LINENO: result: $CMP" >&5
6465echo "${ECHO_T}$CMP" >&6; }
6466else
6467 { echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6; }
6469fi
6470
6471
6472# Extract the first word of "cp", so it can be a program name with args.
6473set dummy cp; ac_word=$2
6474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476if test "${ac_cv_path_CP+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479 case $CP in
6480 [\\/]* | ?:[\\/]*)
6481 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6482 ;;
6483 *)
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH
6486do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006490 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 +00006491 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495done
6496done
6497IFS=$as_save_IFS
6498
6499 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6500 ;;
6501esac
6502fi
6503CP=$ac_cv_path_CP
6504if test -n "$CP"; then
6505 { echo "$as_me:$LINENO: result: $CP" >&5
6506echo "${ECHO_T}$CP" >&6; }
6507else
6508 { echo "$as_me:$LINENO: result: no" >&5
6509echo "${ECHO_T}no" >&6; }
6510fi
6511
6512
6513# Extract the first word of "date", so it can be a program name with args.
6514set dummy date; ac_word=$2
6515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517if test "${ac_cv_path_DATE+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520 case $DATE in
6521 [\\/]* | ?:[\\/]*)
6522 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6523 ;;
6524 *)
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006531 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 +00006532 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536done
6537done
6538IFS=$as_save_IFS
6539
6540 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6541 ;;
6542esac
6543fi
6544DATE=$ac_cv_path_DATE
6545if test -n "$DATE"; then
6546 { echo "$as_me:$LINENO: result: $DATE" >&5
6547echo "${ECHO_T}$DATE" >&6; }
6548else
6549 { echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6; }
6551fi
6552
6553
6554# Extract the first word of "find", so it can be a program name with args.
6555set dummy find; ac_word=$2
6556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558if test "${ac_cv_path_FIND+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561 case $FIND in
6562 [\\/]* | ?:[\\/]*)
6563 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6564 ;;
6565 *)
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006572 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 +00006573 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577done
6578done
6579IFS=$as_save_IFS
6580
6581 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6582 ;;
6583esac
6584fi
6585FIND=$ac_cv_path_FIND
6586if test -n "$FIND"; then
6587 { echo "$as_me:$LINENO: result: $FIND" >&5
6588echo "${ECHO_T}$FIND" >&6; }
6589else
6590 { echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6; }
6592fi
6593
6594
6595# Extract the first word of "grep", so it can be a program name with args.
6596set dummy grep; ac_word=$2
6597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599if test "${ac_cv_path_GREP+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602 case $GREP in
6603 [\\/]* | ?:[\\/]*)
6604 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6605 ;;
6606 *)
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006613 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 +00006614 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618done
6619done
6620IFS=$as_save_IFS
6621
6622 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6623 ;;
6624esac
6625fi
6626GREP=$ac_cv_path_GREP
6627if test -n "$GREP"; then
6628 { echo "$as_me:$LINENO: result: $GREP" >&5
6629echo "${ECHO_T}$GREP" >&6; }
6630else
6631 { echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6; }
6633fi
6634
6635
6636# Extract the first word of "mkdir", so it can be a program name with args.
6637set dummy mkdir; ac_word=$2
6638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640if test "${ac_cv_path_MKDIR+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643 case $MKDIR in
6644 [\\/]* | ?:[\\/]*)
6645 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6646 ;;
6647 *)
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006654 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 +00006655 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659done
6660done
6661IFS=$as_save_IFS
6662
6663 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6664 ;;
6665esac
6666fi
6667MKDIR=$ac_cv_path_MKDIR
6668if test -n "$MKDIR"; then
6669 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6670echo "${ECHO_T}$MKDIR" >&6; }
6671else
6672 { echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6; }
6674fi
6675
6676
6677# Extract the first word of "mv", so it can be a program name with args.
6678set dummy mv; ac_word=$2
6679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681if test "${ac_cv_path_MV+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684 case $MV in
6685 [\\/]* | ?:[\\/]*)
6686 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6687 ;;
6688 *)
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006695 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 +00006696 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700done
6701done
6702IFS=$as_save_IFS
6703
6704 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6705 ;;
6706esac
6707fi
6708MV=$ac_cv_path_MV
6709if test -n "$MV"; then
6710 { echo "$as_me:$LINENO: result: $MV" >&5
6711echo "${ECHO_T}$MV" >&6; }
6712else
6713 { echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6; }
6715fi
6716
6717
6718if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723if test "${ac_cv_prog_RANLIB+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726 if test -n "$RANLIB"; then
6727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006735 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 +00006736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740done
6741done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746RANLIB=$ac_cv_prog_RANLIB
6747if test -n "$RANLIB"; then
6748 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749echo "${ECHO_T}$RANLIB" >&6; }
6750else
6751 { echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6; }
6753fi
6754
6755
6756fi
6757if test -z "$ac_cv_prog_RANLIB"; then
6758 ac_ct_RANLIB=$RANLIB
6759 # Extract the first word of "ranlib", so it can be a program name with args.
6760set dummy ranlib; ac_word=$2
6761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765else
6766 if test -n "$ac_ct_RANLIB"; then
6767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006775 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 +00006776 ac_cv_prog_ac_ct_RANLIB="ranlib"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787if test -n "$ac_ct_RANLIB"; then
6788 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790else
6791 { echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6; }
6793fi
6794
6795 if test "x$ac_ct_RANLIB" = x; then
6796 RANLIB=":"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799yes:)
6800{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801whose name does not start with the host triplet. If you think this
6802configuration is useful to you, please write to autoconf@gnu.org." >&5
6803echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804whose name does not start with the host triplet. If you think this
6805configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806ac_tool_warned=yes ;;
6807esac
6808 RANLIB=$ac_ct_RANLIB
6809 fi
6810else
6811 RANLIB="$ac_cv_prog_RANLIB"
6812fi
6813
6814# Extract the first word of "rm", so it can be a program name with args.
6815set dummy rm; ac_word=$2
6816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818if test "${ac_cv_path_RM+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821 case $RM in
6822 [\\/]* | ?:[\\/]*)
6823 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6824 ;;
6825 *)
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006832 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 +00006833 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837done
6838done
6839IFS=$as_save_IFS
6840
6841 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6842 ;;
6843esac
6844fi
6845RM=$ac_cv_path_RM
6846if test -n "$RM"; then
6847 { echo "$as_me:$LINENO: result: $RM" >&5
6848echo "${ECHO_T}$RM" >&6; }
6849else
6850 { echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6; }
6852fi
6853
6854
6855# Extract the first word of "sed", so it can be a program name with args.
6856set dummy sed; ac_word=$2
6857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859if test "${ac_cv_path_SED+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862 case $SED in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6865 ;;
6866 *)
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006873 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 +00006874 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878done
6879done
6880IFS=$as_save_IFS
6881
6882 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6883 ;;
6884esac
6885fi
6886SED=$ac_cv_path_SED
6887if test -n "$SED"; then
6888 { echo "$as_me:$LINENO: result: $SED" >&5
6889echo "${ECHO_T}$SED" >&6; }
6890else
6891 { echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6; }
6893fi
6894
6895
6896# Extract the first word of "tar", so it can be a program name with args.
6897set dummy tar; ac_word=$2
6898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900if test "${ac_cv_path_TAR+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903 case $TAR in
6904 [\\/]* | ?:[\\/]*)
6905 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6906 ;;
6907 *)
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006914 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 +00006915 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919done
6920done
6921IFS=$as_save_IFS
6922
6923 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6924 ;;
6925esac
6926fi
6927TAR=$ac_cv_path_TAR
6928if test -n "$TAR"; then
6929 { echo "$as_me:$LINENO: result: $TAR" >&5
6930echo "${ECHO_T}$TAR" >&6; }
6931else
6932 { echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6; }
6934fi
6935
6936
6937# Extract the first word of "pwd", so it can be a program name with args.
6938set dummy pwd; ac_word=$2
6939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941if test "${ac_cv_path_BINPWD+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944 case $BINPWD in
6945 [\\/]* | ?:[\\/]*)
6946 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6947 ;;
6948 *)
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006955 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 +00006956 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961done
6962IFS=$as_save_IFS
6963
6964 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6965 ;;
6966esac
6967fi
6968BINPWD=$ac_cv_path_BINPWD
6969if test -n "$BINPWD"; then
6970 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6971echo "${ECHO_T}$BINPWD" >&6; }
6972else
6973 { echo "$as_me:$LINENO: result: no" >&5
6974echo "${ECHO_T}no" >&6; }
6975fi
6976
6977
6978
6979# Extract the first word of "Graphviz", so it can be a program name with args.
6980set dummy Graphviz; ac_word=$2
6981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 case $GRAPHVIZ in
6987 [\\/]* | ?:[\\/]*)
6988 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6989 ;;
6990 *)
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006997 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 +00006998 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002done
7003done
7004IFS=$as_save_IFS
7005
7006 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7007 ;;
7008esac
7009fi
7010GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7011if test -n "$GRAPHVIZ"; then
7012 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7013echo "${ECHO_T}$GRAPHVIZ" >&6; }
7014else
7015 { echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6; }
7017fi
7018
7019
7020if test "$GRAPHVIZ" != "echo Graphviz" ; then
7021
7022cat >>confdefs.h <<\_ACEOF
7023#define HAVE_GRAPHVIZ 1
7024_ACEOF
7025
Jeff Cohen28783c32007-01-12 18:22:38 +00007026 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007027 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7028 fi
7029
7030cat >>confdefs.h <<_ACEOF
7031#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7032_ACEOF
7033
7034fi
7035# Extract the first word of "dot", so it can be a program name with args.
7036set dummy dot; ac_word=$2
7037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039if test "${ac_cv_path_DOT+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042 case $DOT in
7043 [\\/]* | ?:[\\/]*)
7044 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7045 ;;
7046 *)
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007053 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 +00007054 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058done
7059done
7060IFS=$as_save_IFS
7061
7062 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7063 ;;
7064esac
7065fi
7066DOT=$ac_cv_path_DOT
7067if test -n "$DOT"; then
7068 { echo "$as_me:$LINENO: result: $DOT" >&5
7069echo "${ECHO_T}$DOT" >&6; }
7070else
7071 { echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6; }
7073fi
7074
7075
7076if test "$DOT" != "echo dot" ; then
7077
7078cat >>confdefs.h <<\_ACEOF
7079#define HAVE_DOT 1
7080_ACEOF
7081
Jeff Cohen28783c32007-01-12 18:22:38 +00007082 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007083 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7084 fi
7085
7086cat >>confdefs.h <<_ACEOF
7087#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7088_ACEOF
7089
7090fi
7091for ac_prog in gv gsview32
7092do
7093 # Extract the first word of "$ac_prog", so it can be a program name with args.
7094set dummy $ac_prog; ac_word=$2
7095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_path_GV+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100 case $GV in
7101 [\\/]* | ?:[\\/]*)
7102 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7103 ;;
7104 *)
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007111 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 +00007112 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117done
7118IFS=$as_save_IFS
7119
7120 ;;
7121esac
7122fi
7123GV=$ac_cv_path_GV
7124if test -n "$GV"; then
7125 { echo "$as_me:$LINENO: result: $GV" >&5
7126echo "${ECHO_T}$GV" >&6; }
7127else
7128 { echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6; }
7130fi
7131
7132
7133 test -n "$GV" && break
7134done
7135test -n "$GV" || GV="echo gv"
7136
7137if test "$GV" != "echo gv" ; then
7138
7139cat >>confdefs.h <<\_ACEOF
7140#define HAVE_GV 1
7141_ACEOF
7142
Jeff Cohen28783c32007-01-12 18:22:38 +00007143 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007144 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7145 fi
7146
7147cat >>confdefs.h <<_ACEOF
7148#define LLVM_PATH_GV "$GV${EXEEXT}"
7149_ACEOF
7150
7151fi
7152# Extract the first word of "dotty", so it can be a program name with args.
7153set dummy dotty; ac_word=$2
7154{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156if test "${ac_cv_path_DOTTY+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158else
7159 case $DOTTY in
7160 [\\/]* | ?:[\\/]*)
7161 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7162 ;;
7163 *)
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007170 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 +00007171 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7174 fi
7175done
7176done
7177IFS=$as_save_IFS
7178
7179 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7180 ;;
7181esac
7182fi
7183DOTTY=$ac_cv_path_DOTTY
7184if test -n "$DOTTY"; then
7185 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7186echo "${ECHO_T}$DOTTY" >&6; }
7187else
7188 { echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6; }
7190fi
7191
7192
7193if test "$DOTTY" != "echo dotty" ; then
7194
7195cat >>confdefs.h <<\_ACEOF
7196#define HAVE_DOTTY 1
7197_ACEOF
7198
Jeff Cohen28783c32007-01-12 18:22:38 +00007199 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007200 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7201 fi
7202
7203cat >>confdefs.h <<_ACEOF
7204#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7205_ACEOF
7206
7207fi
7208
7209
7210# Extract the first word of "perl", so it can be a program name with args.
7211set dummy perl; ac_word=$2
7212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214if test "${ac_cv_path_PERL+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7216else
7217 case $PERL in
7218 [\\/]* | ?:[\\/]*)
7219 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7220 ;;
7221 *)
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007228 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 +00007229 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233done
7234done
7235IFS=$as_save_IFS
7236
7237 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7238 ;;
7239esac
7240fi
7241PERL=$ac_cv_path_PERL
7242if test -n "$PERL"; then
7243 { echo "$as_me:$LINENO: result: $PERL" >&5
7244echo "${ECHO_T}$PERL" >&6; }
7245else
7246 { echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6; }
7248fi
7249
7250
7251if test "$PERL" != "none"; then
7252 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7253echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7254 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7255 { echo "$as_me:$LINENO: result: yes" >&5
7256echo "${ECHO_T}yes" >&6; }
7257 else
7258 PERL=none
7259 { echo "$as_me:$LINENO: result: not found" >&5
7260echo "${ECHO_T}not found" >&6; }
7261 fi
7262fi
7263
7264
7265if test x"$PERL" = xnone; then
7266 HAVE_PERL=0
7267
Reid Spencer59807fa2007-05-17 18:11:03 +00007268 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7269echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7270 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007271else
7272 HAVE_PERL=1
7273
7274fi
7275
7276# Find a good install program. We prefer a C program (faster),
7277# so one script is as good as another. But avoid the broken or
7278# incompatible versions:
7279# SysV /etc/install, /usr/sbin/install
7280# SunOS /usr/etc/install
7281# IRIX /sbin/install
7282# AIX /bin/install
7283# AmigaOS /C/install, which installs bootblocks on floppy discs
7284# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7285# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7286# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7287# OS/2's system install, which has a completely different semantic
7288# ./install, which can be erroneously created by make from ./install.sh.
7289{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7290echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7291if test -z "$INSTALL"; then
7292if test "${ac_cv_path_install+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 # Account for people who put trailing slashes in PATH elements.
7301case $as_dir/ in
7302 ./ | .// | /cC/* | \
7303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7304 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7305 /usr/ucb/* ) ;;
7306 *)
7307 # OSF1 and SCO ODT 3.0 have their own names for install.
7308 # Don't use installbsd from OSF since it installs stuff as root
7309 # by default.
7310 for ac_prog in ginstall scoinst install; do
7311 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007312 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 +00007313 if test $ac_prog = install &&
7314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7315 # AIX install. It has an incompatible calling convention.
7316 :
7317 elif test $ac_prog = install &&
7318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7319 # program-specific install script used by HP pwplus--don't use.
7320 :
7321 else
7322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7323 break 3
7324 fi
7325 fi
7326 done
7327 done
7328 ;;
7329esac
7330done
7331IFS=$as_save_IFS
7332
7333
7334fi
7335 if test "${ac_cv_path_install+set}" = set; then
7336 INSTALL=$ac_cv_path_install
7337 else
7338 # As a last resort, use the slow shell script. Don't cache a
7339 # value for INSTALL within a source directory, because that will
7340 # break other packages using the cache if that directory is
7341 # removed, or if the value is a relative name.
7342 INSTALL=$ac_install_sh
7343 fi
7344fi
7345{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7346echo "${ECHO_T}$INSTALL" >&6; }
7347
7348# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7349# It thinks the first close brace ends the variable substitution.
7350test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7351
7352test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7353
7354test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7355
7356
7357# Extract the first word of "bzip2", so it can be a program name with args.
7358set dummy bzip2; ac_word=$2
7359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361if test "${ac_cv_path_BZIP2+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364 case $BZIP2 in
7365 [\\/]* | ?:[\\/]*)
7366 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7367 ;;
7368 *)
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007375 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 +00007376 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380done
7381done
7382IFS=$as_save_IFS
7383
Reid Spencera773bd52006-08-04 18:18:08 +00007384 ;;
7385esac
7386fi
7387BZIP2=$ac_cv_path_BZIP2
7388if test -n "$BZIP2"; then
7389 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7390echo "${ECHO_T}$BZIP2" >&6; }
7391else
7392 { echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6; }
7394fi
7395
7396
7397# Extract the first word of "doxygen", so it can be a program name with args.
7398set dummy doxygen; ac_word=$2
7399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401if test "${ac_cv_path_DOXYGEN+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404 case $DOXYGEN in
7405 [\\/]* | ?:[\\/]*)
7406 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7407 ;;
7408 *)
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007415 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 +00007416 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7419 fi
7420done
7421done
7422IFS=$as_save_IFS
7423
Reid Spencera773bd52006-08-04 18:18:08 +00007424 ;;
7425esac
7426fi
7427DOXYGEN=$ac_cv_path_DOXYGEN
7428if test -n "$DOXYGEN"; then
7429 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7430echo "${ECHO_T}$DOXYGEN" >&6; }
7431else
7432 { echo "$as_me:$LINENO: result: no" >&5
7433echo "${ECHO_T}no" >&6; }
7434fi
7435
7436
Reid Spencera773bd52006-08-04 18:18:08 +00007437# Extract the first word of "groff", so it can be a program name with args.
7438set dummy groff; ac_word=$2
7439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441if test "${ac_cv_path_GROFF+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443else
7444 case $GROFF in
7445 [\\/]* | ?:[\\/]*)
7446 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7447 ;;
7448 *)
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007455 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 +00007456 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7459 fi
7460done
7461done
7462IFS=$as_save_IFS
7463
Reid Spencera773bd52006-08-04 18:18:08 +00007464 ;;
7465esac
7466fi
7467GROFF=$ac_cv_path_GROFF
7468if test -n "$GROFF"; then
7469 { echo "$as_me:$LINENO: result: $GROFF" >&5
7470echo "${ECHO_T}$GROFF" >&6; }
7471else
7472 { echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6; }
7474fi
7475
7476
7477# Extract the first word of "gzip", so it can be a program name with args.
7478set dummy gzip; ac_word=$2
7479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481if test "${ac_cv_path_GZIP+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483else
7484 case $GZIP in
7485 [\\/]* | ?:[\\/]*)
7486 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7487 ;;
7488 *)
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007495 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 +00007496 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7499 fi
7500done
7501done
7502IFS=$as_save_IFS
7503
Reid Spencera773bd52006-08-04 18:18:08 +00007504 ;;
7505esac
7506fi
7507GZIP=$ac_cv_path_GZIP
7508if test -n "$GZIP"; then
7509 { echo "$as_me:$LINENO: result: $GZIP" >&5
7510echo "${ECHO_T}$GZIP" >&6; }
7511else
7512 { echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6; }
7514fi
7515
7516
7517# Extract the first word of "pod2html", so it can be a program name with args.
7518set dummy pod2html; ac_word=$2
7519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521if test "${ac_cv_path_POD2HTML+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524 case $POD2HTML in
7525 [\\/]* | ?:[\\/]*)
7526 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7527 ;;
7528 *)
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007535 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 +00007536 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7539 fi
7540done
7541done
7542IFS=$as_save_IFS
7543
Reid Spencera773bd52006-08-04 18:18:08 +00007544 ;;
7545esac
7546fi
7547POD2HTML=$ac_cv_path_POD2HTML
7548if test -n "$POD2HTML"; then
7549 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7550echo "${ECHO_T}$POD2HTML" >&6; }
7551else
7552 { echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6; }
7554fi
7555
7556
7557# Extract the first word of "pod2man", so it can be a program name with args.
7558set dummy pod2man; ac_word=$2
7559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7561if test "${ac_cv_path_POD2MAN+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563else
7564 case $POD2MAN in
7565 [\\/]* | ?:[\\/]*)
7566 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7567 ;;
7568 *)
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570for as_dir in $PATH
7571do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007575 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 +00007576 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7579 fi
7580done
7581done
7582IFS=$as_save_IFS
7583
Reid Spencera773bd52006-08-04 18:18:08 +00007584 ;;
7585esac
7586fi
7587POD2MAN=$ac_cv_path_POD2MAN
7588if test -n "$POD2MAN"; then
7589 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7590echo "${ECHO_T}$POD2MAN" >&6; }
7591else
7592 { echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6; }
7594fi
7595
7596
7597# Extract the first word of "runtest", so it can be a program name with args.
7598set dummy runtest; ac_word=$2
7599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_RUNTEST+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604 case $RUNTEST in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007615 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 +00007616 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
7621done
7622IFS=$as_save_IFS
7623
Reid Spencera773bd52006-08-04 18:18:08 +00007624 ;;
7625esac
7626fi
7627RUNTEST=$ac_cv_path_RUNTEST
7628if test -n "$RUNTEST"; then
7629 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7630echo "${ECHO_T}$RUNTEST" >&6; }
7631else
7632 { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
7634fi
7635
7636
7637
7638no_itcl=true
7639{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7640echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7641
7642# Check whether --with-tclinclude was given.
7643if test "${with_tclinclude+set}" = set; then
7644 withval=$with_tclinclude; with_tclinclude=${withval}
7645else
7646 with_tclinclude=''
7647fi
7648
7649if test "${ac_cv_path_tclsh+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652
7653if test x"${with_tclinclude}" != x ; then
7654 if test -f ${with_tclinclude}/tclsh ; then
7655 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7656 elif test -f ${with_tclinclude}/src/tclsh ; then
7657 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7658 else
7659 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7660echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7661 { (exit 1); exit 1; }; }
7662 fi
7663fi
7664
7665if test x"${ac_cv_path_tclsh}" = x ; then
7666 { echo "$as_me:$LINENO: result: none" >&5
7667echo "${ECHO_T}none" >&6; }
7668 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7669do
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671set dummy $ac_prog; ac_word=$2
7672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674if test "${ac_cv_path_TCLSH+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677 case $TCLSH in
7678 [\\/]* | ?:[\\/]*)
7679 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7680 ;;
7681 *)
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007688 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 +00007689 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693done
7694done
7695IFS=$as_save_IFS
7696
7697 ;;
7698esac
7699fi
7700TCLSH=$ac_cv_path_TCLSH
7701if test -n "$TCLSH"; then
7702 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7703echo "${ECHO_T}$TCLSH" >&6; }
7704else
7705 { echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6; }
7707fi
7708
7709
7710 test -n "$TCLSH" && break
7711done
7712
7713 if test x"${TCLSH}" = x ; then
7714 ac_cv_path_tclsh='';
7715 else
7716 ac_cv_path_tclsh="${TCLSH}";
7717 fi
7718else
7719 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7720echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7721 TCLSH="${ac_cv_path_tclsh}"
7722
7723fi
7724
7725fi
7726
7727# Extract the first word of "zip", so it can be a program name with args.
7728set dummy zip; ac_word=$2
7729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731if test "${ac_cv_path_ZIP+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733else
7734 case $ZIP in
7735 [\\/]* | ?:[\\/]*)
7736 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7737 ;;
7738 *)
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007745 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 +00007746 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751done
7752IFS=$as_save_IFS
7753
Reid Spencera773bd52006-08-04 18:18:08 +00007754 ;;
7755esac
7756fi
7757ZIP=$ac_cv_path_ZIP
7758if test -n "$ZIP"; then
7759 { echo "$as_me:$LINENO: result: $ZIP" >&5
7760echo "${ECHO_T}$ZIP" >&6; }
7761else
7762 { echo "$as_me:$LINENO: result: no" >&5
7763echo "${ECHO_T}no" >&6; }
7764fi
7765
7766
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007767for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007768do
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773if test "${ac_cv_path_OCAMLC+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776 case $OCAMLC in
7777 [\\/]* | ?:[\\/]*)
7778 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7779 ;;
7780 *)
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007787 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 +00007788 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792done
7793done
7794IFS=$as_save_IFS
7795
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007796 ;;
7797esac
7798fi
7799OCAMLC=$ac_cv_path_OCAMLC
7800if test -n "$OCAMLC"; then
7801 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7802echo "${ECHO_T}$OCAMLC" >&6; }
7803else
7804 { echo "$as_me:$LINENO: result: no" >&5
7805echo "${ECHO_T}no" >&6; }
7806fi
7807
7808
Gordon Henriksene7072162008-03-07 18:20:01 +00007809 test -n "$OCAMLC" && break
7810done
7811
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007812for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007813do
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7818if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820else
7821 case $OCAMLOPT in
7822 [\\/]* | ?:[\\/]*)
7823 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7824 ;;
7825 *)
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007832 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 +00007833 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837done
7838done
7839IFS=$as_save_IFS
7840
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007841 ;;
7842esac
7843fi
7844OCAMLOPT=$ac_cv_path_OCAMLOPT
7845if test -n "$OCAMLOPT"; then
7846 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7847echo "${ECHO_T}$OCAMLOPT" >&6; }
7848else
7849 { echo "$as_me:$LINENO: result: no" >&5
7850echo "${ECHO_T}no" >&6; }
7851fi
7852
7853
Gordon Henriksene7072162008-03-07 18:20:01 +00007854 test -n "$OCAMLOPT" && break
7855done
7856
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007857for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007858do
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 case $OCAMLDEP in
7867 [\\/]* | ?:[\\/]*)
7868 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7869 ;;
7870 *)
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007877 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 +00007878 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884IFS=$as_save_IFS
7885
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007886 ;;
7887esac
7888fi
7889OCAMLDEP=$ac_cv_path_OCAMLDEP
7890if test -n "$OCAMLDEP"; then
7891 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7892echo "${ECHO_T}$OCAMLDEP" >&6; }
7893else
7894 { echo "$as_me:$LINENO: result: no" >&5
7895echo "${ECHO_T}no" >&6; }
7896fi
7897
7898
Gordon Henriksene7072162008-03-07 18:20:01 +00007899 test -n "$OCAMLDEP" && break
7900done
7901
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007902for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007903do
7904 # Extract the first word of "$ac_prog", so it can be a program name with args.
7905set dummy $ac_prog; ac_word=$2
7906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 case $OCAMLDOC in
7912 [\\/]* | ?:[\\/]*)
7913 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7914 ;;
7915 *)
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007922 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 +00007923 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927done
7928done
7929IFS=$as_save_IFS
7930
7931 ;;
7932esac
7933fi
7934OCAMLDOC=$ac_cv_path_OCAMLDOC
7935if test -n "$OCAMLDOC"; then
7936 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7937echo "${ECHO_T}$OCAMLDOC" >&6; }
7938else
7939 { echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6; }
7941fi
7942
7943
7944 test -n "$OCAMLDOC" && break
7945done
7946
Torok Edwincc499a42008-10-22 09:56:27 +00007947for ac_prog in gas as
7948do
7949 # Extract the first word of "$ac_prog", so it can be a program name with args.
7950set dummy $ac_prog; ac_word=$2
7951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953if test "${ac_cv_path_GAS+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956 case $GAS in
7957 [\\/]* | ?:[\\/]*)
7958 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7959 ;;
7960 *)
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00007968 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972done
7973done
7974IFS=$as_save_IFS
7975
7976 ;;
7977esac
7978fi
7979GAS=$ac_cv_path_GAS
7980if test -n "$GAS"; then
7981 { echo "$as_me:$LINENO: result: $GAS" >&5
7982echo "${ECHO_T}$GAS" >&6; }
7983else
7984 { echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6; }
7986fi
7987
7988
7989 test -n "$GAS" && break
7990done
7991
Reid Spencera773bd52006-08-04 18:18:08 +00007992
7993{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7994echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7995if test "${llvm_cv_link_use_r+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997else
7998 ac_ext=c
7999ac_cpp='$CPP $CPPFLAGS'
8000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004 oldcflags="$CFLAGS"
8005 CFLAGS="$CFLAGS -Wl,-R."
8006 cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012
8013int
8014main ()
8015{
8016int main() { return 0; }
8017 ;
8018 return 0;
8019}
8020_ACEOF
8021rm -f conftest.$ac_objext conftest$ac_exeext
8022if { (ac_try="$ac_link"
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_link") 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
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008034 (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_exeext'
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 llvm_cv_link_use_r=yes
8056else
8057 echo "$as_me: failed program was:" >&5
8058sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 llvm_cv_link_use_r=no
8061fi
8062
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008063rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008064 conftest$ac_exeext conftest.$ac_ext
8065 CFLAGS="$oldcflags"
8066 ac_ext=c
8067ac_cpp='$CPP $CPPFLAGS'
8068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071
8072
8073fi
8074{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8075echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8076if test "$llvm_cv_link_use_r" = yes ; then
8077
8078cat >>confdefs.h <<\_ACEOF
8079#define HAVE_LINK_R 1
8080_ACEOF
8081
8082 fi
8083
8084
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008085{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8086echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8087if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090 ac_ext=c
8091ac_cpp='$CPP $CPPFLAGS'
8092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095
8096 oldcflags="$CFLAGS"
8097 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8098 cat >conftest.$ac_ext <<_ACEOF
8099/* confdefs.h. */
8100_ACEOF
8101cat confdefs.h >>conftest.$ac_ext
8102cat >>conftest.$ac_ext <<_ACEOF
8103/* end confdefs.h. */
8104
8105int
8106main ()
8107{
8108int main() { return 0; }
8109 ;
8110 return 0;
8111}
8112_ACEOF
8113rm -f conftest.$ac_objext conftest$ac_exeext
8114if { (ac_try="$ac_link"
8115case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118esac
8119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_link") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8128 { (case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8131esac
8132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_try") 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; } &&
8137 { ac_try='test -s conftest$ac_exeext'
8138 { (case "(($ac_try" in
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8141esac
8142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143 (eval "$ac_try") 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 llvm_cv_link_use_export_dynamic=yes
8148else
8149 echo "$as_me: failed program was:" >&5
8150sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 llvm_cv_link_use_export_dynamic=no
8153fi
8154
8155rm -f core conftest.err conftest.$ac_objext \
8156 conftest$ac_exeext conftest.$ac_ext
8157 CFLAGS="$oldcflags"
8158 ac_ext=c
8159ac_cpp='$CPP $CPPFLAGS'
8160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163
8164
8165fi
8166{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8167echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8168if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8169
8170cat >>confdefs.h <<\_ACEOF
8171#define HAVE_LINK_EXPORT_DYNAMIC 1
8172_ACEOF
8173
8174 fi
8175
8176
Reid Spencera773bd52006-08-04 18:18:08 +00008177
8178
8179{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8180echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8181if test "${ac_cv_c_const+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184 cat >conftest.$ac_ext <<_ACEOF
8185/* confdefs.h. */
8186_ACEOF
8187cat confdefs.h >>conftest.$ac_ext
8188cat >>conftest.$ac_ext <<_ACEOF
8189/* end confdefs.h. */
8190
8191int
8192main ()
8193{
8194/* FIXME: Include the comments suggested by Paul. */
8195#ifndef __cplusplus
8196 /* Ultrix mips cc rejects this. */
8197 typedef int charset[2];
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008198 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008199 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008200 char const *const *ccp;
8201 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008202 /* NEC SVR4.0.2 mips cc rejects this. */
8203 struct point {int x, y;};
8204 static struct point const zero = {0,0};
8205 /* AIX XL C 1.02.0.0 rejects this.
8206 It does not let you subtract one const X* pointer from another in
8207 an arm of an if-expression whose if-part is not a constant
8208 expression */
8209 const char *g = "string";
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008210 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008211 /* HPUX 7.0 cc rejects these. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008212 ++ccp;
8213 p = (char**) ccp;
8214 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008215 { /* SCO 3.2v4 cc rejects this. */
8216 char *t;
8217 char const *s = 0 ? (char *) 0 : (char const *) 0;
8218
8219 *t++ = 0;
8220 if (s) return 0;
8221 }
8222 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8223 int x[] = {25, 17};
8224 const int *foo = &x[0];
8225 ++foo;
8226 }
8227 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8228 typedef const int *iptr;
8229 iptr p = 0;
8230 ++p;
8231 }
8232 { /* AIX XL C 1.02.0.0 rejects this saying
8233 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8234 struct s { int j; const int *ap[3]; };
8235 struct s *b; b->j = 5;
8236 }
8237 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8238 const int foo = 10;
8239 if (!foo) return 0;
8240 }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008241 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008242#endif
8243
8244 ;
8245 return 0;
8246}
8247_ACEOF
8248rm -f conftest.$ac_objext
8249if { (ac_try="$ac_compile"
8250case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253esac
8254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263 { (case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266esac
8267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_try") 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; } &&
8272 { ac_try='test -s conftest.$ac_objext'
8273 { (case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8276esac
8277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_try") 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008282 ac_cv_c_const=yes
8283else
8284 echo "$as_me: failed program was:" >&5
8285sed 's/^/| /' conftest.$ac_ext >&5
8286
8287 ac_cv_c_const=no
8288fi
8289
8290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291fi
8292{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8293echo "${ECHO_T}$ac_cv_c_const" >&6; }
8294if test $ac_cv_c_const = no; then
8295
8296cat >>confdefs.h <<\_ACEOF
8297#define const
8298_ACEOF
8299
8300fi
8301
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008302
8303
8304
8305
8306
8307ac_header_dirent=no
8308for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8309 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008310{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8311echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314else
8315 cat >conftest.$ac_ext <<_ACEOF
8316/* confdefs.h. */
8317_ACEOF
8318cat confdefs.h >>conftest.$ac_ext
8319cat >>conftest.$ac_ext <<_ACEOF
8320/* end confdefs.h. */
8321#include <sys/types.h>
8322#include <$ac_hdr>
8323
8324int
8325main ()
8326{
8327if ((DIR *) 0)
8328return 0;
8329 ;
8330 return 0;
8331}
8332_ACEOF
8333rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008334if { (ac_try="$ac_compile"
8335case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338esac
8339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008346 (exit $ac_status); } &&
8347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361esac
8362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008367 eval "$as_ac_Header=yes"
8368else
8369 echo "$as_me: failed program was:" >&5
8370sed 's/^/| /' conftest.$ac_ext >&5
8371
Reid Spencera773bd52006-08-04 18:18:08 +00008372 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008373fi
Reid Spencera773bd52006-08-04 18:18:08 +00008374
8375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008376fi
Reid Spencera773bd52006-08-04 18:18:08 +00008377ac_res=`eval echo '${'$as_ac_Header'}'`
8378 { echo "$as_me:$LINENO: result: $ac_res" >&5
8379echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008380if test `eval echo '${'$as_ac_Header'}'` = yes; then
8381 cat >>confdefs.h <<_ACEOF
8382#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8383_ACEOF
8384
8385ac_header_dirent=$ac_hdr; break
8386fi
8387
8388done
8389# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8390if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008391 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8392echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008393if test "${ac_cv_search_opendir+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395else
8396 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008397cat >conftest.$ac_ext <<_ACEOF
8398/* confdefs.h. */
8399_ACEOF
8400cat confdefs.h >>conftest.$ac_ext
8401cat >>conftest.$ac_ext <<_ACEOF
8402/* end confdefs.h. */
8403
Reid Spencera773bd52006-08-04 18:18:08 +00008404/* Override any GCC internal prototype to avoid an error.
8405 Use char because int might match the return type of a GCC
8406 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008407#ifdef __cplusplus
8408extern "C"
8409#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008410char opendir ();
8411int
8412main ()
8413{
Reid Spencera773bd52006-08-04 18:18:08 +00008414return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008415 ;
8416 return 0;
8417}
8418_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008419for ac_lib in '' dir; do
8420 if test -z "$ac_lib"; then
8421 ac_res="none required"
8422 else
8423 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008425 fi
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427if { (ac_try="$ac_link"
8428case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431esac
8432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008434 ac_status=$?
8435 grep -v '^ *+' conftest.er1 >conftest.err
8436 rm -f conftest.er1
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441 { (case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8444esac
8445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_try") 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); }; } &&
8450 { ac_try='test -s conftest$ac_exeext'
8451 { (case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454esac
8455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_try") 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008460 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008461else
8462 echo "$as_me: failed program was:" >&5
8463sed 's/^/| /' conftest.$ac_ext >&5
8464
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008465
8466fi
8467
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008468rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008469 conftest$ac_exeext
8470 if test "${ac_cv_search_opendir+set}" = set; then
8471 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008472fi
John Criswell7a73b802003-06-30 21:59:07 +00008473done
Reid Spencera773bd52006-08-04 18:18:08 +00008474if test "${ac_cv_search_opendir+set}" = set; then
8475 :
8476else
8477 ac_cv_search_opendir=no
8478fi
8479rm conftest.$ac_ext
8480LIBS=$ac_func_search_save_LIBS
8481fi
8482{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8483echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8484ac_res=$ac_cv_search_opendir
8485if test "$ac_res" != no; then
8486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008487
Reid Spencera773bd52006-08-04 18:18:08 +00008488fi
8489
8490else
8491 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8492echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8493if test "${ac_cv_search_opendir+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495else
8496 ac_func_search_save_LIBS=$LIBS
8497cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h. */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h. */
8503
8504/* Override any GCC internal prototype to avoid an error.
8505 Use char because int might match the return type of a GCC
8506 builtin and then its argument prototype would still apply. */
8507#ifdef __cplusplus
8508extern "C"
8509#endif
8510char opendir ();
8511int
8512main ()
8513{
8514return opendir ();
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519for ac_lib in '' x; do
8520 if test -z "$ac_lib"; then
8521 ac_res="none required"
8522 else
8523 ac_res=-l$ac_lib
8524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8525 fi
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527if { (ac_try="$ac_link"
8528case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_link") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8541 { (case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544esac
8545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_try") 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; } &&
8550 { ac_try='test -s conftest$ac_exeext'
8551 { (case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_try") 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008560 ac_cv_search_opendir=$ac_res
8561else
8562 echo "$as_me: failed program was:" >&5
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
8565
8566fi
8567
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008568rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008569 conftest$ac_exeext
8570 if test "${ac_cv_search_opendir+set}" = set; then
8571 break
8572fi
8573done
8574if test "${ac_cv_search_opendir+set}" = set; then
8575 :
8576else
8577 ac_cv_search_opendir=no
8578fi
8579rm conftest.$ac_ext
8580LIBS=$ac_func_search_save_LIBS
8581fi
8582{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8583echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8584ac_res=$ac_cv_search_opendir
8585if test "$ac_res" != no; then
8586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8587
8588fi
8589
8590fi
John Criswell7a73b802003-06-30 21:59:07 +00008591
8592
8593for ac_header in dlfcn.h
8594do
8595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008600 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008601fi
Reid Spencera773bd52006-08-04 18:18:08 +00008602ac_res=`eval echo '${'$as_ac_Header'}'`
8603 { echo "$as_me:$LINENO: result: $ac_res" >&5
8604echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008605else
Brian Gaeke0a621332004-09-08 20:38:05 +00008606 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008607{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008609cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008615$ac_includes_default
8616#include <$ac_header>
8617_ACEOF
8618rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008619if { (ac_try="$ac_compile"
8620case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8623esac
8624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008626 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008627 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1
8629 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8633 { (case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_try") 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; } &&
8642 { ac_try='test -s conftest.$ac_objext'
8643 { (case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646esac
8647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_try") 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008652 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008653else
8654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008655sed 's/^/| /' conftest.$ac_ext >&5
8656
Reid Spencera773bd52006-08-04 18:18:08 +00008657 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008658fi
Reid Spencera773bd52006-08-04 18:18:08 +00008659
8660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8662echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008663
8664# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008665{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008667cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008668/* confdefs.h. */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h. */
8673#include <$ac_header>
8674_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008675if { (ac_try="$ac_cpp conftest.$ac_ext"
8676case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679esac
8680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008687 (exit $ac_status); } >/dev/null; then
8688 if test -s conftest.err; then
8689 ac_cpp_err=$ac_c_preproc_warn_flag
8690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8691 else
8692 ac_cpp_err=
8693 fi
8694else
8695 ac_cpp_err=yes
8696fi
8697if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008698 ac_header_preproc=yes
8699else
8700 echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
8703 ac_header_preproc=no
8704fi
Reid Spencera773bd52006-08-04 18:18:08 +00008705
Brian Gaeke0a621332004-09-08 20:38:05 +00008706rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8708echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008709
8710# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8712 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8717 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008718 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008719 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008732 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008733## ----------------------------------- ##
8734## Report this to llvmbugs@cs.uiuc.edu ##
8735## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008736_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008737 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008738 ;;
8739esac
Reid Spencera773bd52006-08-04 18:18:08 +00008740{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008745 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008746fi
Reid Spencera773bd52006-08-04 18:18:08 +00008747ac_res=`eval echo '${'$as_ac_Header'}'`
8748 { echo "$as_me:$LINENO: result: $ac_res" >&5
8749echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008750
8751fi
John Criswell7a73b802003-06-30 21:59:07 +00008752if test `eval echo '${'$as_ac_Header'}'` = yes; then
8753 cat >>confdefs.h <<_ACEOF
8754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755_ACEOF
8756
8757fi
8758
8759done
8760
Reid Spencera773bd52006-08-04 18:18:08 +00008761# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008762if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008763 enableval=$enable_ltdl_install;
8764fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008765
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008766
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008767
8768
8769if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008770 INSTALL_LTDL_TRUE=
8771 INSTALL_LTDL_FALSE='#'
8772else
8773 INSTALL_LTDL_TRUE='#'
8774 INSTALL_LTDL_FALSE=
8775fi
8776
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008777
8778
8779if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008780 CONVENIENCE_LTDL_TRUE=
8781 CONVENIENCE_LTDL_FALSE='#'
8782else
8783 CONVENIENCE_LTDL_TRUE='#'
8784 CONVENIENCE_LTDL_FALSE=
8785fi
8786
8787
Reid Spencera773bd52006-08-04 18:18:08 +00008788{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8789echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008790library_names_spec=
8791libname_spec='lib$name'
8792soname_spec=
8793shrext_cmds=".so"
8794postinstall_cmds=
8795postuninstall_cmds=
8796finish_cmds=
8797finish_eval=
8798shlibpath_var=
8799shlibpath_overrides_runpath=unknown
8800version_type=none
8801dynamic_linker="$host_os ld.so"
8802sys_lib_dlsearch_path_spec="/lib /usr/lib"
8803if test "$GCC" = yes; then
8804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8805 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8806 # if the path contains ";" then we assume it to be the separator
8807 # otherwise default to the standard path separator (i.e. ":") - it is
8808 # assumed that no part of a normal pathname contains ";" but that should
8809 # okay in the real world where ";" in dirpaths is itself problematic.
8810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8811 else
8812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8813 fi
8814else
8815 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8816fi
8817need_lib_prefix=unknown
8818hardcode_into_libs=no
8819
8820# when you set need_version to no, make sure it does not cause -set_version
8821# flags to be left without arguments
8822need_version=unknown
8823
8824case $host_os in
8825aix3*)
8826 version_type=linux
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8828 shlibpath_var=LIBPATH
8829
8830 # AIX 3 has no versioning support, so we append a major version to the name.
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 ;;
8833
8834aix4* | aix5*)
8835 version_type=linux
8836 need_lib_prefix=no
8837 need_version=no
8838 hardcode_into_libs=yes
8839 if test "$host_cpu" = ia64; then
8840 # AIX 5 supports IA64
8841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8842 shlibpath_var=LD_LIBRARY_PATH
8843 else
8844 # With GCC up to 2.95.x, collect2 would create an import file
8845 # for dependence libraries. The import file would start with
8846 # the line `#! .'. This would cause the generated library to
8847 # depend on `.', always an invalid library. This was fixed in
8848 # development snapshots of GCC prior to 3.0.
8849 case $host_os in
8850 aix4 | aix4.[01] | aix4.[01].*)
8851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8852 echo ' yes '
8853 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8854 :
8855 else
8856 can_build_shared=no
8857 fi
8858 ;;
8859 esac
8860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8861 # soname into executable. Probably we can add versioning support to
8862 # collect2, so additional links can be useful in future.
8863 if test "$aix_use_runtimelinking" = yes; then
8864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8865 # instead of lib<name>.a to let people know that these are not
8866 # typical AIX shared libraries.
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8868 else
8869 # We preserve .a as extension for shared libraries through AIX4.2
8870 # and later when we are not doing run time linking.
8871 library_names_spec='${libname}${release}.a $libname.a'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 fi
8874 shlibpath_var=LIBPATH
8875 fi
8876 ;;
8877
8878amigaos*)
8879 library_names_spec='$libname.ixlibrary $libname.a'
8880 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8881 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'
8882 ;;
8883
8884beos*)
8885 library_names_spec='${libname}${shared_ext}'
8886 dynamic_linker="$host_os ld.so"
8887 shlibpath_var=LIBRARY_PATH
8888 ;;
8889
8890bsdi[45]*)
8891 version_type=linux
8892 need_version=no
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8898 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8899 # the default ld.so.conf also contains /usr/contrib/lib and
8900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8901 # libtool to hard-code these into programs
8902 ;;
8903
8904cygwin* | mingw* | pw32*)
8905 version_type=windows
8906 shrext_cmds=".dll"
8907 need_version=no
8908 need_lib_prefix=no
8909
8910 case $GCC,$host_os in
8911 yes,cygwin* | yes,mingw* | yes,pw32*)
8912 library_names_spec='$libname.dll.a'
8913 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8914 postinstall_cmds='base_file=`basename \${file}`~
8915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8916 dldir=$destdir/`dirname \$dlpath`~
8917 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008918 $install_prog $dir/$dlname \$dldir/$dlname~
8919 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008920 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8921 dlpath=$dir/\$dldll~
8922 $rm \$dlpath'
8923 shlibpath_overrides_runpath=yes
8924
8925 case $host_os in
8926 cygwin*)
8927 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8928 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8929 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8930 ;;
8931 mingw*)
8932 # MinGW DLLs use traditional 'lib' prefix
8933 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8935 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8936 # It is most probably a Windows format PATH printed by
8937 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8938 # path with ; separators, and with drive letters. We can handle the
8939 # drive letters (cygwin fileutils understands them), so leave them,
8940 # especially as we might pass files found there to a mingw objdump,
8941 # which wouldn't understand a cygwinified path. Ahh.
8942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8943 else
8944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8945 fi
8946 ;;
8947 pw32*)
8948 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008949 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 +00008950 ;;
8951 esac
8952 ;;
8953
8954 *)
8955 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8956 ;;
8957 esac
8958 dynamic_linker='Win32 ld.exe'
8959 # FIXME: first we should search . and the directory the executable is in
8960 shlibpath_var=PATH
8961 ;;
8962
8963darwin* | rhapsody*)
8964 dynamic_linker="$host_os dyld"
8965 version_type=darwin
8966 need_lib_prefix=no
8967 need_version=no
8968 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8969 soname_spec='${libname}${release}${major}$shared_ext'
8970 shlibpath_overrides_runpath=yes
8971 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008972 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008973 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8974 if test "$GCC" = yes; then
8975 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"`
8976 else
8977 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8978 fi
8979 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8980 ;;
8981
8982dgux*)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 ;;
8990
8991freebsd1*)
8992 dynamic_linker=no
8993 ;;
8994
8995kfreebsd*-gnu)
8996 version_type=linux
8997 need_lib_prefix=no
8998 need_version=no
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 shlibpath_overrides_runpath=no
9003 hardcode_into_libs=yes
9004 dynamic_linker='GNU ld.so'
9005 ;;
9006
Reid Spencera773bd52006-08-04 18:18:08 +00009007freebsd* | dragonfly*)
9008 # DragonFly does not have aout. When/if they implement a new
9009 # versioning mechanism, adjust this.
9010 if test -x /usr/bin/objformat; then
9011 objformat=`/usr/bin/objformat`
9012 else
9013 case $host_os in
9014 freebsd[123]*) objformat=aout ;;
9015 *) objformat=elf ;;
9016 esac
9017 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009018 version_type=freebsd-$objformat
9019 case $version_type in
9020 freebsd-elf*)
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9022 need_version=no
9023 need_lib_prefix=no
9024 ;;
9025 freebsd-*)
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9027 need_version=yes
9028 ;;
9029 esac
9030 shlibpath_var=LD_LIBRARY_PATH
9031 case $host_os in
9032 freebsd2*)
9033 shlibpath_overrides_runpath=yes
9034 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009035 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009036 shlibpath_overrides_runpath=yes
9037 hardcode_into_libs=yes
9038 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009039 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9040 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009041 shlibpath_overrides_runpath=no
9042 hardcode_into_libs=yes
9043 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009044 freebsd*) # from 4.6 on
9045 shlibpath_overrides_runpath=yes
9046 hardcode_into_libs=yes
9047 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009048 esac
9049 ;;
9050
9051gnu*)
9052 version_type=linux
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 hardcode_into_libs=yes
9059 ;;
9060
9061hpux9* | hpux10* | hpux11*)
9062 # Give a soname corresponding to the major version so that dld.sl refuses to
9063 # link against other versions.
9064 version_type=sunos
9065 need_lib_prefix=no
9066 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009067 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009068 ia64*)
9069 shrext_cmds='.so'
9070 hardcode_into_libs=yes
9071 dynamic_linker="$host_os dld.so"
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 if test "X$HPUX_IA64_MODE" = X32; then
9077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9078 else
9079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9080 fi
9081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9082 ;;
9083 hppa*64*)
9084 shrext_cmds='.sl'
9085 hardcode_into_libs=yes
9086 dynamic_linker="$host_os dld.sl"
9087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9093 ;;
9094 *)
9095 shrext_cmds='.sl'
9096 dynamic_linker="$host_os dld.sl"
9097 shlibpath_var=SHLIB_PATH
9098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 ;;
9102 esac
9103 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9104 postinstall_cmds='chmod 555 $lib'
9105 ;;
9106
Reid Spencera773bd52006-08-04 18:18:08 +00009107interix3*)
9108 version_type=linux
9109 need_lib_prefix=no
9110 need_version=no
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9114 shlibpath_var=LD_LIBRARY_PATH
9115 shlibpath_overrides_runpath=no
9116 hardcode_into_libs=yes
9117 ;;
9118
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009119irix5* | irix6* | nonstopux*)
9120 case $host_os in
9121 nonstopux*) version_type=nonstopux ;;
9122 *)
9123 if test "$lt_cv_prog_gnu_ld" = yes; then
9124 version_type=linux
9125 else
9126 version_type=irix
9127 fi ;;
9128 esac
9129 need_lib_prefix=no
9130 need_version=no
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9133 case $host_os in
9134 irix5* | nonstopux*)
9135 libsuff= shlibsuff=
9136 ;;
9137 *)
9138 case $LD in # libtool.m4 will add one of these switches to LD
9139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9140 libsuff= shlibsuff= libmagic=32-bit;;
9141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9142 libsuff=32 shlibsuff=N32 libmagic=N32;;
9143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9145 *) libsuff= shlibsuff= libmagic=never-match;;
9146 esac
9147 ;;
9148 esac
9149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9150 shlibpath_overrides_runpath=no
9151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9153 hardcode_into_libs=yes
9154 ;;
9155
9156# No shared lib support for Linux oldld, aout, or coff.
9157linux*oldld* | linux*aout* | linux*coff*)
9158 dynamic_linker=no
9159 ;;
9160
9161# This must be Linux ELF.
9162linux*)
9163 version_type=linux
9164 need_lib_prefix=no
9165 need_version=no
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 shlibpath_overrides_runpath=no
9171 # This implies no fast_install, which is unacceptable.
9172 # Some rework will be needed to allow for fast_install
9173 # before this can be enabled.
9174 hardcode_into_libs=yes
9175
9176 # Append ld.so.conf contents to the search path
9177 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009178 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 +00009179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9180 fi
9181
9182 # We used to test for /lib/ld.so.1 and disable shared libraries on
9183 # powerpc, because MkLinux only supported shared libraries with the
9184 # GNU dynamic linker. Since this was broken with cross compilers,
9185 # most powerpc-linux boxes support dynamic linking these days and
9186 # people can always --disable-shared, the test was removed, and we
9187 # assume the GNU/Linux dynamic linker is in use.
9188 dynamic_linker='GNU/Linux ld.so'
9189 ;;
9190
9191knetbsd*-gnu)
9192 version_type=linux
9193 need_lib_prefix=no
9194 need_version=no
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 shlibpath_overrides_runpath=no
9199 hardcode_into_libs=yes
9200 dynamic_linker='GNU ld.so'
9201 ;;
9202
9203netbsd*)
9204 version_type=sunos
9205 need_lib_prefix=no
9206 need_version=no
9207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9210 dynamic_linker='NetBSD (a.out) ld.so'
9211 else
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 dynamic_linker='NetBSD ld.elf_so'
9215 fi
9216 shlibpath_var=LD_LIBRARY_PATH
9217 shlibpath_overrides_runpath=yes
9218 hardcode_into_libs=yes
9219 ;;
9220
9221newsos6)
9222 version_type=linux
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=yes
9226 ;;
9227
9228nto-qnx*)
9229 version_type=linux
9230 need_lib_prefix=no
9231 need_version=no
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=yes
9236 ;;
9237
9238openbsd*)
9239 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009240 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9243 case $host_os in
9244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9245 *) need_version=no ;;
9246 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9251 case $host_os in
9252 openbsd2.[89] | openbsd2.[89].*)
9253 shlibpath_overrides_runpath=no
9254 ;;
9255 *)
9256 shlibpath_overrides_runpath=yes
9257 ;;
9258 esac
9259 else
9260 shlibpath_overrides_runpath=yes
9261 fi
9262 ;;
9263
9264os2*)
9265 libname_spec='$name'
9266 shrext_cmds=".dll"
9267 need_lib_prefix=no
9268 library_names_spec='$libname${shared_ext} $libname.a'
9269 dynamic_linker='OS/2 ld.exe'
9270 shlibpath_var=LIBPATH
9271 ;;
9272
9273osf3* | osf4* | osf5*)
9274 version_type=osf
9275 need_lib_prefix=no
9276 need_version=no
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9279 shlibpath_var=LD_LIBRARY_PATH
9280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9282 ;;
9283
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009284solaris*)
9285 version_type=linux
9286 need_lib_prefix=no
9287 need_version=no
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=yes
9292 hardcode_into_libs=yes
9293 # ldd complains unless libraries are executable
9294 postinstall_cmds='chmod +x $lib'
9295 ;;
9296
9297sunos4*)
9298 version_type=sunos
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=yes
9303 if test "$with_gnu_ld" = yes; then
9304 need_lib_prefix=no
9305 fi
9306 need_version=yes
9307 ;;
9308
Reid Spencera773bd52006-08-04 18:18:08 +00009309sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310 version_type=linux
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 soname_spec='${libname}${release}${shared_ext}$major'
9313 shlibpath_var=LD_LIBRARY_PATH
9314 case $host_vendor in
9315 sni)
9316 shlibpath_overrides_runpath=no
9317 need_lib_prefix=no
9318 export_dynamic_flag_spec='${wl}-Blargedynsym'
9319 runpath_var=LD_RUN_PATH
9320 ;;
9321 siemens)
9322 need_lib_prefix=no
9323 ;;
9324 motorola)
9325 need_lib_prefix=no
9326 need_version=no
9327 shlibpath_overrides_runpath=no
9328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9329 ;;
9330 esac
9331 ;;
9332
9333sysv4*MP*)
9334 if test -d /usr/nec ;then
9335 version_type=linux
9336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9337 soname_spec='$libname${shared_ext}.$major'
9338 shlibpath_var=LD_LIBRARY_PATH
9339 fi
9340 ;;
9341
Reid Spencera773bd52006-08-04 18:18:08 +00009342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9343 version_type=freebsd-elf
9344 need_lib_prefix=no
9345 need_version=no
9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9347 soname_spec='${libname}${release}${shared_ext}$major'
9348 shlibpath_var=LD_LIBRARY_PATH
9349 hardcode_into_libs=yes
9350 if test "$with_gnu_ld" = yes; then
9351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9352 shlibpath_overrides_runpath=no
9353 else
9354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9355 shlibpath_overrides_runpath=yes
9356 case $host_os in
9357 sco3.2v5*)
9358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9359 ;;
9360 esac
9361 fi
9362 sys_lib_dlsearch_path_spec='/usr/lib'
9363 ;;
9364
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009365uts4*)
9366 version_type=linux
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 ;;
9371
9372*)
9373 dynamic_linker=no
9374 ;;
9375esac
Reid Spencera773bd52006-08-04 18:18:08 +00009376{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9377echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009378test "$dynamic_linker" = no && can_build_shared=no
9379
Reid Spencera773bd52006-08-04 18:18:08 +00009380variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9381if test "$GCC" = yes; then
9382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9383fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009384
Reid Spencera773bd52006-08-04 18:18:08 +00009385
9386{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9387echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009388if test "${libltdl_cv_shlibext+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9390else
9391
9392module=yes
9393eval libltdl_cv_shlibext=$shrext_cmds
9394
9395fi
Reid Spencera773bd52006-08-04 18:18:08 +00009396{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9397echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009398if test -n "$libltdl_cv_shlibext"; then
9399
9400cat >>confdefs.h <<_ACEOF
9401#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9402_ACEOF
9403
9404fi
9405
9406
Reid Spencera773bd52006-08-04 18:18:08 +00009407{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9408echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009409if test "${libltdl_cv_shlibpath_var+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411else
9412 libltdl_cv_shlibpath_var="$shlibpath_var"
9413fi
Reid Spencera773bd52006-08-04 18:18:08 +00009414{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9415echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009416if test -n "$libltdl_cv_shlibpath_var"; then
9417
9418cat >>confdefs.h <<_ACEOF
9419#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9420_ACEOF
9421
9422fi
9423
9424
Reid Spencera773bd52006-08-04 18:18:08 +00009425{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9426echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009427if test "${libltdl_cv_sys_search_path+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429else
9430 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9431fi
Reid Spencera773bd52006-08-04 18:18:08 +00009432{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9433echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009434if test -n "$libltdl_cv_sys_search_path"; then
9435 sys_search_path=
9436 for dir in $libltdl_cv_sys_search_path; do
9437 if test -z "$sys_search_path"; then
9438 sys_search_path="$dir"
9439 else
9440 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9441 fi
9442 done
9443
9444cat >>confdefs.h <<_ACEOF
9445#define LTDL_SYSSEARCHPATH "$sys_search_path"
9446_ACEOF
9447
9448fi
9449
Reid Spencera773bd52006-08-04 18:18:08 +00009450{ echo "$as_me:$LINENO: checking for objdir" >&5
9451echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009452if test "${libltdl_cv_objdir+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454else
9455 libltdl_cv_objdir="$objdir"
9456 if test -n "$objdir"; then
9457 :
9458 else
9459 rm -f .libs 2>/dev/null
9460 mkdir .libs 2>/dev/null
9461 if test -d .libs; then
9462 libltdl_cv_objdir=.libs
9463 else
9464 # MS-DOS does not allow filenames that begin with a dot.
9465 libltdl_cv_objdir=_libs
9466 fi
9467 rmdir .libs 2>/dev/null
9468 fi
9469
9470fi
Reid Spencera773bd52006-08-04 18:18:08 +00009471{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9472echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009473
9474cat >>confdefs.h <<_ACEOF
9475#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9476_ACEOF
9477
9478
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009479
9480
9481
9482
9483# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009484{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9485echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009486if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489
9490# These are sane defaults that work on at least a few old systems.
9491# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9492
9493# Character class describing NM global symbol codes.
9494symcode='[BCDEGRST]'
9495
9496# Regexp to match symbols that can be accessed directly from C.
9497sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9498
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499# Transform an extracted symbol line into a proper C declaration
9500lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9501
9502# Transform an extracted symbol line into symbol name and symbol address
9503lt_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'"
9504
9505# Define system-specific variables.
9506case $host_os in
9507aix*)
9508 symcode='[BCDT]'
9509 ;;
9510cygwin* | mingw* | pw32*)
9511 symcode='[ABCDGISTW]'
9512 ;;
9513hpux*) # Its linker distinguishes data from code symbols
9514 if test "$host_cpu" = ia64; then
9515 symcode='[ABCDEGRST]'
9516 fi
9517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9518 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'"
9519 ;;
9520linux*)
9521 if test "$host_cpu" = ia64; then
9522 symcode='[ABCDGIRSTW]'
9523 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9524 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'"
9525 fi
9526 ;;
9527irix* | nonstopux*)
9528 symcode='[BCDEGRST]'
9529 ;;
9530osf*)
9531 symcode='[BCDEGQRST]'
9532 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009533solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009534 symcode='[BDRT]'
9535 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009536sco3.2v5*)
9537 symcode='[DT]'
9538 ;;
9539sysv4.2uw2*)
9540 symcode='[DT]'
9541 ;;
9542sysv5* | sco5v6* | unixware* | OpenUNIX*)
9543 symcode='[ABDT]'
9544 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545sysv4)
9546 symcode='[DFNSTU]'
9547 ;;
9548esac
9549
9550# Handle CRLF in mingw tool chain
9551opt_cr=
9552case $build_os in
9553mingw*)
9554 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9555 ;;
9556esac
9557
9558# If we're using GNU nm, then use its standard symbol codes.
9559case `$NM -V 2>&1` in
9560*GNU* | *'with BFD'*)
9561 symcode='[ABCDGIRSTW]' ;;
9562esac
9563
9564# Try without a prefix undercore, then with it.
9565for ac_symprfx in "" "_"; do
9566
Reid Spencera773bd52006-08-04 18:18:08 +00009567 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9568 symxfrm="\\1 $ac_symprfx\\2 \\2"
9569
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009570 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009571 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 +00009572
9573 # Check to see that the pipe works correctly.
9574 pipe_works=no
9575
9576 rm -f conftest*
9577 cat > conftest.$ac_ext <<EOF
9578#ifdef __cplusplus
9579extern "C" {
9580#endif
9581char nm_test_var;
9582void nm_test_func(){}
9583#ifdef __cplusplus
9584}
9585#endif
9586int main(){nm_test_var='a';nm_test_func();return(0);}
9587EOF
9588
9589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590 (eval $ac_compile) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; then
9594 # Now try to grab the symbols.
9595 nlist=conftest.nm
9596 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9597 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } && test -s "$nlist"; then
9601 # Try sorting and uniquifying the output.
9602 if sort "$nlist" | uniq > "$nlist"T; then
9603 mv -f "$nlist"T "$nlist"
9604 else
9605 rm -f "$nlist"T
9606 fi
9607
9608 # Make sure that we snagged all the symbols we need.
9609 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9610 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9611 cat <<EOF > conftest.$ac_ext
9612#ifdef __cplusplus
9613extern "C" {
9614#endif
9615
9616EOF
9617 # Now generate the symbol file.
9618 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9619
9620 cat <<EOF >> conftest.$ac_ext
9621#if defined (__STDC__) && __STDC__
9622# define lt_ptr_t void *
9623#else
9624# define lt_ptr_t char *
9625# define const
9626#endif
9627
9628/* The mapping between symbol names and symbols. */
9629const struct {
9630 const char *name;
9631 lt_ptr_t address;
9632}
9633lt_preloaded_symbols[] =
9634{
9635EOF
9636 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9637 cat <<\EOF >> conftest.$ac_ext
9638 {0, (lt_ptr_t) 0}
9639};
9640
9641#ifdef __cplusplus
9642}
9643#endif
9644EOF
9645 # Now try linking the two files.
9646 mv conftest.$ac_objext conftstm.$ac_objext
9647 lt_save_LIBS="$LIBS"
9648 lt_save_CFLAGS="$CFLAGS"
9649 LIBS="conftstm.$ac_objext"
9650 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9656 pipe_works=yes
9657 fi
9658 LIBS="$lt_save_LIBS"
9659 CFLAGS="$lt_save_CFLAGS"
9660 else
9661 echo "cannot find nm_test_func in $nlist" >&5
9662 fi
9663 else
9664 echo "cannot find nm_test_var in $nlist" >&5
9665 fi
9666 else
9667 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9668 fi
9669 else
9670 echo "$progname: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9672 fi
9673 rm -f conftest* conftst*
9674
9675 # Do not use the global_symbol_pipe unless it works.
9676 if test "$pipe_works" = yes; then
9677 break
9678 else
9679 lt_cv_sys_global_symbol_pipe=
9680 fi
9681done
9682
9683fi
9684
9685if test -z "$lt_cv_sys_global_symbol_pipe"; then
9686 lt_cv_sys_global_symbol_to_cdecl=
9687fi
9688if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009689 { echo "$as_me:$LINENO: result: failed" >&5
9690echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009691else
Reid Spencera773bd52006-08-04 18:18:08 +00009692 { echo "$as_me:$LINENO: result: ok" >&5
9693echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009694fi
9695
9696
Reid Spencera773bd52006-08-04 18:18:08 +00009697{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9698echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009699if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701else
9702 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9703 libltdl_cv_preloaded_symbols=yes
9704 else
9705 libltdl_cv_preloaded_symbols=no
9706 fi
9707
9708fi
Reid Spencera773bd52006-08-04 18:18:08 +00009709{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9710echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009711if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9712
9713cat >>confdefs.h <<\_ACEOF
9714#define HAVE_PRELOADED_SYMBOLS 1
9715_ACEOF
9716
9717fi
9718
9719LIBADD_DL=
9720
9721ac_ext=c
9722ac_cpp='$CPP $CPPFLAGS'
9723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9725ac_compiler_gnu=$ac_cv_c_compiler_gnu
9726
9727
Reid Spencera773bd52006-08-04 18:18:08 +00009728{ echo "$as_me:$LINENO: checking for shl_load" >&5
9729echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009730if test "${ac_cv_func_shl_load+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9732else
9733 cat >conftest.$ac_ext <<_ACEOF
9734/* confdefs.h. */
9735_ACEOF
9736cat confdefs.h >>conftest.$ac_ext
9737cat >>conftest.$ac_ext <<_ACEOF
9738/* end confdefs.h. */
9739/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9741#define shl_load innocuous_shl_load
9742
9743/* System header to define __stub macros and hopefully few prototypes,
9744 which can conflict with char shl_load (); below.
9745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9746 <limits.h> exists even on freestanding compilers. */
9747
9748#ifdef __STDC__
9749# include <limits.h>
9750#else
9751# include <assert.h>
9752#endif
9753
9754#undef shl_load
9755
Reid Spencera773bd52006-08-04 18:18:08 +00009756/* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009759#ifdef __cplusplus
9760extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762char shl_load ();
9763/* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009766#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009767choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768#endif
9769
9770int
9771main ()
9772{
Reid Spencera773bd52006-08-04 18:18:08 +00009773return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009774 ;
9775 return 0;
9776}
9777_ACEOF
9778rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009779if { (ac_try="$ac_link"
9780case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9783esac
9784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009791 (exit $ac_status); } &&
9792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796esac
9797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; } &&
9802 { ac_try='test -s conftest$ac_exeext'
9803 { (case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806esac
9807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_try") 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812 ac_cv_func_shl_load=yes
9813else
9814 echo "$as_me: failed program was:" >&5
9815sed 's/^/| /' conftest.$ac_ext >&5
9816
Reid Spencera773bd52006-08-04 18:18:08 +00009817 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818fi
Reid Spencera773bd52006-08-04 18:18:08 +00009819
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009820rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009821 conftest$ac_exeext conftest.$ac_ext
9822fi
Reid Spencera773bd52006-08-04 18:18:08 +00009823{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9824echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825if test $ac_cv_func_shl_load = yes; then
9826
9827cat >>confdefs.h <<\_ACEOF
9828#define HAVE_SHL_LOAD 1
9829_ACEOF
9830
9831else
Reid Spencera773bd52006-08-04 18:18:08 +00009832 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9833echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009834if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836else
9837 ac_check_lib_save_LIBS=$LIBS
9838LIBS="-ldld $LIBS"
9839cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h. */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h. */
9845
Reid Spencera773bd52006-08-04 18:18:08 +00009846/* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849#ifdef __cplusplus
9850extern "C"
9851#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852char shl_load ();
9853int
9854main ()
9855{
Reid Spencera773bd52006-08-04 18:18:08 +00009856return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857 ;
9858 return 0;
9859}
9860_ACEOF
9861rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009862if { (ac_try="$ac_link"
9863case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866esac
9867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009874 (exit $ac_status); } &&
9875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879esac
9880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_try") 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try='test -s conftest$ac_exeext'
9886 { (case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9889esac
9890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_try") 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009895 ac_cv_lib_dld_shl_load=yes
9896else
9897 echo "$as_me: failed program was:" >&5
9898sed 's/^/| /' conftest.$ac_ext >&5
9899
Reid Spencera773bd52006-08-04 18:18:08 +00009900 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901fi
Reid Spencera773bd52006-08-04 18:18:08 +00009902
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009903rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904 conftest$ac_exeext conftest.$ac_ext
9905LIBS=$ac_check_lib_save_LIBS
9906fi
Reid Spencera773bd52006-08-04 18:18:08 +00009907{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9908echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909if test $ac_cv_lib_dld_shl_load = yes; then
9910
9911cat >>confdefs.h <<\_ACEOF
9912#define HAVE_SHL_LOAD 1
9913_ACEOF
9914
9915 LIBADD_DL="$LIBADD_DL -ldld"
9916else
Reid Spencera773bd52006-08-04 18:18:08 +00009917 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9918echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921else
9922 ac_check_lib_save_LIBS=$LIBS
9923LIBS="-ldl $LIBS"
9924cat >conftest.$ac_ext <<_ACEOF
9925/* confdefs.h. */
9926_ACEOF
9927cat confdefs.h >>conftest.$ac_ext
9928cat >>conftest.$ac_ext <<_ACEOF
9929/* end confdefs.h. */
9930
Reid Spencera773bd52006-08-04 18:18:08 +00009931/* Override any GCC internal prototype to avoid an error.
9932 Use char because int might match the return type of a GCC
9933 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934#ifdef __cplusplus
9935extern "C"
9936#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937char dlopen ();
9938int
9939main ()
9940{
Reid Spencera773bd52006-08-04 18:18:08 +00009941return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942 ;
9943 return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009947if { (ac_try="$ac_link"
9948case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961 { (case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_try") 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974esac
9975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_try") 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009980 ac_cv_lib_dl_dlopen=yes
9981else
9982 echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
Reid Spencera773bd52006-08-04 18:18:08 +00009985 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009986fi
Reid Spencera773bd52006-08-04 18:18:08 +00009987
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009988rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009989 conftest$ac_exeext conftest.$ac_ext
9990LIBS=$ac_check_lib_save_LIBS
9991fi
Reid Spencera773bd52006-08-04 18:18:08 +00009992{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9993echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994if test $ac_cv_lib_dl_dlopen = yes; then
9995
9996cat >>confdefs.h <<\_ACEOF
9997#define HAVE_LIBDL 1
9998_ACEOF
9999
10000 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10001else
10002 cat >conftest.$ac_ext <<_ACEOF
10003/* confdefs.h. */
10004_ACEOF
10005cat confdefs.h >>conftest.$ac_ext
10006cat >>conftest.$ac_ext <<_ACEOF
10007/* end confdefs.h. */
10008#if HAVE_DLFCN_H
10009# include <dlfcn.h>
10010#endif
10011
10012int
10013main ()
10014{
10015dlopen(0, 0);
10016 ;
10017 return 0;
10018}
10019_ACEOF
10020rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010021if { (ac_try="$ac_link"
10022case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025esac
10026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038esac
10039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_try") 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010054
10055cat >>confdefs.h <<\_ACEOF
10056#define HAVE_LIBDL 1
10057_ACEOF
10058 libltdl_cv_func_dlopen="yes"
10059else
10060 echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
Reid Spencera773bd52006-08-04 18:18:08 +000010063 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10064echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010065if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067else
10068 ac_check_lib_save_LIBS=$LIBS
10069LIBS="-lsvld $LIBS"
10070cat >conftest.$ac_ext <<_ACEOF
10071/* confdefs.h. */
10072_ACEOF
10073cat confdefs.h >>conftest.$ac_ext
10074cat >>conftest.$ac_ext <<_ACEOF
10075/* end confdefs.h. */
10076
Reid Spencera773bd52006-08-04 18:18:08 +000010077/* Override any GCC internal prototype to avoid an error.
10078 Use char because int might match the return type of a GCC
10079 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080#ifdef __cplusplus
10081extern "C"
10082#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083char dlopen ();
10084int
10085main ()
10086{
Reid Spencera773bd52006-08-04 18:18:08 +000010087return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088 ;
10089 return 0;
10090}
10091_ACEOF
10092rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010093if { (ac_try="$ac_link"
10094case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097esac
10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010105 (exit $ac_status); } &&
10106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10107 { (case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110esac
10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_try") 2>&5
10113 ac_status=$?
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; } &&
10116 { ac_try='test -s conftest$ac_exeext'
10117 { (case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120esac
10121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010126 ac_cv_lib_svld_dlopen=yes
10127else
10128 echo "$as_me: failed program was:" >&5
10129sed 's/^/| /' conftest.$ac_ext >&5
10130
Reid Spencera773bd52006-08-04 18:18:08 +000010131 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132fi
Reid Spencera773bd52006-08-04 18:18:08 +000010133
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010134rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010135 conftest$ac_exeext conftest.$ac_ext
10136LIBS=$ac_check_lib_save_LIBS
10137fi
Reid Spencera773bd52006-08-04 18:18:08 +000010138{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10139echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010140if test $ac_cv_lib_svld_dlopen = yes; then
10141
10142cat >>confdefs.h <<\_ACEOF
10143#define HAVE_LIBDL 1
10144_ACEOF
10145
10146 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10147else
Reid Spencera773bd52006-08-04 18:18:08 +000010148 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10149echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152else
10153 ac_check_lib_save_LIBS=$LIBS
10154LIBS="-ldld $LIBS"
10155cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161
Reid Spencera773bd52006-08-04 18:18:08 +000010162/* Override any GCC internal prototype to avoid an error.
10163 Use char because int might match the return type of a GCC
10164 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010165#ifdef __cplusplus
10166extern "C"
10167#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168char dld_link ();
10169int
10170main ()
10171{
Reid Spencera773bd52006-08-04 18:18:08 +000010172return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173 ;
10174 return 0;
10175}
10176_ACEOF
10177rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010178if { (ac_try="$ac_link"
10179case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182esac
10183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185 ac_status=$?
10186 grep -v '^ *+' conftest.er1 >conftest.err
10187 rm -f conftest.er1
10188 cat conftest.err >&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010190 (exit $ac_status); } &&
10191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10192 { (case "(($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_try") 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205esac
10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211 ac_cv_lib_dld_dld_link=yes
10212else
10213 echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
Reid Spencera773bd52006-08-04 18:18:08 +000010216 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010217fi
Reid Spencera773bd52006-08-04 18:18:08 +000010218
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010219rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220 conftest$ac_exeext conftest.$ac_ext
10221LIBS=$ac_check_lib_save_LIBS
10222fi
Reid Spencera773bd52006-08-04 18:18:08 +000010223{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10224echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225if test $ac_cv_lib_dld_dld_link = yes; then
10226
10227cat >>confdefs.h <<\_ACEOF
10228#define HAVE_DLD 1
10229_ACEOF
10230
10231 LIBADD_DL="$LIBADD_DL -ldld"
10232else
Reid Spencera773bd52006-08-04 18:18:08 +000010233 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10234echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237else
10238 cat >conftest.$ac_ext <<_ACEOF
10239/* confdefs.h. */
10240_ACEOF
10241cat confdefs.h >>conftest.$ac_ext
10242cat >>conftest.$ac_ext <<_ACEOF
10243/* end confdefs.h. */
10244/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10246#define _dyld_func_lookup innocuous__dyld_func_lookup
10247
10248/* System header to define __stub macros and hopefully few prototypes,
10249 which can conflict with char _dyld_func_lookup (); below.
10250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10251 <limits.h> exists even on freestanding compilers. */
10252
10253#ifdef __STDC__
10254# include <limits.h>
10255#else
10256# include <assert.h>
10257#endif
10258
10259#undef _dyld_func_lookup
10260
Reid Spencera773bd52006-08-04 18:18:08 +000010261/* Override any GCC internal prototype to avoid an error.
10262 Use char because int might match the return type of a GCC
10263 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264#ifdef __cplusplus
10265extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267char _dyld_func_lookup ();
10268/* The GNU C library defines this for functions which it implements
10269 to always fail with ENOSYS. Some functions are actually named
10270 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010271#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273#endif
10274
10275int
10276main ()
10277{
Reid Spencera773bd52006-08-04 18:18:08 +000010278return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010279 ;
10280 return 0;
10281}
10282_ACEOF
10283rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010284if { (ac_try="$ac_link"
10285case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288esac
10289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010296 (exit $ac_status); } &&
10297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10298 { (case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10301esac
10302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303 (eval "$ac_try") 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; } &&
10307 { ac_try='test -s conftest$ac_exeext'
10308 { (case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311esac
10312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_try") 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317 ac_cv_func__dyld_func_lookup=yes
10318else
10319 echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
Reid Spencera773bd52006-08-04 18:18:08 +000010322 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323fi
Reid Spencera773bd52006-08-04 18:18:08 +000010324
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010325rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010326 conftest$ac_exeext conftest.$ac_ext
10327fi
Reid Spencera773bd52006-08-04 18:18:08 +000010328{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10329echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330if test $ac_cv_func__dyld_func_lookup = yes; then
10331
10332cat >>confdefs.h <<\_ACEOF
10333#define HAVE_DYLD 1
10334_ACEOF
10335
10336fi
10337
10338
10339fi
10340
10341
10342fi
10343
10344
10345fi
Reid Spencera773bd52006-08-04 18:18:08 +000010346
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010347rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010348 conftest$ac_exeext conftest.$ac_ext
10349
10350fi
10351
10352
10353fi
10354
10355
10356fi
10357
10358
10359if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10360then
10361 lt_save_LIBS="$LIBS"
10362 LIBS="$LIBS $LIBADD_DL"
10363
10364for ac_func in dlerror
10365do
10366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010367{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10369if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371else
10372 cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10380#define $ac_func innocuous_$ac_func
10381
10382/* System header to define __stub macros and hopefully few prototypes,
10383 which can conflict with char $ac_func (); below.
10384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10385 <limits.h> exists even on freestanding compilers. */
10386
10387#ifdef __STDC__
10388# include <limits.h>
10389#else
10390# include <assert.h>
10391#endif
10392
10393#undef $ac_func
10394
Reid Spencera773bd52006-08-04 18:18:08 +000010395/* Override any GCC internal prototype to avoid an error.
10396 Use char because int might match the return type of a GCC
10397 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010398#ifdef __cplusplus
10399extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010400#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401char $ac_func ();
10402/* The GNU C library defines this for functions which it implements
10403 to always fail with ENOSYS. Some functions are actually named
10404 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010405#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407#endif
10408
10409int
10410main ()
10411{
Reid Spencera773bd52006-08-04 18:18:08 +000010412return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413 ;
10414 return 0;
10415}
10416_ACEOF
10417rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010418if { (ac_try="$ac_link"
10419case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422esac
10423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010430 (exit $ac_status); } &&
10431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10432 { (case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435esac
10436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_try") 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try='test -s conftest$ac_exeext'
10442 { (case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445esac
10446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_try") 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 eval "$as_ac_var=yes"
10452else
10453 echo "$as_me: failed program was:" >&5
10454sed 's/^/| /' conftest.$ac_ext >&5
10455
Reid Spencera773bd52006-08-04 18:18:08 +000010456 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457fi
Reid Spencera773bd52006-08-04 18:18:08 +000010458
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010459rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010460 conftest$ac_exeext conftest.$ac_ext
10461fi
Reid Spencera773bd52006-08-04 18:18:08 +000010462ac_res=`eval echo '${'$as_ac_var'}'`
10463 { echo "$as_me:$LINENO: result: $ac_res" >&5
10464echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010465if test `eval echo '${'$as_ac_var'}'` = yes; then
10466 cat >>confdefs.h <<_ACEOF
10467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10468_ACEOF
10469
10470fi
10471done
10472
10473 LIBS="$lt_save_LIBS"
10474fi
10475ac_ext=c
10476ac_cpp='$CPP $CPPFLAGS'
10477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10479ac_compiler_gnu=$ac_cv_c_compiler_gnu
10480
10481
10482
Reid Spencera773bd52006-08-04 18:18:08 +000010483{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10484echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488 ac_cv_sys_symbol_underscore=no
10489 cat > conftest.$ac_ext <<EOF
10490void nm_test_func(){}
10491int main(){nm_test_func;return 0;}
10492EOF
10493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10494 (eval $ac_compile) 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; then
10498 # Now try to grab the symbols.
10499 ac_nlist=conftest.nm
10500 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10501 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } && test -s "$ac_nlist"; then
10505 # See whether the symbols have a leading underscore.
10506 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10507 ac_cv_sys_symbol_underscore=yes
10508 else
10509 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10510 :
10511 else
10512 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10513 fi
10514 fi
10515 else
10516 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10517 fi
10518 else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.c >&5
10521 fi
10522 rm -rf conftest*
10523
10524fi
Reid Spencera773bd52006-08-04 18:18:08 +000010525{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10526echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527
10528
10529if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10530 if test x"$libltdl_cv_func_dlopen" = xyes ||
10531 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010532 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10533echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010534if test "${libltdl_cv_need_uscore+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536else
10537 libltdl_cv_need_uscore=unknown
10538 save_LIBS="$LIBS"
10539 LIBS="$LIBS $LIBADD_DL"
10540 if test "$cross_compiling" = yes; then :
10541 libltdl_cv_need_uscore=cross
10542else
10543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10544 lt_status=$lt_dlunknown
10545 cat > conftest.$ac_ext <<EOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000010546#line 10546 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547#include "confdefs.h"
10548
10549#if HAVE_DLFCN_H
10550#include <dlfcn.h>
10551#endif
10552
10553#include <stdio.h>
10554
10555#ifdef RTLD_GLOBAL
10556# define LT_DLGLOBAL RTLD_GLOBAL
10557#else
10558# ifdef DL_GLOBAL
10559# define LT_DLGLOBAL DL_GLOBAL
10560# else
10561# define LT_DLGLOBAL 0
10562# endif
10563#endif
10564
10565/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10566 find out it does not work in some platform. */
10567#ifndef LT_DLLAZY_OR_NOW
10568# ifdef RTLD_LAZY
10569# define LT_DLLAZY_OR_NOW RTLD_LAZY
10570# else
10571# ifdef DL_LAZY
10572# define LT_DLLAZY_OR_NOW DL_LAZY
10573# else
10574# ifdef RTLD_NOW
10575# define LT_DLLAZY_OR_NOW RTLD_NOW
10576# else
10577# ifdef DL_NOW
10578# define LT_DLLAZY_OR_NOW DL_NOW
10579# else
10580# define LT_DLLAZY_OR_NOW 0
10581# endif
10582# endif
10583# endif
10584# endif
10585#endif
10586
10587#ifdef __cplusplus
10588extern "C" void exit (int);
10589#endif
10590
10591void fnord() { int i=42;}
10592int main ()
10593{
10594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10595 int status = $lt_dlunknown;
10596
10597 if (self)
10598 {
10599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10600 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10601 /* dlclose (self); */
10602 }
Reid Spencera773bd52006-08-04 18:18:08 +000010603 else
10604 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010605
10606 exit (status);
10607}
10608EOF
10609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10610 (eval $ac_link) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010614 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010615 lt_status=$?
10616 case x$lt_status in
10617 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10618 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010619 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620 esac
10621 else :
10622 # compilation failed
10623
10624 fi
10625fi
10626rm -fr conftest*
10627
10628 LIBS="$save_LIBS"
10629
10630fi
Reid Spencera773bd52006-08-04 18:18:08 +000010631{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10632echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633 fi
10634fi
10635
10636if test x"$libltdl_cv_need_uscore" = xyes; then
10637
10638cat >>confdefs.h <<\_ACEOF
10639#define NEED_USCORE 1
10640_ACEOF
10641
10642fi
10643
10644
Reid Spencera773bd52006-08-04 18:18:08 +000010645{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10646echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10649else
10650 # PORTME does your system automatically load deplibs for dlopen?
10651 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10652 # For now, we just catch OSes we know something about -- in the
10653 # future, we'll try test this programmatically.
10654 libltdl_cv_sys_dlopen_deplibs=unknown
10655 case "$host_os" in
10656 aix3*|aix4.1.*|aix4.2.*)
10657 # Unknown whether this is true for these versions of AIX, but
10658 # we want this `case' here to explicitly catch those versions.
10659 libltdl_cv_sys_dlopen_deplibs=unknown
10660 ;;
10661 aix[45]*)
10662 libltdl_cv_sys_dlopen_deplibs=yes
10663 ;;
10664 darwin*)
10665 # Assuming the user has installed a libdl from somewhere, this is true
10666 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10667 libltdl_cv_sys_dlopen_deplibs=yes
10668 ;;
10669 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10670 # GNU and its variants, using gnu ld.so (Glibc)
10671 libltdl_cv_sys_dlopen_deplibs=yes
10672 ;;
10673 hpux10*|hpux11*)
10674 libltdl_cv_sys_dlopen_deplibs=yes
10675 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010676 interix*)
10677 libltdl_cv_sys_dlopen_deplibs=yes
10678 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679 irix[12345]*|irix6.[01]*)
10680 # Catch all versions of IRIX before 6.2, and indicate that we don't
10681 # know how it worked for any of those versions.
10682 libltdl_cv_sys_dlopen_deplibs=unknown
10683 ;;
10684 irix*)
10685 # The case above catches anything before 6.2, and it's known that
10686 # at 6.2 and later dlopen does load deplibs.
10687 libltdl_cv_sys_dlopen_deplibs=yes
10688 ;;
10689 netbsd*)
10690 libltdl_cv_sys_dlopen_deplibs=yes
10691 ;;
10692 openbsd*)
10693 libltdl_cv_sys_dlopen_deplibs=yes
10694 ;;
10695 osf[1234]*)
10696 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10697 # it did *not* use an RPATH in a shared library to find objects the
10698 # library depends on, so we explictly say `no'.
10699 libltdl_cv_sys_dlopen_deplibs=no
10700 ;;
10701 osf5.0|osf5.0a|osf5.1)
10702 # dlopen *does* load deplibs and with the right loader patch applied
10703 # it even uses RPATH in a shared library to search for shared objects
10704 # that the library depends on, but there's no easy way to know if that
10705 # patch is installed. Since this is the case, all we can really
10706 # say is unknown -- it depends on the patch being installed. If
10707 # it is, this changes to `yes'. Without it, it would be `no'.
10708 libltdl_cv_sys_dlopen_deplibs=unknown
10709 ;;
10710 osf*)
10711 # the two cases above should catch all versions of osf <= 5.1. Read
10712 # the comments above for what we know about them.
10713 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10714 # is used to find them so we can finally say `yes'.
10715 libltdl_cv_sys_dlopen_deplibs=yes
10716 ;;
10717 solaris*)
10718 libltdl_cv_sys_dlopen_deplibs=yes
10719 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010720 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10721 libltdl_cv_sys_dlopen_deplibs=yes
10722 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010723 esac
10724
10725fi
Reid Spencera773bd52006-08-04 18:18:08 +000010726{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10727echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010728if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10729
10730cat >>confdefs.h <<\_ACEOF
10731#define LTDL_DLOPEN_DEPLIBS 1
10732_ACEOF
10733
10734fi
10735
10736
10737for ac_header in argz.h
10738do
10739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745fi
Reid Spencera773bd52006-08-04 18:18:08 +000010746ac_res=`eval echo '${'$as_ac_Header'}'`
10747 { echo "$as_me:$LINENO: result: $ac_res" >&5
10748echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749else
10750 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010751{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010753cat >conftest.$ac_ext <<_ACEOF
10754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
10759$ac_includes_default
10760#include <$ac_header>
10761_ACEOF
10762rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010763if { (ac_try="$ac_compile"
10764case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767esac
10768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10777 { (case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780esac
10781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_try") 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest.$ac_objext'
10787 { (case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790esac
10791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_try") 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010796 ac_header_compiler=yes
10797else
10798 echo "$as_me: failed program was:" >&5
10799sed 's/^/| /' conftest.$ac_ext >&5
10800
Reid Spencera773bd52006-08-04 18:18:08 +000010801 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010802fi
Reid Spencera773bd52006-08-04 18:18:08 +000010803
10804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10806echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807
10808# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010809{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811cat >conftest.$ac_ext <<_ACEOF
10812/* confdefs.h. */
10813_ACEOF
10814cat confdefs.h >>conftest.$ac_ext
10815cat >>conftest.$ac_ext <<_ACEOF
10816/* end confdefs.h. */
10817#include <$ac_header>
10818_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010819if { (ac_try="$ac_cpp conftest.$ac_ext"
10820case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823esac
10824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010826 ac_status=$?
10827 grep -v '^ *+' conftest.er1 >conftest.err
10828 rm -f conftest.er1
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010831 (exit $ac_status); } >/dev/null; then
10832 if test -s conftest.err; then
10833 ac_cpp_err=$ac_c_preproc_warn_flag
10834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10835 else
10836 ac_cpp_err=
10837 fi
10838else
10839 ac_cpp_err=yes
10840fi
10841if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842 ac_header_preproc=yes
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_header_preproc=no
10848fi
Reid Spencera773bd52006-08-04 18:18:08 +000010849
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010851{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10852echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853
10854# So? What about this header?
10855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10856 yes:no: )
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10861 ac_header_preproc=yes
10862 ;;
10863 no:yes:* )
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10871echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010876 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877## ----------------------------------- ##
10878## Report this to llvmbugs@cs.uiuc.edu ##
10879## ----------------------------------- ##
10880_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010881 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010882 ;;
10883esac
Reid Spencera773bd52006-08-04 18:18:08 +000010884{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887 echo $ECHO_N "(cached) $ECHO_C" >&6
10888else
10889 eval "$as_ac_Header=\$ac_header_preproc"
10890fi
Reid Spencera773bd52006-08-04 18:18:08 +000010891ac_res=`eval echo '${'$as_ac_Header'}'`
10892 { echo "$as_me:$LINENO: result: $ac_res" >&5
10893echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894
10895fi
10896if test `eval echo '${'$as_ac_Header'}'` = yes; then
10897 cat >>confdefs.h <<_ACEOF
10898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10899_ACEOF
10900
10901fi
10902
10903done
10904
10905
Reid Spencera773bd52006-08-04 18:18:08 +000010906{ echo "$as_me:$LINENO: checking for error_t" >&5
10907echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908if test "${ac_cv_type_error_t+set}" = set; then
10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10910else
10911 cat >conftest.$ac_ext <<_ACEOF
10912/* confdefs.h. */
10913_ACEOF
10914cat confdefs.h >>conftest.$ac_ext
10915cat >>conftest.$ac_ext <<_ACEOF
10916/* end confdefs.h. */
10917#if HAVE_ARGZ_H
10918# include <argz.h>
10919#endif
10920
Reid Spencera773bd52006-08-04 18:18:08 +000010921typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010922int
10923main ()
10924{
Reid Spencera773bd52006-08-04 18:18:08 +000010925if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010926 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010927if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928 return 0;
10929 ;
10930 return 0;
10931}
10932_ACEOF
10933rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010934if { (ac_try="$ac_compile"
10935case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
10939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10951esac
10952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_try") 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest.$ac_objext'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961esac
10962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967 ac_cv_type_error_t=yes
10968else
10969 echo "$as_me: failed program was:" >&5
10970sed 's/^/| /' conftest.$ac_ext >&5
10971
Reid Spencera773bd52006-08-04 18:18:08 +000010972 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010973fi
Reid Spencera773bd52006-08-04 18:18:08 +000010974
10975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976fi
Reid Spencera773bd52006-08-04 18:18:08 +000010977{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10978echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979if test $ac_cv_type_error_t = yes; then
10980
10981cat >>confdefs.h <<_ACEOF
10982#define HAVE_ERROR_T 1
10983_ACEOF
10984
10985
10986else
10987
10988cat >>confdefs.h <<\_ACEOF
10989#define error_t int
10990_ACEOF
10991
10992fi
10993
10994
10995
10996
10997
10998
10999
11000for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11001do
11002as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011003{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11004echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11005if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 cat >conftest.$ac_ext <<_ACEOF
11009/* confdefs.h. */
11010_ACEOF
11011cat confdefs.h >>conftest.$ac_ext
11012cat >>conftest.$ac_ext <<_ACEOF
11013/* end confdefs.h. */
11014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11016#define $ac_func innocuous_$ac_func
11017
11018/* System header to define __stub macros and hopefully few prototypes,
11019 which can conflict with char $ac_func (); below.
11020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11021 <limits.h> exists even on freestanding compilers. */
11022
11023#ifdef __STDC__
11024# include <limits.h>
11025#else
11026# include <assert.h>
11027#endif
11028
11029#undef $ac_func
11030
Reid Spencera773bd52006-08-04 18:18:08 +000011031/* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011034#ifdef __cplusplus
11035extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011036#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037char $ac_func ();
11038/* The GNU C library defines this for functions which it implements
11039 to always fail with ENOSYS. Some functions are actually named
11040 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011041#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011043#endif
11044
11045int
11046main ()
11047{
Reid Spencera773bd52006-08-04 18:18:08 +000011048return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049 ;
11050 return 0;
11051}
11052_ACEOF
11053rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011054if { (ac_try="$ac_link"
11055case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11058esac
11059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011066 (exit $ac_status); } &&
11067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11068 { (case "(($ac_try" in
11069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070 *) ac_try_echo=$ac_try;;
11071esac
11072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_try") 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try='test -s conftest$ac_exeext'
11078 { (case "(($ac_try" in
11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080 *) ac_try_echo=$ac_try;;
11081esac
11082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083 (eval "$ac_try") 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087 eval "$as_ac_var=yes"
11088else
11089 echo "$as_me: failed program was:" >&5
11090sed 's/^/| /' conftest.$ac_ext >&5
11091
Reid Spencera773bd52006-08-04 18:18:08 +000011092 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093fi
Reid Spencera773bd52006-08-04 18:18:08 +000011094
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011095rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011096 conftest$ac_exeext conftest.$ac_ext
11097fi
Reid Spencera773bd52006-08-04 18:18:08 +000011098ac_res=`eval echo '${'$as_ac_var'}'`
11099 { echo "$as_me:$LINENO: result: $ac_res" >&5
11100echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011101if test `eval echo '${'$as_ac_var'}'` = yes; then
11102 cat >>confdefs.h <<_ACEOF
11103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11104_ACEOF
11105
11106fi
11107done
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11137 stdio.h unistd.h
11138do
11139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145fi
Reid Spencera773bd52006-08-04 18:18:08 +000011146ac_res=`eval echo '${'$as_ac_Header'}'`
11147 { echo "$as_me:$LINENO: result: $ac_res" >&5
11148echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011149else
11150 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011151{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11152echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011153cat >conftest.$ac_ext <<_ACEOF
11154/* confdefs.h. */
11155_ACEOF
11156cat confdefs.h >>conftest.$ac_ext
11157cat >>conftest.$ac_ext <<_ACEOF
11158/* end confdefs.h. */
11159$ac_includes_default
11160#include <$ac_header>
11161_ACEOF
11162rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011163if { (ac_try="$ac_compile"
11164case "(($ac_try" in
11165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166 *) ac_try_echo=$ac_try;;
11167esac
11168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011175 (exit $ac_status); } &&
11176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11177 { (case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180esac
11181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_try") 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11190esac
11191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011196 ac_header_compiler=yes
11197else
11198 echo "$as_me: failed program was:" >&5
11199sed 's/^/| /' conftest.$ac_ext >&5
11200
Reid Spencera773bd52006-08-04 18:18:08 +000011201 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011202fi
Reid Spencera773bd52006-08-04 18:18:08 +000011203
11204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11206echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207
11208# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011209{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11210echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211cat >conftest.$ac_ext <<_ACEOF
11212/* confdefs.h. */
11213_ACEOF
11214cat confdefs.h >>conftest.$ac_ext
11215cat >>conftest.$ac_ext <<_ACEOF
11216/* end confdefs.h. */
11217#include <$ac_header>
11218_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011219if { (ac_try="$ac_cpp conftest.$ac_ext"
11220case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223esac
11224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011231 (exit $ac_status); } >/dev/null; then
11232 if test -s conftest.err; then
11233 ac_cpp_err=$ac_c_preproc_warn_flag
11234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11235 else
11236 ac_cpp_err=
11237 fi
11238else
11239 ac_cpp_err=yes
11240fi
11241if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242 ac_header_preproc=yes
11243else
11244 echo "$as_me: failed program was:" >&5
11245sed 's/^/| /' conftest.$ac_ext >&5
11246
11247 ac_header_preproc=no
11248fi
Reid Spencera773bd52006-08-04 18:18:08 +000011249
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011251{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11252echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253
11254# So? What about this header?
11255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11256 yes:no: )
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11258echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11260echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11261 ac_header_preproc=yes
11262 ;;
11263 no:yes:* )
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11265echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11267echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11269echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11271echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11273echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11275echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011276 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277## ----------------------------------- ##
11278## Report this to llvmbugs@cs.uiuc.edu ##
11279## ----------------------------------- ##
11280_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011281 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282 ;;
11283esac
Reid Spencera773bd52006-08-04 18:18:08 +000011284{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288else
11289 eval "$as_ac_Header=\$ac_header_preproc"
11290fi
Reid Spencera773bd52006-08-04 18:18:08 +000011291ac_res=`eval echo '${'$as_ac_Header'}'`
11292 { echo "$as_me:$LINENO: result: $ac_res" >&5
11293echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011294
11295fi
11296if test `eval echo '${'$as_ac_Header'}'` = yes; then
11297 cat >>confdefs.h <<_ACEOF
11298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11299_ACEOF
11300
11301fi
11302
11303done
11304
11305
11306
11307
11308
11309for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11310do
11311as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317fi
Reid Spencera773bd52006-08-04 18:18:08 +000011318ac_res=`eval echo '${'$as_ac_Header'}'`
11319 { echo "$as_me:$LINENO: result: $ac_res" >&5
11320echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321else
11322 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011323{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11324echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011325cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331$ac_includes_default
11332#include <$ac_header>
11333_ACEOF
11334rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011335if { (ac_try="$ac_compile"
11336case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339esac
11340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011347 (exit $ac_status); } &&
11348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11349 { (case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352esac
11353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_try") 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; } &&
11358 { ac_try='test -s conftest.$ac_objext'
11359 { (case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11362esac
11363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_try") 2>&5
11365 ac_status=$?
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011368 ac_header_compiler=yes
11369else
11370 echo "$as_me: failed program was:" >&5
11371sed 's/^/| /' conftest.$ac_ext >&5
11372
Reid Spencera773bd52006-08-04 18:18:08 +000011373 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011374fi
Reid Spencera773bd52006-08-04 18:18:08 +000011375
11376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11378echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379
11380# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011381{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11382echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011383cat >conftest.$ac_ext <<_ACEOF
11384/* confdefs.h. */
11385_ACEOF
11386cat confdefs.h >>conftest.$ac_ext
11387cat >>conftest.$ac_ext <<_ACEOF
11388/* end confdefs.h. */
11389#include <$ac_header>
11390_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011391if { (ac_try="$ac_cpp conftest.$ac_ext"
11392case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395esac
11396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011398 ac_status=$?
11399 grep -v '^ *+' conftest.er1 >conftest.err
11400 rm -f conftest.er1
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011403 (exit $ac_status); } >/dev/null; then
11404 if test -s conftest.err; then
11405 ac_cpp_err=$ac_c_preproc_warn_flag
11406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11407 else
11408 ac_cpp_err=
11409 fi
11410else
11411 ac_cpp_err=yes
11412fi
11413if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011414 ac_header_preproc=yes
11415else
11416 echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
11418
11419 ac_header_preproc=no
11420fi
Reid Spencera773bd52006-08-04 18:18:08 +000011421
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011423{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11424echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425
11426# So? What about this header?
11427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11428 yes:no: )
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11432echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11433 ac_header_preproc=yes
11434 ;;
11435 no:yes:* )
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11439echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11441echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11443echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11447echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011448 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449## ----------------------------------- ##
11450## Report this to llvmbugs@cs.uiuc.edu ##
11451## ----------------------------------- ##
11452_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011453 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454 ;;
11455esac
Reid Spencera773bd52006-08-04 18:18:08 +000011456{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460else
11461 eval "$as_ac_Header=\$ac_header_preproc"
11462fi
Reid Spencera773bd52006-08-04 18:18:08 +000011463ac_res=`eval echo '${'$as_ac_Header'}'`
11464 { echo "$as_me:$LINENO: result: $ac_res" >&5
11465echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466
11467fi
11468if test `eval echo '${'$as_ac_Header'}'` = yes; then
11469 cat >>confdefs.h <<_ACEOF
11470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11471_ACEOF
11472
11473fi
11474
11475done
11476
11477
11478
11479for ac_header in string.h strings.h
11480do
11481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487fi
Reid Spencera773bd52006-08-04 18:18:08 +000011488ac_res=`eval echo '${'$as_ac_Header'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491else
11492 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011493{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011495cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501$ac_includes_default
11502#include <$ac_header>
11503_ACEOF
11504rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011505if { (ac_try="$ac_compile"
11506case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11519 { (case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11522esac
11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_try") 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest.$ac_objext'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011538 ac_header_compiler=yes
11539else
11540 echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
Reid Spencera773bd52006-08-04 18:18:08 +000011543 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544fi
Reid Spencera773bd52006-08-04 18:18:08 +000011545
11546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11548echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011549
11550# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011551{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553cat >conftest.$ac_ext <<_ACEOF
11554/* confdefs.h. */
11555_ACEOF
11556cat confdefs.h >>conftest.$ac_ext
11557cat >>conftest.$ac_ext <<_ACEOF
11558/* end confdefs.h. */
11559#include <$ac_header>
11560_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011561if { (ac_try="$ac_cpp conftest.$ac_ext"
11562case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565esac
11566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011573 (exit $ac_status); } >/dev/null; then
11574 if test -s conftest.err; then
11575 ac_cpp_err=$ac_c_preproc_warn_flag
11576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11577 else
11578 ac_cpp_err=
11579 fi
11580else
11581 ac_cpp_err=yes
11582fi
11583if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011584 ac_header_preproc=yes
11585else
11586 echo "$as_me: failed program was:" >&5
11587sed 's/^/| /' conftest.$ac_ext >&5
11588
11589 ac_header_preproc=no
11590fi
Reid Spencera773bd52006-08-04 18:18:08 +000011591
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011592rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011593{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595
11596# So? What about this header?
11597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11598 yes:no: )
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11603 ac_header_preproc=yes
11604 ;;
11605 no:yes:* )
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11613echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011618 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619## ----------------------------------- ##
11620## Report this to llvmbugs@cs.uiuc.edu ##
11621## ----------------------------------- ##
11622_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011623 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011624 ;;
11625esac
Reid Spencera773bd52006-08-04 18:18:08 +000011626{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631 eval "$as_ac_Header=\$ac_header_preproc"
11632fi
Reid Spencera773bd52006-08-04 18:18:08 +000011633ac_res=`eval echo '${'$as_ac_Header'}'`
11634 { echo "$as_me:$LINENO: result: $ac_res" >&5
11635echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636
11637fi
11638if test `eval echo '${'$as_ac_Header'}'` = yes; then
11639 cat >>confdefs.h <<_ACEOF
11640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11641_ACEOF
11642 break
11643fi
11644
11645done
11646
11647
11648
11649
11650for ac_func in strchr index
11651do
11652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011653{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657else
11658 cat >conftest.$ac_ext <<_ACEOF
11659/* confdefs.h. */
11660_ACEOF
11661cat confdefs.h >>conftest.$ac_ext
11662cat >>conftest.$ac_ext <<_ACEOF
11663/* end confdefs.h. */
11664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666#define $ac_func innocuous_$ac_func
11667
11668/* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11672
11673#ifdef __STDC__
11674# include <limits.h>
11675#else
11676# include <assert.h>
11677#endif
11678
11679#undef $ac_func
11680
Reid Spencera773bd52006-08-04 18:18:08 +000011681/* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011684#ifdef __cplusplus
11685extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011687char $ac_func ();
11688/* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011691#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011692choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693#endif
11694
11695int
11696main ()
11697{
Reid Spencera773bd52006-08-04 18:18:08 +000011698return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011699 ;
11700 return 0;
11701}
11702_ACEOF
11703rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011704if { (ac_try="$ac_link"
11705case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708esac
11709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011716 (exit $ac_status); } &&
11717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11718 { (case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11721esac
11722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_try") 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest$ac_exeext'
11728 { (case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11731esac
11732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_try") 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011737 eval "$as_ac_var=yes"
11738else
11739 echo "$as_me: failed program was:" >&5
11740sed 's/^/| /' conftest.$ac_ext >&5
11741
Reid Spencera773bd52006-08-04 18:18:08 +000011742 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743fi
Reid Spencera773bd52006-08-04 18:18:08 +000011744
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011745rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746 conftest$ac_exeext conftest.$ac_ext
11747fi
Reid Spencera773bd52006-08-04 18:18:08 +000011748ac_res=`eval echo '${'$as_ac_var'}'`
11749 { echo "$as_me:$LINENO: result: $ac_res" >&5
11750echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011751if test `eval echo '${'$as_ac_var'}'` = yes; then
11752 cat >>confdefs.h <<_ACEOF
11753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11754_ACEOF
11755 break
11756fi
11757done
11758
11759
11760
11761for ac_func in strrchr rindex
11762do
11763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011764{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11766if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768else
11769 cat >conftest.$ac_ext <<_ACEOF
11770/* confdefs.h. */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h. */
11775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11777#define $ac_func innocuous_$ac_func
11778
11779/* System header to define __stub macros and hopefully few prototypes,
11780 which can conflict with char $ac_func (); below.
11781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11782 <limits.h> exists even on freestanding compilers. */
11783
11784#ifdef __STDC__
11785# include <limits.h>
11786#else
11787# include <assert.h>
11788#endif
11789
11790#undef $ac_func
11791
Reid Spencera773bd52006-08-04 18:18:08 +000011792/* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011795#ifdef __cplusplus
11796extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011797#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011798char $ac_func ();
11799/* The GNU C library defines this for functions which it implements
11800 to always fail with ENOSYS. Some functions are actually named
11801 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011802#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011803choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011804#endif
11805
11806int
11807main ()
11808{
Reid Spencera773bd52006-08-04 18:18:08 +000011809return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011810 ;
11811 return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011815if { (ac_try="$ac_link"
11816case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011827 (exit $ac_status); } &&
11828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829 { (case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832esac
11833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_try") 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; } &&
11838 { ac_try='test -s conftest$ac_exeext'
11839 { (case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842esac
11843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_try") 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011848 eval "$as_ac_var=yes"
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
Reid Spencera773bd52006-08-04 18:18:08 +000011853 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854fi
Reid Spencera773bd52006-08-04 18:18:08 +000011855
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011856rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857 conftest$ac_exeext conftest.$ac_ext
11858fi
Reid Spencera773bd52006-08-04 18:18:08 +000011859ac_res=`eval echo '${'$as_ac_var'}'`
11860 { echo "$as_me:$LINENO: result: $ac_res" >&5
11861echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011862if test `eval echo '${'$as_ac_var'}'` = yes; then
11863 cat >>confdefs.h <<_ACEOF
11864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865_ACEOF
11866 break
11867fi
11868done
11869
11870
11871
11872for ac_func in memcpy bcopy
11873do
11874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011875{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11877if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011878 echo $ECHO_N "(cached) $ECHO_C" >&6
11879else
11880 cat >conftest.$ac_ext <<_ACEOF
11881/* confdefs.h. */
11882_ACEOF
11883cat confdefs.h >>conftest.$ac_ext
11884cat >>conftest.$ac_ext <<_ACEOF
11885/* end confdefs.h. */
11886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11888#define $ac_func innocuous_$ac_func
11889
11890/* System header to define __stub macros and hopefully few prototypes,
11891 which can conflict with char $ac_func (); below.
11892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11893 <limits.h> exists even on freestanding compilers. */
11894
11895#ifdef __STDC__
11896# include <limits.h>
11897#else
11898# include <assert.h>
11899#endif
11900
11901#undef $ac_func
11902
Reid Spencera773bd52006-08-04 18:18:08 +000011903/* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011906#ifdef __cplusplus
11907extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011909char $ac_func ();
11910/* The GNU C library defines this for functions which it implements
11911 to always fail with ENOSYS. Some functions are actually named
11912 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011913#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011914choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915#endif
11916
11917int
11918main ()
11919{
Reid Spencera773bd52006-08-04 18:18:08 +000011920return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011921 ;
11922 return 0;
11923}
11924_ACEOF
11925rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011926if { (ac_try="$ac_link"
11927case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930esac
11931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933 ac_status=$?
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11940 { (case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11943esac
11944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945 (eval "$ac_try") 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest$ac_exeext'
11950 { (case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953esac
11954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_try") 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011959 eval "$as_ac_var=yes"
11960else
11961 echo "$as_me: failed program was:" >&5
11962sed 's/^/| /' conftest.$ac_ext >&5
11963
Reid Spencera773bd52006-08-04 18:18:08 +000011964 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011965fi
Reid Spencera773bd52006-08-04 18:18:08 +000011966
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011967rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968 conftest$ac_exeext conftest.$ac_ext
11969fi
Reid Spencera773bd52006-08-04 18:18:08 +000011970ac_res=`eval echo '${'$as_ac_var'}'`
11971 { echo "$as_me:$LINENO: result: $ac_res" >&5
11972echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011973if test `eval echo '${'$as_ac_var'}'` = yes; then
11974 cat >>confdefs.h <<_ACEOF
11975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11976_ACEOF
11977 break
11978fi
11979done
11980
11981
11982
11983for ac_func in memmove strcmp
11984do
11985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990else
11991 cat >conftest.$ac_ext <<_ACEOF
11992/* confdefs.h. */
11993_ACEOF
11994cat confdefs.h >>conftest.$ac_ext
11995cat >>conftest.$ac_ext <<_ACEOF
11996/* end confdefs.h. */
11997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11999#define $ac_func innocuous_$ac_func
12000
12001/* System header to define __stub macros and hopefully few prototypes,
12002 which can conflict with char $ac_func (); below.
12003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12004 <limits.h> exists even on freestanding compilers. */
12005
12006#ifdef __STDC__
12007# include <limits.h>
12008#else
12009# include <assert.h>
12010#endif
12011
12012#undef $ac_func
12013
Reid Spencera773bd52006-08-04 18:18:08 +000012014/* Override any GCC internal prototype to avoid an error.
12015 Use char because int might match the return type of a GCC
12016 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012017#ifdef __cplusplus
12018extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012019#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012020char $ac_func ();
12021/* The GNU C library defines this for functions which it implements
12022 to always fail with ENOSYS. Some functions are actually named
12023 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012024#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012025choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026#endif
12027
12028int
12029main ()
12030{
Reid Spencera773bd52006-08-04 18:18:08 +000012031return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012032 ;
12033 return 0;
12034}
12035_ACEOF
12036rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012037if { (ac_try="$ac_link"
12038case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041esac
12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012049 (exit $ac_status); } &&
12050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12051 { (case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054esac
12055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_try") 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; } &&
12060 { ac_try='test -s conftest$ac_exeext'
12061 { (case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064esac
12065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_try") 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012070 eval "$as_ac_var=yes"
12071else
12072 echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
12074
Reid Spencera773bd52006-08-04 18:18:08 +000012075 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012076fi
Reid Spencera773bd52006-08-04 18:18:08 +000012077
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012078rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012079 conftest$ac_exeext conftest.$ac_ext
12080fi
Reid Spencera773bd52006-08-04 18:18:08 +000012081ac_res=`eval echo '${'$as_ac_var'}'`
12082 { echo "$as_me:$LINENO: result: $ac_res" >&5
12083echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012084if test `eval echo '${'$as_ac_var'}'` = yes; then
12085 cat >>confdefs.h <<_ACEOF
12086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12087_ACEOF
12088
12089fi
12090done
12091
12092
12093
12094
12095for ac_func in closedir opendir readdir
12096do
12097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012098{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103 cat >conftest.$ac_ext <<_ACEOF
12104/* confdefs.h. */
12105_ACEOF
12106cat confdefs.h >>conftest.$ac_ext
12107cat >>conftest.$ac_ext <<_ACEOF
12108/* end confdefs.h. */
12109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12111#define $ac_func innocuous_$ac_func
12112
12113/* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char $ac_func (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12117
12118#ifdef __STDC__
12119# include <limits.h>
12120#else
12121# include <assert.h>
12122#endif
12123
12124#undef $ac_func
12125
Reid Spencera773bd52006-08-04 18:18:08 +000012126/* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012129#ifdef __cplusplus
12130extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012131#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132char $ac_func ();
12133/* The GNU C library defines this for functions which it implements
12134 to always fail with ENOSYS. Some functions are actually named
12135 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012136#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012137choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138#endif
12139
12140int
12141main ()
12142{
Reid Spencera773bd52006-08-04 18:18:08 +000012143return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012144 ;
12145 return 0;
12146}
12147_ACEOF
12148rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012149if { (ac_try="$ac_link"
12150case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153esac
12154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163 { (case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166esac
12167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_try") 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176esac
12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012182 eval "$as_ac_var=yes"
12183else
12184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
Reid Spencera773bd52006-08-04 18:18:08 +000012187 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012188fi
Reid Spencera773bd52006-08-04 18:18:08 +000012189
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012190rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012191 conftest$ac_exeext conftest.$ac_ext
12192fi
Reid Spencera773bd52006-08-04 18:18:08 +000012193ac_res=`eval echo '${'$as_ac_var'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012196if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199_ACEOF
12200
12201fi
12202done
12203
12204
Reid Spencera773bd52006-08-04 18:18:08 +000012205# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012206if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012207 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208 case $enableval in
12209 yes) enable_shared=yes ;;
12210 no) enable_shared=no ;;
12211 *)
12212 enable_shared=no
12213 # Look at the argument we got. We use all the common list separators.
12214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12215 for pkg in $enableval; do
12216 IFS="$lt_save_ifs"
12217 if test "X$pkg" = "X$p"; then
12218 enable_shared=yes
12219 fi
12220 done
12221 IFS="$lt_save_ifs"
12222 ;;
12223 esac
12224else
12225 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012226fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227
Reid Spencera773bd52006-08-04 18:18:08 +000012228
12229# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012230if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012231 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232 case $enableval in
12233 yes) enable_static=yes ;;
12234 no) enable_static=no ;;
12235 *)
12236 enable_static=no
12237 # Look at the argument we got. We use all the common list separators.
12238 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12239 for pkg in $enableval; do
12240 IFS="$lt_save_ifs"
12241 if test "X$pkg" = "X$p"; then
12242 enable_static=yes
12243 fi
12244 done
12245 IFS="$lt_save_ifs"
12246 ;;
12247 esac
12248else
12249 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012250fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012251
Reid Spencera773bd52006-08-04 18:18:08 +000012252
12253# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012255 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012256 case $enableval in
12257 yes) enable_fast_install=yes ;;
12258 no) enable_fast_install=no ;;
12259 *)
12260 enable_fast_install=no
12261 # Look at the argument we got. We use all the common list separators.
12262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12263 for pkg in $enableval; do
12264 IFS="$lt_save_ifs"
12265 if test "X$pkg" = "X$p"; then
12266 enable_fast_install=yes
12267 fi
12268 done
12269 IFS="$lt_save_ifs"
12270 ;;
12271 esac
12272else
12273 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012274fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012275
Reid Spencera773bd52006-08-04 18:18:08 +000012276
12277{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12278echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012279if test "${lt_cv_path_SED+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281else
12282 # Loop through the user's path and test for sed and gsed.
12283# Then use that list of sed's as ones to test for truncation.
12284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285for as_dir in $PATH
12286do
12287 IFS=$as_save_IFS
12288 test -z "$as_dir" && as_dir=.
12289 for lt_ac_prog in sed gsed; do
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12292 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12293 fi
12294 done
12295 done
12296done
12297lt_ac_max=0
12298lt_ac_count=0
12299# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12300# along with /bin/sed that truncates output.
12301for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012302 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012303 cat /dev/null > conftest.in
12304 lt_ac_count=0
12305 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12306 # Check for GNU sed and select it if it is found.
12307 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12308 lt_cv_path_SED=$lt_ac_sed
12309 break
12310 fi
12311 while true; do
12312 cat conftest.in conftest.in >conftest.tmp
12313 mv conftest.tmp conftest.in
12314 cp conftest.in conftest.nl
12315 echo >>conftest.nl
12316 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12317 cmp -s conftest.out conftest.nl || break
12318 # 10000 chars as input seems more than enough
12319 test $lt_ac_count -gt 10 && break
12320 lt_ac_count=`expr $lt_ac_count + 1`
12321 if test $lt_ac_count -gt $lt_ac_max; then
12322 lt_ac_max=$lt_ac_count
12323 lt_cv_path_SED=$lt_ac_sed
12324 fi
12325 done
12326done
12327
12328fi
12329
12330SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012331{ echo "$as_me:$LINENO: result: $SED" >&5
12332echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012333
12334
Reid Spencera773bd52006-08-04 18:18:08 +000012335# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012336if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012337 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012338else
12339 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012340fi
12341
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012342ac_prog=ld
12343if test "$GCC" = yes; then
12344 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012345 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12346echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012347 case $host in
12348 *-*-mingw*)
12349 # gcc leaves a trailing carriage return which upsets mingw
12350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12351 *)
12352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12353 esac
12354 case $ac_prog in
12355 # Accept absolute paths.
12356 [\\/]* | ?:[\\/]*)
12357 re_direlt='/[^/][^/]*/\.\./'
12358 # Canonicalize the pathname of ld
12359 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12360 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12361 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12362 done
12363 test -z "$LD" && LD="$ac_prog"
12364 ;;
12365 "")
12366 # If it fails, then pretend we aren't using GCC.
12367 ac_prog=ld
12368 ;;
12369 *)
12370 # If it is relative, then search for the first ld in PATH.
12371 with_gnu_ld=unknown
12372 ;;
12373 esac
12374elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012375 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12376echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012377else
Reid Spencera773bd52006-08-04 18:18:08 +000012378 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12379echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012380fi
12381if test "${lt_cv_path_LD+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383else
12384 if test -z "$LD"; then
12385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12386 for ac_dir in $PATH; do
12387 IFS="$lt_save_ifs"
12388 test -z "$ac_dir" && ac_dir=.
12389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12390 lt_cv_path_LD="$ac_dir/$ac_prog"
12391 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012392 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012393 # Break only if it was the GNU/non-GNU ld that we prefer.
12394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12395 *GNU* | *'with BFD'*)
12396 test "$with_gnu_ld" != no && break
12397 ;;
12398 *)
12399 test "$with_gnu_ld" != yes && break
12400 ;;
12401 esac
12402 fi
12403 done
12404 IFS="$lt_save_ifs"
12405else
12406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12407fi
12408fi
12409
12410LD="$lt_cv_path_LD"
12411if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012412 { echo "$as_me:$LINENO: result: $LD" >&5
12413echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012414else
Reid Spencera773bd52006-08-04 18:18:08 +000012415 { echo "$as_me:$LINENO: result: no" >&5
12416echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012417fi
12418test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12419echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12420 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012421{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12422echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012423if test "${lt_cv_prog_gnu_ld+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425else
Reid Spencera773bd52006-08-04 18:18:08 +000012426 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012427case `$LD -v 2>&1 </dev/null` in
12428*GNU* | *'with BFD'*)
12429 lt_cv_prog_gnu_ld=yes
12430 ;;
12431*)
12432 lt_cv_prog_gnu_ld=no
12433 ;;
12434esac
12435fi
Reid Spencera773bd52006-08-04 18:18:08 +000012436{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12437echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012438with_gnu_ld=$lt_cv_prog_gnu_ld
12439
12440
Reid Spencera773bd52006-08-04 18:18:08 +000012441{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12442echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012443if test "${lt_cv_ld_reload_flag+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446 lt_cv_ld_reload_flag='-r'
12447fi
Reid Spencera773bd52006-08-04 18:18:08 +000012448{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12449echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012450reload_flag=$lt_cv_ld_reload_flag
12451case $reload_flag in
12452"" | " "*) ;;
12453*) reload_flag=" $reload_flag" ;;
12454esac
12455reload_cmds='$LD$reload_flag -o $output$reload_objs'
12456case $host_os in
12457 darwin*)
12458 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012459 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012460 else
12461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12462 fi
12463 ;;
12464esac
12465
Reid Spencera773bd52006-08-04 18:18:08 +000012466{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12467echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012468if test "${lt_cv_deplibs_check_method+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470else
12471 lt_cv_file_magic_cmd='$MAGIC_CMD'
12472lt_cv_file_magic_test_file=
12473lt_cv_deplibs_check_method='unknown'
12474# Need to set the preceding variable on all platforms that support
12475# interlibrary dependencies.
12476# 'none' -- dependencies not supported.
12477# `unknown' -- same as none, but documents that we really don't know.
12478# 'pass_all' -- all dependencies passed with no checks.
12479# 'test_compile' -- check by making test program.
12480# 'file_magic [[regex]]' -- check by looking for files in library path
12481# which responds to the $file_magic_cmd with a given extended regex.
12482# If you have `file' or equivalent on your system and you're not sure
12483# whether `pass_all' will *always* work, you probably want this one.
12484
12485case $host_os in
12486aix4* | aix5*)
12487 lt_cv_deplibs_check_method=pass_all
12488 ;;
12489
12490beos*)
12491 lt_cv_deplibs_check_method=pass_all
12492 ;;
12493
12494bsdi[45]*)
12495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12496 lt_cv_file_magic_cmd='/usr/bin/file -L'
12497 lt_cv_file_magic_test_file=/shlib/libc.so
12498 ;;
12499
12500cygwin*)
12501 # func_win32_libid is a shell function defined in ltmain.sh
12502 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12503 lt_cv_file_magic_cmd='func_win32_libid'
12504 ;;
12505
12506mingw* | pw32*)
12507 # Base MSYS/MinGW do not provide the 'file' command needed by
12508 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12509 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12510 lt_cv_file_magic_cmd='$OBJDUMP -f'
12511 ;;
12512
12513darwin* | rhapsody*)
12514 lt_cv_deplibs_check_method=pass_all
12515 ;;
12516
Reid Spencera773bd52006-08-04 18:18:08 +000012517freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012518 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12519 case $host_cpu in
12520 i*86 )
12521 # Not sure whether the presence of OpenBSD here was a mistake.
12522 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012523 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012524 lt_cv_file_magic_cmd=/usr/bin/file
12525 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12526 ;;
12527 esac
12528 else
12529 lt_cv_deplibs_check_method=pass_all
12530 fi
12531 ;;
12532
12533gnu*)
12534 lt_cv_deplibs_check_method=pass_all
12535 ;;
12536
12537hpux10.20* | hpux11*)
12538 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012539 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012540 ia64*)
12541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12543 ;;
12544 hppa*64*)
12545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
12546 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12547 ;;
12548 *)
12549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12550 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12551 ;;
12552 esac
12553 ;;
12554
Reid Spencera773bd52006-08-04 18:18:08 +000012555interix3*)
12556 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12558 ;;
12559
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012560irix5* | irix6* | nonstopux*)
12561 case $LD in
12562 *-32|*"-32 ") libmagic=32-bit;;
12563 *-n32|*"-n32 ") libmagic=N32;;
12564 *-64|*"-64 ") libmagic=64-bit;;
12565 *) libmagic=never-match;;
12566 esac
12567 lt_cv_deplibs_check_method=pass_all
12568 ;;
12569
12570# This must be Linux ELF.
12571linux*)
12572 lt_cv_deplibs_check_method=pass_all
12573 ;;
12574
12575netbsd*)
12576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12578 else
12579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12580 fi
12581 ;;
12582
12583newos6*)
12584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12585 lt_cv_file_magic_cmd=/usr/bin/file
12586 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12587 ;;
12588
12589nto-qnx*)
12590 lt_cv_deplibs_check_method=unknown
12591 ;;
12592
12593openbsd*)
12594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12596 else
12597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12598 fi
12599 ;;
12600
12601osf3* | osf4* | osf5*)
12602 lt_cv_deplibs_check_method=pass_all
12603 ;;
12604
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012605solaris*)
12606 lt_cv_deplibs_check_method=pass_all
12607 ;;
12608
Reid Spencera773bd52006-08-04 18:18:08 +000012609sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012610 case $host_vendor in
12611 motorola)
12612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
12613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12614 ;;
12615 ncr)
12616 lt_cv_deplibs_check_method=pass_all
12617 ;;
12618 sequent)
12619 lt_cv_file_magic_cmd='/bin/file'
12620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12621 ;;
12622 sni)
12623 lt_cv_file_magic_cmd='/bin/file'
12624 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12625 lt_cv_file_magic_test_file=/lib/libc.so
12626 ;;
12627 siemens)
12628 lt_cv_deplibs_check_method=pass_all
12629 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012630 pc)
12631 lt_cv_deplibs_check_method=pass_all
12632 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012633 esac
12634 ;;
12635
Reid Spencera773bd52006-08-04 18:18:08 +000012636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012637 lt_cv_deplibs_check_method=pass_all
12638 ;;
12639esac
12640
12641fi
Reid Spencera773bd52006-08-04 18:18:08 +000012642{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12643echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012644file_magic_cmd=$lt_cv_file_magic_cmd
12645deplibs_check_method=$lt_cv_deplibs_check_method
12646test -z "$deplibs_check_method" && deplibs_check_method=unknown
12647
12648
12649
12650# If no C compiler was specified, use CC.
12651LTCC=${LTCC-"$CC"}
12652
Reid Spencera773bd52006-08-04 18:18:08 +000012653# If no C compiler flags were specified, use CFLAGS.
12654LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12655
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012656# Allow CC to be a program name with arguments.
12657compiler=$CC
12658
Reid Spencera773bd52006-08-04 18:18:08 +000012659# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012660if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012661 enableval=$enable_libtool_lock;
12662fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012663
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012664test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12665
12666# Some flags need to be propagated to the compiler or linker for good
12667# libtool support.
12668case $host in
12669ia64-*-hpux*)
12670 # Find out which ABI we are using.
12671 echo 'int i;' > conftest.$ac_ext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673 (eval $ac_compile) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; then
12677 case `/usr/bin/file conftest.$ac_objext` in
12678 *ELF-32*)
12679 HPUX_IA64_MODE="32"
12680 ;;
12681 *ELF-64*)
12682 HPUX_IA64_MODE="64"
12683 ;;
12684 esac
12685 fi
12686 rm -rf conftest*
12687 ;;
12688*-*-irix6*)
12689 # Find out which ABI we are using.
Nick Lewycky267fddb2009-04-13 04:26:27 +000012690 echo '#line 12690 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12692 (eval $ac_compile) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; then
12696 if test "$lt_cv_prog_gnu_ld" = yes; then
12697 case `/usr/bin/file conftest.$ac_objext` in
12698 *32-bit*)
12699 LD="${LD-ld} -melf32bsmip"
12700 ;;
12701 *N32*)
12702 LD="${LD-ld} -melf32bmipn32"
12703 ;;
12704 *64-bit*)
12705 LD="${LD-ld} -melf64bmip"
12706 ;;
12707 esac
12708 else
12709 case `/usr/bin/file conftest.$ac_objext` in
12710 *32-bit*)
12711 LD="${LD-ld} -32"
12712 ;;
12713 *N32*)
12714 LD="${LD-ld} -n32"
12715 ;;
12716 *64-bit*)
12717 LD="${LD-ld} -64"
12718 ;;
12719 esac
12720 fi
12721 fi
12722 rm -rf conftest*
12723 ;;
12724
12725x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12726 # Find out which ABI we are using.
12727 echo 'int i;' > conftest.$ac_ext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012733 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012734 *32-bit*)
12735 case $host in
12736 x86_64-*linux*)
12737 LD="${LD-ld} -m elf_i386"
12738 ;;
12739 ppc64-*linux*|powerpc64-*linux*)
12740 LD="${LD-ld} -m elf32ppclinux"
12741 ;;
12742 s390x-*linux*)
12743 LD="${LD-ld} -m elf_s390"
12744 ;;
12745 sparc64-*linux*)
12746 LD="${LD-ld} -m elf32_sparc"
12747 ;;
12748 esac
12749 ;;
12750 *64-bit*)
12751 case $host in
12752 x86_64-*linux*)
12753 LD="${LD-ld} -m elf_x86_64"
12754 ;;
12755 ppc*-*linux*|powerpc*-*linux*)
12756 LD="${LD-ld} -m elf64ppc"
12757 ;;
12758 s390*-*linux*)
12759 LD="${LD-ld} -m elf64_s390"
12760 ;;
12761 sparc*-*linux*)
12762 LD="${LD-ld} -m elf64_sparc"
12763 ;;
12764 esac
12765 ;;
12766 esac
12767 fi
12768 rm -rf conftest*
12769 ;;
12770
12771*-*-sco3.2v5*)
12772 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12773 SAVE_CFLAGS="$CFLAGS"
12774 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012775 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12776echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012777if test "${lt_cv_cc_needs_belf+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779else
12780 ac_ext=c
12781ac_cpp='$CPP $CPPFLAGS'
12782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12784ac_compiler_gnu=$ac_cv_c_compiler_gnu
12785
12786 cat >conftest.$ac_ext <<_ACEOF
12787/* confdefs.h. */
12788_ACEOF
12789cat confdefs.h >>conftest.$ac_ext
12790cat >>conftest.$ac_ext <<_ACEOF
12791/* end confdefs.h. */
12792
Reid Spencera773bd52006-08-04 18:18:08 +000012793int
12794main ()
12795{
12796
12797 ;
12798 return 0;
12799}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012800_ACEOF
12801rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012802if { (ac_try="$ac_link"
12803case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806esac
12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819esac
12820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_try") 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest$ac_exeext'
12826 { (case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12829esac
12830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_try") 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012835 lt_cv_cc_needs_belf=yes
12836else
12837 echo "$as_me: failed program was:" >&5
12838sed 's/^/| /' conftest.$ac_ext >&5
12839
Reid Spencera773bd52006-08-04 18:18:08 +000012840 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012841fi
Reid Spencera773bd52006-08-04 18:18:08 +000012842
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012843rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012844 conftest$ac_exeext conftest.$ac_ext
12845 ac_ext=c
12846ac_cpp='$CPP $CPPFLAGS'
12847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12849ac_compiler_gnu=$ac_cv_c_compiler_gnu
12850
12851fi
Reid Spencera773bd52006-08-04 18:18:08 +000012852{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12853echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012854 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12855 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12856 CFLAGS="$SAVE_CFLAGS"
12857 fi
12858 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012859sparc*-*solaris*)
12860 # Find out which ABI we are using.
12861 echo 'int i;' > conftest.$ac_ext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863 (eval $ac_compile) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; then
12867 case `/usr/bin/file conftest.o` in
12868 *64-bit*)
12869 case $lt_cv_prog_gnu_ld in
12870 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12871 *) LD="${LD-ld} -64" ;;
12872 esac
12873 ;;
12874 esac
12875 fi
12876 rm -rf conftest*
12877 ;;
12878
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012879
12880esac
12881
12882need_locks="$enable_libtool_lock"
12883
12884
Reid Spencer2706f8c2004-09-19 23:53:36 +000012885
12886
12887if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12888 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12889 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012890 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012891ac_cpp='$CXXCPP $CPPFLAGS'
12892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012895{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12896echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012897if test -z "$CXXCPP"; then
12898 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900else
John Criswell47fdd832003-07-14 16:52:07 +000012901 # Double quotes because CXXCPP needs to be expanded
12902 for CXXCPP in "$CXX -E" "/lib/cpp"
12903 do
12904 ac_preproc_ok=false
12905for ac_cxx_preproc_warn_flag in '' yes
12906do
12907 # Use a header file that comes with gcc, so configuring glibc
12908 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12910 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012911 # On the NeXT, cc -E runs the code through the compiler's parser,
12912 # not just through cpp. "Syntax error" is here to catch this case.
12913 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012914/* confdefs.h. */
12915_ACEOF
12916cat confdefs.h >>conftest.$ac_ext
12917cat >>conftest.$ac_ext <<_ACEOF
12918/* end confdefs.h. */
12919#ifdef __STDC__
12920# include <limits.h>
12921#else
12922# include <assert.h>
12923#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012924 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012925_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012926if { (ac_try="$ac_cpp conftest.$ac_ext"
12927case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930esac
12931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012933 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012934 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012935 rm -f conftest.er1
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012938 (exit $ac_status); } >/dev/null; then
12939 if test -s conftest.err; then
12940 ac_cpp_err=$ac_cxx_preproc_warn_flag
12941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12942 else
12943 ac_cpp_err=
12944 fi
12945else
12946 ac_cpp_err=yes
12947fi
12948if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012949 :
12950else
12951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012952sed 's/^/| /' conftest.$ac_ext >&5
12953
John Criswell47fdd832003-07-14 16:52:07 +000012954 # Broken: fails on valid input.
12955continue
12956fi
Reid Spencera773bd52006-08-04 18:18:08 +000012957
John Criswell47fdd832003-07-14 16:52:07 +000012958rm -f conftest.err conftest.$ac_ext
12959
Reid Spencera773bd52006-08-04 18:18:08 +000012960 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012961 # can be detected and how.
12962 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012963/* confdefs.h. */
12964_ACEOF
12965cat confdefs.h >>conftest.$ac_ext
12966cat >>conftest.$ac_ext <<_ACEOF
12967/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012968#include <ac_nonexistent.h>
12969_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012970if { (ac_try="$ac_cpp conftest.$ac_ext"
12971case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12974esac
12975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012977 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012978 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012982 (exit $ac_status); } >/dev/null; then
12983 if test -s conftest.err; then
12984 ac_cpp_err=$ac_cxx_preproc_warn_flag
12985 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12986 else
12987 ac_cpp_err=
12988 fi
12989else
12990 ac_cpp_err=yes
12991fi
12992if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012993 # Broken: success on invalid input.
12994continue
12995else
12996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012997sed 's/^/| /' conftest.$ac_ext >&5
12998
John Criswell47fdd832003-07-14 16:52:07 +000012999 # Passes both tests.
13000ac_preproc_ok=:
13001break
13002fi
Reid Spencera773bd52006-08-04 18:18:08 +000013003
John Criswell47fdd832003-07-14 16:52:07 +000013004rm -f conftest.err conftest.$ac_ext
13005
13006done
13007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13008rm -f conftest.err conftest.$ac_ext
13009if $ac_preproc_ok; then
13010 break
John Criswell7a73b802003-06-30 21:59:07 +000013011fi
13012
John Criswell47fdd832003-07-14 16:52:07 +000013013 done
13014 ac_cv_prog_CXXCPP=$CXXCPP
13015
13016fi
13017 CXXCPP=$ac_cv_prog_CXXCPP
13018else
13019 ac_cv_prog_CXXCPP=$CXXCPP
13020fi
Reid Spencera773bd52006-08-04 18:18:08 +000013021{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13022echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013023ac_preproc_ok=false
13024for ac_cxx_preproc_warn_flag in '' yes
13025do
13026 # Use a header file that comes with gcc, so configuring glibc
13027 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13029 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013030 # On the NeXT, cc -E runs the code through the compiler's parser,
13031 # not just through cpp. "Syntax error" is here to catch this case.
13032 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013033/* confdefs.h. */
13034_ACEOF
13035cat confdefs.h >>conftest.$ac_ext
13036cat >>conftest.$ac_ext <<_ACEOF
13037/* end confdefs.h. */
13038#ifdef __STDC__
13039# include <limits.h>
13040#else
13041# include <assert.h>
13042#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013043 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013044_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013045if { (ac_try="$ac_cpp conftest.$ac_ext"
13046case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049esac
13050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013052 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013053 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013057 (exit $ac_status); } >/dev/null; then
13058 if test -s conftest.err; then
13059 ac_cpp_err=$ac_cxx_preproc_warn_flag
13060 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13061 else
13062 ac_cpp_err=
13063 fi
13064else
13065 ac_cpp_err=yes
13066fi
13067if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013068 :
13069else
13070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013071sed 's/^/| /' conftest.$ac_ext >&5
13072
John Criswell47fdd832003-07-14 16:52:07 +000013073 # Broken: fails on valid input.
13074continue
13075fi
Reid Spencera773bd52006-08-04 18:18:08 +000013076
John Criswell47fdd832003-07-14 16:52:07 +000013077rm -f conftest.err conftest.$ac_ext
13078
Reid Spencera773bd52006-08-04 18:18:08 +000013079 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013080 # can be detected and how.
13081 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013087#include <ac_nonexistent.h>
13088_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013089if { (ac_try="$ac_cpp conftest.$ac_ext"
13090case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093esac
13094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013096 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013097 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013101 (exit $ac_status); } >/dev/null; then
13102 if test -s conftest.err; then
13103 ac_cpp_err=$ac_cxx_preproc_warn_flag
13104 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13105 else
13106 ac_cpp_err=
13107 fi
13108else
13109 ac_cpp_err=yes
13110fi
13111if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013112 # Broken: success on invalid input.
13113continue
13114else
13115 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013116sed 's/^/| /' conftest.$ac_ext >&5
13117
John Criswell47fdd832003-07-14 16:52:07 +000013118 # Passes both tests.
13119ac_preproc_ok=:
13120break
13121fi
Reid Spencera773bd52006-08-04 18:18:08 +000013122
John Criswell47fdd832003-07-14 16:52:07 +000013123rm -f conftest.err conftest.$ac_ext
13124
13125done
13126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13127rm -f conftest.err conftest.$ac_ext
13128if $ac_preproc_ok; then
13129 :
13130else
John Criswell0c38eaf2003-09-10 15:17:25 +000013131 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13132See \`config.log' for more details." >&5
13133echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13134See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013135 { (exit 1); exit 1; }; }
13136fi
13137
Reid Spencera773bd52006-08-04 18:18:08 +000013138ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013139ac_cpp='$CXXCPP $CPPFLAGS'
13140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13143
Reid Spencer2706f8c2004-09-19 23:53:36 +000013144fi
13145
John Criswell47fdd832003-07-14 16:52:07 +000013146
13147ac_ext=f
13148ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13149ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13150ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13151if test -n "$ac_tool_prefix"; then
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013152 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
John Criswell47fdd832003-07-14 16:52:07 +000013153 do
13154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013158if test "${ac_cv_prog_F77+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160else
13161 if test -n "$F77"; then
13162 ac_cv_prog_F77="$F77" # Let the user override the test.
13163else
13164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013171 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13174 fi
13175done
13176done
Reid Spencera773bd52006-08-04 18:18:08 +000013177IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013178
13179fi
13180fi
13181F77=$ac_cv_prog_F77
13182if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013183 { echo "$as_me:$LINENO: result: $F77" >&5
13184echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013185else
Reid Spencera773bd52006-08-04 18:18:08 +000013186 { echo "$as_me:$LINENO: result: no" >&5
13187echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013188fi
13189
Reid Spencera773bd52006-08-04 18:18:08 +000013190
John Criswell47fdd832003-07-14 16:52:07 +000013191 test -n "$F77" && break
13192 done
13193fi
13194if test -z "$F77"; then
13195 ac_ct_F77=$F77
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013196 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
John Criswell47fdd832003-07-14 16:52:07 +000013197do
13198 # Extract the first word of "$ac_prog", so it can be a program name with args.
13199set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013202if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13204else
13205 if test -n "$ac_ct_F77"; then
13206 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13207else
13208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209for as_dir in $PATH
13210do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013215 ac_cv_prog_ac_ct_F77="$ac_prog"
13216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219done
13220done
Reid Spencera773bd52006-08-04 18:18:08 +000013221IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013222
13223fi
13224fi
13225ac_ct_F77=$ac_cv_prog_ac_ct_F77
13226if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013227 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13228echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013229else
Reid Spencera773bd52006-08-04 18:18:08 +000013230 { echo "$as_me:$LINENO: result: no" >&5
13231echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013232fi
13233
Reid Spencera773bd52006-08-04 18:18:08 +000013234
John Criswell47fdd832003-07-14 16:52:07 +000013235 test -n "$ac_ct_F77" && break
13236done
13237
Reid Spencera773bd52006-08-04 18:18:08 +000013238 if test "x$ac_ct_F77" = x; then
13239 F77=""
13240 else
13241 case $cross_compiling:$ac_tool_warned in
13242yes:)
13243{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13244whose name does not start with the host triplet. If you think this
13245configuration is useful to you, please write to autoconf@gnu.org." >&5
13246echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13247whose name does not start with the host triplet. If you think this
13248configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13249ac_tool_warned=yes ;;
13250esac
13251 F77=$ac_ct_F77
13252 fi
John Criswell47fdd832003-07-14 16:52:07 +000013253fi
13254
13255
13256# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013257echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013258ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013259{ (ac_try="$ac_compiler --version >&5"
13260case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263esac
13264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013269{ (ac_try="$ac_compiler -v >&5"
13270case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13273esac
13274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013279{ (ac_try="$ac_compiler -V >&5"
13280case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013289rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013290
13291# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013292# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013293ac_save_ext=$ac_ext
13294ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013295{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13296echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013297if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13298 echo $ECHO_N "(cached) $ECHO_C" >&6
13299else
13300 cat >conftest.$ac_ext <<_ACEOF
13301 program main
13302#ifndef __GNUC__
13303 choke me
13304#endif
13305
13306 end
13307_ACEOF
13308rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013309if { (ac_try="$ac_compile"
13310case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13313esac
13314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013316 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013317 grep -v '^ *+' conftest.er1 >conftest.err
13318 rm -f conftest.er1
13319 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013321 (exit $ac_status); } &&
13322 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326esac
13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest.$ac_objext'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336esac
13337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013342 ac_compiler_gnu=yes
13343else
13344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013345sed 's/^/| /' conftest.$ac_ext >&5
13346
Reid Spencera773bd52006-08-04 18:18:08 +000013347 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013348fi
Reid Spencera773bd52006-08-04 18:18:08 +000013349
13350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013351ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13352
13353fi
Reid Spencera773bd52006-08-04 18:18:08 +000013354{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13355echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013356ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013357ac_test_FFLAGS=${FFLAGS+set}
13358ac_save_FFLAGS=$FFLAGS
13359FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013360{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13361echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013362if test "${ac_cv_prog_f77_g+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364else
13365 FFLAGS=-g
13366cat >conftest.$ac_ext <<_ACEOF
13367 program main
13368
13369 end
13370_ACEOF
13371rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013372if { (ac_try="$ac_compile"
13373case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376esac
13377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013379 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013384 (exit $ac_status); } &&
13385 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13386 { (case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13389esac
13390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_try") 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; } &&
13395 { ac_try='test -s conftest.$ac_objext'
13396 { (case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399esac
13400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_try") 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013405 ac_cv_prog_f77_g=yes
13406else
13407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013408sed 's/^/| /' conftest.$ac_ext >&5
13409
Reid Spencera773bd52006-08-04 18:18:08 +000013410 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013411fi
Reid Spencera773bd52006-08-04 18:18:08 +000013412
13413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013414
13415fi
Reid Spencera773bd52006-08-04 18:18:08 +000013416{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13417echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013418if test "$ac_test_FFLAGS" = set; then
13419 FFLAGS=$ac_save_FFLAGS
13420elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013421 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013422 FFLAGS="-g -O2"
13423 else
13424 FFLAGS="-g"
13425 fi
13426else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013427 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013428 FFLAGS="-O2"
13429 else
13430 FFLAGS=
13431 fi
13432fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013433
13434G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013435ac_ext=c
13436ac_cpp='$CPP $CPPFLAGS'
13437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13439ac_compiler_gnu=$ac_cv_c_compiler_gnu
13440
13441
13442
13443# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13444
13445# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013446{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13447echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013448if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450else
13451 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013452 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013453
13454 case $build_os in
13455 msdosdjgpp*)
13456 # On DJGPP, this test can blow up pretty badly due to problems in libc
13457 # (any single argument exceeding 2000 bytes causes a buffer overrun
13458 # during glob expansion). Even if it were fixed, the result of this
13459 # check would be larger than it should be.
13460 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13461 ;;
13462
13463 gnu*)
13464 # Under GNU Hurd, this test is not required because there is
13465 # no limit to the length of command line arguments.
13466 # Libtool will interpret -1 as no limit whatsoever
13467 lt_cv_sys_max_cmd_len=-1;
13468 ;;
13469
13470 cygwin* | mingw*)
13471 # On Win9x/ME, this test blows up -- it succeeds, but takes
13472 # about 5 minutes as the teststring grows exponentially.
13473 # Worse, since 9x/ME are not pre-emptively multitasking,
13474 # you end up with a "frozen" computer, even though with patience
13475 # the test eventually succeeds (with a max line length of 256k).
13476 # Instead, let's just punt: use the minimum linelength reported by
13477 # all of the supported platforms: 8192 (on NT/2K/XP).
13478 lt_cv_sys_max_cmd_len=8192;
13479 ;;
13480
Reid Spencer2706f8c2004-09-19 23:53:36 +000013481 amigaos*)
13482 # On AmigaOS with pdksh, this test takes hours, literally.
13483 # So we just punt and use a minimum line length of 8192.
13484 lt_cv_sys_max_cmd_len=8192;
13485 ;;
13486
Reid Spencera773bd52006-08-04 18:18:08 +000013487 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013488 # This has been around since 386BSD, at least. Likely further.
13489 if test -x /sbin/sysctl; then
13490 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13491 elif test -x /usr/sbin/sysctl; then
13492 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13493 else
Reid Spencera773bd52006-08-04 18:18:08 +000013494 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013495 fi
13496 # And add a safety zone
13497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013499 ;;
13500
Reid Spencera773bd52006-08-04 18:18:08 +000013501 interix*)
13502 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13503 lt_cv_sys_max_cmd_len=196608
13504 ;;
13505
13506 osf*)
13507 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13508 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13509 # nice to cause kernel panics so lets avoid the loop below.
13510 # First set a reasonable default.
13511 lt_cv_sys_max_cmd_len=16384
13512 #
13513 if test -x /sbin/sysconfig; then
13514 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13515 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13516 esac
13517 fi
13518 ;;
13519 sco3.2v5*)
13520 lt_cv_sys_max_cmd_len=102400
13521 ;;
13522 sysv5* | sco5v6* | sysv4.2uw2*)
13523 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13524 if test -n "$kargmax"; then
13525 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13526 else
13527 lt_cv_sys_max_cmd_len=32768
13528 fi
13529 ;;
13530 *)
John Criswell47fdd832003-07-14 16:52:07 +000013531 # If test is not a shell built-in, we'll probably end up computing a
13532 # maximum length that is only half of the actual maximum length, but
13533 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013534 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13535 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13536 = "XX$teststring") >/dev/null 2>&1 &&
13537 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013538 lt_cv_sys_max_cmd_len=$new_result &&
13539 test $i != 17 # 1/2 MB should be enough
13540 do
13541 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013542 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013543 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013544 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013545 # Add a significant safety factor because C++ compilers can tack on massive
13546 # amounts of additional arguments before passing them to the linker.
13547 # It appears as though 1/2 is a usable value.
13548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13549 ;;
13550 esac
13551
13552fi
13553
13554if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013555 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13556echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013557else
Reid Spencera773bd52006-08-04 18:18:08 +000013558 { echo "$as_me:$LINENO: result: none" >&5
13559echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013560fi
13561
13562
13563
13564
13565# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013566{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13567echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013568if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570else
13571
13572# These are sane defaults that work on at least a few old systems.
13573# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13574
13575# Character class describing NM global symbol codes.
13576symcode='[BCDEGRST]'
13577
13578# Regexp to match symbols that can be accessed directly from C.
13579sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13580
John Criswell47fdd832003-07-14 16:52:07 +000013581# Transform an extracted symbol line into a proper C declaration
13582lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13583
13584# Transform an extracted symbol line into symbol name and symbol address
13585lt_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'"
13586
13587# Define system-specific variables.
13588case $host_os in
13589aix*)
13590 symcode='[BCDT]'
13591 ;;
13592cygwin* | mingw* | pw32*)
13593 symcode='[ABCDGISTW]'
13594 ;;
13595hpux*) # Its linker distinguishes data from code symbols
13596 if test "$host_cpu" = ia64; then
13597 symcode='[ABCDEGRST]'
13598 fi
13599 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13600 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'"
13601 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013602linux*)
13603 if test "$host_cpu" = ia64; then
13604 symcode='[ABCDGIRSTW]'
13605 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13606 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'"
13607 fi
13608 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013609irix* | nonstopux*)
13610 symcode='[BCDEGRST]'
13611 ;;
13612osf*)
13613 symcode='[BCDEGQRST]'
13614 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013615solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013616 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013617 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013618sco3.2v5*)
13619 symcode='[DT]'
13620 ;;
13621sysv4.2uw2*)
13622 symcode='[DT]'
13623 ;;
13624sysv5* | sco5v6* | unixware* | OpenUNIX*)
13625 symcode='[ABDT]'
13626 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013627sysv4)
13628 symcode='[DFNSTU]'
13629 ;;
13630esac
13631
13632# Handle CRLF in mingw tool chain
13633opt_cr=
13634case $build_os in
13635mingw*)
13636 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13637 ;;
13638esac
13639
13640# If we're using GNU nm, then use its standard symbol codes.
13641case `$NM -V 2>&1` in
13642*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013643 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013644esac
13645
13646# Try without a prefix undercore, then with it.
13647for ac_symprfx in "" "_"; do
13648
Reid Spencera773bd52006-08-04 18:18:08 +000013649 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13650 symxfrm="\\1 $ac_symprfx\\2 \\2"
13651
John Criswell47fdd832003-07-14 16:52:07 +000013652 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013653 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
John Criswell47fdd832003-07-14 16:52:07 +000013654
13655 # Check to see that the pipe works correctly.
13656 pipe_works=no
13657
13658 rm -f conftest*
13659 cat > conftest.$ac_ext <<EOF
13660#ifdef __cplusplus
13661extern "C" {
13662#endif
13663char nm_test_var;
13664void nm_test_func(){}
13665#ifdef __cplusplus
13666}
13667#endif
13668int main(){nm_test_var='a';nm_test_func();return(0);}
13669EOF
13670
13671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13672 (eval $ac_compile) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; then
13676 # Now try to grab the symbols.
13677 nlist=conftest.nm
13678 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13679 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } && test -s "$nlist"; then
13683 # Try sorting and uniquifying the output.
13684 if sort "$nlist" | uniq > "$nlist"T; then
13685 mv -f "$nlist"T "$nlist"
13686 else
13687 rm -f "$nlist"T
13688 fi
13689
13690 # Make sure that we snagged all the symbols we need.
13691 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13692 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13693 cat <<EOF > conftest.$ac_ext
13694#ifdef __cplusplus
13695extern "C" {
13696#endif
13697
13698EOF
13699 # Now generate the symbol file.
13700 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13701
13702 cat <<EOF >> conftest.$ac_ext
13703#if defined (__STDC__) && __STDC__
13704# define lt_ptr_t void *
13705#else
13706# define lt_ptr_t char *
13707# define const
13708#endif
13709
13710/* The mapping between symbol names and symbols. */
13711const struct {
13712 const char *name;
13713 lt_ptr_t address;
13714}
13715lt_preloaded_symbols[] =
13716{
13717EOF
13718 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13719 cat <<\EOF >> conftest.$ac_ext
13720 {0, (lt_ptr_t) 0}
13721};
13722
13723#ifdef __cplusplus
13724}
13725#endif
13726EOF
13727 # Now try linking the two files.
13728 mv conftest.$ac_objext conftstm.$ac_objext
13729 lt_save_LIBS="$LIBS"
13730 lt_save_CFLAGS="$CFLAGS"
13731 LIBS="conftstm.$ac_objext"
13732 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13734 (eval $ac_link) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13738 pipe_works=yes
13739 fi
13740 LIBS="$lt_save_LIBS"
13741 CFLAGS="$lt_save_CFLAGS"
13742 else
13743 echo "cannot find nm_test_func in $nlist" >&5
13744 fi
13745 else
13746 echo "cannot find nm_test_var in $nlist" >&5
13747 fi
13748 else
13749 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13750 fi
13751 else
13752 echo "$progname: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13754 fi
13755 rm -f conftest* conftst*
13756
13757 # Do not use the global_symbol_pipe unless it works.
13758 if test "$pipe_works" = yes; then
13759 break
13760 else
13761 lt_cv_sys_global_symbol_pipe=
13762 fi
13763done
13764
13765fi
13766
13767if test -z "$lt_cv_sys_global_symbol_pipe"; then
13768 lt_cv_sys_global_symbol_to_cdecl=
13769fi
13770if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013771 { echo "$as_me:$LINENO: result: failed" >&5
13772echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013773else
Reid Spencera773bd52006-08-04 18:18:08 +000013774 { echo "$as_me:$LINENO: result: ok" >&5
13775echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013776fi
13777
Reid Spencera773bd52006-08-04 18:18:08 +000013778{ echo "$as_me:$LINENO: checking for objdir" >&5
13779echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013780if test "${lt_cv_objdir+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783 rm -f .libs 2>/dev/null
13784mkdir .libs 2>/dev/null
13785if test -d .libs; then
13786 lt_cv_objdir=.libs
13787else
13788 # MS-DOS does not allow filenames that begin with a dot.
13789 lt_cv_objdir=_libs
13790fi
13791rmdir .libs 2>/dev/null
13792fi
Reid Spencera773bd52006-08-04 18:18:08 +000013793{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13794echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013795objdir=$lt_cv_objdir
13796
13797
13798
13799
13800
13801case $host_os in
13802aix3*)
13803 # AIX sometimes has problems with the GCC collect2 program. For some
13804 # reason, if we set the COLLECT_NAMES environment variable, the problems
13805 # vanish in a puff of smoke.
13806 if test "X${COLLECT_NAMES+set}" != Xset; then
13807 COLLECT_NAMES=
13808 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013809 fi
13810 ;;
13811esac
13812
John Criswell47fdd832003-07-14 16:52:07 +000013813# Sed substitution that helps us do robust quoting. It backslashifies
13814# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013815Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013816sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13817
13818# Same as above, but do not quote variable references.
13819double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13820
13821# Sed substitution to delay expansion of an escaped shell variable in a
13822# double_quote_subst'ed string.
13823delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13824
13825# Sed substitution to avoid accidental globbing in evaled expressions
13826no_glob_subst='s/\*/\\\*/g'
13827
13828# Constants:
13829rm="rm -f"
13830
13831# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013832default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013833can_build_shared=yes
13834
Reid Spencera773bd52006-08-04 18:18:08 +000013835# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013836# which needs '.lib').
13837libext=a
13838ltmain="$ac_aux_dir/ltmain.sh"
13839ofile="$default_ofile"
13840with_gnu_ld="$lt_cv_prog_gnu_ld"
13841
13842if test -n "$ac_tool_prefix"; then
13843 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13844set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013847if test "${ac_cv_prog_AR+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849else
13850 if test -n "$AR"; then
13851 ac_cv_prog_AR="$AR" # Let the user override the test.
13852else
13853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854for as_dir in $PATH
13855do
13856 IFS=$as_save_IFS
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013860 ac_cv_prog_AR="${ac_tool_prefix}ar"
13861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 break 2
13863 fi
13864done
13865done
Reid Spencera773bd52006-08-04 18:18:08 +000013866IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013867
13868fi
13869fi
13870AR=$ac_cv_prog_AR
13871if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013872 { echo "$as_me:$LINENO: result: $AR" >&5
13873echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013874else
Reid Spencera773bd52006-08-04 18:18:08 +000013875 { echo "$as_me:$LINENO: result: no" >&5
13876echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013877fi
13878
Reid Spencera773bd52006-08-04 18:18:08 +000013879
John Criswell47fdd832003-07-14 16:52:07 +000013880fi
13881if test -z "$ac_cv_prog_AR"; then
13882 ac_ct_AR=$AR
13883 # Extract the first word of "ar", so it can be a program name with args.
13884set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013887if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890 if test -n "$ac_ct_AR"; then
13891 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13892else
13893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894for as_dir in $PATH
13895do
13896 IFS=$as_save_IFS
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013900 ac_cv_prog_ac_ct_AR="ar"
13901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13902 break 2
13903 fi
13904done
13905done
Reid Spencera773bd52006-08-04 18:18:08 +000013906IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013907
John Criswell47fdd832003-07-14 16:52:07 +000013908fi
13909fi
13910ac_ct_AR=$ac_cv_prog_ac_ct_AR
13911if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013912 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13913echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013914else
Reid Spencera773bd52006-08-04 18:18:08 +000013915 { echo "$as_me:$LINENO: result: no" >&5
13916echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013917fi
13918
Reid Spencera773bd52006-08-04 18:18:08 +000013919 if test "x$ac_ct_AR" = x; then
13920 AR="false"
13921 else
13922 case $cross_compiling:$ac_tool_warned in
13923yes:)
13924{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13925whose name does not start with the host triplet. If you think this
13926configuration is useful to you, please write to autoconf@gnu.org." >&5
13927echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13928whose name does not start with the host triplet. If you think this
13929configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13930ac_tool_warned=yes ;;
13931esac
13932 AR=$ac_ct_AR
13933 fi
John Criswell47fdd832003-07-14 16:52:07 +000013934else
13935 AR="$ac_cv_prog_AR"
13936fi
13937
John Criswell7a73b802003-06-30 21:59:07 +000013938if test -n "$ac_tool_prefix"; then
13939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13940set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013943if test "${ac_cv_prog_RANLIB+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945else
13946 if test -n "$RANLIB"; then
13947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13948else
13949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950for as_dir in $PATH
13951do
13952 IFS=$as_save_IFS
13953 test -z "$as_dir" && as_dir=.
13954 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13958 break 2
13959 fi
13960done
13961done
Reid Spencera773bd52006-08-04 18:18:08 +000013962IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013963
13964fi
13965fi
13966RANLIB=$ac_cv_prog_RANLIB
13967if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013968 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13969echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013970else
Reid Spencera773bd52006-08-04 18:18:08 +000013971 { echo "$as_me:$LINENO: result: no" >&5
13972echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013973fi
13974
Reid Spencera773bd52006-08-04 18:18:08 +000013975
John Criswell7a73b802003-06-30 21:59:07 +000013976fi
13977if test -z "$ac_cv_prog_RANLIB"; then
13978 ac_ct_RANLIB=$RANLIB
13979 # Extract the first word of "ranlib", so it can be a program name with args.
13980set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013983if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985else
13986 if test -n "$ac_ct_RANLIB"; then
13987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13988else
13989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990for as_dir in $PATH
13991do
13992 IFS=$as_save_IFS
13993 test -z "$as_dir" && as_dir=.
13994 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013996 ac_cv_prog_ac_ct_RANLIB="ranlib"
13997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13998 break 2
13999 fi
14000done
14001done
Reid Spencera773bd52006-08-04 18:18:08 +000014002IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014003
John Criswell7a73b802003-06-30 21:59:07 +000014004fi
14005fi
14006ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14007if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014008 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14009echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014010else
Reid Spencera773bd52006-08-04 18:18:08 +000014011 { echo "$as_me:$LINENO: result: no" >&5
14012echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014013fi
14014
Reid Spencera773bd52006-08-04 18:18:08 +000014015 if test "x$ac_ct_RANLIB" = x; then
14016 RANLIB=":"
14017 else
14018 case $cross_compiling:$ac_tool_warned in
14019yes:)
14020{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14021whose name does not start with the host triplet. If you think this
14022configuration is useful to you, please write to autoconf@gnu.org." >&5
14023echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14024whose name does not start with the host triplet. If you think this
14025configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14026ac_tool_warned=yes ;;
14027esac
14028 RANLIB=$ac_ct_RANLIB
14029 fi
John Criswell7a73b802003-06-30 21:59:07 +000014030else
14031 RANLIB="$ac_cv_prog_RANLIB"
14032fi
14033
14034if test -n "$ac_tool_prefix"; then
14035 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14036set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014039if test "${ac_cv_prog_STRIP+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041else
14042 if test -n "$STRIP"; then
14043 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14044else
14045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046for as_dir in $PATH
14047do
14048 IFS=$as_save_IFS
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014052 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14054 break 2
14055 fi
14056done
14057done
Reid Spencera773bd52006-08-04 18:18:08 +000014058IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014059
14060fi
14061fi
14062STRIP=$ac_cv_prog_STRIP
14063if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014064 { echo "$as_me:$LINENO: result: $STRIP" >&5
14065echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014066else
Reid Spencera773bd52006-08-04 18:18:08 +000014067 { echo "$as_me:$LINENO: result: no" >&5
14068echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014069fi
14070
Reid Spencera773bd52006-08-04 18:18:08 +000014071
John Criswell7a73b802003-06-30 21:59:07 +000014072fi
14073if test -z "$ac_cv_prog_STRIP"; then
14074 ac_ct_STRIP=$STRIP
14075 # Extract the first word of "strip", so it can be a program name with args.
14076set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014079if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082 if test -n "$ac_ct_STRIP"; then
14083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14084else
14085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086for as_dir in $PATH
14087do
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014092 ac_cv_prog_ac_ct_STRIP="strip"
14093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14095 fi
14096done
14097done
Reid Spencera773bd52006-08-04 18:18:08 +000014098IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014099
John Criswell7a73b802003-06-30 21:59:07 +000014100fi
14101fi
14102ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14103if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014104 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14105echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014106else
Reid Spencera773bd52006-08-04 18:18:08 +000014107 { echo "$as_me:$LINENO: result: no" >&5
14108echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014109fi
14110
Reid Spencera773bd52006-08-04 18:18:08 +000014111 if test "x$ac_ct_STRIP" = x; then
14112 STRIP=":"
14113 else
14114 case $cross_compiling:$ac_tool_warned in
14115yes:)
14116{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14117whose name does not start with the host triplet. If you think this
14118configuration is useful to you, please write to autoconf@gnu.org." >&5
14119echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14120whose name does not start with the host triplet. If you think this
14121configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14122ac_tool_warned=yes ;;
14123esac
14124 STRIP=$ac_ct_STRIP
14125 fi
John Criswell7a73b802003-06-30 21:59:07 +000014126else
14127 STRIP="$ac_cv_prog_STRIP"
14128fi
14129
14130
John Criswell7a73b802003-06-30 21:59:07 +000014131old_CC="$CC"
14132old_CFLAGS="$CFLAGS"
14133
14134# Set sane defaults for various variables
14135test -z "$AR" && AR=ar
14136test -z "$AR_FLAGS" && AR_FLAGS=cru
14137test -z "$AS" && AS=as
14138test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014139test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014140test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014141test -z "$DLLTOOL" && DLLTOOL=dlltool
14142test -z "$LD" && LD=ld
14143test -z "$LN_S" && LN_S="ln -s"
14144test -z "$MAGIC_CMD" && MAGIC_CMD=file
14145test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014146test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014147test -z "$OBJDUMP" && OBJDUMP=objdump
14148test -z "$RANLIB" && RANLIB=:
14149test -z "$STRIP" && STRIP=:
14150test -z "$ac_objext" && ac_objext=o
14151
John Criswell7a73b802003-06-30 21:59:07 +000014152# Determine commands to create old-style static archives.
14153old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14154old_postinstall_cmds='chmod 644 $oldlib'
14155old_postuninstall_cmds=
14156
14157if test -n "$RANLIB"; then
14158 case $host_os in
14159 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014161 ;;
14162 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014163 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014164 ;;
14165 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014166 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014167fi
14168
Reid Spencera773bd52006-08-04 18:18:08 +000014169for cc_temp in $compiler""; do
14170 case $cc_temp in
14171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14173 \-*) ;;
14174 *) break;;
14175 esac
14176done
14177cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14178
Reid Spencer2706f8c2004-09-19 23:53:36 +000014179
John Criswell47fdd832003-07-14 16:52:07 +000014180# Only perform the check for file, if the check method requires it
14181case $deplibs_check_method in
14182file_magic*)
14183 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014184 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14185echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014186if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014188else
John Criswell47fdd832003-07-14 16:52:07 +000014189 case $MAGIC_CMD in
14190[\\/*] | ?:[\\/]*)
14191 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14192 ;;
14193*)
14194 lt_save_MAGIC_CMD="$MAGIC_CMD"
14195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14196 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14197 for ac_dir in $ac_dummy; do
14198 IFS="$lt_save_ifs"
14199 test -z "$ac_dir" && ac_dir=.
14200 if test -f $ac_dir/${ac_tool_prefix}file; then
14201 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14202 if test -n "$file_magic_test_file"; then
14203 case $deplibs_check_method in
14204 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014205 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14207 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14208 $EGREP "$file_magic_regex" > /dev/null; then
14209 :
14210 else
14211 cat <<EOF 1>&2
14212
14213*** Warning: the command libtool uses to detect shared libraries,
14214*** $file_magic_cmd, produces output that libtool cannot recognize.
14215*** The result is that libtool may fail to recognize shared libraries
14216*** as such. This will affect the creation of libtool libraries that
14217*** depend on shared libraries, but programs linked with such libtool
14218*** libraries will work regardless of this problem. Nevertheless, you
14219*** may want to report the problem to your system manager and/or to
14220*** bug-libtool@gnu.org
14221
14222EOF
14223 fi ;;
14224 esac
14225 fi
14226 break
14227 fi
14228 done
14229 IFS="$lt_save_ifs"
14230 MAGIC_CMD="$lt_save_MAGIC_CMD"
14231 ;;
14232esac
John Criswell7a73b802003-06-30 21:59:07 +000014233fi
John Criswell7a73b802003-06-30 21:59:07 +000014234
John Criswell47fdd832003-07-14 16:52:07 +000014235MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14236if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014237 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14238echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014239else
Reid Spencera773bd52006-08-04 18:18:08 +000014240 { echo "$as_me:$LINENO: result: no" >&5
14241echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014242fi
John Criswell7a73b802003-06-30 21:59:07 +000014243
John Criswell47fdd832003-07-14 16:52:07 +000014244if test -z "$lt_cv_path_MAGIC_CMD"; then
14245 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014246 { echo "$as_me:$LINENO: checking for file" >&5
14247echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014248if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250else
14251 case $MAGIC_CMD in
14252[\\/*] | ?:[\\/]*)
14253 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14254 ;;
14255*)
14256 lt_save_MAGIC_CMD="$MAGIC_CMD"
14257 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14258 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14259 for ac_dir in $ac_dummy; do
14260 IFS="$lt_save_ifs"
14261 test -z "$ac_dir" && ac_dir=.
14262 if test -f $ac_dir/file; then
14263 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14264 if test -n "$file_magic_test_file"; then
14265 case $deplibs_check_method in
14266 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014267 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014268 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14269 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14270 $EGREP "$file_magic_regex" > /dev/null; then
14271 :
14272 else
14273 cat <<EOF 1>&2
14274
14275*** Warning: the command libtool uses to detect shared libraries,
14276*** $file_magic_cmd, produces output that libtool cannot recognize.
14277*** The result is that libtool may fail to recognize shared libraries
14278*** as such. This will affect the creation of libtool libraries that
14279*** depend on shared libraries, but programs linked with such libtool
14280*** libraries will work regardless of this problem. Nevertheless, you
14281*** may want to report the problem to your system manager and/or to
14282*** bug-libtool@gnu.org
14283
14284EOF
14285 fi ;;
14286 esac
14287 fi
14288 break
14289 fi
14290 done
14291 IFS="$lt_save_ifs"
14292 MAGIC_CMD="$lt_save_MAGIC_CMD"
14293 ;;
14294esac
14295fi
14296
14297MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14298if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014299 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14300echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014301else
Reid Spencera773bd52006-08-04 18:18:08 +000014302 { echo "$as_me:$LINENO: result: no" >&5
14303echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014304fi
14305
14306 else
14307 MAGIC_CMD=:
14308 fi
14309fi
14310
14311 fi
14312 ;;
14313esac
14314
Reid Spencer17795972004-11-18 09:47:37 +000014315enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014316enable_win32_dll=no
14317
Reid Spencera773bd52006-08-04 18:18:08 +000014318# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014319if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014320 enableval=$enable_libtool_lock;
14321fi
John Criswell47fdd832003-07-14 16:52:07 +000014322
John Criswell47fdd832003-07-14 16:52:07 +000014323test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14324
John Criswell7a73b802003-06-30 21:59:07 +000014325
Reid Spencera773bd52006-08-04 18:18:08 +000014326# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014327if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014328 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014329else
14330 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014331fi
14332
John Criswell7a73b802003-06-30 21:59:07 +000014333test -z "$pic_mode" && pic_mode=default
14334
John Criswell47fdd832003-07-14 16:52:07 +000014335# Use C for the default configuration in the libtool script
14336tagname=
14337lt_save_CC="$CC"
14338ac_ext=c
14339ac_cpp='$CPP $CPPFLAGS'
14340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14342ac_compiler_gnu=$ac_cv_c_compiler_gnu
14343
14344
14345# Source file extension for C test sources.
14346ac_ext=c
14347
14348# Object file extension for compiled C test sources.
14349objext=o
14350objext=$objext
14351
14352# Code to be used in simple compile tests
14353lt_simple_compile_test_code="int some_variable = 0;\n"
14354
14355# Code to be used in simple link tests
14356lt_simple_link_test_code='int main(){return(0);}\n'
14357
14358
14359# If no C compiler was specified, use CC.
14360LTCC=${LTCC-"$CC"}
14361
Reid Spencera773bd52006-08-04 18:18:08 +000014362# If no C compiler flags were specified, use CFLAGS.
14363LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14364
John Criswell47fdd832003-07-14 16:52:07 +000014365# Allow CC to be a program name with arguments.
14366compiler=$CC
14367
14368
Reid Spencera773bd52006-08-04 18:18:08 +000014369# save warnings/boilerplate of simple test code
14370ac_outfile=conftest.$ac_objext
14371printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14372eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14373_lt_compiler_boilerplate=`cat conftest.err`
14374$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014375
Reid Spencera773bd52006-08-04 18:18:08 +000014376ac_outfile=conftest.$ac_objext
14377printf "$lt_simple_link_test_code" >conftest.$ac_ext
14378eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14379_lt_linker_boilerplate=`cat conftest.err`
14380$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014381
14382
John Criswell47fdd832003-07-14 16:52:07 +000014383
14384lt_prog_compiler_no_builtin_flag=
14385
14386if test "$GCC" = yes; then
14387 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14388
Reid Spencer2706f8c2004-09-19 23:53:36 +000014389
Reid Spencera773bd52006-08-04 18:18:08 +000014390{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14391echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014392if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395 lt_cv_prog_compiler_rtti_exceptions=no
14396 ac_outfile=conftest.$ac_objext
14397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14398 lt_compiler_flag="-fno-rtti -fno-exceptions"
14399 # Insert the option either (1) after the last *FLAGS variable, or
14400 # (2) before a word containing "conftest.", or (3) at the end.
14401 # Note that $ac_compile itself does not contain backslashes and begins
14402 # with a dollar sign (not a hyphen), so the echo should work correctly.
14403 # The option is referenced via a variable to avoid confusing sed.
14404 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14407 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky267fddb2009-04-13 04:26:27 +000014408 (eval echo "\"\$as_me:14408: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014409 (eval "$lt_compile" 2>conftest.err)
14410 ac_status=$?
14411 cat conftest.err >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000014412 echo "$as_me:14412: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014413 if (exit $ac_status) && test -s "$ac_outfile"; then
14414 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014415 # So say no if there are warnings other than the usual output.
14416 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014419 lt_cv_prog_compiler_rtti_exceptions=yes
14420 fi
14421 fi
14422 $rm conftest*
14423
14424fi
Reid Spencera773bd52006-08-04 18:18:08 +000014425{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14426echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014427
14428if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14429 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14430else
14431 :
14432fi
14433
14434fi
14435
14436lt_prog_compiler_wl=
14437lt_prog_compiler_pic=
14438lt_prog_compiler_static=
14439
Reid Spencera773bd52006-08-04 18:18:08 +000014440{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14441echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014442
14443 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014444 lt_prog_compiler_wl='-Wl,'
14445 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014446
14447 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014448 aix*)
14449 # All AIX code is PIC.
14450 if test "$host_cpu" = ia64; then
14451 # AIX 5 now supports IA64 processor
14452 lt_prog_compiler_static='-Bstatic'
14453 fi
John Criswell7a73b802003-06-30 21:59:07 +000014454 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014455
John Criswell7a73b802003-06-30 21:59:07 +000014456 amigaos*)
14457 # FIXME: we need at least 68020 code to build shared libraries, but
14458 # adding the `-m68020' flag to GCC prevents building anything better,
14459 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014460 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014461 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014462
14463 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014464 # PIC is the default for these OSes.
14465 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014466
14467 mingw* | pw32* | os2*)
14468 # This hack is so that the source file can tell whether it is being
14469 # built for inclusion in a dll (and should export symbols for example).
14470 lt_prog_compiler_pic='-DDLL_EXPORT'
14471 ;;
14472
John Criswell7a73b802003-06-30 21:59:07 +000014473 darwin* | rhapsody*)
14474 # PIC is the default on this platform
14475 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014476 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014477 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014478
Reid Spencera773bd52006-08-04 18:18:08 +000014479 interix3*)
14480 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14481 # Instead, we relocate shared libraries at runtime.
14482 ;;
14483
John Criswell47fdd832003-07-14 16:52:07 +000014484 msdosdjgpp*)
14485 # Just because we use GCC doesn't mean we suddenly get shared libraries
14486 # on systems that don't support them.
14487 lt_prog_compiler_can_build_shared=no
14488 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014489 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014490
John Criswell7a73b802003-06-30 21:59:07 +000014491 sysv4*MP*)
14492 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014493 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014494 fi
14495 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014496
14497 hpux*)
14498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14499 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014500 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014501 hppa*64*|ia64*)
14502 # +Z the default
14503 ;;
14504 *)
14505 lt_prog_compiler_pic='-fPIC'
14506 ;;
14507 esac
14508 ;;
14509
John Criswell7a73b802003-06-30 21:59:07 +000014510 *)
John Criswell47fdd832003-07-14 16:52:07 +000014511 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014512 ;;
14513 esac
14514 else
John Criswell47fdd832003-07-14 16:52:07 +000014515 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014516 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014517 aix*)
14518 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014519 if test "$host_cpu" = ia64; then
14520 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014521 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014522 else
John Criswell47fdd832003-07-14 16:52:07 +000014523 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014524 fi
14525 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014526 darwin*)
14527 # PIC is the default on this platform
14528 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014529 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014530 xlc*)
14531 lt_prog_compiler_pic='-qnocommon'
14532 lt_prog_compiler_wl='-Wl,'
14533 ;;
14534 esac
14535 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014536
John Criswell47fdd832003-07-14 16:52:07 +000014537 mingw* | pw32* | os2*)
14538 # This hack is so that the source file can tell whether it is being
14539 # built for inclusion in a dll (and should export symbols for example).
14540 lt_prog_compiler_pic='-DDLL_EXPORT'
14541 ;;
14542
John Criswell7a73b802003-06-30 21:59:07 +000014543 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014544 lt_prog_compiler_wl='-Wl,'
14545 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14546 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014547 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014548 hppa*64*|ia64*)
14549 # +Z the default
14550 ;;
14551 *)
14552 lt_prog_compiler_pic='+Z'
14553 ;;
14554 esac
14555 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14556 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014557 ;;
14558
John Criswell47fdd832003-07-14 16:52:07 +000014559 irix5* | irix6* | nonstopux*)
14560 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014561 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014562 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014563 ;;
14564
14565 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014566 lt_prog_compiler_pic='-KPIC'
14567 lt_prog_compiler_static='-Bstatic'
14568 ;;
14569
14570 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014571 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014572 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014573 lt_prog_compiler_wl='-Wl,'
14574 lt_prog_compiler_pic='-KPIC'
14575 lt_prog_compiler_static='-static'
14576 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014577 pgcc* | pgf77* | pgf90* | pgf95*)
14578 # Portland Group compilers (*not* the Pentium gcc compiler,
14579 # which looks to be a dead project)
14580 lt_prog_compiler_wl='-Wl,'
14581 lt_prog_compiler_pic='-fpic'
14582 lt_prog_compiler_static='-Bstatic'
14583 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014584 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014585 lt_prog_compiler_wl='-Wl,'
14586 # All Alpha code is PIC.
14587 lt_prog_compiler_static='-non_shared'
14588 ;;
14589 esac
John Criswell7a73b802003-06-30 21:59:07 +000014590 ;;
14591
14592 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014593 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014594 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014595 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014596 ;;
14597
John Criswell7a73b802003-06-30 21:59:07 +000014598 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014599 lt_prog_compiler_pic='-KPIC'
14600 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014601 case $cc_basename in
14602 f77* | f90* | f95*)
14603 lt_prog_compiler_wl='-Qoption ld ';;
14604 *)
14605 lt_prog_compiler_wl='-Wl,';;
14606 esac
John Criswell7a73b802003-06-30 21:59:07 +000014607 ;;
14608
14609 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014610 lt_prog_compiler_wl='-Qoption ld '
14611 lt_prog_compiler_pic='-PIC'
14612 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014613 ;;
14614
Reid Spencera773bd52006-08-04 18:18:08 +000014615 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014616 lt_prog_compiler_wl='-Wl,'
14617 lt_prog_compiler_pic='-KPIC'
14618 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014619 ;;
14620
14621 sysv4*MP*)
14622 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014623 lt_prog_compiler_pic='-Kconform_pic'
14624 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014625 fi
14626 ;;
14627
Reid Spencera773bd52006-08-04 18:18:08 +000014628 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14629 lt_prog_compiler_wl='-Wl,'
14630 lt_prog_compiler_pic='-KPIC'
14631 lt_prog_compiler_static='-Bstatic'
14632 ;;
14633
14634 unicos*)
14635 lt_prog_compiler_wl='-Wl,'
14636 lt_prog_compiler_can_build_shared=no
14637 ;;
14638
John Criswell47fdd832003-07-14 16:52:07 +000014639 uts4*)
14640 lt_prog_compiler_pic='-pic'
14641 lt_prog_compiler_static='-Bstatic'
14642 ;;
14643
John Criswell7a73b802003-06-30 21:59:07 +000014644 *)
John Criswell47fdd832003-07-14 16:52:07 +000014645 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014646 ;;
14647 esac
14648 fi
14649
Reid Spencera773bd52006-08-04 18:18:08 +000014650{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14651echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014652
John Criswell47fdd832003-07-14 16:52:07 +000014653#
14654# Check to make sure the PIC flag actually works.
14655#
14656if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014657
Reid Spencera773bd52006-08-04 18:18:08 +000014658{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14659echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014660if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662else
John Criswell47fdd832003-07-14 16:52:07 +000014663 lt_prog_compiler_pic_works=no
14664 ac_outfile=conftest.$ac_objext
14665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14666 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14667 # Insert the option either (1) after the last *FLAGS variable, or
14668 # (2) before a word containing "conftest.", or (3) at the end.
14669 # Note that $ac_compile itself does not contain backslashes and begins
14670 # with a dollar sign (not a hyphen), so the echo should work correctly.
14671 # The option is referenced via a variable to avoid confusing sed.
14672 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky267fddb2009-04-13 04:26:27 +000014676 (eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014677 (eval "$lt_compile" 2>conftest.err)
14678 ac_status=$?
14679 cat conftest.err >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000014680 echo "$as_me:14680: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014681 if (exit $ac_status) && test -s "$ac_outfile"; then
14682 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014683 # So say no if there are warnings other than the usual output.
14684 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014687 lt_prog_compiler_pic_works=yes
14688 fi
14689 fi
14690 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014691
John Criswell47fdd832003-07-14 16:52:07 +000014692fi
Reid Spencera773bd52006-08-04 18:18:08 +000014693{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14694echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014695
John Criswell47fdd832003-07-14 16:52:07 +000014696if test x"$lt_prog_compiler_pic_works" = xyes; then
14697 case $lt_prog_compiler_pic in
14698 "" | " "*) ;;
14699 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14700 esac
John Criswell7a73b802003-06-30 21:59:07 +000014701else
John Criswell47fdd832003-07-14 16:52:07 +000014702 lt_prog_compiler_pic=
14703 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014704fi
14705
John Criswell7a73b802003-06-30 21:59:07 +000014706fi
Reid Spencera773bd52006-08-04 18:18:08 +000014707case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014708 # For platforms which do not support PIC, -DPIC is meaningless:
14709 *djgpp*)
14710 lt_prog_compiler_pic=
14711 ;;
14712 *)
14713 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14714 ;;
14715esac
John Criswell7a73b802003-06-30 21:59:07 +000014716
Reid Spencera773bd52006-08-04 18:18:08 +000014717#
14718# Check to make sure the static flag actually works.
14719#
14720wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14721{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14722echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14723if test "${lt_prog_compiler_static_works+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14725else
14726 lt_prog_compiler_static_works=no
14727 save_LDFLAGS="$LDFLAGS"
14728 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14729 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14730 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14731 # The linker can only warn and ignore the option if not recognized
14732 # So say no if there are warnings
14733 if test -s conftest.err; then
14734 # Append any errors to the config.log.
14735 cat conftest.err 1>&5
14736 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14738 if diff conftest.exp conftest.er2 >/dev/null; then
14739 lt_prog_compiler_static_works=yes
14740 fi
14741 else
14742 lt_prog_compiler_static_works=yes
14743 fi
14744 fi
14745 $rm conftest*
14746 LDFLAGS="$save_LDFLAGS"
14747
14748fi
14749{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14750echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14751
14752if test x"$lt_prog_compiler_static_works" = xyes; then
14753 :
14754else
14755 lt_prog_compiler_static=
14756fi
14757
14758
14759{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14760echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014761if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014762 echo $ECHO_N "(cached) $ECHO_C" >&6
14763else
John Criswell47fdd832003-07-14 16:52:07 +000014764 lt_cv_prog_compiler_c_o=no
14765 $rm -r conftest 2>/dev/null
14766 mkdir conftest
14767 cd conftest
14768 mkdir out
14769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014770
John Criswell47fdd832003-07-14 16:52:07 +000014771 lt_compiler_flag="-o out/conftest2.$ac_objext"
14772 # Insert the option either (1) after the last *FLAGS variable, or
14773 # (2) before a word containing "conftest.", or (3) at the end.
14774 # Note that $ac_compile itself does not contain backslashes and begins
14775 # with a dollar sign (not a hyphen), so the echo should work correctly.
14776 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky267fddb2009-04-13 04:26:27 +000014780 (eval echo "\"\$as_me:14780: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014781 (eval "$lt_compile" 2>out/conftest.err)
14782 ac_status=$?
14783 cat out/conftest.err >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000014784 echo "$as_me:14784: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14786 then
14787 # The compiler can only warn and ignore the option if not recognized
14788 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014789 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14790 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14791 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014792 lt_cv_prog_compiler_c_o=yes
14793 fi
14794 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014795 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014796 $rm conftest*
14797 # SGI C++ compiler will create directory out/ii_files/ for
14798 # template instantiation
14799 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14800 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014801 cd ..
14802 rmdir conftest
14803 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014804
14805fi
Reid Spencera773bd52006-08-04 18:18:08 +000014806{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14807echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014808
John Criswell7a73b802003-06-30 21:59:07 +000014809
John Criswell7a73b802003-06-30 21:59:07 +000014810hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014811if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014812 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014813 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14814echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014815 hard_links=yes
14816 $rm conftest*
14817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14818 touch conftest.a
14819 ln conftest.a conftest.b 2>&5 || hard_links=no
14820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014821 { echo "$as_me:$LINENO: result: $hard_links" >&5
14822echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014823 if test "$hard_links" = no; then
14824 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14825echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14826 need_locks=warn
14827 fi
14828else
14829 need_locks=no
14830fi
John Criswell7a73b802003-06-30 21:59:07 +000014831
Reid Spencera773bd52006-08-04 18:18:08 +000014832{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14833echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014834
14835 runpath_var=
14836 allow_undefined_flag=
14837 enable_shared_with_static_runtimes=no
14838 archive_cmds=
14839 archive_expsym_cmds=
14840 old_archive_From_new_cmds=
14841 old_archive_from_expsyms_cmds=
14842 export_dynamic_flag_spec=
14843 whole_archive_flag_spec=
14844 thread_safe_flag_spec=
14845 hardcode_libdir_flag_spec=
14846 hardcode_libdir_flag_spec_ld=
14847 hardcode_libdir_separator=
14848 hardcode_direct=no
14849 hardcode_minus_L=no
14850 hardcode_shlibpath_var=unsupported
14851 link_all_deplibs=unknown
14852 hardcode_automatic=no
14853 module_cmds=
14854 module_expsym_cmds=
14855 always_export_symbols=no
14856 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14857 # include_expsyms should be a list of space-separated symbols to be *always*
14858 # included in the symbol list
14859 include_expsyms=
14860 # exclude_expsyms can be an extended regexp of symbols to exclude
14861 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14862 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14863 # as well as any symbol that contains `d'.
14864 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14866 # platforms (ab)use it in PIC code, but their linkers get confused if
14867 # the symbol is explicitly referenced. Since portable code cannot
14868 # rely on this symbol name, it's probably fine to never include it in
14869 # preloaded symbol tables.
14870 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014871 # Just being paranoid about ensuring that cc_basename is set.
14872 for cc_temp in $compiler""; do
14873 case $cc_temp in
14874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14876 \-*) ;;
14877 *) break;;
14878 esac
14879done
14880cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014881
14882 case $host_os in
14883 cygwin* | mingw* | pw32*)
14884 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14885 # When not using gcc, we currently assume that we are using
14886 # Microsoft Visual C++.
14887 if test "$GCC" != yes; then
14888 with_gnu_ld=no
14889 fi
14890 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014891 interix*)
14892 # we just hope/assume this is gcc and not c89 (= MSVC++)
14893 with_gnu_ld=yes
14894 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014895 openbsd*)
14896 with_gnu_ld=no
14897 ;;
14898 esac
14899
14900 ld_shlibs=yes
14901 if test "$with_gnu_ld" = yes; then
14902 # If archive_cmds runs LD, not CC, wlarc should be empty
14903 wlarc='${wl}'
14904
Reid Spencera773bd52006-08-04 18:18:08 +000014905 # Set some defaults for GNU ld with shared library support. These
14906 # are reset later if shared libraries are not supported. Putting them
14907 # here allows them to be overridden if necessary.
14908 runpath_var=LD_RUN_PATH
14909 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14910 export_dynamic_flag_spec='${wl}--export-dynamic'
14911 # ancient GNU ld didn't support --whole-archive et. al.
14912 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14913 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14914 else
14915 whole_archive_flag_spec=
14916 fi
14917 supports_anon_versioning=no
14918 case `$LD -v 2>/dev/null` in
14919 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14920 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14921 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14922 *\ 2.11.*) ;; # other 2.11 versions
14923 *) supports_anon_versioning=yes ;;
14924 esac
14925
John Criswell47fdd832003-07-14 16:52:07 +000014926 # See if GNU ld supports shared libraries.
14927 case $host_os in
14928 aix3* | aix4* | aix5*)
14929 # On AIX/PPC, the GNU linker is very broken
14930 if test "$host_cpu" != ia64; then
14931 ld_shlibs=no
14932 cat <<EOF 1>&2
14933
14934*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14935*** to be unable to reliably create shared libraries on AIX.
14936*** Therefore, libtool is disabling shared libraries support. If you
14937*** really care for shared libraries, you may want to modify your PATH
14938*** so that a non-GNU linker is found, and then restart.
14939
14940EOF
14941 fi
14942 ;;
14943
14944 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014945 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000014946 hardcode_libdir_flag_spec='-L$libdir'
14947 hardcode_minus_L=yes
14948
14949 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14950 # that the semantics of dynamic libraries on AmigaOS, at least up
14951 # to version 4, is to share data among multiple programs linked
14952 # with the same dynamic library. Since this doesn't match the
14953 # behavior of shared libraries on other platforms, we can't use
14954 # them.
14955 ld_shlibs=no
14956 ;;
14957
14958 beos*)
14959 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14960 allow_undefined_flag=unsupported
14961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14962 # support --undefined. This deserves some investigation. FIXME
14963 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14964 else
14965 ld_shlibs=no
14966 fi
14967 ;;
14968
14969 cygwin* | mingw* | pw32*)
14970 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14971 # as there is no search path for DLLs.
14972 hardcode_libdir_flag_spec='-L$libdir'
14973 allow_undefined_flag=unsupported
14974 always_export_symbols=no
14975 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014976 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000014977
14978 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000014980 # If the export-symbols file already is a .def file (1st line
14981 # is EXPORTS), use it as is; otherwise, prepend...
14982 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14983 cp $export_symbols $output_objdir/$soname.def;
14984 else
14985 echo EXPORTS > $output_objdir/$soname.def;
14986 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014987 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014988 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14989 else
14990 ld_shlibs=no
14991 fi
14992 ;;
14993
14994 interix3*)
14995 hardcode_direct=no
14996 hardcode_shlibpath_var=no
14997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14998 export_dynamic_flag_spec='${wl}-E'
14999 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15000 # Instead, shared libraries are loaded at an image base (0x10000000 by
15001 # default) and relocated if they conflict, which is a slow very memory
15002 # consuming and fragmenting process. To avoid this, we pick a random,
15003 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15004 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15005 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15006 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15007 ;;
15008
15009 linux*)
15010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011 tmp_addflag=
15012 case $cc_basename,$host_cpu in
15013 pgcc*) # Portland Group C compiler
15014 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15015 tmp_addflag=' $pic_flag'
15016 ;;
15017 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15018 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15019 tmp_addflag=' $pic_flag -Mnomain' ;;
15020 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15021 tmp_addflag=' -i_dynamic' ;;
15022 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15023 tmp_addflag=' -i_dynamic -nofor_main' ;;
15024 ifc* | ifort*) # Intel Fortran compiler
15025 tmp_addflag=' -nofor_main' ;;
15026 esac
15027 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15028
15029 if test $supports_anon_versioning = yes; then
15030 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15031 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15032 $echo "local: *; };" >> $output_objdir/$libname.ver~
15033 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15034 fi
John Criswell47fdd832003-07-14 16:52:07 +000015035 else
15036 ld_shlibs=no
15037 fi
15038 ;;
15039
15040 netbsd*)
15041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15042 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15043 wlarc=
15044 else
15045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15047 fi
15048 ;;
15049
Reid Spencera773bd52006-08-04 18:18:08 +000015050 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015051 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15052 ld_shlibs=no
15053 cat <<EOF 1>&2
15054
15055*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15056*** create shared libraries on Solaris systems. Therefore, libtool
15057*** is disabling shared libraries support. We urge you to upgrade GNU
15058*** binutils to release 2.9.1 or newer. Another option is to modify
15059*** your PATH or compiler configuration so that the native linker is
15060*** used, and then restart.
15061
15062EOF
15063 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15066 else
15067 ld_shlibs=no
15068 fi
15069 ;;
15070
Reid Spencera773bd52006-08-04 18:18:08 +000015071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15072 case `$LD -v 2>&1` in
15073 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15074 ld_shlibs=no
15075 cat <<_LT_EOF 1>&2
15076
15077*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15078*** reliably create shared libraries on SCO systems. Therefore, libtool
15079*** is disabling shared libraries support. We urge you to upgrade GNU
15080*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15081*** your PATH or compiler configuration so that the native linker is
15082*** used, and then restart.
15083
15084_LT_EOF
15085 ;;
15086 *)
15087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15088 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15091 else
15092 ld_shlibs=no
15093 fi
15094 ;;
15095 esac
15096 ;;
15097
John Criswell47fdd832003-07-14 16:52:07 +000015098 sunos4*)
15099 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15100 wlarc=
15101 hardcode_direct=yes
15102 hardcode_shlibpath_var=no
15103 ;;
15104
15105 *)
15106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15109 else
15110 ld_shlibs=no
15111 fi
15112 ;;
15113 esac
15114
Reid Spencera773bd52006-08-04 18:18:08 +000015115 if test "$ld_shlibs" = no; then
15116 runpath_var=
15117 hardcode_libdir_flag_spec=
15118 export_dynamic_flag_spec=
15119 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015120 fi
15121 else
15122 # PORTME fill in a description of your system's linker (not GNU ld)
15123 case $host_os in
15124 aix3*)
15125 allow_undefined_flag=unsupported
15126 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015127 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000015128 # Note: this linker hardcodes the directories in LIBPATH if there
15129 # are no directories specified by -L.
15130 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015131 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015132 # Neither direct hardcoding nor static linking is supported with a
15133 # broken collect2.
15134 hardcode_direct=unsupported
15135 fi
15136 ;;
15137
15138 aix4* | aix5*)
15139 if test "$host_cpu" = ia64; then
15140 # On IA64, the linker does run time linking by default, so we don't
15141 # have to do anything special.
15142 aix_use_runtimelinking=no
15143 exp_sym_flag='-Bexport'
15144 no_entry_flag=""
15145 else
15146 # If we're using GNU nm, then we don't want the "-C" option.
15147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15148 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15149 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15150 else
15151 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15152 fi
15153 aix_use_runtimelinking=no
15154
15155 # Test if we are trying to use run time linking or normal
15156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15157 # need to do runtime linking.
15158 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15159 for ld_flag in $LDFLAGS; do
15160 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15161 aix_use_runtimelinking=yes
15162 break
15163 fi
15164 done
Reid Spencera773bd52006-08-04 18:18:08 +000015165 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015166 esac
15167
15168 exp_sym_flag='-bexport'
15169 no_entry_flag='-bnoentry'
15170 fi
15171
15172 # When large executables or shared objects are built, AIX ld can
15173 # have problems creating the table of contents. If linking a library
15174 # or program results in "error TOC overflow" add -mminimal-toc to
15175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15177
15178 archive_cmds=''
15179 hardcode_direct=yes
15180 hardcode_libdir_separator=':'
15181 link_all_deplibs=yes
15182
15183 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015184 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015185 # We only want to do this on AIX 4.2 and lower, the check
15186 # below for broken collect2 doesn't work under 4.3+
15187 collect2name=`${CC} -print-prog-name=collect2`
15188 if test -f "$collect2name" && \
15189 strings "$collect2name" | grep resolve_lib_name >/dev/null
15190 then
15191 # We have reworked collect2
15192 hardcode_direct=yes
15193 else
15194 # We have old collect2
15195 hardcode_direct=unsupported
15196 # It fails to find uninstalled libraries when the uninstalled
15197 # path is not listed in the libpath. Setting hardcode_minus_L
15198 # to unsupported forces relinking
15199 hardcode_minus_L=yes
15200 hardcode_libdir_flag_spec='-L$libdir'
15201 hardcode_libdir_separator=
15202 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015203 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015204 esac
15205 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015206 if test "$aix_use_runtimelinking" = yes; then
15207 shared_flag="$shared_flag "'${wl}-G'
15208 fi
John Criswell47fdd832003-07-14 16:52:07 +000015209 else
15210 # not using gcc
15211 if test "$host_cpu" = ia64; then
15212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15213 # chokes on -Wl,-G. The following line is correct:
15214 shared_flag='-G'
15215 else
Reid Spencera773bd52006-08-04 18:18:08 +000015216 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015217 shared_flag='${wl}-G'
15218 else
15219 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015220 fi
John Criswell47fdd832003-07-14 16:52:07 +000015221 fi
15222 fi
15223
15224 # It seems that -bexpall does not export symbols beginning with
15225 # underscore (_), so it is better to generate a list of symbols to export.
15226 always_export_symbols=yes
15227 if test "$aix_use_runtimelinking" = yes; then
15228 # Warning - without using the other runtime loading flags (-brtl),
15229 # -berok will link without error, but may produce a broken library.
15230 allow_undefined_flag='-berok'
15231 # Determine the default libpath from the value encoded in an empty executable.
15232 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015233/* confdefs.h. */
15234_ACEOF
15235cat confdefs.h >>conftest.$ac_ext
15236cat >>conftest.$ac_ext <<_ACEOF
15237/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015238
John Criswell7a73b802003-06-30 21:59:07 +000015239int
15240main ()
15241{
John Criswell47fdd832003-07-14 16:52:07 +000015242
John Criswell7a73b802003-06-30 21:59:07 +000015243 ;
15244 return 0;
15245}
15246_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015247rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015248if { (ac_try="$ac_link"
15249case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15252esac
15253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015255 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015256 grep -v '^ *+' conftest.er1 >conftest.err
15257 rm -f conftest.er1
15258 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015260 (exit $ac_status); } &&
15261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest$ac_exeext'
15272 { (case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275esac
15276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_try") 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015281
John Criswell47fdd832003-07-14 16:52:07 +000015282aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15283}'`
15284# Check for a 64-bit object if we didn't find anything.
15285if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15286}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015287else
15288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015289sed 's/^/| /' conftest.$ac_ext >&5
15290
Reid Spencera773bd52006-08-04 18:18:08 +000015291
John Criswell7a73b802003-06-30 21:59:07 +000015292fi
Reid Spencera773bd52006-08-04 18:18:08 +000015293
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015294rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015295 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015296if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015297
John Criswell47fdd832003-07-14 16:52:07 +000015298 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015299 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
John Criswell47fdd832003-07-14 16:52:07 +000015300 else
15301 if test "$host_cpu" = ia64; then
15302 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15303 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015304 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
John Criswell47fdd832003-07-14 16:52:07 +000015305 else
15306 # Determine the default libpath from the value encoded in an empty executable.
15307 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015308/* confdefs.h. */
15309_ACEOF
15310cat confdefs.h >>conftest.$ac_ext
15311cat >>conftest.$ac_ext <<_ACEOF
15312/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015313
John Criswell47fdd832003-07-14 16:52:07 +000015314int
15315main ()
15316{
John Criswell7a73b802003-06-30 21:59:07 +000015317
John Criswell47fdd832003-07-14 16:52:07 +000015318 ;
15319 return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015323if { (ac_try="$ac_link"
15324case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15327esac
15328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015330 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015335 (exit $ac_status); } &&
15336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15337 { (case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15340esac
15341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_try") 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; } &&
15346 { ac_try='test -s conftest$ac_exeext'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15350esac
15351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015356
John Criswell47fdd832003-07-14 16:52:07 +000015357aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15358}'`
15359# Check for a 64-bit object if we didn't find anything.
15360if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15361}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015362else
John Criswell47fdd832003-07-14 16:52:07 +000015363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015364sed 's/^/| /' conftest.$ac_ext >&5
15365
Reid Spencera773bd52006-08-04 18:18:08 +000015366
John Criswell47fdd832003-07-14 16:52:07 +000015367fi
Reid Spencera773bd52006-08-04 18:18:08 +000015368
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015369rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015370 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015371if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015372
John Criswell47fdd832003-07-14 16:52:07 +000015373 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15374 # Warning - without using the other run time loading flags,
15375 # -berok will link without error, but may produce a broken library.
15376 no_undefined_flag=' ${wl}-bernotok'
15377 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015378 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015379 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015380 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015381 # This is similar to how AIX traditionally builds its shared libraries.
15382 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell7a73b802003-06-30 21:59:07 +000015383 fi
15384 fi
John Criswell7a73b802003-06-30 21:59:07 +000015385 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015386
15387 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015388 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000015389 hardcode_libdir_flag_spec='-L$libdir'
15390 hardcode_minus_L=yes
15391 # see comment about different semantics on the GNU ld section
15392 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015393 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015394
Reid Spencer2706f8c2004-09-19 23:53:36 +000015395 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015396 export_dynamic_flag_spec=-rdynamic
15397 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015398
John Criswell47fdd832003-07-14 16:52:07 +000015399 cygwin* | mingw* | pw32*)
15400 # When not using gcc, we currently assume that we are using
15401 # Microsoft Visual C++.
15402 # hardcode_libdir_flag_spec is actually meaningless, as there is
15403 # no search path for DLLs.
15404 hardcode_libdir_flag_spec=' '
15405 allow_undefined_flag=unsupported
15406 # Tell ltmain to make .lib files, not .a files.
15407 libext=lib
15408 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015409 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015410 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015411 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015412 # The linker will automatically build a .lib file if we build a DLL.
15413 old_archive_From_new_cmds='true'
15414 # FIXME: Should let the user specify the lib program.
15415 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15416 fix_srcfile_path='`cygpath -w "$srcfile"`'
15417 enable_shared_with_static_runtimes=yes
15418 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015419
John Criswell47fdd832003-07-14 16:52:07 +000015420 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015421 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015422 rhapsody* | darwin1.[012])
15423 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15424 ;;
15425 *) # Darwin 1.3 on
15426 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15427 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15428 else
15429 case ${MACOSX_DEPLOYMENT_TARGET} in
15430 10.[012])
15431 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15432 ;;
15433 10.*)
15434 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15435 ;;
15436 esac
15437 fi
15438 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015439 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015440 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015441 hardcode_direct=no
15442 hardcode_automatic=yes
15443 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015444 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015445 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015446 if test "$GCC" = yes ; then
15447 output_verbose_link_cmd='echo'
15448 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15449 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015450 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000015451 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15452 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015453 else
Reid Spencera773bd52006-08-04 18:18:08 +000015454 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015455 xlc*)
15456 output_verbose_link_cmd='echo'
15457 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15458 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000015460 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15461 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015462 ;;
15463 *)
15464 ld_shlibs=no
15465 ;;
15466 esac
John Criswell7a73b802003-06-30 21:59:07 +000015467 fi
John Criswell47fdd832003-07-14 16:52:07 +000015468 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015469
John Criswell47fdd832003-07-14 16:52:07 +000015470 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015472 hardcode_libdir_flag_spec='-L$libdir'
15473 hardcode_shlibpath_var=no
15474 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015475
John Criswell47fdd832003-07-14 16:52:07 +000015476 freebsd1*)
15477 ld_shlibs=no
15478 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015479
John Criswell47fdd832003-07-14 16:52:07 +000015480 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15481 # support. Future versions do this automatically, but an explicit c++rt0.o
15482 # does not break anything, and helps significantly (at the cost of a little
15483 # extra space).
15484 freebsd2.2*)
15485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15486 hardcode_libdir_flag_spec='-R$libdir'
15487 hardcode_direct=yes
15488 hardcode_shlibpath_var=no
15489 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015490
John Criswell47fdd832003-07-14 16:52:07 +000015491 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15492 freebsd2*)
15493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15494 hardcode_direct=yes
15495 hardcode_minus_L=yes
15496 hardcode_shlibpath_var=no
15497 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015498
John Criswell47fdd832003-07-14 16:52:07 +000015499 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015500 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015501 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15502 hardcode_libdir_flag_spec='-R$libdir'
15503 hardcode_direct=yes
15504 hardcode_shlibpath_var=no
15505 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015506
John Criswell47fdd832003-07-14 16:52:07 +000015507 hpux9*)
15508 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015509 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015510 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015511 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015512 fi
15513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15514 hardcode_libdir_separator=:
15515 hardcode_direct=yes
15516
15517 # hardcode_minus_L: Not really in the search PATH,
15518 # but as the default location of the library.
15519 hardcode_minus_L=yes
15520 export_dynamic_flag_spec='${wl}-E'
15521 ;;
15522
Reid Spencera773bd52006-08-04 18:18:08 +000015523 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015524 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015525 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15526 else
15527 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15528 fi
15529 if test "$with_gnu_ld" = no; then
15530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15531 hardcode_libdir_separator=:
15532
15533 hardcode_direct=yes
15534 export_dynamic_flag_spec='${wl}-E'
15535
15536 # hardcode_minus_L: Not really in the search PATH,
15537 # but as the default location of the library.
15538 hardcode_minus_L=yes
15539 fi
15540 ;;
15541
15542 hpux11*)
15543 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15544 case $host_cpu in
15545 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015546 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15547 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015548 ia64*)
15549 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15550 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015551 *)
15552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15553 ;;
15554 esac
15555 else
Reid Spencera773bd52006-08-04 18:18:08 +000015556 case $host_cpu in
15557 hppa*64*)
15558 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 ;;
15560 ia64*)
15561 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015562 ;;
15563 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015564 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015565 ;;
15566 esac
15567 fi
15568 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015569 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15570 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015571
Reid Spencera773bd52006-08-04 18:18:08 +000015572 case $host_cpu in
15573 hppa*64*|ia64*)
15574 hardcode_libdir_flag_spec_ld='+b $libdir'
15575 hardcode_direct=no
15576 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015577 ;;
15578 *)
John Criswell47fdd832003-07-14 16:52:07 +000015579 hardcode_direct=yes
15580 export_dynamic_flag_spec='${wl}-E'
15581
15582 # hardcode_minus_L: Not really in the search PATH,
15583 # but as the default location of the library.
15584 hardcode_minus_L=yes
15585 ;;
15586 esac
15587 fi
15588 ;;
15589
15590 irix5* | irix6* | nonstopux*)
15591 if test "$GCC" = yes; then
15592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15593 else
15594 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15595 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15596 fi
15597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15598 hardcode_libdir_separator=:
15599 link_all_deplibs=yes
15600 ;;
15601
15602 netbsd*)
15603 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15605 else
15606 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15607 fi
15608 hardcode_libdir_flag_spec='-R$libdir'
15609 hardcode_direct=yes
15610 hardcode_shlibpath_var=no
15611 ;;
15612
15613 newsos6)
15614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615 hardcode_direct=yes
15616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15617 hardcode_libdir_separator=:
15618 hardcode_shlibpath_var=no
15619 ;;
15620
15621 openbsd*)
15622 hardcode_direct=yes
15623 hardcode_shlibpath_var=no
15624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015626 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000015627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15628 export_dynamic_flag_spec='${wl}-E'
15629 else
15630 case $host_os in
15631 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15633 hardcode_libdir_flag_spec='-R$libdir'
15634 ;;
15635 *)
15636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15638 ;;
15639 esac
15640 fi
15641 ;;
15642
15643 os2*)
15644 hardcode_libdir_flag_spec='-L$libdir'
15645 hardcode_minus_L=yes
15646 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015647 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
John Criswell47fdd832003-07-14 16:52:07 +000015648 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15649 ;;
15650
15651 osf3*)
15652 if test "$GCC" = yes; then
15653 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15654 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15655 else
15656 allow_undefined_flag=' -expect_unresolved \*'
15657 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15658 fi
15659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15660 hardcode_libdir_separator=:
15661 ;;
15662
15663 osf4* | osf5*) # as osf3* with the addition of -msym flag
15664 if test "$GCC" = yes; then
15665 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15666 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15668 else
15669 allow_undefined_flag=' -expect_unresolved \*'
15670 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000015671 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000015672 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
Reid Spencer177dbe22004-10-13 01:01:03 +000015673
John Criswell47fdd832003-07-14 16:52:07 +000015674 # Both c and cxx compiler support -rpath directly
15675 hardcode_libdir_flag_spec='-rpath $libdir'
15676 fi
15677 hardcode_libdir_separator=:
15678 ;;
15679
John Criswell47fdd832003-07-14 16:52:07 +000015680 solaris*)
15681 no_undefined_flag=' -z text'
15682 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015683 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015684 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015685 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15686 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015687 else
Reid Spencera773bd52006-08-04 18:18:08 +000015688 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015689 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015690 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15691 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015692 fi
15693 hardcode_libdir_flag_spec='-R$libdir'
15694 hardcode_shlibpath_var=no
15695 case $host_os in
15696 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015697 *)
15698 # The compiler driver will combine linker options so we
15699 # cannot just pass the convience library names through
15700 # without $wl, iff we do not link with $LD.
15701 # Luckily, gcc supports the same syntax we need for Sun Studio.
15702 # Supported since Solaris 2.6 (maybe 2.5.1?)
15703 case $wlarc in
15704 '')
15705 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15706 *)
15707 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15708 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015709 esac
15710 link_all_deplibs=yes
15711 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015712
John Criswell47fdd832003-07-14 16:52:07 +000015713 sunos4*)
15714 if test "x$host_vendor" = xsequent; then
15715 # Use $CC to link under sequent, because it throws in some extra .o
15716 # files that make .init and .fini sections work.
15717 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15718 else
15719 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15720 fi
15721 hardcode_libdir_flag_spec='-L$libdir'
15722 hardcode_direct=yes
15723 hardcode_minus_L=yes
15724 hardcode_shlibpath_var=no
15725 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015726
John Criswell47fdd832003-07-14 16:52:07 +000015727 sysv4)
15728 case $host_vendor in
15729 sni)
15730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731 hardcode_direct=yes # is this really true???
15732 ;;
15733 siemens)
15734 ## LD is ld it makes a PLAMLIB
15735 ## CC just makes a GrossModule.
15736 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15737 reload_cmds='$CC -r -o $output$reload_objs'
15738 hardcode_direct=no
15739 ;;
15740 motorola)
15741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15742 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15743 ;;
15744 esac
15745 runpath_var='LD_RUN_PATH'
15746 hardcode_shlibpath_var=no
15747 ;;
15748
15749 sysv4.3*)
15750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15751 hardcode_shlibpath_var=no
15752 export_dynamic_flag_spec='-Bexport'
15753 ;;
15754
15755 sysv4*MP*)
15756 if test -d /usr/nec; then
15757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_shlibpath_var=no
15759 runpath_var=LD_RUN_PATH
15760 hardcode_runpath_var=yes
15761 ld_shlibs=yes
15762 fi
15763 ;;
15764
Reid Spencera773bd52006-08-04 18:18:08 +000015765 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15766 no_undefined_flag='${wl}-z,text'
15767 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015768 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015769 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015770
John Criswell47fdd832003-07-14 16:52:07 +000015771 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015772 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15773 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015774 else
Reid Spencera773bd52006-08-04 18:18:08 +000015775 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15776 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015777 fi
John Criswell47fdd832003-07-14 16:52:07 +000015778 ;;
15779
Reid Spencera773bd52006-08-04 18:18:08 +000015780 sysv5* | sco3.2v5* | sco5v6*)
15781 # Note: We can NOT use -z defs as we might desire, because we do not
15782 # link with -lc, and that would cause any symbols used from libc to
15783 # always be unresolved, which means just about no library would
15784 # ever link correctly. If we're not using GNU ld we use -z text
15785 # though, which does catch some bad symbols but isn't as heavy-handed
15786 # as -z defs.
15787 no_undefined_flag='${wl}-z,text'
15788 allow_undefined_flag='${wl}-z,nodefs'
15789 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015790 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015791 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15792 hardcode_libdir_separator=':'
15793 link_all_deplibs=yes
15794 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015795 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015796
15797 if test "$GCC" = yes; then
15798 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15799 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15800 else
15801 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15802 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15803 fi
John Criswell47fdd832003-07-14 16:52:07 +000015804 ;;
15805
15806 uts4*)
15807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15808 hardcode_libdir_flag_spec='-L$libdir'
15809 hardcode_shlibpath_var=no
15810 ;;
15811
15812 *)
15813 ld_shlibs=no
15814 ;;
15815 esac
15816 fi
15817
Reid Spencera773bd52006-08-04 18:18:08 +000015818{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15819echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015820test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015821
John Criswell47fdd832003-07-14 16:52:07 +000015822#
15823# Do we need to explicitly link libc?
15824#
15825case "x$archive_cmds_need_lc" in
15826x|xyes)
15827 # Assume -lc should be added
15828 archive_cmds_need_lc=yes
15829
15830 if test "$enable_shared" = yes && test "$GCC" = yes; then
15831 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015832 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015833 # FIXME: we may have to deal with multi-command sequences.
15834 ;;
15835 '$CC '*)
15836 # Test whether the compiler implicitly links with -lc since on some
15837 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15838 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015839 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15840echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015841 $rm conftest*
15842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15843
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } 2>conftest.err; then
15849 soname=conftest
15850 lib=conftest
15851 libobjs=conftest.$ac_objext
15852 deplibs=
15853 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015854 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015855 compiler_flags=-v
15856 linker_flags=-v
15857 verstring=
15858 output_objdir=.
15859 libname=conftest
15860 lt_save_allow_undefined_flag=$allow_undefined_flag
15861 allow_undefined_flag=
15862 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15863 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }
15867 then
15868 archive_cmds_need_lc=no
15869 else
15870 archive_cmds_need_lc=yes
15871 fi
15872 allow_undefined_flag=$lt_save_allow_undefined_flag
15873 else
15874 cat conftest.err 1>&5
15875 fi
15876 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015877 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15878echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015879 ;;
15880 esac
15881 fi
15882 ;;
15883esac
15884
Reid Spencera773bd52006-08-04 18:18:08 +000015885{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15886echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015887library_names_spec=
15888libname_spec='lib$name'
15889soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015890shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015891postinstall_cmds=
15892postuninstall_cmds=
15893finish_cmds=
15894finish_eval=
15895shlibpath_var=
15896shlibpath_overrides_runpath=unknown
15897version_type=none
15898dynamic_linker="$host_os ld.so"
15899sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015900if test "$GCC" = yes; then
15901 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15902 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15903 # if the path contains ";" then we assume it to be the separator
15904 # otherwise default to the standard path separator (i.e. ":") - it is
15905 # assumed that no part of a normal pathname contains ";" but that should
15906 # okay in the real world where ";" in dirpaths is itself problematic.
15907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15908 else
15909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15910 fi
15911else
15912 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15913fi
15914need_lib_prefix=unknown
15915hardcode_into_libs=no
15916
15917# when you set need_version to no, make sure it does not cause -set_version
15918# flags to be left without arguments
15919need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015920
15921case $host_os in
15922aix3*)
15923 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015925 shlibpath_var=LIBPATH
15926
John Criswell47fdd832003-07-14 16:52:07 +000015927 # AIX 3 has no versioning support, so we append a major version to the name.
15928 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015929 ;;
15930
15931aix4* | aix5*)
15932 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015933 need_lib_prefix=no
15934 need_version=no
15935 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015936 if test "$host_cpu" = ia64; then
15937 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015938 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015939 shlibpath_var=LD_LIBRARY_PATH
15940 else
15941 # With GCC up to 2.95.x, collect2 would create an import file
15942 # for dependence libraries. The import file would start with
15943 # the line `#! .'. This would cause the generated library to
15944 # depend on `.', always an invalid library. This was fixed in
15945 # development snapshots of GCC prior to 3.0.
15946 case $host_os in
15947 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015948 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15949 echo ' yes '
15950 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15951 :
15952 else
15953 can_build_shared=no
15954 fi
15955 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015956 esac
John Criswell47fdd832003-07-14 16:52:07 +000015957 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15958 # soname into executable. Probably we can add versioning support to
15959 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015960 if test "$aix_use_runtimelinking" = yes; then
15961 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15962 # instead of lib<name>.a to let people know that these are not
15963 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015965 else
15966 # We preserve .a as extension for shared libraries through AIX4.2
15967 # and later when we are not doing run time linking.
15968 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015969 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015970 fi
15971 shlibpath_var=LIBPATH
15972 fi
15973 ;;
15974
15975amigaos*)
15976 library_names_spec='$libname.ixlibrary $libname.a'
15977 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015978 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'
John Criswell7a73b802003-06-30 21:59:07 +000015979 ;;
15980
15981beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015982 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015983 dynamic_linker="$host_os ld.so"
15984 shlibpath_var=LIBRARY_PATH
15985 ;;
15986
Reid Spencer2706f8c2004-09-19 23:53:36 +000015987bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015988 version_type=linux
15989 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015992 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15993 shlibpath_var=LD_LIBRARY_PATH
15994 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15995 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015996 # the default ld.so.conf also contains /usr/contrib/lib and
15997 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15998 # libtool to hard-code these into programs
15999 ;;
16000
16001cygwin* | mingw* | pw32*)
16002 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016003 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016004 need_version=no
16005 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016006
John Criswell7a73b802003-06-30 21:59:07 +000016007 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016008 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016009 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016010 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016011 postinstall_cmds='base_file=`basename \${file}`~
16012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16013 dldir=$destdir/`dirname \$dlpath`~
16014 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016015 $install_prog $dir/$dlname \$dldir/$dlname~
16016 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16018 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016019 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016020 shlibpath_overrides_runpath=yes
16021
16022 case $host_os in
16023 cygwin*)
16024 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16025 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016026 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016027 ;;
16028 mingw*)
16029 # MinGW DLLs use traditional 'lib' prefix
16030 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16031 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16032 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16033 # It is most probably a Windows format PATH printed by
16034 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16035 # path with ; separators, and with drive letters. We can handle the
16036 # drive letters (cygwin fileutils understands them), so leave them,
16037 # especially as we might pass files found there to a mingw objdump,
16038 # which wouldn't understand a cygwinified path. Ahh.
16039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16040 else
16041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16042 fi
16043 ;;
16044 pw32*)
16045 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016046 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016047 ;;
16048 esac
John Criswell7a73b802003-06-30 21:59:07 +000016049 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016050
John Criswell7a73b802003-06-30 21:59:07 +000016051 *)
John Criswell47fdd832003-07-14 16:52:07 +000016052 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016053 ;;
16054 esac
16055 dynamic_linker='Win32 ld.exe'
16056 # FIXME: first we should search . and the directory the executable is in
16057 shlibpath_var=PATH
16058 ;;
16059
16060darwin* | rhapsody*)
16061 dynamic_linker="$host_os dyld"
16062 version_type=darwin
16063 need_lib_prefix=no
16064 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016065 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016066 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016067 shlibpath_overrides_runpath=yes
16068 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016069 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016070 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016071 if test "$GCC" = yes; then
16072 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"`
16073 else
16074 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016075 fi
16076 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16077 ;;
16078
16079dgux*)
16080 version_type=linux
16081 need_lib_prefix=no
16082 need_version=no
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16084 soname_spec='${libname}${release}${shared_ext}$major'
16085 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016086 ;;
16087
16088freebsd1*)
16089 dynamic_linker=no
16090 ;;
16091
Reid Spencer2706f8c2004-09-19 23:53:36 +000016092kfreebsd*-gnu)
16093 version_type=linux
16094 need_lib_prefix=no
16095 need_version=no
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16098 shlibpath_var=LD_LIBRARY_PATH
16099 shlibpath_overrides_runpath=no
16100 hardcode_into_libs=yes
16101 dynamic_linker='GNU ld.so'
16102 ;;
16103
Reid Spencera773bd52006-08-04 18:18:08 +000016104freebsd* | dragonfly*)
16105 # DragonFly does not have aout. When/if they implement a new
16106 # versioning mechanism, adjust this.
16107 if test -x /usr/bin/objformat; then
16108 objformat=`/usr/bin/objformat`
16109 else
16110 case $host_os in
16111 freebsd[123]*) objformat=aout ;;
16112 *) objformat=elf ;;
16113 esac
16114 fi
John Criswell7a73b802003-06-30 21:59:07 +000016115 version_type=freebsd-$objformat
16116 case $version_type in
16117 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016119 need_version=no
16120 need_lib_prefix=no
16121 ;;
16122 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016124 need_version=yes
16125 ;;
16126 esac
16127 shlibpath_var=LD_LIBRARY_PATH
16128 case $host_os in
16129 freebsd2*)
16130 shlibpath_overrides_runpath=yes
16131 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016132 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016133 shlibpath_overrides_runpath=yes
16134 hardcode_into_libs=yes
16135 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016136 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16137 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016138 shlibpath_overrides_runpath=no
16139 hardcode_into_libs=yes
16140 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016141 freebsd*) # from 4.6 on
16142 shlibpath_overrides_runpath=yes
16143 hardcode_into_libs=yes
16144 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016145 esac
16146 ;;
16147
16148gnu*)
16149 version_type=linux
16150 need_lib_prefix=no
16151 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016154 shlibpath_var=LD_LIBRARY_PATH
16155 hardcode_into_libs=yes
16156 ;;
16157
16158hpux9* | hpux10* | hpux11*)
16159 # Give a soname corresponding to the major version so that dld.sl refuses to
16160 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016161 version_type=sunos
16162 need_lib_prefix=no
16163 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016164 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016165 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016166 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016167 hardcode_into_libs=yes
16168 dynamic_linker="$host_os dld.so"
16169 shlibpath_var=LD_LIBRARY_PATH
16170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 if test "X$HPUX_IA64_MODE" = X32; then
16174 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16175 else
16176 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16177 fi
16178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16179 ;;
16180 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016181 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016182 hardcode_into_libs=yes
16183 dynamic_linker="$host_os dld.sl"
16184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16190 ;;
16191 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016192 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016193 dynamic_linker="$host_os dld.sl"
16194 shlibpath_var=SHLIB_PATH
16195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197 soname_spec='${libname}${release}${shared_ext}$major'
16198 ;;
16199 esac
John Criswell7a73b802003-06-30 21:59:07 +000016200 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16201 postinstall_cmds='chmod 555 $lib'
16202 ;;
16203
Reid Spencera773bd52006-08-04 18:18:08 +000016204interix3*)
16205 version_type=linux
16206 need_lib_prefix=no
16207 need_version=no
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16211 shlibpath_var=LD_LIBRARY_PATH
16212 shlibpath_overrides_runpath=no
16213 hardcode_into_libs=yes
16214 ;;
16215
John Criswell47fdd832003-07-14 16:52:07 +000016216irix5* | irix6* | nonstopux*)
16217 case $host_os in
16218 nonstopux*) version_type=nonstopux ;;
16219 *)
16220 if test "$lt_cv_prog_gnu_ld" = yes; then
16221 version_type=linux
16222 else
16223 version_type=irix
16224 fi ;;
16225 esac
John Criswell7a73b802003-06-30 21:59:07 +000016226 need_lib_prefix=no
16227 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016228 soname_spec='${libname}${release}${shared_ext}$major'
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016230 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016231 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016232 libsuff= shlibsuff=
16233 ;;
16234 *)
16235 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16237 libsuff= shlibsuff= libmagic=32-bit;;
16238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16239 libsuff=32 shlibsuff=N32 libmagic=N32;;
16240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16241 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016242 *) libsuff= shlibsuff= libmagic=never-match;;
16243 esac
16244 ;;
16245 esac
16246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16247 shlibpath_overrides_runpath=no
16248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016250 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016251 ;;
16252
16253# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016254linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016255 dynamic_linker=no
16256 ;;
16257
16258# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016259linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016260 version_type=linux
16261 need_lib_prefix=no
16262 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 shlibpath_overrides_runpath=no
16268 # This implies no fast_install, which is unacceptable.
16269 # Some rework will be needed to allow for fast_install
16270 # before this can be enabled.
16271 hardcode_into_libs=yes
16272
Reid Spencer2706f8c2004-09-19 23:53:36 +000016273 # Append ld.so.conf contents to the search path
16274 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016275 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 Spencer2706f8c2004-09-19 23:53:36 +000016276 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16277 fi
16278
John Criswell7a73b802003-06-30 21:59:07 +000016279 # We used to test for /lib/ld.so.1 and disable shared libraries on
16280 # powerpc, because MkLinux only supported shared libraries with the
16281 # GNU dynamic linker. Since this was broken with cross compilers,
16282 # most powerpc-linux boxes support dynamic linking these days and
16283 # people can always --disable-shared, the test was removed, and we
16284 # assume the GNU/Linux dynamic linker is in use.
16285 dynamic_linker='GNU/Linux ld.so'
16286 ;;
16287
Reid Spencer2706f8c2004-09-19 23:53:36 +000016288knetbsd*-gnu)
16289 version_type=linux
16290 need_lib_prefix=no
16291 need_version=no
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 shlibpath_var=LD_LIBRARY_PATH
16295 shlibpath_overrides_runpath=no
16296 hardcode_into_libs=yes
16297 dynamic_linker='GNU ld.so'
16298 ;;
16299
John Criswell7a73b802003-06-30 21:59:07 +000016300netbsd*)
16301 version_type=sunos
16302 need_lib_prefix=no
16303 need_version=no
16304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16307 dynamic_linker='NetBSD (a.out) ld.so'
16308 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016310 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016311 dynamic_linker='NetBSD ld.elf_so'
16312 fi
16313 shlibpath_var=LD_LIBRARY_PATH
16314 shlibpath_overrides_runpath=yes
16315 hardcode_into_libs=yes
16316 ;;
16317
16318newsos6)
16319 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 shlibpath_overrides_runpath=yes
16323 ;;
16324
Reid Spencer2706f8c2004-09-19 23:53:36 +000016325nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016326 version_type=linux
16327 need_lib_prefix=no
16328 need_version=no
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016331 shlibpath_var=LD_LIBRARY_PATH
16332 shlibpath_overrides_runpath=yes
16333 ;;
16334
16335openbsd*)
16336 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016337 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016338 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016339 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16340 case $host_os in
16341 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16342 *) need_version=no ;;
16343 esac
John Criswell47fdd832003-07-14 16:52:07 +000016344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16346 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
John Criswell47fdd832003-07-14 16:52:07 +000016348 case $host_os in
16349 openbsd2.[89] | openbsd2.[89].*)
16350 shlibpath_overrides_runpath=no
16351 ;;
16352 *)
16353 shlibpath_overrides_runpath=yes
16354 ;;
16355 esac
John Criswell7a73b802003-06-30 21:59:07 +000016356 else
16357 shlibpath_overrides_runpath=yes
16358 fi
John Criswell7a73b802003-06-30 21:59:07 +000016359 ;;
16360
16361os2*)
16362 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016363 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016364 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016365 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016366 dynamic_linker='OS/2 ld.exe'
16367 shlibpath_var=LIBPATH
16368 ;;
16369
16370osf3* | osf4* | osf5*)
16371 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016372 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016373 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016374 soname_spec='${libname}${release}${shared_ext}$major'
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016376 shlibpath_var=LD_LIBRARY_PATH
16377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16378 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16379 ;;
16380
John Criswell7a73b802003-06-30 21:59:07 +000016381solaris*)
16382 version_type=linux
16383 need_lib_prefix=no
16384 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016387 shlibpath_var=LD_LIBRARY_PATH
16388 shlibpath_overrides_runpath=yes
16389 hardcode_into_libs=yes
16390 # ldd complains unless libraries are executable
16391 postinstall_cmds='chmod +x $lib'
16392 ;;
16393
16394sunos4*)
16395 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16398 shlibpath_var=LD_LIBRARY_PATH
16399 shlibpath_overrides_runpath=yes
16400 if test "$with_gnu_ld" = yes; then
16401 need_lib_prefix=no
16402 fi
16403 need_version=yes
16404 ;;
16405
Reid Spencera773bd52006-08-04 18:18:08 +000016406sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016407 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016410 shlibpath_var=LD_LIBRARY_PATH
16411 case $host_vendor in
16412 sni)
16413 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016414 need_lib_prefix=no
16415 export_dynamic_flag_spec='${wl}-Blargedynsym'
16416 runpath_var=LD_RUN_PATH
16417 ;;
16418 siemens)
16419 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016420 ;;
16421 motorola)
16422 need_lib_prefix=no
16423 need_version=no
16424 shlibpath_overrides_runpath=no
16425 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16426 ;;
16427 esac
16428 ;;
16429
John Criswell7a73b802003-06-30 21:59:07 +000016430sysv4*MP*)
16431 if test -d /usr/nec ;then
16432 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016433 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16434 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016435 shlibpath_var=LD_LIBRARY_PATH
16436 fi
16437 ;;
16438
Reid Spencera773bd52006-08-04 18:18:08 +000016439sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16440 version_type=freebsd-elf
16441 need_lib_prefix=no
16442 need_version=no
16443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16444 soname_spec='${libname}${release}${shared_ext}$major'
16445 shlibpath_var=LD_LIBRARY_PATH
16446 hardcode_into_libs=yes
16447 if test "$with_gnu_ld" = yes; then
16448 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16449 shlibpath_overrides_runpath=no
16450 else
16451 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16452 shlibpath_overrides_runpath=yes
16453 case $host_os in
16454 sco3.2v5*)
16455 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16456 ;;
16457 esac
16458 fi
16459 sys_lib_dlsearch_path_spec='/usr/lib'
16460 ;;
16461
John Criswell47fdd832003-07-14 16:52:07 +000016462uts4*)
16463 version_type=linux
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465 soname_spec='${libname}${release}${shared_ext}$major'
16466 shlibpath_var=LD_LIBRARY_PATH
16467 ;;
16468
John Criswell7a73b802003-06-30 21:59:07 +000016469*)
16470 dynamic_linker=no
16471 ;;
16472esac
Reid Spencera773bd52006-08-04 18:18:08 +000016473{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16474echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016475test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016476
Reid Spencera773bd52006-08-04 18:18:08 +000016477variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16478if test "$GCC" = yes; then
16479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16480fi
16481
16482{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16483echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016484hardcode_action=
16485if test -n "$hardcode_libdir_flag_spec" || \
16486 test -n "$runpath_var" || \
16487 test "X$hardcode_automatic" = "Xyes" ; then
16488
16489 # We can hardcode non-existant directories.
16490 if test "$hardcode_direct" != no &&
16491 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16492 # have to relink, otherwise we might link with an installed library
16493 # when we should be linking with a yet-to-be-installed one
16494 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16495 test "$hardcode_minus_L" != no; then
16496 # Linking always hardcodes the temporary library directory.
16497 hardcode_action=relink
16498 else
16499 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16500 hardcode_action=immediate
16501 fi
16502else
16503 # We cannot hardcode anything, or else we can only hardcode existing
16504 # directories.
16505 hardcode_action=unsupported
16506fi
Reid Spencera773bd52006-08-04 18:18:08 +000016507{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16508echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016509
16510if test "$hardcode_action" = relink; then
16511 # Fast installation is not supported
16512 enable_fast_install=no
16513elif test "$shlibpath_overrides_runpath" = yes ||
16514 test "$enable_shared" = no; then
16515 # Fast installation is not necessary
16516 enable_fast_install=needless
16517fi
16518
16519striplib=
16520old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016521{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16522echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016523if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16524 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16525 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016526 { echo "$as_me:$LINENO: result: yes" >&5
16527echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016528else
16529# FIXME - insert some real tests, host_os isn't really good enough
16530 case $host_os in
16531 darwin*)
16532 if test -n "$STRIP" ; then
16533 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016534 { echo "$as_me:$LINENO: result: yes" >&5
16535echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016536 else
Reid Spencera773bd52006-08-04 18:18:08 +000016537 { echo "$as_me:$LINENO: result: no" >&5
16538echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016539fi
16540 ;;
16541 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016542 { echo "$as_me:$LINENO: result: no" >&5
16543echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016544 ;;
16545 esac
16546fi
16547
John Criswell7a73b802003-06-30 21:59:07 +000016548if test "x$enable_dlopen" != xyes; then
16549 enable_dlopen=unknown
16550 enable_dlopen_self=unknown
16551 enable_dlopen_self_static=unknown
16552else
16553 lt_cv_dlopen=no
16554 lt_cv_dlopen_libs=
16555
16556 case $host_os in
16557 beos*)
16558 lt_cv_dlopen="load_add_on"
16559 lt_cv_dlopen_libs=
16560 lt_cv_dlopen_self=yes
16561 ;;
16562
John Criswell47fdd832003-07-14 16:52:07 +000016563 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016564 lt_cv_dlopen="LoadLibrary"
16565 lt_cv_dlopen_libs=
16566 ;;
16567
John Criswell47fdd832003-07-14 16:52:07 +000016568 cygwin*)
16569 lt_cv_dlopen="dlopen"
16570 lt_cv_dlopen_libs=
16571 ;;
16572
16573 darwin*)
16574 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016575 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16576echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016577if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16579else
16580 ac_check_lib_save_LIBS=$LIBS
16581LIBS="-ldl $LIBS"
16582cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016583/* confdefs.h. */
16584_ACEOF
16585cat confdefs.h >>conftest.$ac_ext
16586cat >>conftest.$ac_ext <<_ACEOF
16587/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016588
Reid Spencera773bd52006-08-04 18:18:08 +000016589/* Override any GCC internal prototype to avoid an error.
16590 Use char because int might match the return type of a GCC
16591 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016592#ifdef __cplusplus
16593extern "C"
16594#endif
John Criswell47fdd832003-07-14 16:52:07 +000016595char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016596int
16597main ()
16598{
Reid Spencera773bd52006-08-04 18:18:08 +000016599return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016600 ;
16601 return 0;
16602}
16603_ACEOF
16604rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016605if { (ac_try="$ac_link"
16606case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609esac
16610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016612 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016613 grep -v '^ *+' conftest.er1 >conftest.err
16614 rm -f conftest.er1
16615 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016617 (exit $ac_status); } &&
16618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16619 { (case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622esac
16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_try") 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_try") 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016638 ac_cv_lib_dl_dlopen=yes
16639else
16640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016641sed 's/^/| /' conftest.$ac_ext >&5
16642
Reid Spencera773bd52006-08-04 18:18:08 +000016643 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016644fi
Reid Spencera773bd52006-08-04 18:18:08 +000016645
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016646rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016647 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016648LIBS=$ac_check_lib_save_LIBS
16649fi
Reid Spencera773bd52006-08-04 18:18:08 +000016650{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16651echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016652if test $ac_cv_lib_dl_dlopen = yes; then
16653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16654else
16655
16656 lt_cv_dlopen="dyld"
16657 lt_cv_dlopen_libs=
16658 lt_cv_dlopen_self=yes
16659
16660fi
16661
16662 ;;
16663
John Criswell7a73b802003-06-30 21:59:07 +000016664 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016665 { echo "$as_me:$LINENO: checking for shl_load" >&5
16666echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016667if test "${ac_cv_func_shl_load+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16669else
16670 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016676/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16678#define shl_load innocuous_shl_load
16679
John Criswell7a73b802003-06-30 21:59:07 +000016680/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016681 which can conflict with char shl_load (); below.
16682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16683 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016684
John Criswell0c38eaf2003-09-10 15:17:25 +000016685#ifdef __STDC__
16686# include <limits.h>
16687#else
16688# include <assert.h>
16689#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016690
16691#undef shl_load
16692
Reid Spencera773bd52006-08-04 18:18:08 +000016693/* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016696#ifdef __cplusplus
16697extern "C"
16698#endif
John Criswell7a73b802003-06-30 21:59:07 +000016699char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016700/* The GNU C library defines this for functions which it implements
16701 to always fail with ENOSYS. Some functions are actually named
16702 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016703#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016704choke me
John Criswell7a73b802003-06-30 21:59:07 +000016705#endif
16706
John Criswell0c38eaf2003-09-10 15:17:25 +000016707int
16708main ()
16709{
Reid Spencera773bd52006-08-04 18:18:08 +000016710return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016716if { (ac_try="$ac_link"
16717case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016723 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016724 grep -v '^ *+' conftest.er1 >conftest.err
16725 rm -f conftest.er1
16726 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016728 (exit $ac_status); } &&
16729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16730 { (case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16733esac
16734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_try") 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try='test -s conftest$ac_exeext'
16740 { (case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16743esac
16744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_try") 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016749 ac_cv_func_shl_load=yes
16750else
16751 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016752sed 's/^/| /' conftest.$ac_ext >&5
16753
Reid Spencera773bd52006-08-04 18:18:08 +000016754 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016755fi
Reid Spencera773bd52006-08-04 18:18:08 +000016756
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016757rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016758 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016759fi
Reid Spencera773bd52006-08-04 18:18:08 +000016760{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16761echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016762if test $ac_cv_func_shl_load = yes; then
16763 lt_cv_dlopen="shl_load"
16764else
Reid Spencera773bd52006-08-04 18:18:08 +000016765 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16766echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016767if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16769else
16770 ac_check_lib_save_LIBS=$LIBS
16771LIBS="-ldld $LIBS"
16772cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016773/* confdefs.h. */
16774_ACEOF
16775cat confdefs.h >>conftest.$ac_ext
16776cat >>conftest.$ac_ext <<_ACEOF
16777/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016778
Reid Spencera773bd52006-08-04 18:18:08 +000016779/* Override any GCC internal prototype to avoid an error.
16780 Use char because int might match the return type of a GCC
16781 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016782#ifdef __cplusplus
16783extern "C"
16784#endif
John Criswell7a73b802003-06-30 21:59:07 +000016785char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016786int
16787main ()
16788{
Reid Spencera773bd52006-08-04 18:18:08 +000016789return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016790 ;
16791 return 0;
16792}
16793_ACEOF
16794rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016795if { (ac_try="$ac_link"
16796case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16799esac
16800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016807 (exit $ac_status); } &&
16808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16809 { (case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812esac
16813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_try") 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try='test -s conftest$ac_exeext'
16819 { (case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16822esac
16823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_try") 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016828 ac_cv_lib_dld_shl_load=yes
16829else
16830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016831sed 's/^/| /' conftest.$ac_ext >&5
16832
Reid Spencera773bd52006-08-04 18:18:08 +000016833 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016834fi
Reid Spencera773bd52006-08-04 18:18:08 +000016835
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016836rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016837 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016838LIBS=$ac_check_lib_save_LIBS
16839fi
Reid Spencera773bd52006-08-04 18:18:08 +000016840{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16841echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016842if test $ac_cv_lib_dld_shl_load = yes; then
16843 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16844else
Reid Spencera773bd52006-08-04 18:18:08 +000016845 { echo "$as_me:$LINENO: checking for dlopen" >&5
16846echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016847if test "${ac_cv_func_dlopen+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849else
16850 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016856/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16858#define dlopen innocuous_dlopen
16859
John Criswell7a73b802003-06-30 21:59:07 +000016860/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016861 which can conflict with char dlopen (); below.
16862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016864
John Criswell0c38eaf2003-09-10 15:17:25 +000016865#ifdef __STDC__
16866# include <limits.h>
16867#else
16868# include <assert.h>
16869#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016870
16871#undef dlopen
16872
Reid Spencera773bd52006-08-04 18:18:08 +000016873/* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016876#ifdef __cplusplus
16877extern "C"
16878#endif
John Criswell7a73b802003-06-30 21:59:07 +000016879char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016880/* The GNU C library defines this for functions which it implements
16881 to always fail with ENOSYS. Some functions are actually named
16882 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016883#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016884choke me
John Criswell7a73b802003-06-30 21:59:07 +000016885#endif
16886
John Criswell0c38eaf2003-09-10 15:17:25 +000016887int
16888main ()
16889{
Reid Spencera773bd52006-08-04 18:18:08 +000016890return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016891 ;
16892 return 0;
16893}
16894_ACEOF
16895rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016896if { (ac_try="$ac_link"
16897case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900esac
16901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016903 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016908 (exit $ac_status); } &&
16909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; } &&
16919 { ac_try='test -s conftest$ac_exeext'
16920 { (case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16923esac
16924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_try") 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016929 ac_cv_func_dlopen=yes
16930else
16931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016932sed 's/^/| /' conftest.$ac_ext >&5
16933
Reid Spencera773bd52006-08-04 18:18:08 +000016934 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016935fi
Reid Spencera773bd52006-08-04 18:18:08 +000016936
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016937rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016938 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016939fi
Reid Spencera773bd52006-08-04 18:18:08 +000016940{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16941echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016942if test $ac_cv_func_dlopen = yes; then
16943 lt_cv_dlopen="dlopen"
16944else
Reid Spencera773bd52006-08-04 18:18:08 +000016945 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16946echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016947if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949else
16950 ac_check_lib_save_LIBS=$LIBS
16951LIBS="-ldl $LIBS"
16952cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016953/* confdefs.h. */
16954_ACEOF
16955cat confdefs.h >>conftest.$ac_ext
16956cat >>conftest.$ac_ext <<_ACEOF
16957/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016958
Reid Spencera773bd52006-08-04 18:18:08 +000016959/* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016962#ifdef __cplusplus
16963extern "C"
16964#endif
John Criswell7a73b802003-06-30 21:59:07 +000016965char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016966int
16967main ()
16968{
Reid Spencera773bd52006-08-04 18:18:08 +000016969return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016970 ;
16971 return 0;
16972}
16973_ACEOF
16974rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016975if { (ac_try="$ac_link"
16976case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16979esac
16980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016982 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016987 (exit $ac_status); } &&
16988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16989 { (case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16992esac
16993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_try") 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; } &&
16998 { ac_try='test -s conftest$ac_exeext'
16999 { (case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002esac
17003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_try") 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017008 ac_cv_lib_dl_dlopen=yes
17009else
17010 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017011sed 's/^/| /' conftest.$ac_ext >&5
17012
Reid Spencera773bd52006-08-04 18:18:08 +000017013 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017014fi
Reid Spencera773bd52006-08-04 18:18:08 +000017015
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017016rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017017 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017018LIBS=$ac_check_lib_save_LIBS
17019fi
Reid Spencera773bd52006-08-04 18:18:08 +000017020{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17021echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017022if test $ac_cv_lib_dl_dlopen = yes; then
17023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17024else
Reid Spencera773bd52006-08-04 18:18:08 +000017025 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17026echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017027if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17028 echo $ECHO_N "(cached) $ECHO_C" >&6
17029else
17030 ac_check_lib_save_LIBS=$LIBS
17031LIBS="-lsvld $LIBS"
17032cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017033/* confdefs.h. */
17034_ACEOF
17035cat confdefs.h >>conftest.$ac_ext
17036cat >>conftest.$ac_ext <<_ACEOF
17037/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017038
Reid Spencera773bd52006-08-04 18:18:08 +000017039/* Override any GCC internal prototype to avoid an error.
17040 Use char because int might match the return type of a GCC
17041 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017042#ifdef __cplusplus
17043extern "C"
17044#endif
John Criswell7a73b802003-06-30 21:59:07 +000017045char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017046int
17047main ()
17048{
Reid Spencera773bd52006-08-04 18:18:08 +000017049return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017050 ;
17051 return 0;
17052}
17053_ACEOF
17054rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017055if { (ac_try="$ac_link"
17056case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059esac
17060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017062 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017067 (exit $ac_status); } &&
17068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17069 { (case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17072esac
17073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_try") 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; } &&
17078 { ac_try='test -s conftest$ac_exeext'
17079 { (case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
17083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_try") 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017088 ac_cv_lib_svld_dlopen=yes
17089else
17090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017091sed 's/^/| /' conftest.$ac_ext >&5
17092
Reid Spencera773bd52006-08-04 18:18:08 +000017093 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017094fi
Reid Spencera773bd52006-08-04 18:18:08 +000017095
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017096rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017097 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017098LIBS=$ac_check_lib_save_LIBS
17099fi
Reid Spencera773bd52006-08-04 18:18:08 +000017100{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17101echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017102if test $ac_cv_lib_svld_dlopen = yes; then
17103 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17104else
Reid Spencera773bd52006-08-04 18:18:08 +000017105 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17106echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017107if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109else
17110 ac_check_lib_save_LIBS=$LIBS
17111LIBS="-ldld $LIBS"
17112cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017118
Reid Spencera773bd52006-08-04 18:18:08 +000017119/* Override any GCC internal prototype to avoid an error.
17120 Use char because int might match the return type of a GCC
17121 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017122#ifdef __cplusplus
17123extern "C"
17124#endif
John Criswell7a73b802003-06-30 21:59:07 +000017125char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017126int
17127main ()
17128{
Reid Spencera773bd52006-08-04 18:18:08 +000017129return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017130 ;
17131 return 0;
17132}
17133_ACEOF
17134rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017135if { (ac_try="$ac_link"
17136case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139esac
17140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017142 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017143 grep -v '^ *+' conftest.er1 >conftest.err
17144 rm -f conftest.er1
17145 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017147 (exit $ac_status); } &&
17148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17149 { (case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152esac
17153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_try") 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; } &&
17158 { ac_try='test -s conftest$ac_exeext'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017168 ac_cv_lib_dld_dld_link=yes
17169else
17170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017171sed 's/^/| /' conftest.$ac_ext >&5
17172
Reid Spencera773bd52006-08-04 18:18:08 +000017173 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017174fi
Reid Spencera773bd52006-08-04 18:18:08 +000017175
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017176rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017177 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017178LIBS=$ac_check_lib_save_LIBS
17179fi
Reid Spencera773bd52006-08-04 18:18:08 +000017180{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17181echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017182if test $ac_cv_lib_dld_dld_link = yes; then
17183 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17184fi
17185
17186
17187fi
17188
17189
17190fi
17191
17192
17193fi
17194
17195
17196fi
17197
17198
17199fi
17200
17201 ;;
17202 esac
17203
17204 if test "x$lt_cv_dlopen" != xno; then
17205 enable_dlopen=yes
17206 else
17207 enable_dlopen=no
17208 fi
17209
17210 case $lt_cv_dlopen in
17211 dlopen)
17212 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017213 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017214
17215 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017216 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017217
17218 save_LIBS="$LIBS"
17219 LIBS="$lt_cv_dlopen_libs $LIBS"
17220
Reid Spencera773bd52006-08-04 18:18:08 +000017221 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17222echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017223if test "${lt_cv_dlopen_self+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226 if test "$cross_compiling" = yes; then :
17227 lt_cv_dlopen_self=cross
17228else
John Criswell47fdd832003-07-14 16:52:07 +000017229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017230 lt_status=$lt_dlunknown
17231 cat > conftest.$ac_ext <<EOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000017232#line 17232 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017233#include "confdefs.h"
17234
17235#if HAVE_DLFCN_H
17236#include <dlfcn.h>
17237#endif
17238
17239#include <stdio.h>
17240
17241#ifdef RTLD_GLOBAL
17242# define LT_DLGLOBAL RTLD_GLOBAL
17243#else
17244# ifdef DL_GLOBAL
17245# define LT_DLGLOBAL DL_GLOBAL
17246# else
17247# define LT_DLGLOBAL 0
17248# endif
17249#endif
17250
17251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17252 find out it does not work in some platform. */
17253#ifndef LT_DLLAZY_OR_NOW
17254# ifdef RTLD_LAZY
17255# define LT_DLLAZY_OR_NOW RTLD_LAZY
17256# else
17257# ifdef DL_LAZY
17258# define LT_DLLAZY_OR_NOW DL_LAZY
17259# else
17260# ifdef RTLD_NOW
17261# define LT_DLLAZY_OR_NOW RTLD_NOW
17262# else
17263# ifdef DL_NOW
17264# define LT_DLLAZY_OR_NOW DL_NOW
17265# else
17266# define LT_DLLAZY_OR_NOW 0
17267# endif
17268# endif
17269# endif
17270# endif
17271#endif
17272
17273#ifdef __cplusplus
17274extern "C" void exit (int);
17275#endif
17276
17277void fnord() { int i=42;}
17278int main ()
17279{
17280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17281 int status = $lt_dlunknown;
17282
17283 if (self)
17284 {
17285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17287 /* dlclose (self); */
17288 }
Reid Spencera773bd52006-08-04 18:18:08 +000017289 else
17290 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017291
17292 exit (status);
17293}
17294EOF
17295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17296 (eval $ac_link) 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017300 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017301 lt_status=$?
17302 case x$lt_status in
17303 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17304 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017305 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017306 esac
17307 else :
17308 # compilation failed
17309 lt_cv_dlopen_self=no
17310 fi
17311fi
17312rm -fr conftest*
17313
17314
17315fi
Reid Spencera773bd52006-08-04 18:18:08 +000017316{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17317echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017318
17319 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017320 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17321 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17322echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017323if test "${lt_cv_dlopen_self_static+set}" = set; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17325else
17326 if test "$cross_compiling" = yes; then :
17327 lt_cv_dlopen_self_static=cross
17328else
John Criswell47fdd832003-07-14 16:52:07 +000017329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017330 lt_status=$lt_dlunknown
17331 cat > conftest.$ac_ext <<EOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000017332#line 17332 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017333#include "confdefs.h"
17334
17335#if HAVE_DLFCN_H
17336#include <dlfcn.h>
17337#endif
17338
17339#include <stdio.h>
17340
17341#ifdef RTLD_GLOBAL
17342# define LT_DLGLOBAL RTLD_GLOBAL
17343#else
17344# ifdef DL_GLOBAL
17345# define LT_DLGLOBAL DL_GLOBAL
17346# else
17347# define LT_DLGLOBAL 0
17348# endif
17349#endif
17350
17351/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17352 find out it does not work in some platform. */
17353#ifndef LT_DLLAZY_OR_NOW
17354# ifdef RTLD_LAZY
17355# define LT_DLLAZY_OR_NOW RTLD_LAZY
17356# else
17357# ifdef DL_LAZY
17358# define LT_DLLAZY_OR_NOW DL_LAZY
17359# else
17360# ifdef RTLD_NOW
17361# define LT_DLLAZY_OR_NOW RTLD_NOW
17362# else
17363# ifdef DL_NOW
17364# define LT_DLLAZY_OR_NOW DL_NOW
17365# else
17366# define LT_DLLAZY_OR_NOW 0
17367# endif
17368# endif
17369# endif
17370# endif
17371#endif
17372
17373#ifdef __cplusplus
17374extern "C" void exit (int);
17375#endif
17376
17377void fnord() { int i=42;}
17378int main ()
17379{
17380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17381 int status = $lt_dlunknown;
17382
17383 if (self)
17384 {
17385 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17386 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17387 /* dlclose (self); */
17388 }
Reid Spencera773bd52006-08-04 18:18:08 +000017389 else
17390 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017391
17392 exit (status);
17393}
17394EOF
17395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17396 (eval $ac_link) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017400 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017401 lt_status=$?
17402 case x$lt_status in
17403 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17404 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017405 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017406 esac
17407 else :
17408 # compilation failed
17409 lt_cv_dlopen_self_static=no
17410 fi
17411fi
17412rm -fr conftest*
17413
17414
17415fi
Reid Spencera773bd52006-08-04 18:18:08 +000017416{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17417echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017418 fi
17419
17420 CPPFLAGS="$save_CPPFLAGS"
17421 LDFLAGS="$save_LDFLAGS"
17422 LIBS="$save_LIBS"
17423 ;;
17424 esac
17425
17426 case $lt_cv_dlopen_self in
17427 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17428 *) enable_dlopen_self=unknown ;;
17429 esac
17430
17431 case $lt_cv_dlopen_self_static in
17432 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17433 *) enable_dlopen_self_static=unknown ;;
17434 esac
17435fi
17436
17437
Reid Spencera773bd52006-08-04 18:18:08 +000017438# Report which library types will actually be built
17439{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17440echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17441{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17442echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017443
Reid Spencera773bd52006-08-04 18:18:08 +000017444{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17445echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017446test "$can_build_shared" = "no" && enable_shared=no
17447
17448# On AIX, shared libraries and static libraries use the same namespace, and
17449# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017450case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017451aix3*)
17452 test "$enable_shared" = yes && enable_static=no
17453 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017454 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017455 postinstall_cmds='$RANLIB $lib'
17456 fi
17457 ;;
17458
Reid Spencer2706f8c2004-09-19 23:53:36 +000017459aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017460 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17461 test "$enable_shared" = yes && enable_static=no
17462 fi
John Criswell7a73b802003-06-30 21:59:07 +000017463 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017464esac
Reid Spencera773bd52006-08-04 18:18:08 +000017465{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17466echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017467
Reid Spencera773bd52006-08-04 18:18:08 +000017468{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17469echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017470# Make sure either enable_shared or enable_static is yes.
17471test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017472{ echo "$as_me:$LINENO: result: $enable_static" >&5
17473echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017474
17475# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017476# libtool distribution, otherwise you forgot to ship ltmain.sh
17477# with your package, and you will get complaints that there are
17478# no rules to generate ltmain.sh.
17479if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017480 # See if we are running on zsh, and set the options which allow our commands through
17481 # without removal of \ escapes.
17482 if test -n "${ZSH_VERSION+set}" ; then
17483 setopt NO_GLOB_SUBST
17484 fi
John Criswell7a73b802003-06-30 21:59:07 +000017485 # Now quote all the things that may contain metacharacters while being
17486 # careful not to overquote the AC_SUBSTed values. We take copies of the
17487 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017488 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017489 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017490 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17491 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17492 deplibs_check_method reload_flag reload_cmds need_locks \
17493 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17494 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017495 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017496 old_postinstall_cmds old_postuninstall_cmds \
17497 compiler \
17498 CC \
17499 LD \
17500 lt_prog_compiler_wl \
17501 lt_prog_compiler_pic \
17502 lt_prog_compiler_static \
17503 lt_prog_compiler_no_builtin_flag \
17504 export_dynamic_flag_spec \
17505 thread_safe_flag_spec \
17506 whole_archive_flag_spec \
17507 enable_shared_with_static_runtimes \
17508 old_archive_cmds \
17509 old_archive_from_new_cmds \
17510 predep_objects \
17511 postdep_objects \
17512 predeps \
17513 postdeps \
17514 compiler_lib_search_path \
17515 archive_cmds \
17516 archive_expsym_cmds \
17517 postinstall_cmds \
17518 postuninstall_cmds \
17519 old_archive_from_expsyms_cmds \
17520 allow_undefined_flag \
17521 no_undefined_flag \
17522 export_symbols_cmds \
17523 hardcode_libdir_flag_spec \
17524 hardcode_libdir_flag_spec_ld \
17525 hardcode_libdir_separator \
17526 hardcode_automatic \
17527 module_cmds \
17528 module_expsym_cmds \
17529 lt_cv_prog_compiler_c_o \
17530 exclude_expsyms \
17531 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017532
17533 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017534 old_archive_cmds | \
17535 old_archive_from_new_cmds | \
17536 archive_cmds | \
17537 archive_expsym_cmds | \
17538 module_cmds | \
17539 module_expsym_cmds | \
17540 old_archive_from_expsyms_cmds | \
17541 export_symbols_cmds | \
17542 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017543 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017544 old_postinstall_cmds | old_postuninstall_cmds | \
17545 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017546 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell7a73b802003-06-30 21:59:07 +000017548 ;;
17549 *)
17550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17551 ;;
17552 esac
17553 done
17554
John Criswell47fdd832003-07-14 16:52:07 +000017555 case $lt_echo in
17556 *'\$0 --fallback-echo"')
17557 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17558 ;;
17559 esac
17560
17561cfgfile="${ofile}T"
17562 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17563 $rm -f "$cfgfile"
17564 { echo "$as_me:$LINENO: creating $ofile" >&5
17565echo "$as_me: creating $ofile" >&6;}
17566
17567 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017568#! $SHELL
17569
John Criswell47fdd832003-07-14 16:52:07 +000017570# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017571# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17572# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17573#
John Criswell47fdd832003-07-14 16:52:07 +000017574# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17575# Free Software Foundation, Inc.
17576#
17577# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017578# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17579#
17580# This program is free software; you can redistribute it and/or modify
17581# it under the terms of the GNU General Public License as published by
17582# the Free Software Foundation; either version 2 of the License, or
17583# (at your option) any later version.
17584#
17585# This program is distributed in the hope that it will be useful, but
17586# WITHOUT ANY WARRANTY; without even the implied warranty of
17587# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17588# General Public License for more details.
17589#
17590# You should have received a copy of the GNU General Public License
17591# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017592# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017593#
17594# As a special exception to the GNU General Public License, if you
17595# distribute this file as part of a program that contains a
17596# configuration script generated by Autoconf, you may include it under
17597# the same distribution terms that you use for the rest of that program.
17598
John Criswell47fdd832003-07-14 16:52:07 +000017599# A sed program that does not truncate output.
17600SED=$lt_SED
17601
John Criswell7a73b802003-06-30 21:59:07 +000017602# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017603Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017604
17605# The HP-UX ksh and POSIX shell print the target directory to stdout
17606# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017607(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017608
John Criswell47fdd832003-07-14 16:52:07 +000017609# The names of the tagged configurations supported by this script.
17610available_tags=
17611
John Criswell7a73b802003-06-30 21:59:07 +000017612# ### BEGIN LIBTOOL CONFIG
17613
17614# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17615
17616# Shell to use when invoking shell scripts.
17617SHELL=$lt_SHELL
17618
17619# Whether or not to build shared libraries.
17620build_libtool_libs=$enable_shared
17621
17622# Whether or not to build static libraries.
17623build_old_libs=$enable_static
17624
17625# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017626build_libtool_need_lc=$archive_cmds_need_lc
17627
17628# Whether or not to disallow shared libs when runtime libs are static
17629allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017630
17631# Whether or not to optimize for fast installation.
17632fast_install=$enable_fast_install
17633
17634# The host system.
17635host_alias=$host_alias
17636host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017637host_os=$host_os
17638
17639# The build system.
17640build_alias=$build_alias
17641build=$build
17642build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017643
17644# An echo program that does not interpret backslashes.
17645echo=$lt_echo
17646
17647# The archiver.
17648AR=$lt_AR
17649AR_FLAGS=$lt_AR_FLAGS
17650
John Criswell47fdd832003-07-14 16:52:07 +000017651# A C compiler.
17652LTCC=$lt_LTCC
17653
Reid Spencera773bd52006-08-04 18:18:08 +000017654# LTCC compiler flags.
17655LTCFLAGS=$lt_LTCFLAGS
17656
John Criswell47fdd832003-07-14 16:52:07 +000017657# A language-specific compiler.
17658CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017659
17660# Is the compiler the GNU C compiler?
17661with_gcc=$GCC
17662
John Criswell47fdd832003-07-14 16:52:07 +000017663# An ERE matcher.
17664EGREP=$lt_EGREP
17665
John Criswell7a73b802003-06-30 21:59:07 +000017666# The linker used to build libraries.
17667LD=$lt_LD
17668
17669# Whether we need hard or soft links.
17670LN_S=$lt_LN_S
17671
17672# A BSD-compatible nm program.
17673NM=$lt_NM
17674
17675# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017676STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017677
17678# Used to examine libraries when file_magic_cmd begins "file"
17679MAGIC_CMD=$MAGIC_CMD
17680
17681# Used on cygwin: DLL creation program.
17682DLLTOOL="$DLLTOOL"
17683
17684# Used on cygwin: object dumper.
17685OBJDUMP="$OBJDUMP"
17686
17687# Used on cygwin: assembler.
17688AS="$AS"
17689
17690# The name of the directory that contains temporary libtool files.
17691objdir=$objdir
17692
17693# How to create reloadable object files.
17694reload_flag=$lt_reload_flag
17695reload_cmds=$lt_reload_cmds
17696
17697# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017698wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017699
17700# Object file suffix (normally "o").
17701objext="$ac_objext"
17702
17703# Old archive suffix (normally "a").
17704libext="$libext"
17705
John Criswell47fdd832003-07-14 16:52:07 +000017706# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017707shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017708
John Criswell7a73b802003-06-30 21:59:07 +000017709# Executable file suffix (normally "").
17710exeext="$exeext"
17711
17712# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017713pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017714pic_mode=$pic_mode
17715
John Criswell47fdd832003-07-14 16:52:07 +000017716# What is the maximum length of a command?
17717max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017718
John Criswell47fdd832003-07-14 16:52:07 +000017719# Does compiler simultaneously support -c and -o options?
17720compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017721
Reid Spencera773bd52006-08-04 18:18:08 +000017722# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017723need_locks=$lt_need_locks
17724
17725# Do we need the lib prefix for modules?
17726need_lib_prefix=$need_lib_prefix
17727
17728# Do we need a version for libraries?
17729need_version=$need_version
17730
17731# Whether dlopen is supported.
17732dlopen_support=$enable_dlopen
17733
17734# Whether dlopen of programs is supported.
17735dlopen_self=$enable_dlopen_self
17736
17737# Whether dlopen of statically linked programs is supported.
17738dlopen_self_static=$enable_dlopen_self_static
17739
17740# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017741link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017742
17743# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017744no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017745
17746# Compiler flag to allow reflexive dlopens.
17747export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17748
17749# Compiler flag to generate shared objects directly from archives.
17750whole_archive_flag_spec=$lt_whole_archive_flag_spec
17751
17752# Compiler flag to generate thread-safe objects.
17753thread_safe_flag_spec=$lt_thread_safe_flag_spec
17754
17755# Library versioning type.
17756version_type=$version_type
17757
17758# Format of library name prefix.
17759libname_spec=$lt_libname_spec
17760
17761# List of archive names. First name is the real one, the rest are links.
17762# The last name is the one that the linker finds with -lNAME.
17763library_names_spec=$lt_library_names_spec
17764
17765# The coded name of the library, if different from the real name.
17766soname_spec=$lt_soname_spec
17767
17768# Commands used to build and install an old-style archive.
17769RANLIB=$lt_RANLIB
17770old_archive_cmds=$lt_old_archive_cmds
17771old_postinstall_cmds=$lt_old_postinstall_cmds
17772old_postuninstall_cmds=$lt_old_postuninstall_cmds
17773
17774# Create an old-style archive from a shared archive.
17775old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17776
17777# Create a temporary old-style archive to link instead of a shared archive.
17778old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17779
17780# Commands used to build and install a shared archive.
17781archive_cmds=$lt_archive_cmds
17782archive_expsym_cmds=$lt_archive_expsym_cmds
17783postinstall_cmds=$lt_postinstall_cmds
17784postuninstall_cmds=$lt_postuninstall_cmds
17785
John Criswell47fdd832003-07-14 16:52:07 +000017786# Commands used to build a loadable module (assumed same as above if empty)
17787module_cmds=$lt_module_cmds
17788module_expsym_cmds=$lt_module_expsym_cmds
17789
John Criswell7a73b802003-06-30 21:59:07 +000017790# Commands to strip libraries.
17791old_striplib=$lt_old_striplib
17792striplib=$lt_striplib
17793
John Criswell47fdd832003-07-14 16:52:07 +000017794# Dependencies to place before the objects being linked to create a
17795# shared library.
17796predep_objects=$lt_predep_objects
17797
17798# Dependencies to place after the objects being linked to create a
17799# shared library.
17800postdep_objects=$lt_postdep_objects
17801
17802# Dependencies to place before the objects being linked to create a
17803# shared library.
17804predeps=$lt_predeps
17805
17806# Dependencies to place after the objects being linked to create a
17807# shared library.
17808postdeps=$lt_postdeps
17809
17810# The library search path used internally by the compiler when linking
17811# a shared library.
17812compiler_lib_search_path=$lt_compiler_lib_search_path
17813
John Criswell7a73b802003-06-30 21:59:07 +000017814# Method to check whether dependent libraries are shared objects.
17815deplibs_check_method=$lt_deplibs_check_method
17816
17817# Command to use when deplibs_check_method == file_magic.
17818file_magic_cmd=$lt_file_magic_cmd
17819
17820# Flag that allows shared libraries with undefined symbols to be built.
17821allow_undefined_flag=$lt_allow_undefined_flag
17822
17823# Flag that forces no undefined symbols.
17824no_undefined_flag=$lt_no_undefined_flag
17825
17826# Commands used to finish a libtool library installation in a directory.
17827finish_cmds=$lt_finish_cmds
17828
17829# Same as above, but a single script fragment to be evaled but not shown.
17830finish_eval=$lt_finish_eval
17831
17832# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017833global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017834
17835# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017836global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017837
17838# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017839global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017840
17841# This is the shared library runtime path variable.
17842runpath_var=$runpath_var
17843
17844# This is the shared library path variable.
17845shlibpath_var=$shlibpath_var
17846
17847# Is shlibpath searched before the hard-coded library search path?
17848shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17849
17850# How to hardcode a shared library path into an executable.
17851hardcode_action=$hardcode_action
17852
17853# Whether we should hardcode library paths into libraries.
17854hardcode_into_libs=$hardcode_into_libs
17855
17856# Flag to hardcode \$libdir into a binary during linking.
17857# This must work even if \$libdir does not exist.
17858hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17859
John Criswell47fdd832003-07-14 16:52:07 +000017860# If ld is used when linking, flag to hardcode \$libdir into
17861# a binary during linking. This must work even if \$libdir does
17862# not exist.
17863hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17864
John Criswell7a73b802003-06-30 21:59:07 +000017865# Whether we need a single -rpath flag with a separated argument.
17866hardcode_libdir_separator=$lt_hardcode_libdir_separator
17867
John Criswell47fdd832003-07-14 16:52:07 +000017868# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017869# resulting binary.
17870hardcode_direct=$hardcode_direct
17871
17872# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17873# resulting binary.
17874hardcode_minus_L=$hardcode_minus_L
17875
17876# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17877# the resulting binary.
17878hardcode_shlibpath_var=$hardcode_shlibpath_var
17879
John Criswell47fdd832003-07-14 16:52:07 +000017880# Set to yes if building a shared library automatically hardcodes DIR into the library
17881# and all subsequent libraries and executables linked against it.
17882hardcode_automatic=$hardcode_automatic
17883
John Criswell7a73b802003-06-30 21:59:07 +000017884# Variables whose values should be saved in libtool wrapper scripts and
17885# restored at relink time.
17886variables_saved_for_relink="$variables_saved_for_relink"
17887
17888# Whether libtool must link a program against all its dependency libraries.
17889link_all_deplibs=$link_all_deplibs
17890
17891# Compile-time system search path for libraries
17892sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17893
17894# Run-time system search path for libraries
17895sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17896
17897# Fix the shell variable \$srcfile for the compiler.
17898fix_srcfile_path="$fix_srcfile_path"
17899
17900# Set to yes if exported symbols are required.
17901always_export_symbols=$always_export_symbols
17902
17903# The commands to list exported symbols.
17904export_symbols_cmds=$lt_export_symbols_cmds
17905
17906# The commands to extract the exported symbol list from a shared archive.
17907extract_expsyms_cmds=$lt_extract_expsyms_cmds
17908
17909# Symbols that should not be listed in the preloaded symbols.
17910exclude_expsyms=$lt_exclude_expsyms
17911
17912# Symbols that must always be exported.
17913include_expsyms=$lt_include_expsyms
17914
17915# ### END LIBTOOL CONFIG
17916
17917__EOF__
17918
John Criswell47fdd832003-07-14 16:52:07 +000017919
John Criswell7a73b802003-06-30 21:59:07 +000017920 case $host_os in
17921 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017922 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017923
17924# AIX sometimes has problems with the GCC collect2 program. For some
17925# reason, if we set the COLLECT_NAMES environment variable, the problems
17926# vanish in a puff of smoke.
17927if test "X${COLLECT_NAMES+set}" != Xset; then
17928 COLLECT_NAMES=
17929 export COLLECT_NAMES
17930fi
17931EOF
17932 ;;
17933 esac
17934
John Criswell7a73b802003-06-30 21:59:07 +000017935 # We use sed instead of cat because bash on DJGPP gets confused if
17936 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17937 # text mode, it properly converts lines to CR/LF. This bash problem
17938 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017939 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017940
John Criswell47fdd832003-07-14 16:52:07 +000017941 mv -f "$cfgfile" "$ofile" || \
17942 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017943 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017944
17945else
17946 # If there is no Makefile yet, we rely on a make rule to execute
17947 # `config.status --recheck' to rerun these tests and create the
17948 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017949 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17950 if test -f "$ltmain_in"; then
17951 test -f Makefile && make "$ltmain"
17952 fi
John Criswell7a73b802003-06-30 21:59:07 +000017953fi
John Criswell7a73b802003-06-30 21:59:07 +000017954
17955
John Criswell47fdd832003-07-14 16:52:07 +000017956ac_ext=c
17957ac_cpp='$CPP $CPPFLAGS'
17958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17960ac_compiler_gnu=$ac_cv_c_compiler_gnu
17961
17962CC="$lt_save_CC"
17963
17964
Reid Spencera773bd52006-08-04 18:18:08 +000017965# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017966if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017967 withval=$with_tags; tagnames="$withval"
17968fi
17969
John Criswell47fdd832003-07-14 16:52:07 +000017970
17971if test -f "$ltmain" && test -n "$tagnames"; then
17972 if test ! -f "${ofile}"; then
17973 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17974echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17975 fi
17976
17977 if test -z "$LTCC"; then
17978 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17979 if test -z "$LTCC"; then
17980 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17981echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17982 else
17983 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17984echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17985 fi
17986 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017987 if test -z "$LTCFLAGS"; then
17988 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17989 fi
John Criswell47fdd832003-07-14 16:52:07 +000017990
17991 # Extract list of available tagged configurations in $ofile.
17992 # Note that this assumes the entire list is on one line.
17993 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17994
17995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17996 for tagname in $tagnames; do
17997 IFS="$lt_save_ifs"
17998 # Check whether tagname contains only valid characters
17999 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18000 "") ;;
18001 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18002echo "$as_me: error: invalid tag name: $tagname" >&2;}
18003 { (exit 1); exit 1; }; }
18004 ;;
18005 esac
18006
18007 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18008 then
18009 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18010echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18011 { (exit 1); exit 1; }; }
18012 fi
18013
18014 # Update the list of available tags.
18015 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018016 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018017
18018 case $tagname in
18019 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018020 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18021 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18022 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018023 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018024ac_cpp='$CXXCPP $CPPFLAGS'
18025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18028
18029
18030
18031
18032archive_cmds_need_lc_CXX=no
18033allow_undefined_flag_CXX=
18034always_export_symbols_CXX=no
18035archive_expsym_cmds_CXX=
18036export_dynamic_flag_spec_CXX=
18037hardcode_direct_CXX=no
18038hardcode_libdir_flag_spec_CXX=
18039hardcode_libdir_flag_spec_ld_CXX=
18040hardcode_libdir_separator_CXX=
18041hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018042hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018043hardcode_automatic_CXX=no
18044module_cmds_CXX=
18045module_expsym_cmds_CXX=
18046link_all_deplibs_CXX=unknown
18047old_archive_cmds_CXX=$old_archive_cmds
18048no_undefined_flag_CXX=
18049whole_archive_flag_spec_CXX=
18050enable_shared_with_static_runtimes_CXX=no
18051
18052# Dependencies to place before and after the object being linked:
18053predep_objects_CXX=
18054postdep_objects_CXX=
18055predeps_CXX=
18056postdeps_CXX=
18057compiler_lib_search_path_CXX=
18058
18059# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018060ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018061
18062# Object file extension for compiled C++ test sources.
18063objext=o
18064objext_CXX=$objext
18065
18066# Code to be used in simple compile tests
18067lt_simple_compile_test_code="int some_variable = 0;\n"
18068
18069# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018070lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018071
18072# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18073
18074# If no C compiler was specified, use CC.
18075LTCC=${LTCC-"$CC"}
18076
Reid Spencera773bd52006-08-04 18:18:08 +000018077# If no C compiler flags were specified, use CFLAGS.
18078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18079
John Criswell47fdd832003-07-14 16:52:07 +000018080# Allow CC to be a program name with arguments.
18081compiler=$CC
18082
18083
Reid Spencera773bd52006-08-04 18:18:08 +000018084# save warnings/boilerplate of simple test code
18085ac_outfile=conftest.$ac_objext
18086printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18088_lt_compiler_boilerplate=`cat conftest.err`
18089$rm conftest*
18090
18091ac_outfile=conftest.$ac_objext
18092printf "$lt_simple_link_test_code" >conftest.$ac_ext
18093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18094_lt_linker_boilerplate=`cat conftest.err`
18095$rm conftest*
18096
18097
John Criswell47fdd832003-07-14 16:52:07 +000018098# Allow CC to be a program name with arguments.
18099lt_save_CC=$CC
18100lt_save_LD=$LD
18101lt_save_GCC=$GCC
18102GCC=$GXX
18103lt_save_with_gnu_ld=$with_gnu_ld
18104lt_save_path_LD=$lt_cv_path_LD
18105if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18106 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18107else
Reid Spencera773bd52006-08-04 18:18:08 +000018108 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018109fi
18110if test -n "${lt_cv_path_LDCXX+set}"; then
18111 lt_cv_path_LD=$lt_cv_path_LDCXX
18112else
Reid Spencera773bd52006-08-04 18:18:08 +000018113 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018114fi
18115test -z "${LDCXX+set}" || LD=$LDCXX
18116CC=${CXX-"c++"}
18117compiler=$CC
18118compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018119for cc_temp in $compiler""; do
18120 case $cc_temp in
18121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18123 \-*) ;;
18124 *) break;;
18125 esac
18126done
18127cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18128
John Criswell47fdd832003-07-14 16:52:07 +000018129
18130# We don't want -fno-exception wen compiling C++ code, so set the
18131# no_builtin_flag separately
18132if test "$GXX" = yes; then
18133 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18134else
18135 lt_prog_compiler_no_builtin_flag_CXX=
18136fi
18137
18138if test "$GXX" = yes; then
18139 # Set up default GNU C++ configuration
18140
18141
Reid Spencera773bd52006-08-04 18:18:08 +000018142# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018143if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018144 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018145else
18146 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018147fi
18148
John Criswell47fdd832003-07-14 16:52:07 +000018149ac_prog=ld
18150if test "$GCC" = yes; then
18151 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018152 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18153echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018154 case $host in
18155 *-*-mingw*)
18156 # gcc leaves a trailing carriage return which upsets mingw
18157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18158 *)
18159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18160 esac
18161 case $ac_prog in
18162 # Accept absolute paths.
18163 [\\/]* | ?:[\\/]*)
18164 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018165 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018166 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18168 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18169 done
18170 test -z "$LD" && LD="$ac_prog"
18171 ;;
18172 "")
18173 # If it fails, then pretend we aren't using GCC.
18174 ac_prog=ld
18175 ;;
18176 *)
18177 # If it is relative, then search for the first ld in PATH.
18178 with_gnu_ld=unknown
18179 ;;
18180 esac
18181elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018182 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18183echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018184else
Reid Spencera773bd52006-08-04 18:18:08 +000018185 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18186echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018187fi
18188if test "${lt_cv_path_LD+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18190else
18191 if test -z "$LD"; then
18192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18193 for ac_dir in $PATH; do
18194 IFS="$lt_save_ifs"
18195 test -z "$ac_dir" && ac_dir=.
18196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18197 lt_cv_path_LD="$ac_dir/$ac_prog"
18198 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018199 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018200 # Break only if it was the GNU/non-GNU ld that we prefer.
18201 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18202 *GNU* | *'with BFD'*)
18203 test "$with_gnu_ld" != no && break
18204 ;;
18205 *)
18206 test "$with_gnu_ld" != yes && break
18207 ;;
18208 esac
18209 fi
18210 done
18211 IFS="$lt_save_ifs"
18212else
18213 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18214fi
18215fi
18216
18217LD="$lt_cv_path_LD"
18218if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018219 { echo "$as_me:$LINENO: result: $LD" >&5
18220echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018221else
Reid Spencera773bd52006-08-04 18:18:08 +000018222 { echo "$as_me:$LINENO: result: no" >&5
18223echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018224fi
18225test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18226echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18227 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018228{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18229echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018230if test "${lt_cv_prog_gnu_ld+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18232else
Reid Spencera773bd52006-08-04 18:18:08 +000018233 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018234case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018235*GNU* | *'with BFD'*)
18236 lt_cv_prog_gnu_ld=yes
18237 ;;
18238*)
18239 lt_cv_prog_gnu_ld=no
18240 ;;
18241esac
18242fi
Reid Spencera773bd52006-08-04 18:18:08 +000018243{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18244echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018245with_gnu_ld=$lt_cv_prog_gnu_ld
18246
18247
18248
18249 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18250 # archiving commands below assume that GNU ld is being used.
18251 if test "$with_gnu_ld" = yes; then
18252 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18253 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18254
18255 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18257
18258 # If archive_cmds runs LD, not CC, wlarc should be empty
18259 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18260 # investigate it a little bit more. (MM)
18261 wlarc='${wl}'
18262
18263 # ancient GNU ld didn't support --whole-archive et. al.
18264 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18265 grep 'no-whole-archive' > /dev/null; then
18266 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18267 else
18268 whole_archive_flag_spec_CXX=
18269 fi
18270 else
18271 with_gnu_ld=no
18272 wlarc=
18273
18274 # A generic and very simple default shared library creation
18275 # command for GNU C++ for the case where it uses the native
18276 # linker, instead of GNU ld. If possible, this setting should
18277 # overridden to take advantage of the native linker features on
18278 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018279 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018280 fi
18281
18282 # Commands to make compiler produce verbose output that lists
18283 # what "hidden" libraries, object files and flags are used when
18284 # linking a shared library.
18285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18286
18287else
18288 GXX=no
18289 with_gnu_ld=no
18290 wlarc=
18291fi
18292
18293# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018294{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18295echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018296ld_shlibs_CXX=yes
18297case $host_os in
18298 aix3*)
18299 # FIXME: insert proper C++ library support
18300 ld_shlibs_CXX=no
18301 ;;
18302 aix4* | aix5*)
18303 if test "$host_cpu" = ia64; then
18304 # On IA64, the linker does run time linking by default, so we don't
18305 # have to do anything special.
18306 aix_use_runtimelinking=no
18307 exp_sym_flag='-Bexport'
18308 no_entry_flag=""
18309 else
18310 aix_use_runtimelinking=no
18311
18312 # Test if we are trying to use run time linking or normal
18313 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18314 # need to do runtime linking.
18315 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18316 for ld_flag in $LDFLAGS; do
18317 case $ld_flag in
18318 *-brtl*)
18319 aix_use_runtimelinking=yes
18320 break
18321 ;;
18322 esac
18323 done
Reid Spencera773bd52006-08-04 18:18:08 +000018324 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018325 esac
18326
18327 exp_sym_flag='-bexport'
18328 no_entry_flag='-bnoentry'
18329 fi
18330
18331 # When large executables or shared objects are built, AIX ld can
18332 # have problems creating the table of contents. If linking a library
18333 # or program results in "error TOC overflow" add -mminimal-toc to
18334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18336
18337 archive_cmds_CXX=''
18338 hardcode_direct_CXX=yes
18339 hardcode_libdir_separator_CXX=':'
18340 link_all_deplibs_CXX=yes
18341
18342 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018343 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018344 # We only want to do this on AIX 4.2 and lower, the check
18345 # below for broken collect2 doesn't work under 4.3+
18346 collect2name=`${CC} -print-prog-name=collect2`
18347 if test -f "$collect2name" && \
18348 strings "$collect2name" | grep resolve_lib_name >/dev/null
18349 then
18350 # We have reworked collect2
18351 hardcode_direct_CXX=yes
18352 else
18353 # We have old collect2
18354 hardcode_direct_CXX=unsupported
18355 # It fails to find uninstalled libraries when the uninstalled
18356 # path is not listed in the libpath. Setting hardcode_minus_L
18357 # to unsupported forces relinking
18358 hardcode_minus_L_CXX=yes
18359 hardcode_libdir_flag_spec_CXX='-L$libdir'
18360 hardcode_libdir_separator_CXX=
18361 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018362 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018363 esac
18364 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018365 if test "$aix_use_runtimelinking" = yes; then
18366 shared_flag="$shared_flag "'${wl}-G'
18367 fi
John Criswell47fdd832003-07-14 16:52:07 +000018368 else
18369 # not using gcc
18370 if test "$host_cpu" = ia64; then
18371 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18372 # chokes on -Wl,-G. The following line is correct:
18373 shared_flag='-G'
18374 else
18375 if test "$aix_use_runtimelinking" = yes; then
18376 shared_flag='${wl}-G'
18377 else
18378 shared_flag='${wl}-bM:SRE'
18379 fi
18380 fi
18381 fi
18382
18383 # It seems that -bexpall does not export symbols beginning with
18384 # underscore (_), so it is better to generate a list of symbols to export.
18385 always_export_symbols_CXX=yes
18386 if test "$aix_use_runtimelinking" = yes; then
18387 # Warning - without using the other runtime loading flags (-brtl),
18388 # -berok will link without error, but may produce a broken library.
18389 allow_undefined_flag_CXX='-berok'
18390 # Determine the default libpath from the value encoded in an empty executable.
18391 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018397
John Criswell47fdd832003-07-14 16:52:07 +000018398int
18399main ()
18400{
18401
18402 ;
18403 return 0;
18404}
18405_ACEOF
18406rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018407if { (ac_try="$ac_link"
18408case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18411esac
18412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018415 grep -v '^ *+' conftest.er1 >conftest.err
18416 rm -f conftest.er1
18417 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424esac
18425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest$ac_exeext'
18431 { (case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18434esac
18435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_try") 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018440
18441aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18442}'`
18443# Check for a 64-bit object if we didn't find anything.
18444if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18445}'`; fi
18446else
18447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018448sed 's/^/| /' conftest.$ac_ext >&5
18449
Reid Spencera773bd52006-08-04 18:18:08 +000018450
John Criswell47fdd832003-07-14 16:52:07 +000018451fi
Reid Spencera773bd52006-08-04 18:18:08 +000018452
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018453rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018454 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18456
18457 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18458
Reid Spencera773bd52006-08-04 18:18:08 +000018459 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
John Criswell47fdd832003-07-14 16:52:07 +000018460 else
18461 if test "$host_cpu" = ia64; then
18462 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18463 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018464 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
John Criswell47fdd832003-07-14 16:52:07 +000018465 else
18466 # Determine the default libpath from the value encoded in an empty executable.
18467 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018468/* confdefs.h. */
18469_ACEOF
18470cat confdefs.h >>conftest.$ac_ext
18471cat >>conftest.$ac_ext <<_ACEOF
18472/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018473
John Criswell47fdd832003-07-14 16:52:07 +000018474int
18475main ()
18476{
18477
18478 ;
18479 return 0;
18480}
18481_ACEOF
18482rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018483if { (ac_try="$ac_link"
18484case "(($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_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018490 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018495 (exit $ac_status); } &&
18496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500esac
18501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; } &&
18506 { ac_try='test -s conftest$ac_exeext'
18507 { (case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510esac
18511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_try") 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018516
18517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18518}'`
18519# Check for a 64-bit object if we didn't find anything.
18520if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18521}'`; fi
18522else
18523 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018524sed 's/^/| /' conftest.$ac_ext >&5
18525
Reid Spencera773bd52006-08-04 18:18:08 +000018526
John Criswell47fdd832003-07-14 16:52:07 +000018527fi
Reid Spencera773bd52006-08-04 18:18:08 +000018528
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018529rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018530 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018531if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18532
18533 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18534 # Warning - without using the other run time loading flags,
18535 # -berok will link without error, but may produce a broken library.
18536 no_undefined_flag_CXX=' ${wl}-bernotok'
18537 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018538 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018539 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018540 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018541 # This is similar to how AIX traditionally builds its shared libraries.
18542 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000018543 fi
18544 fi
18545 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018546
18547 beos*)
18548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18549 allow_undefined_flag_CXX=unsupported
18550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18551 # support --undefined. This deserves some investigation. FIXME
18552 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18553 else
18554 ld_shlibs_CXX=no
18555 fi
18556 ;;
18557
John Criswell47fdd832003-07-14 16:52:07 +000018558 chorus*)
18559 case $cc_basename in
18560 *)
18561 # FIXME: insert proper C++ library support
18562 ld_shlibs_CXX=no
18563 ;;
18564 esac
18565 ;;
18566
18567 cygwin* | mingw* | pw32*)
18568 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18569 # as there is no search path for DLLs.
18570 hardcode_libdir_flag_spec_CXX='-L$libdir'
18571 allow_undefined_flag_CXX=unsupported
18572 always_export_symbols_CXX=no
18573 enable_shared_with_static_runtimes_CXX=yes
18574
18575 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018576 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018577 # If the export-symbols file already is a .def file (1st line
18578 # is EXPORTS), use it as is; otherwise, prepend...
18579 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18580 cp $export_symbols $output_objdir/$soname.def;
18581 else
18582 echo EXPORTS > $output_objdir/$soname.def;
18583 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018584 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018585 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018586 else
18587 ld_shlibs_CXX=no
18588 fi
18589 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018590 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018591 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018592 rhapsody* | darwin1.[012])
18593 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18594 ;;
18595 *) # Darwin 1.3 on
18596 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18597 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18598 else
18599 case ${MACOSX_DEPLOYMENT_TARGET} in
18600 10.[012])
18601 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18602 ;;
18603 10.*)
18604 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18605 ;;
18606 esac
18607 fi
18608 ;;
18609 esac
18610 archive_cmds_need_lc_CXX=no
18611 hardcode_direct_CXX=no
18612 hardcode_automatic_CXX=yes
18613 hardcode_shlibpath_var_CXX=unsupported
18614 whole_archive_flag_spec_CXX=''
18615 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018616
Reid Spencer2706f8c2004-09-19 23:53:36 +000018617 if test "$GXX" = yes ; then
18618 lt_int_apple_cc_single_mod=no
18619 output_verbose_link_cmd='echo'
18620 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18621 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018622 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018623 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018624 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Brian Gaeke0a621332004-09-08 20:38:05 +000018625 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018626 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018627 fi
18628 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018629 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer2706f8c2004-09-19 23:53:36 +000018630 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018631 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018632 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018633 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018634 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018635 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018636 else
Reid Spencera773bd52006-08-04 18:18:08 +000018637 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018638 xlc*)
18639 output_verbose_link_cmd='echo'
18640 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18641 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018642 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000018643 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18644 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018645 ;;
18646 *)
18647 ld_shlibs_CXX=no
18648 ;;
18649 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018650 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018651 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018652
18653 dgux*)
18654 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018655 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018656 # FIXME: insert proper C++ library support
18657 ld_shlibs_CXX=no
18658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018659 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018660 # Green Hills C++ Compiler
18661 # FIXME: insert proper C++ library support
18662 ld_shlibs_CXX=no
18663 ;;
18664 *)
18665 # FIXME: insert proper C++ library support
18666 ld_shlibs_CXX=no
18667 ;;
18668 esac
18669 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018670 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018671 # C++ shared libraries reported to be fairly broken before switch to ELF
18672 ld_shlibs_CXX=no
18673 ;;
18674 freebsd-elf*)
18675 archive_cmds_need_lc_CXX=no
18676 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018677 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018678 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18679 # conventions
18680 ld_shlibs_CXX=yes
18681 ;;
18682 gnu*)
18683 ;;
18684 hpux9*)
18685 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18686 hardcode_libdir_separator_CXX=:
18687 export_dynamic_flag_spec_CXX='${wl}-E'
18688 hardcode_direct_CXX=yes
18689 hardcode_minus_L_CXX=yes # Not in the search PATH,
18690 # but as the default
18691 # location of the library.
18692
18693 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018694 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018695 # FIXME: insert proper C++ library support
18696 ld_shlibs_CXX=no
18697 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018698 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018699 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018700 # Commands to make compiler produce verbose output that lists
18701 # what "hidden" libraries, object files and flags are used when
18702 # linking a shared library.
18703 #
18704 # There doesn't appear to be a way to prevent this compiler from
18705 # explicitly linking system object files so we need to strip them
18706 # from the output so that they don't get included in the library
18707 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018708 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
John Criswell47fdd832003-07-14 16:52:07 +000018709 ;;
18710 *)
18711 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018712 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018713 else
18714 # FIXME: insert proper C++ library support
18715 ld_shlibs_CXX=no
18716 fi
18717 ;;
18718 esac
18719 ;;
18720 hpux10*|hpux11*)
18721 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018722 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18723 hardcode_libdir_separator_CXX=:
18724
18725 case $host_cpu in
18726 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018727 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018728 ;;
18729 *)
John Criswell47fdd832003-07-14 16:52:07 +000018730 export_dynamic_flag_spec_CXX='${wl}-E'
18731 ;;
18732 esac
18733 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018734 case $host_cpu in
18735 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018736 hardcode_direct_CXX=no
18737 hardcode_shlibpath_var_CXX=no
18738 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018739 *)
18740 hardcode_direct_CXX=yes
18741 hardcode_minus_L_CXX=yes # Not in the search PATH,
18742 # but as the default
18743 # location of the library.
18744 ;;
18745 esac
18746
18747 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018748 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018749 # FIXME: insert proper C++ library support
18750 ld_shlibs_CXX=no
18751 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018752 aCC*)
18753 case $host_cpu in
18754 hppa*64*)
18755 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18756 ;;
18757 ia64*)
18758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000018759 ;;
18760 *)
18761 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18762 ;;
18763 esac
18764 # Commands to make compiler produce verbose output that lists
18765 # what "hidden" libraries, object files and flags are used when
18766 # linking a shared library.
18767 #
18768 # There doesn't appear to be a way to prevent this compiler from
18769 # explicitly linking system object files so we need to strip them
18770 # from the output so that they don't get included in the library
18771 # dependencies.
18772 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18773 ;;
18774 *)
18775 if test "$GXX" = yes; then
18776 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018777 case $host_cpu in
18778 hppa*64*)
18779 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18780 ;;
18781 ia64*)
18782 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000018783 ;;
18784 *)
18785 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18786 ;;
18787 esac
18788 fi
18789 else
18790 # FIXME: insert proper C++ library support
18791 ld_shlibs_CXX=no
18792 fi
18793 ;;
18794 esac
18795 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018796 interix3*)
18797 hardcode_direct_CXX=no
18798 hardcode_shlibpath_var_CXX=no
18799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18800 export_dynamic_flag_spec_CXX='${wl}-E'
18801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18802 # Instead, shared libraries are loaded at an image base (0x10000000 by
18803 # default) and relocated if they conflict, which is a slow very memory
18804 # consuming and fragmenting process. To avoid this, we pick a random,
18805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18807 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18808 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18809 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018810 irix5* | irix6*)
18811 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018812 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018813 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018814 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018815
18816 # Archives containing C++ object files must be created using
18817 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18818 # necessary to make sure instantiated templates are included
18819 # in the archive.
18820 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18821 ;;
18822 *)
18823 if test "$GXX" = yes; then
18824 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018825 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018826 else
18827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
18828 fi
18829 fi
18830 link_all_deplibs_CXX=yes
18831 ;;
18832 esac
18833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18834 hardcode_libdir_separator_CXX=:
18835 ;;
18836 linux*)
18837 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018838 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018839 # Kuck and Associates, Inc. (KAI) C++ Compiler
18840
18841 # KCC will only create a shared library if the output file
18842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18843 # to its proper name (with version) after linking.
18844 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18845 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
18846 # Commands to make compiler produce verbose output that lists
18847 # what "hidden" libraries, object files and flags are used when
18848 # linking a shared library.
18849 #
18850 # There doesn't appear to be a way to prevent this compiler from
18851 # explicitly linking system object files so we need to strip them
18852 # from the output so that they don't get included in the library
18853 # dependencies.
18854 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18855
18856 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18858
18859 # Archives containing C++ object files must be created using
18860 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18861 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18862 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018863 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018864 # Intel C++
18865 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018866 # version 8.0 and above of icpc choke on multiply defined symbols
18867 # if we add $predep_objects and $postdep_objects, however 7.1 and
18868 # earlier do not add the objects themselves.
18869 case `$CC -V 2>&1` in
18870 *"Version 7."*)
18871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18872 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18873 ;;
18874 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018875 tmp_idyn=
18876 case $host_cpu in
18877 ia64*) tmp_idyn=' -i_dynamic';;
18878 esac
18879 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18880 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018881 ;;
18882 esac
John Criswell47fdd832003-07-14 16:52:07 +000018883 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18885 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18886 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18887 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018888 pgCC*)
18889 # Portland Group C++ compiler
18890 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18891 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18892
18893 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18895 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18896 ;;
18897 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018898 # Compaq C++
18899 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18900 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18901
18902 runpath_var=LD_RUN_PATH
18903 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18904 hardcode_libdir_separator_CXX=:
18905
18906 # Commands to make compiler produce verbose output that lists
18907 # what "hidden" libraries, object files and flags are used when
18908 # linking a shared library.
18909 #
18910 # There doesn't appear to be a way to prevent this compiler from
18911 # explicitly linking system object files so we need to strip them
18912 # from the output so that they don't get included in the library
18913 # dependencies.
18914 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18915 ;;
18916 esac
18917 ;;
18918 lynxos*)
18919 # FIXME: insert proper C++ library support
18920 ld_shlibs_CXX=no
18921 ;;
18922 m88k*)
18923 # FIXME: insert proper C++ library support
18924 ld_shlibs_CXX=no
18925 ;;
18926 mvs*)
18927 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018928 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018929 # FIXME: insert proper C++ library support
18930 ld_shlibs_CXX=no
18931 ;;
18932 *)
18933 # FIXME: insert proper C++ library support
18934 ld_shlibs_CXX=no
18935 ;;
18936 esac
18937 ;;
18938 netbsd*)
18939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18940 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18941 wlarc=
18942 hardcode_libdir_flag_spec_CXX='-R$libdir'
18943 hardcode_direct_CXX=yes
18944 hardcode_shlibpath_var_CXX=no
18945 fi
18946 # Workaround some broken pre-1.5 toolchains
18947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18948 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018949 openbsd2*)
18950 # C++ shared libraries are fairly broken
18951 ld_shlibs_CXX=no
18952 ;;
18953 openbsd*)
18954 hardcode_direct_CXX=yes
18955 hardcode_shlibpath_var_CXX=no
18956 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18958 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18959 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18960 export_dynamic_flag_spec_CXX='${wl}-E'
18961 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18962 fi
18963 output_verbose_link_cmd='echo'
18964 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018965 osf3*)
18966 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018967 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018968 # Kuck and Associates, Inc. (KAI) C++ Compiler
18969
18970 # KCC will only create a shared library if the output file
18971 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18972 # to its proper name (with version) after linking.
18973 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18974
18975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18976 hardcode_libdir_separator_CXX=:
18977
18978 # Archives containing C++ object files must be created using
18979 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18980 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18981
18982 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018983 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018984 # Rational C++ 2.4.1
18985 # FIXME: insert proper C++ library support
18986 ld_shlibs_CXX=no
18987 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018988 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018989 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018990 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018991
18992 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18993 hardcode_libdir_separator_CXX=:
18994
18995 # Commands to make compiler produce verbose output that lists
18996 # what "hidden" libraries, object files and flags are used when
18997 # linking a shared library.
18998 #
18999 # There doesn't appear to be a way to prevent this compiler from
19000 # explicitly linking system object files so we need to strip them
19001 # from the output so that they don't get included in the library
19002 # dependencies.
19003 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19004 ;;
19005 *)
19006 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19007 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019008 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000019009
19010 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19011 hardcode_libdir_separator_CXX=:
19012
19013 # Commands to make compiler produce verbose output that lists
19014 # what "hidden" libraries, object files and flags are used when
19015 # linking a shared library.
19016 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19017
19018 else
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19021 fi
19022 ;;
19023 esac
19024 ;;
19025 osf4* | osf5*)
19026 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019027 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019028 # Kuck and Associates, Inc. (KAI) C++ Compiler
19029
19030 # KCC will only create a shared library if the output file
19031 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19032 # to its proper name (with version) after linking.
19033 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19034
19035 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19036 hardcode_libdir_separator_CXX=:
19037
19038 # Archives containing C++ object files must be created using
19039 # the KAI C++ compiler.
19040 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19041 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019042 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019043 # Rational C++ 2.4.1
19044 # FIXME: insert proper C++ library support
19045 ld_shlibs_CXX=no
19046 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019047 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019048 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019049 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000019050 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19051 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019052 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
Reid Spencer177dbe22004-10-13 01:01:03 +000019053 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019054
19055 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19056 hardcode_libdir_separator_CXX=:
19057
19058 # Commands to make compiler produce verbose output that lists
19059 # what "hidden" libraries, object files and flags are used when
19060 # linking a shared library.
19061 #
19062 # There doesn't appear to be a way to prevent this compiler from
19063 # explicitly linking system object files so we need to strip them
19064 # from the output so that they don't get included in the library
19065 # dependencies.
19066 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19067 ;;
19068 *)
19069 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19070 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019071 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000019072
19073 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19074 hardcode_libdir_separator_CXX=:
19075
19076 # Commands to make compiler produce verbose output that lists
19077 # what "hidden" libraries, object files and flags are used when
19078 # linking a shared library.
19079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19080
19081 else
19082 # FIXME: insert proper C++ library support
19083 ld_shlibs_CXX=no
19084 fi
19085 ;;
19086 esac
19087 ;;
19088 psos*)
19089 # FIXME: insert proper C++ library support
19090 ld_shlibs_CXX=no
19091 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019092 sunos4*)
19093 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019094 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019095 # Sun C++ 4.x
19096 # FIXME: insert proper C++ library support
19097 ld_shlibs_CXX=no
19098 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019099 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019100 # Lucid
19101 # FIXME: insert proper C++ library support
19102 ld_shlibs_CXX=no
19103 ;;
19104 *)
19105 # FIXME: insert proper C++ library support
19106 ld_shlibs_CXX=no
19107 ;;
19108 esac
19109 ;;
19110 solaris*)
19111 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019112 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019113 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019114 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019115 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019116 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019117 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019118 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019119
19120 hardcode_libdir_flag_spec_CXX='-R$libdir'
19121 hardcode_shlibpath_var_CXX=no
19122 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019123 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019124 *)
19125 # The C++ compiler is used as linker so we must use $wl
19126 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019127 # linker. We must also pass each convience library through
19128 # to the system linker between allextract/defaultextract.
19129 # The C++ compiler will combine linker options so we
19130 # cannot just pass the convience library names through
19131 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019132 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019133 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
John Criswell47fdd832003-07-14 16:52:07 +000019134 ;;
19135 esac
19136 link_all_deplibs_CXX=yes
19137
Reid Spencera773bd52006-08-04 18:18:08 +000019138 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019139
19140 # Archives containing C++ object files must be created using
19141 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19142 # necessary to make sure instantiated templates are included
19143 # in the archive.
19144 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19145 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019146 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019147 # Green Hills C++ Compiler
19148 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19149
19150 # The C++ compiler must be used to create the archive.
19151 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19152 ;;
19153 *)
19154 # GNU C++ compiler with Solaris linker
19155 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19156 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19157 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019158 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000019159 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19160 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19161
John Criswell47fdd832003-07-14 16:52:07 +000019162 # Commands to make compiler produce verbose output that lists
19163 # what "hidden" libraries, object files and flags are used when
19164 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019165 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019166 else
19167 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19168 # platform.
19169 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000019170 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19171 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019172
19173 # Commands to make compiler produce verbose output that lists
19174 # what "hidden" libraries, object files and flags are used when
19175 # linking a shared library.
19176 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19177 fi
19178
19179 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19180 fi
19181 ;;
19182 esac
19183 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19185 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019186 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019187 hardcode_shlibpath_var_CXX=no
19188 runpath_var='LD_RUN_PATH'
19189
19190 case $cc_basename in
19191 CC*)
19192 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19193 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19194 ;;
19195 *)
19196 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19197 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19198 ;;
19199 esac
19200 ;;
19201 sysv5* | sco3.2v5* | sco5v6*)
19202 # Note: We can NOT use -z defs as we might desire, because we do not
19203 # link with -lc, and that would cause any symbols used from libc to
19204 # always be unresolved, which means just about no library would
19205 # ever link correctly. If we're not using GNU ld we use -z text
19206 # though, which does catch some bad symbols but isn't as heavy-handed
19207 # as -z defs.
19208 # For security reasons, it is highly recommended that you always
19209 # use absolute paths for naming shared libraries, and exclude the
19210 # DT_RUNPATH tag from executables and libraries. But doing so
19211 # requires that you compile everything twice, which is a pain.
19212 # So that behaviour is only enabled if SCOABSPATH is set to a
19213 # non-empty value in the environment. Most likely only useful for
19214 # creating official distributions of packages.
19215 # This is a hack until libtool officially supports absolute path
19216 # names for shared libraries.
19217 no_undefined_flag_CXX='${wl}-z,text'
19218 allow_undefined_flag_CXX='${wl}-z,nodefs'
19219 archive_cmds_need_lc_CXX=no
19220 hardcode_shlibpath_var_CXX=no
19221 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19222 hardcode_libdir_separator_CXX=':'
19223 link_all_deplibs_CXX=yes
19224 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19225 runpath_var='LD_RUN_PATH'
19226
19227 case $cc_basename in
19228 CC*)
19229 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19230 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19231 ;;
19232 *)
19233 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19234 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19235 ;;
19236 esac
John Criswell47fdd832003-07-14 16:52:07 +000019237 ;;
19238 tandem*)
19239 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019240 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019241 # NonStop-UX NCC 3.20
19242 # FIXME: insert proper C++ library support
19243 ld_shlibs_CXX=no
19244 ;;
19245 *)
19246 # FIXME: insert proper C++ library support
19247 ld_shlibs_CXX=no
19248 ;;
19249 esac
19250 ;;
19251 vxworks*)
19252 # FIXME: insert proper C++ library support
19253 ld_shlibs_CXX=no
19254 ;;
19255 *)
19256 # FIXME: insert proper C++ library support
19257 ld_shlibs_CXX=no
19258 ;;
19259esac
Reid Spencera773bd52006-08-04 18:18:08 +000019260{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19261echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019262test "$ld_shlibs_CXX" = no && can_build_shared=no
19263
19264GCC_CXX="$GXX"
19265LD_CXX="$LD"
19266
John Criswell47fdd832003-07-14 16:52:07 +000019267
19268cat > conftest.$ac_ext <<EOF
19269class Foo
19270{
19271public:
19272 Foo (void) { a = 0; }
19273private:
19274 int a;
19275};
19276EOF
19277
19278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19279 (eval $ac_compile) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; then
19283 # Parse the compiler output and extract the necessary
19284 # objects, libraries and library flags.
19285
19286 # Sentinel used to keep track of whether or not we are before
19287 # the conftest object file.
19288 pre_test_object_deps_done=no
19289
19290 # The `*' in the case matches for architectures that use `case' in
19291 # $output_verbose_cmd can trigger glob expansion during the loop
19292 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019293 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019294
19295 for p in `eval $output_verbose_link_cmd`; do
19296 case $p in
19297
19298 -L* | -R* | -l*)
19299 # Some compilers place space between "-{L,R}" and the path.
19300 # Remove the space.
19301 if test $p = "-L" \
19302 || test $p = "-R"; then
19303 prev=$p
19304 continue
19305 else
19306 prev=
19307 fi
19308
19309 if test "$pre_test_object_deps_done" = no; then
19310 case $p in
19311 -L* | -R*)
19312 # Internal compiler library paths should come after those
19313 # provided the user. The postdeps already come after the
19314 # user supplied libs so there is no need to process them.
19315 if test -z "$compiler_lib_search_path_CXX"; then
19316 compiler_lib_search_path_CXX="${prev}${p}"
19317 else
19318 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19319 fi
19320 ;;
19321 # The "-l" case would never come before the object being
19322 # linked, so don't bother handling this case.
19323 esac
19324 else
19325 if test -z "$postdeps_CXX"; then
19326 postdeps_CXX="${prev}${p}"
19327 else
19328 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19329 fi
19330 fi
19331 ;;
19332
19333 *.$objext)
19334 # This assumes that the test object file only shows up
19335 # once in the compiler output.
19336 if test "$p" = "conftest.$objext"; then
19337 pre_test_object_deps_done=yes
19338 continue
19339 fi
19340
19341 if test "$pre_test_object_deps_done" = no; then
19342 if test -z "$predep_objects_CXX"; then
19343 predep_objects_CXX="$p"
19344 else
19345 predep_objects_CXX="$predep_objects_CXX $p"
19346 fi
19347 else
19348 if test -z "$postdep_objects_CXX"; then
19349 postdep_objects_CXX="$p"
19350 else
19351 postdep_objects_CXX="$postdep_objects_CXX $p"
19352 fi
19353 fi
19354 ;;
19355
19356 *) ;; # Ignore the rest.
19357
19358 esac
19359 done
19360
19361 # Clean up.
19362 rm -f a.out a.exe
19363else
19364 echo "libtool.m4: error: problem compiling CXX test program"
19365fi
19366
19367$rm -f confest.$objext
19368
Reid Spencera773bd52006-08-04 18:18:08 +000019369# PORTME: override above test on systems where it is broken
19370case $host_os in
19371interix3*)
19372 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19373 # hack all around it, let's just trust "g++" to DTRT.
19374 predep_objects_CXX=
19375 postdep_objects_CXX=
19376 postdeps_CXX=
19377 ;;
19378
19379solaris*)
19380 case $cc_basename in
19381 CC*)
19382 # Adding this requires a known-good setup of shared libraries for
19383 # Sun compiler versions before 5.6, else PIC objects from an old
19384 # archive will be linked into the output, leading to subtle bugs.
19385 postdeps_CXX='-lCstd -lCrun'
19386 ;;
19387 esac
19388 ;;
19389esac
19390
19391
John Criswell47fdd832003-07-14 16:52:07 +000019392case " $postdeps_CXX " in
19393*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19394esac
19395
19396lt_prog_compiler_wl_CXX=
19397lt_prog_compiler_pic_CXX=
19398lt_prog_compiler_static_CXX=
19399
Reid Spencera773bd52006-08-04 18:18:08 +000019400{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19401echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019402
19403 # C++ specific cases for pic, static, wl, etc.
19404 if test "$GXX" = yes; then
19405 lt_prog_compiler_wl_CXX='-Wl,'
19406 lt_prog_compiler_static_CXX='-static'
19407
19408 case $host_os in
19409 aix*)
19410 # All AIX code is PIC.
19411 if test "$host_cpu" = ia64; then
19412 # AIX 5 now supports IA64 processor
19413 lt_prog_compiler_static_CXX='-Bstatic'
19414 fi
19415 ;;
19416 amigaos*)
19417 # FIXME: we need at least 68020 code to build shared libraries, but
19418 # adding the `-m68020' flag to GCC prevents building anything better,
19419 # like `-m68040'.
19420 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19421 ;;
19422 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19423 # PIC is the default for these OSes.
19424 ;;
19425 mingw* | os2* | pw32*)
19426 # This hack is so that the source file can tell whether it is being
19427 # built for inclusion in a dll (and should export symbols for example).
19428 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19429 ;;
19430 darwin* | rhapsody*)
19431 # PIC is the default on this platform
19432 # Common symbols not allowed in MH_DYLIB files
19433 lt_prog_compiler_pic_CXX='-fno-common'
19434 ;;
19435 *djgpp*)
19436 # DJGPP does not support shared libraries at all
19437 lt_prog_compiler_pic_CXX=
19438 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019439 interix3*)
19440 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19441 # Instead, we relocate shared libraries at runtime.
19442 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019443 sysv4*MP*)
19444 if test -d /usr/nec; then
19445 lt_prog_compiler_pic_CXX=-Kconform_pic
19446 fi
19447 ;;
19448 hpux*)
19449 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19450 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019451 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019452 hppa*64*|ia64*)
19453 ;;
19454 *)
19455 lt_prog_compiler_pic_CXX='-fPIC'
19456 ;;
19457 esac
19458 ;;
19459 *)
19460 lt_prog_compiler_pic_CXX='-fPIC'
19461 ;;
19462 esac
19463 else
19464 case $host_os in
19465 aix4* | aix5*)
19466 # All AIX code is PIC.
19467 if test "$host_cpu" = ia64; then
19468 # AIX 5 now supports IA64 processor
19469 lt_prog_compiler_static_CXX='-Bstatic'
19470 else
19471 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19472 fi
19473 ;;
19474 chorus*)
19475 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019476 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019477 # Green Hills C++ Compiler
19478 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19479 ;;
19480 esac
19481 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019482 darwin*)
19483 # PIC is the default on this platform
19484 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019485 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019486 xlc*)
19487 lt_prog_compiler_pic_CXX='-qnocommon'
19488 lt_prog_compiler_wl_CXX='-Wl,'
19489 ;;
19490 esac
19491 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019492 dgux*)
19493 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019494 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019495 lt_prog_compiler_pic_CXX='-KPIC'
19496 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019497 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019498 # Green Hills C++ Compiler
19499 lt_prog_compiler_pic_CXX='-pic'
19500 ;;
19501 *)
19502 ;;
19503 esac
19504 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019505 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019506 # FreeBSD uses GNU C++
19507 ;;
19508 hpux9* | hpux10* | hpux11*)
19509 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019510 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019511 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019512 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019513 if test "$host_cpu" != ia64; then
19514 lt_prog_compiler_pic_CXX='+Z'
19515 fi
19516 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019517 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019518 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019519 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19520 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019521 hppa*64*|ia64*)
19522 # +Z the default
19523 ;;
19524 *)
19525 lt_prog_compiler_pic_CXX='+Z'
19526 ;;
19527 esac
19528 ;;
19529 *)
19530 ;;
19531 esac
19532 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019533 interix*)
19534 # This is c89, which is MS Visual C++ (no shared libs)
19535 # Anyone wants to do a port?
19536 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019537 irix5* | irix6* | nonstopux*)
19538 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019539 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019540 lt_prog_compiler_wl_CXX='-Wl,'
19541 lt_prog_compiler_static_CXX='-non_shared'
19542 # CC pic flag -KPIC is the default.
19543 ;;
19544 *)
19545 ;;
19546 esac
19547 ;;
19548 linux*)
19549 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019550 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019551 # KAI C++ Compiler
19552 lt_prog_compiler_wl_CXX='--backend -Wl,'
19553 lt_prog_compiler_pic_CXX='-fPIC'
19554 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019555 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019556 # Intel C++
19557 lt_prog_compiler_wl_CXX='-Wl,'
19558 lt_prog_compiler_pic_CXX='-KPIC'
19559 lt_prog_compiler_static_CXX='-static'
19560 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019561 pgCC*)
19562 # Portland Group C++ compiler.
19563 lt_prog_compiler_wl_CXX='-Wl,'
19564 lt_prog_compiler_pic_CXX='-fpic'
19565 lt_prog_compiler_static_CXX='-Bstatic'
19566 ;;
19567 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019568 # Compaq C++
19569 # Make sure the PIC flag is empty. It appears that all Alpha
19570 # Linux and Compaq Tru64 Unix objects are PIC.
19571 lt_prog_compiler_pic_CXX=
19572 lt_prog_compiler_static_CXX='-non_shared'
19573 ;;
19574 *)
19575 ;;
19576 esac
19577 ;;
19578 lynxos*)
19579 ;;
19580 m88k*)
19581 ;;
19582 mvs*)
19583 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019584 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019585 lt_prog_compiler_pic_CXX='-W c,exportall'
19586 ;;
19587 *)
19588 ;;
19589 esac
19590 ;;
19591 netbsd*)
19592 ;;
19593 osf3* | osf4* | osf5*)
19594 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019595 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019596 lt_prog_compiler_wl_CXX='--backend -Wl,'
19597 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019598 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019599 # Rational C++ 2.4.1
19600 lt_prog_compiler_pic_CXX='-pic'
19601 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019602 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019603 # Digital/Compaq C++
19604 lt_prog_compiler_wl_CXX='-Wl,'
19605 # Make sure the PIC flag is empty. It appears that all Alpha
19606 # Linux and Compaq Tru64 Unix objects are PIC.
19607 lt_prog_compiler_pic_CXX=
19608 lt_prog_compiler_static_CXX='-non_shared'
19609 ;;
19610 *)
19611 ;;
19612 esac
19613 ;;
19614 psos*)
19615 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019616 solaris*)
19617 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019618 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019619 # Sun C++ 4.2, 5.x and Centerline C++
19620 lt_prog_compiler_pic_CXX='-KPIC'
19621 lt_prog_compiler_static_CXX='-Bstatic'
19622 lt_prog_compiler_wl_CXX='-Qoption ld '
19623 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019624 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019625 # Green Hills C++ Compiler
19626 lt_prog_compiler_pic_CXX='-PIC'
19627 ;;
19628 *)
19629 ;;
19630 esac
19631 ;;
19632 sunos4*)
19633 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019634 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019635 # Sun C++ 4.x
19636 lt_prog_compiler_pic_CXX='-pic'
19637 lt_prog_compiler_static_CXX='-Bstatic'
19638 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019639 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019640 # Lucid
19641 lt_prog_compiler_pic_CXX='-pic'
19642 ;;
19643 *)
19644 ;;
19645 esac
19646 ;;
19647 tandem*)
19648 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019649 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019650 # NonStop-UX NCC 3.20
19651 lt_prog_compiler_pic_CXX='-KPIC'
19652 ;;
19653 *)
19654 ;;
19655 esac
19656 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19658 case $cc_basename in
19659 CC*)
19660 lt_prog_compiler_wl_CXX='-Wl,'
19661 lt_prog_compiler_pic_CXX='-KPIC'
19662 lt_prog_compiler_static_CXX='-Bstatic'
19663 ;;
19664 esac
John Criswell47fdd832003-07-14 16:52:07 +000019665 ;;
19666 vxworks*)
19667 ;;
19668 *)
19669 lt_prog_compiler_can_build_shared_CXX=no
19670 ;;
19671 esac
19672 fi
19673
Reid Spencera773bd52006-08-04 18:18:08 +000019674{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19675echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019676
19677#
19678# Check to make sure the PIC flag actually works.
19679#
19680if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019681
Reid Spencera773bd52006-08-04 18:18:08 +000019682{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19683echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019684if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686else
19687 lt_prog_compiler_pic_works_CXX=no
19688 ac_outfile=conftest.$ac_objext
19689 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19690 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19691 # Insert the option either (1) after the last *FLAGS variable, or
19692 # (2) before a word containing "conftest.", or (3) at the end.
19693 # Note that $ac_compile itself does not contain backslashes and begins
19694 # with a dollar sign (not a hyphen), so the echo should work correctly.
19695 # The option is referenced via a variable to avoid confusing sed.
19696 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19699 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky267fddb2009-04-13 04:26:27 +000019700 (eval echo "\"\$as_me:19700: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019701 (eval "$lt_compile" 2>conftest.err)
19702 ac_status=$?
19703 cat conftest.err >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000019704 echo "$as_me:19704: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019705 if (exit $ac_status) && test -s "$ac_outfile"; then
19706 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019707 # So say no if there are warnings other than the usual output.
19708 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019711 lt_prog_compiler_pic_works_CXX=yes
19712 fi
19713 fi
19714 $rm conftest*
19715
19716fi
Reid Spencera773bd52006-08-04 18:18:08 +000019717{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19718echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019719
19720if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19721 case $lt_prog_compiler_pic_CXX in
19722 "" | " "*) ;;
19723 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19724 esac
19725else
19726 lt_prog_compiler_pic_CXX=
19727 lt_prog_compiler_can_build_shared_CXX=no
19728fi
19729
19730fi
Reid Spencera773bd52006-08-04 18:18:08 +000019731case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019732 # For platforms which do not support PIC, -DPIC is meaningless:
19733 *djgpp*)
19734 lt_prog_compiler_pic_CXX=
19735 ;;
19736 *)
19737 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19738 ;;
19739esac
19740
Reid Spencera773bd52006-08-04 18:18:08 +000019741#
19742# Check to make sure the static flag actually works.
19743#
19744wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19745{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19746echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19747if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749else
19750 lt_prog_compiler_static_works_CXX=no
19751 save_LDFLAGS="$LDFLAGS"
19752 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19753 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19754 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19755 # The linker can only warn and ignore the option if not recognized
19756 # So say no if there are warnings
19757 if test -s conftest.err; then
19758 # Append any errors to the config.log.
19759 cat conftest.err 1>&5
19760 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19762 if diff conftest.exp conftest.er2 >/dev/null; then
19763 lt_prog_compiler_static_works_CXX=yes
19764 fi
19765 else
19766 lt_prog_compiler_static_works_CXX=yes
19767 fi
19768 fi
19769 $rm conftest*
19770 LDFLAGS="$save_LDFLAGS"
19771
19772fi
19773{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19774echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19775
19776if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19777 :
19778else
19779 lt_prog_compiler_static_CXX=
19780fi
19781
19782
19783{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19784echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019785if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19787else
19788 lt_cv_prog_compiler_c_o_CXX=no
19789 $rm -r conftest 2>/dev/null
19790 mkdir conftest
19791 cd conftest
19792 mkdir out
19793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19794
John Criswell47fdd832003-07-14 16:52:07 +000019795 lt_compiler_flag="-o out/conftest2.$ac_objext"
19796 # Insert the option either (1) after the last *FLAGS variable, or
19797 # (2) before a word containing "conftest.", or (3) at the end.
19798 # Note that $ac_compile itself does not contain backslashes and begins
19799 # with a dollar sign (not a hyphen), so the echo should work correctly.
19800 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19803 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky267fddb2009-04-13 04:26:27 +000019804 (eval echo "\"\$as_me:19804: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019805 (eval "$lt_compile" 2>out/conftest.err)
19806 ac_status=$?
19807 cat out/conftest.err >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000019808 echo "$as_me:19808: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19810 then
19811 # The compiler can only warn and ignore the option if not recognized
19812 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019813 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019816 lt_cv_prog_compiler_c_o_CXX=yes
19817 fi
19818 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019819 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019820 $rm conftest*
19821 # SGI C++ compiler will create directory out/ii_files/ for
19822 # template instantiation
19823 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19824 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019825 cd ..
19826 rmdir conftest
19827 $rm conftest*
19828
19829fi
Reid Spencera773bd52006-08-04 18:18:08 +000019830{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19831echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019832
19833
19834hard_links="nottested"
19835if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19836 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019837 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19838echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019839 hard_links=yes
19840 $rm conftest*
19841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19842 touch conftest.a
19843 ln conftest.a conftest.b 2>&5 || hard_links=no
19844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019845 { echo "$as_me:$LINENO: result: $hard_links" >&5
19846echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019847 if test "$hard_links" = no; then
19848 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19849echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19850 need_locks=warn
19851 fi
19852else
19853 need_locks=no
19854fi
19855
Reid Spencera773bd52006-08-04 18:18:08 +000019856{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19857echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019858
19859 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19860 case $host_os in
19861 aix4* | aix5*)
19862 # If we're using GNU nm, then we don't want the "-C" option.
19863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19864 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19865 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19866 else
19867 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19868 fi
19869 ;;
19870 pw32*)
19871 export_symbols_cmds_CXX="$ltdll_cmds"
19872 ;;
19873 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000019875 ;;
19876 *)
19877 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19878 ;;
19879 esac
19880
Reid Spencera773bd52006-08-04 18:18:08 +000019881{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19882echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019883test "$ld_shlibs_CXX" = no && can_build_shared=no
19884
John Criswell47fdd832003-07-14 16:52:07 +000019885#
19886# Do we need to explicitly link libc?
19887#
19888case "x$archive_cmds_need_lc_CXX" in
19889x|xyes)
19890 # Assume -lc should be added
19891 archive_cmds_need_lc_CXX=yes
19892
19893 if test "$enable_shared" = yes && test "$GCC" = yes; then
19894 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019895 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019896 # FIXME: we may have to deal with multi-command sequences.
19897 ;;
19898 '$CC '*)
19899 # Test whether the compiler implicitly links with -lc since on some
19900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19901 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019902 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19903echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019904 $rm conftest*
19905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19906
19907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19908 (eval $ac_compile) 2>&5
19909 ac_status=$?
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } 2>conftest.err; then
19912 soname=conftest
19913 lib=conftest
19914 libobjs=conftest.$ac_objext
19915 deplibs=
19916 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019917 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019918 compiler_flags=-v
19919 linker_flags=-v
19920 verstring=
19921 output_objdir=.
19922 libname=conftest
19923 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19924 allow_undefined_flag_CXX=
19925 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19926 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }
19930 then
19931 archive_cmds_need_lc_CXX=no
19932 else
19933 archive_cmds_need_lc_CXX=yes
19934 fi
19935 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19936 else
19937 cat conftest.err 1>&5
19938 fi
19939 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019940 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19941echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019942 ;;
19943 esac
19944 fi
19945 ;;
19946esac
19947
Reid Spencera773bd52006-08-04 18:18:08 +000019948{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19949echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019950library_names_spec=
19951libname_spec='lib$name'
19952soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019953shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019954postinstall_cmds=
19955postuninstall_cmds=
19956finish_cmds=
19957finish_eval=
19958shlibpath_var=
19959shlibpath_overrides_runpath=unknown
19960version_type=none
19961dynamic_linker="$host_os ld.so"
19962sys_lib_dlsearch_path_spec="/lib /usr/lib"
19963if test "$GCC" = yes; then
19964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19965 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19966 # if the path contains ";" then we assume it to be the separator
19967 # otherwise default to the standard path separator (i.e. ":") - it is
19968 # assumed that no part of a normal pathname contains ";" but that should
19969 # okay in the real world where ";" in dirpaths is itself problematic.
19970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19971 else
19972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19973 fi
19974else
19975 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19976fi
19977need_lib_prefix=unknown
19978hardcode_into_libs=no
19979
19980# when you set need_version to no, make sure it does not cause -set_version
19981# flags to be left without arguments
19982need_version=unknown
19983
19984case $host_os in
19985aix3*)
19986 version_type=linux
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19988 shlibpath_var=LIBPATH
19989
19990 # AIX 3 has no versioning support, so we append a major version to the name.
19991 soname_spec='${libname}${release}${shared_ext}$major'
19992 ;;
19993
19994aix4* | aix5*)
19995 version_type=linux
19996 need_lib_prefix=no
19997 need_version=no
19998 hardcode_into_libs=yes
19999 if test "$host_cpu" = ia64; then
20000 # AIX 5 supports IA64
20001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20002 shlibpath_var=LD_LIBRARY_PATH
20003 else
20004 # With GCC up to 2.95.x, collect2 would create an import file
20005 # for dependence libraries. The import file would start with
20006 # the line `#! .'. This would cause the generated library to
20007 # depend on `.', always an invalid library. This was fixed in
20008 # development snapshots of GCC prior to 3.0.
20009 case $host_os in
20010 aix4 | aix4.[01] | aix4.[01].*)
20011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20012 echo ' yes '
20013 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20014 :
20015 else
20016 can_build_shared=no
20017 fi
20018 ;;
20019 esac
20020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20021 # soname into executable. Probably we can add versioning support to
20022 # collect2, so additional links can be useful in future.
20023 if test "$aix_use_runtimelinking" = yes; then
20024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20025 # instead of lib<name>.a to let people know that these are not
20026 # typical AIX shared libraries.
20027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20028 else
20029 # We preserve .a as extension for shared libraries through AIX4.2
20030 # and later when we are not doing run time linking.
20031 library_names_spec='${libname}${release}.a $libname.a'
20032 soname_spec='${libname}${release}${shared_ext}$major'
20033 fi
20034 shlibpath_var=LIBPATH
20035 fi
20036 ;;
20037
20038amigaos*)
20039 library_names_spec='$libname.ixlibrary $libname.a'
20040 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020041 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'
John Criswell47fdd832003-07-14 16:52:07 +000020042 ;;
20043
20044beos*)
20045 library_names_spec='${libname}${shared_ext}'
20046 dynamic_linker="$host_os ld.so"
20047 shlibpath_var=LIBRARY_PATH
20048 ;;
20049
Reid Spencer2706f8c2004-09-19 23:53:36 +000020050bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020051 version_type=linux
20052 need_version=no
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20054 soname_spec='${libname}${release}${shared_ext}$major'
20055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20056 shlibpath_var=LD_LIBRARY_PATH
20057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20059 # the default ld.so.conf also contains /usr/contrib/lib and
20060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20061 # libtool to hard-code these into programs
20062 ;;
20063
20064cygwin* | mingw* | pw32*)
20065 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020066 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020067 need_version=no
20068 need_lib_prefix=no
20069
20070 case $GCC,$host_os in
20071 yes,cygwin* | yes,mingw* | yes,pw32*)
20072 library_names_spec='$libname.dll.a'
20073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020074 postinstall_cmds='base_file=`basename \${file}`~
20075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20076 dldir=$destdir/`dirname \$dlpath`~
20077 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020078 $install_prog $dir/$dlname \$dldir/$dlname~
20079 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20081 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020082 $rm \$dlpath'
20083 shlibpath_overrides_runpath=yes
20084
20085 case $host_os in
20086 cygwin*)
20087 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020089 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020090 ;;
20091 mingw*)
20092 # MinGW DLLs use traditional 'lib' prefix
20093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20094 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20095 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20096 # It is most probably a Windows format PATH printed by
20097 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20098 # path with ; separators, and with drive letters. We can handle the
20099 # drive letters (cygwin fileutils understands them), so leave them,
20100 # especially as we might pass files found there to a mingw objdump,
20101 # which wouldn't understand a cygwinified path. Ahh.
20102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20103 else
20104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20105 fi
20106 ;;
20107 pw32*)
20108 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020110 ;;
20111 esac
20112 ;;
20113
20114 *)
20115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20116 ;;
20117 esac
20118 dynamic_linker='Win32 ld.exe'
20119 # FIXME: first we should search . and the directory the executable is in
20120 shlibpath_var=PATH
20121 ;;
20122
20123darwin* | rhapsody*)
20124 dynamic_linker="$host_os dyld"
20125 version_type=darwin
20126 need_lib_prefix=no
20127 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020128 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020129 soname_spec='${libname}${release}${major}$shared_ext'
20130 shlibpath_overrides_runpath=yes
20131 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020132 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020133 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020134 if test "$GCC" = yes; then
20135 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"`
20136 else
20137 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020138 fi
20139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20140 ;;
20141
20142dgux*)
20143 version_type=linux
20144 need_lib_prefix=no
20145 need_version=no
20146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20147 soname_spec='${libname}${release}${shared_ext}$major'
20148 shlibpath_var=LD_LIBRARY_PATH
20149 ;;
20150
20151freebsd1*)
20152 dynamic_linker=no
20153 ;;
20154
Reid Spencer2706f8c2004-09-19 23:53:36 +000020155kfreebsd*-gnu)
20156 version_type=linux
20157 need_lib_prefix=no
20158 need_version=no
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 shlibpath_var=LD_LIBRARY_PATH
20162 shlibpath_overrides_runpath=no
20163 hardcode_into_libs=yes
20164 dynamic_linker='GNU ld.so'
20165 ;;
20166
Reid Spencera773bd52006-08-04 18:18:08 +000020167freebsd* | dragonfly*)
20168 # DragonFly does not have aout. When/if they implement a new
20169 # versioning mechanism, adjust this.
20170 if test -x /usr/bin/objformat; then
20171 objformat=`/usr/bin/objformat`
20172 else
20173 case $host_os in
20174 freebsd[123]*) objformat=aout ;;
20175 *) objformat=elf ;;
20176 esac
20177 fi
John Criswell47fdd832003-07-14 16:52:07 +000020178 version_type=freebsd-$objformat
20179 case $version_type in
20180 freebsd-elf*)
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20182 need_version=no
20183 need_lib_prefix=no
20184 ;;
20185 freebsd-*)
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20187 need_version=yes
20188 ;;
20189 esac
20190 shlibpath_var=LD_LIBRARY_PATH
20191 case $host_os in
20192 freebsd2*)
20193 shlibpath_overrides_runpath=yes
20194 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020195 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020196 shlibpath_overrides_runpath=yes
20197 hardcode_into_libs=yes
20198 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020201 shlibpath_overrides_runpath=no
20202 hardcode_into_libs=yes
20203 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020204 freebsd*) # from 4.6 on
20205 shlibpath_overrides_runpath=yes
20206 hardcode_into_libs=yes
20207 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020208 esac
20209 ;;
20210
20211gnu*)
20212 version_type=linux
20213 need_lib_prefix=no
20214 need_version=no
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20216 soname_spec='${libname}${release}${shared_ext}$major'
20217 shlibpath_var=LD_LIBRARY_PATH
20218 hardcode_into_libs=yes
20219 ;;
20220
20221hpux9* | hpux10* | hpux11*)
20222 # Give a soname corresponding to the major version so that dld.sl refuses to
20223 # link against other versions.
20224 version_type=sunos
20225 need_lib_prefix=no
20226 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020227 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020228 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020229 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020230 hardcode_into_libs=yes
20231 dynamic_linker="$host_os dld.so"
20232 shlibpath_var=LD_LIBRARY_PATH
20233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 if test "X$HPUX_IA64_MODE" = X32; then
20237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20238 else
20239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20240 fi
20241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20242 ;;
20243 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020244 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020245 hardcode_into_libs=yes
20246 dynamic_linker="$host_os dld.sl"
20247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20253 ;;
20254 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020255 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020256 dynamic_linker="$host_os dld.sl"
20257 shlibpath_var=SHLIB_PATH
20258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 ;;
20262 esac
20263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20264 postinstall_cmds='chmod 555 $lib'
20265 ;;
20266
Reid Spencera773bd52006-08-04 18:18:08 +000020267interix3*)
20268 version_type=linux
20269 need_lib_prefix=no
20270 need_version=no
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20272 soname_spec='${libname}${release}${shared_ext}$major'
20273 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20274 shlibpath_var=LD_LIBRARY_PATH
20275 shlibpath_overrides_runpath=no
20276 hardcode_into_libs=yes
20277 ;;
20278
John Criswell47fdd832003-07-14 16:52:07 +000020279irix5* | irix6* | nonstopux*)
20280 case $host_os in
20281 nonstopux*) version_type=nonstopux ;;
20282 *)
20283 if test "$lt_cv_prog_gnu_ld" = yes; then
20284 version_type=linux
20285 else
20286 version_type=irix
20287 fi ;;
20288 esac
20289 need_lib_prefix=no
20290 need_version=no
20291 soname_spec='${libname}${release}${shared_ext}$major'
20292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20293 case $host_os in
20294 irix5* | nonstopux*)
20295 libsuff= shlibsuff=
20296 ;;
20297 *)
20298 case $LD in # libtool.m4 will add one of these switches to LD
20299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20300 libsuff= shlibsuff= libmagic=32-bit;;
20301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20302 libsuff=32 shlibsuff=N32 libmagic=N32;;
20303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20305 *) libsuff= shlibsuff= libmagic=never-match;;
20306 esac
20307 ;;
20308 esac
20309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20310 shlibpath_overrides_runpath=no
20311 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20312 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20313 hardcode_into_libs=yes
20314 ;;
20315
20316# No shared lib support for Linux oldld, aout, or coff.
20317linux*oldld* | linux*aout* | linux*coff*)
20318 dynamic_linker=no
20319 ;;
20320
20321# This must be Linux ELF.
20322linux*)
20323 version_type=linux
20324 need_lib_prefix=no
20325 need_version=no
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20327 soname_spec='${libname}${release}${shared_ext}$major'
20328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20329 shlibpath_var=LD_LIBRARY_PATH
20330 shlibpath_overrides_runpath=no
20331 # This implies no fast_install, which is unacceptable.
20332 # Some rework will be needed to allow for fast_install
20333 # before this can be enabled.
20334 hardcode_into_libs=yes
20335
Reid Spencer2706f8c2004-09-19 23:53:36 +000020336 # Append ld.so.conf contents to the search path
20337 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020338 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 Spencer2706f8c2004-09-19 23:53:36 +000020339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20340 fi
20341
John Criswell47fdd832003-07-14 16:52:07 +000020342 # We used to test for /lib/ld.so.1 and disable shared libraries on
20343 # powerpc, because MkLinux only supported shared libraries with the
20344 # GNU dynamic linker. Since this was broken with cross compilers,
20345 # most powerpc-linux boxes support dynamic linking these days and
20346 # people can always --disable-shared, the test was removed, and we
20347 # assume the GNU/Linux dynamic linker is in use.
20348 dynamic_linker='GNU/Linux ld.so'
20349 ;;
20350
Reid Spencer2706f8c2004-09-19 23:53:36 +000020351knetbsd*-gnu)
20352 version_type=linux
20353 need_lib_prefix=no
20354 need_version=no
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20356 soname_spec='${libname}${release}${shared_ext}$major'
20357 shlibpath_var=LD_LIBRARY_PATH
20358 shlibpath_overrides_runpath=no
20359 hardcode_into_libs=yes
20360 dynamic_linker='GNU ld.so'
20361 ;;
20362
John Criswell47fdd832003-07-14 16:52:07 +000020363netbsd*)
20364 version_type=sunos
20365 need_lib_prefix=no
20366 need_version=no
20367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20370 dynamic_linker='NetBSD (a.out) ld.so'
20371 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020373 soname_spec='${libname}${release}${shared_ext}$major'
20374 dynamic_linker='NetBSD ld.elf_so'
20375 fi
20376 shlibpath_var=LD_LIBRARY_PATH
20377 shlibpath_overrides_runpath=yes
20378 hardcode_into_libs=yes
20379 ;;
20380
20381newsos6)
20382 version_type=linux
20383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20384 shlibpath_var=LD_LIBRARY_PATH
20385 shlibpath_overrides_runpath=yes
20386 ;;
20387
Reid Spencer2706f8c2004-09-19 23:53:36 +000020388nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020389 version_type=linux
20390 need_lib_prefix=no
20391 need_version=no
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 shlibpath_var=LD_LIBRARY_PATH
20395 shlibpath_overrides_runpath=yes
20396 ;;
20397
20398openbsd*)
20399 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020400 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020401 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020402 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20403 case $host_os in
20404 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20405 *) need_version=no ;;
20406 esac
John Criswell47fdd832003-07-14 16:52:07 +000020407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20409 shlibpath_var=LD_LIBRARY_PATH
20410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20411 case $host_os in
20412 openbsd2.[89] | openbsd2.[89].*)
20413 shlibpath_overrides_runpath=no
20414 ;;
20415 *)
20416 shlibpath_overrides_runpath=yes
20417 ;;
20418 esac
20419 else
20420 shlibpath_overrides_runpath=yes
20421 fi
20422 ;;
20423
20424os2*)
20425 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020426 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020427 need_lib_prefix=no
20428 library_names_spec='$libname${shared_ext} $libname.a'
20429 dynamic_linker='OS/2 ld.exe'
20430 shlibpath_var=LIBPATH
20431 ;;
20432
20433osf3* | osf4* | osf5*)
20434 version_type=osf
20435 need_lib_prefix=no
20436 need_version=no
20437 soname_spec='${libname}${release}${shared_ext}$major'
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20439 shlibpath_var=LD_LIBRARY_PATH
20440 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20441 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20442 ;;
20443
John Criswell47fdd832003-07-14 16:52:07 +000020444solaris*)
20445 version_type=linux
20446 need_lib_prefix=no
20447 need_version=no
20448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20449 soname_spec='${libname}${release}${shared_ext}$major'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=yes
20452 hardcode_into_libs=yes
20453 # ldd complains unless libraries are executable
20454 postinstall_cmds='chmod +x $lib'
20455 ;;
20456
20457sunos4*)
20458 version_type=sunos
20459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20460 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20461 shlibpath_var=LD_LIBRARY_PATH
20462 shlibpath_overrides_runpath=yes
20463 if test "$with_gnu_ld" = yes; then
20464 need_lib_prefix=no
20465 fi
20466 need_version=yes
20467 ;;
20468
Reid Spencera773bd52006-08-04 18:18:08 +000020469sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020470 version_type=linux
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472 soname_spec='${libname}${release}${shared_ext}$major'
20473 shlibpath_var=LD_LIBRARY_PATH
20474 case $host_vendor in
20475 sni)
20476 shlibpath_overrides_runpath=no
20477 need_lib_prefix=no
20478 export_dynamic_flag_spec='${wl}-Blargedynsym'
20479 runpath_var=LD_RUN_PATH
20480 ;;
20481 siemens)
20482 need_lib_prefix=no
20483 ;;
20484 motorola)
20485 need_lib_prefix=no
20486 need_version=no
20487 shlibpath_overrides_runpath=no
20488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20489 ;;
20490 esac
20491 ;;
20492
20493sysv4*MP*)
20494 if test -d /usr/nec ;then
20495 version_type=linux
20496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20497 soname_spec='$libname${shared_ext}.$major'
20498 shlibpath_var=LD_LIBRARY_PATH
20499 fi
20500 ;;
20501
Reid Spencera773bd52006-08-04 18:18:08 +000020502sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20503 version_type=freebsd-elf
20504 need_lib_prefix=no
20505 need_version=no
20506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20507 soname_spec='${libname}${release}${shared_ext}$major'
20508 shlibpath_var=LD_LIBRARY_PATH
20509 hardcode_into_libs=yes
20510 if test "$with_gnu_ld" = yes; then
20511 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20512 shlibpath_overrides_runpath=no
20513 else
20514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20515 shlibpath_overrides_runpath=yes
20516 case $host_os in
20517 sco3.2v5*)
20518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20519 ;;
20520 esac
20521 fi
20522 sys_lib_dlsearch_path_spec='/usr/lib'
20523 ;;
20524
John Criswell47fdd832003-07-14 16:52:07 +000020525uts4*)
20526 version_type=linux
20527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20528 soname_spec='${libname}${release}${shared_ext}$major'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 ;;
20531
20532*)
20533 dynamic_linker=no
20534 ;;
20535esac
Reid Spencera773bd52006-08-04 18:18:08 +000020536{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20537echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020538test "$dynamic_linker" = no && can_build_shared=no
20539
Reid Spencera773bd52006-08-04 18:18:08 +000020540variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20541if test "$GCC" = yes; then
20542 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20543fi
20544
20545{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20546echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020547hardcode_action_CXX=
20548if test -n "$hardcode_libdir_flag_spec_CXX" || \
20549 test -n "$runpath_var_CXX" || \
20550 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20551
20552 # We can hardcode non-existant directories.
20553 if test "$hardcode_direct_CXX" != no &&
20554 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20555 # have to relink, otherwise we might link with an installed library
20556 # when we should be linking with a yet-to-be-installed one
20557 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20558 test "$hardcode_minus_L_CXX" != no; then
20559 # Linking always hardcodes the temporary library directory.
20560 hardcode_action_CXX=relink
20561 else
20562 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20563 hardcode_action_CXX=immediate
20564 fi
20565else
20566 # We cannot hardcode anything, or else we can only hardcode existing
20567 # directories.
20568 hardcode_action_CXX=unsupported
20569fi
Reid Spencera773bd52006-08-04 18:18:08 +000020570{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20571echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020572
20573if test "$hardcode_action_CXX" = relink; then
20574 # Fast installation is not supported
20575 enable_fast_install=no
20576elif test "$shlibpath_overrides_runpath" = yes ||
20577 test "$enable_shared" = no; then
20578 # Fast installation is not necessary
20579 enable_fast_install=needless
20580fi
20581
John Criswell47fdd832003-07-14 16:52:07 +000020582
20583# The else clause should only fire when bootstrapping the
20584# libtool distribution, otherwise you forgot to ship ltmain.sh
20585# with your package, and you will get complaints that there are
20586# no rules to generate ltmain.sh.
20587if test -f "$ltmain"; then
20588 # See if we are running on zsh, and set the options which allow our commands through
20589 # without removal of \ escapes.
20590 if test -n "${ZSH_VERSION+set}" ; then
20591 setopt NO_GLOB_SUBST
20592 fi
20593 # Now quote all the things that may contain metacharacters while being
20594 # careful not to overquote the AC_SUBSTed values. We take copies of the
20595 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020596 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020597 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020598 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20599 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20600 deplibs_check_method reload_flag reload_cmds need_locks \
20601 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20602 lt_cv_sys_global_symbol_to_c_name_address \
20603 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20604 old_postinstall_cmds old_postuninstall_cmds \
20605 compiler_CXX \
20606 CC_CXX \
20607 LD_CXX \
20608 lt_prog_compiler_wl_CXX \
20609 lt_prog_compiler_pic_CXX \
20610 lt_prog_compiler_static_CXX \
20611 lt_prog_compiler_no_builtin_flag_CXX \
20612 export_dynamic_flag_spec_CXX \
20613 thread_safe_flag_spec_CXX \
20614 whole_archive_flag_spec_CXX \
20615 enable_shared_with_static_runtimes_CXX \
20616 old_archive_cmds_CXX \
20617 old_archive_from_new_cmds_CXX \
20618 predep_objects_CXX \
20619 postdep_objects_CXX \
20620 predeps_CXX \
20621 postdeps_CXX \
20622 compiler_lib_search_path_CXX \
20623 archive_cmds_CXX \
20624 archive_expsym_cmds_CXX \
20625 postinstall_cmds_CXX \
20626 postuninstall_cmds_CXX \
20627 old_archive_from_expsyms_cmds_CXX \
20628 allow_undefined_flag_CXX \
20629 no_undefined_flag_CXX \
20630 export_symbols_cmds_CXX \
20631 hardcode_libdir_flag_spec_CXX \
20632 hardcode_libdir_flag_spec_ld_CXX \
20633 hardcode_libdir_separator_CXX \
20634 hardcode_automatic_CXX \
20635 module_cmds_CXX \
20636 module_expsym_cmds_CXX \
20637 lt_cv_prog_compiler_c_o_CXX \
20638 exclude_expsyms_CXX \
20639 include_expsyms_CXX; do
20640
20641 case $var in
20642 old_archive_cmds_CXX | \
20643 old_archive_from_new_cmds_CXX | \
20644 archive_cmds_CXX | \
20645 archive_expsym_cmds_CXX | \
20646 module_cmds_CXX | \
20647 module_expsym_cmds_CXX | \
20648 old_archive_from_expsyms_cmds_CXX | \
20649 export_symbols_cmds_CXX | \
20650 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20651 postinstall_cmds | postuninstall_cmds | \
20652 old_postinstall_cmds | old_postuninstall_cmds | \
20653 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20654 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000020656 ;;
20657 *)
20658 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20659 ;;
20660 esac
20661 done
20662
20663 case $lt_echo in
20664 *'\$0 --fallback-echo"')
20665 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20666 ;;
20667 esac
20668
20669cfgfile="$ofile"
20670
20671 cat <<__EOF__ >> "$cfgfile"
20672# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20673
20674# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20675
20676# Shell to use when invoking shell scripts.
20677SHELL=$lt_SHELL
20678
20679# Whether or not to build shared libraries.
20680build_libtool_libs=$enable_shared
20681
20682# Whether or not to build static libraries.
20683build_old_libs=$enable_static
20684
20685# Whether or not to add -lc for building shared libraries.
20686build_libtool_need_lc=$archive_cmds_need_lc_CXX
20687
20688# Whether or not to disallow shared libs when runtime libs are static
20689allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20690
20691# Whether or not to optimize for fast installation.
20692fast_install=$enable_fast_install
20693
20694# The host system.
20695host_alias=$host_alias
20696host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020697host_os=$host_os
20698
20699# The build system.
20700build_alias=$build_alias
20701build=$build
20702build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020703
20704# An echo program that does not interpret backslashes.
20705echo=$lt_echo
20706
20707# The archiver.
20708AR=$lt_AR
20709AR_FLAGS=$lt_AR_FLAGS
20710
20711# A C compiler.
20712LTCC=$lt_LTCC
20713
Reid Spencera773bd52006-08-04 18:18:08 +000020714# LTCC compiler flags.
20715LTCFLAGS=$lt_LTCFLAGS
20716
John Criswell47fdd832003-07-14 16:52:07 +000020717# A language-specific compiler.
20718CC=$lt_compiler_CXX
20719
20720# Is the compiler the GNU C compiler?
20721with_gcc=$GCC_CXX
20722
20723# An ERE matcher.
20724EGREP=$lt_EGREP
20725
20726# The linker used to build libraries.
20727LD=$lt_LD_CXX
20728
20729# Whether we need hard or soft links.
20730LN_S=$lt_LN_S
20731
20732# A BSD-compatible nm program.
20733NM=$lt_NM
20734
20735# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020736STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020737
20738# Used to examine libraries when file_magic_cmd begins "file"
20739MAGIC_CMD=$MAGIC_CMD
20740
20741# Used on cygwin: DLL creation program.
20742DLLTOOL="$DLLTOOL"
20743
20744# Used on cygwin: object dumper.
20745OBJDUMP="$OBJDUMP"
20746
20747# Used on cygwin: assembler.
20748AS="$AS"
20749
20750# The name of the directory that contains temporary libtool files.
20751objdir=$objdir
20752
20753# How to create reloadable object files.
20754reload_flag=$lt_reload_flag
20755reload_cmds=$lt_reload_cmds
20756
20757# How to pass a linker flag through the compiler.
20758wl=$lt_lt_prog_compiler_wl_CXX
20759
20760# Object file suffix (normally "o").
20761objext="$ac_objext"
20762
20763# Old archive suffix (normally "a").
20764libext="$libext"
20765
20766# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020767shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020768
20769# Executable file suffix (normally "").
20770exeext="$exeext"
20771
20772# Additional compiler flags for building library objects.
20773pic_flag=$lt_lt_prog_compiler_pic_CXX
20774pic_mode=$pic_mode
20775
20776# What is the maximum length of a command?
20777max_cmd_len=$lt_cv_sys_max_cmd_len
20778
20779# Does compiler simultaneously support -c and -o options?
20780compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20781
Reid Spencera773bd52006-08-04 18:18:08 +000020782# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020783need_locks=$lt_need_locks
20784
20785# Do we need the lib prefix for modules?
20786need_lib_prefix=$need_lib_prefix
20787
20788# Do we need a version for libraries?
20789need_version=$need_version
20790
20791# Whether dlopen is supported.
20792dlopen_support=$enable_dlopen
20793
20794# Whether dlopen of programs is supported.
20795dlopen_self=$enable_dlopen_self
20796
20797# Whether dlopen of statically linked programs is supported.
20798dlopen_self_static=$enable_dlopen_self_static
20799
20800# Compiler flag to prevent dynamic linking.
20801link_static_flag=$lt_lt_prog_compiler_static_CXX
20802
20803# Compiler flag to turn off builtin functions.
20804no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20805
20806# Compiler flag to allow reflexive dlopens.
20807export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20808
20809# Compiler flag to generate shared objects directly from archives.
20810whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20811
20812# Compiler flag to generate thread-safe objects.
20813thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20814
20815# Library versioning type.
20816version_type=$version_type
20817
20818# Format of library name prefix.
20819libname_spec=$lt_libname_spec
20820
20821# List of archive names. First name is the real one, the rest are links.
20822# The last name is the one that the linker finds with -lNAME.
20823library_names_spec=$lt_library_names_spec
20824
20825# The coded name of the library, if different from the real name.
20826soname_spec=$lt_soname_spec
20827
20828# Commands used to build and install an old-style archive.
20829RANLIB=$lt_RANLIB
20830old_archive_cmds=$lt_old_archive_cmds_CXX
20831old_postinstall_cmds=$lt_old_postinstall_cmds
20832old_postuninstall_cmds=$lt_old_postuninstall_cmds
20833
20834# Create an old-style archive from a shared archive.
20835old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20836
20837# Create a temporary old-style archive to link instead of a shared archive.
20838old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20839
20840# Commands used to build and install a shared archive.
20841archive_cmds=$lt_archive_cmds_CXX
20842archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20843postinstall_cmds=$lt_postinstall_cmds
20844postuninstall_cmds=$lt_postuninstall_cmds
20845
20846# Commands used to build a loadable module (assumed same as above if empty)
20847module_cmds=$lt_module_cmds_CXX
20848module_expsym_cmds=$lt_module_expsym_cmds_CXX
20849
20850# Commands to strip libraries.
20851old_striplib=$lt_old_striplib
20852striplib=$lt_striplib
20853
20854# Dependencies to place before the objects being linked to create a
20855# shared library.
20856predep_objects=$lt_predep_objects_CXX
20857
20858# Dependencies to place after the objects being linked to create a
20859# shared library.
20860postdep_objects=$lt_postdep_objects_CXX
20861
20862# Dependencies to place before the objects being linked to create a
20863# shared library.
20864predeps=$lt_predeps_CXX
20865
20866# Dependencies to place after the objects being linked to create a
20867# shared library.
20868postdeps=$lt_postdeps_CXX
20869
20870# The library search path used internally by the compiler when linking
20871# a shared library.
20872compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20873
20874# Method to check whether dependent libraries are shared objects.
20875deplibs_check_method=$lt_deplibs_check_method
20876
20877# Command to use when deplibs_check_method == file_magic.
20878file_magic_cmd=$lt_file_magic_cmd
20879
20880# Flag that allows shared libraries with undefined symbols to be built.
20881allow_undefined_flag=$lt_allow_undefined_flag_CXX
20882
20883# Flag that forces no undefined symbols.
20884no_undefined_flag=$lt_no_undefined_flag_CXX
20885
20886# Commands used to finish a libtool library installation in a directory.
20887finish_cmds=$lt_finish_cmds
20888
20889# Same as above, but a single script fragment to be evaled but not shown.
20890finish_eval=$lt_finish_eval
20891
20892# Take the output of nm and produce a listing of raw symbols and C names.
20893global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20894
20895# Transform the output of nm in a proper C declaration
20896global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20897
20898# Transform the output of nm in a C name address pair
20899global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20900
20901# This is the shared library runtime path variable.
20902runpath_var=$runpath_var
20903
20904# This is the shared library path variable.
20905shlibpath_var=$shlibpath_var
20906
20907# Is shlibpath searched before the hard-coded library search path?
20908shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20909
20910# How to hardcode a shared library path into an executable.
20911hardcode_action=$hardcode_action_CXX
20912
20913# Whether we should hardcode library paths into libraries.
20914hardcode_into_libs=$hardcode_into_libs
20915
20916# Flag to hardcode \$libdir into a binary during linking.
20917# This must work even if \$libdir does not exist.
20918hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20919
20920# If ld is used when linking, flag to hardcode \$libdir into
20921# a binary during linking. This must work even if \$libdir does
20922# not exist.
20923hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20924
20925# Whether we need a single -rpath flag with a separated argument.
20926hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20927
20928# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20929# resulting binary.
20930hardcode_direct=$hardcode_direct_CXX
20931
20932# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20933# resulting binary.
20934hardcode_minus_L=$hardcode_minus_L_CXX
20935
20936# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20937# the resulting binary.
20938hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20939
20940# Set to yes if building a shared library automatically hardcodes DIR into the library
20941# and all subsequent libraries and executables linked against it.
20942hardcode_automatic=$hardcode_automatic_CXX
20943
20944# Variables whose values should be saved in libtool wrapper scripts and
20945# restored at relink time.
20946variables_saved_for_relink="$variables_saved_for_relink"
20947
20948# Whether libtool must link a program against all its dependency libraries.
20949link_all_deplibs=$link_all_deplibs_CXX
20950
20951# Compile-time system search path for libraries
20952sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20953
20954# Run-time system search path for libraries
20955sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20956
20957# Fix the shell variable \$srcfile for the compiler.
20958fix_srcfile_path="$fix_srcfile_path_CXX"
20959
20960# Set to yes if exported symbols are required.
20961always_export_symbols=$always_export_symbols_CXX
20962
20963# The commands to list exported symbols.
20964export_symbols_cmds=$lt_export_symbols_cmds_CXX
20965
20966# The commands to extract the exported symbol list from a shared archive.
20967extract_expsyms_cmds=$lt_extract_expsyms_cmds
20968
20969# Symbols that should not be listed in the preloaded symbols.
20970exclude_expsyms=$lt_exclude_expsyms_CXX
20971
20972# Symbols that must always be exported.
20973include_expsyms=$lt_include_expsyms_CXX
20974
20975# ### END LIBTOOL TAG CONFIG: $tagname
20976
20977__EOF__
20978
20979
20980else
20981 # If there is no Makefile yet, we rely on a make rule to execute
20982 # `config.status --recheck' to rerun these tests and create the
20983 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020984 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20985 if test -f "$ltmain_in"; then
20986 test -f Makefile && make "$ltmain"
20987 fi
John Criswell47fdd832003-07-14 16:52:07 +000020988fi
20989
20990
20991ac_ext=c
20992ac_cpp='$CPP $CPPFLAGS'
20993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20995ac_compiler_gnu=$ac_cv_c_compiler_gnu
20996
20997CC=$lt_save_CC
20998LDCXX=$LD
20999LD=$lt_save_LD
21000GCC=$lt_save_GCC
21001with_gnu_ldcxx=$with_gnu_ld
21002with_gnu_ld=$lt_save_with_gnu_ld
21003lt_cv_path_LDCXX=$lt_cv_path_LD
21004lt_cv_path_LD=$lt_save_path_LD
21005lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21006lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21007
21008 else
21009 tagname=""
21010 fi
21011 ;;
21012
21013 F77)
21014 if test -n "$F77" && test "X$F77" != "Xno"; then
21015
21016ac_ext=f
21017ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21018ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21020
21021
21022archive_cmds_need_lc_F77=no
21023allow_undefined_flag_F77=
21024always_export_symbols_F77=no
21025archive_expsym_cmds_F77=
21026export_dynamic_flag_spec_F77=
21027hardcode_direct_F77=no
21028hardcode_libdir_flag_spec_F77=
21029hardcode_libdir_flag_spec_ld_F77=
21030hardcode_libdir_separator_F77=
21031hardcode_minus_L_F77=no
21032hardcode_automatic_F77=no
21033module_cmds_F77=
21034module_expsym_cmds_F77=
21035link_all_deplibs_F77=unknown
21036old_archive_cmds_F77=$old_archive_cmds
21037no_undefined_flag_F77=
21038whole_archive_flag_spec_F77=
21039enable_shared_with_static_runtimes_F77=no
21040
21041# Source file extension for f77 test sources.
21042ac_ext=f
21043
21044# Object file extension for compiled f77 test sources.
21045objext=o
21046objext_F77=$objext
21047
21048# Code to be used in simple compile tests
21049lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21050
21051# Code to be used in simple link tests
21052lt_simple_link_test_code=" program t\n end\n"
21053
21054# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21055
21056# If no C compiler was specified, use CC.
21057LTCC=${LTCC-"$CC"}
21058
Reid Spencera773bd52006-08-04 18:18:08 +000021059# If no C compiler flags were specified, use CFLAGS.
21060LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21061
John Criswell47fdd832003-07-14 16:52:07 +000021062# Allow CC to be a program name with arguments.
21063compiler=$CC
21064
21065
Reid Spencera773bd52006-08-04 18:18:08 +000021066# save warnings/boilerplate of simple test code
21067ac_outfile=conftest.$ac_objext
21068printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21070_lt_compiler_boilerplate=`cat conftest.err`
21071$rm conftest*
21072
21073ac_outfile=conftest.$ac_objext
21074printf "$lt_simple_link_test_code" >conftest.$ac_ext
21075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21076_lt_linker_boilerplate=`cat conftest.err`
21077$rm conftest*
21078
21079
John Criswell47fdd832003-07-14 16:52:07 +000021080# Allow CC to be a program name with arguments.
21081lt_save_CC="$CC"
21082CC=${F77-"f77"}
21083compiler=$CC
21084compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021085for cc_temp in $compiler""; do
21086 case $cc_temp in
21087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21089 \-*) ;;
21090 *) break;;
21091 esac
21092done
21093cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021094
John Criswell47fdd832003-07-14 16:52:07 +000021095
Reid Spencera773bd52006-08-04 18:18:08 +000021096{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21097echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21098{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21099echo "${ECHO_T}$can_build_shared" >&6; }
21100
21101{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21102echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021103test "$can_build_shared" = "no" && enable_shared=no
21104
21105# On AIX, shared libraries and static libraries use the same namespace, and
21106# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021107case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021108aix3*)
21109 test "$enable_shared" = yes && enable_static=no
21110 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021111 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021112 postinstall_cmds='$RANLIB $lib'
21113 fi
21114 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021115aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021116 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21117 test "$enable_shared" = yes && enable_static=no
21118 fi
John Criswell47fdd832003-07-14 16:52:07 +000021119 ;;
21120esac
Reid Spencera773bd52006-08-04 18:18:08 +000021121{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21122echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021123
Reid Spencera773bd52006-08-04 18:18:08 +000021124{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21125echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021126# Make sure either enable_shared or enable_static is yes.
21127test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021128{ echo "$as_me:$LINENO: result: $enable_static" >&5
21129echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021130
21131GCC_F77="$G77"
21132LD_F77="$LD"
21133
21134lt_prog_compiler_wl_F77=
21135lt_prog_compiler_pic_F77=
21136lt_prog_compiler_static_F77=
21137
Reid Spencera773bd52006-08-04 18:18:08 +000021138{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21139echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021140
21141 if test "$GCC" = yes; then
21142 lt_prog_compiler_wl_F77='-Wl,'
21143 lt_prog_compiler_static_F77='-static'
21144
21145 case $host_os in
21146 aix*)
21147 # All AIX code is PIC.
21148 if test "$host_cpu" = ia64; then
21149 # AIX 5 now supports IA64 processor
21150 lt_prog_compiler_static_F77='-Bstatic'
21151 fi
21152 ;;
21153
21154 amigaos*)
21155 # FIXME: we need at least 68020 code to build shared libraries, but
21156 # adding the `-m68020' flag to GCC prevents building anything better,
21157 # like `-m68040'.
21158 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21159 ;;
21160
21161 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21162 # PIC is the default for these OSes.
21163 ;;
21164
21165 mingw* | pw32* | os2*)
21166 # This hack is so that the source file can tell whether it is being
21167 # built for inclusion in a dll (and should export symbols for example).
21168 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21169 ;;
21170
21171 darwin* | rhapsody*)
21172 # PIC is the default on this platform
21173 # Common symbols not allowed in MH_DYLIB files
21174 lt_prog_compiler_pic_F77='-fno-common'
21175 ;;
21176
Reid Spencera773bd52006-08-04 18:18:08 +000021177 interix3*)
21178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21179 # Instead, we relocate shared libraries at runtime.
21180 ;;
21181
John Criswell47fdd832003-07-14 16:52:07 +000021182 msdosdjgpp*)
21183 # Just because we use GCC doesn't mean we suddenly get shared libraries
21184 # on systems that don't support them.
21185 lt_prog_compiler_can_build_shared_F77=no
21186 enable_shared=no
21187 ;;
21188
21189 sysv4*MP*)
21190 if test -d /usr/nec; then
21191 lt_prog_compiler_pic_F77=-Kconform_pic
21192 fi
21193 ;;
21194
21195 hpux*)
21196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21197 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021198 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021199 hppa*64*|ia64*)
21200 # +Z the default
21201 ;;
21202 *)
21203 lt_prog_compiler_pic_F77='-fPIC'
21204 ;;
21205 esac
21206 ;;
21207
21208 *)
21209 lt_prog_compiler_pic_F77='-fPIC'
21210 ;;
21211 esac
21212 else
21213 # PORTME Check for flag to pass linker flags through the system compiler.
21214 case $host_os in
21215 aix*)
21216 lt_prog_compiler_wl_F77='-Wl,'
21217 if test "$host_cpu" = ia64; then
21218 # AIX 5 now supports IA64 processor
21219 lt_prog_compiler_static_F77='-Bstatic'
21220 else
21221 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21222 fi
21223 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021224 darwin*)
21225 # PIC is the default on this platform
21226 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021227 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021228 xlc*)
21229 lt_prog_compiler_pic_F77='-qnocommon'
21230 lt_prog_compiler_wl_F77='-Wl,'
21231 ;;
21232 esac
21233 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021234
21235 mingw* | pw32* | os2*)
21236 # This hack is so that the source file can tell whether it is being
21237 # built for inclusion in a dll (and should export symbols for example).
21238 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21239 ;;
21240
21241 hpux9* | hpux10* | hpux11*)
21242 lt_prog_compiler_wl_F77='-Wl,'
21243 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21244 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021245 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021246 hppa*64*|ia64*)
21247 # +Z the default
21248 ;;
21249 *)
21250 lt_prog_compiler_pic_F77='+Z'
21251 ;;
21252 esac
21253 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21254 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21255 ;;
21256
21257 irix5* | irix6* | nonstopux*)
21258 lt_prog_compiler_wl_F77='-Wl,'
21259 # PIC (with -KPIC) is the default.
21260 lt_prog_compiler_static_F77='-non_shared'
21261 ;;
21262
21263 newsos6)
21264 lt_prog_compiler_pic_F77='-KPIC'
21265 lt_prog_compiler_static_F77='-Bstatic'
21266 ;;
21267
21268 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021269 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021270 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021271 lt_prog_compiler_wl_F77='-Wl,'
21272 lt_prog_compiler_pic_F77='-KPIC'
21273 lt_prog_compiler_static_F77='-static'
21274 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021275 pgcc* | pgf77* | pgf90* | pgf95*)
21276 # Portland Group compilers (*not* the Pentium gcc compiler,
21277 # which looks to be a dead project)
21278 lt_prog_compiler_wl_F77='-Wl,'
21279 lt_prog_compiler_pic_F77='-fpic'
21280 lt_prog_compiler_static_F77='-Bstatic'
21281 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021282 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021283 lt_prog_compiler_wl_F77='-Wl,'
21284 # All Alpha code is PIC.
21285 lt_prog_compiler_static_F77='-non_shared'
21286 ;;
21287 esac
21288 ;;
21289
21290 osf3* | osf4* | osf5*)
21291 lt_prog_compiler_wl_F77='-Wl,'
21292 # All OSF/1 code is PIC.
21293 lt_prog_compiler_static_F77='-non_shared'
21294 ;;
21295
John Criswell47fdd832003-07-14 16:52:07 +000021296 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021297 lt_prog_compiler_pic_F77='-KPIC'
21298 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021299 case $cc_basename in
21300 f77* | f90* | f95*)
21301 lt_prog_compiler_wl_F77='-Qoption ld ';;
21302 *)
21303 lt_prog_compiler_wl_F77='-Wl,';;
21304 esac
John Criswell47fdd832003-07-14 16:52:07 +000021305 ;;
21306
21307 sunos4*)
21308 lt_prog_compiler_wl_F77='-Qoption ld '
21309 lt_prog_compiler_pic_F77='-PIC'
21310 lt_prog_compiler_static_F77='-Bstatic'
21311 ;;
21312
Reid Spencera773bd52006-08-04 18:18:08 +000021313 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021314 lt_prog_compiler_wl_F77='-Wl,'
21315 lt_prog_compiler_pic_F77='-KPIC'
21316 lt_prog_compiler_static_F77='-Bstatic'
21317 ;;
21318
21319 sysv4*MP*)
21320 if test -d /usr/nec ;then
21321 lt_prog_compiler_pic_F77='-Kconform_pic'
21322 lt_prog_compiler_static_F77='-Bstatic'
21323 fi
21324 ;;
21325
Reid Spencera773bd52006-08-04 18:18:08 +000021326 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21327 lt_prog_compiler_wl_F77='-Wl,'
21328 lt_prog_compiler_pic_F77='-KPIC'
21329 lt_prog_compiler_static_F77='-Bstatic'
21330 ;;
21331
21332 unicos*)
21333 lt_prog_compiler_wl_F77='-Wl,'
21334 lt_prog_compiler_can_build_shared_F77=no
21335 ;;
21336
John Criswell47fdd832003-07-14 16:52:07 +000021337 uts4*)
21338 lt_prog_compiler_pic_F77='-pic'
21339 lt_prog_compiler_static_F77='-Bstatic'
21340 ;;
21341
21342 *)
21343 lt_prog_compiler_can_build_shared_F77=no
21344 ;;
21345 esac
21346 fi
21347
Reid Spencera773bd52006-08-04 18:18:08 +000021348{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21349echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021350
21351#
21352# Check to make sure the PIC flag actually works.
21353#
21354if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021355
Reid Spencera773bd52006-08-04 18:18:08 +000021356{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21357echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021358if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360else
21361 lt_prog_compiler_pic_works_F77=no
21362 ac_outfile=conftest.$ac_objext
21363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21364 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21365 # Insert the option either (1) after the last *FLAGS variable, or
21366 # (2) before a word containing "conftest.", or (3) at the end.
21367 # Note that $ac_compile itself does not contain backslashes and begins
21368 # with a dollar sign (not a hyphen), so the echo should work correctly.
21369 # The option is referenced via a variable to avoid confusing sed.
21370 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21373 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky267fddb2009-04-13 04:26:27 +000021374 (eval echo "\"\$as_me:21374: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021375 (eval "$lt_compile" 2>conftest.err)
21376 ac_status=$?
21377 cat conftest.err >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000021378 echo "$as_me:21378: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021379 if (exit $ac_status) && test -s "$ac_outfile"; then
21380 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021381 # So say no if there are warnings other than the usual output.
21382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021385 lt_prog_compiler_pic_works_F77=yes
21386 fi
21387 fi
21388 $rm conftest*
21389
21390fi
Reid Spencera773bd52006-08-04 18:18:08 +000021391{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21392echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021393
21394if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21395 case $lt_prog_compiler_pic_F77 in
21396 "" | " "*) ;;
21397 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21398 esac
21399else
21400 lt_prog_compiler_pic_F77=
21401 lt_prog_compiler_can_build_shared_F77=no
21402fi
21403
21404fi
Reid Spencera773bd52006-08-04 18:18:08 +000021405case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021406 # For platforms which do not support PIC, -DPIC is meaningless:
21407 *djgpp*)
21408 lt_prog_compiler_pic_F77=
21409 ;;
21410 *)
21411 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21412 ;;
21413esac
21414
Reid Spencera773bd52006-08-04 18:18:08 +000021415#
21416# Check to make sure the static flag actually works.
21417#
21418wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21419{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21420echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21421if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423else
21424 lt_prog_compiler_static_works_F77=no
21425 save_LDFLAGS="$LDFLAGS"
21426 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21427 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21429 # The linker can only warn and ignore the option if not recognized
21430 # So say no if there are warnings
21431 if test -s conftest.err; then
21432 # Append any errors to the config.log.
21433 cat conftest.err 1>&5
21434 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21436 if diff conftest.exp conftest.er2 >/dev/null; then
21437 lt_prog_compiler_static_works_F77=yes
21438 fi
21439 else
21440 lt_prog_compiler_static_works_F77=yes
21441 fi
21442 fi
21443 $rm conftest*
21444 LDFLAGS="$save_LDFLAGS"
21445
21446fi
21447{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21448echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21449
21450if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21451 :
21452else
21453 lt_prog_compiler_static_F77=
21454fi
21455
21456
21457{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21458echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021459if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21461else
21462 lt_cv_prog_compiler_c_o_F77=no
21463 $rm -r conftest 2>/dev/null
21464 mkdir conftest
21465 cd conftest
21466 mkdir out
21467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21468
John Criswell47fdd832003-07-14 16:52:07 +000021469 lt_compiler_flag="-o out/conftest2.$ac_objext"
21470 # Insert the option either (1) after the last *FLAGS variable, or
21471 # (2) before a word containing "conftest.", or (3) at the end.
21472 # Note that $ac_compile itself does not contain backslashes and begins
21473 # with a dollar sign (not a hyphen), so the echo should work correctly.
21474 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21477 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky267fddb2009-04-13 04:26:27 +000021478 (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021479 (eval "$lt_compile" 2>out/conftest.err)
21480 ac_status=$?
21481 cat out/conftest.err >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000021482 echo "$as_me:21482: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21484 then
21485 # The compiler can only warn and ignore the option if not recognized
21486 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021487 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021490 lt_cv_prog_compiler_c_o_F77=yes
21491 fi
21492 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021493 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021494 $rm conftest*
21495 # SGI C++ compiler will create directory out/ii_files/ for
21496 # template instantiation
21497 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21498 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021499 cd ..
21500 rmdir conftest
21501 $rm conftest*
21502
21503fi
Reid Spencera773bd52006-08-04 18:18:08 +000021504{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21505echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021506
21507
21508hard_links="nottested"
21509if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21510 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021511 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21512echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021513 hard_links=yes
21514 $rm conftest*
21515 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21516 touch conftest.a
21517 ln conftest.a conftest.b 2>&5 || hard_links=no
21518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021519 { echo "$as_me:$LINENO: result: $hard_links" >&5
21520echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021521 if test "$hard_links" = no; then
21522 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21523echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21524 need_locks=warn
21525 fi
21526else
21527 need_locks=no
21528fi
21529
Reid Spencera773bd52006-08-04 18:18:08 +000021530{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21531echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021532
21533 runpath_var=
21534 allow_undefined_flag_F77=
21535 enable_shared_with_static_runtimes_F77=no
21536 archive_cmds_F77=
21537 archive_expsym_cmds_F77=
21538 old_archive_From_new_cmds_F77=
21539 old_archive_from_expsyms_cmds_F77=
21540 export_dynamic_flag_spec_F77=
21541 whole_archive_flag_spec_F77=
21542 thread_safe_flag_spec_F77=
21543 hardcode_libdir_flag_spec_F77=
21544 hardcode_libdir_flag_spec_ld_F77=
21545 hardcode_libdir_separator_F77=
21546 hardcode_direct_F77=no
21547 hardcode_minus_L_F77=no
21548 hardcode_shlibpath_var_F77=unsupported
21549 link_all_deplibs_F77=unknown
21550 hardcode_automatic_F77=no
21551 module_cmds_F77=
21552 module_expsym_cmds_F77=
21553 always_export_symbols_F77=no
21554 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21555 # include_expsyms should be a list of space-separated symbols to be *always*
21556 # included in the symbol list
21557 include_expsyms_F77=
21558 # exclude_expsyms can be an extended regexp of symbols to exclude
21559 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21560 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21561 # as well as any symbol that contains `d'.
21562 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21563 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21564 # platforms (ab)use it in PIC code, but their linkers get confused if
21565 # the symbol is explicitly referenced. Since portable code cannot
21566 # rely on this symbol name, it's probably fine to never include it in
21567 # preloaded symbol tables.
21568 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021569 # Just being paranoid about ensuring that cc_basename is set.
21570 for cc_temp in $compiler""; do
21571 case $cc_temp in
21572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21574 \-*) ;;
21575 *) break;;
21576 esac
21577done
21578cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021579
21580 case $host_os in
21581 cygwin* | mingw* | pw32*)
21582 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21583 # When not using gcc, we currently assume that we are using
21584 # Microsoft Visual C++.
21585 if test "$GCC" != yes; then
21586 with_gnu_ld=no
21587 fi
21588 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021589 interix*)
21590 # we just hope/assume this is gcc and not c89 (= MSVC++)
21591 with_gnu_ld=yes
21592 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021593 openbsd*)
21594 with_gnu_ld=no
21595 ;;
21596 esac
21597
21598 ld_shlibs_F77=yes
21599 if test "$with_gnu_ld" = yes; then
21600 # If archive_cmds runs LD, not CC, wlarc should be empty
21601 wlarc='${wl}'
21602
Reid Spencera773bd52006-08-04 18:18:08 +000021603 # Set some defaults for GNU ld with shared library support. These
21604 # are reset later if shared libraries are not supported. Putting them
21605 # here allows them to be overridden if necessary.
21606 runpath_var=LD_RUN_PATH
21607 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21608 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21609 # ancient GNU ld didn't support --whole-archive et. al.
21610 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21611 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21612 else
21613 whole_archive_flag_spec_F77=
21614 fi
21615 supports_anon_versioning=no
21616 case `$LD -v 2>/dev/null` in
21617 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21618 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21619 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21620 *\ 2.11.*) ;; # other 2.11 versions
21621 *) supports_anon_versioning=yes ;;
21622 esac
21623
John Criswell47fdd832003-07-14 16:52:07 +000021624 # See if GNU ld supports shared libraries.
21625 case $host_os in
21626 aix3* | aix4* | aix5*)
21627 # On AIX/PPC, the GNU linker is very broken
21628 if test "$host_cpu" != ia64; then
21629 ld_shlibs_F77=no
21630 cat <<EOF 1>&2
21631
21632*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21633*** to be unable to reliably create shared libraries on AIX.
21634*** Therefore, libtool is disabling shared libraries support. If you
21635*** really care for shared libraries, you may want to modify your PATH
21636*** so that a non-GNU linker is found, and then restart.
21637
21638EOF
21639 fi
21640 ;;
21641
21642 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021643 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000021644 hardcode_libdir_flag_spec_F77='-L$libdir'
21645 hardcode_minus_L_F77=yes
21646
21647 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21648 # that the semantics of dynamic libraries on AmigaOS, at least up
21649 # to version 4, is to share data among multiple programs linked
21650 # with the same dynamic library. Since this doesn't match the
21651 # behavior of shared libraries on other platforms, we can't use
21652 # them.
21653 ld_shlibs_F77=no
21654 ;;
21655
21656 beos*)
21657 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21658 allow_undefined_flag_F77=unsupported
21659 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21660 # support --undefined. This deserves some investigation. FIXME
21661 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21662 else
21663 ld_shlibs_F77=no
21664 fi
21665 ;;
21666
21667 cygwin* | mingw* | pw32*)
21668 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21669 # as there is no search path for DLLs.
21670 hardcode_libdir_flag_spec_F77='-L$libdir'
21671 allow_undefined_flag_F77=unsupported
21672 always_export_symbols_F77=no
21673 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021674 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000021675
21676 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021677 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000021678 # If the export-symbols file already is a .def file (1st line
21679 # is EXPORTS), use it as is; otherwise, prepend...
21680 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21681 cp $export_symbols $output_objdir/$soname.def;
21682 else
21683 echo EXPORTS > $output_objdir/$soname.def;
21684 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021685 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021686 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000021687 else
Reid Spencera773bd52006-08-04 18:18:08 +000021688 ld_shlibs_F77=no
21689 fi
21690 ;;
21691
21692 interix3*)
21693 hardcode_direct_F77=no
21694 hardcode_shlibpath_var_F77=no
21695 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21696 export_dynamic_flag_spec_F77='${wl}-E'
21697 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21698 # Instead, shared libraries are loaded at an image base (0x10000000 by
21699 # default) and relocated if they conflict, which is a slow very memory
21700 # consuming and fragmenting process. To avoid this, we pick a random,
21701 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21702 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21703 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21704 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21705 ;;
21706
21707 linux*)
21708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21709 tmp_addflag=
21710 case $cc_basename,$host_cpu in
21711 pgcc*) # Portland Group C compiler
21712 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21713 tmp_addflag=' $pic_flag'
21714 ;;
21715 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21716 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21717 tmp_addflag=' $pic_flag -Mnomain' ;;
21718 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21719 tmp_addflag=' -i_dynamic' ;;
21720 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21721 tmp_addflag=' -i_dynamic -nofor_main' ;;
21722 ifc* | ifort*) # Intel Fortran compiler
21723 tmp_addflag=' -nofor_main' ;;
21724 esac
21725 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21726
21727 if test $supports_anon_versioning = yes; then
21728 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21729 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21730 $echo "local: *; };" >> $output_objdir/$libname.ver~
21731 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21732 fi
21733 else
21734 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021735 fi
21736 ;;
21737
21738 netbsd*)
21739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21740 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21741 wlarc=
21742 else
21743 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21744 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21745 fi
21746 ;;
21747
Reid Spencera773bd52006-08-04 18:18:08 +000021748 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021749 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21750 ld_shlibs_F77=no
21751 cat <<EOF 1>&2
21752
21753*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21754*** create shared libraries on Solaris systems. Therefore, libtool
21755*** is disabling shared libraries support. We urge you to upgrade GNU
21756*** binutils to release 2.9.1 or newer. Another option is to modify
21757*** your PATH or compiler configuration so that the native linker is
21758*** used, and then restart.
21759
21760EOF
21761 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21762 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21763 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21764 else
21765 ld_shlibs_F77=no
21766 fi
21767 ;;
21768
Reid Spencera773bd52006-08-04 18:18:08 +000021769 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21770 case `$LD -v 2>&1` in
21771 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21772 ld_shlibs_F77=no
21773 cat <<_LT_EOF 1>&2
21774
21775*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21776*** reliably create shared libraries on SCO systems. Therefore, libtool
21777*** is disabling shared libraries support. We urge you to upgrade GNU
21778*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21779*** your PATH or compiler configuration so that the native linker is
21780*** used, and then restart.
21781
21782_LT_EOF
21783 ;;
21784 *)
21785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21786 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21787 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21788 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21789 else
21790 ld_shlibs_F77=no
21791 fi
21792 ;;
21793 esac
21794 ;;
21795
John Criswell47fdd832003-07-14 16:52:07 +000021796 sunos4*)
21797 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21798 wlarc=
21799 hardcode_direct_F77=yes
21800 hardcode_shlibpath_var_F77=no
21801 ;;
21802
21803 *)
21804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21806 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21807 else
21808 ld_shlibs_F77=no
21809 fi
21810 ;;
21811 esac
21812
Reid Spencera773bd52006-08-04 18:18:08 +000021813 if test "$ld_shlibs_F77" = no; then
21814 runpath_var=
21815 hardcode_libdir_flag_spec_F77=
21816 export_dynamic_flag_spec_F77=
21817 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021818 fi
21819 else
21820 # PORTME fill in a description of your system's linker (not GNU ld)
21821 case $host_os in
21822 aix3*)
21823 allow_undefined_flag_F77=unsupported
21824 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021825 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000021826 # Note: this linker hardcodes the directories in LIBPATH if there
21827 # are no directories specified by -L.
21828 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021829 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021830 # Neither direct hardcoding nor static linking is supported with a
21831 # broken collect2.
21832 hardcode_direct_F77=unsupported
21833 fi
21834 ;;
21835
21836 aix4* | aix5*)
21837 if test "$host_cpu" = ia64; then
21838 # On IA64, the linker does run time linking by default, so we don't
21839 # have to do anything special.
21840 aix_use_runtimelinking=no
21841 exp_sym_flag='-Bexport'
21842 no_entry_flag=""
21843 else
21844 # If we're using GNU nm, then we don't want the "-C" option.
21845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21846 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21847 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21848 else
21849 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21850 fi
21851 aix_use_runtimelinking=no
21852
21853 # Test if we are trying to use run time linking or normal
21854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21855 # need to do runtime linking.
21856 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21857 for ld_flag in $LDFLAGS; do
21858 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21859 aix_use_runtimelinking=yes
21860 break
21861 fi
21862 done
Reid Spencera773bd52006-08-04 18:18:08 +000021863 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021864 esac
21865
21866 exp_sym_flag='-bexport'
21867 no_entry_flag='-bnoentry'
21868 fi
21869
21870 # When large executables or shared objects are built, AIX ld can
21871 # have problems creating the table of contents. If linking a library
21872 # or program results in "error TOC overflow" add -mminimal-toc to
21873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21875
21876 archive_cmds_F77=''
21877 hardcode_direct_F77=yes
21878 hardcode_libdir_separator_F77=':'
21879 link_all_deplibs_F77=yes
21880
21881 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021882 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021883 # We only want to do this on AIX 4.2 and lower, the check
21884 # below for broken collect2 doesn't work under 4.3+
21885 collect2name=`${CC} -print-prog-name=collect2`
21886 if test -f "$collect2name" && \
21887 strings "$collect2name" | grep resolve_lib_name >/dev/null
21888 then
21889 # We have reworked collect2
21890 hardcode_direct_F77=yes
21891 else
21892 # We have old collect2
21893 hardcode_direct_F77=unsupported
21894 # It fails to find uninstalled libraries when the uninstalled
21895 # path is not listed in the libpath. Setting hardcode_minus_L
21896 # to unsupported forces relinking
21897 hardcode_minus_L_F77=yes
21898 hardcode_libdir_flag_spec_F77='-L$libdir'
21899 hardcode_libdir_separator_F77=
21900 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021901 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021902 esac
21903 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021904 if test "$aix_use_runtimelinking" = yes; then
21905 shared_flag="$shared_flag "'${wl}-G'
21906 fi
John Criswell47fdd832003-07-14 16:52:07 +000021907 else
21908 # not using gcc
21909 if test "$host_cpu" = ia64; then
21910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21911 # chokes on -Wl,-G. The following line is correct:
21912 shared_flag='-G'
21913 else
Reid Spencera773bd52006-08-04 18:18:08 +000021914 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021915 shared_flag='${wl}-G'
21916 else
21917 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021918 fi
John Criswell47fdd832003-07-14 16:52:07 +000021919 fi
21920 fi
21921
21922 # It seems that -bexpall does not export symbols beginning with
21923 # underscore (_), so it is better to generate a list of symbols to export.
21924 always_export_symbols_F77=yes
21925 if test "$aix_use_runtimelinking" = yes; then
21926 # Warning - without using the other runtime loading flags (-brtl),
21927 # -berok will link without error, but may produce a broken library.
21928 allow_undefined_flag_F77='-berok'
21929 # Determine the default libpath from the value encoded in an empty executable.
21930 cat >conftest.$ac_ext <<_ACEOF
21931 program main
21932
21933 end
21934_ACEOF
21935rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021936if { (ac_try="$ac_link"
21937case "(($ac_try" in
21938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939 *) ac_try_echo=$ac_try;;
21940esac
21941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21942 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021943 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021944 grep -v '^ *+' conftest.er1 >conftest.err
21945 rm -f conftest.er1
21946 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021948 (exit $ac_status); } &&
21949 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21950 { (case "(($ac_try" in
21951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952 *) ac_try_echo=$ac_try;;
21953esac
21954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955 (eval "$ac_try") 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; } &&
21959 { ac_try='test -s conftest$ac_exeext'
21960 { (case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21963esac
21964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_try") 2>&5
21966 ac_status=$?
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000021969
21970aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21971}'`
21972# Check for a 64-bit object if we didn't find anything.
21973if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21974}'`; fi
21975else
21976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021977sed 's/^/| /' conftest.$ac_ext >&5
21978
Reid Spencera773bd52006-08-04 18:18:08 +000021979
John Criswell47fdd832003-07-14 16:52:07 +000021980fi
Reid Spencera773bd52006-08-04 18:18:08 +000021981
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021982rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021983 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021984if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21985
21986 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021987 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
John Criswell47fdd832003-07-14 16:52:07 +000021988 else
21989 if test "$host_cpu" = ia64; then
21990 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21991 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021992 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
John Criswell47fdd832003-07-14 16:52:07 +000021993 else
21994 # Determine the default libpath from the value encoded in an empty executable.
21995 cat >conftest.$ac_ext <<_ACEOF
21996 program main
21997
21998 end
21999_ACEOF
22000rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022001if { (ac_try="$ac_link"
22002case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22005esac
22006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022008 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022009 grep -v '^ *+' conftest.er1 >conftest.err
22010 rm -f conftest.er1
22011 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022013 (exit $ac_status); } &&
22014 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22015 { (case "(($ac_try" in
22016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017 *) ac_try_echo=$ac_try;;
22018esac
22019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020 (eval "$ac_try") 2>&5
22021 ac_status=$?
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; } &&
22024 { ac_try='test -s conftest$ac_exeext'
22025 { (case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22028esac
22029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_try") 2>&5
22031 ac_status=$?
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022034
22035aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22036}'`
22037# Check for a 64-bit object if we didn't find anything.
22038if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22039}'`; fi
22040else
22041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022042sed 's/^/| /' conftest.$ac_ext >&5
22043
Reid Spencera773bd52006-08-04 18:18:08 +000022044
John Criswell47fdd832003-07-14 16:52:07 +000022045fi
Reid Spencera773bd52006-08-04 18:18:08 +000022046
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022047rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022048 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022049if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22050
22051 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22052 # Warning - without using the other run time loading flags,
22053 # -berok will link without error, but may produce a broken library.
22054 no_undefined_flag_F77=' ${wl}-bernotok'
22055 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022056 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022057 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022058 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022059 # This is similar to how AIX traditionally builds its shared libraries.
22060 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000022061 fi
22062 fi
22063 ;;
22064
22065 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022066 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000022067 hardcode_libdir_flag_spec_F77='-L$libdir'
22068 hardcode_minus_L_F77=yes
22069 # see comment about different semantics on the GNU ld section
22070 ld_shlibs_F77=no
22071 ;;
22072
Reid Spencer2706f8c2004-09-19 23:53:36 +000022073 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022074 export_dynamic_flag_spec_F77=-rdynamic
22075 ;;
22076
22077 cygwin* | mingw* | pw32*)
22078 # When not using gcc, we currently assume that we are using
22079 # Microsoft Visual C++.
22080 # hardcode_libdir_flag_spec is actually meaningless, as there is
22081 # no search path for DLLs.
22082 hardcode_libdir_flag_spec_F77=' '
22083 allow_undefined_flag_F77=unsupported
22084 # Tell ltmain to make .lib files, not .a files.
22085 libext=lib
22086 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022087 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022088 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022089 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000022090 # The linker will automatically build a .lib file if we build a DLL.
22091 old_archive_From_new_cmds_F77='true'
22092 # FIXME: Should let the user specify the lib program.
22093 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022094 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022095 enable_shared_with_static_runtimes_F77=yes
22096 ;;
22097
22098 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022099 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022100 rhapsody* | darwin1.[012])
22101 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22102 ;;
22103 *) # Darwin 1.3 on
22104 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22105 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22106 else
22107 case ${MACOSX_DEPLOYMENT_TARGET} in
22108 10.[012])
22109 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22110 ;;
22111 10.*)
22112 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22113 ;;
22114 esac
22115 fi
22116 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022117 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022118 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022119 hardcode_direct_F77=no
22120 hardcode_automatic_F77=yes
22121 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022122 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022123 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022124 if test "$GCC" = yes ; then
22125 output_verbose_link_cmd='echo'
22126 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22127 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000022129 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22130 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022131 else
Reid Spencera773bd52006-08-04 18:18:08 +000022132 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022133 xlc*)
22134 output_verbose_link_cmd='echo'
22135 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22136 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000022138 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22139 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022140 ;;
22141 *)
22142 ld_shlibs_F77=no
22143 ;;
22144 esac
John Criswell47fdd832003-07-14 16:52:07 +000022145 fi
22146 ;;
22147
22148 dgux*)
22149 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22150 hardcode_libdir_flag_spec_F77='-L$libdir'
22151 hardcode_shlibpath_var_F77=no
22152 ;;
22153
22154 freebsd1*)
22155 ld_shlibs_F77=no
22156 ;;
22157
22158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22159 # support. Future versions do this automatically, but an explicit c++rt0.o
22160 # does not break anything, and helps significantly (at the cost of a little
22161 # extra space).
22162 freebsd2.2*)
22163 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22164 hardcode_libdir_flag_spec_F77='-R$libdir'
22165 hardcode_direct_F77=yes
22166 hardcode_shlibpath_var_F77=no
22167 ;;
22168
22169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22170 freebsd2*)
22171 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22172 hardcode_direct_F77=yes
22173 hardcode_minus_L_F77=yes
22174 hardcode_shlibpath_var_F77=no
22175 ;;
22176
22177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022178 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022179 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22180 hardcode_libdir_flag_spec_F77='-R$libdir'
22181 hardcode_direct_F77=yes
22182 hardcode_shlibpath_var_F77=no
22183 ;;
22184
22185 hpux9*)
22186 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022187 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000022188 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022189 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000022190 fi
22191 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22192 hardcode_libdir_separator_F77=:
22193 hardcode_direct_F77=yes
22194
22195 # hardcode_minus_L: Not really in the search PATH,
22196 # but as the default location of the library.
22197 hardcode_minus_L_F77=yes
22198 export_dynamic_flag_spec_F77='${wl}-E'
22199 ;;
22200
Reid Spencera773bd52006-08-04 18:18:08 +000022201 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022203 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22204 else
22205 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22206 fi
22207 if test "$with_gnu_ld" = no; then
22208 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22209 hardcode_libdir_separator_F77=:
22210
22211 hardcode_direct_F77=yes
22212 export_dynamic_flag_spec_F77='${wl}-E'
22213
22214 # hardcode_minus_L: Not really in the search PATH,
22215 # but as the default location of the library.
22216 hardcode_minus_L_F77=yes
22217 fi
22218 ;;
22219
22220 hpux11*)
22221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22222 case $host_cpu in
22223 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022224 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22225 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022226 ia64*)
22227 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22228 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022229 *)
22230 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22231 ;;
22232 esac
22233 else
Reid Spencera773bd52006-08-04 18:18:08 +000022234 case $host_cpu in
22235 hppa*64*)
22236 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22237 ;;
22238 ia64*)
22239 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022240 ;;
22241 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022242 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022243 ;;
22244 esac
22245 fi
22246 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022247 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22248 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022249
Reid Spencera773bd52006-08-04 18:18:08 +000022250 case $host_cpu in
22251 hppa*64*|ia64*)
22252 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22253 hardcode_direct_F77=no
22254 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022255 ;;
22256 *)
John Criswell47fdd832003-07-14 16:52:07 +000022257 hardcode_direct_F77=yes
22258 export_dynamic_flag_spec_F77='${wl}-E'
22259
22260 # hardcode_minus_L: Not really in the search PATH,
22261 # but as the default location of the library.
22262 hardcode_minus_L_F77=yes
22263 ;;
22264 esac
22265 fi
22266 ;;
22267
22268 irix5* | irix6* | nonstopux*)
22269 if test "$GCC" = yes; then
22270 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22271 else
22272 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22273 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22274 fi
22275 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22276 hardcode_libdir_separator_F77=:
22277 link_all_deplibs_F77=yes
22278 ;;
22279
22280 netbsd*)
22281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22282 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22283 else
22284 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22285 fi
22286 hardcode_libdir_flag_spec_F77='-R$libdir'
22287 hardcode_direct_F77=yes
22288 hardcode_shlibpath_var_F77=no
22289 ;;
22290
22291 newsos6)
22292 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22293 hardcode_direct_F77=yes
22294 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22295 hardcode_libdir_separator_F77=:
22296 hardcode_shlibpath_var_F77=no
22297 ;;
22298
22299 openbsd*)
22300 hardcode_direct_F77=yes
22301 hardcode_shlibpath_var_F77=no
22302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22303 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022304 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000022305 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22306 export_dynamic_flag_spec_F77='${wl}-E'
22307 else
22308 case $host_os in
22309 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22310 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22311 hardcode_libdir_flag_spec_F77='-R$libdir'
22312 ;;
22313 *)
22314 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22315 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22316 ;;
22317 esac
22318 fi
22319 ;;
22320
22321 os2*)
22322 hardcode_libdir_flag_spec_F77='-L$libdir'
22323 hardcode_minus_L_F77=yes
22324 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022325 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
John Criswell47fdd832003-07-14 16:52:07 +000022326 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22327 ;;
22328
22329 osf3*)
22330 if test "$GCC" = yes; then
22331 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22332 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22333 else
22334 allow_undefined_flag_F77=' -expect_unresolved \*'
22335 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22336 fi
22337 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22338 hardcode_libdir_separator_F77=:
22339 ;;
22340
22341 osf4* | osf5*) # as osf3* with the addition of -msym flag
22342 if test "$GCC" = yes; then
22343 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22344 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22345 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22346 else
22347 allow_undefined_flag_F77=' -expect_unresolved \*'
22348 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000022349 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000022350 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
Reid Spencer177dbe22004-10-13 01:01:03 +000022351
John Criswell47fdd832003-07-14 16:52:07 +000022352 # Both c and cxx compiler support -rpath directly
22353 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22354 fi
22355 hardcode_libdir_separator_F77=:
22356 ;;
22357
John Criswell47fdd832003-07-14 16:52:07 +000022358 solaris*)
22359 no_undefined_flag_F77=' -z text'
22360 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022361 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022362 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022363 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22364 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022365 else
Reid Spencera773bd52006-08-04 18:18:08 +000022366 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022367 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022368 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22369 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022370 fi
22371 hardcode_libdir_flag_spec_F77='-R$libdir'
22372 hardcode_shlibpath_var_F77=no
22373 case $host_os in
22374 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022375 *)
22376 # The compiler driver will combine linker options so we
22377 # cannot just pass the convience library names through
22378 # without $wl, iff we do not link with $LD.
22379 # Luckily, gcc supports the same syntax we need for Sun Studio.
22380 # Supported since Solaris 2.6 (maybe 2.5.1?)
22381 case $wlarc in
22382 '')
22383 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22384 *)
22385 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22386 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022387 esac
22388 link_all_deplibs_F77=yes
22389 ;;
22390
22391 sunos4*)
22392 if test "x$host_vendor" = xsequent; then
22393 # Use $CC to link under sequent, because it throws in some extra .o
22394 # files that make .init and .fini sections work.
22395 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22396 else
22397 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22398 fi
22399 hardcode_libdir_flag_spec_F77='-L$libdir'
22400 hardcode_direct_F77=yes
22401 hardcode_minus_L_F77=yes
22402 hardcode_shlibpath_var_F77=no
22403 ;;
22404
22405 sysv4)
22406 case $host_vendor in
22407 sni)
22408 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22409 hardcode_direct_F77=yes # is this really true???
22410 ;;
22411 siemens)
22412 ## LD is ld it makes a PLAMLIB
22413 ## CC just makes a GrossModule.
22414 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22415 reload_cmds_F77='$CC -r -o $output$reload_objs'
22416 hardcode_direct_F77=no
22417 ;;
22418 motorola)
22419 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22420 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22421 ;;
22422 esac
22423 runpath_var='LD_RUN_PATH'
22424 hardcode_shlibpath_var_F77=no
22425 ;;
22426
22427 sysv4.3*)
22428 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22429 hardcode_shlibpath_var_F77=no
22430 export_dynamic_flag_spec_F77='-Bexport'
22431 ;;
22432
22433 sysv4*MP*)
22434 if test -d /usr/nec; then
22435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22436 hardcode_shlibpath_var_F77=no
22437 runpath_var=LD_RUN_PATH
22438 hardcode_runpath_var=yes
22439 ld_shlibs_F77=yes
22440 fi
22441 ;;
22442
Reid Spencera773bd52006-08-04 18:18:08 +000022443 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22444 no_undefined_flag_F77='${wl}-z,text'
22445 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022446 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022447 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022448
John Criswell47fdd832003-07-14 16:52:07 +000022449 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022450 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22451 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022452 else
Reid Spencera773bd52006-08-04 18:18:08 +000022453 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22454 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022455 fi
John Criswell47fdd832003-07-14 16:52:07 +000022456 ;;
22457
Reid Spencera773bd52006-08-04 18:18:08 +000022458 sysv5* | sco3.2v5* | sco5v6*)
22459 # Note: We can NOT use -z defs as we might desire, because we do not
22460 # link with -lc, and that would cause any symbols used from libc to
22461 # always be unresolved, which means just about no library would
22462 # ever link correctly. If we're not using GNU ld we use -z text
22463 # though, which does catch some bad symbols but isn't as heavy-handed
22464 # as -z defs.
22465 no_undefined_flag_F77='${wl}-z,text'
22466 allow_undefined_flag_F77='${wl}-z,nodefs'
22467 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022468 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022469 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22470 hardcode_libdir_separator_F77=':'
22471 link_all_deplibs_F77=yes
22472 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022473 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022474
22475 if test "$GCC" = yes; then
22476 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22477 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22478 else
22479 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22480 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22481 fi
John Criswell47fdd832003-07-14 16:52:07 +000022482 ;;
22483
22484 uts4*)
22485 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22486 hardcode_libdir_flag_spec_F77='-L$libdir'
22487 hardcode_shlibpath_var_F77=no
22488 ;;
22489
22490 *)
22491 ld_shlibs_F77=no
22492 ;;
22493 esac
22494 fi
22495
Reid Spencera773bd52006-08-04 18:18:08 +000022496{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22497echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022498test "$ld_shlibs_F77" = no && can_build_shared=no
22499
John Criswell47fdd832003-07-14 16:52:07 +000022500#
22501# Do we need to explicitly link libc?
22502#
22503case "x$archive_cmds_need_lc_F77" in
22504x|xyes)
22505 # Assume -lc should be added
22506 archive_cmds_need_lc_F77=yes
22507
22508 if test "$enable_shared" = yes && test "$GCC" = yes; then
22509 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022510 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022511 # FIXME: we may have to deal with multi-command sequences.
22512 ;;
22513 '$CC '*)
22514 # Test whether the compiler implicitly links with -lc since on some
22515 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22516 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022517 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22518echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022519 $rm conftest*
22520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22521
22522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22523 (eval $ac_compile) 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } 2>conftest.err; then
22527 soname=conftest
22528 lib=conftest
22529 libobjs=conftest.$ac_objext
22530 deplibs=
22531 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022532 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022533 compiler_flags=-v
22534 linker_flags=-v
22535 verstring=
22536 output_objdir=.
22537 libname=conftest
22538 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22539 allow_undefined_flag_F77=
22540 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22541 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }
22545 then
22546 archive_cmds_need_lc_F77=no
22547 else
22548 archive_cmds_need_lc_F77=yes
22549 fi
22550 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22551 else
22552 cat conftest.err 1>&5
22553 fi
22554 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022555 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22556echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022557 ;;
22558 esac
22559 fi
22560 ;;
22561esac
22562
Reid Spencera773bd52006-08-04 18:18:08 +000022563{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22564echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022565library_names_spec=
22566libname_spec='lib$name'
22567soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022568shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022569postinstall_cmds=
22570postuninstall_cmds=
22571finish_cmds=
22572finish_eval=
22573shlibpath_var=
22574shlibpath_overrides_runpath=unknown
22575version_type=none
22576dynamic_linker="$host_os ld.so"
22577sys_lib_dlsearch_path_spec="/lib /usr/lib"
22578if test "$GCC" = yes; then
22579 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22580 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22581 # if the path contains ";" then we assume it to be the separator
22582 # otherwise default to the standard path separator (i.e. ":") - it is
22583 # assumed that no part of a normal pathname contains ";" but that should
22584 # okay in the real world where ";" in dirpaths is itself problematic.
22585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22586 else
22587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22588 fi
22589else
22590 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22591fi
22592need_lib_prefix=unknown
22593hardcode_into_libs=no
22594
22595# when you set need_version to no, make sure it does not cause -set_version
22596# flags to be left without arguments
22597need_version=unknown
22598
22599case $host_os in
22600aix3*)
22601 version_type=linux
22602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22603 shlibpath_var=LIBPATH
22604
22605 # AIX 3 has no versioning support, so we append a major version to the name.
22606 soname_spec='${libname}${release}${shared_ext}$major'
22607 ;;
22608
22609aix4* | aix5*)
22610 version_type=linux
22611 need_lib_prefix=no
22612 need_version=no
22613 hardcode_into_libs=yes
22614 if test "$host_cpu" = ia64; then
22615 # AIX 5 supports IA64
22616 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22617 shlibpath_var=LD_LIBRARY_PATH
22618 else
22619 # With GCC up to 2.95.x, collect2 would create an import file
22620 # for dependence libraries. The import file would start with
22621 # the line `#! .'. This would cause the generated library to
22622 # depend on `.', always an invalid library. This was fixed in
22623 # development snapshots of GCC prior to 3.0.
22624 case $host_os in
22625 aix4 | aix4.[01] | aix4.[01].*)
22626 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22627 echo ' yes '
22628 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22629 :
22630 else
22631 can_build_shared=no
22632 fi
22633 ;;
22634 esac
22635 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22636 # soname into executable. Probably we can add versioning support to
22637 # collect2, so additional links can be useful in future.
22638 if test "$aix_use_runtimelinking" = yes; then
22639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22640 # instead of lib<name>.a to let people know that these are not
22641 # typical AIX shared libraries.
22642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22643 else
22644 # We preserve .a as extension for shared libraries through AIX4.2
22645 # and later when we are not doing run time linking.
22646 library_names_spec='${libname}${release}.a $libname.a'
22647 soname_spec='${libname}${release}${shared_ext}$major'
22648 fi
22649 shlibpath_var=LIBPATH
22650 fi
22651 ;;
22652
22653amigaos*)
22654 library_names_spec='$libname.ixlibrary $libname.a'
22655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022656 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'
John Criswell47fdd832003-07-14 16:52:07 +000022657 ;;
22658
22659beos*)
22660 library_names_spec='${libname}${shared_ext}'
22661 dynamic_linker="$host_os ld.so"
22662 shlibpath_var=LIBRARY_PATH
22663 ;;
22664
Reid Spencer2706f8c2004-09-19 23:53:36 +000022665bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022666 version_type=linux
22667 need_version=no
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22669 soname_spec='${libname}${release}${shared_ext}$major'
22670 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22671 shlibpath_var=LD_LIBRARY_PATH
22672 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22673 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22674 # the default ld.so.conf also contains /usr/contrib/lib and
22675 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22676 # libtool to hard-code these into programs
22677 ;;
22678
22679cygwin* | mingw* | pw32*)
22680 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022681 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022682 need_version=no
22683 need_lib_prefix=no
22684
22685 case $GCC,$host_os in
22686 yes,cygwin* | yes,mingw* | yes,pw32*)
22687 library_names_spec='$libname.dll.a'
22688 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022689 postinstall_cmds='base_file=`basename \${file}`~
22690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22691 dldir=$destdir/`dirname \$dlpath`~
22692 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022693 $install_prog $dir/$dlname \$dldir/$dlname~
22694 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22696 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022697 $rm \$dlpath'
22698 shlibpath_overrides_runpath=yes
22699
22700 case $host_os in
22701 cygwin*)
22702 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22703 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022704 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022705 ;;
22706 mingw*)
22707 # MinGW DLLs use traditional 'lib' prefix
22708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22710 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22711 # It is most probably a Windows format PATH printed by
22712 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22713 # path with ; separators, and with drive letters. We can handle the
22714 # drive letters (cygwin fileutils understands them), so leave them,
22715 # especially as we might pass files found there to a mingw objdump,
22716 # which wouldn't understand a cygwinified path. Ahh.
22717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22718 else
22719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22720 fi
22721 ;;
22722 pw32*)
22723 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022725 ;;
22726 esac
22727 ;;
22728
22729 *)
22730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22731 ;;
22732 esac
22733 dynamic_linker='Win32 ld.exe'
22734 # FIXME: first we should search . and the directory the executable is in
22735 shlibpath_var=PATH
22736 ;;
22737
22738darwin* | rhapsody*)
22739 dynamic_linker="$host_os dyld"
22740 version_type=darwin
22741 need_lib_prefix=no
22742 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022743 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022744 soname_spec='${libname}${release}${major}$shared_ext'
22745 shlibpath_overrides_runpath=yes
22746 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022747 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022748 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022749 if test "$GCC" = yes; then
22750 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"`
22751 else
22752 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022753 fi
22754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22755 ;;
22756
22757dgux*)
22758 version_type=linux
22759 need_lib_prefix=no
22760 need_version=no
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 shlibpath_var=LD_LIBRARY_PATH
22764 ;;
22765
22766freebsd1*)
22767 dynamic_linker=no
22768 ;;
22769
Reid Spencer2706f8c2004-09-19 23:53:36 +000022770kfreebsd*-gnu)
22771 version_type=linux
22772 need_lib_prefix=no
22773 need_version=no
22774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22775 soname_spec='${libname}${release}${shared_ext}$major'
22776 shlibpath_var=LD_LIBRARY_PATH
22777 shlibpath_overrides_runpath=no
22778 hardcode_into_libs=yes
22779 dynamic_linker='GNU ld.so'
22780 ;;
22781
Reid Spencera773bd52006-08-04 18:18:08 +000022782freebsd* | dragonfly*)
22783 # DragonFly does not have aout. When/if they implement a new
22784 # versioning mechanism, adjust this.
22785 if test -x /usr/bin/objformat; then
22786 objformat=`/usr/bin/objformat`
22787 else
22788 case $host_os in
22789 freebsd[123]*) objformat=aout ;;
22790 *) objformat=elf ;;
22791 esac
22792 fi
John Criswell47fdd832003-07-14 16:52:07 +000022793 version_type=freebsd-$objformat
22794 case $version_type in
22795 freebsd-elf*)
22796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22797 need_version=no
22798 need_lib_prefix=no
22799 ;;
22800 freebsd-*)
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22802 need_version=yes
22803 ;;
22804 esac
22805 shlibpath_var=LD_LIBRARY_PATH
22806 case $host_os in
22807 freebsd2*)
22808 shlibpath_overrides_runpath=yes
22809 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022810 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022811 shlibpath_overrides_runpath=yes
22812 hardcode_into_libs=yes
22813 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022814 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22815 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022816 shlibpath_overrides_runpath=no
22817 hardcode_into_libs=yes
22818 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022819 freebsd*) # from 4.6 on
22820 shlibpath_overrides_runpath=yes
22821 hardcode_into_libs=yes
22822 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022823 esac
22824 ;;
22825
22826gnu*)
22827 version_type=linux
22828 need_lib_prefix=no
22829 need_version=no
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22831 soname_spec='${libname}${release}${shared_ext}$major'
22832 shlibpath_var=LD_LIBRARY_PATH
22833 hardcode_into_libs=yes
22834 ;;
22835
22836hpux9* | hpux10* | hpux11*)
22837 # Give a soname corresponding to the major version so that dld.sl refuses to
22838 # link against other versions.
22839 version_type=sunos
22840 need_lib_prefix=no
22841 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022842 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022843 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022844 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022845 hardcode_into_libs=yes
22846 dynamic_linker="$host_os dld.so"
22847 shlibpath_var=LD_LIBRARY_PATH
22848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22850 soname_spec='${libname}${release}${shared_ext}$major'
22851 if test "X$HPUX_IA64_MODE" = X32; then
22852 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22853 else
22854 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22855 fi
22856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22857 ;;
22858 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022859 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022860 hardcode_into_libs=yes
22861 dynamic_linker="$host_os dld.sl"
22862 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22868 ;;
22869 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022870 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022871 dynamic_linker="$host_os dld.sl"
22872 shlibpath_var=SHLIB_PATH
22873 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875 soname_spec='${libname}${release}${shared_ext}$major'
22876 ;;
22877 esac
22878 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22879 postinstall_cmds='chmod 555 $lib'
22880 ;;
22881
Reid Spencera773bd52006-08-04 18:18:08 +000022882interix3*)
22883 version_type=linux
22884 need_lib_prefix=no
22885 need_version=no
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22887 soname_spec='${libname}${release}${shared_ext}$major'
22888 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22889 shlibpath_var=LD_LIBRARY_PATH
22890 shlibpath_overrides_runpath=no
22891 hardcode_into_libs=yes
22892 ;;
22893
John Criswell47fdd832003-07-14 16:52:07 +000022894irix5* | irix6* | nonstopux*)
22895 case $host_os in
22896 nonstopux*) version_type=nonstopux ;;
22897 *)
22898 if test "$lt_cv_prog_gnu_ld" = yes; then
22899 version_type=linux
22900 else
22901 version_type=irix
22902 fi ;;
22903 esac
22904 need_lib_prefix=no
22905 need_version=no
22906 soname_spec='${libname}${release}${shared_ext}$major'
22907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22908 case $host_os in
22909 irix5* | nonstopux*)
22910 libsuff= shlibsuff=
22911 ;;
22912 *)
22913 case $LD in # libtool.m4 will add one of these switches to LD
22914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22915 libsuff= shlibsuff= libmagic=32-bit;;
22916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22917 libsuff=32 shlibsuff=N32 libmagic=N32;;
22918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22920 *) libsuff= shlibsuff= libmagic=never-match;;
22921 esac
22922 ;;
22923 esac
22924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22925 shlibpath_overrides_runpath=no
22926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22928 hardcode_into_libs=yes
22929 ;;
22930
22931# No shared lib support for Linux oldld, aout, or coff.
22932linux*oldld* | linux*aout* | linux*coff*)
22933 dynamic_linker=no
22934 ;;
22935
22936# This must be Linux ELF.
22937linux*)
22938 version_type=linux
22939 need_lib_prefix=no
22940 need_version=no
22941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22942 soname_spec='${libname}${release}${shared_ext}$major'
22943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22944 shlibpath_var=LD_LIBRARY_PATH
22945 shlibpath_overrides_runpath=no
22946 # This implies no fast_install, which is unacceptable.
22947 # Some rework will be needed to allow for fast_install
22948 # before this can be enabled.
22949 hardcode_into_libs=yes
22950
Reid Spencer2706f8c2004-09-19 23:53:36 +000022951 # Append ld.so.conf contents to the search path
22952 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022953 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 Spencer2706f8c2004-09-19 23:53:36 +000022954 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22955 fi
22956
John Criswell47fdd832003-07-14 16:52:07 +000022957 # We used to test for /lib/ld.so.1 and disable shared libraries on
22958 # powerpc, because MkLinux only supported shared libraries with the
22959 # GNU dynamic linker. Since this was broken with cross compilers,
22960 # most powerpc-linux boxes support dynamic linking these days and
22961 # people can always --disable-shared, the test was removed, and we
22962 # assume the GNU/Linux dynamic linker is in use.
22963 dynamic_linker='GNU/Linux ld.so'
22964 ;;
22965
Reid Spencer2706f8c2004-09-19 23:53:36 +000022966knetbsd*-gnu)
22967 version_type=linux
22968 need_lib_prefix=no
22969 need_version=no
22970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22971 soname_spec='${libname}${release}${shared_ext}$major'
22972 shlibpath_var=LD_LIBRARY_PATH
22973 shlibpath_overrides_runpath=no
22974 hardcode_into_libs=yes
22975 dynamic_linker='GNU ld.so'
22976 ;;
22977
John Criswell47fdd832003-07-14 16:52:07 +000022978netbsd*)
22979 version_type=sunos
22980 need_lib_prefix=no
22981 need_version=no
22982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22985 dynamic_linker='NetBSD (a.out) ld.so'
22986 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022988 soname_spec='${libname}${release}${shared_ext}$major'
22989 dynamic_linker='NetBSD ld.elf_so'
22990 fi
22991 shlibpath_var=LD_LIBRARY_PATH
22992 shlibpath_overrides_runpath=yes
22993 hardcode_into_libs=yes
22994 ;;
22995
22996newsos6)
22997 version_type=linux
22998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22999 shlibpath_var=LD_LIBRARY_PATH
23000 shlibpath_overrides_runpath=yes
23001 ;;
23002
Reid Spencer2706f8c2004-09-19 23:53:36 +000023003nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023004 version_type=linux
23005 need_lib_prefix=no
23006 need_version=no
23007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23008 soname_spec='${libname}${release}${shared_ext}$major'
23009 shlibpath_var=LD_LIBRARY_PATH
23010 shlibpath_overrides_runpath=yes
23011 ;;
23012
23013openbsd*)
23014 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023015 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023016 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023017 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23018 case $host_os in
23019 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23020 *) need_version=no ;;
23021 esac
John Criswell47fdd832003-07-14 16:52:07 +000023022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23024 shlibpath_var=LD_LIBRARY_PATH
23025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23026 case $host_os in
23027 openbsd2.[89] | openbsd2.[89].*)
23028 shlibpath_overrides_runpath=no
23029 ;;
23030 *)
23031 shlibpath_overrides_runpath=yes
23032 ;;
23033 esac
23034 else
23035 shlibpath_overrides_runpath=yes
23036 fi
23037 ;;
23038
23039os2*)
23040 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023041 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023042 need_lib_prefix=no
23043 library_names_spec='$libname${shared_ext} $libname.a'
23044 dynamic_linker='OS/2 ld.exe'
23045 shlibpath_var=LIBPATH
23046 ;;
23047
23048osf3* | osf4* | osf5*)
23049 version_type=osf
23050 need_lib_prefix=no
23051 need_version=no
23052 soname_spec='${libname}${release}${shared_ext}$major'
23053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23054 shlibpath_var=LD_LIBRARY_PATH
23055 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23056 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23057 ;;
23058
John Criswell47fdd832003-07-14 16:52:07 +000023059solaris*)
23060 version_type=linux
23061 need_lib_prefix=no
23062 need_version=no
23063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 shlibpath_var=LD_LIBRARY_PATH
23066 shlibpath_overrides_runpath=yes
23067 hardcode_into_libs=yes
23068 # ldd complains unless libraries are executable
23069 postinstall_cmds='chmod +x $lib'
23070 ;;
23071
23072sunos4*)
23073 version_type=sunos
23074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23076 shlibpath_var=LD_LIBRARY_PATH
23077 shlibpath_overrides_runpath=yes
23078 if test "$with_gnu_ld" = yes; then
23079 need_lib_prefix=no
23080 fi
23081 need_version=yes
23082 ;;
23083
Reid Spencera773bd52006-08-04 18:18:08 +000023084sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023085 version_type=linux
23086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23087 soname_spec='${libname}${release}${shared_ext}$major'
23088 shlibpath_var=LD_LIBRARY_PATH
23089 case $host_vendor in
23090 sni)
23091 shlibpath_overrides_runpath=no
23092 need_lib_prefix=no
23093 export_dynamic_flag_spec='${wl}-Blargedynsym'
23094 runpath_var=LD_RUN_PATH
23095 ;;
23096 siemens)
23097 need_lib_prefix=no
23098 ;;
23099 motorola)
23100 need_lib_prefix=no
23101 need_version=no
23102 shlibpath_overrides_runpath=no
23103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23104 ;;
23105 esac
23106 ;;
23107
23108sysv4*MP*)
23109 if test -d /usr/nec ;then
23110 version_type=linux
23111 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23112 soname_spec='$libname${shared_ext}.$major'
23113 shlibpath_var=LD_LIBRARY_PATH
23114 fi
23115 ;;
23116
Reid Spencera773bd52006-08-04 18:18:08 +000023117sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23118 version_type=freebsd-elf
23119 need_lib_prefix=no
23120 need_version=no
23121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23122 soname_spec='${libname}${release}${shared_ext}$major'
23123 shlibpath_var=LD_LIBRARY_PATH
23124 hardcode_into_libs=yes
23125 if test "$with_gnu_ld" = yes; then
23126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23127 shlibpath_overrides_runpath=no
23128 else
23129 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23130 shlibpath_overrides_runpath=yes
23131 case $host_os in
23132 sco3.2v5*)
23133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23134 ;;
23135 esac
23136 fi
23137 sys_lib_dlsearch_path_spec='/usr/lib'
23138 ;;
23139
John Criswell47fdd832003-07-14 16:52:07 +000023140uts4*)
23141 version_type=linux
23142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23143 soname_spec='${libname}${release}${shared_ext}$major'
23144 shlibpath_var=LD_LIBRARY_PATH
23145 ;;
23146
23147*)
23148 dynamic_linker=no
23149 ;;
23150esac
Reid Spencera773bd52006-08-04 18:18:08 +000023151{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23152echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023153test "$dynamic_linker" = no && can_build_shared=no
23154
Reid Spencera773bd52006-08-04 18:18:08 +000023155variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23156if test "$GCC" = yes; then
23157 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23158fi
23159
23160{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23161echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023162hardcode_action_F77=
23163if test -n "$hardcode_libdir_flag_spec_F77" || \
23164 test -n "$runpath_var_F77" || \
23165 test "X$hardcode_automatic_F77" = "Xyes" ; then
23166
23167 # We can hardcode non-existant directories.
23168 if test "$hardcode_direct_F77" != no &&
23169 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23170 # have to relink, otherwise we might link with an installed library
23171 # when we should be linking with a yet-to-be-installed one
23172 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23173 test "$hardcode_minus_L_F77" != no; then
23174 # Linking always hardcodes the temporary library directory.
23175 hardcode_action_F77=relink
23176 else
23177 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23178 hardcode_action_F77=immediate
23179 fi
23180else
23181 # We cannot hardcode anything, or else we can only hardcode existing
23182 # directories.
23183 hardcode_action_F77=unsupported
23184fi
Reid Spencera773bd52006-08-04 18:18:08 +000023185{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23186echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023187
23188if test "$hardcode_action_F77" = relink; then
23189 # Fast installation is not supported
23190 enable_fast_install=no
23191elif test "$shlibpath_overrides_runpath" = yes ||
23192 test "$enable_shared" = no; then
23193 # Fast installation is not necessary
23194 enable_fast_install=needless
23195fi
23196
John Criswell47fdd832003-07-14 16:52:07 +000023197
23198# The else clause should only fire when bootstrapping the
23199# libtool distribution, otherwise you forgot to ship ltmain.sh
23200# with your package, and you will get complaints that there are
23201# no rules to generate ltmain.sh.
23202if test -f "$ltmain"; then
23203 # See if we are running on zsh, and set the options which allow our commands through
23204 # without removal of \ escapes.
23205 if test -n "${ZSH_VERSION+set}" ; then
23206 setopt NO_GLOB_SUBST
23207 fi
23208 # Now quote all the things that may contain metacharacters while being
23209 # careful not to overquote the AC_SUBSTed values. We take copies of the
23210 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023211 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023212 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023213 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23214 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23215 deplibs_check_method reload_flag reload_cmds need_locks \
23216 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23217 lt_cv_sys_global_symbol_to_c_name_address \
23218 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23219 old_postinstall_cmds old_postuninstall_cmds \
23220 compiler_F77 \
23221 CC_F77 \
23222 LD_F77 \
23223 lt_prog_compiler_wl_F77 \
23224 lt_prog_compiler_pic_F77 \
23225 lt_prog_compiler_static_F77 \
23226 lt_prog_compiler_no_builtin_flag_F77 \
23227 export_dynamic_flag_spec_F77 \
23228 thread_safe_flag_spec_F77 \
23229 whole_archive_flag_spec_F77 \
23230 enable_shared_with_static_runtimes_F77 \
23231 old_archive_cmds_F77 \
23232 old_archive_from_new_cmds_F77 \
23233 predep_objects_F77 \
23234 postdep_objects_F77 \
23235 predeps_F77 \
23236 postdeps_F77 \
23237 compiler_lib_search_path_F77 \
23238 archive_cmds_F77 \
23239 archive_expsym_cmds_F77 \
23240 postinstall_cmds_F77 \
23241 postuninstall_cmds_F77 \
23242 old_archive_from_expsyms_cmds_F77 \
23243 allow_undefined_flag_F77 \
23244 no_undefined_flag_F77 \
23245 export_symbols_cmds_F77 \
23246 hardcode_libdir_flag_spec_F77 \
23247 hardcode_libdir_flag_spec_ld_F77 \
23248 hardcode_libdir_separator_F77 \
23249 hardcode_automatic_F77 \
23250 module_cmds_F77 \
23251 module_expsym_cmds_F77 \
23252 lt_cv_prog_compiler_c_o_F77 \
23253 exclude_expsyms_F77 \
23254 include_expsyms_F77; do
23255
23256 case $var in
23257 old_archive_cmds_F77 | \
23258 old_archive_from_new_cmds_F77 | \
23259 archive_cmds_F77 | \
23260 archive_expsym_cmds_F77 | \
23261 module_cmds_F77 | \
23262 module_expsym_cmds_F77 | \
23263 old_archive_from_expsyms_cmds_F77 | \
23264 export_symbols_cmds_F77 | \
23265 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23266 postinstall_cmds | postuninstall_cmds | \
23267 old_postinstall_cmds | old_postuninstall_cmds | \
23268 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23269 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000023271 ;;
23272 *)
23273 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23274 ;;
23275 esac
23276 done
23277
23278 case $lt_echo in
23279 *'\$0 --fallback-echo"')
23280 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23281 ;;
23282 esac
23283
23284cfgfile="$ofile"
23285
23286 cat <<__EOF__ >> "$cfgfile"
23287# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23288
23289# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23290
23291# Shell to use when invoking shell scripts.
23292SHELL=$lt_SHELL
23293
23294# Whether or not to build shared libraries.
23295build_libtool_libs=$enable_shared
23296
23297# Whether or not to build static libraries.
23298build_old_libs=$enable_static
23299
23300# Whether or not to add -lc for building shared libraries.
23301build_libtool_need_lc=$archive_cmds_need_lc_F77
23302
23303# Whether or not to disallow shared libs when runtime libs are static
23304allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23305
23306# Whether or not to optimize for fast installation.
23307fast_install=$enable_fast_install
23308
23309# The host system.
23310host_alias=$host_alias
23311host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023312host_os=$host_os
23313
23314# The build system.
23315build_alias=$build_alias
23316build=$build
23317build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023318
23319# An echo program that does not interpret backslashes.
23320echo=$lt_echo
23321
23322# The archiver.
23323AR=$lt_AR
23324AR_FLAGS=$lt_AR_FLAGS
23325
23326# A C compiler.
23327LTCC=$lt_LTCC
23328
Reid Spencera773bd52006-08-04 18:18:08 +000023329# LTCC compiler flags.
23330LTCFLAGS=$lt_LTCFLAGS
23331
John Criswell47fdd832003-07-14 16:52:07 +000023332# A language-specific compiler.
23333CC=$lt_compiler_F77
23334
23335# Is the compiler the GNU C compiler?
23336with_gcc=$GCC_F77
23337
23338# An ERE matcher.
23339EGREP=$lt_EGREP
23340
23341# The linker used to build libraries.
23342LD=$lt_LD_F77
23343
23344# Whether we need hard or soft links.
23345LN_S=$lt_LN_S
23346
23347# A BSD-compatible nm program.
23348NM=$lt_NM
23349
23350# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023351STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023352
23353# Used to examine libraries when file_magic_cmd begins "file"
23354MAGIC_CMD=$MAGIC_CMD
23355
23356# Used on cygwin: DLL creation program.
23357DLLTOOL="$DLLTOOL"
23358
23359# Used on cygwin: object dumper.
23360OBJDUMP="$OBJDUMP"
23361
23362# Used on cygwin: assembler.
23363AS="$AS"
23364
23365# The name of the directory that contains temporary libtool files.
23366objdir=$objdir
23367
23368# How to create reloadable object files.
23369reload_flag=$lt_reload_flag
23370reload_cmds=$lt_reload_cmds
23371
23372# How to pass a linker flag through the compiler.
23373wl=$lt_lt_prog_compiler_wl_F77
23374
23375# Object file suffix (normally "o").
23376objext="$ac_objext"
23377
23378# Old archive suffix (normally "a").
23379libext="$libext"
23380
23381# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023382shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023383
23384# Executable file suffix (normally "").
23385exeext="$exeext"
23386
23387# Additional compiler flags for building library objects.
23388pic_flag=$lt_lt_prog_compiler_pic_F77
23389pic_mode=$pic_mode
23390
23391# What is the maximum length of a command?
23392max_cmd_len=$lt_cv_sys_max_cmd_len
23393
23394# Does compiler simultaneously support -c and -o options?
23395compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23396
Reid Spencera773bd52006-08-04 18:18:08 +000023397# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023398need_locks=$lt_need_locks
23399
23400# Do we need the lib prefix for modules?
23401need_lib_prefix=$need_lib_prefix
23402
23403# Do we need a version for libraries?
23404need_version=$need_version
23405
23406# Whether dlopen is supported.
23407dlopen_support=$enable_dlopen
23408
23409# Whether dlopen of programs is supported.
23410dlopen_self=$enable_dlopen_self
23411
23412# Whether dlopen of statically linked programs is supported.
23413dlopen_self_static=$enable_dlopen_self_static
23414
23415# Compiler flag to prevent dynamic linking.
23416link_static_flag=$lt_lt_prog_compiler_static_F77
23417
23418# Compiler flag to turn off builtin functions.
23419no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23420
23421# Compiler flag to allow reflexive dlopens.
23422export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23423
23424# Compiler flag to generate shared objects directly from archives.
23425whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23426
23427# Compiler flag to generate thread-safe objects.
23428thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23429
23430# Library versioning type.
23431version_type=$version_type
23432
23433# Format of library name prefix.
23434libname_spec=$lt_libname_spec
23435
23436# List of archive names. First name is the real one, the rest are links.
23437# The last name is the one that the linker finds with -lNAME.
23438library_names_spec=$lt_library_names_spec
23439
23440# The coded name of the library, if different from the real name.
23441soname_spec=$lt_soname_spec
23442
23443# Commands used to build and install an old-style archive.
23444RANLIB=$lt_RANLIB
23445old_archive_cmds=$lt_old_archive_cmds_F77
23446old_postinstall_cmds=$lt_old_postinstall_cmds
23447old_postuninstall_cmds=$lt_old_postuninstall_cmds
23448
23449# Create an old-style archive from a shared archive.
23450old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23451
23452# Create a temporary old-style archive to link instead of a shared archive.
23453old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23454
23455# Commands used to build and install a shared archive.
23456archive_cmds=$lt_archive_cmds_F77
23457archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23458postinstall_cmds=$lt_postinstall_cmds
23459postuninstall_cmds=$lt_postuninstall_cmds
23460
23461# Commands used to build a loadable module (assumed same as above if empty)
23462module_cmds=$lt_module_cmds_F77
23463module_expsym_cmds=$lt_module_expsym_cmds_F77
23464
23465# Commands to strip libraries.
23466old_striplib=$lt_old_striplib
23467striplib=$lt_striplib
23468
23469# Dependencies to place before the objects being linked to create a
23470# shared library.
23471predep_objects=$lt_predep_objects_F77
23472
23473# Dependencies to place after the objects being linked to create a
23474# shared library.
23475postdep_objects=$lt_postdep_objects_F77
23476
23477# Dependencies to place before the objects being linked to create a
23478# shared library.
23479predeps=$lt_predeps_F77
23480
23481# Dependencies to place after the objects being linked to create a
23482# shared library.
23483postdeps=$lt_postdeps_F77
23484
23485# The library search path used internally by the compiler when linking
23486# a shared library.
23487compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23488
23489# Method to check whether dependent libraries are shared objects.
23490deplibs_check_method=$lt_deplibs_check_method
23491
23492# Command to use when deplibs_check_method == file_magic.
23493file_magic_cmd=$lt_file_magic_cmd
23494
23495# Flag that allows shared libraries with undefined symbols to be built.
23496allow_undefined_flag=$lt_allow_undefined_flag_F77
23497
23498# Flag that forces no undefined symbols.
23499no_undefined_flag=$lt_no_undefined_flag_F77
23500
23501# Commands used to finish a libtool library installation in a directory.
23502finish_cmds=$lt_finish_cmds
23503
23504# Same as above, but a single script fragment to be evaled but not shown.
23505finish_eval=$lt_finish_eval
23506
23507# Take the output of nm and produce a listing of raw symbols and C names.
23508global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23509
23510# Transform the output of nm in a proper C declaration
23511global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23512
23513# Transform the output of nm in a C name address pair
23514global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23515
23516# This is the shared library runtime path variable.
23517runpath_var=$runpath_var
23518
23519# This is the shared library path variable.
23520shlibpath_var=$shlibpath_var
23521
23522# Is shlibpath searched before the hard-coded library search path?
23523shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23524
23525# How to hardcode a shared library path into an executable.
23526hardcode_action=$hardcode_action_F77
23527
23528# Whether we should hardcode library paths into libraries.
23529hardcode_into_libs=$hardcode_into_libs
23530
23531# Flag to hardcode \$libdir into a binary during linking.
23532# This must work even if \$libdir does not exist.
23533hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23534
23535# If ld is used when linking, flag to hardcode \$libdir into
23536# a binary during linking. This must work even if \$libdir does
23537# not exist.
23538hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23539
23540# Whether we need a single -rpath flag with a separated argument.
23541hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23542
23543# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23544# resulting binary.
23545hardcode_direct=$hardcode_direct_F77
23546
23547# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23548# resulting binary.
23549hardcode_minus_L=$hardcode_minus_L_F77
23550
23551# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23552# the resulting binary.
23553hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23554
23555# Set to yes if building a shared library automatically hardcodes DIR into the library
23556# and all subsequent libraries and executables linked against it.
23557hardcode_automatic=$hardcode_automatic_F77
23558
23559# Variables whose values should be saved in libtool wrapper scripts and
23560# restored at relink time.
23561variables_saved_for_relink="$variables_saved_for_relink"
23562
23563# Whether libtool must link a program against all its dependency libraries.
23564link_all_deplibs=$link_all_deplibs_F77
23565
23566# Compile-time system search path for libraries
23567sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23568
23569# Run-time system search path for libraries
23570sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23571
23572# Fix the shell variable \$srcfile for the compiler.
23573fix_srcfile_path="$fix_srcfile_path_F77"
23574
23575# Set to yes if exported symbols are required.
23576always_export_symbols=$always_export_symbols_F77
23577
23578# The commands to list exported symbols.
23579export_symbols_cmds=$lt_export_symbols_cmds_F77
23580
23581# The commands to extract the exported symbol list from a shared archive.
23582extract_expsyms_cmds=$lt_extract_expsyms_cmds
23583
23584# Symbols that should not be listed in the preloaded symbols.
23585exclude_expsyms=$lt_exclude_expsyms_F77
23586
23587# Symbols that must always be exported.
23588include_expsyms=$lt_include_expsyms_F77
23589
23590# ### END LIBTOOL TAG CONFIG: $tagname
23591
23592__EOF__
23593
23594
23595else
23596 # If there is no Makefile yet, we rely on a make rule to execute
23597 # `config.status --recheck' to rerun these tests and create the
23598 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023599 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23600 if test -f "$ltmain_in"; then
23601 test -f Makefile && make "$ltmain"
23602 fi
John Criswell47fdd832003-07-14 16:52:07 +000023603fi
23604
23605
23606ac_ext=c
23607ac_cpp='$CPP $CPPFLAGS'
23608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23610ac_compiler_gnu=$ac_cv_c_compiler_gnu
23611
23612CC="$lt_save_CC"
23613
23614 else
23615 tagname=""
23616 fi
23617 ;;
23618
23619 GCJ)
23620 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023621 ac_ext=c
23622ac_cpp='$CPP $CPPFLAGS'
23623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23625ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023626
23627
23628# Source file extension for Java test sources.
23629ac_ext=java
23630
23631# Object file extension for compiled Java test sources.
23632objext=o
23633objext_GCJ=$objext
23634
23635# Code to be used in simple compile tests
23636lt_simple_compile_test_code="class foo {}\n"
23637
23638# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023639lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023640
23641# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23642
23643# If no C compiler was specified, use CC.
23644LTCC=${LTCC-"$CC"}
23645
Reid Spencera773bd52006-08-04 18:18:08 +000023646# If no C compiler flags were specified, use CFLAGS.
23647LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23648
John Criswell47fdd832003-07-14 16:52:07 +000023649# Allow CC to be a program name with arguments.
23650compiler=$CC
23651
23652
Reid Spencera773bd52006-08-04 18:18:08 +000023653# save warnings/boilerplate of simple test code
23654ac_outfile=conftest.$ac_objext
23655printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23656eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23657_lt_compiler_boilerplate=`cat conftest.err`
23658$rm conftest*
23659
23660ac_outfile=conftest.$ac_objext
23661printf "$lt_simple_link_test_code" >conftest.$ac_ext
23662eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23663_lt_linker_boilerplate=`cat conftest.err`
23664$rm conftest*
23665
23666
John Criswell47fdd832003-07-14 16:52:07 +000023667# Allow CC to be a program name with arguments.
23668lt_save_CC="$CC"
23669CC=${GCJ-"gcj"}
23670compiler=$CC
23671compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023672for cc_temp in $compiler""; do
23673 case $cc_temp in
23674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23676 \-*) ;;
23677 *) break;;
23678 esac
23679done
23680cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23681
John Criswell47fdd832003-07-14 16:52:07 +000023682
23683# GCJ did not exist at the time GCC didn't implicitly link libc in.
23684archive_cmds_need_lc_GCJ=no
23685
Reid Spencera773bd52006-08-04 18:18:08 +000023686old_archive_cmds_GCJ=$old_archive_cmds
23687
John Criswell47fdd832003-07-14 16:52:07 +000023688
23689lt_prog_compiler_no_builtin_flag_GCJ=
23690
23691if test "$GCC" = yes; then
23692 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23693
Reid Spencer2706f8c2004-09-19 23:53:36 +000023694
Reid Spencera773bd52006-08-04 18:18:08 +000023695{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23696echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023697if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23698 echo $ECHO_N "(cached) $ECHO_C" >&6
23699else
23700 lt_cv_prog_compiler_rtti_exceptions=no
23701 ac_outfile=conftest.$ac_objext
23702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23703 lt_compiler_flag="-fno-rtti -fno-exceptions"
23704 # Insert the option either (1) after the last *FLAGS variable, or
23705 # (2) before a word containing "conftest.", or (3) at the end.
23706 # Note that $ac_compile itself does not contain backslashes and begins
23707 # with a dollar sign (not a hyphen), so the echo should work correctly.
23708 # The option is referenced via a variable to avoid confusing sed.
23709 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23712 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky267fddb2009-04-13 04:26:27 +000023713 (eval echo "\"\$as_me:23713: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023714 (eval "$lt_compile" 2>conftest.err)
23715 ac_status=$?
23716 cat conftest.err >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000023717 echo "$as_me:23717: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023718 if (exit $ac_status) && test -s "$ac_outfile"; then
23719 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023720 # So say no if there are warnings other than the usual output.
23721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023724 lt_cv_prog_compiler_rtti_exceptions=yes
23725 fi
23726 fi
23727 $rm conftest*
23728
23729fi
Reid Spencera773bd52006-08-04 18:18:08 +000023730{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23731echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023732
23733if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23734 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23735else
23736 :
23737fi
23738
23739fi
23740
23741lt_prog_compiler_wl_GCJ=
23742lt_prog_compiler_pic_GCJ=
23743lt_prog_compiler_static_GCJ=
23744
Reid Spencera773bd52006-08-04 18:18:08 +000023745{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23746echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023747
23748 if test "$GCC" = yes; then
23749 lt_prog_compiler_wl_GCJ='-Wl,'
23750 lt_prog_compiler_static_GCJ='-static'
23751
23752 case $host_os in
23753 aix*)
23754 # All AIX code is PIC.
23755 if test "$host_cpu" = ia64; then
23756 # AIX 5 now supports IA64 processor
23757 lt_prog_compiler_static_GCJ='-Bstatic'
23758 fi
23759 ;;
23760
23761 amigaos*)
23762 # FIXME: we need at least 68020 code to build shared libraries, but
23763 # adding the `-m68020' flag to GCC prevents building anything better,
23764 # like `-m68040'.
23765 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23766 ;;
23767
23768 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23769 # PIC is the default for these OSes.
23770 ;;
23771
23772 mingw* | pw32* | os2*)
23773 # This hack is so that the source file can tell whether it is being
23774 # built for inclusion in a dll (and should export symbols for example).
23775 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23776 ;;
23777
23778 darwin* | rhapsody*)
23779 # PIC is the default on this platform
23780 # Common symbols not allowed in MH_DYLIB files
23781 lt_prog_compiler_pic_GCJ='-fno-common'
23782 ;;
23783
Reid Spencera773bd52006-08-04 18:18:08 +000023784 interix3*)
23785 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23786 # Instead, we relocate shared libraries at runtime.
23787 ;;
23788
John Criswell47fdd832003-07-14 16:52:07 +000023789 msdosdjgpp*)
23790 # Just because we use GCC doesn't mean we suddenly get shared libraries
23791 # on systems that don't support them.
23792 lt_prog_compiler_can_build_shared_GCJ=no
23793 enable_shared=no
23794 ;;
23795
23796 sysv4*MP*)
23797 if test -d /usr/nec; then
23798 lt_prog_compiler_pic_GCJ=-Kconform_pic
23799 fi
23800 ;;
23801
23802 hpux*)
23803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23804 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023805 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023806 hppa*64*|ia64*)
23807 # +Z the default
23808 ;;
23809 *)
23810 lt_prog_compiler_pic_GCJ='-fPIC'
23811 ;;
23812 esac
23813 ;;
23814
23815 *)
23816 lt_prog_compiler_pic_GCJ='-fPIC'
23817 ;;
23818 esac
23819 else
23820 # PORTME Check for flag to pass linker flags through the system compiler.
23821 case $host_os in
23822 aix*)
23823 lt_prog_compiler_wl_GCJ='-Wl,'
23824 if test "$host_cpu" = ia64; then
23825 # AIX 5 now supports IA64 processor
23826 lt_prog_compiler_static_GCJ='-Bstatic'
23827 else
23828 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23829 fi
23830 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023831 darwin*)
23832 # PIC is the default on this platform
23833 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023834 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023835 xlc*)
23836 lt_prog_compiler_pic_GCJ='-qnocommon'
23837 lt_prog_compiler_wl_GCJ='-Wl,'
23838 ;;
23839 esac
23840 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023841
23842 mingw* | pw32* | os2*)
23843 # This hack is so that the source file can tell whether it is being
23844 # built for inclusion in a dll (and should export symbols for example).
23845 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23846 ;;
23847
23848 hpux9* | hpux10* | hpux11*)
23849 lt_prog_compiler_wl_GCJ='-Wl,'
23850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23851 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023852 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023853 hppa*64*|ia64*)
23854 # +Z the default
23855 ;;
23856 *)
23857 lt_prog_compiler_pic_GCJ='+Z'
23858 ;;
23859 esac
23860 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23861 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23862 ;;
23863
23864 irix5* | irix6* | nonstopux*)
23865 lt_prog_compiler_wl_GCJ='-Wl,'
23866 # PIC (with -KPIC) is the default.
23867 lt_prog_compiler_static_GCJ='-non_shared'
23868 ;;
23869
23870 newsos6)
23871 lt_prog_compiler_pic_GCJ='-KPIC'
23872 lt_prog_compiler_static_GCJ='-Bstatic'
23873 ;;
23874
23875 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023876 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023877 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023878 lt_prog_compiler_wl_GCJ='-Wl,'
23879 lt_prog_compiler_pic_GCJ='-KPIC'
23880 lt_prog_compiler_static_GCJ='-static'
23881 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023882 pgcc* | pgf77* | pgf90* | pgf95*)
23883 # Portland Group compilers (*not* the Pentium gcc compiler,
23884 # which looks to be a dead project)
23885 lt_prog_compiler_wl_GCJ='-Wl,'
23886 lt_prog_compiler_pic_GCJ='-fpic'
23887 lt_prog_compiler_static_GCJ='-Bstatic'
23888 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023889 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023890 lt_prog_compiler_wl_GCJ='-Wl,'
23891 # All Alpha code is PIC.
23892 lt_prog_compiler_static_GCJ='-non_shared'
23893 ;;
23894 esac
23895 ;;
23896
23897 osf3* | osf4* | osf5*)
23898 lt_prog_compiler_wl_GCJ='-Wl,'
23899 # All OSF/1 code is PIC.
23900 lt_prog_compiler_static_GCJ='-non_shared'
23901 ;;
23902
John Criswell47fdd832003-07-14 16:52:07 +000023903 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023904 lt_prog_compiler_pic_GCJ='-KPIC'
23905 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023906 case $cc_basename in
23907 f77* | f90* | f95*)
23908 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23909 *)
23910 lt_prog_compiler_wl_GCJ='-Wl,';;
23911 esac
John Criswell47fdd832003-07-14 16:52:07 +000023912 ;;
23913
23914 sunos4*)
23915 lt_prog_compiler_wl_GCJ='-Qoption ld '
23916 lt_prog_compiler_pic_GCJ='-PIC'
23917 lt_prog_compiler_static_GCJ='-Bstatic'
23918 ;;
23919
Reid Spencera773bd52006-08-04 18:18:08 +000023920 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023921 lt_prog_compiler_wl_GCJ='-Wl,'
23922 lt_prog_compiler_pic_GCJ='-KPIC'
23923 lt_prog_compiler_static_GCJ='-Bstatic'
23924 ;;
23925
23926 sysv4*MP*)
23927 if test -d /usr/nec ;then
23928 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23929 lt_prog_compiler_static_GCJ='-Bstatic'
23930 fi
23931 ;;
23932
Reid Spencera773bd52006-08-04 18:18:08 +000023933 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23934 lt_prog_compiler_wl_GCJ='-Wl,'
23935 lt_prog_compiler_pic_GCJ='-KPIC'
23936 lt_prog_compiler_static_GCJ='-Bstatic'
23937 ;;
23938
23939 unicos*)
23940 lt_prog_compiler_wl_GCJ='-Wl,'
23941 lt_prog_compiler_can_build_shared_GCJ=no
23942 ;;
23943
John Criswell47fdd832003-07-14 16:52:07 +000023944 uts4*)
23945 lt_prog_compiler_pic_GCJ='-pic'
23946 lt_prog_compiler_static_GCJ='-Bstatic'
23947 ;;
23948
23949 *)
23950 lt_prog_compiler_can_build_shared_GCJ=no
23951 ;;
23952 esac
23953 fi
23954
Reid Spencera773bd52006-08-04 18:18:08 +000023955{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23956echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023957
23958#
23959# Check to make sure the PIC flag actually works.
23960#
23961if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023962
Reid Spencera773bd52006-08-04 18:18:08 +000023963{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23964echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023965if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23966 echo $ECHO_N "(cached) $ECHO_C" >&6
23967else
23968 lt_prog_compiler_pic_works_GCJ=no
23969 ac_outfile=conftest.$ac_objext
23970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23971 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23972 # Insert the option either (1) after the last *FLAGS variable, or
23973 # (2) before a word containing "conftest.", or (3) at the end.
23974 # Note that $ac_compile itself does not contain backslashes and begins
23975 # with a dollar sign (not a hyphen), so the echo should work correctly.
23976 # The option is referenced via a variable to avoid confusing sed.
23977 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23980 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky267fddb2009-04-13 04:26:27 +000023981 (eval echo "\"\$as_me:23981: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023982 (eval "$lt_compile" 2>conftest.err)
23983 ac_status=$?
23984 cat conftest.err >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000023985 echo "$as_me:23985: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023986 if (exit $ac_status) && test -s "$ac_outfile"; then
23987 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023988 # So say no if there are warnings other than the usual output.
23989 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023992 lt_prog_compiler_pic_works_GCJ=yes
23993 fi
23994 fi
23995 $rm conftest*
23996
23997fi
Reid Spencera773bd52006-08-04 18:18:08 +000023998{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23999echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024000
24001if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24002 case $lt_prog_compiler_pic_GCJ in
24003 "" | " "*) ;;
24004 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24005 esac
24006else
24007 lt_prog_compiler_pic_GCJ=
24008 lt_prog_compiler_can_build_shared_GCJ=no
24009fi
24010
24011fi
Reid Spencera773bd52006-08-04 18:18:08 +000024012case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024013 # For platforms which do not support PIC, -DPIC is meaningless:
24014 *djgpp*)
24015 lt_prog_compiler_pic_GCJ=
24016 ;;
24017 *)
24018 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24019 ;;
24020esac
24021
Reid Spencera773bd52006-08-04 18:18:08 +000024022#
24023# Check to make sure the static flag actually works.
24024#
24025wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24026{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24027echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24028if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24029 echo $ECHO_N "(cached) $ECHO_C" >&6
24030else
24031 lt_prog_compiler_static_works_GCJ=no
24032 save_LDFLAGS="$LDFLAGS"
24033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24034 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24036 # The linker can only warn and ignore the option if not recognized
24037 # So say no if there are warnings
24038 if test -s conftest.err; then
24039 # Append any errors to the config.log.
24040 cat conftest.err 1>&5
24041 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24043 if diff conftest.exp conftest.er2 >/dev/null; then
24044 lt_prog_compiler_static_works_GCJ=yes
24045 fi
24046 else
24047 lt_prog_compiler_static_works_GCJ=yes
24048 fi
24049 fi
24050 $rm conftest*
24051 LDFLAGS="$save_LDFLAGS"
24052
24053fi
24054{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24055echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24056
24057if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24058 :
24059else
24060 lt_prog_compiler_static_GCJ=
24061fi
24062
24063
24064{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24065echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024066if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24067 echo $ECHO_N "(cached) $ECHO_C" >&6
24068else
24069 lt_cv_prog_compiler_c_o_GCJ=no
24070 $rm -r conftest 2>/dev/null
24071 mkdir conftest
24072 cd conftest
24073 mkdir out
24074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24075
John Criswell47fdd832003-07-14 16:52:07 +000024076 lt_compiler_flag="-o out/conftest2.$ac_objext"
24077 # Insert the option either (1) after the last *FLAGS variable, or
24078 # (2) before a word containing "conftest.", or (3) at the end.
24079 # Note that $ac_compile itself does not contain backslashes and begins
24080 # with a dollar sign (not a hyphen), so the echo should work correctly.
24081 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24084 -e 's:$: $lt_compiler_flag:'`
Nick Lewycky267fddb2009-04-13 04:26:27 +000024085 (eval echo "\"\$as_me:24085: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024086 (eval "$lt_compile" 2>out/conftest.err)
24087 ac_status=$?
24088 cat out/conftest.err >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000024089 echo "$as_me:24089: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24091 then
24092 # The compiler can only warn and ignore the option if not recognized
24093 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024094 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024097 lt_cv_prog_compiler_c_o_GCJ=yes
24098 fi
24099 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024100 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024101 $rm conftest*
24102 # SGI C++ compiler will create directory out/ii_files/ for
24103 # template instantiation
24104 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24105 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024106 cd ..
24107 rmdir conftest
24108 $rm conftest*
24109
24110fi
Reid Spencera773bd52006-08-04 18:18:08 +000024111{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24112echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024113
24114
24115hard_links="nottested"
24116if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24117 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024118 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24119echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024120 hard_links=yes
24121 $rm conftest*
24122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24123 touch conftest.a
24124 ln conftest.a conftest.b 2>&5 || hard_links=no
24125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024126 { echo "$as_me:$LINENO: result: $hard_links" >&5
24127echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024128 if test "$hard_links" = no; then
24129 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24130echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24131 need_locks=warn
24132 fi
24133else
24134 need_locks=no
24135fi
24136
Reid Spencera773bd52006-08-04 18:18:08 +000024137{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24138echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024139
24140 runpath_var=
24141 allow_undefined_flag_GCJ=
24142 enable_shared_with_static_runtimes_GCJ=no
24143 archive_cmds_GCJ=
24144 archive_expsym_cmds_GCJ=
24145 old_archive_From_new_cmds_GCJ=
24146 old_archive_from_expsyms_cmds_GCJ=
24147 export_dynamic_flag_spec_GCJ=
24148 whole_archive_flag_spec_GCJ=
24149 thread_safe_flag_spec_GCJ=
24150 hardcode_libdir_flag_spec_GCJ=
24151 hardcode_libdir_flag_spec_ld_GCJ=
24152 hardcode_libdir_separator_GCJ=
24153 hardcode_direct_GCJ=no
24154 hardcode_minus_L_GCJ=no
24155 hardcode_shlibpath_var_GCJ=unsupported
24156 link_all_deplibs_GCJ=unknown
24157 hardcode_automatic_GCJ=no
24158 module_cmds_GCJ=
24159 module_expsym_cmds_GCJ=
24160 always_export_symbols_GCJ=no
24161 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24162 # include_expsyms should be a list of space-separated symbols to be *always*
24163 # included in the symbol list
24164 include_expsyms_GCJ=
24165 # exclude_expsyms can be an extended regexp of symbols to exclude
24166 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24167 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24168 # as well as any symbol that contains `d'.
24169 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24170 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24171 # platforms (ab)use it in PIC code, but their linkers get confused if
24172 # the symbol is explicitly referenced. Since portable code cannot
24173 # rely on this symbol name, it's probably fine to never include it in
24174 # preloaded symbol tables.
24175 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024176 # Just being paranoid about ensuring that cc_basename is set.
24177 for cc_temp in $compiler""; do
24178 case $cc_temp in
24179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24181 \-*) ;;
24182 *) break;;
24183 esac
24184done
24185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024186
24187 case $host_os in
24188 cygwin* | mingw* | pw32*)
24189 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24190 # When not using gcc, we currently assume that we are using
24191 # Microsoft Visual C++.
24192 if test "$GCC" != yes; then
24193 with_gnu_ld=no
24194 fi
24195 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024196 interix*)
24197 # we just hope/assume this is gcc and not c89 (= MSVC++)
24198 with_gnu_ld=yes
24199 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024200 openbsd*)
24201 with_gnu_ld=no
24202 ;;
24203 esac
24204
24205 ld_shlibs_GCJ=yes
24206 if test "$with_gnu_ld" = yes; then
24207 # If archive_cmds runs LD, not CC, wlarc should be empty
24208 wlarc='${wl}'
24209
Reid Spencera773bd52006-08-04 18:18:08 +000024210 # Set some defaults for GNU ld with shared library support. These
24211 # are reset later if shared libraries are not supported. Putting them
24212 # here allows them to be overridden if necessary.
24213 runpath_var=LD_RUN_PATH
24214 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24215 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24216 # ancient GNU ld didn't support --whole-archive et. al.
24217 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24218 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24219 else
24220 whole_archive_flag_spec_GCJ=
24221 fi
24222 supports_anon_versioning=no
24223 case `$LD -v 2>/dev/null` in
24224 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24225 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24226 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24227 *\ 2.11.*) ;; # other 2.11 versions
24228 *) supports_anon_versioning=yes ;;
24229 esac
24230
John Criswell47fdd832003-07-14 16:52:07 +000024231 # See if GNU ld supports shared libraries.
24232 case $host_os in
24233 aix3* | aix4* | aix5*)
24234 # On AIX/PPC, the GNU linker is very broken
24235 if test "$host_cpu" != ia64; then
24236 ld_shlibs_GCJ=no
24237 cat <<EOF 1>&2
24238
24239*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24240*** to be unable to reliably create shared libraries on AIX.
24241*** Therefore, libtool is disabling shared libraries support. If you
24242*** really care for shared libraries, you may want to modify your PATH
24243*** so that a non-GNU linker is found, and then restart.
24244
24245EOF
24246 fi
24247 ;;
24248
24249 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024250 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000024251 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24252 hardcode_minus_L_GCJ=yes
24253
24254 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24255 # that the semantics of dynamic libraries on AmigaOS, at least up
24256 # to version 4, is to share data among multiple programs linked
24257 # with the same dynamic library. Since this doesn't match the
24258 # behavior of shared libraries on other platforms, we can't use
24259 # them.
24260 ld_shlibs_GCJ=no
24261 ;;
24262
24263 beos*)
24264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24265 allow_undefined_flag_GCJ=unsupported
24266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24267 # support --undefined. This deserves some investigation. FIXME
24268 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24269 else
24270 ld_shlibs_GCJ=no
24271 fi
24272 ;;
24273
24274 cygwin* | mingw* | pw32*)
24275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24276 # as there is no search path for DLLs.
24277 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24278 allow_undefined_flag_GCJ=unsupported
24279 always_export_symbols_GCJ=no
24280 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024281 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000024282
24283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024284 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000024285 # If the export-symbols file already is a .def file (1st line
24286 # is EXPORTS), use it as is; otherwise, prepend...
24287 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24288 cp $export_symbols $output_objdir/$soname.def;
24289 else
24290 echo EXPORTS > $output_objdir/$soname.def;
24291 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024292 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000024294 else
Reid Spencera773bd52006-08-04 18:18:08 +000024295 ld_shlibs_GCJ=no
24296 fi
24297 ;;
24298
24299 interix3*)
24300 hardcode_direct_GCJ=no
24301 hardcode_shlibpath_var_GCJ=no
24302 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24303 export_dynamic_flag_spec_GCJ='${wl}-E'
24304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24305 # Instead, shared libraries are loaded at an image base (0x10000000 by
24306 # default) and relocated if they conflict, which is a slow very memory
24307 # consuming and fragmenting process. To avoid this, we pick a random,
24308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24310 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24311 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24312 ;;
24313
24314 linux*)
24315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24316 tmp_addflag=
24317 case $cc_basename,$host_cpu in
24318 pgcc*) # Portland Group C compiler
24319 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24320 tmp_addflag=' $pic_flag'
24321 ;;
24322 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24323 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24324 tmp_addflag=' $pic_flag -Mnomain' ;;
24325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24326 tmp_addflag=' -i_dynamic' ;;
24327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24328 tmp_addflag=' -i_dynamic -nofor_main' ;;
24329 ifc* | ifort*) # Intel Fortran compiler
24330 tmp_addflag=' -nofor_main' ;;
24331 esac
24332 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24333
24334 if test $supports_anon_versioning = yes; then
24335 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24337 $echo "local: *; };" >> $output_objdir/$libname.ver~
24338 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24339 fi
24340 else
24341 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024342 fi
24343 ;;
24344
24345 netbsd*)
24346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24347 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24348 wlarc=
24349 else
24350 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24351 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24352 fi
24353 ;;
24354
Reid Spencera773bd52006-08-04 18:18:08 +000024355 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024356 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24357 ld_shlibs_GCJ=no
24358 cat <<EOF 1>&2
24359
24360*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24361*** create shared libraries on Solaris systems. Therefore, libtool
24362*** is disabling shared libraries support. We urge you to upgrade GNU
24363*** binutils to release 2.9.1 or newer. Another option is to modify
24364*** your PATH or compiler configuration so that the native linker is
24365*** used, and then restart.
24366
24367EOF
24368 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24369 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24370 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24371 else
24372 ld_shlibs_GCJ=no
24373 fi
24374 ;;
24375
Reid Spencera773bd52006-08-04 18:18:08 +000024376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24377 case `$LD -v 2>&1` in
24378 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24379 ld_shlibs_GCJ=no
24380 cat <<_LT_EOF 1>&2
24381
24382*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24383*** reliably create shared libraries on SCO systems. Therefore, libtool
24384*** is disabling shared libraries support. We urge you to upgrade GNU
24385*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24386*** your PATH or compiler configuration so that the native linker is
24387*** used, and then restart.
24388
24389_LT_EOF
24390 ;;
24391 *)
24392 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24393 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24394 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24395 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24396 else
24397 ld_shlibs_GCJ=no
24398 fi
24399 ;;
24400 esac
24401 ;;
24402
John Criswell47fdd832003-07-14 16:52:07 +000024403 sunos4*)
24404 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24405 wlarc=
24406 hardcode_direct_GCJ=yes
24407 hardcode_shlibpath_var_GCJ=no
24408 ;;
24409
24410 *)
24411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24412 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24413 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24414 else
24415 ld_shlibs_GCJ=no
24416 fi
24417 ;;
24418 esac
24419
Reid Spencera773bd52006-08-04 18:18:08 +000024420 if test "$ld_shlibs_GCJ" = no; then
24421 runpath_var=
24422 hardcode_libdir_flag_spec_GCJ=
24423 export_dynamic_flag_spec_GCJ=
24424 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024425 fi
24426 else
24427 # PORTME fill in a description of your system's linker (not GNU ld)
24428 case $host_os in
24429 aix3*)
24430 allow_undefined_flag_GCJ=unsupported
24431 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024432 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000024433 # Note: this linker hardcodes the directories in LIBPATH if there
24434 # are no directories specified by -L.
24435 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024436 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024437 # Neither direct hardcoding nor static linking is supported with a
24438 # broken collect2.
24439 hardcode_direct_GCJ=unsupported
24440 fi
24441 ;;
24442
24443 aix4* | aix5*)
24444 if test "$host_cpu" = ia64; then
24445 # On IA64, the linker does run time linking by default, so we don't
24446 # have to do anything special.
24447 aix_use_runtimelinking=no
24448 exp_sym_flag='-Bexport'
24449 no_entry_flag=""
24450 else
24451 # If we're using GNU nm, then we don't want the "-C" option.
24452 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24453 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24454 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24455 else
24456 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24457 fi
24458 aix_use_runtimelinking=no
24459
24460 # Test if we are trying to use run time linking or normal
24461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24462 # need to do runtime linking.
24463 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24464 for ld_flag in $LDFLAGS; do
24465 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24466 aix_use_runtimelinking=yes
24467 break
24468 fi
24469 done
Reid Spencera773bd52006-08-04 18:18:08 +000024470 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024471 esac
24472
24473 exp_sym_flag='-bexport'
24474 no_entry_flag='-bnoentry'
24475 fi
24476
24477 # When large executables or shared objects are built, AIX ld can
24478 # have problems creating the table of contents. If linking a library
24479 # or program results in "error TOC overflow" add -mminimal-toc to
24480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24482
24483 archive_cmds_GCJ=''
24484 hardcode_direct_GCJ=yes
24485 hardcode_libdir_separator_GCJ=':'
24486 link_all_deplibs_GCJ=yes
24487
24488 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024489 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024490 # We only want to do this on AIX 4.2 and lower, the check
24491 # below for broken collect2 doesn't work under 4.3+
24492 collect2name=`${CC} -print-prog-name=collect2`
24493 if test -f "$collect2name" && \
24494 strings "$collect2name" | grep resolve_lib_name >/dev/null
24495 then
24496 # We have reworked collect2
24497 hardcode_direct_GCJ=yes
24498 else
24499 # We have old collect2
24500 hardcode_direct_GCJ=unsupported
24501 # It fails to find uninstalled libraries when the uninstalled
24502 # path is not listed in the libpath. Setting hardcode_minus_L
24503 # to unsupported forces relinking
24504 hardcode_minus_L_GCJ=yes
24505 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24506 hardcode_libdir_separator_GCJ=
24507 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024508 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024509 esac
24510 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024511 if test "$aix_use_runtimelinking" = yes; then
24512 shared_flag="$shared_flag "'${wl}-G'
24513 fi
John Criswell47fdd832003-07-14 16:52:07 +000024514 else
24515 # not using gcc
24516 if test "$host_cpu" = ia64; then
24517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24518 # chokes on -Wl,-G. The following line is correct:
24519 shared_flag='-G'
24520 else
Reid Spencera773bd52006-08-04 18:18:08 +000024521 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024522 shared_flag='${wl}-G'
24523 else
24524 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024525 fi
John Criswell47fdd832003-07-14 16:52:07 +000024526 fi
24527 fi
24528
24529 # It seems that -bexpall does not export symbols beginning with
24530 # underscore (_), so it is better to generate a list of symbols to export.
24531 always_export_symbols_GCJ=yes
24532 if test "$aix_use_runtimelinking" = yes; then
24533 # Warning - without using the other runtime loading flags (-brtl),
24534 # -berok will link without error, but may produce a broken library.
24535 allow_undefined_flag_GCJ='-berok'
24536 # Determine the default libpath from the value encoded in an empty executable.
24537 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024538/* confdefs.h. */
24539_ACEOF
24540cat confdefs.h >>conftest.$ac_ext
24541cat >>conftest.$ac_ext <<_ACEOF
24542/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024543
John Criswell47fdd832003-07-14 16:52:07 +000024544int
24545main ()
24546{
24547
24548 ;
24549 return 0;
24550}
24551_ACEOF
24552rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024553if { (ac_try="$ac_link"
24554case "(($ac_try" in
24555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556 *) ac_try_echo=$ac_try;;
24557esac
24558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024560 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024561 grep -v '^ *+' conftest.er1 >conftest.err
24562 rm -f conftest.er1
24563 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024565 (exit $ac_status); } &&
24566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24567 { (case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24570esac
24571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_try") 2>&5
24573 ac_status=$?
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); }; } &&
24576 { ac_try='test -s conftest$ac_exeext'
24577 { (case "(($ac_try" in
24578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579 *) ac_try_echo=$ac_try;;
24580esac
24581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582 (eval "$ac_try") 2>&5
24583 ac_status=$?
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024586
24587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24588}'`
24589# Check for a 64-bit object if we didn't find anything.
24590if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24591}'`; fi
24592else
24593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024594sed 's/^/| /' conftest.$ac_ext >&5
24595
Reid Spencera773bd52006-08-04 18:18:08 +000024596
John Criswell47fdd832003-07-14 16:52:07 +000024597fi
Reid Spencera773bd52006-08-04 18:18:08 +000024598
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024599rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024600 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024601if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24602
24603 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024604 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
John Criswell47fdd832003-07-14 16:52:07 +000024605 else
24606 if test "$host_cpu" = ia64; then
24607 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24608 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024609 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
John Criswell47fdd832003-07-14 16:52:07 +000024610 else
24611 # Determine the default libpath from the value encoded in an empty executable.
24612 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024613/* confdefs.h. */
24614_ACEOF
24615cat confdefs.h >>conftest.$ac_ext
24616cat >>conftest.$ac_ext <<_ACEOF
24617/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024618
John Criswell47fdd832003-07-14 16:52:07 +000024619int
24620main ()
24621{
24622
24623 ;
24624 return 0;
24625}
24626_ACEOF
24627rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024628if { (ac_try="$ac_link"
24629case "(($ac_try" in
24630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24631 *) ac_try_echo=$ac_try;;
24632esac
24633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24634 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024635 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024636 grep -v '^ *+' conftest.er1 >conftest.err
24637 rm -f conftest.er1
24638 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024640 (exit $ac_status); } &&
24641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24642 { (case "(($ac_try" in
24643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644 *) ac_try_echo=$ac_try;;
24645esac
24646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647 (eval "$ac_try") 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); }; } &&
24651 { ac_try='test -s conftest$ac_exeext'
24652 { (case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24655esac
24656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657 (eval "$ac_try") 2>&5
24658 ac_status=$?
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024661
24662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24663}'`
24664# Check for a 64-bit object if we didn't find anything.
24665if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24666}'`; fi
24667else
24668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024669sed 's/^/| /' conftest.$ac_ext >&5
24670
Reid Spencera773bd52006-08-04 18:18:08 +000024671
John Criswell47fdd832003-07-14 16:52:07 +000024672fi
Reid Spencera773bd52006-08-04 18:18:08 +000024673
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024674rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024675 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24677
24678 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24679 # Warning - without using the other run time loading flags,
24680 # -berok will link without error, but may produce a broken library.
24681 no_undefined_flag_GCJ=' ${wl}-bernotok'
24682 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024683 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024684 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024685 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024686 # This is similar to how AIX traditionally builds its shared libraries.
24687 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000024688 fi
24689 fi
24690 ;;
24691
24692 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024693 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000024694 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24695 hardcode_minus_L_GCJ=yes
24696 # see comment about different semantics on the GNU ld section
24697 ld_shlibs_GCJ=no
24698 ;;
24699
Reid Spencer2706f8c2004-09-19 23:53:36 +000024700 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024701 export_dynamic_flag_spec_GCJ=-rdynamic
24702 ;;
24703
24704 cygwin* | mingw* | pw32*)
24705 # When not using gcc, we currently assume that we are using
24706 # Microsoft Visual C++.
24707 # hardcode_libdir_flag_spec is actually meaningless, as there is
24708 # no search path for DLLs.
24709 hardcode_libdir_flag_spec_GCJ=' '
24710 allow_undefined_flag_GCJ=unsupported
24711 # Tell ltmain to make .lib files, not .a files.
24712 libext=lib
24713 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024714 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024715 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024716 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000024717 # The linker will automatically build a .lib file if we build a DLL.
24718 old_archive_From_new_cmds_GCJ='true'
24719 # FIXME: Should let the user specify the lib program.
24720 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024721 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024722 enable_shared_with_static_runtimes_GCJ=yes
24723 ;;
24724
24725 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024726 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024727 rhapsody* | darwin1.[012])
24728 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24729 ;;
24730 *) # Darwin 1.3 on
24731 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24732 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24733 else
24734 case ${MACOSX_DEPLOYMENT_TARGET} in
24735 10.[012])
24736 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24737 ;;
24738 10.*)
24739 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24740 ;;
24741 esac
24742 fi
24743 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024744 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024745 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024746 hardcode_direct_GCJ=no
24747 hardcode_automatic_GCJ=yes
24748 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024749 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024750 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024751 if test "$GCC" = yes ; then
24752 output_verbose_link_cmd='echo'
24753 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24754 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024755 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000024756 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24757 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024758 else
Reid Spencera773bd52006-08-04 18:18:08 +000024759 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024760 xlc*)
24761 output_verbose_link_cmd='echo'
24762 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24763 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024764 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000024765 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24766 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024767 ;;
24768 *)
24769 ld_shlibs_GCJ=no
24770 ;;
24771 esac
John Criswell47fdd832003-07-14 16:52:07 +000024772 fi
24773 ;;
24774
24775 dgux*)
24776 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24777 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24778 hardcode_shlibpath_var_GCJ=no
24779 ;;
24780
24781 freebsd1*)
24782 ld_shlibs_GCJ=no
24783 ;;
24784
24785 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24786 # support. Future versions do this automatically, but an explicit c++rt0.o
24787 # does not break anything, and helps significantly (at the cost of a little
24788 # extra space).
24789 freebsd2.2*)
24790 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24791 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24792 hardcode_direct_GCJ=yes
24793 hardcode_shlibpath_var_GCJ=no
24794 ;;
24795
24796 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24797 freebsd2*)
24798 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24799 hardcode_direct_GCJ=yes
24800 hardcode_minus_L_GCJ=yes
24801 hardcode_shlibpath_var_GCJ=no
24802 ;;
24803
24804 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024805 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024806 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24807 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24808 hardcode_direct_GCJ=yes
24809 hardcode_shlibpath_var_GCJ=no
24810 ;;
24811
24812 hpux9*)
24813 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024814 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000024815 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024816 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000024817 fi
24818 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24819 hardcode_libdir_separator_GCJ=:
24820 hardcode_direct_GCJ=yes
24821
24822 # hardcode_minus_L: Not really in the search PATH,
24823 # but as the default location of the library.
24824 hardcode_minus_L_GCJ=yes
24825 export_dynamic_flag_spec_GCJ='${wl}-E'
24826 ;;
24827
Reid Spencera773bd52006-08-04 18:18:08 +000024828 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024829 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024830 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24831 else
24832 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24833 fi
24834 if test "$with_gnu_ld" = no; then
24835 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24836 hardcode_libdir_separator_GCJ=:
24837
24838 hardcode_direct_GCJ=yes
24839 export_dynamic_flag_spec_GCJ='${wl}-E'
24840
24841 # hardcode_minus_L: Not really in the search PATH,
24842 # but as the default location of the library.
24843 hardcode_minus_L_GCJ=yes
24844 fi
24845 ;;
24846
24847 hpux11*)
24848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24849 case $host_cpu in
24850 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024851 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24852 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024853 ia64*)
24854 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24855 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024856 *)
24857 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24858 ;;
24859 esac
24860 else
Reid Spencera773bd52006-08-04 18:18:08 +000024861 case $host_cpu in
24862 hppa*64*)
24863 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24864 ;;
24865 ia64*)
24866 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024867 ;;
24868 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024869 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024870 ;;
24871 esac
24872 fi
24873 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024874 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24875 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024876
Reid Spencera773bd52006-08-04 18:18:08 +000024877 case $host_cpu in
24878 hppa*64*|ia64*)
24879 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24880 hardcode_direct_GCJ=no
24881 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024882 ;;
24883 *)
John Criswell47fdd832003-07-14 16:52:07 +000024884 hardcode_direct_GCJ=yes
24885 export_dynamic_flag_spec_GCJ='${wl}-E'
24886
24887 # hardcode_minus_L: Not really in the search PATH,
24888 # but as the default location of the library.
24889 hardcode_minus_L_GCJ=yes
24890 ;;
24891 esac
24892 fi
24893 ;;
24894
24895 irix5* | irix6* | nonstopux*)
24896 if test "$GCC" = yes; then
24897 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24898 else
24899 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24900 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24901 fi
24902 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24903 hardcode_libdir_separator_GCJ=:
24904 link_all_deplibs_GCJ=yes
24905 ;;
24906
24907 netbsd*)
24908 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24910 else
24911 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24912 fi
24913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24914 hardcode_direct_GCJ=yes
24915 hardcode_shlibpath_var_GCJ=no
24916 ;;
24917
24918 newsos6)
24919 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24920 hardcode_direct_GCJ=yes
24921 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24922 hardcode_libdir_separator_GCJ=:
24923 hardcode_shlibpath_var_GCJ=no
24924 ;;
24925
24926 openbsd*)
24927 hardcode_direct_GCJ=yes
24928 hardcode_shlibpath_var_GCJ=no
24929 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24930 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024931 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000024932 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24933 export_dynamic_flag_spec_GCJ='${wl}-E'
24934 else
24935 case $host_os in
24936 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24937 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24938 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24939 ;;
24940 *)
24941 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24942 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24943 ;;
24944 esac
24945 fi
24946 ;;
24947
24948 os2*)
24949 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24950 hardcode_minus_L_GCJ=yes
24951 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024952 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
John Criswell47fdd832003-07-14 16:52:07 +000024953 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24954 ;;
24955
24956 osf3*)
24957 if test "$GCC" = yes; then
24958 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24959 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24960 else
24961 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24962 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24963 fi
24964 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24965 hardcode_libdir_separator_GCJ=:
24966 ;;
24967
24968 osf4* | osf5*) # as osf3* with the addition of -msym flag
24969 if test "$GCC" = yes; then
24970 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24971 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24972 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24973 else
24974 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24975 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000024976 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000024977 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
Reid Spencer177dbe22004-10-13 01:01:03 +000024978
John Criswell47fdd832003-07-14 16:52:07 +000024979 # Both c and cxx compiler support -rpath directly
24980 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24981 fi
24982 hardcode_libdir_separator_GCJ=:
24983 ;;
24984
John Criswell47fdd832003-07-14 16:52:07 +000024985 solaris*)
24986 no_undefined_flag_GCJ=' -z text'
24987 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024988 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024989 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024990 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24991 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000024992 else
Reid Spencera773bd52006-08-04 18:18:08 +000024993 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024994 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024995 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24996 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000024997 fi
24998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24999 hardcode_shlibpath_var_GCJ=no
25000 case $host_os in
25001 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025002 *)
25003 # The compiler driver will combine linker options so we
25004 # cannot just pass the convience library names through
25005 # without $wl, iff we do not link with $LD.
25006 # Luckily, gcc supports the same syntax we need for Sun Studio.
25007 # Supported since Solaris 2.6 (maybe 2.5.1?)
25008 case $wlarc in
25009 '')
25010 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25011 *)
25012 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25013 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025014 esac
25015 link_all_deplibs_GCJ=yes
25016 ;;
25017
25018 sunos4*)
25019 if test "x$host_vendor" = xsequent; then
25020 # Use $CC to link under sequent, because it throws in some extra .o
25021 # files that make .init and .fini sections work.
25022 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25023 else
25024 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25025 fi
25026 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25027 hardcode_direct_GCJ=yes
25028 hardcode_minus_L_GCJ=yes
25029 hardcode_shlibpath_var_GCJ=no
25030 ;;
25031
25032 sysv4)
25033 case $host_vendor in
25034 sni)
25035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25036 hardcode_direct_GCJ=yes # is this really true???
25037 ;;
25038 siemens)
25039 ## LD is ld it makes a PLAMLIB
25040 ## CC just makes a GrossModule.
25041 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25042 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25043 hardcode_direct_GCJ=no
25044 ;;
25045 motorola)
25046 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25047 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25048 ;;
25049 esac
25050 runpath_var='LD_RUN_PATH'
25051 hardcode_shlibpath_var_GCJ=no
25052 ;;
25053
25054 sysv4.3*)
25055 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25056 hardcode_shlibpath_var_GCJ=no
25057 export_dynamic_flag_spec_GCJ='-Bexport'
25058 ;;
25059
25060 sysv4*MP*)
25061 if test -d /usr/nec; then
25062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25063 hardcode_shlibpath_var_GCJ=no
25064 runpath_var=LD_RUN_PATH
25065 hardcode_runpath_var=yes
25066 ld_shlibs_GCJ=yes
25067 fi
25068 ;;
25069
Reid Spencera773bd52006-08-04 18:18:08 +000025070 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25071 no_undefined_flag_GCJ='${wl}-z,text'
25072 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025073 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025074 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025075
John Criswell47fdd832003-07-14 16:52:07 +000025076 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025077 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25078 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025079 else
Reid Spencera773bd52006-08-04 18:18:08 +000025080 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25081 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025082 fi
John Criswell47fdd832003-07-14 16:52:07 +000025083 ;;
25084
Reid Spencera773bd52006-08-04 18:18:08 +000025085 sysv5* | sco3.2v5* | sco5v6*)
25086 # Note: We can NOT use -z defs as we might desire, because we do not
25087 # link with -lc, and that would cause any symbols used from libc to
25088 # always be unresolved, which means just about no library would
25089 # ever link correctly. If we're not using GNU ld we use -z text
25090 # though, which does catch some bad symbols but isn't as heavy-handed
25091 # as -z defs.
25092 no_undefined_flag_GCJ='${wl}-z,text'
25093 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25094 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025095 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025096 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25097 hardcode_libdir_separator_GCJ=':'
25098 link_all_deplibs_GCJ=yes
25099 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025100 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025101
25102 if test "$GCC" = yes; then
25103 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25104 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25105 else
25106 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25107 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25108 fi
John Criswell47fdd832003-07-14 16:52:07 +000025109 ;;
25110
25111 uts4*)
25112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25114 hardcode_shlibpath_var_GCJ=no
25115 ;;
25116
25117 *)
25118 ld_shlibs_GCJ=no
25119 ;;
25120 esac
25121 fi
25122
Reid Spencera773bd52006-08-04 18:18:08 +000025123{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25124echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025125test "$ld_shlibs_GCJ" = no && can_build_shared=no
25126
John Criswell47fdd832003-07-14 16:52:07 +000025127#
25128# Do we need to explicitly link libc?
25129#
25130case "x$archive_cmds_need_lc_GCJ" in
25131x|xyes)
25132 # Assume -lc should be added
25133 archive_cmds_need_lc_GCJ=yes
25134
25135 if test "$enable_shared" = yes && test "$GCC" = yes; then
25136 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025137 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025138 # FIXME: we may have to deal with multi-command sequences.
25139 ;;
25140 '$CC '*)
25141 # Test whether the compiler implicitly links with -lc since on some
25142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25143 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025144 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25145echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025146 $rm conftest*
25147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25148
25149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25150 (eval $ac_compile) 2>&5
25151 ac_status=$?
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } 2>conftest.err; then
25154 soname=conftest
25155 lib=conftest
25156 libobjs=conftest.$ac_objext
25157 deplibs=
25158 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025159 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025160 compiler_flags=-v
25161 linker_flags=-v
25162 verstring=
25163 output_objdir=.
25164 libname=conftest
25165 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25166 allow_undefined_flag_GCJ=
25167 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25168 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25169 ac_status=$?
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); }
25172 then
25173 archive_cmds_need_lc_GCJ=no
25174 else
25175 archive_cmds_need_lc_GCJ=yes
25176 fi
25177 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25178 else
25179 cat conftest.err 1>&5
25180 fi
25181 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025182 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25183echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025184 ;;
25185 esac
25186 fi
25187 ;;
25188esac
25189
Reid Spencera773bd52006-08-04 18:18:08 +000025190{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25191echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025192library_names_spec=
25193libname_spec='lib$name'
25194soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025195shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025196postinstall_cmds=
25197postuninstall_cmds=
25198finish_cmds=
25199finish_eval=
25200shlibpath_var=
25201shlibpath_overrides_runpath=unknown
25202version_type=none
25203dynamic_linker="$host_os ld.so"
25204sys_lib_dlsearch_path_spec="/lib /usr/lib"
25205if test "$GCC" = yes; then
25206 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25207 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25208 # if the path contains ";" then we assume it to be the separator
25209 # otherwise default to the standard path separator (i.e. ":") - it is
25210 # assumed that no part of a normal pathname contains ";" but that should
25211 # okay in the real world where ";" in dirpaths is itself problematic.
25212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25213 else
25214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25215 fi
25216else
25217 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25218fi
25219need_lib_prefix=unknown
25220hardcode_into_libs=no
25221
25222# when you set need_version to no, make sure it does not cause -set_version
25223# flags to be left without arguments
25224need_version=unknown
25225
25226case $host_os in
25227aix3*)
25228 version_type=linux
25229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25230 shlibpath_var=LIBPATH
25231
25232 # AIX 3 has no versioning support, so we append a major version to the name.
25233 soname_spec='${libname}${release}${shared_ext}$major'
25234 ;;
25235
25236aix4* | aix5*)
25237 version_type=linux
25238 need_lib_prefix=no
25239 need_version=no
25240 hardcode_into_libs=yes
25241 if test "$host_cpu" = ia64; then
25242 # AIX 5 supports IA64
25243 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25244 shlibpath_var=LD_LIBRARY_PATH
25245 else
25246 # With GCC up to 2.95.x, collect2 would create an import file
25247 # for dependence libraries. The import file would start with
25248 # the line `#! .'. This would cause the generated library to
25249 # depend on `.', always an invalid library. This was fixed in
25250 # development snapshots of GCC prior to 3.0.
25251 case $host_os in
25252 aix4 | aix4.[01] | aix4.[01].*)
25253 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25254 echo ' yes '
25255 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25256 :
25257 else
25258 can_build_shared=no
25259 fi
25260 ;;
25261 esac
25262 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25263 # soname into executable. Probably we can add versioning support to
25264 # collect2, so additional links can be useful in future.
25265 if test "$aix_use_runtimelinking" = yes; then
25266 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25267 # instead of lib<name>.a to let people know that these are not
25268 # typical AIX shared libraries.
25269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25270 else
25271 # We preserve .a as extension for shared libraries through AIX4.2
25272 # and later when we are not doing run time linking.
25273 library_names_spec='${libname}${release}.a $libname.a'
25274 soname_spec='${libname}${release}${shared_ext}$major'
25275 fi
25276 shlibpath_var=LIBPATH
25277 fi
25278 ;;
25279
25280amigaos*)
25281 library_names_spec='$libname.ixlibrary $libname.a'
25282 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025283 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'
John Criswell47fdd832003-07-14 16:52:07 +000025284 ;;
25285
25286beos*)
25287 library_names_spec='${libname}${shared_ext}'
25288 dynamic_linker="$host_os ld.so"
25289 shlibpath_var=LIBRARY_PATH
25290 ;;
25291
Reid Spencer2706f8c2004-09-19 23:53:36 +000025292bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025293 version_type=linux
25294 need_version=no
25295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25296 soname_spec='${libname}${release}${shared_ext}$major'
25297 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25298 shlibpath_var=LD_LIBRARY_PATH
25299 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25300 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25301 # the default ld.so.conf also contains /usr/contrib/lib and
25302 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25303 # libtool to hard-code these into programs
25304 ;;
25305
25306cygwin* | mingw* | pw32*)
25307 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025308 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025309 need_version=no
25310 need_lib_prefix=no
25311
25312 case $GCC,$host_os in
25313 yes,cygwin* | yes,mingw* | yes,pw32*)
25314 library_names_spec='$libname.dll.a'
25315 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025316 postinstall_cmds='base_file=`basename \${file}`~
25317 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25318 dldir=$destdir/`dirname \$dlpath`~
25319 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025320 $install_prog $dir/$dlname \$dldir/$dlname~
25321 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025322 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25323 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025324 $rm \$dlpath'
25325 shlibpath_overrides_runpath=yes
25326
25327 case $host_os in
25328 cygwin*)
25329 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25330 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025331 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025332 ;;
25333 mingw*)
25334 # MinGW DLLs use traditional 'lib' prefix
25335 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25336 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25337 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25338 # It is most probably a Windows format PATH printed by
25339 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25340 # path with ; separators, and with drive letters. We can handle the
25341 # drive letters (cygwin fileutils understands them), so leave them,
25342 # especially as we might pass files found there to a mingw objdump,
25343 # which wouldn't understand a cygwinified path. Ahh.
25344 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25345 else
25346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25347 fi
25348 ;;
25349 pw32*)
25350 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025351 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025352 ;;
25353 esac
25354 ;;
25355
25356 *)
25357 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25358 ;;
25359 esac
25360 dynamic_linker='Win32 ld.exe'
25361 # FIXME: first we should search . and the directory the executable is in
25362 shlibpath_var=PATH
25363 ;;
25364
25365darwin* | rhapsody*)
25366 dynamic_linker="$host_os dyld"
25367 version_type=darwin
25368 need_lib_prefix=no
25369 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025370 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025371 soname_spec='${libname}${release}${major}$shared_ext'
25372 shlibpath_overrides_runpath=yes
25373 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025374 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025375 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025376 if test "$GCC" = yes; then
25377 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"`
25378 else
25379 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025380 fi
25381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25382 ;;
25383
25384dgux*)
25385 version_type=linux
25386 need_lib_prefix=no
25387 need_version=no
25388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25389 soname_spec='${libname}${release}${shared_ext}$major'
25390 shlibpath_var=LD_LIBRARY_PATH
25391 ;;
25392
25393freebsd1*)
25394 dynamic_linker=no
25395 ;;
25396
Reid Spencer2706f8c2004-09-19 23:53:36 +000025397kfreebsd*-gnu)
25398 version_type=linux
25399 need_lib_prefix=no
25400 need_version=no
25401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25402 soname_spec='${libname}${release}${shared_ext}$major'
25403 shlibpath_var=LD_LIBRARY_PATH
25404 shlibpath_overrides_runpath=no
25405 hardcode_into_libs=yes
25406 dynamic_linker='GNU ld.so'
25407 ;;
25408
Reid Spencera773bd52006-08-04 18:18:08 +000025409freebsd* | dragonfly*)
25410 # DragonFly does not have aout. When/if they implement a new
25411 # versioning mechanism, adjust this.
25412 if test -x /usr/bin/objformat; then
25413 objformat=`/usr/bin/objformat`
25414 else
25415 case $host_os in
25416 freebsd[123]*) objformat=aout ;;
25417 *) objformat=elf ;;
25418 esac
25419 fi
John Criswell47fdd832003-07-14 16:52:07 +000025420 version_type=freebsd-$objformat
25421 case $version_type in
25422 freebsd-elf*)
25423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25424 need_version=no
25425 need_lib_prefix=no
25426 ;;
25427 freebsd-*)
25428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25429 need_version=yes
25430 ;;
25431 esac
25432 shlibpath_var=LD_LIBRARY_PATH
25433 case $host_os in
25434 freebsd2*)
25435 shlibpath_overrides_runpath=yes
25436 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025437 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025438 shlibpath_overrides_runpath=yes
25439 hardcode_into_libs=yes
25440 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025441 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25442 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025443 shlibpath_overrides_runpath=no
25444 hardcode_into_libs=yes
25445 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025446 freebsd*) # from 4.6 on
25447 shlibpath_overrides_runpath=yes
25448 hardcode_into_libs=yes
25449 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025450 esac
25451 ;;
25452
25453gnu*)
25454 version_type=linux
25455 need_lib_prefix=no
25456 need_version=no
25457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25458 soname_spec='${libname}${release}${shared_ext}$major'
25459 shlibpath_var=LD_LIBRARY_PATH
25460 hardcode_into_libs=yes
25461 ;;
25462
25463hpux9* | hpux10* | hpux11*)
25464 # Give a soname corresponding to the major version so that dld.sl refuses to
25465 # link against other versions.
25466 version_type=sunos
25467 need_lib_prefix=no
25468 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025469 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025470 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025471 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025472 hardcode_into_libs=yes
25473 dynamic_linker="$host_os dld.so"
25474 shlibpath_var=LD_LIBRARY_PATH
25475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25477 soname_spec='${libname}${release}${shared_ext}$major'
25478 if test "X$HPUX_IA64_MODE" = X32; then
25479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25480 else
25481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25482 fi
25483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25484 ;;
25485 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025486 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025487 hardcode_into_libs=yes
25488 dynamic_linker="$host_os dld.sl"
25489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25492 soname_spec='${libname}${release}${shared_ext}$major'
25493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25495 ;;
25496 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025497 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025498 dynamic_linker="$host_os dld.sl"
25499 shlibpath_var=SHLIB_PATH
25500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25502 soname_spec='${libname}${release}${shared_ext}$major'
25503 ;;
25504 esac
25505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25506 postinstall_cmds='chmod 555 $lib'
25507 ;;
25508
Reid Spencera773bd52006-08-04 18:18:08 +000025509interix3*)
25510 version_type=linux
25511 need_lib_prefix=no
25512 need_version=no
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25514 soname_spec='${libname}${release}${shared_ext}$major'
25515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25516 shlibpath_var=LD_LIBRARY_PATH
25517 shlibpath_overrides_runpath=no
25518 hardcode_into_libs=yes
25519 ;;
25520
John Criswell47fdd832003-07-14 16:52:07 +000025521irix5* | irix6* | nonstopux*)
25522 case $host_os in
25523 nonstopux*) version_type=nonstopux ;;
25524 *)
25525 if test "$lt_cv_prog_gnu_ld" = yes; then
25526 version_type=linux
25527 else
25528 version_type=irix
25529 fi ;;
25530 esac
25531 need_lib_prefix=no
25532 need_version=no
25533 soname_spec='${libname}${release}${shared_ext}$major'
25534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25535 case $host_os in
25536 irix5* | nonstopux*)
25537 libsuff= shlibsuff=
25538 ;;
25539 *)
25540 case $LD in # libtool.m4 will add one of these switches to LD
25541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25542 libsuff= shlibsuff= libmagic=32-bit;;
25543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25544 libsuff=32 shlibsuff=N32 libmagic=N32;;
25545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25547 *) libsuff= shlibsuff= libmagic=never-match;;
25548 esac
25549 ;;
25550 esac
25551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25552 shlibpath_overrides_runpath=no
25553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25555 hardcode_into_libs=yes
25556 ;;
25557
25558# No shared lib support for Linux oldld, aout, or coff.
25559linux*oldld* | linux*aout* | linux*coff*)
25560 dynamic_linker=no
25561 ;;
25562
25563# This must be Linux ELF.
25564linux*)
25565 version_type=linux
25566 need_lib_prefix=no
25567 need_version=no
25568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25569 soname_spec='${libname}${release}${shared_ext}$major'
25570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25571 shlibpath_var=LD_LIBRARY_PATH
25572 shlibpath_overrides_runpath=no
25573 # This implies no fast_install, which is unacceptable.
25574 # Some rework will be needed to allow for fast_install
25575 # before this can be enabled.
25576 hardcode_into_libs=yes
25577
Reid Spencer2706f8c2004-09-19 23:53:36 +000025578 # Append ld.so.conf contents to the search path
25579 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025580 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 Spencer2706f8c2004-09-19 23:53:36 +000025581 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25582 fi
25583
John Criswell47fdd832003-07-14 16:52:07 +000025584 # We used to test for /lib/ld.so.1 and disable shared libraries on
25585 # powerpc, because MkLinux only supported shared libraries with the
25586 # GNU dynamic linker. Since this was broken with cross compilers,
25587 # most powerpc-linux boxes support dynamic linking these days and
25588 # people can always --disable-shared, the test was removed, and we
25589 # assume the GNU/Linux dynamic linker is in use.
25590 dynamic_linker='GNU/Linux ld.so'
25591 ;;
25592
Reid Spencer2706f8c2004-09-19 23:53:36 +000025593knetbsd*-gnu)
25594 version_type=linux
25595 need_lib_prefix=no
25596 need_version=no
25597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25598 soname_spec='${libname}${release}${shared_ext}$major'
25599 shlibpath_var=LD_LIBRARY_PATH
25600 shlibpath_overrides_runpath=no
25601 hardcode_into_libs=yes
25602 dynamic_linker='GNU ld.so'
25603 ;;
25604
John Criswell47fdd832003-07-14 16:52:07 +000025605netbsd*)
25606 version_type=sunos
25607 need_lib_prefix=no
25608 need_version=no
25609 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25612 dynamic_linker='NetBSD (a.out) ld.so'
25613 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025615 soname_spec='${libname}${release}${shared_ext}$major'
25616 dynamic_linker='NetBSD ld.elf_so'
25617 fi
25618 shlibpath_var=LD_LIBRARY_PATH
25619 shlibpath_overrides_runpath=yes
25620 hardcode_into_libs=yes
25621 ;;
25622
25623newsos6)
25624 version_type=linux
25625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25626 shlibpath_var=LD_LIBRARY_PATH
25627 shlibpath_overrides_runpath=yes
25628 ;;
25629
Reid Spencer2706f8c2004-09-19 23:53:36 +000025630nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025631 version_type=linux
25632 need_lib_prefix=no
25633 need_version=no
25634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25635 soname_spec='${libname}${release}${shared_ext}$major'
25636 shlibpath_var=LD_LIBRARY_PATH
25637 shlibpath_overrides_runpath=yes
25638 ;;
25639
25640openbsd*)
25641 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025642 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025643 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025644 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25645 case $host_os in
25646 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25647 *) need_version=no ;;
25648 esac
John Criswell47fdd832003-07-14 16:52:07 +000025649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25651 shlibpath_var=LD_LIBRARY_PATH
25652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25653 case $host_os in
25654 openbsd2.[89] | openbsd2.[89].*)
25655 shlibpath_overrides_runpath=no
25656 ;;
25657 *)
25658 shlibpath_overrides_runpath=yes
25659 ;;
25660 esac
25661 else
25662 shlibpath_overrides_runpath=yes
25663 fi
25664 ;;
25665
25666os2*)
25667 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025668 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025669 need_lib_prefix=no
25670 library_names_spec='$libname${shared_ext} $libname.a'
25671 dynamic_linker='OS/2 ld.exe'
25672 shlibpath_var=LIBPATH
25673 ;;
25674
25675osf3* | osf4* | osf5*)
25676 version_type=osf
25677 need_lib_prefix=no
25678 need_version=no
25679 soname_spec='${libname}${release}${shared_ext}$major'
25680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25681 shlibpath_var=LD_LIBRARY_PATH
25682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25683 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25684 ;;
25685
John Criswell47fdd832003-07-14 16:52:07 +000025686solaris*)
25687 version_type=linux
25688 need_lib_prefix=no
25689 need_version=no
25690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25691 soname_spec='${libname}${release}${shared_ext}$major'
25692 shlibpath_var=LD_LIBRARY_PATH
25693 shlibpath_overrides_runpath=yes
25694 hardcode_into_libs=yes
25695 # ldd complains unless libraries are executable
25696 postinstall_cmds='chmod +x $lib'
25697 ;;
25698
25699sunos4*)
25700 version_type=sunos
25701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25702 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25703 shlibpath_var=LD_LIBRARY_PATH
25704 shlibpath_overrides_runpath=yes
25705 if test "$with_gnu_ld" = yes; then
25706 need_lib_prefix=no
25707 fi
25708 need_version=yes
25709 ;;
25710
Reid Spencera773bd52006-08-04 18:18:08 +000025711sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025712 version_type=linux
25713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25714 soname_spec='${libname}${release}${shared_ext}$major'
25715 shlibpath_var=LD_LIBRARY_PATH
25716 case $host_vendor in
25717 sni)
25718 shlibpath_overrides_runpath=no
25719 need_lib_prefix=no
25720 export_dynamic_flag_spec='${wl}-Blargedynsym'
25721 runpath_var=LD_RUN_PATH
25722 ;;
25723 siemens)
25724 need_lib_prefix=no
25725 ;;
25726 motorola)
25727 need_lib_prefix=no
25728 need_version=no
25729 shlibpath_overrides_runpath=no
25730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25731 ;;
25732 esac
25733 ;;
25734
25735sysv4*MP*)
25736 if test -d /usr/nec ;then
25737 version_type=linux
25738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25739 soname_spec='$libname${shared_ext}.$major'
25740 shlibpath_var=LD_LIBRARY_PATH
25741 fi
25742 ;;
25743
Reid Spencera773bd52006-08-04 18:18:08 +000025744sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25745 version_type=freebsd-elf
25746 need_lib_prefix=no
25747 need_version=no
25748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25749 soname_spec='${libname}${release}${shared_ext}$major'
25750 shlibpath_var=LD_LIBRARY_PATH
25751 hardcode_into_libs=yes
25752 if test "$with_gnu_ld" = yes; then
25753 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25754 shlibpath_overrides_runpath=no
25755 else
25756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25757 shlibpath_overrides_runpath=yes
25758 case $host_os in
25759 sco3.2v5*)
25760 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25761 ;;
25762 esac
25763 fi
25764 sys_lib_dlsearch_path_spec='/usr/lib'
25765 ;;
25766
John Criswell47fdd832003-07-14 16:52:07 +000025767uts4*)
25768 version_type=linux
25769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25770 soname_spec='${libname}${release}${shared_ext}$major'
25771 shlibpath_var=LD_LIBRARY_PATH
25772 ;;
25773
25774*)
25775 dynamic_linker=no
25776 ;;
25777esac
Reid Spencera773bd52006-08-04 18:18:08 +000025778{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25779echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025780test "$dynamic_linker" = no && can_build_shared=no
25781
Reid Spencera773bd52006-08-04 18:18:08 +000025782variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25783if test "$GCC" = yes; then
25784 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25785fi
25786
25787{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25788echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025789hardcode_action_GCJ=
25790if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25791 test -n "$runpath_var_GCJ" || \
25792 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25793
25794 # We can hardcode non-existant directories.
25795 if test "$hardcode_direct_GCJ" != no &&
25796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25797 # have to relink, otherwise we might link with an installed library
25798 # when we should be linking with a yet-to-be-installed one
25799 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25800 test "$hardcode_minus_L_GCJ" != no; then
25801 # Linking always hardcodes the temporary library directory.
25802 hardcode_action_GCJ=relink
25803 else
25804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25805 hardcode_action_GCJ=immediate
25806 fi
25807else
25808 # We cannot hardcode anything, or else we can only hardcode existing
25809 # directories.
25810 hardcode_action_GCJ=unsupported
25811fi
Reid Spencera773bd52006-08-04 18:18:08 +000025812{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25813echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025814
25815if test "$hardcode_action_GCJ" = relink; then
25816 # Fast installation is not supported
25817 enable_fast_install=no
25818elif test "$shlibpath_overrides_runpath" = yes ||
25819 test "$enable_shared" = no; then
25820 # Fast installation is not necessary
25821 enable_fast_install=needless
25822fi
25823
John Criswell47fdd832003-07-14 16:52:07 +000025824
25825# The else clause should only fire when bootstrapping the
25826# libtool distribution, otherwise you forgot to ship ltmain.sh
25827# with your package, and you will get complaints that there are
25828# no rules to generate ltmain.sh.
25829if test -f "$ltmain"; then
25830 # See if we are running on zsh, and set the options which allow our commands through
25831 # without removal of \ escapes.
25832 if test -n "${ZSH_VERSION+set}" ; then
25833 setopt NO_GLOB_SUBST
25834 fi
25835 # Now quote all the things that may contain metacharacters while being
25836 # careful not to overquote the AC_SUBSTed values. We take copies of the
25837 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025838 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025839 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025840 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25841 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25842 deplibs_check_method reload_flag reload_cmds need_locks \
25843 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25844 lt_cv_sys_global_symbol_to_c_name_address \
25845 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25846 old_postinstall_cmds old_postuninstall_cmds \
25847 compiler_GCJ \
25848 CC_GCJ \
25849 LD_GCJ \
25850 lt_prog_compiler_wl_GCJ \
25851 lt_prog_compiler_pic_GCJ \
25852 lt_prog_compiler_static_GCJ \
25853 lt_prog_compiler_no_builtin_flag_GCJ \
25854 export_dynamic_flag_spec_GCJ \
25855 thread_safe_flag_spec_GCJ \
25856 whole_archive_flag_spec_GCJ \
25857 enable_shared_with_static_runtimes_GCJ \
25858 old_archive_cmds_GCJ \
25859 old_archive_from_new_cmds_GCJ \
25860 predep_objects_GCJ \
25861 postdep_objects_GCJ \
25862 predeps_GCJ \
25863 postdeps_GCJ \
25864 compiler_lib_search_path_GCJ \
25865 archive_cmds_GCJ \
25866 archive_expsym_cmds_GCJ \
25867 postinstall_cmds_GCJ \
25868 postuninstall_cmds_GCJ \
25869 old_archive_from_expsyms_cmds_GCJ \
25870 allow_undefined_flag_GCJ \
25871 no_undefined_flag_GCJ \
25872 export_symbols_cmds_GCJ \
25873 hardcode_libdir_flag_spec_GCJ \
25874 hardcode_libdir_flag_spec_ld_GCJ \
25875 hardcode_libdir_separator_GCJ \
25876 hardcode_automatic_GCJ \
25877 module_cmds_GCJ \
25878 module_expsym_cmds_GCJ \
25879 lt_cv_prog_compiler_c_o_GCJ \
25880 exclude_expsyms_GCJ \
25881 include_expsyms_GCJ; do
25882
25883 case $var in
25884 old_archive_cmds_GCJ | \
25885 old_archive_from_new_cmds_GCJ | \
25886 archive_cmds_GCJ | \
25887 archive_expsym_cmds_GCJ | \
25888 module_cmds_GCJ | \
25889 module_expsym_cmds_GCJ | \
25890 old_archive_from_expsyms_cmds_GCJ | \
25891 export_symbols_cmds_GCJ | \
25892 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25893 postinstall_cmds | postuninstall_cmds | \
25894 old_postinstall_cmds | old_postuninstall_cmds | \
25895 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25896 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025897 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000025898 ;;
25899 *)
25900 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25901 ;;
25902 esac
25903 done
25904
25905 case $lt_echo in
25906 *'\$0 --fallback-echo"')
25907 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25908 ;;
25909 esac
25910
25911cfgfile="$ofile"
25912
25913 cat <<__EOF__ >> "$cfgfile"
25914# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25915
25916# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25917
25918# Shell to use when invoking shell scripts.
25919SHELL=$lt_SHELL
25920
25921# Whether or not to build shared libraries.
25922build_libtool_libs=$enable_shared
25923
25924# Whether or not to build static libraries.
25925build_old_libs=$enable_static
25926
25927# Whether or not to add -lc for building shared libraries.
25928build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25929
25930# Whether or not to disallow shared libs when runtime libs are static
25931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25932
25933# Whether or not to optimize for fast installation.
25934fast_install=$enable_fast_install
25935
25936# The host system.
25937host_alias=$host_alias
25938host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025939host_os=$host_os
25940
25941# The build system.
25942build_alias=$build_alias
25943build=$build
25944build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025945
25946# An echo program that does not interpret backslashes.
25947echo=$lt_echo
25948
25949# The archiver.
25950AR=$lt_AR
25951AR_FLAGS=$lt_AR_FLAGS
25952
25953# A C compiler.
25954LTCC=$lt_LTCC
25955
Reid Spencera773bd52006-08-04 18:18:08 +000025956# LTCC compiler flags.
25957LTCFLAGS=$lt_LTCFLAGS
25958
John Criswell47fdd832003-07-14 16:52:07 +000025959# A language-specific compiler.
25960CC=$lt_compiler_GCJ
25961
25962# Is the compiler the GNU C compiler?
25963with_gcc=$GCC_GCJ
25964
25965# An ERE matcher.
25966EGREP=$lt_EGREP
25967
25968# The linker used to build libraries.
25969LD=$lt_LD_GCJ
25970
25971# Whether we need hard or soft links.
25972LN_S=$lt_LN_S
25973
25974# A BSD-compatible nm program.
25975NM=$lt_NM
25976
25977# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025978STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025979
25980# Used to examine libraries when file_magic_cmd begins "file"
25981MAGIC_CMD=$MAGIC_CMD
25982
25983# Used on cygwin: DLL creation program.
25984DLLTOOL="$DLLTOOL"
25985
25986# Used on cygwin: object dumper.
25987OBJDUMP="$OBJDUMP"
25988
25989# Used on cygwin: assembler.
25990AS="$AS"
25991
25992# The name of the directory that contains temporary libtool files.
25993objdir=$objdir
25994
25995# How to create reloadable object files.
25996reload_flag=$lt_reload_flag
25997reload_cmds=$lt_reload_cmds
25998
25999# How to pass a linker flag through the compiler.
26000wl=$lt_lt_prog_compiler_wl_GCJ
26001
26002# Object file suffix (normally "o").
26003objext="$ac_objext"
26004
26005# Old archive suffix (normally "a").
26006libext="$libext"
26007
26008# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026009shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026010
26011# Executable file suffix (normally "").
26012exeext="$exeext"
26013
26014# Additional compiler flags for building library objects.
26015pic_flag=$lt_lt_prog_compiler_pic_GCJ
26016pic_mode=$pic_mode
26017
26018# What is the maximum length of a command?
26019max_cmd_len=$lt_cv_sys_max_cmd_len
26020
26021# Does compiler simultaneously support -c and -o options?
26022compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26023
Reid Spencera773bd52006-08-04 18:18:08 +000026024# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026025need_locks=$lt_need_locks
26026
26027# Do we need the lib prefix for modules?
26028need_lib_prefix=$need_lib_prefix
26029
26030# Do we need a version for libraries?
26031need_version=$need_version
26032
26033# Whether dlopen is supported.
26034dlopen_support=$enable_dlopen
26035
26036# Whether dlopen of programs is supported.
26037dlopen_self=$enable_dlopen_self
26038
26039# Whether dlopen of statically linked programs is supported.
26040dlopen_self_static=$enable_dlopen_self_static
26041
26042# Compiler flag to prevent dynamic linking.
26043link_static_flag=$lt_lt_prog_compiler_static_GCJ
26044
26045# Compiler flag to turn off builtin functions.
26046no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26047
26048# Compiler flag to allow reflexive dlopens.
26049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26050
26051# Compiler flag to generate shared objects directly from archives.
26052whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26053
26054# Compiler flag to generate thread-safe objects.
26055thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26056
26057# Library versioning type.
26058version_type=$version_type
26059
26060# Format of library name prefix.
26061libname_spec=$lt_libname_spec
26062
26063# List of archive names. First name is the real one, the rest are links.
26064# The last name is the one that the linker finds with -lNAME.
26065library_names_spec=$lt_library_names_spec
26066
26067# The coded name of the library, if different from the real name.
26068soname_spec=$lt_soname_spec
26069
26070# Commands used to build and install an old-style archive.
26071RANLIB=$lt_RANLIB
26072old_archive_cmds=$lt_old_archive_cmds_GCJ
26073old_postinstall_cmds=$lt_old_postinstall_cmds
26074old_postuninstall_cmds=$lt_old_postuninstall_cmds
26075
26076# Create an old-style archive from a shared archive.
26077old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26078
26079# Create a temporary old-style archive to link instead of a shared archive.
26080old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26081
26082# Commands used to build and install a shared archive.
26083archive_cmds=$lt_archive_cmds_GCJ
26084archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26085postinstall_cmds=$lt_postinstall_cmds
26086postuninstall_cmds=$lt_postuninstall_cmds
26087
26088# Commands used to build a loadable module (assumed same as above if empty)
26089module_cmds=$lt_module_cmds_GCJ
26090module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26091
26092# Commands to strip libraries.
26093old_striplib=$lt_old_striplib
26094striplib=$lt_striplib
26095
26096# Dependencies to place before the objects being linked to create a
26097# shared library.
26098predep_objects=$lt_predep_objects_GCJ
26099
26100# Dependencies to place after the objects being linked to create a
26101# shared library.
26102postdep_objects=$lt_postdep_objects_GCJ
26103
26104# Dependencies to place before the objects being linked to create a
26105# shared library.
26106predeps=$lt_predeps_GCJ
26107
26108# Dependencies to place after the objects being linked to create a
26109# shared library.
26110postdeps=$lt_postdeps_GCJ
26111
26112# The library search path used internally by the compiler when linking
26113# a shared library.
26114compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26115
26116# Method to check whether dependent libraries are shared objects.
26117deplibs_check_method=$lt_deplibs_check_method
26118
26119# Command to use when deplibs_check_method == file_magic.
26120file_magic_cmd=$lt_file_magic_cmd
26121
26122# Flag that allows shared libraries with undefined symbols to be built.
26123allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26124
26125# Flag that forces no undefined symbols.
26126no_undefined_flag=$lt_no_undefined_flag_GCJ
26127
26128# Commands used to finish a libtool library installation in a directory.
26129finish_cmds=$lt_finish_cmds
26130
26131# Same as above, but a single script fragment to be evaled but not shown.
26132finish_eval=$lt_finish_eval
26133
26134# Take the output of nm and produce a listing of raw symbols and C names.
26135global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26136
26137# Transform the output of nm in a proper C declaration
26138global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26139
26140# Transform the output of nm in a C name address pair
26141global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26142
26143# This is the shared library runtime path variable.
26144runpath_var=$runpath_var
26145
26146# This is the shared library path variable.
26147shlibpath_var=$shlibpath_var
26148
26149# Is shlibpath searched before the hard-coded library search path?
26150shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26151
26152# How to hardcode a shared library path into an executable.
26153hardcode_action=$hardcode_action_GCJ
26154
26155# Whether we should hardcode library paths into libraries.
26156hardcode_into_libs=$hardcode_into_libs
26157
26158# Flag to hardcode \$libdir into a binary during linking.
26159# This must work even if \$libdir does not exist.
26160hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26161
26162# If ld is used when linking, flag to hardcode \$libdir into
26163# a binary during linking. This must work even if \$libdir does
26164# not exist.
26165hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26166
26167# Whether we need a single -rpath flag with a separated argument.
26168hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26169
26170# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26171# resulting binary.
26172hardcode_direct=$hardcode_direct_GCJ
26173
26174# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26175# resulting binary.
26176hardcode_minus_L=$hardcode_minus_L_GCJ
26177
26178# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26179# the resulting binary.
26180hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26181
26182# Set to yes if building a shared library automatically hardcodes DIR into the library
26183# and all subsequent libraries and executables linked against it.
26184hardcode_automatic=$hardcode_automatic_GCJ
26185
26186# Variables whose values should be saved in libtool wrapper scripts and
26187# restored at relink time.
26188variables_saved_for_relink="$variables_saved_for_relink"
26189
26190# Whether libtool must link a program against all its dependency libraries.
26191link_all_deplibs=$link_all_deplibs_GCJ
26192
26193# Compile-time system search path for libraries
26194sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26195
26196# Run-time system search path for libraries
26197sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26198
26199# Fix the shell variable \$srcfile for the compiler.
26200fix_srcfile_path="$fix_srcfile_path_GCJ"
26201
26202# Set to yes if exported symbols are required.
26203always_export_symbols=$always_export_symbols_GCJ
26204
26205# The commands to list exported symbols.
26206export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26207
26208# The commands to extract the exported symbol list from a shared archive.
26209extract_expsyms_cmds=$lt_extract_expsyms_cmds
26210
26211# Symbols that should not be listed in the preloaded symbols.
26212exclude_expsyms=$lt_exclude_expsyms_GCJ
26213
26214# Symbols that must always be exported.
26215include_expsyms=$lt_include_expsyms_GCJ
26216
26217# ### END LIBTOOL TAG CONFIG: $tagname
26218
26219__EOF__
26220
26221
26222else
26223 # If there is no Makefile yet, we rely on a make rule to execute
26224 # `config.status --recheck' to rerun these tests and create the
26225 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026226 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26227 if test -f "$ltmain_in"; then
26228 test -f Makefile && make "$ltmain"
26229 fi
John Criswell47fdd832003-07-14 16:52:07 +000026230fi
26231
26232
26233ac_ext=c
26234ac_cpp='$CPP $CPPFLAGS'
26235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26237ac_compiler_gnu=$ac_cv_c_compiler_gnu
26238
26239CC="$lt_save_CC"
26240
26241 else
26242 tagname=""
26243 fi
26244 ;;
26245
26246 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026247 ac_ext=c
26248ac_cpp='$CPP $CPPFLAGS'
26249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26251ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026252
26253
26254# Source file extension for RC test sources.
26255ac_ext=rc
26256
26257# Object file extension for compiled RC test sources.
26258objext=o
26259objext_RC=$objext
26260
26261# Code to be used in simple compile tests
26262lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26263
26264# Code to be used in simple link tests
26265lt_simple_link_test_code="$lt_simple_compile_test_code"
26266
26267# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26268
26269# If no C compiler was specified, use CC.
26270LTCC=${LTCC-"$CC"}
26271
Reid Spencera773bd52006-08-04 18:18:08 +000026272# If no C compiler flags were specified, use CFLAGS.
26273LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26274
John Criswell47fdd832003-07-14 16:52:07 +000026275# Allow CC to be a program name with arguments.
26276compiler=$CC
26277
26278
Reid Spencera773bd52006-08-04 18:18:08 +000026279# save warnings/boilerplate of simple test code
26280ac_outfile=conftest.$ac_objext
26281printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26282eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26283_lt_compiler_boilerplate=`cat conftest.err`
26284$rm conftest*
26285
26286ac_outfile=conftest.$ac_objext
26287printf "$lt_simple_link_test_code" >conftest.$ac_ext
26288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26289_lt_linker_boilerplate=`cat conftest.err`
26290$rm conftest*
26291
26292
John Criswell47fdd832003-07-14 16:52:07 +000026293# Allow CC to be a program name with arguments.
26294lt_save_CC="$CC"
26295CC=${RC-"windres"}
26296compiler=$CC
26297compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026298for cc_temp in $compiler""; do
26299 case $cc_temp in
26300 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26301 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26302 \-*) ;;
26303 *) break;;
26304 esac
26305done
26306cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26307
John Criswell47fdd832003-07-14 16:52:07 +000026308lt_cv_prog_compiler_c_o_RC=yes
26309
26310# The else clause should only fire when bootstrapping the
26311# libtool distribution, otherwise you forgot to ship ltmain.sh
26312# with your package, and you will get complaints that there are
26313# no rules to generate ltmain.sh.
26314if test -f "$ltmain"; then
26315 # See if we are running on zsh, and set the options which allow our commands through
26316 # without removal of \ escapes.
26317 if test -n "${ZSH_VERSION+set}" ; then
26318 setopt NO_GLOB_SUBST
26319 fi
26320 # Now quote all the things that may contain metacharacters while being
26321 # careful not to overquote the AC_SUBSTed values. We take copies of the
26322 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026323 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026324 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026325 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26326 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26327 deplibs_check_method reload_flag reload_cmds need_locks \
26328 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26329 lt_cv_sys_global_symbol_to_c_name_address \
26330 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26331 old_postinstall_cmds old_postuninstall_cmds \
26332 compiler_RC \
26333 CC_RC \
26334 LD_RC \
26335 lt_prog_compiler_wl_RC \
26336 lt_prog_compiler_pic_RC \
26337 lt_prog_compiler_static_RC \
26338 lt_prog_compiler_no_builtin_flag_RC \
26339 export_dynamic_flag_spec_RC \
26340 thread_safe_flag_spec_RC \
26341 whole_archive_flag_spec_RC \
26342 enable_shared_with_static_runtimes_RC \
26343 old_archive_cmds_RC \
26344 old_archive_from_new_cmds_RC \
26345 predep_objects_RC \
26346 postdep_objects_RC \
26347 predeps_RC \
26348 postdeps_RC \
26349 compiler_lib_search_path_RC \
26350 archive_cmds_RC \
26351 archive_expsym_cmds_RC \
26352 postinstall_cmds_RC \
26353 postuninstall_cmds_RC \
26354 old_archive_from_expsyms_cmds_RC \
26355 allow_undefined_flag_RC \
26356 no_undefined_flag_RC \
26357 export_symbols_cmds_RC \
26358 hardcode_libdir_flag_spec_RC \
26359 hardcode_libdir_flag_spec_ld_RC \
26360 hardcode_libdir_separator_RC \
26361 hardcode_automatic_RC \
26362 module_cmds_RC \
26363 module_expsym_cmds_RC \
26364 lt_cv_prog_compiler_c_o_RC \
26365 exclude_expsyms_RC \
26366 include_expsyms_RC; do
26367
26368 case $var in
26369 old_archive_cmds_RC | \
26370 old_archive_from_new_cmds_RC | \
26371 archive_cmds_RC | \
26372 archive_expsym_cmds_RC | \
26373 module_cmds_RC | \
26374 module_expsym_cmds_RC | \
26375 old_archive_from_expsyms_cmds_RC | \
26376 export_symbols_cmds_RC | \
26377 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26378 postinstall_cmds | postuninstall_cmds | \
26379 old_postinstall_cmds | old_postuninstall_cmds | \
26380 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26381 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000026383 ;;
26384 *)
26385 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26386 ;;
26387 esac
26388 done
26389
26390 case $lt_echo in
26391 *'\$0 --fallback-echo"')
26392 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26393 ;;
26394 esac
26395
26396cfgfile="$ofile"
26397
26398 cat <<__EOF__ >> "$cfgfile"
26399# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26400
26401# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26402
26403# Shell to use when invoking shell scripts.
26404SHELL=$lt_SHELL
26405
26406# Whether or not to build shared libraries.
26407build_libtool_libs=$enable_shared
26408
26409# Whether or not to build static libraries.
26410build_old_libs=$enable_static
26411
26412# Whether or not to add -lc for building shared libraries.
26413build_libtool_need_lc=$archive_cmds_need_lc_RC
26414
26415# Whether or not to disallow shared libs when runtime libs are static
26416allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26417
26418# Whether or not to optimize for fast installation.
26419fast_install=$enable_fast_install
26420
26421# The host system.
26422host_alias=$host_alias
26423host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026424host_os=$host_os
26425
26426# The build system.
26427build_alias=$build_alias
26428build=$build
26429build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026430
26431# An echo program that does not interpret backslashes.
26432echo=$lt_echo
26433
26434# The archiver.
26435AR=$lt_AR
26436AR_FLAGS=$lt_AR_FLAGS
26437
26438# A C compiler.
26439LTCC=$lt_LTCC
26440
Reid Spencera773bd52006-08-04 18:18:08 +000026441# LTCC compiler flags.
26442LTCFLAGS=$lt_LTCFLAGS
26443
John Criswell47fdd832003-07-14 16:52:07 +000026444# A language-specific compiler.
26445CC=$lt_compiler_RC
26446
26447# Is the compiler the GNU C compiler?
26448with_gcc=$GCC_RC
26449
26450# An ERE matcher.
26451EGREP=$lt_EGREP
26452
26453# The linker used to build libraries.
26454LD=$lt_LD_RC
26455
26456# Whether we need hard or soft links.
26457LN_S=$lt_LN_S
26458
26459# A BSD-compatible nm program.
26460NM=$lt_NM
26461
26462# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026463STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026464
26465# Used to examine libraries when file_magic_cmd begins "file"
26466MAGIC_CMD=$MAGIC_CMD
26467
26468# Used on cygwin: DLL creation program.
26469DLLTOOL="$DLLTOOL"
26470
26471# Used on cygwin: object dumper.
26472OBJDUMP="$OBJDUMP"
26473
26474# Used on cygwin: assembler.
26475AS="$AS"
26476
26477# The name of the directory that contains temporary libtool files.
26478objdir=$objdir
26479
26480# How to create reloadable object files.
26481reload_flag=$lt_reload_flag
26482reload_cmds=$lt_reload_cmds
26483
26484# How to pass a linker flag through the compiler.
26485wl=$lt_lt_prog_compiler_wl_RC
26486
26487# Object file suffix (normally "o").
26488objext="$ac_objext"
26489
26490# Old archive suffix (normally "a").
26491libext="$libext"
26492
26493# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026494shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026495
26496# Executable file suffix (normally "").
26497exeext="$exeext"
26498
26499# Additional compiler flags for building library objects.
26500pic_flag=$lt_lt_prog_compiler_pic_RC
26501pic_mode=$pic_mode
26502
26503# What is the maximum length of a command?
26504max_cmd_len=$lt_cv_sys_max_cmd_len
26505
26506# Does compiler simultaneously support -c and -o options?
26507compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26508
Reid Spencera773bd52006-08-04 18:18:08 +000026509# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026510need_locks=$lt_need_locks
26511
26512# Do we need the lib prefix for modules?
26513need_lib_prefix=$need_lib_prefix
26514
26515# Do we need a version for libraries?
26516need_version=$need_version
26517
26518# Whether dlopen is supported.
26519dlopen_support=$enable_dlopen
26520
26521# Whether dlopen of programs is supported.
26522dlopen_self=$enable_dlopen_self
26523
26524# Whether dlopen of statically linked programs is supported.
26525dlopen_self_static=$enable_dlopen_self_static
26526
26527# Compiler flag to prevent dynamic linking.
26528link_static_flag=$lt_lt_prog_compiler_static_RC
26529
26530# Compiler flag to turn off builtin functions.
26531no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26532
26533# Compiler flag to allow reflexive dlopens.
26534export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26535
26536# Compiler flag to generate shared objects directly from archives.
26537whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26538
26539# Compiler flag to generate thread-safe objects.
26540thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26541
26542# Library versioning type.
26543version_type=$version_type
26544
26545# Format of library name prefix.
26546libname_spec=$lt_libname_spec
26547
26548# List of archive names. First name is the real one, the rest are links.
26549# The last name is the one that the linker finds with -lNAME.
26550library_names_spec=$lt_library_names_spec
26551
26552# The coded name of the library, if different from the real name.
26553soname_spec=$lt_soname_spec
26554
26555# Commands used to build and install an old-style archive.
26556RANLIB=$lt_RANLIB
26557old_archive_cmds=$lt_old_archive_cmds_RC
26558old_postinstall_cmds=$lt_old_postinstall_cmds
26559old_postuninstall_cmds=$lt_old_postuninstall_cmds
26560
26561# Create an old-style archive from a shared archive.
26562old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26563
26564# Create a temporary old-style archive to link instead of a shared archive.
26565old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26566
26567# Commands used to build and install a shared archive.
26568archive_cmds=$lt_archive_cmds_RC
26569archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26570postinstall_cmds=$lt_postinstall_cmds
26571postuninstall_cmds=$lt_postuninstall_cmds
26572
26573# Commands used to build a loadable module (assumed same as above if empty)
26574module_cmds=$lt_module_cmds_RC
26575module_expsym_cmds=$lt_module_expsym_cmds_RC
26576
26577# Commands to strip libraries.
26578old_striplib=$lt_old_striplib
26579striplib=$lt_striplib
26580
26581# Dependencies to place before the objects being linked to create a
26582# shared library.
26583predep_objects=$lt_predep_objects_RC
26584
26585# Dependencies to place after the objects being linked to create a
26586# shared library.
26587postdep_objects=$lt_postdep_objects_RC
26588
26589# Dependencies to place before the objects being linked to create a
26590# shared library.
26591predeps=$lt_predeps_RC
26592
26593# Dependencies to place after the objects being linked to create a
26594# shared library.
26595postdeps=$lt_postdeps_RC
26596
26597# The library search path used internally by the compiler when linking
26598# a shared library.
26599compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26600
26601# Method to check whether dependent libraries are shared objects.
26602deplibs_check_method=$lt_deplibs_check_method
26603
26604# Command to use when deplibs_check_method == file_magic.
26605file_magic_cmd=$lt_file_magic_cmd
26606
26607# Flag that allows shared libraries with undefined symbols to be built.
26608allow_undefined_flag=$lt_allow_undefined_flag_RC
26609
26610# Flag that forces no undefined symbols.
26611no_undefined_flag=$lt_no_undefined_flag_RC
26612
26613# Commands used to finish a libtool library installation in a directory.
26614finish_cmds=$lt_finish_cmds
26615
26616# Same as above, but a single script fragment to be evaled but not shown.
26617finish_eval=$lt_finish_eval
26618
26619# Take the output of nm and produce a listing of raw symbols and C names.
26620global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26621
26622# Transform the output of nm in a proper C declaration
26623global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26624
26625# Transform the output of nm in a C name address pair
26626global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26627
26628# This is the shared library runtime path variable.
26629runpath_var=$runpath_var
26630
26631# This is the shared library path variable.
26632shlibpath_var=$shlibpath_var
26633
26634# Is shlibpath searched before the hard-coded library search path?
26635shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26636
26637# How to hardcode a shared library path into an executable.
26638hardcode_action=$hardcode_action_RC
26639
26640# Whether we should hardcode library paths into libraries.
26641hardcode_into_libs=$hardcode_into_libs
26642
26643# Flag to hardcode \$libdir into a binary during linking.
26644# This must work even if \$libdir does not exist.
26645hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26646
26647# If ld is used when linking, flag to hardcode \$libdir into
26648# a binary during linking. This must work even if \$libdir does
26649# not exist.
26650hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26651
26652# Whether we need a single -rpath flag with a separated argument.
26653hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26654
26655# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26656# resulting binary.
26657hardcode_direct=$hardcode_direct_RC
26658
26659# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26660# resulting binary.
26661hardcode_minus_L=$hardcode_minus_L_RC
26662
26663# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26664# the resulting binary.
26665hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26666
26667# Set to yes if building a shared library automatically hardcodes DIR into the library
26668# and all subsequent libraries and executables linked against it.
26669hardcode_automatic=$hardcode_automatic_RC
26670
26671# Variables whose values should be saved in libtool wrapper scripts and
26672# restored at relink time.
26673variables_saved_for_relink="$variables_saved_for_relink"
26674
26675# Whether libtool must link a program against all its dependency libraries.
26676link_all_deplibs=$link_all_deplibs_RC
26677
26678# Compile-time system search path for libraries
26679sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26680
26681# Run-time system search path for libraries
26682sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26683
26684# Fix the shell variable \$srcfile for the compiler.
26685fix_srcfile_path="$fix_srcfile_path_RC"
26686
26687# Set to yes if exported symbols are required.
26688always_export_symbols=$always_export_symbols_RC
26689
26690# The commands to list exported symbols.
26691export_symbols_cmds=$lt_export_symbols_cmds_RC
26692
26693# The commands to extract the exported symbol list from a shared archive.
26694extract_expsyms_cmds=$lt_extract_expsyms_cmds
26695
26696# Symbols that should not be listed in the preloaded symbols.
26697exclude_expsyms=$lt_exclude_expsyms_RC
26698
26699# Symbols that must always be exported.
26700include_expsyms=$lt_include_expsyms_RC
26701
26702# ### END LIBTOOL TAG CONFIG: $tagname
26703
26704__EOF__
26705
26706
26707else
26708 # If there is no Makefile yet, we rely on a make rule to execute
26709 # `config.status --recheck' to rerun these tests and create the
26710 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026711 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26712 if test -f "$ltmain_in"; then
26713 test -f Makefile && make "$ltmain"
26714 fi
John Criswell47fdd832003-07-14 16:52:07 +000026715fi
26716
26717
26718ac_ext=c
26719ac_cpp='$CPP $CPPFLAGS'
26720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26722ac_compiler_gnu=$ac_cv_c_compiler_gnu
26723
26724CC="$lt_save_CC"
26725
26726 ;;
26727
26728 *)
26729 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26730echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26731 { (exit 1); exit 1; }; }
26732 ;;
26733 esac
26734
26735 # Append the new tag name to the list of available tags.
26736 if test -n "$tagname" ; then
26737 available_tags="$available_tags $tagname"
26738 fi
26739 fi
26740 done
26741 IFS="$lt_save_ifs"
26742
26743 # Now substitute the updated list of available tags.
26744 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26745 mv "${ofile}T" "$ofile"
26746 chmod +x "$ofile"
26747 else
26748 rm -f "${ofile}T"
26749 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26750echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26751 { (exit 1); exit 1; }; }
26752 fi
26753fi
John Criswell7a73b802003-06-30 21:59:07 +000026754
26755
26756
26757# This can be used to rebuild libtool when needed
26758LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26759
26760# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026761LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026762
26763# Prevent multiple expansion
26764
26765
26766
John Criswell47fdd832003-07-14 16:52:07 +000026767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026784
Reid Spencer582a23c2004-12-29 07:07:57 +000026785if test "$lt_cv_dlopen_self" = "yes" ; then
26786
26787cat >>confdefs.h <<\_ACEOF
26788#define CAN_DLOPEN_SELF 1
26789_ACEOF
26790
26791fi
26792
Reid Spencer7931a782004-12-27 06:15:02 +000026793if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026794 LLVMGCC="llvm-gcc${EXEEXT}"
26795 LLVMGXX="llvm-g++${EXEEXT}"
26796 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26797set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026800if test "${ac_cv_path_LLVMGCC+set}" = set; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26802else
26803 case $LLVMGCC in
26804 [\\/]* | ?:[\\/]*)
26805 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26806 ;;
26807 *)
26808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26809for as_dir in $PATH
26810do
26811 IFS=$as_save_IFS
26812 test -z "$as_dir" && as_dir=.
26813 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026815 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26817 break 2
26818 fi
26819done
26820done
Reid Spencera773bd52006-08-04 18:18:08 +000026821IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026822
Reid Spencer59473af2004-12-25 07:31:29 +000026823 ;;
26824esac
26825fi
26826LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026827if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026828 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26829echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026830else
Reid Spencera773bd52006-08-04 18:18:08 +000026831 { echo "$as_me:$LINENO: result: no" >&5
26832echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026833fi
26834
Reid Spencera773bd52006-08-04 18:18:08 +000026835
Reid Spencerc84492c2005-06-02 22:34:49 +000026836 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26837set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026840if test "${ac_cv_path_LLVMGXX+set}" = set; then
26841 echo $ECHO_N "(cached) $ECHO_C" >&6
26842else
26843 case $LLVMGXX in
26844 [\\/]* | ?:[\\/]*)
26845 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26846 ;;
26847 *)
26848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26849for as_dir in $PATH
26850do
26851 IFS=$as_save_IFS
26852 test -z "$as_dir" && as_dir=.
26853 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026855 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26857 break 2
26858 fi
26859done
26860done
Reid Spencera773bd52006-08-04 18:18:08 +000026861IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026862
Reid Spencer59473af2004-12-25 07:31:29 +000026863 ;;
26864esac
26865fi
26866LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026867if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026868 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26869echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026870else
Reid Spencera773bd52006-08-04 18:18:08 +000026871 { echo "$as_me:$LINENO: result: no" >&5
26872echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026873fi
26874
Reid Spencera773bd52006-08-04 18:18:08 +000026875
Reid Spencer59473af2004-12-25 07:31:29 +000026876else
Devang Patel5d28b882007-12-04 22:54:47 +000026877 if test -z "$LLVMGCC"; then
26878 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26879 fi
26880 if test -z "$LLVMGXX"; then
26881 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26882 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026883 LLVMGCC=$LLVMGCC
26884
26885 LLVMGXX=$LLVMGXX
26886
26887fi
26888
Reid Spencera773bd52006-08-04 18:18:08 +000026889{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26890echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026891
Reid Spencer86901802004-12-08 23:07:27 +000026892ICC=no
26893IXX=no
26894case $CC in
26895 icc*|icpc*)
26896 ICC=yes
26897 IXX=yes
26898 ;;
26899 *)
26900 ;;
26901esac
26902
Duraid Madina937c60a2006-02-15 07:57:42 +000026903if test "$GCC" != "yes" && test "$ICC" != "yes"
26904then
26905 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26906echo "$as_me: error: gcc|icc required but not found" >&2;}
26907 { (exit 1); exit 1; }; }
26908fi
26909
26910if test "$GXX" != "yes" && test "$IXX" != "yes"
26911then
26912 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26913echo "$as_me: error: g++|icc required but not found" >&2;}
26914 { (exit 1); exit 1; }; }
26915fi
26916
Reid Spencer86901802004-12-08 23:07:27 +000026917if test "$GCC" = "yes"
26918then
Chris Lattner399c7c72008-02-05 19:43:53 +000026919 cat >conftest.$ac_ext <<_ACEOF
26920#if !defined(__GNUC__) || __GNUC__ < 3
26921#error Unsupported GCC version
26922#endif
26923
26924_ACEOF
26925rm -f conftest.$ac_objext
26926if { (ac_try="$ac_compile"
26927case "(($ac_try" in
26928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929 *) ac_try_echo=$ac_try;;
26930esac
26931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26932 (eval "$ac_compile") 2>conftest.er1
26933 ac_status=$?
26934 grep -v '^ *+' conftest.er1 >conftest.err
26935 rm -f conftest.er1
26936 cat conftest.err >&5
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026938 (exit $ac_status); } &&
26939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26940 { (case "(($ac_try" in
26941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942 *) ac_try_echo=$ac_try;;
26943esac
26944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945 (eval "$ac_try") 2>&5
26946 ac_status=$?
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); }; } &&
26949 { ac_try='test -s conftest.$ac_objext'
26950 { (case "(($ac_try" in
26951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952 *) ac_try_echo=$ac_try;;
26953esac
26954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955 (eval "$ac_try") 2>&5
26956 ac_status=$?
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000026959 :
26960else
26961 echo "$as_me: failed program was:" >&5
26962sed 's/^/| /' conftest.$ac_ext >&5
26963
26964 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026965echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26966 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000026967fi
26968
26969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026970fi
26971
26972if test -z "$llvm_cv_gnu_make_command"
26973then
26974 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26975echo "$as_me: error: GNU Make required but not found" >&2;}
26976 { (exit 1); exit 1; }; }
26977fi
26978
Reid Spencera773bd52006-08-04 18:18:08 +000026979{ echo "$as_me:$LINENO: result: ok" >&5
26980echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026981
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026982
John Criswell7a73b802003-06-30 21:59:07 +000026983
Reid Spencera773bd52006-08-04 18:18:08 +000026984{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26985echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026986if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26987 echo $ECHO_N "(cached) $ECHO_C" >&6
26988else
26989 ac_check_lib_save_LIBS=$LIBS
26990LIBS="-lelf $LIBS"
26991cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026992/* confdefs.h. */
26993_ACEOF
26994cat confdefs.h >>conftest.$ac_ext
26995cat >>conftest.$ac_ext <<_ACEOF
26996/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026997
Reid Spencera773bd52006-08-04 18:18:08 +000026998/* Override any GCC internal prototype to avoid an error.
26999 Use char because int might match the return type of a GCC
27000 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027001#ifdef __cplusplus
27002extern "C"
27003#endif
John Criswell7a73b802003-06-30 21:59:07 +000027004char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027005int
27006main ()
27007{
Reid Spencera773bd52006-08-04 18:18:08 +000027008return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027009 ;
27010 return 0;
27011}
27012_ACEOF
27013rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027014if { (ac_try="$ac_link"
27015case "(($ac_try" in
27016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017 *) ac_try_echo=$ac_try;;
27018esac
27019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27020 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027022 grep -v '^ *+' conftest.er1 >conftest.err
27023 rm -f conftest.er1
27024 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027026 (exit $ac_status); } &&
27027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27028 { (case "(($ac_try" in
27029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030 *) ac_try_echo=$ac_try;;
27031esac
27032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27033 (eval "$ac_try") 2>&5
27034 ac_status=$?
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; } &&
27037 { ac_try='test -s conftest$ac_exeext'
27038 { (case "(($ac_try" in
27039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040 *) ac_try_echo=$ac_try;;
27041esac
27042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043 (eval "$ac_try") 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027047 ac_cv_lib_elf_elf_begin=yes
27048else
27049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027050sed 's/^/| /' conftest.$ac_ext >&5
27051
Reid Spencera773bd52006-08-04 18:18:08 +000027052 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027053fi
Reid Spencera773bd52006-08-04 18:18:08 +000027054
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027055rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027056 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027057LIBS=$ac_check_lib_save_LIBS
27058fi
Reid Spencera773bd52006-08-04 18:18:08 +000027059{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27060echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027061if test $ac_cv_lib_elf_elf_begin = yes; then
27062 cat >>confdefs.h <<_ACEOF
27063#define HAVE_LIBELF 1
27064_ACEOF
27065
27066 LIBS="-lelf $LIBS"
27067
27068fi
27069
27070
Reid Spencera773bd52006-08-04 18:18:08 +000027071{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27072echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027073if test "${ac_cv_lib_m_sin+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27075else
27076 ac_check_lib_save_LIBS=$LIBS
27077LIBS="-lm $LIBS"
27078cat >conftest.$ac_ext <<_ACEOF
27079/* confdefs.h. */
27080_ACEOF
27081cat confdefs.h >>conftest.$ac_ext
27082cat >>conftest.$ac_ext <<_ACEOF
27083/* end confdefs.h. */
27084
Reid Spencera773bd52006-08-04 18:18:08 +000027085/* Override any GCC internal prototype to avoid an error.
27086 Use char because int might match the return type of a GCC
27087 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027088#ifdef __cplusplus
27089extern "C"
27090#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027091char sin ();
27092int
27093main ()
27094{
Reid Spencera773bd52006-08-04 18:18:08 +000027095return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027096 ;
27097 return 0;
27098}
27099_ACEOF
27100rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027101if { (ac_try="$ac_link"
27102case "(($ac_try" in
27103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104 *) ac_try_echo=$ac_try;;
27105esac
27106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027108 ac_status=$?
27109 grep -v '^ *+' conftest.er1 >conftest.err
27110 rm -f conftest.er1
27111 cat conftest.err >&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027113 (exit $ac_status); } &&
27114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118esac
27119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
27121 ac_status=$?
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; } &&
27124 { ac_try='test -s conftest$ac_exeext'
27125 { (case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27128esac
27129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130 (eval "$ac_try") 2>&5
27131 ac_status=$?
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027134 ac_cv_lib_m_sin=yes
27135else
27136 echo "$as_me: failed program was:" >&5
27137sed 's/^/| /' conftest.$ac_ext >&5
27138
Reid Spencera773bd52006-08-04 18:18:08 +000027139 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027140fi
Reid Spencera773bd52006-08-04 18:18:08 +000027141
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027142rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027143 conftest$ac_exeext conftest.$ac_ext
27144LIBS=$ac_check_lib_save_LIBS
27145fi
Reid Spencera773bd52006-08-04 18:18:08 +000027146{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27147echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027148if test $ac_cv_lib_m_sin = yes; then
27149 cat >>confdefs.h <<_ACEOF
27150#define HAVE_LIBM 1
27151_ACEOF
27152
27153 LIBS="-lm $LIBS"
27154
27155fi
27156
Jeff Cohen28783c32007-01-12 18:22:38 +000027157if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027158
Reid Spencera773bd52006-08-04 18:18:08 +000027159{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27160echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027161if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027162 echo $ECHO_N "(cached) $ECHO_C" >&6
27163else
27164 ac_check_lib_save_LIBS=$LIBS
27165LIBS="-limagehlp $LIBS"
27166cat >conftest.$ac_ext <<_ACEOF
27167/* confdefs.h. */
27168_ACEOF
27169cat confdefs.h >>conftest.$ac_ext
27170cat >>conftest.$ac_ext <<_ACEOF
27171/* end confdefs.h. */
27172
Reid Spencer48fdf912006-06-01 19:03:21 +000027173
Reid Spencer484fc8e2006-06-01 16:55:59 +000027174int
27175main ()
27176{
Reid Spencera773bd52006-08-04 18:18:08 +000027177return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027178 ;
27179 return 0;
27180}
27181_ACEOF
27182rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027183if { (ac_try="$ac_link"
27184case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27187esac
27188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027190 ac_status=$?
27191 grep -v '^ *+' conftest.er1 >conftest.err
27192 rm -f conftest.er1
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027195 (exit $ac_status); } &&
27196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27197 { (case "(($ac_try" in
27198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199 *) ac_try_echo=$ac_try;;
27200esac
27201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202 (eval "$ac_try") 2>&5
27203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; } &&
27206 { ac_try='test -s conftest$ac_exeext'
27207 { (case "(($ac_try" in
27208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209 *) ac_try_echo=$ac_try;;
27210esac
27211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27212 (eval "$ac_try") 2>&5
27213 ac_status=$?
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027216 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027217else
27218 echo "$as_me: failed program was:" >&5
27219sed 's/^/| /' conftest.$ac_ext >&5
27220
Reid Spencera773bd52006-08-04 18:18:08 +000027221 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027222fi
Reid Spencera773bd52006-08-04 18:18:08 +000027223
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027224rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027225 conftest$ac_exeext conftest.$ac_ext
27226LIBS=$ac_check_lib_save_LIBS
27227fi
Reid Spencera773bd52006-08-04 18:18:08 +000027228{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27229echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027230if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027231 cat >>confdefs.h <<_ACEOF
27232#define HAVE_LIBIMAGEHLP 1
27233_ACEOF
27234
27235 LIBS="-limagehlp $LIBS"
27236
27237fi
27238
27239
Reid Spencera773bd52006-08-04 18:18:08 +000027240{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27241echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027242if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027243 echo $ECHO_N "(cached) $ECHO_C" >&6
27244else
27245 ac_check_lib_save_LIBS=$LIBS
27246LIBS="-lpsapi $LIBS"
27247cat >conftest.$ac_ext <<_ACEOF
27248/* confdefs.h. */
27249_ACEOF
27250cat confdefs.h >>conftest.$ac_ext
27251cat >>conftest.$ac_ext <<_ACEOF
27252/* end confdefs.h. */
27253
Reid Spencer48fdf912006-06-01 19:03:21 +000027254
Reid Spencer484fc8e2006-06-01 16:55:59 +000027255int
27256main ()
27257{
Reid Spencera773bd52006-08-04 18:18:08 +000027258return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027259 ;
27260 return 0;
27261}
27262_ACEOF
27263rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027264if { (ac_try="$ac_link"
27265case "(($ac_try" in
27266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267 *) ac_try_echo=$ac_try;;
27268esac
27269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027271 ac_status=$?
27272 grep -v '^ *+' conftest.er1 >conftest.err
27273 rm -f conftest.er1
27274 cat conftest.err >&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027276 (exit $ac_status); } &&
27277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27278 { (case "(($ac_try" in
27279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280 *) ac_try_echo=$ac_try;;
27281esac
27282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283 (eval "$ac_try") 2>&5
27284 ac_status=$?
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; } &&
27287 { ac_try='test -s conftest$ac_exeext'
27288 { (case "(($ac_try" in
27289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27291esac
27292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293 (eval "$ac_try") 2>&5
27294 ac_status=$?
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027297 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027298else
27299 echo "$as_me: failed program was:" >&5
27300sed 's/^/| /' conftest.$ac_ext >&5
27301
Reid Spencera773bd52006-08-04 18:18:08 +000027302 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027303fi
Reid Spencera773bd52006-08-04 18:18:08 +000027304
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027305rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027306 conftest$ac_exeext conftest.$ac_ext
27307LIBS=$ac_check_lib_save_LIBS
27308fi
Reid Spencera773bd52006-08-04 18:18:08 +000027309{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27310echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027311if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027312 cat >>confdefs.h <<_ACEOF
27313#define HAVE_LIBPSAPI 1
27314_ACEOF
27315
27316 LIBS="-lpsapi $LIBS"
27317
27318fi
27319
27320fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027321
Reid Spencera773bd52006-08-04 18:18:08 +000027322{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27323echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027324if test "${ac_cv_search_dlopen+set}" = set; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
27326else
27327 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027328cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027329/* confdefs.h. */
27330_ACEOF
27331cat confdefs.h >>conftest.$ac_ext
27332cat >>conftest.$ac_ext <<_ACEOF
27333/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027334
Reid Spencera773bd52006-08-04 18:18:08 +000027335/* Override any GCC internal prototype to avoid an error.
27336 Use char because int might match the return type of a GCC
27337 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027338#ifdef __cplusplus
27339extern "C"
27340#endif
John Criswell7a73b802003-06-30 21:59:07 +000027341char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027342int
27343main ()
27344{
Reid Spencera773bd52006-08-04 18:18:08 +000027345return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027346 ;
27347 return 0;
27348}
27349_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027350for ac_lib in '' dl; do
27351 if test -z "$ac_lib"; then
27352 ac_res="none required"
27353 else
27354 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027356 fi
27357 rm -f conftest.$ac_objext conftest$ac_exeext
27358if { (ac_try="$ac_link"
27359case "(($ac_try" in
27360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361 *) ac_try_echo=$ac_try;;
27362esac
27363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027366 grep -v '^ *+' conftest.er1 >conftest.err
27367 rm -f conftest.er1
27368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027370 (exit $ac_status); } &&
27371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27372 { (case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27375esac
27376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377 (eval "$ac_try") 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest$ac_exeext'
27382 { (case "(($ac_try" in
27383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384 *) ac_try_echo=$ac_try;;
27385esac
27386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387 (eval "$ac_try") 2>&5
27388 ac_status=$?
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027391 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027392else
27393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027394sed 's/^/| /' conftest.$ac_ext >&5
27395
Reid Spencera773bd52006-08-04 18:18:08 +000027396
John Criswell7a73b802003-06-30 21:59:07 +000027397fi
Reid Spencera773bd52006-08-04 18:18:08 +000027398
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027399rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027400 conftest$ac_exeext
27401 if test "${ac_cv_search_dlopen+set}" = set; then
27402 break
John Criswell7a73b802003-06-30 21:59:07 +000027403fi
Reid Spencera773bd52006-08-04 18:18:08 +000027404done
27405if test "${ac_cv_search_dlopen+set}" = set; then
27406 :
27407else
27408 ac_cv_search_dlopen=no
27409fi
27410rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027411LIBS=$ac_func_search_save_LIBS
27412fi
Reid Spencera773bd52006-08-04 18:18:08 +000027413{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27414echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27415ac_res=$ac_cv_search_dlopen
27416if test "$ac_res" != no; then
27417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027418
27419cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027420#define HAVE_DLOPEN 1
27421_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027422
27423else
Brian Gaekec45be042003-10-07 06:01:34 +000027424 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27425echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027426fi
27427
27428
Nick Lewycky267fddb2009-04-13 04:26:27 +000027429{ echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27430echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27431if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027432 echo $ECHO_N "(cached) $ECHO_C" >&6
27433else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027434 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027435cat >conftest.$ac_ext <<_ACEOF
27436/* confdefs.h. */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h. */
27441
27442/* Override any GCC internal prototype to avoid an error.
27443 Use char because int might match the return type of a GCC
27444 builtin and then its argument prototype would still apply. */
27445#ifdef __cplusplus
27446extern "C"
27447#endif
27448char ffi_call ();
27449int
27450main ()
27451{
27452return ffi_call ();
27453 ;
27454 return 0;
27455}
27456_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027457for ac_lib in '' ffi; do
27458 if test -z "$ac_lib"; then
27459 ac_res="none required"
27460 else
27461 ac_res=-l$ac_lib
27462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27463 fi
27464 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027465if { (ac_try="$ac_link"
27466case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27469esac
27470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_link") 2>conftest.er1
27472 ac_status=$?
27473 grep -v '^ *+' conftest.er1 >conftest.err
27474 rm -f conftest.er1
27475 cat conftest.err >&5
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); } &&
27478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27479 { (case "(($ac_try" in
27480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481 *) ac_try_echo=$ac_try;;
27482esac
27483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484 (eval "$ac_try") 2>&5
27485 ac_status=$?
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); }; } &&
27488 { ac_try='test -s conftest$ac_exeext'
27489 { (case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27492esac
27493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_try") 2>&5
27495 ac_status=$?
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027498 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027499else
27500 echo "$as_me: failed program was:" >&5
27501sed 's/^/| /' conftest.$ac_ext >&5
27502
Nick Lewycky267fddb2009-04-13 04:26:27 +000027503
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027504fi
27505
27506rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027507 conftest$ac_exeext
27508 if test "${ac_cv_search_ffi_call+set}" = set; then
27509 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027510fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027511done
27512if test "${ac_cv_search_ffi_call+set}" = set; then
27513 :
27514else
27515 ac_cv_search_ffi_call=no
27516fi
27517rm conftest.$ac_ext
27518LIBS=$ac_func_search_save_LIBS
27519fi
27520{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27521echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27522ac_res=$ac_cv_search_ffi_call
27523if test "$ac_res" != no; then
27524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27525
27526cat >>confdefs.h <<\_ACEOF
27527#define HAVE_FFI_CALL 1
27528_ACEOF
27529
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027530else
27531 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27532echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27533fi
27534
27535
Reid Spencera773bd52006-08-04 18:18:08 +000027536{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27537echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027538if test "${ac_cv_search_mallinfo+set}" = set; then
27539 echo $ECHO_N "(cached) $ECHO_C" >&6
27540else
27541 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027542cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027543/* confdefs.h. */
27544_ACEOF
27545cat confdefs.h >>conftest.$ac_ext
27546cat >>conftest.$ac_ext <<_ACEOF
27547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027548
Reid Spencera773bd52006-08-04 18:18:08 +000027549/* Override any GCC internal prototype to avoid an error.
27550 Use char because int might match the return type of a GCC
27551 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027552#ifdef __cplusplus
27553extern "C"
27554#endif
John Criswell7a73b802003-06-30 21:59:07 +000027555char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027556int
27557main ()
27558{
Reid Spencera773bd52006-08-04 18:18:08 +000027559return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027560 ;
27561 return 0;
27562}
27563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027564for ac_lib in '' malloc; do
27565 if test -z "$ac_lib"; then
27566 ac_res="none required"
27567 else
27568 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027570 fi
27571 rm -f conftest.$ac_objext conftest$ac_exeext
27572if { (ac_try="$ac_link"
27573case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27576esac
27577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027579 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027580 grep -v '^ *+' conftest.er1 >conftest.err
27581 rm -f conftest.er1
27582 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027584 (exit $ac_status); } &&
27585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27586 { (case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27589esac
27590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591 (eval "$ac_try") 2>&5
27592 ac_status=$?
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; } &&
27595 { ac_try='test -s conftest$ac_exeext'
27596 { (case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27599esac
27600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_try") 2>&5
27602 ac_status=$?
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027605 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027606else
27607 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027608sed 's/^/| /' conftest.$ac_ext >&5
27609
Reid Spencera773bd52006-08-04 18:18:08 +000027610
John Criswell7a73b802003-06-30 21:59:07 +000027611fi
Reid Spencera773bd52006-08-04 18:18:08 +000027612
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027613rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027614 conftest$ac_exeext
27615 if test "${ac_cv_search_mallinfo+set}" = set; then
27616 break
John Criswell7a73b802003-06-30 21:59:07 +000027617fi
Reid Spencera773bd52006-08-04 18:18:08 +000027618done
27619if test "${ac_cv_search_mallinfo+set}" = set; then
27620 :
27621else
27622 ac_cv_search_mallinfo=no
27623fi
27624rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027625LIBS=$ac_func_search_save_LIBS
27626fi
Reid Spencera773bd52006-08-04 18:18:08 +000027627{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27628echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27629ac_res=$ac_cv_search_mallinfo
27630if test "$ac_res" != no; then
27631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027632
27633cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027634#define HAVE_MALLINFO 1
27635_ACEOF
27636
27637fi
27638
27639
Reid Spencer0a262ba2005-08-24 10:07:20 +000027640if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027641
Reid Spencera773bd52006-08-04 18:18:08 +000027642{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27643echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027644if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27645 echo $ECHO_N "(cached) $ECHO_C" >&6
27646else
27647 ac_check_lib_save_LIBS=$LIBS
27648LIBS="-lpthread $LIBS"
27649cat >conftest.$ac_ext <<_ACEOF
27650/* confdefs.h. */
27651_ACEOF
27652cat confdefs.h >>conftest.$ac_ext
27653cat >>conftest.$ac_ext <<_ACEOF
27654/* end confdefs.h. */
27655
Reid Spencera773bd52006-08-04 18:18:08 +000027656/* Override any GCC internal prototype to avoid an error.
27657 Use char because int might match the return type of a GCC
27658 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027659#ifdef __cplusplus
27660extern "C"
27661#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027662char pthread_mutex_init ();
27663int
27664main ()
27665{
Reid Spencera773bd52006-08-04 18:18:08 +000027666return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027667 ;
27668 return 0;
27669}
27670_ACEOF
27671rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027672if { (ac_try="$ac_link"
27673case "(($ac_try" in
27674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675 *) ac_try_echo=$ac_try;;
27676esac
27677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027679 ac_status=$?
27680 grep -v '^ *+' conftest.er1 >conftest.err
27681 rm -f conftest.er1
27682 cat conftest.err >&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027684 (exit $ac_status); } &&
27685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27686 { (case "(($ac_try" in
27687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27688 *) ac_try_echo=$ac_try;;
27689esac
27690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27691 (eval "$ac_try") 2>&5
27692 ac_status=$?
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; } &&
27695 { ac_try='test -s conftest$ac_exeext'
27696 { (case "(($ac_try" in
27697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27698 *) ac_try_echo=$ac_try;;
27699esac
27700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27701 (eval "$ac_try") 2>&5
27702 ac_status=$?
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027705 ac_cv_lib_pthread_pthread_mutex_init=yes
27706else
27707 echo "$as_me: failed program was:" >&5
27708sed 's/^/| /' conftest.$ac_ext >&5
27709
Reid Spencera773bd52006-08-04 18:18:08 +000027710 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027711fi
Reid Spencera773bd52006-08-04 18:18:08 +000027712
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027713rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027714 conftest$ac_exeext conftest.$ac_ext
27715LIBS=$ac_check_lib_save_LIBS
27716fi
Reid Spencera773bd52006-08-04 18:18:08 +000027717{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27718echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027719if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27720 cat >>confdefs.h <<_ACEOF
27721#define HAVE_LIBPTHREAD 1
27722_ACEOF
27723
27724 LIBS="-lpthread $LIBS"
27725
27726fi
27727
Reid Spencera773bd52006-08-04 18:18:08 +000027728 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27729echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027730if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27731 echo $ECHO_N "(cached) $ECHO_C" >&6
27732else
27733 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027734cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027735/* confdefs.h. */
27736_ACEOF
27737cat confdefs.h >>conftest.$ac_ext
27738cat >>conftest.$ac_ext <<_ACEOF
27739/* end confdefs.h. */
27740
Reid Spencera773bd52006-08-04 18:18:08 +000027741/* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027744#ifdef __cplusplus
27745extern "C"
27746#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027747char pthread_mutex_lock ();
27748int
27749main ()
27750{
Reid Spencera773bd52006-08-04 18:18:08 +000027751return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027752 ;
27753 return 0;
27754}
27755_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027756for ac_lib in '' pthread; do
27757 if test -z "$ac_lib"; then
27758 ac_res="none required"
27759 else
27760 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027762 fi
27763 rm -f conftest.$ac_objext conftest$ac_exeext
27764if { (ac_try="$ac_link"
27765case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27768esac
27769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027771 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027772 grep -v '^ *+' conftest.er1 >conftest.err
27773 rm -f conftest.er1
27774 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027776 (exit $ac_status); } &&
27777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27778 { (case "(($ac_try" in
27779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27781esac
27782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_try") 2>&5
27784 ac_status=$?
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest$ac_exeext'
27788 { (case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27791esac
27792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_try") 2>&5
27794 ac_status=$?
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027797 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027798else
27799 echo "$as_me: failed program was:" >&5
27800sed 's/^/| /' conftest.$ac_ext >&5
27801
Reid Spencera773bd52006-08-04 18:18:08 +000027802
Brian Gaeke5f268f72003-12-05 19:29:01 +000027803fi
Reid Spencera773bd52006-08-04 18:18:08 +000027804
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027805rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027806 conftest$ac_exeext
27807 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27808 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027809fi
Reid Spencera773bd52006-08-04 18:18:08 +000027810done
27811if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27812 :
27813else
27814 ac_cv_search_pthread_mutex_lock=no
27815fi
27816rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027817LIBS=$ac_func_search_save_LIBS
27818fi
Reid Spencera773bd52006-08-04 18:18:08 +000027819{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27820echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27821ac_res=$ac_cv_search_pthread_mutex_lock
27822if test "$ac_res" != no; then
27823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027824
John Criswell40468462004-09-24 21:19:06 +000027825cat >>confdefs.h <<\_ACEOF
27826#define HAVE_PTHREAD_MUTEX_LOCK 1
27827_ACEOF
27828
27829fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027830
Reid Spencer0a262ba2005-08-24 10:07:20 +000027831fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027832
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027833
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027834# Check whether --with-udis86 was given.
27835if test "${with_udis86+set}" = set; then
27836 withval=$with_udis86;
27837 USE_UDIS86=1
27838
27839 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027840 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027841 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27842 esac
27843
27844{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27845echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27846if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27847 echo $ECHO_N "(cached) $ECHO_C" >&6
27848else
27849 ac_check_lib_save_LIBS=$LIBS
27850LIBS="-ludis86 $LIBS"
27851cat >conftest.$ac_ext <<_ACEOF
27852/* confdefs.h. */
27853_ACEOF
27854cat confdefs.h >>conftest.$ac_ext
27855cat >>conftest.$ac_ext <<_ACEOF
27856/* end confdefs.h. */
27857
27858/* Override any GCC internal prototype to avoid an error.
27859 Use char because int might match the return type of a GCC
27860 builtin and then its argument prototype would still apply. */
27861#ifdef __cplusplus
27862extern "C"
27863#endif
27864char ud_init ();
27865int
27866main ()
27867{
27868return ud_init ();
27869 ;
27870 return 0;
27871}
27872_ACEOF
27873rm -f conftest.$ac_objext conftest$ac_exeext
27874if { (ac_try="$ac_link"
27875case "(($ac_try" in
27876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27877 *) ac_try_echo=$ac_try;;
27878esac
27879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27880 (eval "$ac_link") 2>conftest.er1
27881 ac_status=$?
27882 grep -v '^ *+' conftest.er1 >conftest.err
27883 rm -f conftest.er1
27884 cat conftest.err >&5
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027886 (exit $ac_status); } &&
27887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27888 { (case "(($ac_try" in
27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27891esac
27892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893 (eval "$ac_try") 2>&5
27894 ac_status=$?
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; } &&
27897 { ac_try='test -s conftest$ac_exeext'
27898 { (case "(($ac_try" in
27899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27900 *) ac_try_echo=$ac_try;;
27901esac
27902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27903 (eval "$ac_try") 2>&5
27904 ac_status=$?
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027907 ac_cv_lib_udis86_ud_init=yes
27908else
27909 echo "$as_me: failed program was:" >&5
27910sed 's/^/| /' conftest.$ac_ext >&5
27911
27912 ac_cv_lib_udis86_ud_init=no
27913fi
27914
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027915rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027916 conftest$ac_exeext conftest.$ac_ext
27917LIBS=$ac_check_lib_save_LIBS
27918fi
27919{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27920echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27921if test $ac_cv_lib_udis86_ud_init = yes; then
27922 cat >>confdefs.h <<_ACEOF
27923#define HAVE_LIBUDIS86 1
27924_ACEOF
27925
27926 LIBS="-ludis86 $LIBS"
27927
27928else
27929
27930 echo "Error! You need to have libudis86 around."
27931 exit -1
27932
27933fi
27934
27935
27936else
27937 USE_UDIS86=0
27938
27939fi
27940
27941
27942cat >>confdefs.h <<_ACEOF
27943#define USE_UDIS86 $USE_UDIS86
27944_ACEOF
27945
27946
27947
Reid Spencer59473af2004-12-25 07:31:29 +000027948
27949
27950
27951
27952
27953ac_header_dirent=no
27954for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27955 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027956{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27957echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027959 echo $ECHO_N "(cached) $ECHO_C" >&6
27960else
27961 cat >conftest.$ac_ext <<_ACEOF
27962/* confdefs.h. */
27963_ACEOF
27964cat confdefs.h >>conftest.$ac_ext
27965cat >>conftest.$ac_ext <<_ACEOF
27966/* end confdefs.h. */
27967#include <sys/types.h>
27968#include <$ac_hdr>
27969
27970int
27971main ()
27972{
27973if ((DIR *) 0)
27974return 0;
27975 ;
27976 return 0;
27977}
27978_ACEOF
27979rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027980if { (ac_try="$ac_compile"
27981case "(($ac_try" in
27982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983 *) ac_try_echo=$ac_try;;
27984esac
27985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027987 ac_status=$?
27988 grep -v '^ *+' conftest.er1 >conftest.err
27989 rm -f conftest.er1
27990 cat conftest.err >&5
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027992 (exit $ac_status); } &&
27993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27994 { (case "(($ac_try" in
27995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27996 *) ac_try_echo=$ac_try;;
27997esac
27998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27999 (eval "$ac_try") 2>&5
28000 ac_status=$?
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; } &&
28003 { ac_try='test -s conftest.$ac_objext'
28004 { (case "(($ac_try" in
28005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28006 *) ac_try_echo=$ac_try;;
28007esac
28008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28009 (eval "$ac_try") 2>&5
28010 ac_status=$?
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028013 eval "$as_ac_Header=yes"
28014else
28015 echo "$as_me: failed program was:" >&5
28016sed 's/^/| /' conftest.$ac_ext >&5
28017
Reid Spencera773bd52006-08-04 18:18:08 +000028018 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028019fi
Reid Spencera773bd52006-08-04 18:18:08 +000028020
28021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028022fi
Reid Spencera773bd52006-08-04 18:18:08 +000028023ac_res=`eval echo '${'$as_ac_Header'}'`
28024 { echo "$as_me:$LINENO: result: $ac_res" >&5
28025echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028026if test `eval echo '${'$as_ac_Header'}'` = yes; then
28027 cat >>confdefs.h <<_ACEOF
28028#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28029_ACEOF
28030
28031ac_header_dirent=$ac_hdr; break
28032fi
28033
28034done
28035# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28036if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028037 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28038echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028039if test "${ac_cv_search_opendir+set}" = set; then
28040 echo $ECHO_N "(cached) $ECHO_C" >&6
28041else
28042 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028043cat >conftest.$ac_ext <<_ACEOF
28044/* confdefs.h. */
28045_ACEOF
28046cat confdefs.h >>conftest.$ac_ext
28047cat >>conftest.$ac_ext <<_ACEOF
28048/* end confdefs.h. */
28049
Reid Spencera773bd52006-08-04 18:18:08 +000028050/* Override any GCC internal prototype to avoid an error.
28051 Use char because int might match the return type of a GCC
28052 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028053#ifdef __cplusplus
28054extern "C"
28055#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028056char opendir ();
28057int
28058main ()
28059{
Reid Spencera773bd52006-08-04 18:18:08 +000028060return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028061 ;
28062 return 0;
28063}
28064_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028065for ac_lib in '' dir; do
28066 if test -z "$ac_lib"; then
28067 ac_res="none required"
28068 else
28069 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028071 fi
28072 rm -f conftest.$ac_objext conftest$ac_exeext
28073if { (ac_try="$ac_link"
28074case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28077esac
28078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028080 ac_status=$?
28081 grep -v '^ *+' conftest.er1 >conftest.err
28082 rm -f conftest.er1
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028085 (exit $ac_status); } &&
28086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28087 { (case "(($ac_try" in
28088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089 *) ac_try_echo=$ac_try;;
28090esac
28091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28092 (eval "$ac_try") 2>&5
28093 ac_status=$?
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); }; } &&
28096 { ac_try='test -s conftest$ac_exeext'
28097 { (case "(($ac_try" in
28098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099 *) ac_try_echo=$ac_try;;
28100esac
28101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102 (eval "$ac_try") 2>&5
28103 ac_status=$?
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028106 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028107else
28108 echo "$as_me: failed program was:" >&5
28109sed 's/^/| /' conftest.$ac_ext >&5
28110
Reid Spencera773bd52006-08-04 18:18:08 +000028111
Reid Spencer59473af2004-12-25 07:31:29 +000028112fi
Reid Spencera773bd52006-08-04 18:18:08 +000028113
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028114rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028115 conftest$ac_exeext
28116 if test "${ac_cv_search_opendir+set}" = set; then
28117 break
Reid Spencer59473af2004-12-25 07:31:29 +000028118fi
Reid Spencera773bd52006-08-04 18:18:08 +000028119done
28120if test "${ac_cv_search_opendir+set}" = set; then
28121 :
28122else
28123 ac_cv_search_opendir=no
28124fi
28125rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028126LIBS=$ac_func_search_save_LIBS
28127fi
Reid Spencera773bd52006-08-04 18:18:08 +000028128{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28129echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28130ac_res=$ac_cv_search_opendir
28131if test "$ac_res" != no; then
28132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028133
28134fi
28135
28136else
Reid Spencera773bd52006-08-04 18:18:08 +000028137 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28138echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028139if test "${ac_cv_search_opendir+set}" = set; then
28140 echo $ECHO_N "(cached) $ECHO_C" >&6
28141else
28142 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028143cat >conftest.$ac_ext <<_ACEOF
28144/* confdefs.h. */
28145_ACEOF
28146cat confdefs.h >>conftest.$ac_ext
28147cat >>conftest.$ac_ext <<_ACEOF
28148/* end confdefs.h. */
28149
Reid Spencera773bd52006-08-04 18:18:08 +000028150/* Override any GCC internal prototype to avoid an error.
28151 Use char because int might match the return type of a GCC
28152 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028153#ifdef __cplusplus
28154extern "C"
28155#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028156char opendir ();
28157int
28158main ()
28159{
Reid Spencera773bd52006-08-04 18:18:08 +000028160return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028161 ;
28162 return 0;
28163}
28164_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028165for ac_lib in '' x; do
28166 if test -z "$ac_lib"; then
28167 ac_res="none required"
28168 else
28169 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028171 fi
28172 rm -f conftest.$ac_objext conftest$ac_exeext
28173if { (ac_try="$ac_link"
28174case "(($ac_try" in
28175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176 *) ac_try_echo=$ac_try;;
28177esac
28178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028180 ac_status=$?
28181 grep -v '^ *+' conftest.er1 >conftest.err
28182 rm -f conftest.er1
28183 cat conftest.err >&5
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028185 (exit $ac_status); } &&
28186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28187 { (case "(($ac_try" in
28188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189 *) ac_try_echo=$ac_try;;
28190esac
28191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192 (eval "$ac_try") 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; } &&
28196 { ac_try='test -s conftest$ac_exeext'
28197 { (case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28200esac
28201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_try") 2>&5
28203 ac_status=$?
28204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028206 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028207else
28208 echo "$as_me: failed program was:" >&5
28209sed 's/^/| /' conftest.$ac_ext >&5
28210
Reid Spencera773bd52006-08-04 18:18:08 +000028211
Reid Spencer59473af2004-12-25 07:31:29 +000028212fi
Reid Spencera773bd52006-08-04 18:18:08 +000028213
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028214rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028215 conftest$ac_exeext
28216 if test "${ac_cv_search_opendir+set}" = set; then
28217 break
Reid Spencer59473af2004-12-25 07:31:29 +000028218fi
Reid Spencera773bd52006-08-04 18:18:08 +000028219done
28220if test "${ac_cv_search_opendir+set}" = set; then
28221 :
28222else
28223 ac_cv_search_opendir=no
28224fi
28225rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028226LIBS=$ac_func_search_save_LIBS
28227fi
Reid Spencera773bd52006-08-04 18:18:08 +000028228{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28229echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28230ac_res=$ac_cv_search_opendir
28231if test "$ac_res" != no; then
28232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028233
28234fi
28235
28236fi
28237
Reid Spencera773bd52006-08-04 18:18:08 +000028238{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28239echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028240if test "${ac_cv_header_mmap_anon+set}" = set; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28242else
28243 ac_ext=c
28244ac_cpp='$CPP $CPPFLAGS'
28245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28247ac_compiler_gnu=$ac_cv_c_compiler_gnu
28248
28249 cat >conftest.$ac_ext <<_ACEOF
28250/* confdefs.h. */
28251_ACEOF
28252cat confdefs.h >>conftest.$ac_ext
28253cat >>conftest.$ac_ext <<_ACEOF
28254/* end confdefs.h. */
28255#include <sys/mman.h>
28256#include <unistd.h>
28257#include <fcntl.h>
28258int
28259main ()
28260{
28261mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28262 ;
28263 return 0;
28264}
28265_ACEOF
28266rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028267if { (ac_try="$ac_compile"
28268case "(($ac_try" in
28269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28270 *) ac_try_echo=$ac_try;;
28271esac
28272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28273 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028274 ac_status=$?
28275 grep -v '^ *+' conftest.er1 >conftest.err
28276 rm -f conftest.er1
28277 cat conftest.err >&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028279 (exit $ac_status); } &&
28280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28281 { (case "(($ac_try" in
28282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28283 *) ac_try_echo=$ac_try;;
28284esac
28285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28286 (eval "$ac_try") 2>&5
28287 ac_status=$?
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289 (exit $ac_status); }; } &&
28290 { ac_try='test -s conftest.$ac_objext'
28291 { (case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28294esac
28295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_try") 2>&5
28297 ac_status=$?
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028300 ac_cv_header_mmap_anon=yes
28301else
28302 echo "$as_me: failed program was:" >&5
28303sed 's/^/| /' conftest.$ac_ext >&5
28304
Reid Spencera773bd52006-08-04 18:18:08 +000028305 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028306fi
Reid Spencera773bd52006-08-04 18:18:08 +000028307
28308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028309 ac_ext=c
28310ac_cpp='$CPP $CPPFLAGS'
28311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28313ac_compiler_gnu=$ac_cv_c_compiler_gnu
28314
28315
28316fi
Reid Spencera773bd52006-08-04 18:18:08 +000028317{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28318echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028319if test "$ac_cv_header_mmap_anon" = yes; then
28320
28321cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028322#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028323_ACEOF
28324
28325fi
28326
Reid Spencera773bd52006-08-04 18:18:08 +000028327{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28328echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028329if test "${ac_cv_header_stat_broken+set}" = set; then
28330 echo $ECHO_N "(cached) $ECHO_C" >&6
28331else
28332 cat >conftest.$ac_ext <<_ACEOF
28333/* confdefs.h. */
28334_ACEOF
28335cat confdefs.h >>conftest.$ac_ext
28336cat >>conftest.$ac_ext <<_ACEOF
28337/* end confdefs.h. */
28338#include <sys/types.h>
28339#include <sys/stat.h>
28340
Reid Spencera773bd52006-08-04 18:18:08 +000028341#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028342# if S_ISBLK (S_IFDIR)
28343You lose.
28344# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028345#endif
28346
Reid Spencera773bd52006-08-04 18:18:08 +000028347#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028348# if S_ISBLK (S_IFCHR)
28349You lose.
28350# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028351#endif
28352
Reid Spencera773bd52006-08-04 18:18:08 +000028353#if defined S_ISLNK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028354# if S_ISLNK (S_IFREG)
28355You lose.
28356# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028357#endif
28358
Reid Spencera773bd52006-08-04 18:18:08 +000028359#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028360# if S_ISSOCK (S_IFREG)
28361You lose.
28362# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028363#endif
28364
28365_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28367 $EGREP "You lose" >/dev/null 2>&1; then
28368 ac_cv_header_stat_broken=yes
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028369else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028370 ac_cv_header_stat_broken=no
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028371fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028372rm -f conftest*
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028373
Reid Spencer59473af2004-12-25 07:31:29 +000028374fi
Reid Spencera773bd52006-08-04 18:18:08 +000028375{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28376echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028377if test $ac_cv_header_stat_broken = yes; then
28378
28379cat >>confdefs.h <<\_ACEOF
28380#define STAT_MACROS_BROKEN 1
28381_ACEOF
28382
28383fi
28384
Reid Spencera773bd52006-08-04 18:18:08 +000028385{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28386echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028387if test "${ac_cv_header_stdc+set}" = set; then
28388 echo $ECHO_N "(cached) $ECHO_C" >&6
28389else
28390 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028391/* confdefs.h. */
28392_ACEOF
28393cat confdefs.h >>conftest.$ac_ext
28394cat >>conftest.$ac_ext <<_ACEOF
28395/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028396#include <stdlib.h>
28397#include <stdarg.h>
28398#include <string.h>
28399#include <float.h>
28400
John Criswell0c38eaf2003-09-10 15:17:25 +000028401int
28402main ()
28403{
28404
28405 ;
28406 return 0;
28407}
John Criswell7a73b802003-06-30 21:59:07 +000028408_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028409rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028410if { (ac_try="$ac_compile"
28411case "(($ac_try" in
28412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413 *) ac_try_echo=$ac_try;;
28414esac
28415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028417 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028418 grep -v '^ *+' conftest.er1 >conftest.err
28419 rm -f conftest.er1
28420 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028422 (exit $ac_status); } &&
28423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28424 { (case "(($ac_try" in
28425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426 *) ac_try_echo=$ac_try;;
28427esac
28428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429 (eval "$ac_try") 2>&5
28430 ac_status=$?
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); }; } &&
28433 { ac_try='test -s conftest.$ac_objext'
28434 { (case "(($ac_try" in
28435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436 *) ac_try_echo=$ac_try;;
28437esac
28438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28439 (eval "$ac_try") 2>&5
28440 ac_status=$?
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028443 ac_cv_header_stdc=yes
28444else
28445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028446sed 's/^/| /' conftest.$ac_ext >&5
28447
Reid Spencera773bd52006-08-04 18:18:08 +000028448 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028449fi
Reid Spencera773bd52006-08-04 18:18:08 +000028450
28451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028452
28453if test $ac_cv_header_stdc = yes; then
28454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28455 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028456/* confdefs.h. */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028461#include <string.h>
28462
28463_ACEOF
28464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028465 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028466 :
28467else
28468 ac_cv_header_stdc=no
28469fi
28470rm -f conftest*
28471
28472fi
28473
28474if test $ac_cv_header_stdc = yes; then
28475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28476 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028477/* confdefs.h. */
28478_ACEOF
28479cat confdefs.h >>conftest.$ac_ext
28480cat >>conftest.$ac_ext <<_ACEOF
28481/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028482#include <stdlib.h>
28483
28484_ACEOF
28485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028486 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028487 :
28488else
28489 ac_cv_header_stdc=no
28490fi
28491rm -f conftest*
28492
28493fi
28494
28495if test $ac_cv_header_stdc = yes; then
28496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28497 if test "$cross_compiling" = yes; then
28498 :
28499else
28500 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028501/* confdefs.h. */
28502_ACEOF
28503cat confdefs.h >>conftest.$ac_ext
28504cat >>conftest.$ac_ext <<_ACEOF
28505/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028506#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028507#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028508#if ((' ' & 0x0FF) == 0x020)
28509# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28510# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28511#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028512# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028513 (('a' <= (c) && (c) <= 'i') \
28514 || ('j' <= (c) && (c) <= 'r') \
28515 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028516# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28517#endif
28518
28519#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28520int
28521main ()
28522{
28523 int i;
28524 for (i = 0; i < 256; i++)
28525 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028526 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028527 return 2;
28528 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028529}
28530_ACEOF
28531rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028532if { (ac_try="$ac_link"
28533case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28536esac
28537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028539 ac_status=$?
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028542 { (case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28545esac
28546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028548 ac_status=$?
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; }; then
28551 :
28552else
28553 echo "$as_me: program exited with status $ac_status" >&5
28554echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028555sed 's/^/| /' conftest.$ac_ext >&5
28556
John Criswell7a73b802003-06-30 21:59:07 +000028557( exit $ac_status )
28558ac_cv_header_stdc=no
28559fi
Reid Spencera773bd52006-08-04 18:18:08 +000028560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28561fi
28562
28563
John Criswell7a73b802003-06-30 21:59:07 +000028564fi
28565fi
Reid Spencera773bd52006-08-04 18:18:08 +000028566{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28567echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028568if test $ac_cv_header_stdc = yes; then
28569
28570cat >>confdefs.h <<\_ACEOF
28571#define STDC_HEADERS 1
28572_ACEOF
28573
28574fi
28575
Reid Spencera773bd52006-08-04 18:18:08 +000028576{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28577echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028578if test "${ac_cv_header_sys_wait_h+set}" = set; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28580else
28581 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028582/* confdefs.h. */
28583_ACEOF
28584cat confdefs.h >>conftest.$ac_ext
28585cat >>conftest.$ac_ext <<_ACEOF
28586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028587#include <sys/types.h>
28588#include <sys/wait.h>
28589#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028590# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028591#endif
28592#ifndef WIFEXITED
28593# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28594#endif
28595
John Criswell7a73b802003-06-30 21:59:07 +000028596int
28597main ()
28598{
28599 int s;
28600 wait (&s);
28601 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28602 ;
28603 return 0;
28604}
28605_ACEOF
28606rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028607if { (ac_try="$ac_compile"
28608case "(($ac_try" in
28609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610 *) ac_try_echo=$ac_try;;
28611esac
28612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28613 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028615 grep -v '^ *+' conftest.er1 >conftest.err
28616 rm -f conftest.er1
28617 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028619 (exit $ac_status); } &&
28620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28621 { (case "(($ac_try" in
28622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28623 *) ac_try_echo=$ac_try;;
28624esac
28625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28626 (eval "$ac_try") 2>&5
28627 ac_status=$?
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; } &&
28630 { ac_try='test -s conftest.$ac_objext'
28631 { (case "(($ac_try" in
28632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28633 *) ac_try_echo=$ac_try;;
28634esac
28635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28636 (eval "$ac_try") 2>&5
28637 ac_status=$?
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028640 ac_cv_header_sys_wait_h=yes
28641else
28642 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028643sed 's/^/| /' conftest.$ac_ext >&5
28644
Reid Spencera773bd52006-08-04 18:18:08 +000028645 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028646fi
Reid Spencera773bd52006-08-04 18:18:08 +000028647
28648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028649fi
Reid Spencera773bd52006-08-04 18:18:08 +000028650{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28651echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028652if test $ac_cv_header_sys_wait_h = yes; then
28653
28654cat >>confdefs.h <<\_ACEOF
28655#define HAVE_SYS_WAIT_H 1
28656_ACEOF
28657
28658fi
28659
Reid Spencera773bd52006-08-04 18:18:08 +000028660{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28661echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028662if test "${ac_cv_header_time+set}" = set; then
28663 echo $ECHO_N "(cached) $ECHO_C" >&6
28664else
28665 cat >conftest.$ac_ext <<_ACEOF
28666/* confdefs.h. */
28667_ACEOF
28668cat confdefs.h >>conftest.$ac_ext
28669cat >>conftest.$ac_ext <<_ACEOF
28670/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028671#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028672#include <sys/time.h>
28673#include <time.h>
28674
28675int
28676main ()
28677{
28678if ((struct tm *) 0)
28679return 0;
28680 ;
28681 return 0;
28682}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028683_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028684rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028685if { (ac_try="$ac_compile"
28686case "(($ac_try" in
28687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688 *) ac_try_echo=$ac_try;;
28689esac
28690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28691 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028692 ac_status=$?
28693 grep -v '^ *+' conftest.er1 >conftest.err
28694 rm -f conftest.er1
28695 cat conftest.err >&5
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028697 (exit $ac_status); } &&
28698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28699 { (case "(($ac_try" in
28700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28701 *) ac_try_echo=$ac_try;;
28702esac
28703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28704 (eval "$ac_try") 2>&5
28705 ac_status=$?
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; } &&
28708 { ac_try='test -s conftest.$ac_objext'
28709 { (case "(($ac_try" in
28710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711 *) ac_try_echo=$ac_try;;
28712esac
28713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714 (eval "$ac_try") 2>&5
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028718 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028719else
28720 echo "$as_me: failed program was:" >&5
28721sed 's/^/| /' conftest.$ac_ext >&5
28722
Reid Spencera773bd52006-08-04 18:18:08 +000028723 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028724fi
Reid Spencera773bd52006-08-04 18:18:08 +000028725
28726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028727fi
Reid Spencera773bd52006-08-04 18:18:08 +000028728{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28729echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028730if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028731
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028732cat >>confdefs.h <<\_ACEOF
28733#define TIME_WITH_SYS_TIME 1
28734_ACEOF
28735
28736fi
28737
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028738
Reid Spencer59473af2004-12-25 07:31:29 +000028739
28740
28741
28742
28743
28744
28745for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28746do
28747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028752 echo $ECHO_N "(cached) $ECHO_C" >&6
28753fi
Reid Spencera773bd52006-08-04 18:18:08 +000028754ac_res=`eval echo '${'$as_ac_Header'}'`
28755 { echo "$as_me:$LINENO: result: $ac_res" >&5
28756echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028757else
28758 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028759{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028761cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028762/* confdefs.h. */
28763_ACEOF
28764cat confdefs.h >>conftest.$ac_ext
28765cat >>conftest.$ac_ext <<_ACEOF
28766/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028767$ac_includes_default
28768#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028769_ACEOF
28770rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028771if { (ac_try="$ac_compile"
28772case "(($ac_try" in
28773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28774 *) ac_try_echo=$ac_try;;
28775esac
28776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28777 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028778 ac_status=$?
28779 grep -v '^ *+' conftest.er1 >conftest.err
28780 rm -f conftest.er1
28781 cat conftest.err >&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028783 (exit $ac_status); } &&
28784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28785 { (case "(($ac_try" in
28786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28787 *) ac_try_echo=$ac_try;;
28788esac
28789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28790 (eval "$ac_try") 2>&5
28791 ac_status=$?
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); }; } &&
28794 { ac_try='test -s conftest.$ac_objext'
28795 { (case "(($ac_try" in
28796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28797 *) ac_try_echo=$ac_try;;
28798esac
28799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28800 (eval "$ac_try") 2>&5
28801 ac_status=$?
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028804 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028805else
28806 echo "$as_me: failed program was:" >&5
28807sed 's/^/| /' conftest.$ac_ext >&5
28808
Reid Spencera773bd52006-08-04 18:18:08 +000028809 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028810fi
Reid Spencera773bd52006-08-04 18:18:08 +000028811
28812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28813{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28814echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028815
Reid Spencer59473af2004-12-25 07:31:29 +000028816# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028817{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028819cat >conftest.$ac_ext <<_ACEOF
28820/* confdefs.h. */
28821_ACEOF
28822cat confdefs.h >>conftest.$ac_ext
28823cat >>conftest.$ac_ext <<_ACEOF
28824/* end confdefs.h. */
28825#include <$ac_header>
28826_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028827if { (ac_try="$ac_cpp conftest.$ac_ext"
28828case "(($ac_try" in
28829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28830 *) ac_try_echo=$ac_try;;
28831esac
28832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028834 ac_status=$?
28835 grep -v '^ *+' conftest.er1 >conftest.err
28836 rm -f conftest.er1
28837 cat conftest.err >&5
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028839 (exit $ac_status); } >/dev/null; then
28840 if test -s conftest.err; then
28841 ac_cpp_err=$ac_c_preproc_warn_flag
28842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28843 else
28844 ac_cpp_err=
28845 fi
28846else
28847 ac_cpp_err=yes
28848fi
28849if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028850 ac_header_preproc=yes
28851else
28852 echo "$as_me: failed program was:" >&5
28853sed 's/^/| /' conftest.$ac_ext >&5
28854
28855 ac_header_preproc=no
28856fi
Reid Spencera773bd52006-08-04 18:18:08 +000028857
Reid Spencer59473af2004-12-25 07:31:29 +000028858rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028859{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28860echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028861
28862# So? What about this header?
28863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28864 yes:no: )
28865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28869 ac_header_preproc=yes
28870 ;;
28871 no:yes:* )
28872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028884 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028885## ----------------------------------- ##
28886## Report this to llvmbugs@cs.uiuc.edu ##
28887## ----------------------------------- ##
28888_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028889 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028890 ;;
28891esac
Reid Spencera773bd52006-08-04 18:18:08 +000028892{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028895 echo $ECHO_N "(cached) $ECHO_C" >&6
28896else
28897 eval "$as_ac_Header=\$ac_header_preproc"
28898fi
Reid Spencera773bd52006-08-04 18:18:08 +000028899ac_res=`eval echo '${'$as_ac_Header'}'`
28900 { echo "$as_me:$LINENO: result: $ac_res" >&5
28901echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028902
28903fi
Reid Spencer59473af2004-12-25 07:31:29 +000028904if test `eval echo '${'$as_ac_Header'}'` = yes; then
28905 cat >>confdefs.h <<_ACEOF
28906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028907_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028908
28909fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028910
Reid Spencer59473af2004-12-25 07:31:29 +000028911done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028912
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028913
28914
Reid Spencer59473af2004-12-25 07:31:29 +000028915
28916
28917
28918
Reid Spencercdb08a32006-06-05 16:11:07 +000028919for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028920do
28921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028926 echo $ECHO_N "(cached) $ECHO_C" >&6
28927fi
Reid Spencera773bd52006-08-04 18:18:08 +000028928ac_res=`eval echo '${'$as_ac_Header'}'`
28929 { echo "$as_me:$LINENO: result: $ac_res" >&5
28930echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028931else
28932 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028933{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028935cat >conftest.$ac_ext <<_ACEOF
28936/* confdefs.h. */
28937_ACEOF
28938cat confdefs.h >>conftest.$ac_ext
28939cat >>conftest.$ac_ext <<_ACEOF
28940/* end confdefs.h. */
28941$ac_includes_default
28942#include <$ac_header>
28943_ACEOF
28944rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028945if { (ac_try="$ac_compile"
28946case "(($ac_try" in
28947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948 *) ac_try_echo=$ac_try;;
28949esac
28950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028952 ac_status=$?
28953 grep -v '^ *+' conftest.er1 >conftest.err
28954 rm -f conftest.er1
28955 cat conftest.err >&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028957 (exit $ac_status); } &&
28958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28959 { (case "(($ac_try" in
28960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961 *) ac_try_echo=$ac_try;;
28962esac
28963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964 (eval "$ac_try") 2>&5
28965 ac_status=$?
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); }; } &&
28968 { ac_try='test -s conftest.$ac_objext'
28969 { (case "(($ac_try" in
28970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28971 *) ac_try_echo=$ac_try;;
28972esac
28973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28974 (eval "$ac_try") 2>&5
28975 ac_status=$?
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028978 ac_header_compiler=yes
28979else
28980 echo "$as_me: failed program was:" >&5
28981sed 's/^/| /' conftest.$ac_ext >&5
28982
Reid Spencera773bd52006-08-04 18:18:08 +000028983 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028984fi
Reid Spencera773bd52006-08-04 18:18:08 +000028985
28986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28987{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28988echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028989
28990# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028991{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28992echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028993cat >conftest.$ac_ext <<_ACEOF
28994/* confdefs.h. */
28995_ACEOF
28996cat confdefs.h >>conftest.$ac_ext
28997cat >>conftest.$ac_ext <<_ACEOF
28998/* end confdefs.h. */
28999#include <$ac_header>
29000_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029001if { (ac_try="$ac_cpp conftest.$ac_ext"
29002case "(($ac_try" in
29003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004 *) ac_try_echo=$ac_try;;
29005esac
29006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029008 ac_status=$?
29009 grep -v '^ *+' conftest.er1 >conftest.err
29010 rm -f conftest.er1
29011 cat conftest.err >&5
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029013 (exit $ac_status); } >/dev/null; then
29014 if test -s conftest.err; then
29015 ac_cpp_err=$ac_c_preproc_warn_flag
29016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29017 else
29018 ac_cpp_err=
29019 fi
29020else
29021 ac_cpp_err=yes
29022fi
29023if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029024 ac_header_preproc=yes
29025else
29026 echo "$as_me: failed program was:" >&5
29027sed 's/^/| /' conftest.$ac_ext >&5
29028
29029 ac_header_preproc=no
29030fi
Reid Spencera773bd52006-08-04 18:18:08 +000029031
Reid Spencer59473af2004-12-25 07:31:29 +000029032rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029033{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29034echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029035
29036# So? What about this header?
29037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29038 yes:no: )
29039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29042echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29043 ac_header_preproc=yes
29044 ;;
29045 no:yes:* )
29046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29047echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29049echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29051echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29053echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29057echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029058 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029059## ----------------------------------- ##
29060## Report this to llvmbugs@cs.uiuc.edu ##
29061## ----------------------------------- ##
29062_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029063 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029064 ;;
29065esac
Reid Spencera773bd52006-08-04 18:18:08 +000029066{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029069 echo $ECHO_N "(cached) $ECHO_C" >&6
29070else
29071 eval "$as_ac_Header=\$ac_header_preproc"
29072fi
Reid Spencera773bd52006-08-04 18:18:08 +000029073ac_res=`eval echo '${'$as_ac_Header'}'`
29074 { echo "$as_me:$LINENO: result: $ac_res" >&5
29075echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029076
29077fi
29078if test `eval echo '${'$as_ac_Header'}'` = yes; then
29079 cat >>confdefs.h <<_ACEOF
29080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29081_ACEOF
29082
29083fi
29084
29085done
29086
29087
Reid Spencerbe3e4192007-08-17 05:45:26 +000029088for ac_header in windows.h
29089do
29090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29096fi
29097ac_res=`eval echo '${'$as_ac_Header'}'`
29098 { echo "$as_me:$LINENO: result: $ac_res" >&5
29099echo "${ECHO_T}$ac_res" >&6; }
29100else
29101 # Is the header compilable?
29102{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29104cat >conftest.$ac_ext <<_ACEOF
29105/* confdefs.h. */
29106_ACEOF
29107cat confdefs.h >>conftest.$ac_ext
29108cat >>conftest.$ac_ext <<_ACEOF
29109/* end confdefs.h. */
29110$ac_includes_default
29111#include <$ac_header>
29112_ACEOF
29113rm -f conftest.$ac_objext
29114if { (ac_try="$ac_compile"
29115case "(($ac_try" in
29116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29117 *) ac_try_echo=$ac_try;;
29118esac
29119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29120 (eval "$ac_compile") 2>conftest.er1
29121 ac_status=$?
29122 grep -v '^ *+' conftest.er1 >conftest.err
29123 rm -f conftest.er1
29124 cat conftest.err >&5
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029126 (exit $ac_status); } &&
29127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29128 { (case "(($ac_try" in
29129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130 *) ac_try_echo=$ac_try;;
29131esac
29132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133 (eval "$ac_try") 2>&5
29134 ac_status=$?
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; } &&
29137 { ac_try='test -s conftest.$ac_objext'
29138 { (case "(($ac_try" in
29139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140 *) ac_try_echo=$ac_try;;
29141esac
29142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143 (eval "$ac_try") 2>&5
29144 ac_status=$?
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029147 ac_header_compiler=yes
29148else
29149 echo "$as_me: failed program was:" >&5
29150sed 's/^/| /' conftest.$ac_ext >&5
29151
29152 ac_header_compiler=no
29153fi
29154
29155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29156{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29157echo "${ECHO_T}$ac_header_compiler" >&6; }
29158
29159# Is the header present?
29160{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29162cat >conftest.$ac_ext <<_ACEOF
29163/* confdefs.h. */
29164_ACEOF
29165cat confdefs.h >>conftest.$ac_ext
29166cat >>conftest.$ac_ext <<_ACEOF
29167/* end confdefs.h. */
29168#include <$ac_header>
29169_ACEOF
29170if { (ac_try="$ac_cpp conftest.$ac_ext"
29171case "(($ac_try" in
29172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173 *) ac_try_echo=$ac_try;;
29174esac
29175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29177 ac_status=$?
29178 grep -v '^ *+' conftest.er1 >conftest.err
29179 rm -f conftest.er1
29180 cat conftest.err >&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029182 (exit $ac_status); } >/dev/null; then
29183 if test -s conftest.err; then
29184 ac_cpp_err=$ac_c_preproc_warn_flag
29185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29186 else
29187 ac_cpp_err=
29188 fi
29189else
29190 ac_cpp_err=yes
29191fi
29192if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029193 ac_header_preproc=yes
29194else
29195 echo "$as_me: failed program was:" >&5
29196sed 's/^/| /' conftest.$ac_ext >&5
29197
29198 ac_header_preproc=no
29199fi
29200
29201rm -f conftest.err conftest.$ac_ext
29202{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29203echo "${ECHO_T}$ac_header_preproc" >&6; }
29204
29205# So? What about this header?
29206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29207 yes:no: )
29208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29209echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29211echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29212 ac_header_preproc=yes
29213 ;;
29214 no:yes:* )
29215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29216echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29218echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29220echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29222echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29226echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29227 ( cat <<\_ASBOX
29228## ----------------------------------- ##
29229## Report this to llvmbugs@cs.uiuc.edu ##
29230## ----------------------------------- ##
29231_ASBOX
29232 ) | sed "s/^/$as_me: WARNING: /" >&2
29233 ;;
29234esac
29235{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29238 echo $ECHO_N "(cached) $ECHO_C" >&6
29239else
29240 eval "$as_ac_Header=\$ac_header_preproc"
29241fi
29242ac_res=`eval echo '${'$as_ac_Header'}'`
29243 { echo "$as_me:$LINENO: result: $ac_res" >&5
29244echo "${ECHO_T}$ac_res" >&6; }
29245
29246fi
29247if test `eval echo '${'$as_ac_Header'}'` = yes; then
29248 cat >>confdefs.h <<_ACEOF
29249#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29250_ACEOF
29251
29252fi
29253
29254done
Reid Spencer59473af2004-12-25 07:31:29 +000029255
29256
29257
29258
Reid Spencerbe3e4192007-08-17 05:45:26 +000029259
29260for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029261do
29262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029267 echo $ECHO_N "(cached) $ECHO_C" >&6
29268fi
Reid Spencera773bd52006-08-04 18:18:08 +000029269ac_res=`eval echo '${'$as_ac_Header'}'`
29270 { echo "$as_me:$LINENO: result: $ac_res" >&5
29271echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029272else
29273 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029274{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029276cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029277/* confdefs.h. */
29278_ACEOF
29279cat confdefs.h >>conftest.$ac_ext
29280cat >>conftest.$ac_ext <<_ACEOF
29281/* end confdefs.h. */
29282$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029283#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029284_ACEOF
29285rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029286if { (ac_try="$ac_compile"
29287case "(($ac_try" in
29288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289 *) ac_try_echo=$ac_try;;
29290esac
29291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029293 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029294 grep -v '^ *+' conftest.er1 >conftest.err
29295 rm -f conftest.er1
29296 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029298 (exit $ac_status); } &&
29299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29300 { (case "(($ac_try" in
29301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302 *) ac_try_echo=$ac_try;;
29303esac
29304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305 (eval "$ac_try") 2>&5
29306 ac_status=$?
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); }; } &&
29309 { ac_try='test -s conftest.$ac_objext'
29310 { (case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29313esac
29314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_try") 2>&5
29316 ac_status=$?
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029319 ac_header_compiler=yes
29320else
29321 echo "$as_me: failed program was:" >&5
29322sed 's/^/| /' conftest.$ac_ext >&5
29323
Reid Spencera773bd52006-08-04 18:18:08 +000029324 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029325fi
Reid Spencera773bd52006-08-04 18:18:08 +000029326
29327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29329echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029330
29331# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029334cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029335/* confdefs.h. */
29336_ACEOF
29337cat confdefs.h >>conftest.$ac_ext
29338cat >>conftest.$ac_ext <<_ACEOF
29339/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029340#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029341_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029342if { (ac_try="$ac_cpp conftest.$ac_ext"
29343case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29346esac
29347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029349 ac_status=$?
29350 grep -v '^ *+' conftest.er1 >conftest.err
29351 rm -f conftest.er1
29352 cat conftest.err >&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029354 (exit $ac_status); } >/dev/null; then
29355 if test -s conftest.err; then
29356 ac_cpp_err=$ac_c_preproc_warn_flag
29357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29358 else
29359 ac_cpp_err=
29360 fi
29361else
29362 ac_cpp_err=yes
29363fi
29364if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029365 ac_header_preproc=yes
29366else
29367 echo "$as_me: failed program was:" >&5
29368sed 's/^/| /' conftest.$ac_ext >&5
29369
29370 ac_header_preproc=no
29371fi
Reid Spencera773bd52006-08-04 18:18:08 +000029372
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029373rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29375echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029376
29377# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29379 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029384 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029385 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029386 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029399 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029400## ----------------------------------- ##
29401## Report this to llvmbugs@cs.uiuc.edu ##
29402## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029403_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029404 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029405 ;;
29406esac
Reid Spencera773bd52006-08-04 18:18:08 +000029407{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029410 echo $ECHO_N "(cached) $ECHO_C" >&6
29411else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029412 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029413fi
Reid Spencera773bd52006-08-04 18:18:08 +000029414ac_res=`eval echo '${'$as_ac_Header'}'`
29415 { echo "$as_me:$LINENO: result: $ac_res" >&5
29416echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029417
29418fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029419if test `eval echo '${'$as_ac_Header'}'` = yes; then
29420 cat >>confdefs.h <<_ACEOF
29421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029422_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029423
29424fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029425
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029426done
29427
John Criswell7ed43ad2004-07-19 16:12:29 +000029428
Reid Spencercdb08a32006-06-05 16:11:07 +000029429
Reid Spencera6d990a2006-09-14 06:17:21 +000029430
29431for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029432do
29433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029438 echo $ECHO_N "(cached) $ECHO_C" >&6
29439fi
Reid Spencera773bd52006-08-04 18:18:08 +000029440ac_res=`eval echo '${'$as_ac_Header'}'`
29441 { echo "$as_me:$LINENO: result: $ac_res" >&5
29442echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029443else
29444 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029445{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29446echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029447cat >conftest.$ac_ext <<_ACEOF
29448/* confdefs.h. */
29449_ACEOF
29450cat confdefs.h >>conftest.$ac_ext
29451cat >>conftest.$ac_ext <<_ACEOF
29452/* end confdefs.h. */
29453$ac_includes_default
29454#include <$ac_header>
29455_ACEOF
29456rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029457if { (ac_try="$ac_compile"
29458case "(($ac_try" in
29459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29460 *) ac_try_echo=$ac_try;;
29461esac
29462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29463 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029464 ac_status=$?
29465 grep -v '^ *+' conftest.er1 >conftest.err
29466 rm -f conftest.er1
29467 cat conftest.err >&5
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029469 (exit $ac_status); } &&
29470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29471 { (case "(($ac_try" in
29472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29473 *) ac_try_echo=$ac_try;;
29474esac
29475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29476 (eval "$ac_try") 2>&5
29477 ac_status=$?
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); }; } &&
29480 { ac_try='test -s conftest.$ac_objext'
29481 { (case "(($ac_try" in
29482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483 *) ac_try_echo=$ac_try;;
29484esac
29485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486 (eval "$ac_try") 2>&5
29487 ac_status=$?
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029490 ac_header_compiler=yes
29491else
29492 echo "$as_me: failed program was:" >&5
29493sed 's/^/| /' conftest.$ac_ext >&5
29494
Reid Spencera773bd52006-08-04 18:18:08 +000029495 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029496fi
Reid Spencera773bd52006-08-04 18:18:08 +000029497
29498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29499{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29500echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029501
29502# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029503{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029505cat >conftest.$ac_ext <<_ACEOF
29506/* confdefs.h. */
29507_ACEOF
29508cat confdefs.h >>conftest.$ac_ext
29509cat >>conftest.$ac_ext <<_ACEOF
29510/* end confdefs.h. */
29511#include <$ac_header>
29512_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029513if { (ac_try="$ac_cpp conftest.$ac_ext"
29514case "(($ac_try" in
29515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516 *) ac_try_echo=$ac_try;;
29517esac
29518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029520 ac_status=$?
29521 grep -v '^ *+' conftest.er1 >conftest.err
29522 rm -f conftest.er1
29523 cat conftest.err >&5
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029525 (exit $ac_status); } >/dev/null; then
29526 if test -s conftest.err; then
29527 ac_cpp_err=$ac_c_preproc_warn_flag
29528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29529 else
29530 ac_cpp_err=
29531 fi
29532else
29533 ac_cpp_err=yes
29534fi
29535if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029536 ac_header_preproc=yes
29537else
29538 echo "$as_me: failed program was:" >&5
29539sed 's/^/| /' conftest.$ac_ext >&5
29540
29541 ac_header_preproc=no
29542fi
Reid Spencera773bd52006-08-04 18:18:08 +000029543
Chris Lattner0b142592005-11-14 06:57:34 +000029544rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029545{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29546echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029547
29548# So? What about this header?
29549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29550 yes:no: )
29551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29555 ac_header_preproc=yes
29556 ;;
29557 no:yes:* )
29558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29561echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29565echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029570 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029571## ----------------------------------- ##
29572## Report this to llvmbugs@cs.uiuc.edu ##
29573## ----------------------------------- ##
29574_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029575 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029576 ;;
29577esac
Reid Spencera773bd52006-08-04 18:18:08 +000029578{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029581 echo $ECHO_N "(cached) $ECHO_C" >&6
29582else
29583 eval "$as_ac_Header=\$ac_header_preproc"
29584fi
Reid Spencera773bd52006-08-04 18:18:08 +000029585ac_res=`eval echo '${'$as_ac_Header'}'`
29586 { echo "$as_me:$LINENO: result: $ac_res" >&5
29587echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029588
29589fi
29590if test `eval echo '${'$as_ac_Header'}'` = yes; then
29591 cat >>confdefs.h <<_ACEOF
29592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29593_ACEOF
29594
29595fi
29596
29597done
29598
Reid Spencer0a262ba2005-08-24 10:07:20 +000029599if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029600
29601for ac_header in pthread.h
29602do
29603as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029608 echo $ECHO_N "(cached) $ECHO_C" >&6
29609fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029610ac_res=`eval echo '${'$as_ac_Header'}'`
29611 { echo "$as_me:$LINENO: result: $ac_res" >&5
29612echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029613else
29614 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029615{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029617cat >conftest.$ac_ext <<_ACEOF
29618/* confdefs.h. */
29619_ACEOF
29620cat confdefs.h >>conftest.$ac_ext
29621cat >>conftest.$ac_ext <<_ACEOF
29622/* end confdefs.h. */
29623$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029624#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029625_ACEOF
29626rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029627if { (ac_try="$ac_compile"
29628case "(($ac_try" in
29629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630 *) ac_try_echo=$ac_try;;
29631esac
29632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29633 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029634 ac_status=$?
29635 grep -v '^ *+' conftest.er1 >conftest.err
29636 rm -f conftest.er1
29637 cat conftest.err >&5
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029639 (exit $ac_status); } &&
29640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29641 { (case "(($ac_try" in
29642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643 *) ac_try_echo=$ac_try;;
29644esac
29645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29646 (eval "$ac_try") 2>&5
29647 ac_status=$?
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); }; } &&
29650 { ac_try='test -s conftest.$ac_objext'
29651 { (case "(($ac_try" in
29652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653 *) ac_try_echo=$ac_try;;
29654esac
29655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29656 (eval "$ac_try") 2>&5
29657 ac_status=$?
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029660 ac_header_compiler=yes
29661else
29662 echo "$as_me: failed program was:" >&5
29663sed 's/^/| /' conftest.$ac_ext >&5
29664
Reid Spencera773bd52006-08-04 18:18:08 +000029665 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029666fi
Reid Spencera773bd52006-08-04 18:18:08 +000029667
29668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29669{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29670echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029671
29672# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029673{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29674echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029675cat >conftest.$ac_ext <<_ACEOF
29676/* confdefs.h. */
29677_ACEOF
29678cat confdefs.h >>conftest.$ac_ext
29679cat >>conftest.$ac_ext <<_ACEOF
29680/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029681#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029682_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029683if { (ac_try="$ac_cpp conftest.$ac_ext"
29684case "(($ac_try" in
29685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686 *) ac_try_echo=$ac_try;;
29687esac
29688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029690 ac_status=$?
29691 grep -v '^ *+' conftest.er1 >conftest.err
29692 rm -f conftest.er1
29693 cat conftest.err >&5
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029695 (exit $ac_status); } >/dev/null; then
29696 if test -s conftest.err; then
29697 ac_cpp_err=$ac_c_preproc_warn_flag
29698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29699 else
29700 ac_cpp_err=
29701 fi
29702else
29703 ac_cpp_err=yes
29704fi
29705if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029706 ac_header_preproc=yes
29707else
29708 echo "$as_me: failed program was:" >&5
29709sed 's/^/| /' conftest.$ac_ext >&5
29710
29711 ac_header_preproc=no
29712fi
Reid Spencera773bd52006-08-04 18:18:08 +000029713
Reid Spencer0a262ba2005-08-24 10:07:20 +000029714rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029715{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29716echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029717
29718# So? What about this header?
29719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29720 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29722echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29724echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029725 ac_header_preproc=yes
29726 ;;
29727 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29729echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29731echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29733echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29735echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29739echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029740 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029741## ----------------------------------- ##
29742## Report this to llvmbugs@cs.uiuc.edu ##
29743## ----------------------------------- ##
29744_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029745 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029746 ;;
29747esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029748{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029751 echo $ECHO_N "(cached) $ECHO_C" >&6
29752else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029753 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029754fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029755ac_res=`eval echo '${'$as_ac_Header'}'`
29756 { echo "$as_me:$LINENO: result: $ac_res" >&5
29757echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029758
29759fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029760if test `eval echo '${'$as_ac_Header'}'` = yes; then
29761 cat >>confdefs.h <<_ACEOF
29762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29763_ACEOF
29764 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029765
29766else
29767 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029768
29769fi
29770
Reid Spencerbe3e4192007-08-17 05:45:26 +000029771done
Reid Spencer1000b732006-12-01 00:37:14 +000029772
29773else
29774 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029775
29776fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029777
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029778
29779
29780for ac_header in ffi.h ffi/ffi.h
29781do
29782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29787 echo $ECHO_N "(cached) $ECHO_C" >&6
29788fi
29789ac_res=`eval echo '${'$as_ac_Header'}'`
29790 { echo "$as_me:$LINENO: result: $ac_res" >&5
29791echo "${ECHO_T}$ac_res" >&6; }
29792else
29793 # Is the header compilable?
29794{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29796cat >conftest.$ac_ext <<_ACEOF
29797/* confdefs.h. */
29798_ACEOF
29799cat confdefs.h >>conftest.$ac_ext
29800cat >>conftest.$ac_ext <<_ACEOF
29801/* end confdefs.h. */
29802$ac_includes_default
29803#include <$ac_header>
29804_ACEOF
29805rm -f conftest.$ac_objext
29806if { (ac_try="$ac_compile"
29807case "(($ac_try" in
29808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29809 *) ac_try_echo=$ac_try;;
29810esac
29811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29812 (eval "$ac_compile") 2>conftest.er1
29813 ac_status=$?
29814 grep -v '^ *+' conftest.er1 >conftest.err
29815 rm -f conftest.er1
29816 cat conftest.err >&5
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); } &&
29819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29820 { (case "(($ac_try" in
29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822 *) ac_try_echo=$ac_try;;
29823esac
29824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29825 (eval "$ac_try") 2>&5
29826 ac_status=$?
29827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828 (exit $ac_status); }; } &&
29829 { ac_try='test -s conftest.$ac_objext'
29830 { (case "(($ac_try" in
29831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832 *) ac_try_echo=$ac_try;;
29833esac
29834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835 (eval "$ac_try") 2>&5
29836 ac_status=$?
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); }; }; then
29839 ac_header_compiler=yes
29840else
29841 echo "$as_me: failed program was:" >&5
29842sed 's/^/| /' conftest.$ac_ext >&5
29843
29844 ac_header_compiler=no
29845fi
29846
29847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29849echo "${ECHO_T}$ac_header_compiler" >&6; }
29850
29851# Is the header present?
29852{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29854cat >conftest.$ac_ext <<_ACEOF
29855/* confdefs.h. */
29856_ACEOF
29857cat confdefs.h >>conftest.$ac_ext
29858cat >>conftest.$ac_ext <<_ACEOF
29859/* end confdefs.h. */
29860#include <$ac_header>
29861_ACEOF
29862if { (ac_try="$ac_cpp conftest.$ac_ext"
29863case "(($ac_try" in
29864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29865 *) ac_try_echo=$ac_try;;
29866esac
29867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29869 ac_status=$?
29870 grep -v '^ *+' conftest.er1 >conftest.err
29871 rm -f conftest.er1
29872 cat conftest.err >&5
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); } >/dev/null; then
29875 if test -s conftest.err; then
29876 ac_cpp_err=$ac_c_preproc_warn_flag
29877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29878 else
29879 ac_cpp_err=
29880 fi
29881else
29882 ac_cpp_err=yes
29883fi
29884if test -z "$ac_cpp_err"; then
29885 ac_header_preproc=yes
29886else
29887 echo "$as_me: failed program was:" >&5
29888sed 's/^/| /' conftest.$ac_ext >&5
29889
29890 ac_header_preproc=no
29891fi
29892
29893rm -f conftest.err conftest.$ac_ext
29894{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29895echo "${ECHO_T}$ac_header_preproc" >&6; }
29896
29897# So? What about this header?
29898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29899 yes:no: )
29900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29904 ac_header_preproc=yes
29905 ;;
29906 no:yes:* )
29907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29910echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29914echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29919 ( cat <<\_ASBOX
29920## ----------------------------------- ##
29921## Report this to llvmbugs@cs.uiuc.edu ##
29922## ----------------------------------- ##
29923_ASBOX
29924 ) | sed "s/^/$as_me: WARNING: /" >&2
29925 ;;
29926esac
29927{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29930 echo $ECHO_N "(cached) $ECHO_C" >&6
29931else
29932 eval "$as_ac_Header=\$ac_header_preproc"
29933fi
29934ac_res=`eval echo '${'$as_ac_Header'}'`
29935 { echo "$as_me:$LINENO: result: $ac_res" >&5
29936echo "${ECHO_T}$ac_res" >&6; }
29937
29938fi
29939if test `eval echo '${'$as_ac_Header'}'` = yes; then
29940 cat >>confdefs.h <<_ACEOF
29941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29942_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029943
29944fi
29945
29946done
29947
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029948
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029949
Reid Spencer8085cff2005-01-16 02:58:39 +000029950
Reid Spencerb2ed05262006-11-03 18:04:08 +000029951 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29952echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29953if test "${ac_cv_huge_val_sanity+set}" = set; then
29954 echo $ECHO_N "(cached) $ECHO_C" >&6
29955else
29956
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029957 ac_ext=cpp
29958ac_cpp='$CXXCPP $CPPFLAGS'
29959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029962
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029963 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029964 if test "$cross_compiling" = yes; then
29965 ac_cv_huge_val_sanity=yes
29966else
29967 cat >conftest.$ac_ext <<_ACEOF
29968/* confdefs.h. */
29969_ACEOF
29970cat confdefs.h >>conftest.$ac_ext
29971cat >>conftest.$ac_ext <<_ACEOF
29972/* end confdefs.h. */
29973#include <math.h>
29974int
29975main ()
29976{
29977double x = HUGE_VAL; return x != x;
29978 ;
29979 return 0;
29980}
29981_ACEOF
29982rm -f conftest$ac_exeext
29983if { (ac_try="$ac_link"
29984case "(($ac_try" in
29985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29986 *) ac_try_echo=$ac_try;;
29987esac
29988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29989 (eval "$ac_link") 2>&5
29990 ac_status=$?
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29993 { (case "(($ac_try" in
29994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995 *) ac_try_echo=$ac_try;;
29996esac
29997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998 (eval "$ac_try") 2>&5
29999 ac_status=$?
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); }; }; then
30002 ac_cv_huge_val_sanity=yes
30003else
30004 echo "$as_me: program exited with status $ac_status" >&5
30005echo "$as_me: failed program was:" >&5
30006sed 's/^/| /' conftest.$ac_ext >&5
30007
30008( exit $ac_status )
30009ac_cv_huge_val_sanity=no
30010fi
30011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30012fi
30013
30014
30015 ac_ext=c
30016ac_cpp='$CPP $CPPFLAGS'
30017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30019ac_compiler_gnu=$ac_cv_c_compiler_gnu
30020
30021
30022fi
30023{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30024echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30025 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30026
30027
Reid Spencera773bd52006-08-04 18:18:08 +000030028{ echo "$as_me:$LINENO: checking for pid_t" >&5
30029echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030030if test "${ac_cv_type_pid_t+set}" = set; then
30031 echo $ECHO_N "(cached) $ECHO_C" >&6
30032else
30033 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030034/* confdefs.h. */
30035_ACEOF
30036cat confdefs.h >>conftest.$ac_ext
30037cat >>conftest.$ac_ext <<_ACEOF
30038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030039$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030040typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030041int
30042main ()
30043{
Reid Spencera773bd52006-08-04 18:18:08 +000030044if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030045 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030046if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030047 return 0;
30048 ;
30049 return 0;
30050}
30051_ACEOF
30052rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030053if { (ac_try="$ac_compile"
30054case "(($ac_try" in
30055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056 *) ac_try_echo=$ac_try;;
30057esac
30058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030061 grep -v '^ *+' conftest.er1 >conftest.err
30062 rm -f conftest.er1
30063 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030065 (exit $ac_status); } &&
30066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30067 { (case "(($ac_try" in
30068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069 *) ac_try_echo=$ac_try;;
30070esac
30071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072 (eval "$ac_try") 2>&5
30073 ac_status=$?
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); }; } &&
30076 { ac_try='test -s conftest.$ac_objext'
30077 { (case "(($ac_try" in
30078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30079 *) ac_try_echo=$ac_try;;
30080esac
30081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30082 (eval "$ac_try") 2>&5
30083 ac_status=$?
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030086 ac_cv_type_pid_t=yes
30087else
30088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030089sed 's/^/| /' conftest.$ac_ext >&5
30090
Reid Spencera773bd52006-08-04 18:18:08 +000030091 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030092fi
Reid Spencera773bd52006-08-04 18:18:08 +000030093
30094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030095fi
Reid Spencera773bd52006-08-04 18:18:08 +000030096{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30097echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030098if test $ac_cv_type_pid_t = yes; then
30099 :
30100else
30101
30102cat >>confdefs.h <<_ACEOF
30103#define pid_t int
30104_ACEOF
30105
30106fi
30107
Reid Spencera773bd52006-08-04 18:18:08 +000030108{ echo "$as_me:$LINENO: checking for size_t" >&5
30109echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030110if test "${ac_cv_type_size_t+set}" = set; then
30111 echo $ECHO_N "(cached) $ECHO_C" >&6
30112else
30113 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030114/* confdefs.h. */
30115_ACEOF
30116cat confdefs.h >>conftest.$ac_ext
30117cat >>conftest.$ac_ext <<_ACEOF
30118/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030119$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030120typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030121int
30122main ()
30123{
Reid Spencera773bd52006-08-04 18:18:08 +000030124if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030125 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030126if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030127 return 0;
30128 ;
30129 return 0;
30130}
30131_ACEOF
30132rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030133if { (ac_try="$ac_compile"
30134case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30137esac
30138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030140 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030141 grep -v '^ *+' conftest.er1 >conftest.err
30142 rm -f conftest.er1
30143 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030145 (exit $ac_status); } &&
30146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30147 { (case "(($ac_try" in
30148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149 *) ac_try_echo=$ac_try;;
30150esac
30151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152 (eval "$ac_try") 2>&5
30153 ac_status=$?
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); }; } &&
30156 { ac_try='test -s conftest.$ac_objext'
30157 { (case "(($ac_try" in
30158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30159 *) ac_try_echo=$ac_try;;
30160esac
30161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30162 (eval "$ac_try") 2>&5
30163 ac_status=$?
30164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030166 ac_cv_type_size_t=yes
30167else
30168 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030169sed 's/^/| /' conftest.$ac_ext >&5
30170
Reid Spencera773bd52006-08-04 18:18:08 +000030171 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030172fi
Reid Spencera773bd52006-08-04 18:18:08 +000030173
30174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030175fi
Reid Spencera773bd52006-08-04 18:18:08 +000030176{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30177echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030178if test $ac_cv_type_size_t = yes; then
30179 :
30180else
30181
30182cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030183#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030184_ACEOF
30185
30186fi
30187
Reid Spencera773bd52006-08-04 18:18:08 +000030188{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30189echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030190if test "${ac_cv_type_signal+set}" = set; then
30191 echo $ECHO_N "(cached) $ECHO_C" >&6
30192else
30193 cat >conftest.$ac_ext <<_ACEOF
30194/* confdefs.h. */
30195_ACEOF
30196cat confdefs.h >>conftest.$ac_ext
30197cat >>conftest.$ac_ext <<_ACEOF
30198/* end confdefs.h. */
30199#include <sys/types.h>
30200#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030201
30202int
30203main ()
30204{
Reid Spencera773bd52006-08-04 18:18:08 +000030205return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030206 ;
30207 return 0;
30208}
30209_ACEOF
30210rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030211if { (ac_try="$ac_compile"
30212case "(($ac_try" in
30213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214 *) ac_try_echo=$ac_try;;
30215esac
30216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030218 ac_status=$?
30219 grep -v '^ *+' conftest.er1 >conftest.err
30220 rm -f conftest.er1
30221 cat conftest.err >&5
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030223 (exit $ac_status); } &&
30224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30225 { (case "(($ac_try" in
30226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30227 *) ac_try_echo=$ac_try;;
30228esac
30229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30230 (eval "$ac_try") 2>&5
30231 ac_status=$?
30232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233 (exit $ac_status); }; } &&
30234 { ac_try='test -s conftest.$ac_objext'
30235 { (case "(($ac_try" in
30236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30237 *) ac_try_echo=$ac_try;;
30238esac
30239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30240 (eval "$ac_try") 2>&5
30241 ac_status=$?
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030244 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030245else
30246 echo "$as_me: failed program was:" >&5
30247sed 's/^/| /' conftest.$ac_ext >&5
30248
Reid Spencera773bd52006-08-04 18:18:08 +000030249 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030250fi
Reid Spencera773bd52006-08-04 18:18:08 +000030251
30252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030253fi
Reid Spencera773bd52006-08-04 18:18:08 +000030254{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30255echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030256
30257cat >>confdefs.h <<_ACEOF
30258#define RETSIGTYPE $ac_cv_type_signal
30259_ACEOF
30260
30261
Reid Spencera773bd52006-08-04 18:18:08 +000030262{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30263echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030264if test "${ac_cv_struct_tm+set}" = set; then
30265 echo $ECHO_N "(cached) $ECHO_C" >&6
30266else
30267 cat >conftest.$ac_ext <<_ACEOF
30268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
30273#include <sys/types.h>
30274#include <time.h>
30275
30276int
30277main ()
30278{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030279struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030280 ;
30281 return 0;
30282}
30283_ACEOF
30284rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030285if { (ac_try="$ac_compile"
30286case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30289esac
30290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030292 ac_status=$?
30293 grep -v '^ *+' conftest.er1 >conftest.err
30294 rm -f conftest.er1
30295 cat conftest.err >&5
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030297 (exit $ac_status); } &&
30298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30299 { (case "(($ac_try" in
30300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30301 *) ac_try_echo=$ac_try;;
30302esac
30303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30304 (eval "$ac_try") 2>&5
30305 ac_status=$?
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); }; } &&
30308 { ac_try='test -s conftest.$ac_objext'
30309 { (case "(($ac_try" in
30310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30311 *) ac_try_echo=$ac_try;;
30312esac
30313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30314 (eval "$ac_try") 2>&5
30315 ac_status=$?
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030318 ac_cv_struct_tm=time.h
30319else
30320 echo "$as_me: failed program was:" >&5
30321sed 's/^/| /' conftest.$ac_ext >&5
30322
Reid Spencera773bd52006-08-04 18:18:08 +000030323 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030324fi
Reid Spencera773bd52006-08-04 18:18:08 +000030325
30326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030327fi
Reid Spencera773bd52006-08-04 18:18:08 +000030328{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30329echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030330if test $ac_cv_struct_tm = sys/time.h; then
30331
30332cat >>confdefs.h <<\_ACEOF
30333#define TM_IN_SYS_TIME 1
30334_ACEOF
30335
30336fi
30337
Reid Spencera773bd52006-08-04 18:18:08 +000030338{ echo "$as_me:$LINENO: checking for int64_t" >&5
30339echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030340if test "${ac_cv_type_int64_t+set}" = set; then
30341 echo $ECHO_N "(cached) $ECHO_C" >&6
30342else
30343 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030344/* confdefs.h. */
30345_ACEOF
30346cat confdefs.h >>conftest.$ac_ext
30347cat >>conftest.$ac_ext <<_ACEOF
30348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030349$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030350typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030351int
30352main ()
30353{
Reid Spencera773bd52006-08-04 18:18:08 +000030354if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030355 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030356if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030357 return 0;
30358 ;
30359 return 0;
30360}
30361_ACEOF
30362rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030363if { (ac_try="$ac_compile"
30364case "(($ac_try" in
30365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30366 *) ac_try_echo=$ac_try;;
30367esac
30368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030370 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030371 grep -v '^ *+' conftest.er1 >conftest.err
30372 rm -f conftest.er1
30373 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030375 (exit $ac_status); } &&
30376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30377 { (case "(($ac_try" in
30378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379 *) ac_try_echo=$ac_try;;
30380esac
30381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30382 (eval "$ac_try") 2>&5
30383 ac_status=$?
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); }; } &&
30386 { ac_try='test -s conftest.$ac_objext'
30387 { (case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30390esac
30391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_try") 2>&5
30393 ac_status=$?
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030396 ac_cv_type_int64_t=yes
30397else
30398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030399sed 's/^/| /' conftest.$ac_ext >&5
30400
Reid Spencera773bd52006-08-04 18:18:08 +000030401 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030402fi
Reid Spencera773bd52006-08-04 18:18:08 +000030403
30404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030405fi
Reid Spencera773bd52006-08-04 18:18:08 +000030406{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30407echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030408if test $ac_cv_type_int64_t = yes; then
30409
30410cat >>confdefs.h <<_ACEOF
30411#define HAVE_INT64_T 1
30412_ACEOF
30413
30414
30415else
30416 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30417echo "$as_me: error: Type int64_t required but not found" >&2;}
30418 { (exit 1); exit 1; }; }
30419fi
30420
Reid Spencera773bd52006-08-04 18:18:08 +000030421{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30422echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030423if test "${ac_cv_type_uint64_t+set}" = set; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30425else
30426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030427/* confdefs.h. */
30428_ACEOF
30429cat confdefs.h >>conftest.$ac_ext
30430cat >>conftest.$ac_ext <<_ACEOF
30431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030432$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030433typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030434int
30435main ()
30436{
Reid Spencera773bd52006-08-04 18:18:08 +000030437if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030438 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030439if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030440 return 0;
30441 ;
30442 return 0;
30443}
30444_ACEOF
30445rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030446if { (ac_try="$ac_compile"
30447case "(($ac_try" in
30448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449 *) ac_try_echo=$ac_try;;
30450esac
30451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030454 grep -v '^ *+' conftest.er1 >conftest.err
30455 rm -f conftest.er1
30456 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030458 (exit $ac_status); } &&
30459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30460 { (case "(($ac_try" in
30461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30462 *) ac_try_echo=$ac_try;;
30463esac
30464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30465 (eval "$ac_try") 2>&5
30466 ac_status=$?
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); }; } &&
30469 { ac_try='test -s conftest.$ac_objext'
30470 { (case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30473esac
30474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475 (eval "$ac_try") 2>&5
30476 ac_status=$?
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030479 ac_cv_type_uint64_t=yes
30480else
30481 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030482sed 's/^/| /' conftest.$ac_ext >&5
30483
Reid Spencera773bd52006-08-04 18:18:08 +000030484 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030485fi
Reid Spencera773bd52006-08-04 18:18:08 +000030486
30487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030488fi
Reid Spencera773bd52006-08-04 18:18:08 +000030489{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30490echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030491if test $ac_cv_type_uint64_t = yes; then
30492
30493cat >>confdefs.h <<_ACEOF
30494#define HAVE_UINT64_T 1
30495_ACEOF
30496
30497
30498else
Reid Spencera773bd52006-08-04 18:18:08 +000030499 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30500echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030501if test "${ac_cv_type_u_int64_t+set}" = set; then
30502 echo $ECHO_N "(cached) $ECHO_C" >&6
30503else
30504 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030505/* confdefs.h. */
30506_ACEOF
30507cat confdefs.h >>conftest.$ac_ext
30508cat >>conftest.$ac_ext <<_ACEOF
30509/* end confdefs.h. */
30510$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030511typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030512int
30513main ()
30514{
Reid Spencera773bd52006-08-04 18:18:08 +000030515if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030516 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030517if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030518 return 0;
30519 ;
30520 return 0;
30521}
30522_ACEOF
30523rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030524if { (ac_try="$ac_compile"
30525case "(($ac_try" in
30526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527 *) ac_try_echo=$ac_try;;
30528esac
30529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030531 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030532 grep -v '^ *+' conftest.er1 >conftest.err
30533 rm -f conftest.er1
30534 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030536 (exit $ac_status); } &&
30537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30538 { (case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30541esac
30542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543 (eval "$ac_try") 2>&5
30544 ac_status=$?
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); }; } &&
30547 { ac_try='test -s conftest.$ac_objext'
30548 { (case "(($ac_try" in
30549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30550 *) ac_try_echo=$ac_try;;
30551esac
30552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30553 (eval "$ac_try") 2>&5
30554 ac_status=$?
30555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030557 ac_cv_type_u_int64_t=yes
30558else
30559 echo "$as_me: failed program was:" >&5
30560sed 's/^/| /' conftest.$ac_ext >&5
30561
Reid Spencera773bd52006-08-04 18:18:08 +000030562 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030563fi
Reid Spencera773bd52006-08-04 18:18:08 +000030564
30565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030566fi
Reid Spencera773bd52006-08-04 18:18:08 +000030567{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30568echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030569if test $ac_cv_type_u_int64_t = yes; then
30570
30571cat >>confdefs.h <<_ACEOF
30572#define HAVE_U_INT64_T 1
30573_ACEOF
30574
30575
Misha Brukmanceca9042004-09-02 23:02:30 +000030576else
30577 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30578echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30579 { (exit 1); exit 1; }; }
30580fi
30581
John Criswell679ff312004-09-02 18:44:44 +000030582fi
30583
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030584
30585
30586
30587
30588
30589
30590
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030591
30592
Reid Spencerdf3be822006-01-23 08:15:53 +000030593for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030594do
30595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030596{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30598if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030599 echo $ECHO_N "(cached) $ECHO_C" >&6
30600else
30601 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030602/* confdefs.h. */
30603_ACEOF
30604cat confdefs.h >>conftest.$ac_ext
30605cat >>conftest.$ac_ext <<_ACEOF
30606/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30609#define $ac_func innocuous_$ac_func
30610
30611/* System header to define __stub macros and hopefully few prototypes,
30612 which can conflict with char $ac_func (); below.
30613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30614 <limits.h> exists even on freestanding compilers. */
30615
30616#ifdef __STDC__
30617# include <limits.h>
30618#else
30619# include <assert.h>
30620#endif
30621
30622#undef $ac_func
30623
Reid Spencera773bd52006-08-04 18:18:08 +000030624/* Override any GCC internal prototype to avoid an error.
30625 Use char because int might match the return type of a GCC
30626 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030627#ifdef __cplusplus
30628extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030629#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030630char $ac_func ();
30631/* The GNU C library defines this for functions which it implements
30632 to always fail with ENOSYS. Some functions are actually named
30633 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030634#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030635choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030636#endif
John Criswell7a73b802003-06-30 21:59:07 +000030637
John Criswell7a73b802003-06-30 21:59:07 +000030638int
30639main ()
30640{
Reid Spencera773bd52006-08-04 18:18:08 +000030641return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030642 ;
30643 return 0;
30644}
30645_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030646rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030647if { (ac_try="$ac_link"
30648case "(($ac_try" in
30649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30650 *) ac_try_echo=$ac_try;;
30651esac
30652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30653 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030654 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030655 grep -v '^ *+' conftest.er1 >conftest.err
30656 rm -f conftest.er1
30657 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030659 (exit $ac_status); } &&
30660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30661 { (case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30664esac
30665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_try") 2>&5
30667 ac_status=$?
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; } &&
30670 { ac_try='test -s conftest$ac_exeext'
30671 { (case "(($ac_try" in
30672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30673 *) ac_try_echo=$ac_try;;
30674esac
30675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30676 (eval "$ac_try") 2>&5
30677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030680 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030681else
30682 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030683sed 's/^/| /' conftest.$ac_ext >&5
30684
Reid Spencera773bd52006-08-04 18:18:08 +000030685 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030686fi
Reid Spencera773bd52006-08-04 18:18:08 +000030687
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030688rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030689 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030690fi
Reid Spencera773bd52006-08-04 18:18:08 +000030691ac_res=`eval echo '${'$as_ac_var'}'`
30692 { echo "$as_me:$LINENO: result: $ac_res" >&5
30693echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030694if test `eval echo '${'$as_ac_var'}'` = yes; then
30695 cat >>confdefs.h <<_ACEOF
30696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030697_ACEOF
30698
30699fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030700done
John Criswell7a73b802003-06-30 21:59:07 +000030701
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030702
30703
30704
Reid Spencer6af3d262004-12-15 04:01:48 +000030705
Reid Spencer96cf5872007-07-13 10:05:30 +000030706for ac_func in powf fmodf strtof round
30707do
30708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30709{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30711if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30712 echo $ECHO_N "(cached) $ECHO_C" >&6
30713else
30714 cat >conftest.$ac_ext <<_ACEOF
30715/* confdefs.h. */
30716_ACEOF
30717cat confdefs.h >>conftest.$ac_ext
30718cat >>conftest.$ac_ext <<_ACEOF
30719/* end confdefs.h. */
30720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30722#define $ac_func innocuous_$ac_func
30723
30724/* System header to define __stub macros and hopefully few prototypes,
30725 which can conflict with char $ac_func (); below.
30726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30727 <limits.h> exists even on freestanding compilers. */
30728
30729#ifdef __STDC__
30730# include <limits.h>
30731#else
30732# include <assert.h>
30733#endif
30734
30735#undef $ac_func
30736
30737/* Override any GCC internal prototype to avoid an error.
30738 Use char because int might match the return type of a GCC
30739 builtin and then its argument prototype would still apply. */
30740#ifdef __cplusplus
30741extern "C"
30742#endif
30743char $ac_func ();
30744/* The GNU C library defines this for functions which it implements
30745 to always fail with ENOSYS. Some functions are actually named
30746 something starting with __ and the normal name is an alias. */
30747#if defined __stub_$ac_func || defined __stub___$ac_func
30748choke me
30749#endif
30750
30751int
30752main ()
30753{
30754return $ac_func ();
30755 ;
30756 return 0;
30757}
30758_ACEOF
30759rm -f conftest.$ac_objext conftest$ac_exeext
30760if { (ac_try="$ac_link"
30761case "(($ac_try" in
30762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30763 *) ac_try_echo=$ac_try;;
30764esac
30765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30766 (eval "$ac_link") 2>conftest.er1
30767 ac_status=$?
30768 grep -v '^ *+' conftest.er1 >conftest.err
30769 rm -f conftest.er1
30770 cat conftest.err >&5
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030772 (exit $ac_status); } &&
30773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30774 { (case "(($ac_try" in
30775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776 *) ac_try_echo=$ac_try;;
30777esac
30778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779 (eval "$ac_try") 2>&5
30780 ac_status=$?
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); }; } &&
30783 { ac_try='test -s conftest$ac_exeext'
30784 { (case "(($ac_try" in
30785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30786 *) ac_try_echo=$ac_try;;
30787esac
30788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30789 (eval "$ac_try") 2>&5
30790 ac_status=$?
30791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030793 eval "$as_ac_var=yes"
30794else
30795 echo "$as_me: failed program was:" >&5
30796sed 's/^/| /' conftest.$ac_ext >&5
30797
30798 eval "$as_ac_var=no"
30799fi
30800
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030801rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030802 conftest$ac_exeext conftest.$ac_ext
30803fi
30804ac_res=`eval echo '${'$as_ac_var'}'`
30805 { echo "$as_me:$LINENO: result: $ac_res" >&5
30806echo "${ECHO_T}$ac_res" >&6; }
30807if test `eval echo '${'$as_ac_var'}'` = yes; then
30808 cat >>confdefs.h <<_ACEOF
30809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30810_ACEOF
30811
30812fi
30813done
30814
30815
30816
30817
30818
Reid Spencer6af3d262004-12-15 04:01:48 +000030819
Reid Spencerb90645c2007-02-16 19:17:20 +000030820for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30821do
30822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30826 echo $ECHO_N "(cached) $ECHO_C" >&6
30827else
30828 cat >conftest.$ac_ext <<_ACEOF
30829/* confdefs.h. */
30830_ACEOF
30831cat confdefs.h >>conftest.$ac_ext
30832cat >>conftest.$ac_ext <<_ACEOF
30833/* end confdefs.h. */
30834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30836#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030837
Reid Spencerb90645c2007-02-16 19:17:20 +000030838/* System header to define __stub macros and hopefully few prototypes,
30839 which can conflict with char $ac_func (); below.
30840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841 <limits.h> exists even on freestanding compilers. */
30842
30843#ifdef __STDC__
30844# include <limits.h>
30845#else
30846# include <assert.h>
30847#endif
30848
30849#undef $ac_func
30850
30851/* Override any GCC internal prototype to avoid an error.
30852 Use char because int might match the return type of a GCC
30853 builtin and then its argument prototype would still apply. */
30854#ifdef __cplusplus
30855extern "C"
30856#endif
30857char $ac_func ();
30858/* The GNU C library defines this for functions which it implements
30859 to always fail with ENOSYS. Some functions are actually named
30860 something starting with __ and the normal name is an alias. */
30861#if defined __stub_$ac_func || defined __stub___$ac_func
30862choke me
30863#endif
30864
30865int
30866main ()
30867{
30868return $ac_func ();
30869 ;
30870 return 0;
30871}
30872_ACEOF
30873rm -f conftest.$ac_objext conftest$ac_exeext
30874if { (ac_try="$ac_link"
30875case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30878esac
30879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880 (eval "$ac_link") 2>conftest.er1
30881 ac_status=$?
30882 grep -v '^ *+' conftest.er1 >conftest.err
30883 rm -f conftest.er1
30884 cat conftest.err >&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030886 (exit $ac_status); } &&
30887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30888 { (case "(($ac_try" in
30889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890 *) ac_try_echo=$ac_try;;
30891esac
30892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893 (eval "$ac_try") 2>&5
30894 ac_status=$?
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; } &&
30897 { ac_try='test -s conftest$ac_exeext'
30898 { (case "(($ac_try" in
30899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900 *) ac_try_echo=$ac_try;;
30901esac
30902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903 (eval "$ac_try") 2>&5
30904 ac_status=$?
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030907 eval "$as_ac_var=yes"
30908else
30909 echo "$as_me: failed program was:" >&5
30910sed 's/^/| /' conftest.$ac_ext >&5
30911
30912 eval "$as_ac_var=no"
30913fi
30914
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030915rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030916 conftest$ac_exeext conftest.$ac_ext
30917fi
30918ac_res=`eval echo '${'$as_ac_var'}'`
30919 { echo "$as_me:$LINENO: result: $ac_res" >&5
30920echo "${ECHO_T}$ac_res" >&6; }
30921if test `eval echo '${'$as_ac_var'}'` = yes; then
30922 cat >>confdefs.h <<_ACEOF
30923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30924_ACEOF
30925
30926fi
30927done
30928
30929
30930
30931
30932for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030933do
30934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030935{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30937if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030938 echo $ECHO_N "(cached) $ECHO_C" >&6
30939else
30940 cat >conftest.$ac_ext <<_ACEOF
30941/* confdefs.h. */
30942_ACEOF
30943cat confdefs.h >>conftest.$ac_ext
30944cat >>conftest.$ac_ext <<_ACEOF
30945/* end confdefs.h. */
30946/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30948#define $ac_func innocuous_$ac_func
30949
30950/* System header to define __stub macros and hopefully few prototypes,
30951 which can conflict with char $ac_func (); below.
30952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30953 <limits.h> exists even on freestanding compilers. */
30954
30955#ifdef __STDC__
30956# include <limits.h>
30957#else
30958# include <assert.h>
30959#endif
30960
30961#undef $ac_func
30962
Reid Spencera773bd52006-08-04 18:18:08 +000030963/* Override any GCC internal prototype to avoid an error.
30964 Use char because int might match the return type of a GCC
30965 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030966#ifdef __cplusplus
30967extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030968#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030969char $ac_func ();
30970/* The GNU C library defines this for functions which it implements
30971 to always fail with ENOSYS. Some functions are actually named
30972 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030973#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030974choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030975#endif
30976
30977int
30978main ()
30979{
Reid Spencera773bd52006-08-04 18:18:08 +000030980return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030981 ;
30982 return 0;
30983}
30984_ACEOF
30985rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030986if { (ac_try="$ac_link"
30987case "(($ac_try" in
30988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30989 *) ac_try_echo=$ac_try;;
30990esac
30991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30992 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030993 ac_status=$?
30994 grep -v '^ *+' conftest.er1 >conftest.err
30995 rm -f conftest.er1
30996 cat conftest.err >&5
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030998 (exit $ac_status); } &&
30999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31000 { (case "(($ac_try" in
31001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31002 *) ac_try_echo=$ac_try;;
31003esac
31004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31005 (eval "$ac_try") 2>&5
31006 ac_status=$?
31007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31008 (exit $ac_status); }; } &&
31009 { ac_try='test -s conftest$ac_exeext'
31010 { (case "(($ac_try" in
31011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31012 *) ac_try_echo=$ac_try;;
31013esac
31014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31015 (eval "$ac_try") 2>&5
31016 ac_status=$?
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031019 eval "$as_ac_var=yes"
31020else
31021 echo "$as_me: failed program was:" >&5
31022sed 's/^/| /' conftest.$ac_ext >&5
31023
Reid Spencera773bd52006-08-04 18:18:08 +000031024 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031025fi
Reid Spencera773bd52006-08-04 18:18:08 +000031026
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031027rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031028 conftest$ac_exeext conftest.$ac_ext
31029fi
Reid Spencera773bd52006-08-04 18:18:08 +000031030ac_res=`eval echo '${'$as_ac_var'}'`
31031 { echo "$as_me:$LINENO: result: $ac_res" >&5
31032echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031033if test `eval echo '${'$as_ac_var'}'` = yes; then
31034 cat >>confdefs.h <<_ACEOF
31035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31036_ACEOF
31037
31038fi
31039done
31040
31041
31042
31043
31044
31045
31046
31047
31048for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031049do
31050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031051{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31053if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031054 echo $ECHO_N "(cached) $ECHO_C" >&6
31055else
31056 cat >conftest.$ac_ext <<_ACEOF
31057/* confdefs.h. */
31058_ACEOF
31059cat confdefs.h >>conftest.$ac_ext
31060cat >>conftest.$ac_ext <<_ACEOF
31061/* end confdefs.h. */
31062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31064#define $ac_func innocuous_$ac_func
31065
31066/* System header to define __stub macros and hopefully few prototypes,
31067 which can conflict with char $ac_func (); below.
31068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31069 <limits.h> exists even on freestanding compilers. */
31070
31071#ifdef __STDC__
31072# include <limits.h>
31073#else
31074# include <assert.h>
31075#endif
31076
31077#undef $ac_func
31078
Reid Spencera773bd52006-08-04 18:18:08 +000031079/* Override any GCC internal prototype to avoid an error.
31080 Use char because int might match the return type of a GCC
31081 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031082#ifdef __cplusplus
31083extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031084#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031085char $ac_func ();
31086/* The GNU C library defines this for functions which it implements
31087 to always fail with ENOSYS. Some functions are actually named
31088 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031089#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031090choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031091#endif
31092
31093int
31094main ()
31095{
Reid Spencera773bd52006-08-04 18:18:08 +000031096return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031097 ;
31098 return 0;
31099}
31100_ACEOF
31101rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031102if { (ac_try="$ac_link"
31103case "(($ac_try" in
31104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105 *) ac_try_echo=$ac_try;;
31106esac
31107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31108 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031109 ac_status=$?
31110 grep -v '^ *+' conftest.er1 >conftest.err
31111 rm -f conftest.er1
31112 cat conftest.err >&5
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031114 (exit $ac_status); } &&
31115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31116 { (case "(($ac_try" in
31117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31118 *) ac_try_echo=$ac_try;;
31119esac
31120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31121 (eval "$ac_try") 2>&5
31122 ac_status=$?
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); }; } &&
31125 { ac_try='test -s conftest$ac_exeext'
31126 { (case "(($ac_try" in
31127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31128 *) ac_try_echo=$ac_try;;
31129esac
31130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31131 (eval "$ac_try") 2>&5
31132 ac_status=$?
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031135 eval "$as_ac_var=yes"
31136else
31137 echo "$as_me: failed program was:" >&5
31138sed 's/^/| /' conftest.$ac_ext >&5
31139
Reid Spencera773bd52006-08-04 18:18:08 +000031140 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031141fi
Reid Spencera773bd52006-08-04 18:18:08 +000031142
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031143rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031144 conftest$ac_exeext conftest.$ac_ext
31145fi
Reid Spencera773bd52006-08-04 18:18:08 +000031146ac_res=`eval echo '${'$as_ac_var'}'`
31147 { echo "$as_me:$LINENO: result: $ac_res" >&5
31148echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031149if test `eval echo '${'$as_ac_var'}'` = yes; then
31150 cat >>confdefs.h <<_ACEOF
31151#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31152_ACEOF
31153
31154fi
31155done
31156
31157
Reid Spencerba46ca32004-12-31 05:49:15 +000031158
31159
Chris Lattner0b142592005-11-14 06:57:34 +000031160
Chris Lattner511f11d2005-11-14 07:25:50 +000031161for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031162do
31163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031164{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31166if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031167 echo $ECHO_N "(cached) $ECHO_C" >&6
31168else
31169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031170/* confdefs.h. */
31171_ACEOF
31172cat confdefs.h >>conftest.$ac_ext
31173cat >>conftest.$ac_ext <<_ACEOF
31174/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031175/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31177#define $ac_func innocuous_$ac_func
31178
31179/* System header to define __stub macros and hopefully few prototypes,
31180 which can conflict with char $ac_func (); below.
31181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31182 <limits.h> exists even on freestanding compilers. */
31183
31184#ifdef __STDC__
31185# include <limits.h>
31186#else
31187# include <assert.h>
31188#endif
31189
31190#undef $ac_func
31191
Reid Spencera773bd52006-08-04 18:18:08 +000031192/* Override any GCC internal prototype to avoid an error.
31193 Use char because int might match the return type of a GCC
31194 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031195#ifdef __cplusplus
31196extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031197#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031198char $ac_func ();
31199/* The GNU C library defines this for functions which it implements
31200 to always fail with ENOSYS. Some functions are actually named
31201 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031202#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031203choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031204#endif
John Criswell7a73b802003-06-30 21:59:07 +000031205
John Criswell7a73b802003-06-30 21:59:07 +000031206int
31207main ()
31208{
Reid Spencera773bd52006-08-04 18:18:08 +000031209return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031210 ;
31211 return 0;
31212}
31213_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031214rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031215if { (ac_try="$ac_link"
31216case "(($ac_try" in
31217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31218 *) ac_try_echo=$ac_try;;
31219esac
31220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31221 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031222 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031223 grep -v '^ *+' conftest.er1 >conftest.err
31224 rm -f conftest.er1
31225 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031227 (exit $ac_status); } &&
31228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31229 { (case "(($ac_try" in
31230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31231 *) ac_try_echo=$ac_try;;
31232esac
31233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31234 (eval "$ac_try") 2>&5
31235 ac_status=$?
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); }; } &&
31238 { ac_try='test -s conftest$ac_exeext'
31239 { (case "(($ac_try" in
31240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31241 *) ac_try_echo=$ac_try;;
31242esac
31243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31244 (eval "$ac_try") 2>&5
31245 ac_status=$?
31246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031248 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031249else
31250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031251sed 's/^/| /' conftest.$ac_ext >&5
31252
Reid Spencera773bd52006-08-04 18:18:08 +000031253 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031254fi
Reid Spencera773bd52006-08-04 18:18:08 +000031255
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031256rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031257 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031258fi
Reid Spencera773bd52006-08-04 18:18:08 +000031259ac_res=`eval echo '${'$as_ac_var'}'`
31260 { echo "$as_me:$LINENO: result: $ac_res" >&5
31261echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031262if test `eval echo '${'$as_ac_var'}'` = yes; then
31263 cat >>confdefs.h <<_ACEOF
31264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031265_ACEOF
31266
31267fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031268done
John Criswell7a73b802003-06-30 21:59:07 +000031269
Reid Spencercdb08a32006-06-05 16:11:07 +000031270
31271
31272
31273
Reid Spencerafa22e22006-12-10 23:29:19 +000031274for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031275do
31276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031277{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31279if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031280 echo $ECHO_N "(cached) $ECHO_C" >&6
31281else
31282 cat >conftest.$ac_ext <<_ACEOF
31283/* confdefs.h. */
31284_ACEOF
31285cat confdefs.h >>conftest.$ac_ext
31286cat >>conftest.$ac_ext <<_ACEOF
31287/* end confdefs.h. */
31288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31290#define $ac_func innocuous_$ac_func
31291
31292/* System header to define __stub macros and hopefully few prototypes,
31293 which can conflict with char $ac_func (); below.
31294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31295 <limits.h> exists even on freestanding compilers. */
31296
31297#ifdef __STDC__
31298# include <limits.h>
31299#else
31300# include <assert.h>
31301#endif
31302
31303#undef $ac_func
31304
Reid Spencera773bd52006-08-04 18:18:08 +000031305/* Override any GCC internal prototype to avoid an error.
31306 Use char because int might match the return type of a GCC
31307 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031308#ifdef __cplusplus
31309extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031310#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031311char $ac_func ();
31312/* The GNU C library defines this for functions which it implements
31313 to always fail with ENOSYS. Some functions are actually named
31314 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031315#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031316choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031317#endif
31318
31319int
31320main ()
31321{
Reid Spencera773bd52006-08-04 18:18:08 +000031322return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031323 ;
31324 return 0;
31325}
31326_ACEOF
31327rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031328if { (ac_try="$ac_link"
31329case "(($ac_try" in
31330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31331 *) ac_try_echo=$ac_try;;
31332esac
31333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31334 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031335 ac_status=$?
31336 grep -v '^ *+' conftest.er1 >conftest.err
31337 rm -f conftest.er1
31338 cat conftest.err >&5
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031340 (exit $ac_status); } &&
31341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31342 { (case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31345esac
31346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_try") 2>&5
31348 ac_status=$?
31349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350 (exit $ac_status); }; } &&
31351 { ac_try='test -s conftest$ac_exeext'
31352 { (case "(($ac_try" in
31353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31354 *) ac_try_echo=$ac_try;;
31355esac
31356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31357 (eval "$ac_try") 2>&5
31358 ac_status=$?
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031361 eval "$as_ac_var=yes"
31362else
31363 echo "$as_me: failed program was:" >&5
31364sed 's/^/| /' conftest.$ac_ext >&5
31365
Reid Spencera773bd52006-08-04 18:18:08 +000031366 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031367fi
Reid Spencera773bd52006-08-04 18:18:08 +000031368
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031369rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031370 conftest$ac_exeext conftest.$ac_ext
31371fi
Reid Spencera773bd52006-08-04 18:18:08 +000031372ac_res=`eval echo '${'$as_ac_var'}'`
31373 { echo "$as_me:$LINENO: result: $ac_res" >&5
31374echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031375if test `eval echo '${'$as_ac_var'}'` = yes; then
31376 cat >>confdefs.h <<_ACEOF
31377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31378_ACEOF
31379
31380fi
31381done
31382
Reid Spencera773bd52006-08-04 18:18:08 +000031383{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31384echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031385if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031386 echo $ECHO_N "(cached) $ECHO_C" >&6
31387else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031388 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031389ac_cpp='$CPP $CPPFLAGS'
31390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31392ac_compiler_gnu=$ac_cv_c_compiler_gnu
31393
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031394 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031395 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031396else
31397 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031398
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031399 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031400_ACEOF
31401cat confdefs.h >>conftest.$ac_ext
31402cat >>conftest.$ac_ext <<_ACEOF
31403/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031404
John Criswella0137d32003-10-13 16:22:01 +000031405#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031406#include <stdlib.h>
31407
John Criswella0137d32003-10-13 16:22:01 +000031408int
31409main ()
31410{
31411
Reid Spencer2706f8c2004-09-19 23:53:36 +000031412volatile double A, B;
31413char Buffer[100];
31414A = 1;
31415A /= 10.0;
31416sprintf(Buffer, "%a", A);
31417B = atof(Buffer);
31418if (A != B)
31419 return (1);
31420if (A != 0x1.999999999999ap-4)
31421 return (1);
31422return (0);
John Criswella0137d32003-10-13 16:22:01 +000031423 ;
31424 return 0;
31425}
31426_ACEOF
31427rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031428if { (ac_try="$ac_link"
31429case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31432esac
31433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031438 { (case "(($ac_try" in
31439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31440 *) ac_try_echo=$ac_try;;
31441esac
31442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31443 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031444 ac_status=$?
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031447 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031448else
31449 echo "$as_me: program exited with status $ac_status" >&5
31450echo "$as_me: failed program was:" >&5
31451sed 's/^/| /' conftest.$ac_ext >&5
31452
31453( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031454llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031455fi
Reid Spencera773bd52006-08-04 18:18:08 +000031456rm -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 +000031457fi
Reid Spencera773bd52006-08-04 18:18:08 +000031458
31459
Reid Spencer2706f8c2004-09-19 23:53:36 +000031460 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031461ac_cpp='$CPP $CPPFLAGS'
31462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31464ac_compiler_gnu=$ac_cv_c_compiler_gnu
31465
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031466fi
Reid Spencera773bd52006-08-04 18:18:08 +000031467{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31468echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031469 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031470
31471cat >>confdefs.h <<\_ACEOF
31472#define HAVE_PRINTF_A 1
31473_ACEOF
31474
Reid Spencer2706f8c2004-09-19 23:53:36 +000031475 fi
John Criswella0137d32003-10-13 16:22:01 +000031476
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031477# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31478# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031479{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31480echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031481if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031482 echo $ECHO_N "(cached) $ECHO_C" >&6
31483else
John Criswell0021c312004-02-13 21:57:29 +000031484 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031485/* confdefs.h. */
31486_ACEOF
31487cat confdefs.h >>conftest.$ac_ext
31488cat >>conftest.$ac_ext <<_ACEOF
31489/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031490#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031491int
31492main ()
31493{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031494char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031495 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031496 ;
31497 return 0;
31498}
31499_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031500rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031501if { (ac_try="$ac_link"
31502case "(($ac_try" in
31503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31504 *) ac_try_echo=$ac_try;;
31505esac
31506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31507 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031508 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031509 grep -v '^ *+' conftest.er1 >conftest.err
31510 rm -f conftest.er1
31511 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031513 (exit $ac_status); } &&
31514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31515 { (case "(($ac_try" in
31516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31517 *) ac_try_echo=$ac_try;;
31518esac
31519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31520 (eval "$ac_try") 2>&5
31521 ac_status=$?
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); }; } &&
31524 { ac_try='test -s conftest$ac_exeext'
31525 { (case "(($ac_try" in
31526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31527 *) ac_try_echo=$ac_try;;
31528esac
31529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31530 (eval "$ac_try") 2>&5
31531 ac_status=$?
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031534 ac_cv_working_alloca_h=yes
31535else
31536 echo "$as_me: failed program was:" >&5
31537sed 's/^/| /' conftest.$ac_ext >&5
31538
Reid Spencera773bd52006-08-04 18:18:08 +000031539 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031540fi
Reid Spencera773bd52006-08-04 18:18:08 +000031541
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031542rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031543 conftest$ac_exeext conftest.$ac_ext
31544fi
Reid Spencera773bd52006-08-04 18:18:08 +000031545{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31546echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031547if test $ac_cv_working_alloca_h = yes; then
31548
31549cat >>confdefs.h <<\_ACEOF
31550#define HAVE_ALLOCA_H 1
31551_ACEOF
31552
31553fi
31554
Reid Spencera773bd52006-08-04 18:18:08 +000031555{ echo "$as_me:$LINENO: checking for alloca" >&5
31556echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031557if test "${ac_cv_func_alloca_works+set}" = set; then
31558 echo $ECHO_N "(cached) $ECHO_C" >&6
31559else
31560 cat >conftest.$ac_ext <<_ACEOF
31561/* confdefs.h. */
31562_ACEOF
31563cat confdefs.h >>conftest.$ac_ext
31564cat >>conftest.$ac_ext <<_ACEOF
31565/* end confdefs.h. */
31566#ifdef __GNUC__
31567# define alloca __builtin_alloca
31568#else
31569# ifdef _MSC_VER
31570# include <malloc.h>
31571# define alloca _alloca
31572# else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031573# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031574# include <alloca.h>
31575# else
31576# ifdef _AIX
31577 #pragma alloca
31578# else
31579# ifndef alloca /* predefined by HP cc +Olibcalls */
31580char *alloca ();
31581# endif
31582# endif
31583# endif
31584# endif
31585#endif
31586
31587int
31588main ()
31589{
31590char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031591 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031592 ;
31593 return 0;
31594}
31595_ACEOF
31596rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031597if { (ac_try="$ac_link"
31598case "(($ac_try" in
31599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31600 *) ac_try_echo=$ac_try;;
31601esac
31602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31603 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031604 ac_status=$?
31605 grep -v '^ *+' conftest.er1 >conftest.err
31606 rm -f conftest.er1
31607 cat conftest.err >&5
31608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031609 (exit $ac_status); } &&
31610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31611 { (case "(($ac_try" in
31612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613 *) ac_try_echo=$ac_try;;
31614esac
31615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616 (eval "$ac_try") 2>&5
31617 ac_status=$?
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); }; } &&
31620 { ac_try='test -s conftest$ac_exeext'
31621 { (case "(($ac_try" in
31622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31623 *) ac_try_echo=$ac_try;;
31624esac
31625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31626 (eval "$ac_try") 2>&5
31627 ac_status=$?
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031630 ac_cv_func_alloca_works=yes
31631else
31632 echo "$as_me: failed program was:" >&5
31633sed 's/^/| /' conftest.$ac_ext >&5
31634
Reid Spencera773bd52006-08-04 18:18:08 +000031635 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031636fi
Reid Spencera773bd52006-08-04 18:18:08 +000031637
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031638rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031639 conftest$ac_exeext conftest.$ac_ext
31640fi
Reid Spencera773bd52006-08-04 18:18:08 +000031641{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31642echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031643
31644if test $ac_cv_func_alloca_works = yes; then
31645
31646cat >>confdefs.h <<\_ACEOF
31647#define HAVE_ALLOCA 1
31648_ACEOF
31649
31650else
31651 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31652# that cause trouble. Some versions do not even contain alloca or
31653# contain a buggy version. If you still want to use their alloca,
31654# use ar to extract alloca.o from them instead of compiling alloca.c.
31655
Reid Spencera773bd52006-08-04 18:18:08 +000031656ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031657
31658cat >>confdefs.h <<\_ACEOF
31659#define C_ALLOCA 1
31660_ACEOF
31661
31662
Reid Spencera773bd52006-08-04 18:18:08 +000031663{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31664echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031665if test "${ac_cv_os_cray+set}" = set; then
31666 echo $ECHO_N "(cached) $ECHO_C" >&6
31667else
31668 cat >conftest.$ac_ext <<_ACEOF
31669/* confdefs.h. */
31670_ACEOF
31671cat confdefs.h >>conftest.$ac_ext
31672cat >>conftest.$ac_ext <<_ACEOF
31673/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031674#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031675webecray
31676#else
31677wenotbecray
31678#endif
31679
31680_ACEOF
31681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31682 $EGREP "webecray" >/dev/null 2>&1; then
31683 ac_cv_os_cray=yes
31684else
31685 ac_cv_os_cray=no
31686fi
31687rm -f conftest*
31688
31689fi
Reid Spencera773bd52006-08-04 18:18:08 +000031690{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31691echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031692if test $ac_cv_os_cray = yes; then
31693 for ac_func in _getb67 GETB67 getb67; do
31694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031695{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31697if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031698 echo $ECHO_N "(cached) $ECHO_C" >&6
31699else
31700 cat >conftest.$ac_ext <<_ACEOF
31701/* confdefs.h. */
31702_ACEOF
31703cat confdefs.h >>conftest.$ac_ext
31704cat >>conftest.$ac_ext <<_ACEOF
31705/* end confdefs.h. */
31706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31708#define $ac_func innocuous_$ac_func
31709
31710/* System header to define __stub macros and hopefully few prototypes,
31711 which can conflict with char $ac_func (); below.
31712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31713 <limits.h> exists even on freestanding compilers. */
31714
31715#ifdef __STDC__
31716# include <limits.h>
31717#else
31718# include <assert.h>
31719#endif
31720
31721#undef $ac_func
31722
Reid Spencera773bd52006-08-04 18:18:08 +000031723/* Override any GCC internal prototype to avoid an error.
31724 Use char because int might match the return type of a GCC
31725 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031726#ifdef __cplusplus
31727extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031728#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031729char $ac_func ();
31730/* The GNU C library defines this for functions which it implements
31731 to always fail with ENOSYS. Some functions are actually named
31732 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031733#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031734choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031735#endif
31736
31737int
31738main ()
31739{
Reid Spencera773bd52006-08-04 18:18:08 +000031740return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031741 ;
31742 return 0;
31743}
31744_ACEOF
31745rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031746if { (ac_try="$ac_link"
31747case "(($ac_try" in
31748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749 *) ac_try_echo=$ac_try;;
31750esac
31751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031753 ac_status=$?
31754 grep -v '^ *+' conftest.er1 >conftest.err
31755 rm -f conftest.er1
31756 cat conftest.err >&5
31757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031758 (exit $ac_status); } &&
31759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31760 { (case "(($ac_try" in
31761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762 *) ac_try_echo=$ac_try;;
31763esac
31764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765 (eval "$ac_try") 2>&5
31766 ac_status=$?
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); }; } &&
31769 { ac_try='test -s conftest$ac_exeext'
31770 { (case "(($ac_try" in
31771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31772 *) ac_try_echo=$ac_try;;
31773esac
31774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31775 (eval "$ac_try") 2>&5
31776 ac_status=$?
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031779 eval "$as_ac_var=yes"
31780else
31781 echo "$as_me: failed program was:" >&5
31782sed 's/^/| /' conftest.$ac_ext >&5
31783
Reid Spencera773bd52006-08-04 18:18:08 +000031784 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031785fi
Reid Spencera773bd52006-08-04 18:18:08 +000031786
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031787rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031788 conftest$ac_exeext conftest.$ac_ext
31789fi
Reid Spencera773bd52006-08-04 18:18:08 +000031790ac_res=`eval echo '${'$as_ac_var'}'`
31791 { echo "$as_me:$LINENO: result: $ac_res" >&5
31792echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031793if test `eval echo '${'$as_ac_var'}'` = yes; then
31794
31795cat >>confdefs.h <<_ACEOF
31796#define CRAY_STACKSEG_END $ac_func
31797_ACEOF
31798
31799 break
31800fi
31801
31802 done
31803fi
31804
Reid Spencera773bd52006-08-04 18:18:08 +000031805{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31806echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031807if test "${ac_cv_c_stack_direction+set}" = set; then
31808 echo $ECHO_N "(cached) $ECHO_C" >&6
31809else
31810 if test "$cross_compiling" = yes; then
31811 ac_cv_c_stack_direction=0
31812else
31813 cat >conftest.$ac_ext <<_ACEOF
31814/* confdefs.h. */
31815_ACEOF
31816cat confdefs.h >>conftest.$ac_ext
31817cat >>conftest.$ac_ext <<_ACEOF
31818/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031819$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031820int
31821find_stack_direction ()
31822{
31823 static char *addr = 0;
31824 auto char dummy;
31825 if (addr == 0)
31826 {
31827 addr = &dummy;
31828 return find_stack_direction ();
31829 }
John Criswell0021c312004-02-13 21:57:29 +000031830 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031831 return (&dummy > addr) ? 1 : -1;
31832}
John Criswell0021c312004-02-13 21:57:29 +000031833
John Criswell0021c312004-02-13 21:57:29 +000031834int
31835main ()
31836{
Reid Spencera773bd52006-08-04 18:18:08 +000031837 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031838}
31839_ACEOF
31840rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031841if { (ac_try="$ac_link"
31842case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31845esac
31846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031851 { (case "(($ac_try" in
31852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31853 *) ac_try_echo=$ac_try;;
31854esac
31855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31856 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031857 ac_status=$?
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031860 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031861else
31862 echo "$as_me: program exited with status $ac_status" >&5
31863echo "$as_me: failed program was:" >&5
31864sed 's/^/| /' conftest.$ac_ext >&5
31865
31866( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031867ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031868fi
Reid Spencera773bd52006-08-04 18:18:08 +000031869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000031870fi
Reid Spencera773bd52006-08-04 18:18:08 +000031871
31872
John Criswell0021c312004-02-13 21:57:29 +000031873fi
Reid Spencera773bd52006-08-04 18:18:08 +000031874{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31875echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031876
31877cat >>confdefs.h <<_ACEOF
31878#define STACK_DIRECTION $ac_cv_c_stack_direction
31879_ACEOF
31880
31881
John Criswell0021c312004-02-13 21:57:29 +000031882fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031883
31884
Reid Spencera773bd52006-08-04 18:18:08 +000031885{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31886echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031887if test "${ac_cv_func_rand48+set}" = set; then
31888 echo $ECHO_N "(cached) $ECHO_C" >&6
31889else
Reid Spencera773bd52006-08-04 18:18:08 +000031890 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031891ac_cpp='$CXXCPP $CPPFLAGS'
31892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31895
31896 cat >conftest.$ac_ext <<_ACEOF
31897/* confdefs.h. */
31898_ACEOF
31899cat confdefs.h >>conftest.$ac_ext
31900cat >>conftest.$ac_ext <<_ACEOF
31901/* end confdefs.h. */
31902#include <stdlib.h>
31903int
31904main ()
31905{
31906srand48(0);lrand48();drand48();
31907 ;
31908 return 0;
31909}
31910_ACEOF
31911rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031912if { (ac_try="$ac_compile"
31913case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31916esac
31917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031919 ac_status=$?
31920 grep -v '^ *+' conftest.er1 >conftest.err
31921 rm -f conftest.er1
31922 cat conftest.err >&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031924 (exit $ac_status); } &&
31925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31926 { (case "(($ac_try" in
31927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31928 *) ac_try_echo=$ac_try;;
31929esac
31930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31931 (eval "$ac_try") 2>&5
31932 ac_status=$?
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); }; } &&
31935 { ac_try='test -s conftest.$ac_objext'
31936 { (case "(($ac_try" in
31937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938 *) ac_try_echo=$ac_try;;
31939esac
31940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941 (eval "$ac_try") 2>&5
31942 ac_status=$?
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031945 ac_cv_func_rand48=yes
31946else
31947 echo "$as_me: failed program was:" >&5
31948sed 's/^/| /' conftest.$ac_ext >&5
31949
Reid Spencera773bd52006-08-04 18:18:08 +000031950 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031951fi
Reid Spencera773bd52006-08-04 18:18:08 +000031952
31953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031954 ac_ext=c
31955ac_cpp='$CPP $CPPFLAGS'
31956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31958ac_compiler_gnu=$ac_cv_c_compiler_gnu
31959
31960fi
Reid Spencera773bd52006-08-04 18:18:08 +000031961{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31962echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031963
31964if test "$ac_cv_func_rand48" = "yes" ; then
31965
31966cat >>confdefs.h <<\_ACEOF
31967#define HAVE_RAND48 1
31968_ACEOF
31969
31970fi
John Criswell0021c312004-02-13 21:57:29 +000031971
31972
Reid Spencera773bd52006-08-04 18:18:08 +000031973{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31974echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031975if test "${ac_cv_cxx_namespaces+set}" = set; then
31976 echo $ECHO_N "(cached) $ECHO_C" >&6
31977else
Reid Spencera773bd52006-08-04 18:18:08 +000031978 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031979ac_cpp='$CXXCPP $CPPFLAGS'
31980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31983
31984 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031985/* confdefs.h. */
31986_ACEOF
31987cat confdefs.h >>conftest.$ac_ext
31988cat >>conftest.$ac_ext <<_ACEOF
31989/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031990namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031991int
31992main ()
31993{
31994using namespace Outer::Inner; return i;
31995 ;
31996 return 0;
31997}
31998_ACEOF
31999rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032000if { (ac_try="$ac_compile"
32001case "(($ac_try" in
32002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32003 *) ac_try_echo=$ac_try;;
32004esac
32005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32006 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032007 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032008 grep -v '^ *+' conftest.er1 >conftest.err
32009 rm -f conftest.er1
32010 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032012 (exit $ac_status); } &&
32013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32014 { (case "(($ac_try" in
32015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016 *) ac_try_echo=$ac_try;;
32017esac
32018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019 (eval "$ac_try") 2>&5
32020 ac_status=$?
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); }; } &&
32023 { ac_try='test -s conftest.$ac_objext'
32024 { (case "(($ac_try" in
32025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32026 *) ac_try_echo=$ac_try;;
32027esac
32028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32029 (eval "$ac_try") 2>&5
32030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032033 ac_cv_cxx_namespaces=yes
32034else
32035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032036sed 's/^/| /' conftest.$ac_ext >&5
32037
Reid Spencera773bd52006-08-04 18:18:08 +000032038 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032039fi
Reid Spencera773bd52006-08-04 18:18:08 +000032040
32041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032042 ac_ext=c
32043ac_cpp='$CPP $CPPFLAGS'
32044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32046ac_compiler_gnu=$ac_cv_c_compiler_gnu
32047
32048
32049fi
Reid Spencera773bd52006-08-04 18:18:08 +000032050{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32051echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032052if test "$ac_cv_cxx_namespaces" = yes; then
32053
32054cat >>confdefs.h <<\_ACEOF
32055#define HAVE_NAMESPACES
32056_ACEOF
32057
32058fi
32059
Reid Spencera773bd52006-08-04 18:18:08 +000032060{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32061echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032062if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32063 echo $ECHO_N "(cached) $ECHO_C" >&6
32064else
32065
Reid Spencera773bd52006-08-04 18:18:08 +000032066 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032067ac_cpp='$CXXCPP $CPPFLAGS'
32068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32071
32072 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032073/* confdefs.h. */
32074_ACEOF
32075cat confdefs.h >>conftest.$ac_ext
32076cat >>conftest.$ac_ext <<_ACEOF
32077/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032078#include <iterator>
32079#ifdef HAVE_NAMESPACES
32080using namespace std;
32081#endif
John Criswell7a73b802003-06-30 21:59:07 +000032082int
32083main ()
32084{
32085iterator<int,int,int> t; return 0;
32086 ;
32087 return 0;
32088}
32089_ACEOF
32090rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032091if { (ac_try="$ac_compile"
32092case "(($ac_try" in
32093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32094 *) ac_try_echo=$ac_try;;
32095esac
32096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32097 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032098 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032099 grep -v '^ *+' conftest.er1 >conftest.err
32100 rm -f conftest.er1
32101 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032103 (exit $ac_status); } &&
32104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32105 { (case "(($ac_try" in
32106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32107 *) ac_try_echo=$ac_try;;
32108esac
32109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32110 (eval "$ac_try") 2>&5
32111 ac_status=$?
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); }; } &&
32114 { ac_try='test -s conftest.$ac_objext'
32115 { (case "(($ac_try" in
32116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32117 *) ac_try_echo=$ac_try;;
32118esac
32119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32120 (eval "$ac_try") 2>&5
32121 ac_status=$?
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032124 ac_cv_cxx_have_std_iterator=yes
32125else
32126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032127sed 's/^/| /' conftest.$ac_ext >&5
32128
Reid Spencera773bd52006-08-04 18:18:08 +000032129 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032130fi
Reid Spencera773bd52006-08-04 18:18:08 +000032131
32132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032133 ac_ext=c
32134ac_cpp='$CPP $CPPFLAGS'
32135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32137ac_compiler_gnu=$ac_cv_c_compiler_gnu
32138
32139
32140fi
Reid Spencera773bd52006-08-04 18:18:08 +000032141{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32142echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032143if test "$ac_cv_cxx_have_std_iterator" = yes
32144then
John Criswell40468462004-09-24 21:19:06 +000032145
32146cat >>confdefs.h <<\_ACEOF
32147#define HAVE_STD_ITERATOR 1
32148_ACEOF
32149
32150else
32151
32152cat >>confdefs.h <<\_ACEOF
32153#define HAVE_STD_ITERATOR 0
32154_ACEOF
32155
John Criswell7a73b802003-06-30 21:59:07 +000032156fi
32157
Reid Spencera773bd52006-08-04 18:18:08 +000032158{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32159echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032160if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32161 echo $ECHO_N "(cached) $ECHO_C" >&6
32162else
32163
Reid Spencera773bd52006-08-04 18:18:08 +000032164 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032165ac_cpp='$CXXCPP $CPPFLAGS'
32166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32169
32170 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032171/* confdefs.h. */
32172_ACEOF
32173cat confdefs.h >>conftest.$ac_ext
32174cat >>conftest.$ac_ext <<_ACEOF
32175/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032176#include <iterator>
32177#ifdef HAVE_NAMESPACES
32178using namespace std;
32179#endif
John Criswell7a73b802003-06-30 21:59:07 +000032180int
32181main ()
32182{
John Criswellc78022e2003-07-29 19:11:58 +000032183bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032184 ;
32185 return 0;
32186}
32187_ACEOF
32188rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032189if { (ac_try="$ac_compile"
32190case "(($ac_try" in
32191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32192 *) ac_try_echo=$ac_try;;
32193esac
32194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32195 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032196 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032197 grep -v '^ *+' conftest.er1 >conftest.err
32198 rm -f conftest.er1
32199 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032201 (exit $ac_status); } &&
32202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32203 { (case "(($ac_try" in
32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205 *) ac_try_echo=$ac_try;;
32206esac
32207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_try") 2>&5
32209 ac_status=$?
32210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211 (exit $ac_status); }; } &&
32212 { ac_try='test -s conftest.$ac_objext'
32213 { (case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32216esac
32217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32219 ac_status=$?
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032222 ac_cv_cxx_have_bi_iterator=yes
32223else
32224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032225sed 's/^/| /' conftest.$ac_ext >&5
32226
Reid Spencera773bd52006-08-04 18:18:08 +000032227 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032228fi
Reid Spencera773bd52006-08-04 18:18:08 +000032229
32230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032231 ac_ext=c
32232ac_cpp='$CPP $CPPFLAGS'
32233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32235ac_compiler_gnu=$ac_cv_c_compiler_gnu
32236
32237
32238fi
Reid Spencera773bd52006-08-04 18:18:08 +000032239{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32240echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032241if test "$ac_cv_cxx_have_bi_iterator" = yes
32242then
John Criswell40468462004-09-24 21:19:06 +000032243
32244cat >>confdefs.h <<\_ACEOF
32245#define HAVE_BI_ITERATOR 1
32246_ACEOF
32247
32248else
32249
32250cat >>confdefs.h <<\_ACEOF
32251#define HAVE_BI_ITERATOR 0
32252_ACEOF
32253
John Criswell7a73b802003-06-30 21:59:07 +000032254fi
32255
Reid Spencera773bd52006-08-04 18:18:08 +000032256{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32257echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032258if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32259 echo $ECHO_N "(cached) $ECHO_C" >&6
32260else
32261
Reid Spencera773bd52006-08-04 18:18:08 +000032262 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032263ac_cpp='$CXXCPP $CPPFLAGS'
32264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32267
32268 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032269/* confdefs.h. */
32270_ACEOF
32271cat confdefs.h >>conftest.$ac_ext
32272cat >>conftest.$ac_ext <<_ACEOF
32273/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032274#include <iterator>
32275#ifdef HAVE_NAMESPACES
32276using namespace std;
32277#endif
John Criswell7a73b802003-06-30 21:59:07 +000032278int
32279main ()
32280{
John Criswellc78022e2003-07-29 19:11:58 +000032281forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032282 ;
32283 return 0;
32284}
32285_ACEOF
32286rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032287if { (ac_try="$ac_compile"
32288case "(($ac_try" in
32289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290 *) ac_try_echo=$ac_try;;
32291esac
32292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32293 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032294 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032295 grep -v '^ *+' conftest.er1 >conftest.err
32296 rm -f conftest.er1
32297 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032299 (exit $ac_status); } &&
32300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32301 { (case "(($ac_try" in
32302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303 *) ac_try_echo=$ac_try;;
32304esac
32305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306 (eval "$ac_try") 2>&5
32307 ac_status=$?
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); }; } &&
32310 { ac_try='test -s conftest.$ac_objext'
32311 { (case "(($ac_try" in
32312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32313 *) ac_try_echo=$ac_try;;
32314esac
32315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32316 (eval "$ac_try") 2>&5
32317 ac_status=$?
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032320 ac_cv_cxx_have_fwd_iterator=yes
32321else
32322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032323sed 's/^/| /' conftest.$ac_ext >&5
32324
Reid Spencera773bd52006-08-04 18:18:08 +000032325 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032326fi
Reid Spencera773bd52006-08-04 18:18:08 +000032327
32328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032329 ac_ext=c
32330ac_cpp='$CPP $CPPFLAGS'
32331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32333ac_compiler_gnu=$ac_cv_c_compiler_gnu
32334
32335
32336fi
Reid Spencera773bd52006-08-04 18:18:08 +000032337{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32338echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032339if test "$ac_cv_cxx_have_fwd_iterator" = yes
32340then
John Criswell40468462004-09-24 21:19:06 +000032341
32342cat >>confdefs.h <<\_ACEOF
32343#define HAVE_FWD_ITERATOR 1
32344_ACEOF
32345
32346else
32347
32348cat >>confdefs.h <<\_ACEOF
32349#define HAVE_FWD_ITERATOR 0
32350_ACEOF
32351
John Criswell7a73b802003-06-30 21:59:07 +000032352fi
32353
32354
Reid Spencera773bd52006-08-04 18:18:08 +000032355{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32356echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032357if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32358 echo $ECHO_N "(cached) $ECHO_C" >&6
32359else
Reid Spencera773bd52006-08-04 18:18:08 +000032360 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032361ac_cpp='$CXXCPP $CPPFLAGS'
32362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32365
Reid Spencerabec8f92004-10-27 23:03:44 +000032366 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032367/* confdefs.h. */
32368_ACEOF
32369cat confdefs.h >>conftest.$ac_ext
32370cat >>conftest.$ac_ext <<_ACEOF
32371/* end confdefs.h. */
32372#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032373int
32374main ()
32375{
32376float f; isnan(f);
32377 ;
32378 return 0;
32379}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032380_ACEOF
32381rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032382if { (ac_try="$ac_compile"
32383case "(($ac_try" in
32384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385 *) ac_try_echo=$ac_try;;
32386esac
32387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032390 grep -v '^ *+' conftest.er1 >conftest.err
32391 rm -f conftest.er1
32392 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032394 (exit $ac_status); } &&
32395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32396 { (case "(($ac_try" in
32397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32398 *) ac_try_echo=$ac_try;;
32399esac
32400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32401 (eval "$ac_try") 2>&5
32402 ac_status=$?
32403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404 (exit $ac_status); }; } &&
32405 { ac_try='test -s conftest.$ac_objext'
32406 { (case "(($ac_try" in
32407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32408 *) ac_try_echo=$ac_try;;
32409esac
32410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32411 (eval "$ac_try") 2>&5
32412 ac_status=$?
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032415 ac_cv_func_isnan_in_math_h=yes
32416else
32417 echo "$as_me: failed program was:" >&5
32418sed 's/^/| /' conftest.$ac_ext >&5
32419
Reid Spencera773bd52006-08-04 18:18:08 +000032420 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032421fi
Reid Spencera773bd52006-08-04 18:18:08 +000032422
32423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032424 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032425ac_cpp='$CPP $CPPFLAGS'
32426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32428ac_compiler_gnu=$ac_cv_c_compiler_gnu
32429
32430fi
Reid Spencera773bd52006-08-04 18:18:08 +000032431{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32432echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032433
32434
32435if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032436
32437cat >>confdefs.h <<\_ACEOF
32438#define HAVE_ISNAN_IN_MATH_H 1
32439_ACEOF
32440
Reid Spencerabec8f92004-10-27 23:03:44 +000032441fi
32442
Reid Spencera773bd52006-08-04 18:18:08 +000032443{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32444echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032445if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32446 echo $ECHO_N "(cached) $ECHO_C" >&6
32447else
Reid Spencera773bd52006-08-04 18:18:08 +000032448 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032449ac_cpp='$CXXCPP $CPPFLAGS'
32450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32453
Reid Spencerabec8f92004-10-27 23:03:44 +000032454 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032455/* confdefs.h. */
32456_ACEOF
32457cat confdefs.h >>conftest.$ac_ext
32458cat >>conftest.$ac_ext <<_ACEOF
32459/* end confdefs.h. */
32460#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032461int
32462main ()
32463{
32464float f; isnan(f);
32465 ;
32466 return 0;
32467}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032468_ACEOF
32469rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032470if { (ac_try="$ac_compile"
32471case "(($ac_try" in
32472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473 *) ac_try_echo=$ac_try;;
32474esac
32475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032477 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032478 grep -v '^ *+' conftest.er1 >conftest.err
32479 rm -f conftest.er1
32480 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032482 (exit $ac_status); } &&
32483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32484 { (case "(($ac_try" in
32485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32486 *) ac_try_echo=$ac_try;;
32487esac
32488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32489 (eval "$ac_try") 2>&5
32490 ac_status=$?
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); }; } &&
32493 { ac_try='test -s conftest.$ac_objext'
32494 { (case "(($ac_try" in
32495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32496 *) ac_try_echo=$ac_try;;
32497esac
32498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32499 (eval "$ac_try") 2>&5
32500 ac_status=$?
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032503 ac_cv_func_isnan_in_cmath=yes
32504else
32505 echo "$as_me: failed program was:" >&5
32506sed 's/^/| /' conftest.$ac_ext >&5
32507
Reid Spencera773bd52006-08-04 18:18:08 +000032508 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032509fi
Reid Spencera773bd52006-08-04 18:18:08 +000032510
32511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032512 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032513ac_cpp='$CPP $CPPFLAGS'
32514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32516ac_compiler_gnu=$ac_cv_c_compiler_gnu
32517
32518fi
Reid Spencera773bd52006-08-04 18:18:08 +000032519{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32520echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032521
32522if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032523
32524cat >>confdefs.h <<\_ACEOF
32525#define HAVE_ISNAN_IN_CMATH 1
32526_ACEOF
32527
Reid Spencerabec8f92004-10-27 23:03:44 +000032528fi
32529
Reid Spencera773bd52006-08-04 18:18:08 +000032530{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32531echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032532if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32533 echo $ECHO_N "(cached) $ECHO_C" >&6
32534else
Reid Spencera773bd52006-08-04 18:18:08 +000032535 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032536ac_cpp='$CXXCPP $CPPFLAGS'
32537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32540
Reid Spencerabec8f92004-10-27 23:03:44 +000032541 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032542/* confdefs.h. */
32543_ACEOF
32544cat confdefs.h >>conftest.$ac_ext
32545cat >>conftest.$ac_ext <<_ACEOF
32546/* end confdefs.h. */
32547#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032548int
32549main ()
32550{
32551float f; std::isnan(f);
32552 ;
32553 return 0;
32554}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032555_ACEOF
32556rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032557if { (ac_try="$ac_compile"
32558case "(($ac_try" in
32559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32560 *) ac_try_echo=$ac_try;;
32561esac
32562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32563 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032564 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032565 grep -v '^ *+' conftest.er1 >conftest.err
32566 rm -f conftest.er1
32567 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032569 (exit $ac_status); } &&
32570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32571 { (case "(($ac_try" in
32572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573 *) ac_try_echo=$ac_try;;
32574esac
32575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576 (eval "$ac_try") 2>&5
32577 ac_status=$?
32578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579 (exit $ac_status); }; } &&
32580 { ac_try='test -s conftest.$ac_objext'
32581 { (case "(($ac_try" in
32582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583 *) ac_try_echo=$ac_try;;
32584esac
32585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586 (eval "$ac_try") 2>&5
32587 ac_status=$?
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032590 ac_cv_func_std_isnan_in_cmath=yes
32591else
32592 echo "$as_me: failed program was:" >&5
32593sed 's/^/| /' conftest.$ac_ext >&5
32594
Reid Spencera773bd52006-08-04 18:18:08 +000032595 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032596fi
Reid Spencera773bd52006-08-04 18:18:08 +000032597
32598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032599 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032600ac_cpp='$CPP $CPPFLAGS'
32601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32603ac_compiler_gnu=$ac_cv_c_compiler_gnu
32604
32605fi
Reid Spencera773bd52006-08-04 18:18:08 +000032606{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32607echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032608
32609if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032610
32611cat >>confdefs.h <<\_ACEOF
32612#define HAVE_STD_ISNAN_IN_CMATH 1
32613_ACEOF
32614
Reid Spencerabec8f92004-10-27 23:03:44 +000032615fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032616
32617
Reid Spencera773bd52006-08-04 18:18:08 +000032618{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32619echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032620if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32621 echo $ECHO_N "(cached) $ECHO_C" >&6
32622else
Reid Spencera773bd52006-08-04 18:18:08 +000032623 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032624ac_cpp='$CXXCPP $CPPFLAGS'
32625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32628
Reid Spencerabec8f92004-10-27 23:03:44 +000032629 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032630/* confdefs.h. */
32631_ACEOF
32632cat confdefs.h >>conftest.$ac_ext
32633cat >>conftest.$ac_ext <<_ACEOF
32634/* end confdefs.h. */
32635#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032636int
32637main ()
32638{
32639float f; isinf(f);
32640 ;
32641 return 0;
32642}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032643_ACEOF
32644rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032645if { (ac_try="$ac_compile"
32646case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32649esac
32650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032653 grep -v '^ *+' conftest.er1 >conftest.err
32654 rm -f conftest.er1
32655 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032657 (exit $ac_status); } &&
32658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32659 { (case "(($ac_try" in
32660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32661 *) ac_try_echo=$ac_try;;
32662esac
32663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32664 (eval "$ac_try") 2>&5
32665 ac_status=$?
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); }; } &&
32668 { ac_try='test -s conftest.$ac_objext'
32669 { (case "(($ac_try" in
32670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671 *) ac_try_echo=$ac_try;;
32672esac
32673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674 (eval "$ac_try") 2>&5
32675 ac_status=$?
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032678 ac_cv_func_isinf_in_math_h=yes
32679else
32680 echo "$as_me: failed program was:" >&5
32681sed 's/^/| /' conftest.$ac_ext >&5
32682
Reid Spencera773bd52006-08-04 18:18:08 +000032683 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032684fi
Reid Spencera773bd52006-08-04 18:18:08 +000032685
32686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032687 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032688ac_cpp='$CPP $CPPFLAGS'
32689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32691ac_compiler_gnu=$ac_cv_c_compiler_gnu
32692
32693fi
Reid Spencera773bd52006-08-04 18:18:08 +000032694{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32695echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032696
32697if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032698
32699cat >>confdefs.h <<\_ACEOF
32700#define HAVE_ISINF_IN_MATH_H 1
32701_ACEOF
32702
Reid Spencerabec8f92004-10-27 23:03:44 +000032703fi
32704
Reid Spencera773bd52006-08-04 18:18:08 +000032705{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32706echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032707if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32708 echo $ECHO_N "(cached) $ECHO_C" >&6
32709else
Reid Spencera773bd52006-08-04 18:18:08 +000032710 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032711ac_cpp='$CXXCPP $CPPFLAGS'
32712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32715
Reid Spencerabec8f92004-10-27 23:03:44 +000032716 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032717/* confdefs.h. */
32718_ACEOF
32719cat confdefs.h >>conftest.$ac_ext
32720cat >>conftest.$ac_ext <<_ACEOF
32721/* end confdefs.h. */
32722#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032723int
32724main ()
32725{
32726float f; isinf(f);
32727 ;
32728 return 0;
32729}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032730_ACEOF
32731rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032732if { (ac_try="$ac_compile"
32733case "(($ac_try" in
32734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735 *) ac_try_echo=$ac_try;;
32736esac
32737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032740 grep -v '^ *+' conftest.er1 >conftest.err
32741 rm -f conftest.er1
32742 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032744 (exit $ac_status); } &&
32745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32746 { (case "(($ac_try" in
32747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32748 *) ac_try_echo=$ac_try;;
32749esac
32750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32751 (eval "$ac_try") 2>&5
32752 ac_status=$?
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); }; } &&
32755 { ac_try='test -s conftest.$ac_objext'
32756 { (case "(($ac_try" in
32757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32758 *) ac_try_echo=$ac_try;;
32759esac
32760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32761 (eval "$ac_try") 2>&5
32762 ac_status=$?
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032765 ac_cv_func_isinf_in_cmath=yes
32766else
32767 echo "$as_me: failed program was:" >&5
32768sed 's/^/| /' conftest.$ac_ext >&5
32769
Reid Spencera773bd52006-08-04 18:18:08 +000032770 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032771fi
Reid Spencera773bd52006-08-04 18:18:08 +000032772
32773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032774 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032775ac_cpp='$CPP $CPPFLAGS'
32776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32778ac_compiler_gnu=$ac_cv_c_compiler_gnu
32779
32780fi
Reid Spencera773bd52006-08-04 18:18:08 +000032781{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32782echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032783
32784if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032785
32786cat >>confdefs.h <<\_ACEOF
32787#define HAVE_ISINF_IN_CMATH 1
32788_ACEOF
32789
Reid Spencerabec8f92004-10-27 23:03:44 +000032790fi
32791
Reid Spencera773bd52006-08-04 18:18:08 +000032792{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32793echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032794if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32795 echo $ECHO_N "(cached) $ECHO_C" >&6
32796else
Reid Spencera773bd52006-08-04 18:18:08 +000032797 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032798ac_cpp='$CXXCPP $CPPFLAGS'
32799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32802
Reid Spencerabec8f92004-10-27 23:03:44 +000032803 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032804/* confdefs.h. */
32805_ACEOF
32806cat confdefs.h >>conftest.$ac_ext
32807cat >>conftest.$ac_ext <<_ACEOF
32808/* end confdefs.h. */
32809#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032810int
32811main ()
32812{
32813float f; std::isinf(f)}
32814 ;
32815 return 0;
32816}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032817_ACEOF
32818rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032819if { (ac_try="$ac_compile"
32820case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32823esac
32824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032826 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032827 grep -v '^ *+' conftest.er1 >conftest.err
32828 rm -f conftest.er1
32829 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032831 (exit $ac_status); } &&
32832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32833 { (case "(($ac_try" in
32834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835 *) ac_try_echo=$ac_try;;
32836esac
32837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838 (eval "$ac_try") 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; } &&
32842 { ac_try='test -s conftest.$ac_objext'
32843 { (case "(($ac_try" in
32844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845 *) ac_try_echo=$ac_try;;
32846esac
32847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32848 (eval "$ac_try") 2>&5
32849 ac_status=$?
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032852 ac_cv_func_std_isinf_in_cmath=yes
32853else
32854 echo "$as_me: failed program was:" >&5
32855sed 's/^/| /' conftest.$ac_ext >&5
32856
Reid Spencera773bd52006-08-04 18:18:08 +000032857 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032858fi
Reid Spencera773bd52006-08-04 18:18:08 +000032859
32860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032861 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032862ac_cpp='$CPP $CPPFLAGS'
32863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32865ac_compiler_gnu=$ac_cv_c_compiler_gnu
32866
32867fi
Reid Spencera773bd52006-08-04 18:18:08 +000032868{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32869echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032870
32871if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032872
32873cat >>confdefs.h <<\_ACEOF
32874#define HAVE_STD_ISINF_IN_CMATH 1
32875_ACEOF
32876
Reid Spencerabec8f92004-10-27 23:03:44 +000032877fi
32878
Reid Spencera773bd52006-08-04 18:18:08 +000032879{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32880echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032881if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32882 echo $ECHO_N "(cached) $ECHO_C" >&6
32883else
Reid Spencera773bd52006-08-04 18:18:08 +000032884 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032885ac_cpp='$CXXCPP $CPPFLAGS'
32886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32889
Reid Spencerabec8f92004-10-27 23:03:44 +000032890 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032891/* confdefs.h. */
32892_ACEOF
32893cat confdefs.h >>conftest.$ac_ext
32894cat >>conftest.$ac_ext <<_ACEOF
32895/* end confdefs.h. */
32896#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032897int
32898main ()
32899{
32900float f; finite(f);
32901 ;
32902 return 0;
32903}
Brian Gaeked59a6472004-07-21 03:33:58 +000032904_ACEOF
32905rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032906if { (ac_try="$ac_compile"
32907case "(($ac_try" in
32908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32909 *) ac_try_echo=$ac_try;;
32910esac
32911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32912 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032913 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032914 grep -v '^ *+' conftest.er1 >conftest.err
32915 rm -f conftest.er1
32916 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032918 (exit $ac_status); } &&
32919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32920 { (case "(($ac_try" in
32921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32922 *) ac_try_echo=$ac_try;;
32923esac
32924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32925 (eval "$ac_try") 2>&5
32926 ac_status=$?
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); }; } &&
32929 { ac_try='test -s conftest.$ac_objext'
32930 { (case "(($ac_try" in
32931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932 *) ac_try_echo=$ac_try;;
32933esac
32934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935 (eval "$ac_try") 2>&5
32936 ac_status=$?
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032939 ac_cv_func_finite_in_ieeefp_h=yes
32940else
32941 echo "$as_me: failed program was:" >&5
32942sed 's/^/| /' conftest.$ac_ext >&5
32943
Reid Spencera773bd52006-08-04 18:18:08 +000032944 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032945fi
Reid Spencera773bd52006-08-04 18:18:08 +000032946
32947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032948 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032949ac_cpp='$CPP $CPPFLAGS'
32950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32952ac_compiler_gnu=$ac_cv_c_compiler_gnu
32953
32954fi
Reid Spencera773bd52006-08-04 18:18:08 +000032955{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32956echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032957
Brian Gaeke6802b552004-10-28 05:06:45 +000032958if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032959
32960cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032961#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032962_ACEOF
32963
Reid Spencerabec8f92004-10-27 23:03:44 +000032964fi
32965
32966
32967
Reid Spencer30fe5262007-01-20 07:48:49 +000032968if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000032969
32970
32971for ac_header in stdlib.h unistd.h
32972do
32973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032978 echo $ECHO_N "(cached) $ECHO_C" >&6
32979fi
Reid Spencera773bd52006-08-04 18:18:08 +000032980ac_res=`eval echo '${'$as_ac_Header'}'`
32981 { echo "$as_me:$LINENO: result: $ac_res" >&5
32982echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032983else
32984 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032985{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032987cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032988/* confdefs.h. */
32989_ACEOF
32990cat confdefs.h >>conftest.$ac_ext
32991cat >>conftest.$ac_ext <<_ACEOF
32992/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032993$ac_includes_default
32994#include <$ac_header>
32995_ACEOF
32996rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032997if { (ac_try="$ac_compile"
32998case "(($ac_try" in
32999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000 *) ac_try_echo=$ac_try;;
33001esac
33002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033004 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033005 grep -v '^ *+' conftest.er1 >conftest.err
33006 rm -f conftest.er1
33007 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033009 (exit $ac_status); } &&
33010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33011 { (case "(($ac_try" in
33012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33013 *) ac_try_echo=$ac_try;;
33014esac
33015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33016 (eval "$ac_try") 2>&5
33017 ac_status=$?
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; } &&
33020 { ac_try='test -s conftest.$ac_objext'
33021 { (case "(($ac_try" in
33022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33023 *) ac_try_echo=$ac_try;;
33024esac
33025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33026 (eval "$ac_try") 2>&5
33027 ac_status=$?
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033030 ac_header_compiler=yes
33031else
33032 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033033sed 's/^/| /' conftest.$ac_ext >&5
33034
Reid Spencera773bd52006-08-04 18:18:08 +000033035 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033036fi
Reid Spencera773bd52006-08-04 18:18:08 +000033037
33038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33039{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33040echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033041
33042# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033043{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033045cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033046/* confdefs.h. */
33047_ACEOF
33048cat confdefs.h >>conftest.$ac_ext
33049cat >>conftest.$ac_ext <<_ACEOF
33050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033051#include <$ac_header>
33052_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033053if { (ac_try="$ac_cpp conftest.$ac_ext"
33054case "(($ac_try" in
33055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056 *) ac_try_echo=$ac_try;;
33057esac
33058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033060 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033061 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033062 rm -f conftest.er1
33063 cat conftest.err >&5
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033065 (exit $ac_status); } >/dev/null; then
33066 if test -s conftest.err; then
33067 ac_cpp_err=$ac_c_preproc_warn_flag
33068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33069 else
33070 ac_cpp_err=
33071 fi
33072else
33073 ac_cpp_err=yes
33074fi
33075if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033076 ac_header_preproc=yes
33077else
33078 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033079sed 's/^/| /' conftest.$ac_ext >&5
33080
John Criswell7a73b802003-06-30 21:59:07 +000033081 ac_header_preproc=no
33082fi
Reid Spencera773bd52006-08-04 18:18:08 +000033083
John Criswell7a73b802003-06-30 21:59:07 +000033084rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033085{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33086echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033087
33088# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33090 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33095 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033096 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033097 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033110 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033111## ----------------------------------- ##
33112## Report this to llvmbugs@cs.uiuc.edu ##
33113## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033114_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033115 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033116 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033117esac
Reid Spencera773bd52006-08-04 18:18:08 +000033118{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033121 echo $ECHO_N "(cached) $ECHO_C" >&6
33122else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033123 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033124fi
Reid Spencera773bd52006-08-04 18:18:08 +000033125ac_res=`eval echo '${'$as_ac_Header'}'`
33126 { echo "$as_me:$LINENO: result: $ac_res" >&5
33127echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033128
33129fi
33130if test `eval echo '${'$as_ac_Header'}'` = yes; then
33131 cat >>confdefs.h <<_ACEOF
33132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33133_ACEOF
33134
33135fi
33136
33137done
33138
33139
33140for ac_func in getpagesize
33141do
33142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033146 echo $ECHO_N "(cached) $ECHO_C" >&6
33147else
33148 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033149/* confdefs.h. */
33150_ACEOF
33151cat confdefs.h >>conftest.$ac_ext
33152cat >>conftest.$ac_ext <<_ACEOF
33153/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33156#define $ac_func innocuous_$ac_func
33157
John Criswell7a73b802003-06-30 21:59:07 +000033158/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033159 which can conflict with char $ac_func (); below.
33160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33161 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033162
John Criswell0c38eaf2003-09-10 15:17:25 +000033163#ifdef __STDC__
33164# include <limits.h>
33165#else
33166# include <assert.h>
33167#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033168
33169#undef $ac_func
33170
Reid Spencera773bd52006-08-04 18:18:08 +000033171/* Override any GCC internal prototype to avoid an error.
33172 Use char because int might match the return type of a GCC
33173 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033174#ifdef __cplusplus
33175extern "C"
33176#endif
John Criswell7a73b802003-06-30 21:59:07 +000033177char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033178/* The GNU C library defines this for functions which it implements
33179 to always fail with ENOSYS. Some functions are actually named
33180 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033181#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033182choke me
John Criswell7a73b802003-06-30 21:59:07 +000033183#endif
33184
John Criswell0c38eaf2003-09-10 15:17:25 +000033185int
33186main ()
33187{
Reid Spencera773bd52006-08-04 18:18:08 +000033188return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033189 ;
33190 return 0;
33191}
33192_ACEOF
33193rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033194if { (ac_try="$ac_link"
33195case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33198esac
33199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33200 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033202 grep -v '^ *+' conftest.er1 >conftest.err
33203 rm -f conftest.er1
33204 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033206 (exit $ac_status); } &&
33207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33208 { (case "(($ac_try" in
33209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33210 *) ac_try_echo=$ac_try;;
33211esac
33212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33213 (eval "$ac_try") 2>&5
33214 ac_status=$?
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); }; } &&
33217 { ac_try='test -s conftest$ac_exeext'
33218 { (case "(($ac_try" in
33219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220 *) ac_try_echo=$ac_try;;
33221esac
33222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223 (eval "$ac_try") 2>&5
33224 ac_status=$?
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033227 eval "$as_ac_var=yes"
33228else
33229 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033230sed 's/^/| /' conftest.$ac_ext >&5
33231
Reid Spencera773bd52006-08-04 18:18:08 +000033232 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033233fi
Reid Spencera773bd52006-08-04 18:18:08 +000033234
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033235rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033236 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033237fi
Reid Spencera773bd52006-08-04 18:18:08 +000033238ac_res=`eval echo '${'$as_ac_var'}'`
33239 { echo "$as_me:$LINENO: result: $ac_res" >&5
33240echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033241if test `eval echo '${'$as_ac_var'}'` = yes; then
33242 cat >>confdefs.h <<_ACEOF
33243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33244_ACEOF
33245
33246fi
33247done
33248
Reid Spencera773bd52006-08-04 18:18:08 +000033249{ echo "$as_me:$LINENO: checking for working mmap" >&5
33250echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033251if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33252 echo $ECHO_N "(cached) $ECHO_C" >&6
33253else
33254 if test "$cross_compiling" = yes; then
33255 ac_cv_func_mmap_fixed_mapped=no
33256else
33257 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033258/* confdefs.h. */
33259_ACEOF
33260cat confdefs.h >>conftest.$ac_ext
33261cat >>conftest.$ac_ext <<_ACEOF
33262/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033263$ac_includes_default
33264/* malloc might have been renamed as rpl_malloc. */
33265#undef malloc
33266
33267/* Thanks to Mike Haertel and Jim Avera for this test.
33268 Here is a matrix of mmap possibilities:
33269 mmap private not fixed
33270 mmap private fixed at somewhere currently unmapped
33271 mmap private fixed at somewhere already mapped
33272 mmap shared not fixed
33273 mmap shared fixed at somewhere currently unmapped
33274 mmap shared fixed at somewhere already mapped
33275 For private mappings, we should verify that changes cannot be read()
33276 back from the file, nor mmap's back from the file at a different
33277 address. (There have been systems where private was not correctly
33278 implemented like the infamous i386 svr4.0, and systems where the
33279 VM page cache was not coherent with the file system buffer cache
33280 like early versions of FreeBSD and possibly contemporary NetBSD.)
33281 For shared mappings, we should conversely verify that changes get
33282 propagated back to all the places they're supposed to be.
33283
33284 Grep wants private fixed already mapped.
33285 The main things grep needs to know about mmap are:
33286 * does it exist and is it safe to write into the mmap'd area
33287 * how to use it (BSD variants) */
33288
33289#include <fcntl.h>
33290#include <sys/mman.h>
33291
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033292#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033293char *malloc ();
33294#endif
33295
33296/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033297#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033298/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033299# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033300# define HAVE_SYS_PARAM_H 1
33301# endif
33302
33303# ifdef _SC_PAGESIZE
33304# define getpagesize() sysconf(_SC_PAGESIZE)
33305# else /* no _SC_PAGESIZE */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033306# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033307# include <sys/param.h>
33308# ifdef EXEC_PAGESIZE
33309# define getpagesize() EXEC_PAGESIZE
33310# else /* no EXEC_PAGESIZE */
33311# ifdef NBPG
33312# define getpagesize() NBPG * CLSIZE
33313# ifndef CLSIZE
33314# define CLSIZE 1
33315# endif /* no CLSIZE */
33316# else /* no NBPG */
33317# ifdef NBPC
33318# define getpagesize() NBPC
33319# else /* no NBPC */
33320# ifdef PAGESIZE
33321# define getpagesize() PAGESIZE
33322# endif /* PAGESIZE */
33323# endif /* no NBPC */
33324# endif /* no NBPG */
33325# endif /* no EXEC_PAGESIZE */
33326# else /* no HAVE_SYS_PARAM_H */
33327# define getpagesize() 8192 /* punt totally */
33328# endif /* no HAVE_SYS_PARAM_H */
33329# endif /* no _SC_PAGESIZE */
33330
33331#endif /* no HAVE_GETPAGESIZE */
33332
33333int
33334main ()
33335{
33336 char *data, *data2, *data3;
33337 int i, pagesize;
33338 int fd;
33339
33340 pagesize = getpagesize ();
33341
33342 /* First, make a file with some known garbage in it. */
33343 data = (char *) malloc (pagesize);
33344 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033345 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033346 for (i = 0; i < pagesize; ++i)
33347 *(data + i) = rand ();
33348 umask (0);
33349 fd = creat ("conftest.mmap", 0600);
33350 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033351 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033352 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033353 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033354 close (fd);
33355
33356 /* Next, try to mmap the file at a fixed address which already has
33357 something else allocated at it. If we can, also make sure that
33358 we see the same garbage. */
33359 fd = open ("conftest.mmap", O_RDWR);
33360 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033361 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033362 data2 = (char *) malloc (2 * pagesize);
33363 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033364 return 1;
33365 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033366 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033367 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033368 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033369 for (i = 0; i < pagesize; ++i)
33370 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033371 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033372
33373 /* Finally, make sure that changes to the mapped area do not
33374 percolate back to the file as seen by read(). (This is a bug on
33375 some variants of i386 svr4.0.) */
33376 for (i = 0; i < pagesize; ++i)
33377 *(data2 + i) = *(data2 + i) + 1;
33378 data3 = (char *) malloc (pagesize);
33379 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033380 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033381 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033382 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033383 for (i = 0; i < pagesize; ++i)
33384 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033385 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033386 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033387 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033388}
33389_ACEOF
33390rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033391if { (ac_try="$ac_link"
33392case "(($ac_try" in
33393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33394 *) ac_try_echo=$ac_try;;
33395esac
33396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33397 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033398 ac_status=$?
33399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033401 { (case "(($ac_try" in
33402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33403 *) ac_try_echo=$ac_try;;
33404esac
33405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33406 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033407 ac_status=$?
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); }; }; then
33410 ac_cv_func_mmap_fixed_mapped=yes
33411else
33412 echo "$as_me: program exited with status $ac_status" >&5
33413echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033414sed 's/^/| /' conftest.$ac_ext >&5
33415
John Criswell7a73b802003-06-30 21:59:07 +000033416( exit $ac_status )
33417ac_cv_func_mmap_fixed_mapped=no
33418fi
Reid Spencera773bd52006-08-04 18:18:08 +000033419rm -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 +000033420fi
Reid Spencera773bd52006-08-04 18:18:08 +000033421
33422
John Criswell7a73b802003-06-30 21:59:07 +000033423fi
Reid Spencera773bd52006-08-04 18:18:08 +000033424{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33425echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033426if test $ac_cv_func_mmap_fixed_mapped = yes; then
33427
33428cat >>confdefs.h <<\_ACEOF
33429#define HAVE_MMAP 1
33430_ACEOF
33431
33432fi
33433rm -f conftest.mmap
33434
Reid Spencer30fe5262007-01-20 07:48:49 +000033435 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033436echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033437if test "${ac_cv_func_mmap_file+set}" = set; then
33438 echo $ECHO_N "(cached) $ECHO_C" >&6
33439else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033440 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033441ac_cpp='$CPP $CPPFLAGS'
33442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33444ac_compiler_gnu=$ac_cv_c_compiler_gnu
33445
33446 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033447 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033448else
33449 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033450
Reid Spencer777ce172004-09-20 04:09:56 +000033451 /* confdefs.h. */
33452_ACEOF
33453cat confdefs.h >>conftest.$ac_ext
33454cat >>conftest.$ac_ext <<_ACEOF
33455/* end confdefs.h. */
33456
John Criswell7a73b802003-06-30 21:59:07 +000033457#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033458#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033459#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033460
33461int
33462main ()
33463{
John Criswell7a73b802003-06-30 21:59:07 +000033464
33465 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033466 fd = creat ("foo",0777);
33467 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33468 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033469 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033470 ;
33471 return 0;
33472}
John Criswell7a73b802003-06-30 21:59:07 +000033473_ACEOF
33474rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033475if { (ac_try="$ac_link"
33476case "(($ac_try" in
33477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478 *) ac_try_echo=$ac_try;;
33479esac
33480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033485 { (case "(($ac_try" in
33486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33487 *) ac_try_echo=$ac_try;;
33488esac
33489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33490 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033491 ac_status=$?
33492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493 (exit $ac_status); }; }; then
33494 ac_cv_func_mmap_file=yes
33495else
33496 echo "$as_me: program exited with status $ac_status" >&5
33497echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033498sed 's/^/| /' conftest.$ac_ext >&5
33499
John Criswell7a73b802003-06-30 21:59:07 +000033500( exit $ac_status )
33501ac_cv_func_mmap_file=no
33502fi
Reid Spencera773bd52006-08-04 18:18:08 +000033503rm -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 +000033504fi
Reid Spencera773bd52006-08-04 18:18:08 +000033505
33506
John Criswell7a73b802003-06-30 21:59:07 +000033507 ac_ext=c
33508ac_cpp='$CPP $CPPFLAGS'
33509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33511ac_compiler_gnu=$ac_cv_c_compiler_gnu
33512
33513
33514fi
Reid Spencera773bd52006-08-04 18:18:08 +000033515{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33516echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033517if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033518
33519cat >>confdefs.h <<\_ACEOF
33520#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033521_ACEOF
33522
33523 MMAP_FILE=yes
33524
33525fi
33526
Reid Spencer30fe5262007-01-20 07:48:49 +000033527 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033528echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033529if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33530 echo $ECHO_N "(cached) $ECHO_C" >&6
33531else
Reid Spencer582a23c2004-12-29 07:07:57 +000033532 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033533 ac_cv_need_dev_zero_for_mmap=yes
33534 else
33535 ac_cv_need_dev_zero_for_mmap=no
33536 fi
33537
33538fi
Reid Spencera773bd52006-08-04 18:18:08 +000033539{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33540echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033541if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33542
33543cat >>confdefs.h <<\_ACEOF
33544#define NEED_DEV_ZERO_FOR_MMAP 1
33545_ACEOF
33546
33547fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033548
Reid Spencer30fe5262007-01-20 07:48:49 +000033549 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33550 then
33551 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033552echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033553 fi
33554 if test "$ac_cv_func_mmap_file" = "no"
33555 then
33556 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033557echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033558 fi
John Criswellb13092b2003-07-22 21:00:24 +000033559fi
John Criswell7a73b802003-06-30 21:59:07 +000033560
33561
Reid Spencer9372f152007-07-30 20:13:24 +000033562
33563for ac_func in __dso_handle
33564do
33565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33566{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33568if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33569 echo $ECHO_N "(cached) $ECHO_C" >&6
33570else
33571 cat >conftest.$ac_ext <<_ACEOF
33572/* confdefs.h. */
33573_ACEOF
33574cat confdefs.h >>conftest.$ac_ext
33575cat >>conftest.$ac_ext <<_ACEOF
33576/* end confdefs.h. */
33577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33579#define $ac_func innocuous_$ac_func
33580
33581/* System header to define __stub macros and hopefully few prototypes,
33582 which can conflict with char $ac_func (); below.
33583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33584 <limits.h> exists even on freestanding compilers. */
33585
33586#ifdef __STDC__
33587# include <limits.h>
33588#else
33589# include <assert.h>
33590#endif
33591
33592#undef $ac_func
33593
33594/* Override any GCC internal prototype to avoid an error.
33595 Use char because int might match the return type of a GCC
33596 builtin and then its argument prototype would still apply. */
33597#ifdef __cplusplus
33598extern "C"
33599#endif
33600char $ac_func ();
33601/* The GNU C library defines this for functions which it implements
33602 to always fail with ENOSYS. Some functions are actually named
33603 something starting with __ and the normal name is an alias. */
33604#if defined __stub_$ac_func || defined __stub___$ac_func
33605choke me
33606#endif
33607
33608int
33609main ()
33610{
33611return $ac_func ();
33612 ;
33613 return 0;
33614}
33615_ACEOF
33616rm -f conftest.$ac_objext conftest$ac_exeext
33617if { (ac_try="$ac_link"
33618case "(($ac_try" in
33619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620 *) ac_try_echo=$ac_try;;
33621esac
33622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623 (eval "$ac_link") 2>conftest.er1
33624 ac_status=$?
33625 grep -v '^ *+' conftest.er1 >conftest.err
33626 rm -f conftest.er1
33627 cat conftest.err >&5
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033629 (exit $ac_status); } &&
33630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33631 { (case "(($ac_try" in
33632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33633 *) ac_try_echo=$ac_try;;
33634esac
33635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33636 (eval "$ac_try") 2>&5
33637 ac_status=$?
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); }; } &&
33640 { ac_try='test -s conftest$ac_exeext'
33641 { (case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644esac
33645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_try") 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033650 eval "$as_ac_var=yes"
33651else
33652 echo "$as_me: failed program was:" >&5
33653sed 's/^/| /' conftest.$ac_ext >&5
33654
33655 eval "$as_ac_var=no"
33656fi
33657
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033658rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033659 conftest$ac_exeext conftest.$ac_ext
33660fi
33661ac_res=`eval echo '${'$as_ac_var'}'`
33662 { echo "$as_me:$LINENO: result: $ac_res" >&5
33663echo "${ECHO_T}$ac_res" >&6; }
33664if test `eval echo '${'$as_ac_var'}'` = yes; then
33665 cat >>confdefs.h <<_ACEOF
33666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33667_ACEOF
33668
33669fi
33670done
33671
33672
Reid Spencera773bd52006-08-04 18:18:08 +000033673{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33674echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033675if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33676 echo $ECHO_N "(cached) $ECHO_C" >&6
33677else
33678 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033679if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033680 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033681 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33682 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033683 if test $? -eq 0 ; then
33684 llvm_cv_llvmgcc_sanity="yes"
33685 fi
33686 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033687fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033688fi
Reid Spencera773bd52006-08-04 18:18:08 +000033689{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33690echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033691
33692if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033693 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33694echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033695 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033696 LLVMCC1=$llvmcc1path
33697
Reid Spencer502935f2004-12-22 05:56:56 +000033698 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033699 LLVMCC1PLUS=$llvmcc1pluspath
33700
Reid Spencer502935f2004-12-22 05:56:56 +000033701 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33702 LLVMGCCDIR=$llvmgccdir
33703
Reid Spencer282d8c12006-12-21 22:55:41 +000033704 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33705 LLVMGCCLIBEXEC=$llvmgcclibexec
33706
Reid Spencerb5d75b82006-05-09 00:31:01 +000033707 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033708 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33709 LLVMGCC_VERSION=$llvmgccversion
33710
33711 LLVMGCC_MAJVERS=$llvmgccmajvers
33712
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000033713 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000033714 LLVMGCC_LANGS=$llvmgcclangs
33715
33716 { echo "$as_me:$LINENO: result: ok" >&5
33717echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033718fi
33719
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033720SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033721
33722
Reid Spencere9de0912004-08-20 09:03:57 +000033723# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033724# information into substitutions that will end up in Makefile.config.in
33725# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033726if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033727 prefix="/usr/local"
33728fi
Reid Spencere9de0912004-08-20 09:03:57 +000033729eval LLVM_PREFIX="${prefix}";
33730eval LLVM_BINDIR="${prefix}/bin";
33731eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033732eval LLVM_DATADIR="${prefix}/share/llvm";
33733eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33734eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033735eval LLVM_INCLUDEDIR="${prefix}/include";
33736eval LLVM_INFODIR="${prefix}/info";
33737eval LLVM_MANDIR="${prefix}/man";
33738LLVM_CONFIGTIME=`date`
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033750# Place the various directores into the config.h file as #defines so that we
33751# can know about the installation paths within LLVM.
33752
Reid Spencere9de0912004-08-20 09:03:57 +000033753cat >>confdefs.h <<_ACEOF
33754#define LLVM_PREFIX "$LLVM_PREFIX"
33755_ACEOF
33756
33757
33758cat >>confdefs.h <<_ACEOF
33759#define LLVM_BINDIR "$LLVM_BINDIR"
33760_ACEOF
33761
33762
33763cat >>confdefs.h <<_ACEOF
33764#define LLVM_LIBDIR "$LLVM_LIBDIR"
33765_ACEOF
33766
33767
33768cat >>confdefs.h <<_ACEOF
33769#define LLVM_DATADIR "$LLVM_DATADIR"
33770_ACEOF
33771
33772
33773cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000033774#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033775_ACEOF
33776
33777
33778cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033779#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033780_ACEOF
33781
33782
33783cat >>confdefs.h <<_ACEOF
33784#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33785_ACEOF
33786
33787
33788cat >>confdefs.h <<_ACEOF
33789#define LLVM_INFODIR "$LLVM_INFODIR"
33790_ACEOF
33791
33792
33793cat >>confdefs.h <<_ACEOF
33794#define LLVM_MANDIR "$LLVM_MANDIR"
33795_ACEOF
33796
33797
33798cat >>confdefs.h <<_ACEOF
33799#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33800_ACEOF
33801
33802
Eric Christopher790e11c2007-12-01 00:34:39 +000033803cat >>confdefs.h <<_ACEOF
33804#define LLVM_HOSTTRIPLE "$host"
33805_ACEOF
33806
33807
Gordon Henriksenc0efff82007-10-02 09:50:32 +000033808# Determine which bindings to build.
33809if test "$BINDINGS_TO_BUILD" = auto ; then
33810 BINDINGS_TO_BUILD=""
33811 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33812 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33813 fi
33814fi
33815BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33816
33817
33818# This isn't really configurey, but it avoids having to repeat the list in
33819# other files.
33820ALL_BINDINGS=ocaml
33821
33822
Gordon Henriksenf0915682007-10-02 16:42:22 +000033823# Do any work necessary to ensure that bindings have what they need.
33824binding_prereqs_failed=0
33825for a_binding in $BINDINGS_TO_BUILD ; do
33826 case "$a_binding" in
33827 ocaml)
33828 if test "x$OCAMLC" = x ; then
33829 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33830echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33831 binding_prereqs_failed=1
33832 fi
33833 if test "x$OCAMLDEP" = x ; then
33834 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33835echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33836 binding_prereqs_failed=1
33837 fi
33838 if test "x$OCAMLOPT" = x ; then
33839 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33840echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33841 fi
33842 if test "x$with_ocaml_libdir" != xauto ; then
33843 OCAML_LIBDIR=$with_ocaml_libdir
33844
33845 else
33846 ocaml_stdlib="`"$OCAMLC" -where`"
33847 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33848 then
33849 # ocaml stdlib is beneath our prefix; use stdlib
33850 OCAML_LIBDIR=$ocaml_stdlib
33851
33852 else
33853 # ocaml stdlib is outside our prefix; use libdir/ocaml
33854 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33855
33856 fi
33857 fi
33858 ;;
33859 esac
33860done
33861if test "$binding_prereqs_failed" = 1 ; then
33862 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33863echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33864 { (exit 1); exit 1; }; }
33865fi
33866
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033867{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33868echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33869if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33870 echo $ECHO_N "(cached) $ECHO_C" >&6
33871else
33872 ac_ext=cpp
33873ac_cpp='$CXXCPP $CPPFLAGS'
33874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33877
33878 oldcxxflags="$CXXFLAGS"
33879 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33880 cat >conftest.$ac_ext <<_ACEOF
33881/* confdefs.h. */
33882_ACEOF
33883cat confdefs.h >>conftest.$ac_ext
33884cat >>conftest.$ac_ext <<_ACEOF
33885/* end confdefs.h. */
33886
33887int
33888main ()
33889{
33890
33891 ;
33892 return 0;
33893}
33894_ACEOF
33895rm -f conftest.$ac_objext
33896if { (ac_try="$ac_compile"
33897case "(($ac_try" in
33898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899 *) ac_try_echo=$ac_try;;
33900esac
33901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902 (eval "$ac_compile") 2>conftest.er1
33903 ac_status=$?
33904 grep -v '^ *+' conftest.er1 >conftest.err
33905 rm -f conftest.er1
33906 cat conftest.err >&5
33907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033908 (exit $ac_status); } &&
33909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33910 { (case "(($ac_try" in
33911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33912 *) ac_try_echo=$ac_try;;
33913esac
33914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33915 (eval "$ac_try") 2>&5
33916 ac_status=$?
33917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918 (exit $ac_status); }; } &&
33919 { ac_try='test -s conftest.$ac_objext'
33920 { (case "(($ac_try" in
33921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33922 *) ac_try_echo=$ac_try;;
33923esac
33924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33925 (eval "$ac_try") 2>&5
33926 ac_status=$?
33927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033929 llvm_cv_cxx_visibility_inlines_hidden=yes
33930else
33931 echo "$as_me: failed program was:" >&5
33932sed 's/^/| /' conftest.$ac_ext >&5
33933
33934 llvm_cv_cxx_visibility_inlines_hidden=no
33935fi
33936
33937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33938 CXXFLAGS="$oldcxxflags"
33939 ac_ext=c
33940ac_cpp='$CPP $CPPFLAGS'
33941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33943ac_compiler_gnu=$ac_cv_c_compiler_gnu
33944
33945
33946fi
33947{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33948echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33949if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33950 ENABLE_VISIBILITY_INLINES_HIDDEN=1
33951
33952else
33953 ENABLE_VISIBILITY_INLINES_HIDDEN=0
33954
33955fi
33956
Gordon Henriksenf0915682007-10-02 16:42:22 +000033957
Nick Lewycky731c6ab2009-03-05 08:20:44 +000033958if test "$llvm_cv_link_use_r" = "yes" ; then
33959 RPATH="-Wl,-R"
33960else
33961 RPATH="-Wl,-rpath"
33962fi
33963
33964
33965if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
33966 RDYNAMIC="-Wl,-export-dynamic"
33967else
33968 RDYNAMIC=""
33969fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000033970
33971
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033972
Reid Spencera773bd52006-08-04 18:18:08 +000033973ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033974
Reid Spencera773bd52006-08-04 18:18:08 +000033975ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033976
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000033977ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033978
33979
Reid Spencera773bd52006-08-04 18:18:08 +000033980ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033981
33982
Reid Spencerea949cf2006-08-16 00:45:38 +000033983ac_config_files="$ac_config_files llvm.spec"
33984
33985
Reid Spencera773bd52006-08-04 18:18:08 +000033986ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033987
33988
Reid Spencera773bd52006-08-04 18:18:08 +000033989ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033990
33991
Reid Spencera773bd52006-08-04 18:18:08 +000033992ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033993
Reid Spencera773bd52006-08-04 18:18:08 +000033994ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033995
33996
Reid Spencera773bd52006-08-04 18:18:08 +000033997ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033998
33999
Reid Spencera773bd52006-08-04 18:18:08 +000034000ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034001
34002
Reid Spencera773bd52006-08-04 18:18:08 +000034003ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034004
34005
Reid Spencer8b2e1412006-11-17 03:32:33 +000034006ac_config_commands="$ac_config_commands runtime/Makefile"
34007
34008
Reid Spencera773bd52006-08-04 18:18:08 +000034009ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034010
34011
Reid Spencera773bd52006-08-04 18:18:08 +000034012ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034013
34014
Bill Wendlingf24eb392009-01-04 23:12:30 +000034015ac_config_commands="$ac_config_commands unittests/Makefile"
34016
34017
Reid Spencera773bd52006-08-04 18:18:08 +000034018ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034019
34020
Reid Spencera773bd52006-08-04 18:18:08 +000034021ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034022
34023
Reid Spencera773bd52006-08-04 18:18:08 +000034024ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034025
34026
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034027ac_config_commands="$ac_config_commands bindings/Makefile"
34028
34029
34030ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34031
34032
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034033
John Criswell7a73b802003-06-30 21:59:07 +000034034cat >confcache <<\_ACEOF
34035# This file is a shell script that caches the results of configure
34036# tests run on this system so they can be shared between configure
34037# scripts and configure runs, see configure's option --config-cache.
34038# It is not useful on other systems. If it contains results you don't
34039# want to keep, you may remove or edit it.
34040#
34041# config.status only pays attention to the cache file if you give it
34042# the --recheck option to rerun configure.
34043#
John Criswell0c38eaf2003-09-10 15:17:25 +000034044# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034045# loading this file, other *unset* `ac_cv_foo' will be assigned the
34046# following values.
34047
34048_ACEOF
34049
34050# The following way of writing the cache mishandles newlines in values,
34051# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034052# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034053# Ultrix sh set writes to stderr and can't be redirected directly,
34054# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034055(
34056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34057 eval ac_val=\$$ac_var
34058 case $ac_val in #(
34059 *${as_nl}*)
34060 case $ac_var in #(
34061 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34062echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34063 esac
34064 case $ac_var in #(
34065 _ | IFS | as_nl) ;; #(
34066 *) $as_unset $ac_var ;;
34067 esac ;;
34068 esac
34069 done
34070
John Criswell7a73b802003-06-30 21:59:07 +000034071 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034072 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34073 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034074 # `set' does not quote correctly, so add quotes (double-quote
34075 # substitution turns \\\\ into \\, and sed turns \\ into \).
34076 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034077 "s/'/'\\\\''/g;
34078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034079 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034080 *)
34081 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034083 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034084 esac |
34085 sort
34086) |
John Criswell7a73b802003-06-30 21:59:07 +000034087 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034088 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034089 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034090 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34092 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34094 :end' >>confcache
34095if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34096 if test -w "$cache_file"; then
34097 test "x$cache_file" != "x/dev/null" &&
34098 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34099echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034100 cat confcache >$cache_file
34101 else
Reid Spencera773bd52006-08-04 18:18:08 +000034102 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34103echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034104 fi
34105fi
34106rm -f confcache
34107
34108test "x$prefix" = xNONE && prefix=$ac_default_prefix
34109# Let make expand exec_prefix.
34110test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34111
John Criswell7a73b802003-06-30 21:59:07 +000034112DEFS=-DHAVE_CONFIG_H
34113
John Criswell0c38eaf2003-09-10 15:17:25 +000034114ac_libobjs=
34115ac_ltlibobjs=
34116for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34117 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34119 ac_i=`echo "$ac_i" | sed "$ac_script"`
34120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34121 # will be set to the directory where LIBOBJS objects are built.
34122 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34123 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034124done
34125LIBOBJS=$ac_libobjs
34126
34127LTLIBOBJS=$ac_ltlibobjs
34128
34129
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034130if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34131 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34132Usually this means the macro was only invoked conditionally." >&5
34133echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34134Usually this means the macro was only invoked conditionally." >&2;}
34135 { (exit 1); exit 1; }; }
34136fi
34137if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34138 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34139Usually this means the macro was only invoked conditionally." >&5
34140echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34141Usually this means the macro was only invoked conditionally." >&2;}
34142 { (exit 1); exit 1; }; }
34143fi
John Criswell7a73b802003-06-30 21:59:07 +000034144
34145: ${CONFIG_STATUS=./config.status}
34146ac_clean_files_save=$ac_clean_files
34147ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34148{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34149echo "$as_me: creating $CONFIG_STATUS" >&6;}
34150cat >$CONFIG_STATUS <<_ACEOF
34151#! $SHELL
34152# Generated by $as_me.
34153# Run this file to recreate the current configuration.
34154# Compiler output produced by configure, useful for debugging
34155# configure, is in config.log if it exists.
34156
34157debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034158ac_cs_recheck=false
34159ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034160SHELL=\${CONFIG_SHELL-$SHELL}
34161_ACEOF
34162
34163cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034164## --------------------- ##
34165## M4sh Initialization. ##
34166## --------------------- ##
34167
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034168# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034169if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34170 emulate sh
34171 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034172 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34173 # is contrary to our usage. Disable this feature.
34174 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034175 setopt NO_GLOB_SUBST
34176else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034177 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034178fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034179BIN_SH=xpg4; export BIN_SH # for Tru64
34180DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034181
John Criswell7a73b802003-06-30 21:59:07 +000034182
Reid Spencera773bd52006-08-04 18:18:08 +000034183# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034184# Avoid depending upon Character Ranges.
34185as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34186as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34187as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34188as_cr_digits='0123456789'
34189as_cr_alnum=$as_cr_Letters$as_cr_digits
34190
34191# The user is always right.
34192if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034193 echo "#! /bin/sh" >conf$$.sh
34194 echo "exit 0" >>conf$$.sh
34195 chmod +x conf$$.sh
34196 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034197 PATH_SEPARATOR=';'
34198 else
34199 PATH_SEPARATOR=:
34200 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034201 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034202fi
34203
Reid Spencera773bd52006-08-04 18:18:08 +000034204# Support unset when possible.
34205if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34206 as_unset=unset
34207else
34208 as_unset=false
34209fi
John Criswell7a73b802003-06-30 21:59:07 +000034210
Reid Spencera773bd52006-08-04 18:18:08 +000034211
34212# IFS
34213# We need space, tab and new line, in precisely that order. Quoting is
34214# there to prevent editors from complaining about space-tab.
34215# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34216# splitting by setting IFS to empty value.)
34217as_nl='
34218'
34219IFS=" "" $as_nl"
34220
34221# Find who we are. Look in the path if we contain no directory separator.
34222case $0 in
34223 *[\\/]* ) as_myself=$0 ;;
34224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034225for as_dir in $PATH
34226do
34227 IFS=$as_save_IFS
34228 test -z "$as_dir" && as_dir=.
34229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34230done
Reid Spencera773bd52006-08-04 18:18:08 +000034231IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034232
Reid Spencera773bd52006-08-04 18:18:08 +000034233 ;;
34234esac
34235# We did not find ourselves, most probably we were run as `sh COMMAND'
34236# in which case we are not to be found in the path.
34237if test "x$as_myself" = x; then
34238 as_myself=$0
34239fi
34240if test ! -f "$as_myself"; then
34241 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34242 { (exit 1); exit 1; }
34243fi
34244
34245# Work around bugs in pre-3.0 UWIN ksh.
34246for as_var in ENV MAIL MAILPATH
34247do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34248done
34249PS1='$ '
34250PS2='> '
34251PS4='+ '
34252
34253# NLS nuisances.
34254for as_var in \
34255 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34256 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34257 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034258do
Reid Spencera773bd52006-08-04 18:18:08 +000034259 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34260 eval $as_var=C; export $as_var
34261 else
34262 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34263 fi
34264done
34265
34266# Required to use basename.
34267if expr a : '\(a\)' >/dev/null 2>&1 &&
34268 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34269 as_expr=expr
34270else
34271 as_expr=false
34272fi
34273
34274if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34275 as_basename=basename
34276else
34277 as_basename=false
34278fi
34279
34280
34281# Name of the executable.
34282as_me=`$as_basename -- "$0" ||
34283$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34284 X"$0" : 'X\(//\)$' \| \
34285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34286echo X/"$0" |
34287 sed '/^.*\/\([^/][^/]*\)\/*$/{
34288 s//\1/
34289 q
34290 }
34291 /^X\/\(\/\/\)$/{
34292 s//\1/
34293 q
34294 }
34295 /^X\/\(\/\).*/{
34296 s//\1/
34297 q
34298 }
34299 s/.*/./; q'`
34300
34301# CDPATH.
34302$as_unset CDPATH
34303
34304
34305
John Criswell7a73b802003-06-30 21:59:07 +000034306 as_lineno_1=$LINENO
34307 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034308 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034309 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034310
34311 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34312 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034313 # line-number line after each line using $LINENO; the second 'sed'
34314 # does the real work. The second script uses 'N' to pair each
34315 # line-number line with the line containing $LINENO, and appends
34316 # trailing '-' during substitution so that $LINENO is not a special
34317 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034318 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034319 # scripts with optimization help from Paolo Bonzini. Blame Lee
34320 # E. McMahon (1931-1989) for sed's syntax. :-)
34321 sed -n '
34322 p
34323 /[$]LINENO/=
34324 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034325 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034326 s/[$]LINENO.*/&-/
34327 t lineno
34328 b
34329 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034330 N
Reid Spencera773bd52006-08-04 18:18:08 +000034331 :loop
34332 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034333 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034334 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034335 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034336 chmod +x "$as_me.lineno" ||
34337 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034338 { (exit 1); exit 1; }; }
34339
34340 # Don't try to exec as it changes $[0], causing all sort of problems
34341 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034342 # original and so on. Autoconf is especially sensitive to this).
34343 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034344 # Exit status is that of the last command.
34345 exit
34346}
34347
34348
Reid Spencera773bd52006-08-04 18:18:08 +000034349if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34350 as_dirname=dirname
34351else
34352 as_dirname=false
34353fi
34354
34355ECHO_C= ECHO_N= ECHO_T=
34356case `echo -n x` in
34357-n*)
34358 case `echo 'x\c'` in
34359 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34360 *) ECHO_C='\c';;
34361 esac;;
34362*)
34363 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034364esac
34365
Reid Spencera773bd52006-08-04 18:18:08 +000034366if expr a : '\(a\)' >/dev/null 2>&1 &&
34367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034368 as_expr=expr
34369else
34370 as_expr=false
34371fi
34372
34373rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034374if test -d conf$$.dir; then
34375 rm -f conf$$.dir/conf$$.file
34376else
34377 rm -f conf$$.dir
34378 mkdir conf$$.dir
34379fi
John Criswell7a73b802003-06-30 21:59:07 +000034380echo >conf$$.file
34381if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034382 as_ln_s='ln -s'
34383 # ... but there are two gotchas:
34384 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34385 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34386 # In both cases, we have to default to `cp -p'.
34387 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034388 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034389elif ln conf$$.file conf$$ 2>/dev/null; then
34390 as_ln_s=ln
34391else
34392 as_ln_s='cp -p'
34393fi
Reid Spencera773bd52006-08-04 18:18:08 +000034394rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34395rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034396
John Criswell0c38eaf2003-09-10 15:17:25 +000034397if mkdir -p . 2>/dev/null; then
34398 as_mkdir_p=:
34399else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034400 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034401 as_mkdir_p=false
34402fi
34403
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034404# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34405# systems may use methods other than mode bits to determine executability.
34406cat >conf$$.file <<_ASEOF
34407#! /bin/sh
34408exit 0
34409_ASEOF
34410chmod +x conf$$.file
34411if test -x conf$$.file >/dev/null 2>&1; then
34412 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034413else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034414 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034415fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034416rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034417
34418# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034419as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034420
34421# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034422as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034423
34424
John Criswell7a73b802003-06-30 21:59:07 +000034425exec 6>&1
34426
Reid Spencera773bd52006-08-04 18:18:08 +000034427# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034428# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034429# values after options handling.
34430ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034431This file was extended by llvm $as_me 2.6svn, which was
34432generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034433
34434 CONFIG_FILES = $CONFIG_FILES
34435 CONFIG_HEADERS = $CONFIG_HEADERS
34436 CONFIG_LINKS = $CONFIG_LINKS
34437 CONFIG_COMMANDS = $CONFIG_COMMANDS
34438 $ $0 $@
34439
Reid Spencera773bd52006-08-04 18:18:08 +000034440on `(hostname || uname -n) 2>/dev/null | sed 1q`
34441"
34442
John Criswell7a73b802003-06-30 21:59:07 +000034443_ACEOF
34444
Reid Spencera773bd52006-08-04 18:18:08 +000034445cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034446# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034447config_files="$ac_config_files"
34448config_headers="$ac_config_headers"
34449config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034450
Reid Spencera773bd52006-08-04 18:18:08 +000034451_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034452
34453cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034454ac_cs_usage="\
34455\`$as_me' instantiates files from templates according to the
34456current configuration.
34457
34458Usage: $0 [OPTIONS] [FILE]...
34459
34460 -h, --help print this help, then exit
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034461 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034462 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034463 -d, --debug don't remove temporary files
34464 --recheck update $as_me by reconfiguring in the same conditions
34465 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034466 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034467 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034468 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034469
34470Configuration files:
34471$config_files
34472
34473Configuration headers:
34474$config_headers
34475
John Criswellc764fbc2003-09-06 15:17:13 +000034476Configuration commands:
34477$config_commands
34478
John Criswell7a73b802003-06-30 21:59:07 +000034479Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034480
Reid Spencera773bd52006-08-04 18:18:08 +000034481_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034482cat >>$CONFIG_STATUS <<_ACEOF
34483ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034484llvm config.status 2.6svn
34485configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034486 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034487
Reid Spencera773bd52006-08-04 18:18:08 +000034488Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034489This config.status script is free software; the Free Software Foundation
34490gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034491
34492ac_pwd='$ac_pwd'
34493srcdir='$srcdir'
34494INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034495_ACEOF
34496
34497cat >>$CONFIG_STATUS <<\_ACEOF
34498# If no file are specified by the user, then we need to provide default
34499# value. By we need to know if files were specified by the user.
34500ac_need_defaults=:
34501while test $# != 0
34502do
34503 case $1 in
34504 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34506 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034507 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034508 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034509 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034510 ac_option=$1
34511 ac_optarg=$2
34512 ac_shift=shift
34513 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034514 esac
34515
John Criswell0c38eaf2003-09-10 15:17:25 +000034516 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034517 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34519 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034520 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34521 echo "$ac_cs_version"; exit ;;
34522 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034523 debug=: ;;
34524 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034525 $ac_shift
34526 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034527 ac_need_defaults=false;;
34528 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034529 $ac_shift
34530 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034531 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034532 --he | --h)
34533 # Conflict between --help and --header
34534 { echo "$as_me: error: ambiguous option: $1
34535Try \`$0 --help' for more information." >&2
34536 { (exit 1); exit 1; }; };;
34537 --help | --hel | -h )
34538 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34541 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034542
34543 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034544 -*) { echo "$as_me: error: unrecognized option: $1
34545Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034546 { (exit 1); exit 1; }; } ;;
34547
Reid Spencera773bd52006-08-04 18:18:08 +000034548 *) ac_config_targets="$ac_config_targets $1"
34549 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034550
34551 esac
34552 shift
34553done
34554
John Criswell0c38eaf2003-09-10 15:17:25 +000034555ac_configure_extra_args=
34556
34557if $ac_cs_silent; then
34558 exec 6>/dev/null
34559 ac_configure_extra_args="$ac_configure_extra_args --silent"
34560fi
34561
34562_ACEOF
34563cat >>$CONFIG_STATUS <<_ACEOF
34564if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034565 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34566 CONFIG_SHELL=$SHELL
34567 export CONFIG_SHELL
34568 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034569fi
34570
John Criswell7a73b802003-06-30 21:59:07 +000034571_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034572cat >>$CONFIG_STATUS <<\_ACEOF
34573exec 5>>config.log
34574{
34575 echo
34576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34577## Running $as_me. ##
34578_ASBOX
34579 echo "$ac_log"
34580} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034581
Reid Spencera773bd52006-08-04 18:18:08 +000034582_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034583cat >>$CONFIG_STATUS <<_ACEOF
34584#
Reid Spencera773bd52006-08-04 18:18:08 +000034585# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034586#
Reid Spencerc0682832005-02-24 19:05:19 +000034587llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034588
34589_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034590
John Criswell7a73b802003-06-30 21:59:07 +000034591cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034592
34593# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034594for ac_config_target in $ac_config_targets
34595do
Reid Spencera773bd52006-08-04 18:18:08 +000034596 case $ac_config_target in
34597 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34598 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034599 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034600 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034601 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034602 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34603 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34604 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34605 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34606 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34607 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34608 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034609 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034610 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34611 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000034612 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034613 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34614 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34615 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034616 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34617 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034618
John Criswell7a73b802003-06-30 21:59:07 +000034619 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34620echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34621 { (exit 1); exit 1; }; };;
34622 esac
34623done
34624
Reid Spencera773bd52006-08-04 18:18:08 +000034625
John Criswell7a73b802003-06-30 21:59:07 +000034626# If the user did not use the arguments to specify the items to instantiate,
34627# then the envvar interface is used. Set only those that are not.
34628# We use the long form for the default assignment because of an extremely
34629# bizarre bug on SunOS 4.1.3.
34630if $ac_need_defaults; then
34631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34632 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034633 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034634fi
34635
John Criswell0c38eaf2003-09-10 15:17:25 +000034636# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034637# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034638# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034639# Hook for its removal unless debugging.
34640# Note that there is a small window in which the directory will not be cleaned:
34641# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034642$debug ||
34643{
Reid Spencera773bd52006-08-04 18:18:08 +000034644 tmp=
34645 trap 'exit_status=$?
34646 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34647' 0
John Criswell7a73b802003-06-30 21:59:07 +000034648 trap '{ (exit 1); exit 1; }' 1 2 13 15
34649}
John Criswell7a73b802003-06-30 21:59:07 +000034650# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034651
John Criswell7a73b802003-06-30 21:59:07 +000034652{
Reid Spencera773bd52006-08-04 18:18:08 +000034653 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034654 test -n "$tmp" && test -d "$tmp"
34655} ||
34656{
Reid Spencera773bd52006-08-04 18:18:08 +000034657 tmp=./conf$$-$RANDOM
34658 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034659} ||
34660{
John Criswell0c38eaf2003-09-10 15:17:25 +000034661 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034662 { (exit 1); exit 1; }
34663}
34664
John Criswell7a73b802003-06-30 21:59:07 +000034665#
Reid Spencera773bd52006-08-04 18:18:08 +000034666# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034667#
34668
34669# No need to generate the scripts if there are no CONFIG_FILES.
34670# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034671if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034672
34673_ACEOF
34674
Reid Spencera773bd52006-08-04 18:18:08 +000034675
34676
34677ac_delim='%!_!# '
34678for ac_last_try in false false false false false :; do
34679 cat >conf$$subs.sed <<_ACEOF
34680SHELL!$SHELL$ac_delim
34681PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34682PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34683PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34684PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34685PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34686PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34687exec_prefix!$exec_prefix$ac_delim
34688prefix!$prefix$ac_delim
34689program_transform_name!$program_transform_name$ac_delim
34690bindir!$bindir$ac_delim
34691sbindir!$sbindir$ac_delim
34692libexecdir!$libexecdir$ac_delim
34693datarootdir!$datarootdir$ac_delim
34694datadir!$datadir$ac_delim
34695sysconfdir!$sysconfdir$ac_delim
34696sharedstatedir!$sharedstatedir$ac_delim
34697localstatedir!$localstatedir$ac_delim
34698includedir!$includedir$ac_delim
34699oldincludedir!$oldincludedir$ac_delim
34700docdir!$docdir$ac_delim
34701infodir!$infodir$ac_delim
34702htmldir!$htmldir$ac_delim
34703dvidir!$dvidir$ac_delim
34704pdfdir!$pdfdir$ac_delim
34705psdir!$psdir$ac_delim
34706libdir!$libdir$ac_delim
34707localedir!$localedir$ac_delim
34708mandir!$mandir$ac_delim
34709DEFS!$DEFS$ac_delim
34710ECHO_C!$ECHO_C$ac_delim
34711ECHO_N!$ECHO_N$ac_delim
34712ECHO_T!$ECHO_T$ac_delim
34713LIBS!$LIBS$ac_delim
34714build_alias!$build_alias$ac_delim
34715host_alias!$host_alias$ac_delim
34716target_alias!$target_alias$ac_delim
34717LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34718subdirs!$subdirs$ac_delim
34719build!$build$ac_delim
34720build_cpu!$build_cpu$ac_delim
34721build_vendor!$build_vendor$ac_delim
34722build_os!$build_os$ac_delim
34723host!$host$ac_delim
34724host_cpu!$host_cpu$ac_delim
34725host_vendor!$host_vendor$ac_delim
34726host_os!$host_os$ac_delim
34727target!$target$ac_delim
34728target_cpu!$target_cpu$ac_delim
34729target_vendor!$target_vendor$ac_delim
34730target_os!$target_os$ac_delim
34731OS!$OS$ac_delim
34732LINKALL!$LINKALL$ac_delim
34733NOLINKALL!$NOLINKALL$ac_delim
34734LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34735LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000034736ARCH!$ARCH$ac_delim
34737ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034738CC!$CC$ac_delim
34739CFLAGS!$CFLAGS$ac_delim
34740LDFLAGS!$LDFLAGS$ac_delim
34741CPPFLAGS!$CPPFLAGS$ac_delim
34742ac_ct_CC!$ac_ct_CC$ac_delim
34743EXEEXT!$EXEEXT$ac_delim
34744OBJEXT!$OBJEXT$ac_delim
34745CPP!$CPP$ac_delim
34746GREP!$GREP$ac_delim
34747EGREP!$EGREP$ac_delim
34748LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34749BUILD_CC!$BUILD_CC$ac_delim
34750BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000034751BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034752CVSBUILD!$CVSBUILD$ac_delim
34753ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34754DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034755ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34756EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034757DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034758JIT!$JIT$ac_delim
34759TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34760ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34761ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034762ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034763TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034764ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034765EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000034766BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034767CXX!$CXX$ac_delim
34768CXXFLAGS!$CXXFLAGS$ac_delim
34769ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000034770NM!$NM$ac_delim
34771ifGNUmake!$ifGNUmake$ac_delim
34772LN_S!$LN_S$ac_delim
34773CMP!$CMP$ac_delim
34774CP!$CP$ac_delim
34775DATE!$DATE$ac_delim
34776FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034777_ACEOF
34778
34779 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34780 break
34781 elif $ac_last_try; then
34782 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34783echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34784 { (exit 1); exit 1; }; }
34785 else
34786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034787 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034788done
34789
34790ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34791if test -n "$ac_eof"; then
34792 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34793 ac_eof=`expr $ac_eof + 1`
34794fi
34795
34796cat >>$CONFIG_STATUS <<_ACEOF
34797cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34799_ACEOF
34800sed '
34801s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34802s/^/s,@/; s/!/@,|#_!!_#|/
34803:n
34804t n
34805s/'"$ac_delim"'$/,g/; t
34806s/$/\\/; p
34807N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34808' >>$CONFIG_STATUS <conf$$subs.sed
34809rm -f conf$$subs.sed
34810cat >>$CONFIG_STATUS <<_ACEOF
34811CEOF$ac_eof
34812_ACEOF
34813
34814
34815ac_delim='%!_!# '
34816for ac_last_try in false false false false false :; do
34817 cat >conf$$subs.sed <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034818MKDIR!$MKDIR$ac_delim
34819MV!$MV$ac_delim
34820RANLIB!$RANLIB$ac_delim
34821RM!$RM$ac_delim
34822SED!$SED$ac_delim
34823TAR!$TAR$ac_delim
34824BINPWD!$BINPWD$ac_delim
34825GRAPHVIZ!$GRAPHVIZ$ac_delim
34826DOT!$DOT$ac_delim
34827GV!$GV$ac_delim
34828DOTTY!$DOTTY$ac_delim
34829PERL!$PERL$ac_delim
34830HAVE_PERL!$HAVE_PERL$ac_delim
34831INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34832INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34833INSTALL_DATA!$INSTALL_DATA$ac_delim
34834BZIP2!$BZIP2$ac_delim
34835DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034836GROFF!$GROFF$ac_delim
34837GZIP!$GZIP$ac_delim
34838POD2HTML!$POD2HTML$ac_delim
34839POD2MAN!$POD2MAN$ac_delim
34840RUNTEST!$RUNTEST$ac_delim
34841TCLSH!$TCLSH$ac_delim
34842ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000034843OCAMLC!$OCAMLC$ac_delim
34844OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000034845OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000034846OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000034847GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034848INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34849INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34850CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34851CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34852LIBADD_DL!$LIBADD_DL$ac_delim
34853ECHO!$ECHO$ac_delim
34854AR!$AR$ac_delim
34855STRIP!$STRIP$ac_delim
34856CXXCPP!$CXXCPP$ac_delim
34857F77!$F77$ac_delim
34858FFLAGS!$FFLAGS$ac_delim
34859ac_ct_F77!$ac_ct_F77$ac_delim
34860LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034861LLVMGCC!$LLVMGCC$ac_delim
34862LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034863USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034864HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034865HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034866ALLOCA!$ALLOCA$ac_delim
34867MMAP_FILE!$MMAP_FILE$ac_delim
34868LLVMCC1!$LLVMCC1$ac_delim
34869LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34870LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034871LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034872LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34873LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000034874LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034875SHLIBEXT!$SHLIBEXT$ac_delim
34876LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34877LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34878LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34879LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34880LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34881LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34882LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34883LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34884LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34885LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034886BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34887ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000034888OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034889ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034890RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034891RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034892LIBOBJS!$LIBOBJS$ac_delim
34893LTLIBOBJS!$LTLIBOBJS$ac_delim
34894_ACEOF
34895
Nick Lewycky267fddb2009-04-13 04:26:27 +000034896 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Reid Spencera773bd52006-08-04 18:18:08 +000034897 break
34898 elif $ac_last_try; then
34899 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34900echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34901 { (exit 1); exit 1; }; }
34902 else
34903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34904 fi
34905done
34906
34907ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34908if test -n "$ac_eof"; then
34909 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34910 ac_eof=`expr $ac_eof + 1`
34911fi
34912
34913cat >>$CONFIG_STATUS <<_ACEOF
34914cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34915/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34916_ACEOF
34917sed '
34918s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34919s/^/s,@/; s/!/@,|#_!!_#|/
34920:n
34921t n
34922s/'"$ac_delim"'$/,g/; t
34923s/$/\\/; p
34924N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34925' >>$CONFIG_STATUS <conf$$subs.sed
34926rm -f conf$$subs.sed
34927cat >>$CONFIG_STATUS <<_ACEOF
34928:end
34929s/|#_!!_#|//g
34930CEOF$ac_eof
34931_ACEOF
34932
34933
34934# VPATH may cause trouble with some makes, so we remove $(srcdir),
34935# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34936# trailing colons and then remove the whole line if VPATH becomes empty
34937# (actually we leave an empty line to preserve line numbers).
34938if test "x$srcdir" = x.; then
34939 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34940s/:*\$(srcdir):*/:/
34941s/:*\${srcdir}:*/:/
34942s/:*@srcdir@:*/:/
34943s/^\([^=]*=[ ]*\):*/\1/
34944s/:*$//
34945s/^[^=]*=[ ]*$//
34946}'
34947fi
34948
34949cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034950fi # test -n "$CONFIG_FILES"
34951
Reid Spencera773bd52006-08-04 18:18:08 +000034952
34953for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34954do
34955 case $ac_tag in
34956 :[FHLC]) ac_mode=$ac_tag; continue;;
34957 esac
34958 case $ac_mode$ac_tag in
34959 :[FHL]*:*);;
34960 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34961echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34962 { (exit 1); exit 1; }; };;
34963 :[FH]-) ac_tag=-:-;;
34964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34965 esac
34966 ac_save_IFS=$IFS
34967 IFS=:
34968 set x $ac_tag
34969 IFS=$ac_save_IFS
34970 shift
34971 ac_file=$1
34972 shift
34973
34974 case $ac_mode in
34975 :L) ac_source=$1;;
34976 :[FH])
34977 ac_file_inputs=
34978 for ac_f
34979 do
34980 case $ac_f in
34981 -) ac_f="$tmp/stdin";;
34982 *) # Look for the file first in the build tree, then in the source tree
34983 # (if the path is not absolute). The absolute path cannot be DOS-style,
34984 # because $ac_f cannot contain `:'.
34985 test -f "$ac_f" ||
34986 case $ac_f in
34987 [\\/$]*) false;;
34988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34989 esac ||
34990 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34991echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34992 { (exit 1); exit 1; }; };;
34993 esac
34994 ac_file_inputs="$ac_file_inputs $ac_f"
34995 done
34996
34997 # Let's still pretend it is `configure' which instantiates (i.e., don't
34998 # use $as_me), people would be surprised to read:
34999 # /* config.h. Generated by config.status. */
35000 configure_input="Generated from "`IFS=:
35001 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35002 if test x"$ac_file" != x-; then
35003 configure_input="$ac_file. $configure_input"
35004 { echo "$as_me:$LINENO: creating $ac_file" >&5
35005echo "$as_me: creating $ac_file" >&6;}
35006 fi
35007
35008 case $ac_tag in
35009 *:-:* | *:-) cat >"$tmp/stdin";;
35010 esac
35011 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035012 esac
35013
Reid Spencera773bd52006-08-04 18:18:08 +000035014 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035016 X"$ac_file" : 'X\(//\)[^/]' \| \
35017 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035019echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35021 s//\1/
35022 q
35023 }
35024 /^X\(\/\/\)[^/].*/{
35025 s//\1/
35026 q
35027 }
35028 /^X\(\/\/\)$/{
35029 s//\1/
35030 q
35031 }
35032 /^X\(\/\).*/{
35033 s//\1/
35034 q
35035 }
35036 s/.*/./; q'`
35037 { as_dir="$ac_dir"
35038 case $as_dir in #(
35039 -*) as_dir=./$as_dir;;
35040 esac
35041 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035042 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035043 while :; do
35044 case $as_dir in #(
35045 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35046 *) as_qdir=$as_dir;;
35047 esac
35048 as_dirs="'$as_qdir' $as_dirs"
35049 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035051 X"$as_dir" : 'X\(//\)[^/]' \| \
35052 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035054echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35056 s//\1/
35057 q
35058 }
35059 /^X\(\/\/\)[^/].*/{
35060 s//\1/
35061 q
35062 }
35063 /^X\(\/\/\)$/{
35064 s//\1/
35065 q
35066 }
35067 /^X\(\/\).*/{
35068 s//\1/
35069 q
35070 }
35071 s/.*/./; q'`
35072 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035073 done
Reid Spencera773bd52006-08-04 18:18:08 +000035074 test -z "$as_dirs" || eval "mkdir $as_dirs"
35075 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35076echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035077 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035078 ac_builddir=.
35079
Reid Spencera773bd52006-08-04 18:18:08 +000035080case "$ac_dir" in
35081.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35082*)
John Criswell7a73b802003-06-30 21:59:07 +000035083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035084 # A ".." for each directory in $ac_dir_suffix.
35085 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35086 case $ac_top_builddir_sub in
35087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35089 esac ;;
35090esac
35091ac_abs_top_builddir=$ac_pwd
35092ac_abs_builddir=$ac_pwd$ac_dir_suffix
35093# for backward compatibility:
35094ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035095
35096case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035097 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035098 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035099 ac_top_srcdir=$ac_top_builddir_sub
35100 ac_abs_top_srcdir=$ac_pwd ;;
35101 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035102 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035103 ac_top_srcdir=$srcdir
35104 ac_abs_top_srcdir=$srcdir ;;
35105 *) # Relative name.
35106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35107 ac_top_srcdir=$ac_top_build_prefix$srcdir
35108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035109esac
Reid Spencera773bd52006-08-04 18:18:08 +000035110ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035111
John Criswell7a73b802003-06-30 21:59:07 +000035112
Reid Spencera773bd52006-08-04 18:18:08 +000035113 case $ac_mode in
35114 :F)
35115 #
35116 # CONFIG_FILE
35117 #
John Criswell7a73b802003-06-30 21:59:07 +000035118
35119 case $INSTALL in
35120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035122 esac
John Criswell7a73b802003-06-30 21:59:07 +000035123_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035124
35125cat >>$CONFIG_STATUS <<\_ACEOF
35126# If the template does not know about datarootdir, expand it.
35127# FIXME: This hack should be removed a few years after 2.60.
35128ac_datarootdir_hack=; ac_datarootdir_seen=
35129
35130case `sed -n '/datarootdir/ {
35131 p
35132 q
35133}
35134/@datadir@/p
35135/@docdir@/p
35136/@infodir@/p
35137/@localedir@/p
35138/@mandir@/p
35139' $ac_file_inputs` in
35140*datarootdir*) ac_datarootdir_seen=yes;;
35141*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35142 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35143echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35144_ACEOF
35145cat >>$CONFIG_STATUS <<_ACEOF
35146 ac_datarootdir_hack='
35147 s&@datadir@&$datadir&g
35148 s&@docdir@&$docdir&g
35149 s&@infodir@&$infodir&g
35150 s&@localedir@&$localedir&g
35151 s&@mandir@&$mandir&g
35152 s&\\\${datarootdir}&$datarootdir&g' ;;
35153esac
35154_ACEOF
35155
35156# Neutralize VPATH when `$srcdir' = `.'.
35157# Shell code in configure.ac might set extrasub.
35158# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035159cat >>$CONFIG_STATUS <<_ACEOF
35160 sed "$ac_vpsub
35161$extrasub
35162_ACEOF
35163cat >>$CONFIG_STATUS <<\_ACEOF
35164:t
35165/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035166s&@configure_input@&$configure_input&;t t
35167s&@top_builddir@&$ac_top_builddir_sub&;t t
35168s&@srcdir@&$ac_srcdir&;t t
35169s&@abs_srcdir@&$ac_abs_srcdir&;t t
35170s&@top_srcdir@&$ac_top_srcdir&;t t
35171s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35172s&@builddir@&$ac_builddir&;t t
35173s&@abs_builddir@&$ac_abs_builddir&;t t
35174s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35175s&@INSTALL@&$ac_INSTALL&;t t
35176$ac_datarootdir_hack
35177" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035178
Reid Spencera773bd52006-08-04 18:18:08 +000035179test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35180 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35182 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35183which seems to be undefined. Please make sure it is defined." >&5
35184echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35185which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035186
Reid Spencera773bd52006-08-04 18:18:08 +000035187 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035188 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035189 -) cat "$tmp/out"; rm -f "$tmp/out";;
35190 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035191 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035192 ;;
35193 :H)
35194 #
35195 # CONFIG_HEADER
35196 #
John Criswell7a73b802003-06-30 21:59:07 +000035197_ACEOF
35198
Reid Spencera773bd52006-08-04 18:18:08 +000035199# Transform confdefs.h into a sed script `conftest.defines', that
35200# substitutes the proper values into config.h.in to produce config.h.
35201rm -f conftest.defines conftest.tail
35202# First, append a space to every undef/define line, to ease matching.
35203echo 's/$/ /' >conftest.defines
35204# Then, protect against being on the right side of a sed subst, or in
35205# an unquoted here document, in config.status. If some macros were
35206# called several times there might be several #defines for the same
35207# symbol, which is useless. But do not sort them, since the last
35208# AC_DEFINE must be honored.
35209ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35210# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35211# NAME is the cpp macro being defined, VALUE is the value it is being given.
35212# PARAMS is the parameter list in the macro definition--in most cases, it's
35213# just an empty string.
35214ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35215ac_dB='\\)[ (].*,\\1define\\2'
35216ac_dC=' '
35217ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035218
Reid Spencera773bd52006-08-04 18:18:08 +000035219uniq confdefs.h |
35220 sed -n '
35221 t rset
35222 :rset
35223 s/^[ ]*#[ ]*define[ ][ ]*//
35224 t ok
35225 d
35226 :ok
35227 s/[\\&,]/\\&/g
35228 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35229 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35230 ' >>conftest.defines
35231
35232# Remove the space that was appended to ease matching.
35233# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035234# example, in the case of _POSIX_SOURCE, which is predefined and required
35235# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035236# (The regexp can be short, since the line contains either #define or #undef.)
35237echo 's/ $//
35238s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035239
Reid Spencera773bd52006-08-04 18:18:08 +000035240# Break up conftest.defines:
35241ac_max_sed_lines=50
35242
35243# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35244# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35245# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35246# et cetera.
35247ac_in='$ac_file_inputs'
35248ac_out='"$tmp/out1"'
35249ac_nxt='"$tmp/out2"'
35250
35251while :
John Criswell7a73b802003-06-30 21:59:07 +000035252do
Reid Spencera773bd52006-08-04 18:18:08 +000035253 # Write a here document:
35254 cat >>$CONFIG_STATUS <<_ACEOF
35255 # First, check the format of the line:
35256 cat >"\$tmp/defines.sed" <<\\CEOF
35257/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35258/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35259b
35260:def
35261_ACEOF
35262 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035263 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035264 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35265 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35266 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35267 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035268 rm -f conftest.defines
35269 mv conftest.tail conftest.defines
35270done
Reid Spencera773bd52006-08-04 18:18:08 +000035271rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035272
Reid Spencera773bd52006-08-04 18:18:08 +000035273echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035274cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035275 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035276 echo "/* $configure_input */" >"$tmp/config.h"
35277 cat "$ac_result" >>"$tmp/config.h"
35278 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035279 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35280echo "$as_me: $ac_file is unchanged" >&6;}
35281 else
John Criswell7a73b802003-06-30 21:59:07 +000035282 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035283 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035284 fi
35285 else
Reid Spencera773bd52006-08-04 18:18:08 +000035286 echo "/* $configure_input */"
35287 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035288 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035289 rm -f "$tmp/out12"
35290 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035291
Reid Spencera773bd52006-08-04 18:18:08 +000035292 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35293echo "$as_me: executing $ac_file commands" >&6;}
35294 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035295 esac
John Criswell7a73b802003-06-30 21:59:07 +000035296
Reid Spencera773bd52006-08-04 18:18:08 +000035297
35298 case $ac_file$ac_mode in
35299 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35300 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35301 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35302 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35303 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35304 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35305 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35306 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035307 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35308 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035309 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35310 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35311 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35312 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035313 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35314 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035315 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35316 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35317 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35318 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35319 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35320 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035321 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35322 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35323 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35324 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035325
35326 esac
35327done # for ac_tag
35328
John Criswell7a73b802003-06-30 21:59:07 +000035329
35330{ (exit 0); exit 0; }
35331_ACEOF
35332chmod +x $CONFIG_STATUS
35333ac_clean_files=$ac_clean_files_save
35334
35335
35336# configure is writing to config.log, and then calls config.status.
35337# config.status does its own redirection, appending to config.log.
35338# Unfortunately, on DOS this fails, as config.log is still kept open
35339# by configure, so config.status won't be able to write to it; its
35340# output is simply discarded. So we exec the FD to /dev/null,
35341# effectively closing config.log, so it can be properly (re)opened and
35342# appended to by config.status. When coming back to configure, we
35343# need to make the FD available again.
35344if test "$no_create" != yes; then
35345 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035346 ac_config_status_args=
35347 test "$silent" = yes &&
35348 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035349 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035351 exec 5>>config.log
35352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35353 # would make configure fail if this is the last instruction.
35354 $ac_cs_success || { (exit 1); exit 1; }
35355fi
35356
John Criswell12399a12003-09-30 15:55:44 +000035357#
35358# CONFIG_SUBDIRS section.
35359#
35360if test "$no_recursion" != yes; then
35361
35362 # Remove --cache-file and --srcdir arguments so they do not pile up.
35363 ac_sub_configure_args=
35364 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035365 eval "set x $ac_configure_args"
35366 shift
35367 for ac_arg
35368 do
John Criswell12399a12003-09-30 15:55:44 +000035369 if test -n "$ac_prev"; then
35370 ac_prev=
35371 continue
35372 fi
35373 case $ac_arg in
35374 -cache-file | --cache-file | --cache-fil | --cache-fi \
35375 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35376 ac_prev=cache_file ;;
35377 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35378 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35379 | --c=*)
35380 ;;
35381 --config-cache | -C)
35382 ;;
35383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35384 ac_prev=srcdir ;;
35385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35386 ;;
35387 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35388 ac_prev=prefix ;;
35389 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35390 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035391 *)
35392 case $ac_arg in
35393 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35394 esac
35395 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035396 esac
35397 done
35398
35399 # Always prepend --prefix to ensure using the same prefix
35400 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035401 ac_arg="--prefix=$prefix"
35402 case $ac_arg in
35403 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35404 esac
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035405 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035406
35407 ac_popdir=`pwd`
35408 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35409
35410 # Do not complain, so a configure script can configure whichever
35411 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035412 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035413
Reid Spencera773bd52006-08-04 18:18:08 +000035414 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35415 echo "$as_me:$LINENO: $ac_msg" >&5
35416 echo "$ac_msg" >&6
35417 { as_dir="$ac_dir"
35418 case $as_dir in #(
35419 -*) as_dir=./$as_dir;;
35420 esac
35421 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035422 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035423 while :; do
35424 case $as_dir in #(
35425 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35426 *) as_qdir=$as_dir;;
35427 esac
35428 as_dirs="'$as_qdir' $as_dirs"
35429 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035430$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035431 X"$as_dir" : 'X\(//\)[^/]' \| \
35432 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035433 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035434echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35436 s//\1/
35437 q
35438 }
35439 /^X\(\/\/\)[^/].*/{
35440 s//\1/
35441 q
35442 }
35443 /^X\(\/\/\)$/{
35444 s//\1/
35445 q
35446 }
35447 /^X\(\/\).*/{
35448 s//\1/
35449 q
35450 }
35451 s/.*/./; q'`
35452 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035453 done
Reid Spencera773bd52006-08-04 18:18:08 +000035454 test -z "$as_dirs" || eval "mkdir $as_dirs"
35455 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35456echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035457 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035458 ac_builddir=.
35459
Reid Spencera773bd52006-08-04 18:18:08 +000035460case "$ac_dir" in
35461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35462*)
John Criswell12399a12003-09-30 15:55:44 +000035463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035464 # A ".." for each directory in $ac_dir_suffix.
35465 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35466 case $ac_top_builddir_sub in
35467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35469 esac ;;
35470esac
35471ac_abs_top_builddir=$ac_pwd
35472ac_abs_builddir=$ac_pwd$ac_dir_suffix
35473# for backward compatibility:
35474ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035475
35476case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035477 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035478 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035479 ac_top_srcdir=$ac_top_builddir_sub
35480 ac_abs_top_srcdir=$ac_pwd ;;
35481 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035482 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035483 ac_top_srcdir=$srcdir
35484 ac_abs_top_srcdir=$srcdir ;;
35485 *) # Relative name.
35486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35487 ac_top_srcdir=$ac_top_build_prefix$srcdir
35488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035489esac
Reid Spencera773bd52006-08-04 18:18:08 +000035490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035491
35492
Reid Spencera773bd52006-08-04 18:18:08 +000035493 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035494
35495 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035496 if test -f "$ac_srcdir/configure.gnu"; then
35497 ac_sub_configure=$ac_srcdir/configure.gnu
35498 elif test -f "$ac_srcdir/configure"; then
35499 ac_sub_configure=$ac_srcdir/configure
35500 elif test -f "$ac_srcdir/configure.in"; then
35501 # This should be Cygnus configure.
35502 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035503 else
35504 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35505echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35506 ac_sub_configure=
35507 fi
35508
35509 # The recursion is here.
35510 if test -n "$ac_sub_configure"; then
35511 # Make the cache file name correct relative to the subdirectory.
35512 case $cache_file in
35513 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035514 *) # Relative name.
35515 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035516 esac
35517
Reid Spencera773bd52006-08-04 18:18:08 +000035518 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35519echo "$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 +000035520 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035521 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35522 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035523 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035524echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35525 { (exit 1); exit 1; }; }
35526 fi
35527
Reid Spencera773bd52006-08-04 18:18:08 +000035528 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035529 done
35530fi
35531