blob: c549a8182425fd98047d9385f84807c99103c05d [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnercf067672008-01-17 05:57:22 +00003# Generated by GNU Autoconf 2.60 for llvm 2.3svn.
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 Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Tanya Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Tanya Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Tanya Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Tanya Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +0000718PACKAGE_VERSION='2.3svn'
719PACKAGE_STRING='llvm 2.3svn'
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 Lattnercf067672008-01-17 05:57:22 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnercf067672008-01-17 05:57:22 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Tanya Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +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 Lattnercf067672008-01-17 05:57:22 +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
815ARCH
Duncan Sands67f1c492007-12-12 23:03:45 +0000816ENDIAN
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
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000835DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000840ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000841TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000842ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
Scott Michel96dcd2b2007-12-05 21:24:02 +0000848LEXLIB
Tanya Lattnercf067672008-01-17 05:57:22 +0000849LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000888OCAMLDEP
Reid Spencera773bd52006-08-04 18:18:08 +0000889INSTALL_LTDL_TRUE
890INSTALL_LTDL_FALSE
891CONVENIENCE_LTDL_TRUE
892CONVENIENCE_LTDL_FALSE
893LIBADD_DL
894ECHO
895AR
896STRIP
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000902LLVMGCC
903LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000904USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000905HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000906HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000912LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000915LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000927BINDINGS_TO_BUILD
928ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000929OCAML_LIBDIR
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
944YACC
945YFLAGS
946CXXCPP
947F77
948FFLAGS'
949ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000950projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000951projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000952projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000953projects/llvm-reopt
954projects/llvm-gcc
955projects/llvm-java
956projects/llvm-tv
957projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000958projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000959projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000986# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000995includedir='${prefix}/include'
996oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001006
1007ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001008ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001009for ac_option
1010do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001013 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001014 ac_prev=
1015 continue
1016 fi
1017
Reid Spencera773bd52006-08-04 18:18:08 +00001018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
John Criswell7a73b802003-06-30 21:59:07 +00001022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
Reid Spencera773bd52006-08-04 18:18:08 +00001025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
Reid Spencera773bd52006-08-04 18:18:08 +00001049 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001050 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001052 datadir=$ac_optarg ;;
1053
Reid Spencera773bd52006-08-04 18:18:08 +00001054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
John Criswell7a73b802003-06-30 21:59:07 +00001061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001068 eval enable_$ac_feature=no ;;
1069
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1074
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001087 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
Reid Spencera773bd52006-08-04 18:18:08 +00001114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
John Criswell7a73b802003-06-30 21:59:07 +00001120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
Reid Spencera773bd52006-08-04 18:18:08 +00001144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
John Criswell7a73b802003-06-30 21:59:07 +00001149 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001150 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
Reid Spencera773bd52006-08-04 18:18:08 +00001218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
John Criswell7a73b802003-06-30 21:59:07 +00001228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1237
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1248
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1253
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1258
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1265
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1270
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1273
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1276
1277 -with-* | --with-*)
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001283 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001284 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001285
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001292 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001293 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001324 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1342fi
1343
Reid Spencera773bd52006-08-04 18:18:08 +00001344# Be sure to have absolute directory names.
1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001349do
Reid Spencera773bd52006-08-04 18:18:08 +00001350 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001351 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001354 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
Reid Spencera773bd52006-08-04 18:18:08 +00001383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1391
1392
John Criswell7a73b802003-06-30 21:59:07 +00001393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001398$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001402echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001420 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001421 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
Reid Spencera773bd52006-08-04 18:18:08 +00001427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001430 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001431fi
Reid Spencera773bd52006-08-04 18:18:08 +00001432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001435 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001436 pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
John Criswell7a73b802003-06-30 21:59:07 +00001453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00001461\`configure' configures llvm 2.3svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
John Criswell7a73b802003-06-30 21:59:07 +00001481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001483 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001485 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001514_ACEOF
1515
1516 cat <<\_ACEOF
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526 case $ac_init_help in
Tanya Lattnercf067672008-01-17 05:57:22 +00001527 short | recursive ) echo "Configuration of llvm 2.3svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001528 esac
1529 cat <<\_ACEOF
1530
1531Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001534 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001535 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001536 --enable-expensive-checks
1537
Reid Spencer8b2e1412006-11-17 03:32:33 +00001538 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001539 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001540 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001541 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001542 --enable-pic Build LLVM with Position Independent Code (default
1543 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001544 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001545 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1547 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001550 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001551 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001552 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001553 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001554 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001555 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001556 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001557 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001558 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001559
1560Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1564 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001565 --with-llvmgcc Specify location of llvm-gcc driver (default
1566 searches PATH)
1567 --with-llvmgxx Specify location of llvm-g++ driver (default
1568 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001569 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001570 --with-ocaml-libdir Specify install location for ocaml bindings (default
1571 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001572 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1575 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001576 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001577 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001578
1579Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001580 CC C compiler command
1581 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001586 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001587 CXX C++ compiler command
1588 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001589 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1590 the first program found out of: `bison -y', `byacc', `yacc'.
1591 YFLAGS The list of arguments that will be passed by default to $YACC.
1592 This script will default YFLAGS to the empty string to avoid a
1593 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to <llvmbugs@cs.uiuc.edu>.
1602_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001603ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001609 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001610 ac_builddir=.
1611
Reid Spencera773bd52006-08-04 18:18:08 +00001612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
John Criswell7a73b802003-06-30 21:59:07 +00001615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001627
1628case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001629 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001630 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001634 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001641esac
Reid Spencera773bd52006-08-04 18:18:08 +00001642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001643
Reid Spencera773bd52006-08-04 18:18:08 +00001644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001652 else
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001654 fi || ac_status=$?
1655 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001656 done
1657fi
1658
Reid Spencera773bd52006-08-04 18:18:08 +00001659test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001660if $ac_init_version; then
1661 cat <<\_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00001662llvm configure 2.3svn
1663generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001664
Reid Spencera773bd52006-08-04 18:18:08 +00001665Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001669
Tanya Lattnercf067672008-01-17 05:57:22 +00001670Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001671_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001672 exit
John Criswell7a73b802003-06-30 21:59:07 +00001673fi
Reid Spencera773bd52006-08-04 18:18:08 +00001674cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001675This file contains any messages produced by compilers while
1676running configure, to aid debugging if configure makes a mistake.
1677
Tanya Lattnercf067672008-01-17 05:57:22 +00001678It was created by llvm $as_me 2.3svn, which was
1679generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001680
1681 $ $0 $@
1682
1683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001684exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001685{
1686cat <<_ASUNAME
1687## --------- ##
1688## Platform. ##
1689## --------- ##
1690
1691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699
1700/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001703/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001704/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707
1708_ASUNAME
1709
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1716done
Reid Spencera773bd52006-08-04 18:18:08 +00001717IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001718
1719} >&5
1720
1721cat >&5 <<_ACEOF
1722
1723
1724## ----------- ##
1725## Core tests. ##
1726## ----------- ##
1727
1728_ACEOF
1729
1730
1731# Keep a trace of the command line.
1732# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001733# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001734# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001735# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001736ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001737ac_configure_args0=
1738ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001739ac_must_keep_next=false
1740for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001741do
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 for ac_arg
1743 do
1744 case $ac_arg in
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001749 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 esac
1752 case $ac_pass in
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 2)
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001757 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001759 case $ac_arg in
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 esac
1767 ;;
1768 -* ) ac_must_keep_next=true ;;
1769 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001771 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ;;
1773 esac
1774 done
John Criswell7a73b802003-06-30 21:59:07 +00001775done
John Criswell0c38eaf2003-09-10 15:17:25 +00001776$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777$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 +00001778
1779# When interrupted or exit'd, cleanup temporary files, and complete
1780# config.log. We remove comments because anyway the quotes in there
1781# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001782# WARNING: Use '\'' to represent an apostrophe within the trap.
1783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001784trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1786 {
1787 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789 cat <<\_ASBOX
1790## ---------------- ##
1791## Cache variables. ##
1792## ---------------- ##
1793_ASBOX
1794 echo
1795 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001796(
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in #(
1800 *${as_nl}*)
1801 case $ac_var in #(
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804 esac
1805 case $ac_var in #(
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
John Criswell7a73b802003-06-30 21:59:07 +00001811 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001814 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001818 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001820 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001821 esac |
1822 sort
1823)
John Criswell7a73b802003-06-30 21:59:07 +00001824 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001825
1826 cat <<\_ASBOX
1827## ----------------- ##
1828## Output variables. ##
1829## ----------------- ##
1830_ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1833 do
Reid Spencera773bd52006-08-04 18:18:08 +00001834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001839 done | sort
1840 echo
1841
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001844## ------------------- ##
1845## File substitutions. ##
1846## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001847_ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1850 do
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001856 done | sort
1857 echo
1858 fi
1859
John Criswell7a73b802003-06-30 21:59:07 +00001860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862## ----------- ##
1863## confdefs.h. ##
1864## ----------- ##
1865_ASBOX
1866 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001867 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001868 echo
1869 fi
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1873 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001876 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001877' 0
John Criswell7a73b802003-06-30 21:59:07 +00001878for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880done
1881ac_signal=0
1882
1883# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001884rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001885
1886# Predefined preprocessor variables.
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_NAME "$PACKAGE_NAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_VERSION "$PACKAGE_VERSION"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_STRING "$PACKAGE_STRING"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910_ACEOF
1911
1912
1913# Let the site file select an alternate cache file if it wants to.
1914# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001915if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919else
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001922fi
Reid Spencera773bd52006-08-04 18:18:08 +00001923shift
1924for ac_site_file
1925do
John Criswell7a73b802003-06-30 21:59:07 +00001926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1930 . "$ac_site_file"
1931 fi
1932done
1933
1934if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939echo "$as_me: loading cache $cache_file" >&6;}
1940 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001943 esac
1944 fi
1945else
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947echo "$as_me: creating cache $cache_file" >&6;}
1948 >$cache_file
1949fi
1950
1951# Check that the precious variables saved in the cache have kept the same
1952# value.
1953ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001954for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001959 case $ac_old_set,$ac_new_set in
1960 set,)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,set)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,);;
1969 *)
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001972echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001974echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001978 fi;;
1979 esac
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1982 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001984 *) ac_arg=$ac_var=$ac_new_val ;;
1985 esac
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989 esac
1990 fi
1991done
1992if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
1998fi
1999
Reid Spencera773bd52006-08-04 18:18:08 +00002000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
John Criswell7a73b802003-06-30 21:59:07 +00002024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029
2030
2031
Tanya Lattnercf067672008-01-17 05:57:22 +00002032LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033
2034
2035
2036
2037
2038
2039
John Criswell7a73b802003-06-30 21:59:07 +00002040ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002041for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if 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/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install.sh -c"
2049 break
Reid Spencera773bd52006-08-04 18:18:08 +00002050 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2053 break
2054 fi
2055done
2056if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002059 { (exit 1); exit 1; }; }
2060fi
Reid Spencera773bd52006-08-04 18:18:08 +00002061
2062# These three variables are undocumented and unsupported,
2063# and are intended to be withdrawn in a future Autoconf release.
2064# They can cause serious problems if a builder's source tree is in a directory
2065# whose full name contains unusual characters.
2066ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2069
John Criswell7a73b802003-06-30 21:59:07 +00002070
John Criswell392aaa32003-07-22 19:18:09 +00002071
Reid Spencer2706f8c2004-09-19 23:53:36 +00002072if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002075echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077 fi
John Criswell93e1c722003-09-15 17:04:06 +00002078fi
2079
John Criswell33a911a2003-11-25 20:36:46 +00002080for i in `ls ${srcdir}/projects`
2081do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 if test -d ${srcdir}/projects/${i} ; then
2083 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 CVS) ;;
2085 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002087 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002088 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002091 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 ;;
2093 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" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002284 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002287 llvm_cv_os_type="HP-UX"
2288 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289 *-*-interix*)
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"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 llvm_cv_os_type="Interix"
2293 llvm_cv_platform_type="Unix" ;;
2294 *-*-linux*)
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="Linux"
2298 llvm_cv_platform_type="Unix" ;;
2299 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002300 llvm_cv_link_all_option="-Wl,-z,allextract"
2301 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 llvm_cv_os_type="SunOS"
2303 llvm_cv_platform_type="Unix" ;;
2304 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 llvm_cv_os_type="Win32"
2308 llvm_cv_platform_type="Win32" ;;
2309 *-*-mingw*)
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="MingW"
2313 llvm_cv_platform_type="Win32" ;;
2314 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option=""
2316 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 llvm_cv_os_type="Unknown"
2318 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002319esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002320fi
Reid Spencera773bd52006-08-04 18:18:08 +00002321{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2322echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002323
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324if test "$llvm_cv_os_type" = "Unknown" ; then
2325 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2326echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002327 { (exit 1); exit 1; }; }
2328fi
2329
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002331
2332
Reid Spencera773bd52006-08-04 18:18:08 +00002333LINKALL=$llvm_cv_link_all_option
2334
2335NOLINKALL=$llvm_cv_no_link_all_option
2336
2337
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338case $llvm_cv_platform_type in
2339 Unix)
2340
2341cat >>confdefs.h <<\_ACEOF
2342#define LLVM_ON_UNIX 1
2343_ACEOF
2344
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002345 LLVM_ON_UNIX=1
2346
2347 LLVM_ON_WIN32=0
2348
Reid Spencer7b3e8512004-12-24 06:29:05 +00002349 ;;
2350 Win32)
2351
2352cat >>confdefs.h <<\_ACEOF
2353#define LLVM_ON_WIN32 1
2354_ACEOF
2355
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002356 LLVM_ON_UNIX=0
2357
2358 LLVM_ON_WIN32=1
2359
Reid Spencer7b3e8512004-12-24 06:29:05 +00002360 ;;
2361esac
2362
Reid Spencera773bd52006-08-04 18:18:08 +00002363{ echo "$as_me:$LINENO: checking target architecture" >&5
2364echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002365if test "${llvm_cv_target_arch+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002369 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002370 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002371 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2372 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002373 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002374 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002375 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002376 mips-*) llvm_cv_target_arch="Mips" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002377 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002378esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379fi
Reid Spencera773bd52006-08-04 18:18:08 +00002380{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2381echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002382
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002383if test "$llvm_cv_target_arch" = "Unknown" ; then
2384 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2385echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2386fi
John Criswell76595452003-07-01 22:07:39 +00002387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002389
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002390
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391ac_ext=c
2392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002396if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406else
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002413 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 +00002414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2417 fi
2418done
2419done
Reid Spencera773bd52006-08-04 18:18:08 +00002420IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002426 { echo "$as_me:$LINENO: result: $CC" >&5
2427echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428else
Reid Spencera773bd52006-08-04 18:18:08 +00002429 { echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431fi
2432
Reid Spencera773bd52006-08-04 18:18:08 +00002433
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434fi
2435if test -z "$ac_cv_prog_CC"; then
2436 ac_ct_CC=$CC
2437 # Extract the first word of "gcc", so it can be a program name with args.
2438set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443else
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2446else
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002453 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 +00002454 ac_cv_prog_ac_ct_CC="gcc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2457 fi
2458done
2459done
Reid Spencera773bd52006-08-04 18:18:08 +00002460IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461
2462fi
2463fi
2464ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468else
Reid Spencera773bd52006-08-04 18:18:08 +00002469 { echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471fi
2472
Reid Spencera773bd52006-08-04 18:18:08 +00002473 if test "x$ac_ct_CC" = x; then
2474 CC=""
2475 else
2476 case $cross_compiling:$ac_tool_warned in
2477yes:)
2478{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479whose name does not start with the host triplet. If you think this
2480configuration is useful to you, please write to autoconf@gnu.org." >&5
2481echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482whose name does not start with the host triplet. If you think this
2483configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484ac_tool_warned=yes ;;
2485esac
2486 CC=$ac_ct_CC
2487 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488else
2489 CC="$ac_cv_prog_CC"
2490fi
2491
2492if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002493 if test -n "$ac_tool_prefix"; then
2494 # 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 +00002495set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002498if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002510 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 +00002511 ac_cv_prog_CC="${ac_tool_prefix}cc"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515done
2516done
Reid Spencera773bd52006-08-04 18:18:08 +00002517IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518
2519fi
2520fi
2521CC=$ac_cv_prog_CC
2522if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002523 { echo "$as_me:$LINENO: result: $CC" >&5
2524echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525else
Reid Spencera773bd52006-08-04 18:18:08 +00002526 { echo "$as_me:$LINENO: result: no" >&5
2527echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528fi
2529
Reid Spencera773bd52006-08-04 18:18:08 +00002530
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532fi
2533if test -z "$CC"; then
2534 # Extract the first word of "cc", so it can be a program name with args.
2535set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543else
2544 ac_prog_rejected=no
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002551 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 +00002552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553 ac_prog_rejected=yes
2554 continue
2555 fi
2556 ac_cv_prog_CC="cc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2559 fi
2560done
2561done
Reid Spencera773bd52006-08-04 18:18:08 +00002562IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563
2564if test $ac_prog_rejected = yes; then
2565 # We found a bogon in the path, so make sure we never use it.
2566 set dummy $ac_cv_prog_CC
2567 shift
2568 if test $# != 0; then
2569 # We chose a different compiler from the bogus one.
2570 # However, it has the same basename, so the bogon will be chosen
2571 # first if we set CC to just the basename; use the full file name.
2572 shift
2573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 fi
2575fi
2576fi
2577fi
2578CC=$ac_cv_prog_CC
2579if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002580 { echo "$as_me:$LINENO: result: $CC" >&5
2581echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582else
Reid Spencera773bd52006-08-04 18:18:08 +00002583 { echo "$as_me:$LINENO: result: no" >&5
2584echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002585fi
2586
Reid Spencera773bd52006-08-04 18:18:08 +00002587
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002588fi
2589if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002591 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002592 do
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002609 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 +00002610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2613 fi
2614done
2615done
Reid Spencera773bd52006-08-04 18:18:08 +00002616IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002617
2618fi
2619fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002622 { echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002624else
Reid Spencera773bd52006-08-04 18:18:08 +00002625 { echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002627fi
2628
Reid Spencera773bd52006-08-04 18:18:08 +00002629
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002631 done
2632fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633if test -z "$CC"; then
2634 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002635 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002636do
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002653 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 +00002654 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658done
2659done
Reid Spencera773bd52006-08-04 18:18:08 +00002660IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002661
2662fi
2663fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002668else
Reid Spencera773bd52006-08-04 18:18:08 +00002669 { echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002671fi
2672
Reid Spencera773bd52006-08-04 18:18:08 +00002673
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002674 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002675done
John Criswell7a73b802003-06-30 21:59:07 +00002676
Reid Spencera773bd52006-08-04 18:18:08 +00002677 if test "x$ac_ct_CC" = x; then
2678 CC=""
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681yes:)
2682{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683whose name does not start with the host triplet. If you think this
2684configuration is useful to you, please write to autoconf@gnu.org." >&5
2685echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686whose name does not start with the host triplet. If you think this
2687configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688ac_tool_warned=yes ;;
2689esac
2690 CC=$ac_ct_CC
2691 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002692fi
2693
John Criswell7a73b802003-06-30 21:59:07 +00002694fi
2695
2696
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698See \`config.log' for more details." >&5
2699echo "$as_me: error: no acceptable C compiler found in \$PATH
2700See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
2702
John Criswell7a73b802003-06-30 21:59:07 +00002703# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002704echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002705ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002706{ (ac_try="$ac_compiler --version >&5"
2707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002716{ (ac_try="$ac_compiler -v >&5"
2717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002726{ (ac_try="$ac_compiler -V >&5"
2727case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730esac
2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
2736
2737cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002738/* confdefs.h. */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002743
John Criswell7a73b802003-06-30 21:59:07 +00002744int
2745main ()
2746{
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002753ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002754# Try to create an executable without -o first, disregard a.out.
2755# It will help us diagnose broken compilers, and finding out an intuition
2756# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002757{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002759ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002760#
2761# List of possible output files, starting from the most likely.
2762# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763# only as a last resort. b.out is created by i960 compilers.
2764ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2765#
2766# The IRIX 6 linker writes into existing files which may not be
2767# executable, retaining their permissions. Remove them first so a
2768# subsequent execution test works.
2769ac_rmfiles=
2770for ac_file in $ac_files
2771do
2772 case $ac_file in
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 esac
2776done
2777rm -f $ac_rmfiles
2778
2779if { (ac_try="$ac_link_default"
2780case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783esac
2784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791# in a Makefile. We should not override ac_cv_exeext if it was cached,
2792# so that the user can short-circuit this test for compilers unknown to
2793# Autoconf.
Tanya Lattnercf067672008-01-17 05:57:22 +00002794for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002795do
2796 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002797 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002799 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002800 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002801 # We found the default executable, but exeext='' is most
2802 # certainly right.
2803 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002804 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2806 then :; else
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808 fi
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2813 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002814 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002815 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002816 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002817 esac
2818done
Reid Spencera773bd52006-08-04 18:18:08 +00002819test "$ac_cv_exeext" = no && ac_cv_exeext=
2820
John Criswell7a73b802003-06-30 21:59:07 +00002821else
2822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002823sed 's/^/| /' conftest.$ac_ext >&5
2824
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002825{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002826See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002827echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002828See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002829 { (exit 77); exit 77; }; }
2830fi
2831
2832ac_exeext=$ac_cv_exeext
Tanya Lattnercf067672008-01-17 05:57:22 +00002833{ echo "$as_me:$LINENO: result: $ac_file" >&5
2834echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002835
Reid Spencera773bd52006-08-04 18:18:08 +00002836# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002837# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002838{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002840# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841# If not cross compiling, check that we can run a simple program.
2842if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 cross_compiling=no
2854 else
2855 if test "$cross_compiling" = maybe; then
2856 cross_compiling=yes
2857 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002859If you meant to cross compile, use \`--host'.
2860See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002861echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002862If you meant to cross compile, use \`--host'.
2863See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002864 { (exit 1); exit 1; }; }
2865 fi
2866 fi
2867fi
Reid Spencera773bd52006-08-04 18:18:08 +00002868{ echo "$as_me:$LINENO: result: yes" >&5
2869echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002870
John Criswell0c38eaf2003-09-10 15:17:25 +00002871rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002872ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002873# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002874# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002875{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002879
Reid Spencera773bd52006-08-04 18:18:08 +00002880{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882if { (ac_try="$ac_link"
2883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894# work properly (i.e., refer to `conftest.exe'), while it won't with
2895# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002896for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002898 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002901 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002902 * ) break;;
2903 esac
2904done
2905else
John Criswell0c38eaf2003-09-10 15:17:25 +00002906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907See \`config.log' for more details." >&5
2908echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002910 { (exit 1); exit 1; }; }
2911fi
2912
2913rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002914{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002916
2917rm -f conftest.$ac_ext
2918EXEEXT=$ac_cv_exeext
2919ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002920{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002922if test "${ac_cv_objext+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002931
John Criswell7a73b802003-06-30 21:59:07 +00002932int
2933main ()
2934{
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002941if { (ac_try="$ac_compile"
2942case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002951 for ac_file in conftest.o conftest.obj conftest.*; do
2952 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002953 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956 break;;
2957 esac
2958done
2959else
2960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964See \`config.log' for more details." >&5
2965echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002967 { (exit 1); exit 1; }; }
2968fi
2969
2970rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971fi
Reid Spencera773bd52006-08-04 18:18:08 +00002972{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002974OBJEXT=$ac_cv_objext
2975ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002976{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002978if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002987
John Criswell7a73b802003-06-30 21:59:07 +00002988int
2989main ()
2990{
2991#ifndef __GNUC__
2992 choke me
2993#endif
2994
2995 ;
2996 return 0;
2997}
2998_ACEOF
2999rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003000if { (ac_try="$ac_compile"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003007 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; } &&
3023 { ac_try='test -s conftest.$ac_objext'
3024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003033 ac_compiler_gnu=yes
3034else
3035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003036sed 's/^/| /' conftest.$ac_ext >&5
3037
Reid Spencera773bd52006-08-04 18:18:08 +00003038 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003039fi
Reid Spencera773bd52006-08-04 18:18:08 +00003040
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003042ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003043
3044fi
Reid Spencera773bd52006-08-04 18:18:08 +00003045{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003047GCC=`test $ac_compiler_gnu = yes && echo yes`
3048ac_test_CFLAGS=${CFLAGS+set}
3049ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003050{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003052if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
Reid Spencera773bd52006-08-04 18:18:08 +00003055 ac_save_c_werror_flag=$ac_c_werror_flag
3056 ac_c_werror_flag=yes
3057 ac_cv_prog_cc_g=no
3058 CFLAGS="-g"
3059 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003065
John Criswell7a73b802003-06-30 21:59:07 +00003066int
3067main ()
3068{
3069
3070 ;
3071 return 0;
3072}
3073_ACEOF
3074rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003075if { (ac_try="$ac_compile"
3076case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003082 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003108 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003109else
3110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003111sed 's/^/| /' conftest.$ac_ext >&5
3112
Reid Spencera773bd52006-08-04 18:18:08 +00003113 CFLAGS=""
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext
3130if { (ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003163 :
3164else
3165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 ac_c_werror_flag=$ac_save_c_werror_flag
3169 CFLAGS="-g"
3170 cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h. */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h. */
3176
3177int
3178main ()
3179{
3180
3181 ;
3182 return 0;
3183}
3184_ACEOF
3185rm -f conftest.$ac_objext
3186if { (ac_try="$ac_compile"
3187case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003198 (exit $ac_status); } &&
3199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003219 ac_cv_prog_cc_g=yes
3220else
3221 echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
John Criswell7a73b802003-06-30 21:59:07 +00003225fi
Reid Spencera773bd52006-08-04 18:18:08 +00003226
3227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003228fi
Reid Spencera773bd52006-08-04 18:18:08 +00003229
3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231fi
3232
3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3235fi
3236{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3242 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003243 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003245 fi
3246else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003247 if test "$GCC" = yes; then
3248 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003249 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003250 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003251 fi
3252fi
Reid Spencera773bd52006-08-04 18:18:08 +00003253{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
Reid Spencera773bd52006-08-04 18:18:08 +00003258 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259ac_save_CC=$CC
3260cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266#include <stdarg.h>
3267#include <stdio.h>
3268#include <sys/types.h>
3269#include <sys/stat.h>
3270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271struct buf { int x; };
3272FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273static char *e (p, i)
3274 char **p;
3275 int i;
3276{
3277 return p[i];
3278}
3279static char *f (char * (*g) (char **, int), char **p, ...)
3280{
3281 char *s;
3282 va_list v;
3283 va_start (v,p);
3284 s = g (p, va_arg (v,int));
3285 va_end (v);
3286 return s;
3287}
3288
3289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003292 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003295 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
Reid Spencera773bd52006-08-04 18:18:08 +00003298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3300#define FOO(x) 'x'
3301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303int test (int i, double x);
3304struct s1 {int (*f) (int a);};
3305struct s2 {int (*f) (double a);};
3306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307int argc;
3308char **argv;
3309int
3310main ()
3311{
3312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 ;
3314 return 0;
3315}
3316_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319do
3320 CC="$ac_save_CC $ac_arg"
3321 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003322if { (ac_try="$ac_compile"
3323case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
3327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349esac
3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_try") 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003355 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
Reid Spencera773bd52006-08-04 18:18:08 +00003360
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361fi
Reid Spencera773bd52006-08-04 18:18:08 +00003362
3363rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365done
Reid Spencera773bd52006-08-04 18:18:08 +00003366rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003367CC=$ac_save_CC
3368
3369fi
Reid Spencera773bd52006-08-04 18:18:08 +00003370# AC_CACHE_VAL
3371case "x$ac_cv_prog_cc_c89" in
3372 x)
3373 { echo "$as_me:$LINENO: result: none needed" >&5
3374echo "${ECHO_T}none needed" >&6; } ;;
3375 xno)
3376 { echo "$as_me:$LINENO: result: unsupported" >&5
3377echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003379 CC="$CC $ac_cv_prog_cc_c89"
3380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382esac
3383
John Criswell0c38eaf2003-09-10 15:17:25 +00003384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391
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
Reid Spencera773bd52006-08-04 18:18:08 +00003397{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399# On Suns, sometimes $CPP names a directory.
3400if test -n "$CPP" && test -d "$CPP"; then
3401 CPP=
3402fi
3403if test -z "$CPP"; then
3404 if test "${ac_cv_prog_CPP+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407 # Double quotes because CPP needs to be expanded
3408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3409 do
3410 ac_preproc_ok=false
3411for ac_c_preproc_warn_flag in '' yes
3412do
3413 # Use a header file that comes with gcc, so configuring glibc
3414 # with a fresh cross-compiler works.
3415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416 # <limits.h> exists even on freestanding compilers.
3417 # On the NeXT, cc -E runs the code through the compiler's parser,
3418 # not just through cpp. "Syntax error" is here to catch this case.
3419 cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h. */
3425#ifdef __STDC__
3426# include <limits.h>
3427#else
3428# include <assert.h>
3429#endif
3430 Syntax error
3431_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003432if { (ac_try="$ac_cpp conftest.$ac_ext"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
3451else
3452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 :
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 # Broken: fails on valid input.
3461continue
3462fi
Reid Spencera773bd52006-08-04 18:18:08 +00003463
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003464rm -f conftest.err conftest.$ac_ext
3465
Reid Spencera773bd52006-08-04 18:18:08 +00003466 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467 # can be detected and how.
3468 cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h. */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
3473/* end confdefs.h. */
3474#include <ac_nonexistent.h>
3475_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003476if { (ac_try="$ac_cpp conftest.$ac_ext"
3477case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480esac
3481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 else
3493 ac_cpp_err=
3494 fi
3495else
3496 ac_cpp_err=yes
3497fi
3498if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 # Broken: success on invalid input.
3500continue
3501else
3502 echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 # Passes both tests.
3506ac_preproc_ok=:
3507break
3508fi
Reid Spencera773bd52006-08-04 18:18:08 +00003509
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
3515if $ac_preproc_ok; then
3516 break
3517fi
3518
3519 done
3520 ac_cv_prog_CPP=$CPP
3521
3522fi
3523 CPP=$ac_cv_prog_CPP
3524else
3525 ac_cv_prog_CPP=$CPP
3526fi
Reid Spencera773bd52006-08-04 18:18:08 +00003527{ echo "$as_me:$LINENO: result: $CPP" >&5
3528echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003529ac_preproc_ok=false
3530for ac_c_preproc_warn_flag in '' yes
3531do
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
3544#ifdef __STDC__
3545# include <limits.h>
3546#else
3547# include <assert.h>
3548#endif
3549 Syntax error
3550_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003551if { (ac_try="$ac_cpp conftest.$ac_ext"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3569 fi
3570else
3571 ac_cpp_err=yes
3572fi
3573if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 :
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 # Broken: fails on valid input.
3580continue
3581fi
Reid Spencera773bd52006-08-04 18:18:08 +00003582
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003583rm -f conftest.err conftest.$ac_ext
3584
Reid Spencera773bd52006-08-04 18:18:08 +00003585 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586 # can be detected and how.
3587 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h. */
3593#include <ac_nonexistent.h>
3594_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003595if { (ac_try="$ac_cpp conftest.$ac_ext"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 else
3612 ac_cpp_err=
3613 fi
3614else
3615 ac_cpp_err=yes
3616fi
3617if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # Broken: success on invalid input.
3619continue
3620else
3621 echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 # Passes both tests.
3625ac_preproc_ok=:
3626break
3627fi
Reid Spencera773bd52006-08-04 18:18:08 +00003628
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003629rm -f conftest.err conftest.$ac_ext
3630
3631done
3632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633rm -f conftest.err conftest.$ac_ext
3634if $ac_preproc_ok; then
3635 :
3636else
3637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638See \`config.log' for more details." >&5
3639echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3642fi
3643
John Criswell7a73b802003-06-30 21:59:07 +00003644ac_ext=c
3645ac_cpp='$CPP $CPPFLAGS'
3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
John Criswell7a73b802003-06-30 21:59:07 +00003650
Reid Spencera773bd52006-08-04 18:18:08 +00003651{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003653if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
Reid Spencera773bd52006-08-04 18:18:08 +00003656 # Extract the first word of "grep ggrep" to use in msg output
3657if test -z "$GREP"; then
3658set dummy grep ggrep; ac_prog_name=$2
3659if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
Reid Spencera773bd52006-08-04 18:18:08 +00003662 ac_path_GREP_found=false
3663# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003666do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003669 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003670 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003672 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003673 # Check for GNU ac_path_GREP and select it if it is found.
3674 # Check for GNU $ac_path_GREP
3675case `"$ac_path_GREP" --version 2>&1` in
3676*GNU*)
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678*)
3679 ac_count=0
3680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681 while :
3682 do
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 echo 'GREP' >> "conftest.nl"
3687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 ac_count=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003694 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699esac
3700
3701
3702 $ac_path_GREP_found && break 3
3703 done
3704done
3705
3706done
3707IFS=$as_save_IFS
3708
3709
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003710fi
Reid Spencera773bd52006-08-04 18:18:08 +00003711
3712GREP="$ac_cv_path_GREP"
3713if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3717fi
3718
3719else
3720 ac_cv_path_GREP=$GREP
3721fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003722
John Criswell7a73b802003-06-30 21:59:07 +00003723
Reid Spencera773bd52006-08-04 18:18:08 +00003724fi
3725{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727 GREP="$ac_cv_path_GREP"
3728
3729
3730{ echo "$as_me:$LINENO: checking for egrep" >&5
3731echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736 then ac_cv_path_EGREP="$GREP -E"
3737 else
3738 # Extract the first word of "egrep" to use in msg output
3739if test -z "$EGREP"; then
3740set dummy egrep; ac_prog_name=$2
3741if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
3744 ac_path_EGREP_found=false
3745# Loop through the user's path and test for each of PROGNAME-LIST
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003754 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003755 # Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757case `"$ac_path_EGREP" --version 2>&1` in
3758*GNU*)
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760*)
3761 ac_count=0
3762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3763 while :
3764 do
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 echo 'EGREP' >> "conftest.nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 ac_count=`expr $ac_count + 1`
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3776 fi
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3779 done
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781esac
3782
3783
3784 $ac_path_EGREP_found && break 3
3785 done
3786done
3787
3788done
3789IFS=$as_save_IFS
3790
3791
3792fi
3793
3794EGREP="$ac_cv_path_EGREP"
3795if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3799fi
3800
3801else
3802 ac_cv_path_EGREP=$EGREP
3803fi
3804
3805
3806 fi
3807fi
3808{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810 EGREP="$ac_cv_path_EGREP"
3811
3812
3813{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003815if test "${ac_cv_header_stdc+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817else
3818 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003819/* confdefs.h. */
3820_ACEOF
3821cat confdefs.h >>conftest.$ac_ext
3822cat >>conftest.$ac_ext <<_ACEOF
3823/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003824#include <stdlib.h>
3825#include <stdarg.h>
3826#include <string.h>
3827#include <float.h>
3828
John Criswell0c38eaf2003-09-10 15:17:25 +00003829int
3830main ()
3831{
3832
3833 ;
3834 return 0;
3835}
John Criswell7a73b802003-06-30 21:59:07 +00003836_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003837rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003838if { (ac_try="$ac_compile"
3839case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842esac
3843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003845 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003871 ac_cv_header_stdc=yes
3872else
3873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003874sed 's/^/| /' conftest.$ac_ext >&5
3875
Reid Spencera773bd52006-08-04 18:18:08 +00003876 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003877fi
Reid Spencera773bd52006-08-04 18:18:08 +00003878
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003880
3881if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003889#include <string.h>
3890
3891_ACEOF
3892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003893 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003894 :
3895else
3896 ac_cv_header_stdc=no
3897fi
3898rm -f conftest*
3899
3900fi
3901
3902if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003905/* confdefs.h. */
3906_ACEOF
3907cat confdefs.h >>conftest.$ac_ext
3908cat >>conftest.$ac_ext <<_ACEOF
3909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003910#include <stdlib.h>
3911
3912_ACEOF
3913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003914 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003915 :
3916else
3917 ac_cv_header_stdc=no
3918fi
3919rm -f conftest*
3920
3921fi
3922
3923if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925 if test "$cross_compiling" = yes; then
3926 :
3927else
3928 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003934#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003935#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003936#if ((' ' & 0x0FF) == 0x020)
3937# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003940# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003941 (('a' <= (c) && (c) <= 'i') \
3942 || ('j' <= (c) && (c) <= 'r') \
3943 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945#endif
3946
3947#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948int
3949main ()
3950{
3951 int i;
3952 for (i = 0; i < 256; i++)
3953 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003954 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003955 return 2;
3956 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003957}
3958_ACEOF
3959rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003960if { (ac_try="$ac_link"
3961case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964esac
3965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973esac
3974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3979 :
3980else
3981 echo "$as_me: program exited with status $ac_status" >&5
3982echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003983sed 's/^/| /' conftest.$ac_ext >&5
3984
John Criswell7a73b802003-06-30 21:59:07 +00003985( exit $ac_status )
3986ac_cv_header_stdc=no
3987fi
Reid Spencera773bd52006-08-04 18:18:08 +00003988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989fi
3990
3991
John Criswell7a73b802003-06-30 21:59:07 +00003992fi
3993fi
Reid Spencera773bd52006-08-04 18:18:08 +00003994{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003996if test $ac_cv_header_stdc = yes; then
3997
3998cat >>confdefs.h <<\_ACEOF
3999#define STDC_HEADERS 1
4000_ACEOF
4001
4002fi
4003
Reid Spencera773bd52006-08-04 18:18:08 +00004004# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015 inttypes.h stdint.h unistd.h
4016do
4017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023 cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h. */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h. */
4029$ac_includes_default
4030
4031#include <$ac_header>
4032_ACEOF
4033rm -f conftest.$ac_objext
4034if { (ac_try="$ac_compile"
4035case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
4039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051esac
4052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061esac
4062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_try") 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004067 eval "$as_ac_Header=yes"
4068else
4069 echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 eval "$as_ac_Header=no"
4073fi
4074
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076fi
4077ac_res=`eval echo '${'$as_ac_Header'}'`
4078 { echo "$as_me:$LINENO: result: $ac_res" >&5
4079echo "${ECHO_T}$ac_res" >&6; }
4080if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083_ACEOF
4084
4085fi
4086
4087done
4088
4089
4090{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092if test "${ac_cv_c_bigendian+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095 # See if sys/param.h defines the BYTE_ORDER macro.
4096cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h. */
4102#include <sys/types.h>
4103#include <sys/param.h>
4104
4105int
4106main ()
4107{
Tanya Lattnercf067672008-01-17 05:57:22 +00004108#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004109 bogus endian macros
4110#endif
4111
4112 ;
4113 return 0;
4114}
4115_ACEOF
4116rm -f conftest.$ac_objext
4117if { (ac_try="$ac_compile"
4118case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134esac
4135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144esac
4145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_try") 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004150 # It does; now see whether it defined to BIG_ENDIAN or not.
4151cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
4157#include <sys/types.h>
4158#include <sys/param.h>
4159
4160int
4161main ()
4162{
4163#if BYTE_ORDER != BIG_ENDIAN
4164 not big endian
4165#endif
4166
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (ac_try="$ac_compile"
4173case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199esac
4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004205 ac_cv_c_bigendian=yes
4206else
4207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 ac_cv_c_bigendian=no
4211fi
4212
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 # It does not; compile a test program.
4219if test "$cross_compiling" = yes; then
4220 # try to guess the endianness by grepping values into an object file
4221 ac_cv_c_bigendian=unknown
4222 cat >conftest.$ac_ext <<_ACEOF
4223/* confdefs.h. */
4224_ACEOF
4225cat confdefs.h >>conftest.$ac_ext
4226cat >>conftest.$ac_ext <<_ACEOF
4227/* end confdefs.h. */
4228short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4234int
4235main ()
4236{
4237 _ascii (); _ebcdic ();
4238 ;
4239 return 0;
4240}
4241_ACEOF
4242rm -f conftest.$ac_objext
4243if { (ac_try="$ac_compile"
4244case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
4248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270esac
4271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4277 ac_cv_c_bigendian=yes
4278fi
4279if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280 if test "$ac_cv_c_bigendian" = unknown; then
4281 ac_cv_c_bigendian=no
4282 else
4283 # finding both strings is unlikely to happen, but who knows?
4284 ac_cv_c_bigendian=unknown
4285 fi
4286fi
4287else
4288 echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291
4292fi
4293
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295else
4296 cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h. */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
4301/* end confdefs.h. */
4302$ac_includes_default
4303int
4304main ()
4305{
4306
4307 /* Are we little or big endian? From Harbison&Steele. */
4308 union
4309 {
4310 long int l;
4311 char c[sizeof (long int)];
4312 } u;
4313 u.l = 1;
4314 return u.c[sizeof (long int) - 1] == 1;
4315
4316 ;
4317 return 0;
4318}
4319_ACEOF
4320rm -f conftest$ac_exeext
4321if { (ac_try="$ac_link"
4322case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325esac
4326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_link") 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_c_bigendian=no
4341else
4342 echo "$as_me: program exited with status $ac_status" >&5
4343echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346( exit $ac_status )
4347ac_cv_c_bigendian=yes
4348fi
4349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350fi
4351
4352
4353fi
4354
4355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356fi
4357{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359case $ac_cv_c_bigendian in
4360 yes)
4361 ENDIAN=big
4362 ;;
4363 no)
4364 ENDIAN=little
4365 ;;
4366 *)
4367 { { echo "$as_me:$LINENO: error: unknown endianness
4368presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369echo "$as_me: error: unknown endianness
4370presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371 { (exit 1); exit 1; }; } ;;
4372esac
4373
4374
4375if test "$cross_compiling" = yes; then
4376 LLVM_CROSS_COMPILING=1
4377
4378
4379{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381if test "${ac_cv_build_exeext+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385 ac_cv_build_exeext=.exe
4386else
4387 ac_build_prefix=${build_alias}-
4388
4389 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390set dummy ${ac_build_prefix}gcc; ac_word=$2
4391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396 if test -n "$BUILD_CC"; then
4397 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398else
4399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH
4401do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004405 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 +00004406 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4409 fi
4410done
4411done
4412IFS=$as_save_IFS
4413
4414fi
4415fi
4416BUILD_CC=$ac_cv_prog_BUILD_CC
4417if test -n "$BUILD_CC"; then
4418 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419echo "${ECHO_T}$BUILD_CC" >&6; }
4420else
4421 { echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6; }
4423fi
4424
4425
4426 if test -z "$BUILD_CC"; then
4427 # Extract the first word of "gcc", so it can be a program name with args.
4428set dummy gcc; ac_word=$2
4429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004443 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 +00004444 ac_cv_prog_BUILD_CC="gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
4449done
4450IFS=$as_save_IFS
4451
4452fi
4453fi
4454BUILD_CC=$ac_cv_prog_BUILD_CC
4455if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457echo "${ECHO_T}$BUILD_CC" >&6; }
4458else
4459 { echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6; }
4461fi
4462
4463
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "cc", so it can be a program name with args.
4466set dummy cc; ac_word=$2
4467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471else
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474else
4475 ac_prog_rejected=no
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004482 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 +00004483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4485 continue
4486 fi
4487 ac_cv_prog_BUILD_CC="cc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491done
4492done
4493IFS=$as_save_IFS
4494
4495if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CC
4498 shift
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CC to just the basename; use the full file name.
4503 shift
4504 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 fi
4506fi
4507fi
4508fi
4509BUILD_CC=$ac_cv_prog_BUILD_CC
4510if test -n "$BUILD_CC"; then
4511 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512echo "${ECHO_T}$BUILD_CC" >&6; }
4513else
4514 { echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6; }
4516fi
4517
4518
4519 fi
4520 fi
4521 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523 { (exit 1); exit 1; }; }
4524 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4525 rm -f conftest*
4526 echo 'int main () { return 0; }' > conftest.$ac_ext
4527 ac_cv_build_exeext=
4528 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4529 (eval $ac_build_link) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 for file in conftest.*; do
4534 case $file in
4535 *.c | *.o | *.obj) ;;
4536 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4537 esac
4538 done
4539 else
4540 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542 { (exit 1); exit 1; }; }
4543 fi
4544 rm -f conftest*
4545 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546fi
4547fi
4548
4549BUILD_EXEEXT=""
4550test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4551{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4553ac_build_exeext=$BUILD_EXEEXT
4554
4555else
4556 LLVM_CROSS_COMPILING=0
4557
4558fi
4559
Reid Spencer0b1e4662007-04-02 15:41:39 +00004560if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004561 cvsbuild="yes"
4562 optimize="no"
4563 CVSBUILD=CVSBUILD=1
4564
4565else
4566 cvsbuild="no"
4567 optimize="yes"
4568fi
4569
4570
4571# Check whether --enable-optimized was given.
4572if test "${enable_optimized+set}" = set; then
4573 enableval=$enable_optimized;
4574else
4575 enableval=$optimize
4576fi
4577
4578if test ${enableval} = "no" ; then
4579 ENABLE_OPTIMIZED=
4580
4581else
4582 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4583
4584fi
4585
4586# Check whether --enable-assertions was given.
4587if test "${enable_assertions+set}" = set; then
4588 enableval=$enable_assertions;
4589else
4590 enableval="yes"
4591fi
4592
4593if test ${enableval} = "yes" ; then
4594 DISABLE_ASSERTIONS=
4595
4596else
4597 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4598
4599fi
4600
David Greenea696d242007-06-28 19:36:08 +00004601# Check whether --enable-expensive-checks was given.
4602if test "${enable_expensive_checks+set}" = set; then
4603 enableval=$enable_expensive_checks;
4604else
4605 enableval="no"
4606fi
4607
4608if test ${enableval} = "yes" ; then
4609 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4610
4611 EXPENSIVE_CHECKS=yes
4612
4613else
4614 ENABLE_EXPENSIVE_CHECKS=
4615
4616 EXPENSIVE_CHECKS=no
4617
4618fi
4619
Reid Spencer8b2e1412006-11-17 03:32:33 +00004620# Check whether --enable-debug-runtime was given.
4621if test "${enable_debug_runtime+set}" = set; then
4622 enableval=$enable_debug_runtime;
4623else
4624 enableval=no
4625fi
4626
4627if test ${enableval} = "no" ; then
4628 DEBUG_RUNTIME=
4629
4630else
4631 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4632
4633fi
4634
Reid Spencera773bd52006-08-04 18:18:08 +00004635# Check whether --enable-jit was given.
4636if test "${enable_jit+set}" = set; then
4637 enableval=$enable_jit;
4638else
4639 enableval=default
4640fi
4641
4642if test ${enableval} = "no"
4643then
4644 JIT=
4645
4646else
4647 case "$llvm_cv_target_arch" in
4648 x86) TARGET_HAS_JIT=1
4649 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004650 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004651 ;;
4652 PowerPC) TARGET_HAS_JIT=1
4653 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004654 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004655 ;;
4656 Alpha) TARGET_HAS_JIT=1
4657 ;;
4658 IA64) TARGET_HAS_JIT=0
4659 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004660 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004661 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004662 Mips) TARGET_HAS_JIT=0
4663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004664 *) TARGET_HAS_JIT=0
4665 ;;
4666 esac
4667fi
4668
4669# Check whether --enable-doxygen was given.
4670if test "${enable_doxygen+set}" = set; then
4671 enableval=$enable_doxygen;
4672else
4673 enableval=default
4674fi
4675
4676case "$enableval" in
4677 yes) ENABLE_DOXYGEN=1
4678 ;;
4679 no) ENABLE_DOXYGEN=0
4680 ;;
4681 default) ENABLE_DOXYGEN=0
4682 ;;
4683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4684echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4685 { (exit 1); exit 1; }; } ;;
4686esac
4687
4688# Check whether --enable-threads was given.
4689if test "${enable_threads+set}" = set; then
4690 enableval=$enable_threads;
4691else
Reid Spencer65c5d752006-11-05 17:08:18 +00004692 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004693fi
4694
4695case "$enableval" in
4696 yes) ENABLE_THREADS=1
4697 ;;
4698 no) ENABLE_THREADS=0
4699 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004700 default) ENABLE_THREADS=1
4701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004702 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4703echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4704 { (exit 1); exit 1; }; } ;;
4705esac
4706
4707cat >>confdefs.h <<_ACEOF
4708#define ENABLE_THREADS $ENABLE_THREADS
4709_ACEOF
4710
4711
Reid Spencer89b0d992006-12-16 22:07:52 +00004712# Check whether --enable-pic was given.
4713if test "${enable_pic+set}" = set; then
4714 enableval=$enable_pic;
4715else
4716 enableval=default
4717fi
4718
4719case "$enableval" in
4720 yes) ENABLE_PIC=1
4721 ;;
4722 no) ENABLE_PIC=0
4723 ;;
4724 default) ENABLE_PIC=0
4725 ;;
4726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4727echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4729esac
4730
4731cat >>confdefs.h <<_ACEOF
4732#define ENABLE_PIC $ENABLE_PIC
4733_ACEOF
4734
4735
Reid Spencera773bd52006-08-04 18:18:08 +00004736TARGETS_TO_BUILD=""
4737# Check whether --enable-targets was given.
4738if test "${enable_targets+set}" = set; then
4739 enableval=$enable_targets;
4740else
4741 enableval=all
4742fi
4743
4744case "$enableval" in
Nate Begeman57b1efb2007-12-13 01:18:52 +00004745 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004746 host-only)
4747 case "$llvm_cv_target_arch" in
4748 x86) TARGETS_TO_BUILD="X86" ;;
4749 x86_64) TARGETS_TO_BUILD="X86" ;;
4750 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4751 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4752 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4753 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004754 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004755 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004756 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004757 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4758echo "$as_me: error: Can not set target to build" >&2;}
4759 { (exit 1); exit 1; }; } ;;
4760 esac
4761 ;;
4762 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4763 case "$a_target" in
4764 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4765 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4767 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4768 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4769 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004770 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004771 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004772 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004773 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4774 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004775 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4776echo "$as_me: error: Unrecognized target $a_target" >&2;}
4777 { (exit 1); exit 1; }; } ;;
4778 esac
4779 done
4780 ;;
4781esac
Reid Spencera773bd52006-08-04 18:18:08 +00004782TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4783
4784
Reid Spencer65c5d752006-11-05 17:08:18 +00004785# Check whether --enable-cbe-printf-a was given.
4786if test "${enable_cbe_printf_a+set}" = set; then
4787 enableval=$enable_cbe_printf_a;
4788else
4789 enableval=default
4790fi
4791
4792case "$enableval" in
4793 yes) ENABLE_CBE_PRINTF_A=1
4794 ;;
4795 no) ENABLE_CBE_PRINTF_A=0
4796 ;;
4797 default) ENABLE_CBE_PRINTF_A=1
4798 ;;
4799 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4800echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4801 { (exit 1); exit 1; }; } ;;
4802esac
4803
4804cat >>confdefs.h <<_ACEOF
4805#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4806_ACEOF
4807
4808
Reid Spencera773bd52006-08-04 18:18:08 +00004809
4810# Check whether --with-llvmgccdir was given.
4811if test "${with_llvmgccdir+set}" = set; then
4812 withval=$with_llvmgccdir;
4813else
4814 withval=default
4815fi
4816
4817case "$withval" in
4818 default) WITH_LLVMGCCDIR=default ;;
4819 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4820 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4821echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4822 { (exit 1); exit 1; }; } ;;
4823esac
4824
4825
Devang Patel5d28b882007-12-04 22:54:47 +00004826# Check whether --with-llvmgcc was given.
4827if test "${with_llvmgcc+set}" = set; then
4828 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4829 WITH_LLVMGCCDIR=""
4830fi
4831
4832
4833
4834# Check whether --with-llvmgxx was given.
4835if test "${with_llvmgxx+set}" = set; then
4836 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4837 WITH_LLVMGCCDIR=""
4838fi
4839
4840
4841if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4842 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4843echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4844 { (exit 1); exit 1; }; };
4845fi
4846
4847if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4848 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4849echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4850 { (exit 1); exit 1; }; };
4851fi
4852
4853
Reid Spencera773bd52006-08-04 18:18:08 +00004854# Check whether --with-extra-options was given.
4855if test "${with_extra_options+set}" = set; then
4856 withval=$with_extra_options;
4857else
4858 withval=default
4859fi
4860
4861case "$withval" in
4862 default) EXTRA_OPTIONS= ;;
4863 *) EXTRA_OPTIONS=$withval ;;
4864esac
4865EXTRA_OPTIONS=$EXTRA_OPTIONS
4866
4867
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004868# Check whether --enable-bindings was given.
4869if test "${enable_bindings+set}" = set; then
4870 enableval=$enable_bindings;
4871else
4872 enableval=default
4873fi
4874
4875BINDINGS_TO_BUILD=""
4876case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004877 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004878 all ) BINDINGS_TO_BUILD="ocaml" ;;
4879 none | no) BINDINGS_TO_BUILD="" ;;
4880 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4881 case "$a_binding" in
4882 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4883 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4884echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4885 { (exit 1); exit 1; }; } ;;
4886 esac
4887 done
4888 ;;
4889esac
4890
Reid Spencera773bd52006-08-04 18:18:08 +00004891
Gordon Henriksenf0915682007-10-02 16:42:22 +00004892# Check whether --with-ocaml-libdir was given.
4893if test "${with_ocaml_libdir+set}" = set; then
4894 withval=$with_ocaml_libdir;
4895else
4896 withval=auto
4897fi
4898
4899case "$withval" in
4900 auto) with_ocaml_libdir="$withval" ;;
4901 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4902 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4903echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4905esac
4906
4907
Reid Spencera773bd52006-08-04 18:18:08 +00004908ac_ext=c
4909ac_cpp='$CPP $CPPFLAGS'
4910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4914echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4915# On Suns, sometimes $CPP names a directory.
4916if test -n "$CPP" && test -d "$CPP"; then
4917 CPP=
4918fi
4919if test -z "$CPP"; then
4920 if test "${ac_cv_prog_CPP+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922else
4923 # Double quotes because CPP needs to be expanded
4924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4925 do
4926 ac_preproc_ok=false
4927for ac_c_preproc_warn_flag in '' yes
4928do
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat >conftest.$ac_ext <<_ACEOF
4936/* confdefs.h. */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h. */
4941#ifdef __STDC__
4942# include <limits.h>
4943#else
4944# include <assert.h>
4945#endif
4946 Syntax error
4947_ACEOF
4948if { (ac_try="$ac_cpp conftest.$ac_ext"
4949case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952esac
4953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004960 (exit $ac_status); } >/dev/null; then
4961 if test -s conftest.err; then
4962 ac_cpp_err=$ac_c_preproc_warn_flag
4963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4964 else
4965 ac_cpp_err=
4966 fi
4967else
4968 ac_cpp_err=yes
4969fi
4970if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004971 :
4972else
4973 echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 # Broken: fails on valid input.
4977continue
4978fi
4979
4980rm -f conftest.err conftest.$ac_ext
4981
4982 # OK, works on sane cases. Now check whether nonexistent headers
4983 # can be detected and how.
4984 cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h. */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h. */
4990#include <ac_nonexistent.h>
4991_ACEOF
4992if { (ac_try="$ac_cpp conftest.$ac_ext"
4993case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
4997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005004 (exit $ac_status); } >/dev/null; then
5005 if test -s conftest.err; then
5006 ac_cpp_err=$ac_c_preproc_warn_flag
5007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5008 else
5009 ac_cpp_err=
5010 fi
5011else
5012 ac_cpp_err=yes
5013fi
5014if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005015 # Broken: success on invalid input.
5016continue
5017else
5018 echo "$as_me: failed program was:" >&5
5019sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 # Passes both tests.
5022ac_preproc_ok=:
5023break
5024fi
5025
5026rm -f conftest.err conftest.$ac_ext
5027
5028done
5029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030rm -f conftest.err conftest.$ac_ext
5031if $ac_preproc_ok; then
5032 break
5033fi
5034
5035 done
5036 ac_cv_prog_CPP=$CPP
5037
5038fi
5039 CPP=$ac_cv_prog_CPP
5040else
5041 ac_cv_prog_CPP=$CPP
5042fi
5043{ echo "$as_me:$LINENO: result: $CPP" >&5
5044echo "${ECHO_T}$CPP" >&6; }
5045ac_preproc_ok=false
5046for ac_c_preproc_warn_flag in '' yes
5047do
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h. */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h. */
5060#ifdef __STDC__
5061# include <limits.h>
5062#else
5063# include <assert.h>
5064#endif
5065 Syntax error
5066_ACEOF
5067if { (ac_try="$ac_cpp conftest.$ac_ext"
5068case "(($ac_try" in
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5071esac
5072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5083 else
5084 ac_cpp_err=
5085 fi
5086else
5087 ac_cpp_err=yes
5088fi
5089if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005090 :
5091else
5092 echo "$as_me: failed program was:" >&5
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
5095 # Broken: fails on valid input.
5096continue
5097fi
5098
5099rm -f conftest.err conftest.$ac_ext
5100
5101 # OK, works on sane cases. Now check whether nonexistent headers
5102 # can be detected and how.
5103 cat >conftest.$ac_ext <<_ACEOF
5104/* confdefs.h. */
5105_ACEOF
5106cat confdefs.h >>conftest.$ac_ext
5107cat >>conftest.$ac_ext <<_ACEOF
5108/* end confdefs.h. */
5109#include <ac_nonexistent.h>
5110_ACEOF
5111if { (ac_try="$ac_cpp conftest.$ac_ext"
5112case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115esac
5116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005123 (exit $ac_status); } >/dev/null; then
5124 if test -s conftest.err; then
5125 ac_cpp_err=$ac_c_preproc_warn_flag
5126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5127 else
5128 ac_cpp_err=
5129 fi
5130else
5131 ac_cpp_err=yes
5132fi
5133if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005134 # Broken: success on invalid input.
5135continue
5136else
5137 echo "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 # Passes both tests.
5141ac_preproc_ok=:
5142break
5143fi
5144
5145rm -f conftest.err conftest.$ac_ext
5146
5147done
5148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149rm -f conftest.err conftest.$ac_ext
5150if $ac_preproc_ok; then
5151 :
5152else
5153 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5154See \`config.log' for more details." >&5
5155echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5156See \`config.log' for more details." >&2;}
5157 { (exit 1); exit 1; }; }
5158fi
5159
5160ac_ext=c
5161ac_cpp='$CPP $CPPFLAGS'
5162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166ac_ext=c
5167ac_cpp='$CPP $CPPFLAGS'
5168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171if test -n "$ac_tool_prefix"; then
5172 for ac_prog in gcc
5173 do
5174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178if test "${ac_cv_prog_CC+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 if test -n "$CC"; then
5182 ac_cv_prog_CC="$CC" # Let the user override the test.
5183else
5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005190 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 +00005191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5194 fi
5195done
5196done
5197IFS=$as_save_IFS
5198
5199fi
5200fi
5201CC=$ac_cv_prog_CC
5202if test -n "$CC"; then
5203 { echo "$as_me:$LINENO: result: $CC" >&5
5204echo "${ECHO_T}$CC" >&6; }
5205else
5206 { echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6; }
5208fi
5209
5210
5211 test -n "$CC" && break
5212 done
5213fi
5214if test -z "$CC"; then
5215 ac_ct_CC=$CC
5216 for ac_prog in gcc
5217do
5218 # Extract the first word of "$ac_prog", so it can be a program name with args.
5219set dummy $ac_prog; ac_word=$2
5220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 if test -n "$ac_ct_CC"; then
5226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5227else
5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005234 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 +00005235 ac_cv_prog_ac_ct_CC="$ac_prog"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239done
5240done
5241IFS=$as_save_IFS
5242
5243fi
5244fi
5245ac_ct_CC=$ac_cv_prog_ac_ct_CC
5246if test -n "$ac_ct_CC"; then
5247 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5248echo "${ECHO_T}$ac_ct_CC" >&6; }
5249else
5250 { echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6; }
5252fi
5253
5254
5255 test -n "$ac_ct_CC" && break
5256done
5257
5258 if test "x$ac_ct_CC" = x; then
5259 CC=""
5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262yes:)
5263{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5264whose name does not start with the host triplet. If you think this
5265configuration is useful to you, please write to autoconf@gnu.org." >&5
5266echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5267whose name does not start with the host triplet. If you think this
5268configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5269ac_tool_warned=yes ;;
5270esac
5271 CC=$ac_ct_CC
5272 fi
5273fi
5274
5275
5276test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5277See \`config.log' for more details." >&5
5278echo "$as_me: error: no acceptable C compiler found in \$PATH
5279See \`config.log' for more details." >&2;}
5280 { (exit 1); exit 1; }; }
5281
5282# Provide some information about the compiler.
5283echo "$as_me:$LINENO: checking for C compiler version" >&5
5284ac_compiler=`set X $ac_compile; echo $2`
5285{ (ac_try="$ac_compiler --version >&5"
5286case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289esac
5290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compiler --version >&5") 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295{ (ac_try="$ac_compiler -v >&5"
5296case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299esac
5300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compiler -v >&5") 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305{ (ac_try="$ac_compiler -V >&5"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compiler -V >&5") 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5315
5316{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5317echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5318if test "${ac_cv_c_compiler_gnu+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
5321 cat >conftest.$ac_ext <<_ACEOF
5322/* confdefs.h. */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h. */
5327
5328int
5329main ()
5330{
5331#ifndef __GNUC__
5332 choke me
5333#endif
5334
5335 ;
5336 return 0;
5337}
5338_ACEOF
5339rm -f conftest.$ac_objext
5340if { (ac_try="$ac_compile"
5341case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344esac
5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005352 (exit $ac_status); } &&
5353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5354 { (case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5357esac
5358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_try") 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367esac
5368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005373 ac_compiler_gnu=yes
5374else
5375 echo "$as_me: failed program was:" >&5
5376sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 ac_compiler_gnu=no
5379fi
5380
5381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382ac_cv_c_compiler_gnu=$ac_compiler_gnu
5383
5384fi
5385{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5386echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5387GCC=`test $ac_compiler_gnu = yes && echo yes`
5388ac_test_CFLAGS=${CFLAGS+set}
5389ac_save_CFLAGS=$CFLAGS
5390{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5391echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5392if test "${ac_cv_prog_cc_g+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395 ac_save_c_werror_flag=$ac_c_werror_flag
5396 ac_c_werror_flag=yes
5397 ac_cv_prog_cc_g=no
5398 CFLAGS="-g"
5399 cat >conftest.$ac_ext <<_ACEOF
5400/* confdefs.h. */
5401_ACEOF
5402cat confdefs.h >>conftest.$ac_ext
5403cat >>conftest.$ac_ext <<_ACEOF
5404/* end confdefs.h. */
5405
5406int
5407main ()
5408{
5409
5410 ;
5411 return 0;
5412}
5413_ACEOF
5414rm -f conftest.$ac_objext
5415if { (ac_try="$ac_compile"
5416case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419esac
5420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compile") 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429 { (case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432esac
5433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_try") 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442esac
5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005448 ac_cv_prog_cc_g=yes
5449else
5450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 CFLAGS=""
5454 cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h. */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h. */
5460
5461int
5462main ()
5463{
5464
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext
5470if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5484 { (case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_try") 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; } &&
5493 { ac_try='test -s conftest.$ac_objext'
5494 { (case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_try") 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005503 :
5504else
5505 echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508 ac_c_werror_flag=$ac_save_c_werror_flag
5509 CFLAGS="-g"
5510 cat >conftest.$ac_ext <<_ACEOF
5511/* confdefs.h. */
5512_ACEOF
5513cat confdefs.h >>conftest.$ac_ext
5514cat >>conftest.$ac_ext <<_ACEOF
5515/* end confdefs.h. */
5516
5517int
5518main ()
5519{
5520
5521 ;
5522 return 0;
5523}
5524_ACEOF
5525rm -f conftest.$ac_objext
5526if { (ac_try="$ac_compile"
5527case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543esac
5544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_try") 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try='test -s conftest.$ac_objext'
5550 { (case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5553esac
5554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_try") 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005559 ac_cv_prog_cc_g=yes
5560else
5561 echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564
5565fi
5566
5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568fi
5569
5570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571fi
5572
5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_c_werror_flag=$ac_save_c_werror_flag
5575fi
5576{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5577echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5578if test "$ac_test_CFLAGS" = set; then
5579 CFLAGS=$ac_save_CFLAGS
5580elif test $ac_cv_prog_cc_g = yes; then
5581 if test "$GCC" = yes; then
5582 CFLAGS="-g -O2"
5583 else
5584 CFLAGS="-g"
5585 fi
5586else
5587 if test "$GCC" = yes; then
5588 CFLAGS="-O2"
5589 else
5590 CFLAGS=
5591 fi
5592fi
5593{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5594echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5595if test "${ac_cv_prog_cc_c89+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598 ac_cv_prog_cc_c89=no
5599ac_save_CC=$CC
5600cat >conftest.$ac_ext <<_ACEOF
5601/* confdefs.h. */
5602_ACEOF
5603cat confdefs.h >>conftest.$ac_ext
5604cat >>conftest.$ac_ext <<_ACEOF
5605/* end confdefs.h. */
5606#include <stdarg.h>
5607#include <stdio.h>
5608#include <sys/types.h>
5609#include <sys/stat.h>
5610/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5611struct buf { int x; };
5612FILE * (*rcsopen) (struct buf *, struct stat *, int);
5613static char *e (p, i)
5614 char **p;
5615 int i;
5616{
5617 return p[i];
5618}
5619static char *f (char * (*g) (char **, int), char **p, ...)
5620{
5621 char *s;
5622 va_list v;
5623 va_start (v,p);
5624 s = g (p, va_arg (v,int));
5625 va_end (v);
5626 return s;
5627}
5628
5629/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5630 function prototypes and stuff, but not '\xHH' hex character constants.
5631 These don't provoke an error unfortunately, instead are silently treated
5632 as 'x'. The following induces an error, until -std is added to get
5633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5634 array size at least. It's necessary to write '\x00'==0 to get something
5635 that's true only with -std. */
5636int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5637
5638/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5639 inside strings and character constants. */
5640#define FOO(x) 'x'
5641int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5642
5643int test (int i, double x);
5644struct s1 {int (*f) (int a);};
5645struct s2 {int (*f) (double a);};
5646int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5647int argc;
5648char **argv;
5649int
5650main ()
5651{
5652return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5659do
5660 CC="$ac_save_CC $ac_arg"
5661 rm -f conftest.$ac_objext
5662if { (ac_try="$ac_compile"
5663case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666esac
5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676 { (case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_try") 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689esac
5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005695 ac_cv_prog_cc_c89=$ac_arg
5696else
5697 echo "$as_me: failed program was:" >&5
5698sed 's/^/| /' conftest.$ac_ext >&5
5699
5700
5701fi
5702
5703rm -f core conftest.err conftest.$ac_objext
5704 test "x$ac_cv_prog_cc_c89" != "xno" && break
5705done
5706rm -f conftest.$ac_ext
5707CC=$ac_save_CC
5708
5709fi
5710# AC_CACHE_VAL
5711case "x$ac_cv_prog_cc_c89" in
5712 x)
5713 { echo "$as_me:$LINENO: result: none needed" >&5
5714echo "${ECHO_T}none needed" >&6; } ;;
5715 xno)
5716 { echo "$as_me:$LINENO: result: unsupported" >&5
5717echo "${ECHO_T}unsupported" >&6; } ;;
5718 *)
5719 CC="$CC $ac_cv_prog_cc_c89"
5720 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5721echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5722esac
5723
5724
5725ac_ext=c
5726ac_cpp='$CPP $CPPFLAGS'
5727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730
5731ac_ext=cpp
5732ac_cpp='$CXXCPP $CPPFLAGS'
5733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736if test -z "$CXX"; then
5737 if test -n "$CCC"; then
5738 CXX=$CCC
5739 else
5740 if test -n "$ac_tool_prefix"; then
5741 for ac_prog in g++
5742 do
5743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5744set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747if test "${ac_cv_prog_CXX+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5749else
5750 if test -n "$CXX"; then
5751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5752else
5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005759 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 +00005760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764done
5765done
5766IFS=$as_save_IFS
5767
5768fi
5769fi
5770CXX=$ac_cv_prog_CXX
5771if test -n "$CXX"; then
5772 { echo "$as_me:$LINENO: result: $CXX" >&5
5773echo "${ECHO_T}$CXX" >&6; }
5774else
5775 { echo "$as_me:$LINENO: result: no" >&5
5776echo "${ECHO_T}no" >&6; }
5777fi
5778
5779
5780 test -n "$CXX" && break
5781 done
5782fi
5783if test -z "$CXX"; then
5784 ac_ct_CXX=$CXX
5785 for ac_prog in g++
5786do
5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
5788set dummy $ac_prog; ac_word=$2
5789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794 if test -n "$ac_ct_CXX"; then
5795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5796else
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005803 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 +00005804 ac_cv_prog_ac_ct_CXX="$ac_prog"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808done
5809done
5810IFS=$as_save_IFS
5811
5812fi
5813fi
5814ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5815if test -n "$ac_ct_CXX"; then
5816 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5817echo "${ECHO_T}$ac_ct_CXX" >&6; }
5818else
5819 { echo "$as_me:$LINENO: result: no" >&5
5820echo "${ECHO_T}no" >&6; }
5821fi
5822
5823
5824 test -n "$ac_ct_CXX" && break
5825done
5826
5827 if test "x$ac_ct_CXX" = x; then
5828 CXX="g++"
5829 else
5830 case $cross_compiling:$ac_tool_warned in
5831yes:)
5832{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5833whose name does not start with the host triplet. If you think this
5834configuration is useful to you, please write to autoconf@gnu.org." >&5
5835echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5836whose name does not start with the host triplet. If you think this
5837configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5838ac_tool_warned=yes ;;
5839esac
5840 CXX=$ac_ct_CXX
5841 fi
5842fi
5843
5844 fi
5845fi
5846# Provide some information about the compiler.
5847echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5848ac_compiler=`set X $ac_compile; echo $2`
5849{ (ac_try="$ac_compiler --version >&5"
5850case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853esac
5854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compiler --version >&5") 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }
5859{ (ac_try="$ac_compiler -v >&5"
5860case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compiler -v >&5") 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }
5869{ (ac_try="$ac_compiler -V >&5"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compiler -V >&5") 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }
5879
5880{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5881echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5882if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885 cat >conftest.$ac_ext <<_ACEOF
5886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h. */
5891
5892int
5893main ()
5894{
5895#ifndef __GNUC__
5896 choke me
5897#endif
5898
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903rm -f conftest.$ac_objext
5904if { (ac_try="$ac_compile"
5905case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908esac
5909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921esac
5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005937 ac_compiler_gnu=yes
5938else
5939 echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ac_compiler_gnu=no
5943fi
5944
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5947
5948fi
5949{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5950echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5951GXX=`test $ac_compiler_gnu = yes && echo yes`
5952ac_test_CXXFLAGS=${CXXFLAGS+set}
5953ac_save_CXXFLAGS=$CXXFLAGS
5954{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5955echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5956if test "${ac_cv_prog_cxx_g+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5960 ac_cxx_werror_flag=yes
5961 ac_cv_prog_cxx_g=no
5962 CXXFLAGS="-g"
5963 cat >conftest.$ac_ext <<_ACEOF
5964/* confdefs.h. */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h. */
5969
5970int
5971main ()
5972{
5973
5974 ;
5975 return 0;
5976}
5977_ACEOF
5978rm -f conftest.$ac_objext
5979if { (ac_try="$ac_compile"
5980case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983esac
5984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5993 { (case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996esac
5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_try") 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_try") 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006012 ac_cv_prog_cxx_g=yes
6013else
6014 echo "$as_me: failed program was:" >&5
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 CXXFLAGS=""
6018 cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h. */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h. */
6024
6025int
6026main ()
6027{
6028
6029 ;
6030 return 0;
6031}
6032_ACEOF
6033rm -f conftest.$ac_objext
6034if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6048 { (case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6051esac
6052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_try") 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_try") 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006067 :
6068else
6069 echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6073 CXXFLAGS="-g"
6074 cat >conftest.$ac_ext <<_ACEOF
6075/* confdefs.h. */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h. */
6080
6081int
6082main ()
6083{
6084
6085 ;
6086 return 0;
6087}
6088_ACEOF
6089rm -f conftest.$ac_objext
6090if { (ac_try="$ac_compile"
6091case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094esac
6095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6104 { (case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107esac
6108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_try") 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try='test -s conftest.$ac_objext'
6114 { (case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117esac
6118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_try") 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006123 ac_cv_prog_cxx_g=yes
6124else
6125 echo "$as_me: failed program was:" >&5
6126sed 's/^/| /' conftest.$ac_ext >&5
6127
6128
6129fi
6130
6131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132fi
6133
6134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135fi
6136
6137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6139fi
6140{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6141echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6142if test "$ac_test_CXXFLAGS" = set; then
6143 CXXFLAGS=$ac_save_CXXFLAGS
6144elif test $ac_cv_prog_cxx_g = yes; then
6145 if test "$GXX" = yes; then
6146 CXXFLAGS="-g -O2"
6147 else
6148 CXXFLAGS="-g"
6149 fi
6150else
6151 if test "$GXX" = yes; then
6152 CXXFLAGS="-O2"
6153 else
6154 CXXFLAGS=
6155 fi
6156fi
6157ac_ext=c
6158ac_cpp='$CPP $CPPFLAGS'
6159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162
6163{ echo "$as_me:$LINENO: checking " >&5
6164echo $ECHO_N "checking ... $ECHO_C" >&6; }
6165if test "${ac_cv_has_flex+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168 for ac_prog in flex lex
6169do
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171set dummy $ac_prog; ac_word=$2
6172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174if test "${ac_cv_prog_LEX+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177 if test -n "$LEX"; then
6178 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006186 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 +00006187 ac_cv_prog_LEX="$ac_prog"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191done
6192done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197LEX=$ac_cv_prog_LEX
6198if test -n "$LEX"; then
6199 { echo "$as_me:$LINENO: result: $LEX" >&5
6200echo "${ECHO_T}$LEX" >&6; }
6201else
6202 { echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6; }
6204fi
6205
6206
6207 test -n "$LEX" && break
6208done
6209test -n "$LEX" || LEX=":"
6210
Tanya Lattnercf067672008-01-17 05:57:22 +00006211if test -z "$LEXLIB"
6212then
6213 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6214echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6215if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218 ac_check_lib_save_LIBS=$LIBS
6219LIBS="-lfl $LIBS"
6220cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226
6227/* Override any GCC internal prototype to avoid an error.
6228 Use char because int might match the return type of a GCC
6229 builtin and then its argument prototype would still apply. */
6230#ifdef __cplusplus
6231extern "C"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006232#endif
Tanya Lattnercf067672008-01-17 05:57:22 +00006233char yywrap ();
Scott Michel96dcd2b2007-12-05 21:24:02 +00006234int
Tanya Lattnercf067672008-01-17 05:57:22 +00006235main ()
Scott Michel96dcd2b2007-12-05 21:24:02 +00006236{
Tanya Lattnercf067672008-01-17 05:57:22 +00006237return yywrap ();
6238 ;
6239 return 0;
Scott Michel96dcd2b2007-12-05 21:24:02 +00006240}
Reid Spencera773bd52006-08-04 18:18:08 +00006241_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00006242rm -f conftest.$ac_objext conftest$ac_exeext
6243if { (ac_try="$ac_link"
6244case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247esac
6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_link") 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260esac
6261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270esac
6271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_lib_fl_yywrap=yes
6277else
6278 echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281 ac_cv_lib_fl_yywrap=no
6282fi
6283
6284rm -f core conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6286LIBS=$ac_check_lib_save_LIBS
6287fi
6288{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6289echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6290if test $ac_cv_lib_fl_yywrap = yes; then
6291 LEXLIB="-lfl"
6292else
6293 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6294echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6295if test "${ac_cv_lib_l_yywrap+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298 ac_check_lib_save_LIBS=$LIBS
6299LIBS="-ll $LIBS"
6300cat >conftest.$ac_ext <<_ACEOF
6301/* confdefs.h. */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h. */
6306
6307/* Override any GCC internal prototype to avoid an error.
6308 Use char because int might match the return type of a GCC
6309 builtin and then its argument prototype would still apply. */
6310#ifdef __cplusplus
6311extern "C"
6312#endif
6313char yywrap ();
6314int
6315main ()
6316{
6317return yywrap ();
6318 ;
6319 return 0;
6320}
6321_ACEOF
6322rm -f conftest.$ac_objext conftest$ac_exeext
6323if { (ac_try="$ac_link"
6324case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327esac
6328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_link") 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6337 { (case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340esac
6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_try") 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest$ac_exeext'
6347 { (case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350esac
6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_try") 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_lib_l_yywrap=yes
6357else
6358 echo "$as_me: failed program was:" >&5
6359sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 ac_cv_lib_l_yywrap=no
6362fi
6363
6364rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6366LIBS=$ac_check_lib_save_LIBS
6367fi
6368{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6369echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6370if test $ac_cv_lib_l_yywrap = yes; then
6371 LEXLIB="-ll"
6372fi
6373
6374fi
6375
6376fi
6377
6378if test "x$LEX" != "x:"; then
6379 { echo "$as_me:$LINENO: checking lex output file root" >&5
6380echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6381if test "${ac_cv_prog_lex_root+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383else
6384 # The minimal lex program is just a single line: %%. But some broken lexes
6385# (Solaris, I think it was) want two %% lines, so accommodate them.
6386cat >conftest.l <<_ACEOF
6387%%
6388%%
6389_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006390{ (ac_try="$LEX conftest.l"
6391case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394esac
6395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$LEX conftest.l") 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }
6400if test -f lex.yy.c; then
6401 ac_cv_prog_lex_root=lex.yy
6402elif test -f lexyy.c; then
6403 ac_cv_prog_lex_root=lexyy
6404else
6405 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6406echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6407 { (exit 1); exit 1; }; }
6408fi
6409fi
6410{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6411echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnercf067672008-01-17 05:57:22 +00006412rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006413LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6414
Scott Michel96dcd2b2007-12-05 21:24:02 +00006415{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6416echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6417if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnercf067672008-01-17 05:57:22 +00006421# default is implementation-dependent. Figure out which it is, since
Scott Michel96dcd2b2007-12-05 21:24:02 +00006422# not all implementations provide the %pointer and %array declarations.
6423ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnercf067672008-01-17 05:57:22 +00006424echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michel96dcd2b2007-12-05 21:24:02 +00006425ac_save_LIBS=$LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006426LIBS="$LIBS $LEXLIB"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006427cat >conftest.$ac_ext <<_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00006428`cat $LEX_OUTPUT_ROOT.c`
6429_ACEOF
6430rm -f conftest.$ac_objext conftest$ac_exeext
6431if { (ac_try="$ac_link"
6432case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00006433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6435esac
6436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00006437 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00006438 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00006439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006443 (exit $ac_status); } &&
6444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445 { (case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448esac
6449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_try") 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_try") 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006464 ac_cv_prog_lex_yytext_pointer=yes
6465else
6466 echo "$as_me: failed program was:" >&5
6467sed 's/^/| /' conftest.$ac_ext >&5
6468
6469
6470fi
6471
Tanya Lattnercf067672008-01-17 05:57:22 +00006472rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006473 conftest$ac_exeext conftest.$ac_ext
6474LIBS=$ac_save_LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006475rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006476
6477fi
6478{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6479echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6480if test $ac_cv_prog_lex_yytext_pointer = yes; then
6481
6482cat >>confdefs.h <<\_ACEOF
6483#define YYTEXT_POINTER 1
6484_ACEOF
6485
6486fi
6487
6488fi
6489
6490fi
6491{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6492echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6493if test "$LEX" != "flex"; then
6494 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6495echo "$as_me: error: flex not found but required" >&2;}
6496 { (exit 1); exit 1; }; }
6497else
6498 FLEX=flex
6499
6500fi
6501
6502{ echo "$as_me:$LINENO: checking " >&5
6503echo $ECHO_N "checking ... $ECHO_C" >&6; }
6504if test "${llvm_cv_has_bison+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507 for ac_prog in 'bison -y' byacc
6508do
6509 # Extract the first word of "$ac_prog", so it can be a program name with args.
6510set dummy $ac_prog; ac_word=$2
6511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513if test "${ac_cv_prog_YACC+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515else
6516 if test -n "$YACC"; then
6517 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006525 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 +00006526 ac_cv_prog_YACC="$ac_prog"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530done
6531done
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536YACC=$ac_cv_prog_YACC
6537if test -n "$YACC"; then
6538 { echo "$as_me:$LINENO: result: $YACC" >&5
6539echo "${ECHO_T}$YACC" >&6; }
6540else
6541 { echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6; }
6543fi
6544
6545
6546 test -n "$YACC" && break
6547done
6548test -n "$YACC" || YACC="yacc"
6549
6550fi
6551{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6552echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6553if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006554
6555 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6556echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006557else
6558 BISON=bison
6559
6560fi
6561
6562{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6563echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6564if test "${lt_cv_path_NM+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 if test -n "$NM"; then
6568 # Let the user override the test.
6569 lt_cv_path_NM="$NM"
6570else
6571 lt_nm_to_check="${ac_tool_prefix}nm"
6572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6573 lt_nm_to_check="$lt_nm_to_check nm"
6574 fi
6575 for lt_tmp_nm in $lt_nm_to_check; do
6576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6578 IFS="$lt_save_ifs"
6579 test -z "$ac_dir" && ac_dir=.
6580 tmp_nm="$ac_dir/$lt_tmp_nm"
6581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6582 # Check to see if the nm accepts a BSD-compat flag.
6583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6584 # nm: unknown option "B" ignored
6585 # Tru64's nm complains that /dev/null is an invalid object file
6586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6587 */dev/null* | *'Invalid file or object type'*)
6588 lt_cv_path_NM="$tmp_nm -B"
6589 break
6590 ;;
6591 *)
6592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6593 */dev/null*)
6594 lt_cv_path_NM="$tmp_nm -p"
6595 break
6596 ;;
6597 *)
6598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6599 continue # so that we can try to find one that supports BSD flags
6600 ;;
6601 esac
6602 ;;
6603 esac
6604 fi
6605 done
6606 IFS="$lt_save_ifs"
6607 done
6608 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6609fi
6610fi
6611{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6612echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6613NM="$lt_cv_path_NM"
6614
6615
6616
6617{ echo "$as_me:$LINENO: checking for GNU make" >&5
6618echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6619if test "${llvm_cv_gnu_make_command+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622 llvm_cv_gnu_make_command=''
6623 for a in "$MAKE" make gmake gnumake ; do
6624 if test -z "$a" ; then continue ; fi ;
6625 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6626 then
6627 llvm_cv_gnu_make_command=$a ;
6628 break;
6629 fi
6630 done
6631fi
6632{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6633echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6634 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6635 ifGNUmake='' ;
6636 else
6637 ifGNUmake='#' ;
6638 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6639echo "${ECHO_T}\"Not found\"" >&6; };
6640 fi
6641
6642
6643{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6644echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6645LN_S=$as_ln_s
6646if test "$LN_S" = "ln -s"; then
6647 { echo "$as_me:$LINENO: result: yes" >&5
6648echo "${ECHO_T}yes" >&6; }
6649else
6650 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6651echo "${ECHO_T}no, using $LN_S" >&6; }
6652fi
6653
6654# Extract the first word of "cmp", so it can be a program name with args.
6655set dummy cmp; ac_word=$2
6656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658if test "${ac_cv_path_CMP+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661 case $CMP in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6664 ;;
6665 *)
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006672 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 +00006673 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679IFS=$as_save_IFS
6680
6681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6682 ;;
6683esac
6684fi
6685CMP=$ac_cv_path_CMP
6686if test -n "$CMP"; then
6687 { echo "$as_me:$LINENO: result: $CMP" >&5
6688echo "${ECHO_T}$CMP" >&6; }
6689else
6690 { echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6; }
6692fi
6693
6694
6695# Extract the first word of "cp", so it can be a program name with args.
6696set dummy cp; ac_word=$2
6697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699if test "${ac_cv_path_CP+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702 case $CP in
6703 [\\/]* | ?:[\\/]*)
6704 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6705 ;;
6706 *)
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006713 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 +00006714 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6723 ;;
6724esac
6725fi
6726CP=$ac_cv_path_CP
6727if test -n "$CP"; then
6728 { echo "$as_me:$LINENO: result: $CP" >&5
6729echo "${ECHO_T}$CP" >&6; }
6730else
6731 { echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6; }
6733fi
6734
6735
6736# Extract the first word of "date", so it can be a program name with args.
6737set dummy date; ac_word=$2
6738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740if test "${ac_cv_path_DATE+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743 case $DATE in
6744 [\\/]* | ?:[\\/]*)
6745 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6746 ;;
6747 *)
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006754 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 +00006755 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759done
6760done
6761IFS=$as_save_IFS
6762
6763 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6764 ;;
6765esac
6766fi
6767DATE=$ac_cv_path_DATE
6768if test -n "$DATE"; then
6769 { echo "$as_me:$LINENO: result: $DATE" >&5
6770echo "${ECHO_T}$DATE" >&6; }
6771else
6772 { echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6; }
6774fi
6775
6776
6777# Extract the first word of "find", so it can be a program name with args.
6778set dummy find; ac_word=$2
6779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781if test "${ac_cv_path_FIND+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783else
6784 case $FIND in
6785 [\\/]* | ?:[\\/]*)
6786 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6787 ;;
6788 *)
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006795 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 +00006796 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800done
6801done
6802IFS=$as_save_IFS
6803
6804 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6805 ;;
6806esac
6807fi
6808FIND=$ac_cv_path_FIND
6809if test -n "$FIND"; then
6810 { echo "$as_me:$LINENO: result: $FIND" >&5
6811echo "${ECHO_T}$FIND" >&6; }
6812else
6813 { echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6; }
6815fi
6816
6817
6818# Extract the first word of "grep", so it can be a program name with args.
6819set dummy grep; ac_word=$2
6820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822if test "${ac_cv_path_GREP+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824else
6825 case $GREP in
6826 [\\/]* | ?:[\\/]*)
6827 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6828 ;;
6829 *)
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006836 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 +00006837 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841done
6842done
6843IFS=$as_save_IFS
6844
6845 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6846 ;;
6847esac
6848fi
6849GREP=$ac_cv_path_GREP
6850if test -n "$GREP"; then
6851 { echo "$as_me:$LINENO: result: $GREP" >&5
6852echo "${ECHO_T}$GREP" >&6; }
6853else
6854 { echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6; }
6856fi
6857
6858
6859# Extract the first word of "mkdir", so it can be a program name with args.
6860set dummy mkdir; ac_word=$2
6861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863if test "${ac_cv_path_MKDIR+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865else
6866 case $MKDIR in
6867 [\\/]* | ?:[\\/]*)
6868 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6869 ;;
6870 *)
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006877 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 +00006878 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882done
6883done
6884IFS=$as_save_IFS
6885
6886 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6887 ;;
6888esac
6889fi
6890MKDIR=$ac_cv_path_MKDIR
6891if test -n "$MKDIR"; then
6892 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6893echo "${ECHO_T}$MKDIR" >&6; }
6894else
6895 { echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6; }
6897fi
6898
6899
6900# Extract the first word of "mv", so it can be a program name with args.
6901set dummy mv; ac_word=$2
6902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_path_MV+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 case $MV in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006918 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 +00006919 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923done
6924done
6925IFS=$as_save_IFS
6926
6927 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6928 ;;
6929esac
6930fi
6931MV=$ac_cv_path_MV
6932if test -n "$MV"; then
6933 { echo "$as_me:$LINENO: result: $MV" >&5
6934echo "${ECHO_T}$MV" >&6; }
6935else
6936 { echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6; }
6938fi
6939
6940
6941if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6943set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946if test "${ac_cv_prog_RANLIB+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949 if test -n "$RANLIB"; then
6950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006958 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 +00006959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963done
6964done
6965IFS=$as_save_IFS
6966
6967fi
6968fi
6969RANLIB=$ac_cv_prog_RANLIB
6970if test -n "$RANLIB"; then
6971 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6972echo "${ECHO_T}$RANLIB" >&6; }
6973else
6974 { echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6; }
6976fi
6977
6978
6979fi
6980if test -z "$ac_cv_prog_RANLIB"; then
6981 ac_ct_RANLIB=$RANLIB
6982 # Extract the first word of "ranlib", so it can be a program name with args.
6983set dummy ranlib; ac_word=$2
6984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 if test -n "$ac_ct_RANLIB"; then
6990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006998 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 +00006999 ac_cv_prog_ac_ct_RANLIB="ranlib"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003done
7004done
7005IFS=$as_save_IFS
7006
7007fi
7008fi
7009ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7010if test -n "$ac_ct_RANLIB"; then
7011 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7012echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7013else
7014 { echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6; }
7016fi
7017
7018 if test "x$ac_ct_RANLIB" = x; then
7019 RANLIB=":"
7020 else
7021 case $cross_compiling:$ac_tool_warned in
7022yes:)
7023{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7024whose name does not start with the host triplet. If you think this
7025configuration is useful to you, please write to autoconf@gnu.org." >&5
7026echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7027whose name does not start with the host triplet. If you think this
7028configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7029ac_tool_warned=yes ;;
7030esac
7031 RANLIB=$ac_ct_RANLIB
7032 fi
7033else
7034 RANLIB="$ac_cv_prog_RANLIB"
7035fi
7036
7037# Extract the first word of "rm", so it can be a program name with args.
7038set dummy rm; ac_word=$2
7039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041if test "${ac_cv_path_RM+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
7044 case $RM in
7045 [\\/]* | ?:[\\/]*)
7046 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7047 ;;
7048 *)
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007055 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 +00007056 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060done
7061done
7062IFS=$as_save_IFS
7063
7064 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7065 ;;
7066esac
7067fi
7068RM=$ac_cv_path_RM
7069if test -n "$RM"; then
7070 { echo "$as_me:$LINENO: result: $RM" >&5
7071echo "${ECHO_T}$RM" >&6; }
7072else
7073 { echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6; }
7075fi
7076
7077
7078# Extract the first word of "sed", so it can be a program name with args.
7079set dummy sed; ac_word=$2
7080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082if test "${ac_cv_path_SED+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085 case $SED in
7086 [\\/]* | ?:[\\/]*)
7087 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7088 ;;
7089 *)
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007096 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 +00007097 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101done
7102done
7103IFS=$as_save_IFS
7104
7105 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7106 ;;
7107esac
7108fi
7109SED=$ac_cv_path_SED
7110if test -n "$SED"; then
7111 { echo "$as_me:$LINENO: result: $SED" >&5
7112echo "${ECHO_T}$SED" >&6; }
7113else
7114 { echo "$as_me:$LINENO: result: no" >&5
7115echo "${ECHO_T}no" >&6; }
7116fi
7117
7118
7119# Extract the first word of "tar", so it can be a program name with args.
7120set dummy tar; ac_word=$2
7121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123if test "${ac_cv_path_TAR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126 case $TAR in
7127 [\\/]* | ?:[\\/]*)
7128 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7129 ;;
7130 *)
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007137 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 +00007138 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142done
7143done
7144IFS=$as_save_IFS
7145
7146 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7147 ;;
7148esac
7149fi
7150TAR=$ac_cv_path_TAR
7151if test -n "$TAR"; then
7152 { echo "$as_me:$LINENO: result: $TAR" >&5
7153echo "${ECHO_T}$TAR" >&6; }
7154else
7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157fi
7158
7159
7160# Extract the first word of "pwd", so it can be a program name with args.
7161set dummy pwd; ac_word=$2
7162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164if test "${ac_cv_path_BINPWD+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 case $BINPWD in
7168 [\\/]* | ?:[\\/]*)
7169 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7170 ;;
7171 *)
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007178 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 +00007179 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183done
7184done
7185IFS=$as_save_IFS
7186
7187 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7188 ;;
7189esac
7190fi
7191BINPWD=$ac_cv_path_BINPWD
7192if test -n "$BINPWD"; then
7193 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7194echo "${ECHO_T}$BINPWD" >&6; }
7195else
7196 { echo "$as_me:$LINENO: result: no" >&5
7197echo "${ECHO_T}no" >&6; }
7198fi
7199
7200
7201
7202# Extract the first word of "Graphviz", so it can be a program name with args.
7203set dummy Graphviz; ac_word=$2
7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 case $GRAPHVIZ in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007221 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226done
7227IFS=$as_save_IFS
7228
7229 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7230 ;;
7231esac
7232fi
7233GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7234if test -n "$GRAPHVIZ"; then
7235 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7236echo "${ECHO_T}$GRAPHVIZ" >&6; }
7237else
7238 { echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6; }
7240fi
7241
7242
7243if test "$GRAPHVIZ" != "echo Graphviz" ; then
7244
7245cat >>confdefs.h <<\_ACEOF
7246#define HAVE_GRAPHVIZ 1
7247_ACEOF
7248
Jeff Cohen28783c32007-01-12 18:22:38 +00007249 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007250 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7251 fi
7252
7253cat >>confdefs.h <<_ACEOF
7254#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7255_ACEOF
7256
7257fi
7258# Extract the first word of "dot", so it can be a program name with args.
7259set dummy dot; ac_word=$2
7260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7262if test "${ac_cv_path_DOT+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264else
7265 case $DOT in
7266 [\\/]* | ?:[\\/]*)
7267 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7268 ;;
7269 *)
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007276 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 +00007277 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281done
7282done
7283IFS=$as_save_IFS
7284
7285 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7286 ;;
7287esac
7288fi
7289DOT=$ac_cv_path_DOT
7290if test -n "$DOT"; then
7291 { echo "$as_me:$LINENO: result: $DOT" >&5
7292echo "${ECHO_T}$DOT" >&6; }
7293else
7294 { echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6; }
7296fi
7297
7298
7299if test "$DOT" != "echo dot" ; then
7300
7301cat >>confdefs.h <<\_ACEOF
7302#define HAVE_DOT 1
7303_ACEOF
7304
Jeff Cohen28783c32007-01-12 18:22:38 +00007305 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007306 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7307 fi
7308
7309cat >>confdefs.h <<_ACEOF
7310#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7311_ACEOF
7312
7313fi
7314for ac_prog in gv gsview32
7315do
7316 # Extract the first word of "$ac_prog", so it can be a program name with args.
7317set dummy $ac_prog; ac_word=$2
7318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320if test "${ac_cv_path_GV+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323 case $GV in
7324 [\\/]* | ?:[\\/]*)
7325 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7326 ;;
7327 *)
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007334 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 +00007335 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7338 fi
7339done
7340done
7341IFS=$as_save_IFS
7342
7343 ;;
7344esac
7345fi
7346GV=$ac_cv_path_GV
7347if test -n "$GV"; then
7348 { echo "$as_me:$LINENO: result: $GV" >&5
7349echo "${ECHO_T}$GV" >&6; }
7350else
7351 { echo "$as_me:$LINENO: result: no" >&5
7352echo "${ECHO_T}no" >&6; }
7353fi
7354
7355
7356 test -n "$GV" && break
7357done
7358test -n "$GV" || GV="echo gv"
7359
7360if test "$GV" != "echo gv" ; then
7361
7362cat >>confdefs.h <<\_ACEOF
7363#define HAVE_GV 1
7364_ACEOF
7365
Jeff Cohen28783c32007-01-12 18:22:38 +00007366 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007367 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7368 fi
7369
7370cat >>confdefs.h <<_ACEOF
7371#define LLVM_PATH_GV "$GV${EXEEXT}"
7372_ACEOF
7373
7374fi
7375# Extract the first word of "dotty", so it can be a program name with args.
7376set dummy dotty; ac_word=$2
7377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379if test "${ac_cv_path_DOTTY+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381else
7382 case $DOTTY in
7383 [\\/]* | ?:[\\/]*)
7384 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7385 ;;
7386 *)
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007393 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 +00007394 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398done
7399done
7400IFS=$as_save_IFS
7401
7402 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7403 ;;
7404esac
7405fi
7406DOTTY=$ac_cv_path_DOTTY
7407if test -n "$DOTTY"; then
7408 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7409echo "${ECHO_T}$DOTTY" >&6; }
7410else
7411 { echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6; }
7413fi
7414
7415
7416if test "$DOTTY" != "echo dotty" ; then
7417
7418cat >>confdefs.h <<\_ACEOF
7419#define HAVE_DOTTY 1
7420_ACEOF
7421
Jeff Cohen28783c32007-01-12 18:22:38 +00007422 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007423 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7424 fi
7425
7426cat >>confdefs.h <<_ACEOF
7427#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7428_ACEOF
7429
7430fi
7431
7432
7433# Extract the first word of "perl", so it can be a program name with args.
7434set dummy perl; ac_word=$2
7435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437if test "${ac_cv_path_PERL+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440 case $PERL in
7441 [\\/]* | ?:[\\/]*)
7442 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7443 ;;
7444 *)
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007451 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 +00007452 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456done
7457done
7458IFS=$as_save_IFS
7459
7460 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7461 ;;
7462esac
7463fi
7464PERL=$ac_cv_path_PERL
7465if test -n "$PERL"; then
7466 { echo "$as_me:$LINENO: result: $PERL" >&5
7467echo "${ECHO_T}$PERL" >&6; }
7468else
7469 { echo "$as_me:$LINENO: result: no" >&5
7470echo "${ECHO_T}no" >&6; }
7471fi
7472
7473
7474if test "$PERL" != "none"; then
7475 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7476echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7477 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7478 { echo "$as_me:$LINENO: result: yes" >&5
7479echo "${ECHO_T}yes" >&6; }
7480 else
7481 PERL=none
7482 { echo "$as_me:$LINENO: result: not found" >&5
7483echo "${ECHO_T}not found" >&6; }
7484 fi
7485fi
7486
7487
7488if test x"$PERL" = xnone; then
7489 HAVE_PERL=0
7490
Reid Spencer59807fa2007-05-17 18:11:03 +00007491 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7492echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7493 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007494else
7495 HAVE_PERL=1
7496
7497fi
7498
7499# Find a good install program. We prefer a C program (faster),
7500# so one script is as good as another. But avoid the broken or
7501# incompatible versions:
7502# SysV /etc/install, /usr/sbin/install
7503# SunOS /usr/etc/install
7504# IRIX /sbin/install
7505# AIX /bin/install
7506# AmigaOS /C/install, which installs bootblocks on floppy discs
7507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7508# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7510# OS/2's system install, which has a completely different semantic
7511# ./install, which can be erroneously created by make from ./install.sh.
7512{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7513echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7514if test -z "$INSTALL"; then
7515if test "${ac_cv_path_install+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519for as_dir in $PATH
7520do
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
7523 # Account for people who put trailing slashes in PATH elements.
7524case $as_dir/ in
7525 ./ | .// | /cC/* | \
7526 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7527 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7528 /usr/ucb/* ) ;;
7529 *)
7530 # OSF1 and SCO ODT 3.0 have their own names for install.
7531 # Don't use installbsd from OSF since it installs stuff as root
7532 # by default.
7533 for ac_prog in ginstall scoinst install; do
7534 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007535 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 +00007536 if test $ac_prog = install &&
7537 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7538 # AIX install. It has an incompatible calling convention.
7539 :
7540 elif test $ac_prog = install &&
7541 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7542 # program-specific install script used by HP pwplus--don't use.
7543 :
7544 else
7545 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7546 break 3
7547 fi
7548 fi
7549 done
7550 done
7551 ;;
7552esac
7553done
7554IFS=$as_save_IFS
7555
7556
7557fi
7558 if test "${ac_cv_path_install+set}" = set; then
7559 INSTALL=$ac_cv_path_install
7560 else
7561 # As a last resort, use the slow shell script. Don't cache a
7562 # value for INSTALL within a source directory, because that will
7563 # break other packages using the cache if that directory is
7564 # removed, or if the value is a relative name.
7565 INSTALL=$ac_install_sh
7566 fi
7567fi
7568{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7569echo "${ECHO_T}$INSTALL" >&6; }
7570
7571# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7572# It thinks the first close brace ends the variable substitution.
7573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7574
7575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7576
7577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7578
7579
7580# Extract the first word of "bzip2", so it can be a program name with args.
7581set dummy bzip2; ac_word=$2
7582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584if test "${ac_cv_path_BZIP2+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587 case $BZIP2 in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7590 ;;
7591 *)
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007598 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 +00007599 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603done
7604done
7605IFS=$as_save_IFS
7606
Reid Spencera773bd52006-08-04 18:18:08 +00007607 ;;
7608esac
7609fi
7610BZIP2=$ac_cv_path_BZIP2
7611if test -n "$BZIP2"; then
7612 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7613echo "${ECHO_T}$BZIP2" >&6; }
7614else
7615 { echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6; }
7617fi
7618
7619
7620# Extract the first word of "doxygen", so it can be a program name with args.
7621set dummy doxygen; ac_word=$2
7622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624if test "${ac_cv_path_DOXYGEN+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 case $DOXYGEN in
7628 [\\/]* | ?:[\\/]*)
7629 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7630 ;;
7631 *)
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007638 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 +00007639 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7642 fi
7643done
7644done
7645IFS=$as_save_IFS
7646
Reid Spencera773bd52006-08-04 18:18:08 +00007647 ;;
7648esac
7649fi
7650DOXYGEN=$ac_cv_path_DOXYGEN
7651if test -n "$DOXYGEN"; then
7652 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7653echo "${ECHO_T}$DOXYGEN" >&6; }
7654else
7655 { echo "$as_me:$LINENO: result: no" >&5
7656echo "${ECHO_T}no" >&6; }
7657fi
7658
7659
Reid Spencera773bd52006-08-04 18:18:08 +00007660# Extract the first word of "groff", so it can be a program name with args.
7661set dummy groff; ac_word=$2
7662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664if test "${ac_cv_path_GROFF+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666else
7667 case $GROFF in
7668 [\\/]* | ?:[\\/]*)
7669 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7670 ;;
7671 *)
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007678 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 +00007679 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7682 fi
7683done
7684done
7685IFS=$as_save_IFS
7686
Reid Spencera773bd52006-08-04 18:18:08 +00007687 ;;
7688esac
7689fi
7690GROFF=$ac_cv_path_GROFF
7691if test -n "$GROFF"; then
7692 { echo "$as_me:$LINENO: result: $GROFF" >&5
7693echo "${ECHO_T}$GROFF" >&6; }
7694else
7695 { echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6; }
7697fi
7698
7699
7700# Extract the first word of "gzip", so it can be a program name with args.
7701set dummy gzip; ac_word=$2
7702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704if test "${ac_cv_path_GZIP+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 case $GZIP in
7708 [\\/]* | ?:[\\/]*)
7709 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7710 ;;
7711 *)
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713for as_dir in $PATH
7714do
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007718 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 +00007719 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 break 2
7722 fi
7723done
7724done
7725IFS=$as_save_IFS
7726
Reid Spencera773bd52006-08-04 18:18:08 +00007727 ;;
7728esac
7729fi
7730GZIP=$ac_cv_path_GZIP
7731if test -n "$GZIP"; then
7732 { echo "$as_me:$LINENO: result: $GZIP" >&5
7733echo "${ECHO_T}$GZIP" >&6; }
7734else
7735 { echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6; }
7737fi
7738
7739
7740# Extract the first word of "pod2html", so it can be a program name with args.
7741set dummy pod2html; ac_word=$2
7742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744if test "${ac_cv_path_POD2HTML+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747 case $POD2HTML in
7748 [\\/]* | ?:[\\/]*)
7749 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7750 ;;
7751 *)
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753for as_dir in $PATH
7754do
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007758 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 +00007759 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7762 fi
7763done
7764done
7765IFS=$as_save_IFS
7766
Reid Spencera773bd52006-08-04 18:18:08 +00007767 ;;
7768esac
7769fi
7770POD2HTML=$ac_cv_path_POD2HTML
7771if test -n "$POD2HTML"; then
7772 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7773echo "${ECHO_T}$POD2HTML" >&6; }
7774else
7775 { echo "$as_me:$LINENO: result: no" >&5
7776echo "${ECHO_T}no" >&6; }
7777fi
7778
7779
7780# Extract the first word of "pod2man", so it can be a program name with args.
7781set dummy pod2man; ac_word=$2
7782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784if test "${ac_cv_path_POD2MAN+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786else
7787 case $POD2MAN in
7788 [\\/]* | ?:[\\/]*)
7789 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7790 ;;
7791 *)
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007798 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 +00007799 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803done
7804done
7805IFS=$as_save_IFS
7806
Reid Spencera773bd52006-08-04 18:18:08 +00007807 ;;
7808esac
7809fi
7810POD2MAN=$ac_cv_path_POD2MAN
7811if test -n "$POD2MAN"; then
7812 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7813echo "${ECHO_T}$POD2MAN" >&6; }
7814else
7815 { echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6; }
7817fi
7818
7819
7820# Extract the first word of "runtest", so it can be a program name with args.
7821set dummy runtest; ac_word=$2
7822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824if test "${ac_cv_path_RUNTEST+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827 case $RUNTEST in
7828 [\\/]* | ?:[\\/]*)
7829 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7830 ;;
7831 *)
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007838 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 +00007839 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843done
7844done
7845IFS=$as_save_IFS
7846
Reid Spencera773bd52006-08-04 18:18:08 +00007847 ;;
7848esac
7849fi
7850RUNTEST=$ac_cv_path_RUNTEST
7851if test -n "$RUNTEST"; then
7852 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7853echo "${ECHO_T}$RUNTEST" >&6; }
7854else
7855 { echo "$as_me:$LINENO: result: no" >&5
7856echo "${ECHO_T}no" >&6; }
7857fi
7858
7859
7860
7861no_itcl=true
7862{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7863echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7864
7865# Check whether --with-tclinclude was given.
7866if test "${with_tclinclude+set}" = set; then
7867 withval=$with_tclinclude; with_tclinclude=${withval}
7868else
7869 with_tclinclude=''
7870fi
7871
7872if test "${ac_cv_path_tclsh+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7874else
7875
7876if test x"${with_tclinclude}" != x ; then
7877 if test -f ${with_tclinclude}/tclsh ; then
7878 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7879 elif test -f ${with_tclinclude}/src/tclsh ; then
7880 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7881 else
7882 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7883echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7884 { (exit 1); exit 1; }; }
7885 fi
7886fi
7887
7888if test x"${ac_cv_path_tclsh}" = x ; then
7889 { echo "$as_me:$LINENO: result: none" >&5
7890echo "${ECHO_T}none" >&6; }
7891 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
7892do
7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
7894set dummy $ac_prog; ac_word=$2
7895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7897if test "${ac_cv_path_TCLSH+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 case $TCLSH in
7901 [\\/]* | ?:[\\/]*)
7902 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7903 ;;
7904 *)
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007911 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 +00007912 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916done
7917done
7918IFS=$as_save_IFS
7919
7920 ;;
7921esac
7922fi
7923TCLSH=$ac_cv_path_TCLSH
7924if test -n "$TCLSH"; then
7925 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7926echo "${ECHO_T}$TCLSH" >&6; }
7927else
7928 { echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6; }
7930fi
7931
7932
7933 test -n "$TCLSH" && break
7934done
7935
7936 if test x"${TCLSH}" = x ; then
7937 ac_cv_path_tclsh='';
7938 else
7939 ac_cv_path_tclsh="${TCLSH}";
7940 fi
7941else
7942 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7943echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7944 TCLSH="${ac_cv_path_tclsh}"
7945
7946fi
7947
7948fi
7949
7950# Extract the first word of "zip", so it can be a program name with args.
7951set dummy zip; ac_word=$2
7952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954if test "${ac_cv_path_ZIP+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956else
7957 case $ZIP in
7958 [\\/]* | ?:[\\/]*)
7959 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7960 ;;
7961 *)
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007968 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 +00007969 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973done
7974done
7975IFS=$as_save_IFS
7976
Reid Spencera773bd52006-08-04 18:18:08 +00007977 ;;
7978esac
7979fi
7980ZIP=$ac_cv_path_ZIP
7981if test -n "$ZIP"; then
7982 { echo "$as_me:$LINENO: result: $ZIP" >&5
7983echo "${ECHO_T}$ZIP" >&6; }
7984else
7985 { echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6; }
7987fi
7988
7989
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007990# Extract the first word of "ocamlc", so it can be a program name with args.
7991set dummy ocamlc; ac_word=$2
7992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994if test "${ac_cv_path_OCAMLC+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 case $OCAMLC in
7998 [\\/]* | ?:[\\/]*)
7999 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8000 ;;
8001 *)
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008008 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 +00008009 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013done
8014done
8015IFS=$as_save_IFS
8016
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008017 ;;
8018esac
8019fi
8020OCAMLC=$ac_cv_path_OCAMLC
8021if test -n "$OCAMLC"; then
8022 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8023echo "${ECHO_T}$OCAMLC" >&6; }
8024else
8025 { echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6; }
8027fi
8028
8029
8030# Extract the first word of "ocamlopt", so it can be a program name with args.
8031set dummy ocamlopt; ac_word=$2
8032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037 case $OCAMLOPT in
8038 [\\/]* | ?:[\\/]*)
8039 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8040 ;;
8041 *)
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008048 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 +00008049 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053done
8054done
8055IFS=$as_save_IFS
8056
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008057 ;;
8058esac
8059fi
8060OCAMLOPT=$ac_cv_path_OCAMLOPT
8061if test -n "$OCAMLOPT"; then
8062 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8063echo "${ECHO_T}$OCAMLOPT" >&6; }
8064else
8065 { echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6; }
8067fi
8068
8069
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008070# Extract the first word of "ocamldep", so it can be a program name with args.
8071set dummy ocamldep; ac_word=$2
8072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8074if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8076else
8077 case $OCAMLDEP in
8078 [\\/]* | ?:[\\/]*)
8079 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8080 ;;
8081 *)
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008088 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 +00008089 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8092 fi
8093done
8094done
8095IFS=$as_save_IFS
8096
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008097 ;;
8098esac
8099fi
8100OCAMLDEP=$ac_cv_path_OCAMLDEP
8101if test -n "$OCAMLDEP"; then
8102 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8103echo "${ECHO_T}$OCAMLDEP" >&6; }
8104else
8105 { echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6; }
8107fi
8108
8109
Reid Spencera773bd52006-08-04 18:18:08 +00008110
8111{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8112echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8113if test "${llvm_cv_link_use_r+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115else
8116 ac_ext=c
8117ac_cpp='$CPP $CPPFLAGS'
8118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121
8122 oldcflags="$CFLAGS"
8123 CFLAGS="$CFLAGS -Wl,-R."
8124 cat >conftest.$ac_ext <<_ACEOF
8125/* confdefs.h. */
8126_ACEOF
8127cat confdefs.h >>conftest.$ac_ext
8128cat >>conftest.$ac_ext <<_ACEOF
8129/* end confdefs.h. */
8130
8131int
8132main ()
8133{
8134int main() { return 0; }
8135 ;
8136 return 0;
8137}
8138_ACEOF
8139rm -f conftest.$ac_objext conftest$ac_exeext
8140if { (ac_try="$ac_link"
8141case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8144esac
8145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_link") 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8154 { (case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157esac
8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_try") 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; } &&
8163 { ac_try='test -s conftest$ac_exeext'
8164 { (case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167esac
8168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_try") 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008173 llvm_cv_link_use_r=yes
8174else
8175 echo "$as_me: failed program was:" >&5
8176sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 llvm_cv_link_use_r=no
8179fi
8180
Tanya Lattnercf067672008-01-17 05:57:22 +00008181rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008182 conftest$ac_exeext conftest.$ac_ext
8183 CFLAGS="$oldcflags"
8184 ac_ext=c
8185ac_cpp='$CPP $CPPFLAGS'
8186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8188ac_compiler_gnu=$ac_cv_c_compiler_gnu
8189
8190
8191fi
8192{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8193echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8194if test "$llvm_cv_link_use_r" = yes ; then
8195
8196cat >>confdefs.h <<\_ACEOF
8197#define HAVE_LINK_R 1
8198_ACEOF
8199
8200 fi
8201
8202
8203
8204
8205{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8206echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8207if test "${ac_cv_c_const+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210 cat >conftest.$ac_ext <<_ACEOF
8211/* confdefs.h. */
8212_ACEOF
8213cat confdefs.h >>conftest.$ac_ext
8214cat >>conftest.$ac_ext <<_ACEOF
8215/* end confdefs.h. */
8216
8217int
8218main ()
8219{
8220/* FIXME: Include the comments suggested by Paul. */
8221#ifndef __cplusplus
8222 /* Ultrix mips cc rejects this. */
8223 typedef int charset[2];
Tanya Lattnercf067672008-01-17 05:57:22 +00008224 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008225 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008226 char const *const *ccp;
8227 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008228 /* NEC SVR4.0.2 mips cc rejects this. */
8229 struct point {int x, y;};
8230 static struct point const zero = {0,0};
8231 /* AIX XL C 1.02.0.0 rejects this.
8232 It does not let you subtract one const X* pointer from another in
8233 an arm of an if-expression whose if-part is not a constant
8234 expression */
8235 const char *g = "string";
Tanya Lattnercf067672008-01-17 05:57:22 +00008236 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008237 /* HPUX 7.0 cc rejects these. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008238 ++ccp;
8239 p = (char**) ccp;
8240 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008241 { /* SCO 3.2v4 cc rejects this. */
8242 char *t;
8243 char const *s = 0 ? (char *) 0 : (char const *) 0;
8244
8245 *t++ = 0;
8246 if (s) return 0;
8247 }
8248 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8249 int x[] = {25, 17};
8250 const int *foo = &x[0];
8251 ++foo;
8252 }
8253 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8254 typedef const int *iptr;
8255 iptr p = 0;
8256 ++p;
8257 }
8258 { /* AIX XL C 1.02.0.0 rejects this saying
8259 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8260 struct s { int j; const int *ap[3]; };
8261 struct s *b; b->j = 5;
8262 }
8263 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8264 const int foo = 10;
8265 if (!foo) return 0;
8266 }
Tanya Lattnercf067672008-01-17 05:57:22 +00008267 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008268#endif
8269
8270 ;
8271 return 0;
8272}
8273_ACEOF
8274rm -f conftest.$ac_objext
8275if { (ac_try="$ac_compile"
8276case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279esac
8280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008287 (exit $ac_status); } &&
8288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 { (case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292esac
8293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_try") 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302esac
8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008308 ac_cv_c_const=yes
8309else
8310 echo "$as_me: failed program was:" >&5
8311sed 's/^/| /' conftest.$ac_ext >&5
8312
8313 ac_cv_c_const=no
8314fi
8315
8316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317fi
8318{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8319echo "${ECHO_T}$ac_cv_c_const" >&6; }
8320if test $ac_cv_c_const = no; then
8321
8322cat >>confdefs.h <<\_ACEOF
8323#define const
8324_ACEOF
8325
8326fi
8327
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008328
8329
8330
8331
8332
8333ac_header_dirent=no
8334for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8335 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008336{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8337echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341 cat >conftest.$ac_ext <<_ACEOF
8342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h. */
8347#include <sys/types.h>
8348#include <$ac_hdr>
8349
8350int
8351main ()
8352{
8353if ((DIR *) 0)
8354return 0;
8355 ;
8356 return 0;
8357}
8358_ACEOF
8359rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008360if { (ac_try="$ac_compile"
8361case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8364esac
8365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008372 (exit $ac_status); } &&
8373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest.$ac_objext'
8384 { (case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8387esac
8388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_try") 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008393 eval "$as_ac_Header=yes"
8394else
8395 echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
Reid Spencera773bd52006-08-04 18:18:08 +00008398 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008399fi
Reid Spencera773bd52006-08-04 18:18:08 +00008400
8401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008402fi
Reid Spencera773bd52006-08-04 18:18:08 +00008403ac_res=`eval echo '${'$as_ac_Header'}'`
8404 { echo "$as_me:$LINENO: result: $ac_res" >&5
8405echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008406if test `eval echo '${'$as_ac_Header'}'` = yes; then
8407 cat >>confdefs.h <<_ACEOF
8408#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8409_ACEOF
8410
8411ac_header_dirent=$ac_hdr; break
8412fi
8413
8414done
8415# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8416if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008417 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8418echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008419if test "${ac_cv_search_opendir+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421else
8422 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008423cat >conftest.$ac_ext <<_ACEOF
8424/* confdefs.h. */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h. */
8429
Reid Spencera773bd52006-08-04 18:18:08 +00008430/* Override any GCC internal prototype to avoid an error.
8431 Use char because int might match the return type of a GCC
8432 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008433#ifdef __cplusplus
8434extern "C"
8435#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008436char opendir ();
8437int
8438main ()
8439{
Reid Spencera773bd52006-08-04 18:18:08 +00008440return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008441 ;
8442 return 0;
8443}
8444_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008445for ac_lib in '' dir; do
8446 if test -z "$ac_lib"; then
8447 ac_res="none required"
8448 else
8449 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008451 fi
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453if { (ac_try="$ac_link"
8454case "(($ac_try" in
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8457esac
8458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008465 (exit $ac_status); } &&
8466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8467 { (case "(($ac_try" in
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8470esac
8471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_try") 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try='test -s conftest$ac_exeext'
8477 { (case "(($ac_try" in
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8480esac
8481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_try") 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008486 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008487else
8488 echo "$as_me: failed program was:" >&5
8489sed 's/^/| /' conftest.$ac_ext >&5
8490
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008491
8492fi
8493
Tanya Lattnercf067672008-01-17 05:57:22 +00008494rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008495 conftest$ac_exeext
8496 if test "${ac_cv_search_opendir+set}" = set; then
8497 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008498fi
John Criswell7a73b802003-06-30 21:59:07 +00008499done
Reid Spencera773bd52006-08-04 18:18:08 +00008500if test "${ac_cv_search_opendir+set}" = set; then
8501 :
8502else
8503 ac_cv_search_opendir=no
8504fi
8505rm conftest.$ac_ext
8506LIBS=$ac_func_search_save_LIBS
8507fi
8508{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8509echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8510ac_res=$ac_cv_search_opendir
8511if test "$ac_res" != no; then
8512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008513
Reid Spencera773bd52006-08-04 18:18:08 +00008514fi
8515
8516else
8517 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8518echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8519if test "${ac_cv_search_opendir+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8521else
8522 ac_func_search_save_LIBS=$LIBS
8523cat >conftest.$ac_ext <<_ACEOF
8524/* confdefs.h. */
8525_ACEOF
8526cat confdefs.h >>conftest.$ac_ext
8527cat >>conftest.$ac_ext <<_ACEOF
8528/* end confdefs.h. */
8529
8530/* Override any GCC internal prototype to avoid an error.
8531 Use char because int might match the return type of a GCC
8532 builtin and then its argument prototype would still apply. */
8533#ifdef __cplusplus
8534extern "C"
8535#endif
8536char opendir ();
8537int
8538main ()
8539{
8540return opendir ();
8541 ;
8542 return 0;
8543}
8544_ACEOF
8545for ac_lib in '' x; do
8546 if test -z "$ac_lib"; then
8547 ac_res="none required"
8548 else
8549 ac_res=-l$ac_lib
8550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8551 fi
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553if { (ac_try="$ac_link"
8554case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8557esac
8558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_link") 2>conftest.er1
8560 ac_status=$?
8561 grep -v '^ *+' conftest.er1 >conftest.err
8562 rm -f conftest.er1
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008565 (exit $ac_status); } &&
8566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8567 { (case "(($ac_try" in
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8570esac
8571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_try") 2>&5
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; } &&
8576 { ac_try='test -s conftest$ac_exeext'
8577 { (case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580esac
8581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_try") 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008586 ac_cv_search_opendir=$ac_res
8587else
8588 echo "$as_me: failed program was:" >&5
8589sed 's/^/| /' conftest.$ac_ext >&5
8590
8591
8592fi
8593
Tanya Lattnercf067672008-01-17 05:57:22 +00008594rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008595 conftest$ac_exeext
8596 if test "${ac_cv_search_opendir+set}" = set; then
8597 break
8598fi
8599done
8600if test "${ac_cv_search_opendir+set}" = set; then
8601 :
8602else
8603 ac_cv_search_opendir=no
8604fi
8605rm conftest.$ac_ext
8606LIBS=$ac_func_search_save_LIBS
8607fi
8608{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8609echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8610ac_res=$ac_cv_search_opendir
8611if test "$ac_res" != no; then
8612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8613
8614fi
8615
8616fi
John Criswell7a73b802003-06-30 21:59:07 +00008617
8618
8619for ac_header in dlfcn.h
8620do
8621as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008626 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008627fi
Reid Spencera773bd52006-08-04 18:18:08 +00008628ac_res=`eval echo '${'$as_ac_Header'}'`
8629 { echo "$as_me:$LINENO: result: $ac_res" >&5
8630echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008631else
Brian Gaeke0a621332004-09-08 20:38:05 +00008632 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008633{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8634echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008635cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008641$ac_includes_default
8642#include <$ac_header>
8643_ACEOF
8644rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008645if { (ac_try="$ac_compile"
8646case "(($ac_try" in
8647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648 *) ac_try_echo=$ac_try;;
8649esac
8650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8659 { (case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662esac
8663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_try") 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672esac
8673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_try") 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008678 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008679else
8680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008681sed 's/^/| /' conftest.$ac_ext >&5
8682
Reid Spencera773bd52006-08-04 18:18:08 +00008683 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008684fi
Reid Spencera773bd52006-08-04 18:18:08 +00008685
8686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8688echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008689
8690# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008691{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008693cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008694/* confdefs.h. */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h. */
8699#include <$ac_header>
8700_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008701if { (ac_try="$ac_cpp conftest.$ac_ext"
8702case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705esac
8706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008713 (exit $ac_status); } >/dev/null; then
8714 if test -s conftest.err; then
8715 ac_cpp_err=$ac_c_preproc_warn_flag
8716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8717 else
8718 ac_cpp_err=
8719 fi
8720else
8721 ac_cpp_err=yes
8722fi
8723if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008724 ac_header_preproc=yes
8725else
8726 echo "$as_me: failed program was:" >&5
8727sed 's/^/| /' conftest.$ac_ext >&5
8728
8729 ac_header_preproc=no
8730fi
Reid Spencera773bd52006-08-04 18:18:08 +00008731
Brian Gaeke0a621332004-09-08 20:38:05 +00008732rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008733{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8734echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008735
8736# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8738 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8740echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8742echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8743 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008744 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008745 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8749echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8751echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8753echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8757echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008758 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008759## ----------------------------------- ##
8760## Report this to llvmbugs@cs.uiuc.edu ##
8761## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008762_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008763 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008764 ;;
8765esac
Reid Spencera773bd52006-08-04 18:18:08 +00008766{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008771 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008772fi
Reid Spencera773bd52006-08-04 18:18:08 +00008773ac_res=`eval echo '${'$as_ac_Header'}'`
8774 { echo "$as_me:$LINENO: result: $ac_res" >&5
8775echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008776
8777fi
John Criswell7a73b802003-06-30 21:59:07 +00008778if test `eval echo '${'$as_ac_Header'}'` = yes; then
8779 cat >>confdefs.h <<_ACEOF
8780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8781_ACEOF
8782
8783fi
8784
8785done
8786
Reid Spencera773bd52006-08-04 18:18:08 +00008787# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008788if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008789 enableval=$enable_ltdl_install;
8790fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008791
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008792
Duncan Sands1eff7042007-12-10 17:43:13 +00008793
8794
8795if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008796 INSTALL_LTDL_TRUE=
8797 INSTALL_LTDL_FALSE='#'
8798else
8799 INSTALL_LTDL_TRUE='#'
8800 INSTALL_LTDL_FALSE=
8801fi
8802
Duncan Sands1eff7042007-12-10 17:43:13 +00008803
8804
8805if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008806 CONVENIENCE_LTDL_TRUE=
8807 CONVENIENCE_LTDL_FALSE='#'
8808else
8809 CONVENIENCE_LTDL_TRUE='#'
8810 CONVENIENCE_LTDL_FALSE=
8811fi
8812
8813
Reid Spencera773bd52006-08-04 18:18:08 +00008814{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8815echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008816library_names_spec=
8817libname_spec='lib$name'
8818soname_spec=
8819shrext_cmds=".so"
8820postinstall_cmds=
8821postuninstall_cmds=
8822finish_cmds=
8823finish_eval=
8824shlibpath_var=
8825shlibpath_overrides_runpath=unknown
8826version_type=none
8827dynamic_linker="$host_os ld.so"
8828sys_lib_dlsearch_path_spec="/lib /usr/lib"
8829if test "$GCC" = yes; then
8830 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8831 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8832 # if the path contains ";" then we assume it to be the separator
8833 # otherwise default to the standard path separator (i.e. ":") - it is
8834 # assumed that no part of a normal pathname contains ";" but that should
8835 # okay in the real world where ";" in dirpaths is itself problematic.
8836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8837 else
8838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8839 fi
8840else
8841 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8842fi
8843need_lib_prefix=unknown
8844hardcode_into_libs=no
8845
8846# when you set need_version to no, make sure it does not cause -set_version
8847# flags to be left without arguments
8848need_version=unknown
8849
8850case $host_os in
8851aix3*)
8852 version_type=linux
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8854 shlibpath_var=LIBPATH
8855
8856 # AIX 3 has no versioning support, so we append a major version to the name.
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 ;;
8859
8860aix4* | aix5*)
8861 version_type=linux
8862 need_lib_prefix=no
8863 need_version=no
8864 hardcode_into_libs=yes
8865 if test "$host_cpu" = ia64; then
8866 # AIX 5 supports IA64
8867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8868 shlibpath_var=LD_LIBRARY_PATH
8869 else
8870 # With GCC up to 2.95.x, collect2 would create an import file
8871 # for dependence libraries. The import file would start with
8872 # the line `#! .'. This would cause the generated library to
8873 # depend on `.', always an invalid library. This was fixed in
8874 # development snapshots of GCC prior to 3.0.
8875 case $host_os in
8876 aix4 | aix4.[01] | aix4.[01].*)
8877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8878 echo ' yes '
8879 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8880 :
8881 else
8882 can_build_shared=no
8883 fi
8884 ;;
8885 esac
8886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8887 # soname into executable. Probably we can add versioning support to
8888 # collect2, so additional links can be useful in future.
8889 if test "$aix_use_runtimelinking" = yes; then
8890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8891 # instead of lib<name>.a to let people know that these are not
8892 # typical AIX shared libraries.
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894 else
8895 # We preserve .a as extension for shared libraries through AIX4.2
8896 # and later when we are not doing run time linking.
8897 library_names_spec='${libname}${release}.a $libname.a'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 fi
8900 shlibpath_var=LIBPATH
8901 fi
8902 ;;
8903
8904amigaos*)
8905 library_names_spec='$libname.ixlibrary $libname.a'
8906 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8907 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'
8908 ;;
8909
8910beos*)
8911 library_names_spec='${libname}${shared_ext}'
8912 dynamic_linker="$host_os ld.so"
8913 shlibpath_var=LIBRARY_PATH
8914 ;;
8915
8916bsdi[45]*)
8917 version_type=linux
8918 need_version=no
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8925 # the default ld.so.conf also contains /usr/contrib/lib and
8926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8927 # libtool to hard-code these into programs
8928 ;;
8929
8930cygwin* | mingw* | pw32*)
8931 version_type=windows
8932 shrext_cmds=".dll"
8933 need_version=no
8934 need_lib_prefix=no
8935
8936 case $GCC,$host_os in
8937 yes,cygwin* | yes,mingw* | yes,pw32*)
8938 library_names_spec='$libname.dll.a'
8939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8940 postinstall_cmds='base_file=`basename \${file}`~
8941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8942 dldir=$destdir/`dirname \$dlpath`~
8943 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008944 $install_prog $dir/$dlname \$dldir/$dlname~
8945 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8947 dlpath=$dir/\$dldll~
8948 $rm \$dlpath'
8949 shlibpath_overrides_runpath=yes
8950
8951 case $host_os in
8952 cygwin*)
8953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8954 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8955 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8956 ;;
8957 mingw*)
8958 # MinGW DLLs use traditional 'lib' prefix
8959 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8961 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8962 # It is most probably a Windows format PATH printed by
8963 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8964 # path with ; separators, and with drive letters. We can handle the
8965 # drive letters (cygwin fileutils understands them), so leave them,
8966 # especially as we might pass files found there to a mingw objdump,
8967 # which wouldn't understand a cygwinified path. Ahh.
8968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8969 else
8970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8971 fi
8972 ;;
8973 pw32*)
8974 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008975 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 +00008976 ;;
8977 esac
8978 ;;
8979
8980 *)
8981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8982 ;;
8983 esac
8984 dynamic_linker='Win32 ld.exe'
8985 # FIXME: first we should search . and the directory the executable is in
8986 shlibpath_var=PATH
8987 ;;
8988
8989darwin* | rhapsody*)
8990 dynamic_linker="$host_os dyld"
8991 version_type=darwin
8992 need_lib_prefix=no
8993 need_version=no
8994 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8995 soname_spec='${libname}${release}${major}$shared_ext'
8996 shlibpath_overrides_runpath=yes
8997 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008998 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008999 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9000 if test "$GCC" = yes; then
9001 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"`
9002 else
9003 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9004 fi
9005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9006 ;;
9007
9008dgux*)
9009 version_type=linux
9010 need_lib_prefix=no
9011 need_version=no
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 ;;
9016
9017freebsd1*)
9018 dynamic_linker=no
9019 ;;
9020
9021kfreebsd*-gnu)
9022 version_type=linux
9023 need_lib_prefix=no
9024 need_version=no
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=no
9029 hardcode_into_libs=yes
9030 dynamic_linker='GNU ld.so'
9031 ;;
9032
Reid Spencera773bd52006-08-04 18:18:08 +00009033freebsd* | dragonfly*)
9034 # DragonFly does not have aout. When/if they implement a new
9035 # versioning mechanism, adjust this.
9036 if test -x /usr/bin/objformat; then
9037 objformat=`/usr/bin/objformat`
9038 else
9039 case $host_os in
9040 freebsd[123]*) objformat=aout ;;
9041 *) objformat=elf ;;
9042 esac
9043 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009044 version_type=freebsd-$objformat
9045 case $version_type in
9046 freebsd-elf*)
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9048 need_version=no
9049 need_lib_prefix=no
9050 ;;
9051 freebsd-*)
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9053 need_version=yes
9054 ;;
9055 esac
9056 shlibpath_var=LD_LIBRARY_PATH
9057 case $host_os in
9058 freebsd2*)
9059 shlibpath_overrides_runpath=yes
9060 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009061 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9064 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009067 shlibpath_overrides_runpath=no
9068 hardcode_into_libs=yes
9069 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009070 freebsd*) # from 4.6 on
9071 shlibpath_overrides_runpath=yes
9072 hardcode_into_libs=yes
9073 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009074 esac
9075 ;;
9076
9077gnu*)
9078 version_type=linux
9079 need_lib_prefix=no
9080 need_version=no
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 hardcode_into_libs=yes
9085 ;;
9086
9087hpux9* | hpux10* | hpux11*)
9088 # Give a soname corresponding to the major version so that dld.sl refuses to
9089 # link against other versions.
9090 version_type=sunos
9091 need_lib_prefix=no
9092 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009093 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009094 ia64*)
9095 shrext_cmds='.so'
9096 hardcode_into_libs=yes
9097 dynamic_linker="$host_os dld.so"
9098 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 if test "X$HPUX_IA64_MODE" = X32; then
9103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9104 else
9105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9106 fi
9107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9108 ;;
9109 hppa*64*)
9110 shrext_cmds='.sl'
9111 hardcode_into_libs=yes
9112 dynamic_linker="$host_os dld.sl"
9113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9119 ;;
9120 *)
9121 shrext_cmds='.sl'
9122 dynamic_linker="$host_os dld.sl"
9123 shlibpath_var=SHLIB_PATH
9124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 ;;
9128 esac
9129 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9130 postinstall_cmds='chmod 555 $lib'
9131 ;;
9132
Reid Spencera773bd52006-08-04 18:18:08 +00009133interix3*)
9134 version_type=linux
9135 need_lib_prefix=no
9136 need_version=no
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 shlibpath_overrides_runpath=no
9142 hardcode_into_libs=yes
9143 ;;
9144
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009145irix5* | irix6* | nonstopux*)
9146 case $host_os in
9147 nonstopux*) version_type=nonstopux ;;
9148 *)
9149 if test "$lt_cv_prog_gnu_ld" = yes; then
9150 version_type=linux
9151 else
9152 version_type=irix
9153 fi ;;
9154 esac
9155 need_lib_prefix=no
9156 need_version=no
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9159 case $host_os in
9160 irix5* | nonstopux*)
9161 libsuff= shlibsuff=
9162 ;;
9163 *)
9164 case $LD in # libtool.m4 will add one of these switches to LD
9165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9166 libsuff= shlibsuff= libmagic=32-bit;;
9167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9168 libsuff=32 shlibsuff=N32 libmagic=N32;;
9169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9171 *) libsuff= shlibsuff= libmagic=never-match;;
9172 esac
9173 ;;
9174 esac
9175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9176 shlibpath_overrides_runpath=no
9177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9179 hardcode_into_libs=yes
9180 ;;
9181
9182# No shared lib support for Linux oldld, aout, or coff.
9183linux*oldld* | linux*aout* | linux*coff*)
9184 dynamic_linker=no
9185 ;;
9186
9187# This must be Linux ELF.
9188linux*)
9189 version_type=linux
9190 need_lib_prefix=no
9191 need_version=no
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 shlibpath_overrides_runpath=no
9197 # This implies no fast_install, which is unacceptable.
9198 # Some rework will be needed to allow for fast_install
9199 # before this can be enabled.
9200 hardcode_into_libs=yes
9201
9202 # Append ld.so.conf contents to the search path
9203 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009204 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 +00009205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9206 fi
9207
9208 # We used to test for /lib/ld.so.1 and disable shared libraries on
9209 # powerpc, because MkLinux only supported shared libraries with the
9210 # GNU dynamic linker. Since this was broken with cross compilers,
9211 # most powerpc-linux boxes support dynamic linking these days and
9212 # people can always --disable-shared, the test was removed, and we
9213 # assume the GNU/Linux dynamic linker is in use.
9214 dynamic_linker='GNU/Linux ld.so'
9215 ;;
9216
9217knetbsd*-gnu)
9218 version_type=linux
9219 need_lib_prefix=no
9220 need_version=no
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 shlibpath_overrides_runpath=no
9225 hardcode_into_libs=yes
9226 dynamic_linker='GNU ld.so'
9227 ;;
9228
9229netbsd*)
9230 version_type=sunos
9231 need_lib_prefix=no
9232 need_version=no
9233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9236 dynamic_linker='NetBSD (a.out) ld.so'
9237 else
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9239 soname_spec='${libname}${release}${shared_ext}$major'
9240 dynamic_linker='NetBSD ld.elf_so'
9241 fi
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=yes
9244 hardcode_into_libs=yes
9245 ;;
9246
9247newsos6)
9248 version_type=linux
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=yes
9252 ;;
9253
9254nto-qnx*)
9255 version_type=linux
9256 need_lib_prefix=no
9257 need_version=no
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 shlibpath_overrides_runpath=yes
9262 ;;
9263
9264openbsd*)
9265 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009266 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009267 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009268 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9269 case $host_os in
9270 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9271 *) need_version=no ;;
9272 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9277 case $host_os in
9278 openbsd2.[89] | openbsd2.[89].*)
9279 shlibpath_overrides_runpath=no
9280 ;;
9281 *)
9282 shlibpath_overrides_runpath=yes
9283 ;;
9284 esac
9285 else
9286 shlibpath_overrides_runpath=yes
9287 fi
9288 ;;
9289
9290os2*)
9291 libname_spec='$name'
9292 shrext_cmds=".dll"
9293 need_lib_prefix=no
9294 library_names_spec='$libname${shared_ext} $libname.a'
9295 dynamic_linker='OS/2 ld.exe'
9296 shlibpath_var=LIBPATH
9297 ;;
9298
9299osf3* | osf4* | osf5*)
9300 version_type=osf
9301 need_lib_prefix=no
9302 need_version=no
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9307 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9308 ;;
9309
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310solaris*)
9311 version_type=linux
9312 need_lib_prefix=no
9313 need_version=no
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 shlibpath_overrides_runpath=yes
9318 hardcode_into_libs=yes
9319 # ldd complains unless libraries are executable
9320 postinstall_cmds='chmod +x $lib'
9321 ;;
9322
9323sunos4*)
9324 version_type=sunos
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=yes
9329 if test "$with_gnu_ld" = yes; then
9330 need_lib_prefix=no
9331 fi
9332 need_version=yes
9333 ;;
9334
Reid Spencera773bd52006-08-04 18:18:08 +00009335sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336 version_type=linux
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 case $host_vendor in
9341 sni)
9342 shlibpath_overrides_runpath=no
9343 need_lib_prefix=no
9344 export_dynamic_flag_spec='${wl}-Blargedynsym'
9345 runpath_var=LD_RUN_PATH
9346 ;;
9347 siemens)
9348 need_lib_prefix=no
9349 ;;
9350 motorola)
9351 need_lib_prefix=no
9352 need_version=no
9353 shlibpath_overrides_runpath=no
9354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9355 ;;
9356 esac
9357 ;;
9358
9359sysv4*MP*)
9360 if test -d /usr/nec ;then
9361 version_type=linux
9362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9363 soname_spec='$libname${shared_ext}.$major'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 fi
9366 ;;
9367
Reid Spencera773bd52006-08-04 18:18:08 +00009368sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9369 version_type=freebsd-elf
9370 need_lib_prefix=no
9371 need_version=no
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 hardcode_into_libs=yes
9376 if test "$with_gnu_ld" = yes; then
9377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9378 shlibpath_overrides_runpath=no
9379 else
9380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9381 shlibpath_overrides_runpath=yes
9382 case $host_os in
9383 sco3.2v5*)
9384 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9385 ;;
9386 esac
9387 fi
9388 sys_lib_dlsearch_path_spec='/usr/lib'
9389 ;;
9390
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009391uts4*)
9392 version_type=linux
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 shlibpath_var=LD_LIBRARY_PATH
9396 ;;
9397
9398*)
9399 dynamic_linker=no
9400 ;;
9401esac
Reid Spencera773bd52006-08-04 18:18:08 +00009402{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9403echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009404test "$dynamic_linker" = no && can_build_shared=no
9405
Reid Spencera773bd52006-08-04 18:18:08 +00009406variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9407if test "$GCC" = yes; then
9408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9409fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009410
Reid Spencera773bd52006-08-04 18:18:08 +00009411
9412{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9413echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009414if test "${libltdl_cv_shlibext+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416else
9417
9418module=yes
9419eval libltdl_cv_shlibext=$shrext_cmds
9420
9421fi
Reid Spencera773bd52006-08-04 18:18:08 +00009422{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9423echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009424if test -n "$libltdl_cv_shlibext"; then
9425
9426cat >>confdefs.h <<_ACEOF
9427#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9428_ACEOF
9429
9430fi
9431
9432
Reid Spencera773bd52006-08-04 18:18:08 +00009433{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9434echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009435if test "${libltdl_cv_shlibpath_var+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9437else
9438 libltdl_cv_shlibpath_var="$shlibpath_var"
9439fi
Reid Spencera773bd52006-08-04 18:18:08 +00009440{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9441echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442if test -n "$libltdl_cv_shlibpath_var"; then
9443
9444cat >>confdefs.h <<_ACEOF
9445#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9446_ACEOF
9447
9448fi
9449
9450
Reid Spencera773bd52006-08-04 18:18:08 +00009451{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9452echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009453if test "${libltdl_cv_sys_search_path+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9457fi
Reid Spencera773bd52006-08-04 18:18:08 +00009458{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9459echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009460if test -n "$libltdl_cv_sys_search_path"; then
9461 sys_search_path=
9462 for dir in $libltdl_cv_sys_search_path; do
9463 if test -z "$sys_search_path"; then
9464 sys_search_path="$dir"
9465 else
9466 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9467 fi
9468 done
9469
9470cat >>confdefs.h <<_ACEOF
9471#define LTDL_SYSSEARCHPATH "$sys_search_path"
9472_ACEOF
9473
9474fi
9475
Reid Spencera773bd52006-08-04 18:18:08 +00009476{ echo "$as_me:$LINENO: checking for objdir" >&5
9477echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009478if test "${libltdl_cv_objdir+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480else
9481 libltdl_cv_objdir="$objdir"
9482 if test -n "$objdir"; then
9483 :
9484 else
9485 rm -f .libs 2>/dev/null
9486 mkdir .libs 2>/dev/null
9487 if test -d .libs; then
9488 libltdl_cv_objdir=.libs
9489 else
9490 # MS-DOS does not allow filenames that begin with a dot.
9491 libltdl_cv_objdir=_libs
9492 fi
9493 rmdir .libs 2>/dev/null
9494 fi
9495
9496fi
Reid Spencera773bd52006-08-04 18:18:08 +00009497{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9498echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499
9500cat >>confdefs.h <<_ACEOF
9501#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9502_ACEOF
9503
9504
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009505
9506
9507
9508
9509# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009510{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9511echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515
9516# These are sane defaults that work on at least a few old systems.
9517# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9518
9519# Character class describing NM global symbol codes.
9520symcode='[BCDEGRST]'
9521
9522# Regexp to match symbols that can be accessed directly from C.
9523sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9524
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525# Transform an extracted symbol line into a proper C declaration
9526lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9527
9528# Transform an extracted symbol line into symbol name and symbol address
9529lt_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'"
9530
9531# Define system-specific variables.
9532case $host_os in
9533aix*)
9534 symcode='[BCDT]'
9535 ;;
9536cygwin* | mingw* | pw32*)
9537 symcode='[ABCDGISTW]'
9538 ;;
9539hpux*) # Its linker distinguishes data from code symbols
9540 if test "$host_cpu" = ia64; then
9541 symcode='[ABCDEGRST]'
9542 fi
9543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9544 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'"
9545 ;;
9546linux*)
9547 if test "$host_cpu" = ia64; then
9548 symcode='[ABCDGIRSTW]'
9549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9550 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'"
9551 fi
9552 ;;
9553irix* | nonstopux*)
9554 symcode='[BCDEGRST]'
9555 ;;
9556osf*)
9557 symcode='[BCDEGQRST]'
9558 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009559solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009560 symcode='[BDRT]'
9561 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009562sco3.2v5*)
9563 symcode='[DT]'
9564 ;;
9565sysv4.2uw2*)
9566 symcode='[DT]'
9567 ;;
9568sysv5* | sco5v6* | unixware* | OpenUNIX*)
9569 symcode='[ABDT]'
9570 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009571sysv4)
9572 symcode='[DFNSTU]'
9573 ;;
9574esac
9575
9576# Handle CRLF in mingw tool chain
9577opt_cr=
9578case $build_os in
9579mingw*)
9580 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9581 ;;
9582esac
9583
9584# If we're using GNU nm, then use its standard symbol codes.
9585case `$NM -V 2>&1` in
9586*GNU* | *'with BFD'*)
9587 symcode='[ABCDGIRSTW]' ;;
9588esac
9589
9590# Try without a prefix undercore, then with it.
9591for ac_symprfx in "" "_"; do
9592
Reid Spencera773bd52006-08-04 18:18:08 +00009593 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9594 symxfrm="\\1 $ac_symprfx\\2 \\2"
9595
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009596 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009597 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 +00009598
9599 # Check to see that the pipe works correctly.
9600 pipe_works=no
9601
9602 rm -f conftest*
9603 cat > conftest.$ac_ext <<EOF
9604#ifdef __cplusplus
9605extern "C" {
9606#endif
9607char nm_test_var;
9608void nm_test_func(){}
9609#ifdef __cplusplus
9610}
9611#endif
9612int main(){nm_test_var='a';nm_test_func();return(0);}
9613EOF
9614
9615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9616 (eval $ac_compile) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; then
9620 # Now try to grab the symbols.
9621 nlist=conftest.nm
9622 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9623 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && test -s "$nlist"; then
9627 # Try sorting and uniquifying the output.
9628 if sort "$nlist" | uniq > "$nlist"T; then
9629 mv -f "$nlist"T "$nlist"
9630 else
9631 rm -f "$nlist"T
9632 fi
9633
9634 # Make sure that we snagged all the symbols we need.
9635 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9636 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9637 cat <<EOF > conftest.$ac_ext
9638#ifdef __cplusplus
9639extern "C" {
9640#endif
9641
9642EOF
9643 # Now generate the symbol file.
9644 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9645
9646 cat <<EOF >> conftest.$ac_ext
9647#if defined (__STDC__) && __STDC__
9648# define lt_ptr_t void *
9649#else
9650# define lt_ptr_t char *
9651# define const
9652#endif
9653
9654/* The mapping between symbol names and symbols. */
9655const struct {
9656 const char *name;
9657 lt_ptr_t address;
9658}
9659lt_preloaded_symbols[] =
9660{
9661EOF
9662 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9663 cat <<\EOF >> conftest.$ac_ext
9664 {0, (lt_ptr_t) 0}
9665};
9666
9667#ifdef __cplusplus
9668}
9669#endif
9670EOF
9671 # Now try linking the two files.
9672 mv conftest.$ac_objext conftstm.$ac_objext
9673 lt_save_LIBS="$LIBS"
9674 lt_save_CFLAGS="$CFLAGS"
9675 LIBS="conftstm.$ac_objext"
9676 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9682 pipe_works=yes
9683 fi
9684 LIBS="$lt_save_LIBS"
9685 CFLAGS="$lt_save_CFLAGS"
9686 else
9687 echo "cannot find nm_test_func in $nlist" >&5
9688 fi
9689 else
9690 echo "cannot find nm_test_var in $nlist" >&5
9691 fi
9692 else
9693 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9694 fi
9695 else
9696 echo "$progname: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9698 fi
9699 rm -f conftest* conftst*
9700
9701 # Do not use the global_symbol_pipe unless it works.
9702 if test "$pipe_works" = yes; then
9703 break
9704 else
9705 lt_cv_sys_global_symbol_pipe=
9706 fi
9707done
9708
9709fi
9710
9711if test -z "$lt_cv_sys_global_symbol_pipe"; then
9712 lt_cv_sys_global_symbol_to_cdecl=
9713fi
9714if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009715 { echo "$as_me:$LINENO: result: failed" >&5
9716echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009717else
Reid Spencera773bd52006-08-04 18:18:08 +00009718 { echo "$as_me:$LINENO: result: ok" >&5
9719echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009720fi
9721
9722
Reid Spencera773bd52006-08-04 18:18:08 +00009723{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9724echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
9727else
9728 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9729 libltdl_cv_preloaded_symbols=yes
9730 else
9731 libltdl_cv_preloaded_symbols=no
9732 fi
9733
9734fi
Reid Spencera773bd52006-08-04 18:18:08 +00009735{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9736echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009737if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9738
9739cat >>confdefs.h <<\_ACEOF
9740#define HAVE_PRELOADED_SYMBOLS 1
9741_ACEOF
9742
9743fi
9744
9745LIBADD_DL=
9746
9747ac_ext=c
9748ac_cpp='$CPP $CPPFLAGS'
9749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9751ac_compiler_gnu=$ac_cv_c_compiler_gnu
9752
9753
Reid Spencera773bd52006-08-04 18:18:08 +00009754{ echo "$as_me:$LINENO: checking for shl_load" >&5
9755echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009756if test "${ac_cv_func_shl_load+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9758else
9759 cat >conftest.$ac_ext <<_ACEOF
9760/* confdefs.h. */
9761_ACEOF
9762cat confdefs.h >>conftest.$ac_ext
9763cat >>conftest.$ac_ext <<_ACEOF
9764/* end confdefs.h. */
9765/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9767#define shl_load innocuous_shl_load
9768
9769/* System header to define __stub macros and hopefully few prototypes,
9770 which can conflict with char shl_load (); below.
9771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9772 <limits.h> exists even on freestanding compilers. */
9773
9774#ifdef __STDC__
9775# include <limits.h>
9776#else
9777# include <assert.h>
9778#endif
9779
9780#undef shl_load
9781
Reid Spencera773bd52006-08-04 18:18:08 +00009782/* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785#ifdef __cplusplus
9786extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009787#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788char shl_load ();
9789/* The GNU C library defines this for functions which it implements
9790 to always fail with ENOSYS. Some functions are actually named
9791 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009792#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794#endif
9795
9796int
9797main ()
9798{
Reid Spencera773bd52006-08-04 18:18:08 +00009799return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009800 ;
9801 return 0;
9802}
9803_ACEOF
9804rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009805if { (ac_try="$ac_link"
9806case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809esac
9810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812 ac_status=$?
9813 grep -v '^ *+' conftest.er1 >conftest.err
9814 rm -f conftest.er1
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009817 (exit $ac_status); } &&
9818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822esac
9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest$ac_exeext'
9829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832esac
9833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838 ac_cv_func_shl_load=yes
9839else
9840 echo "$as_me: failed program was:" >&5
9841sed 's/^/| /' conftest.$ac_ext >&5
9842
Reid Spencera773bd52006-08-04 18:18:08 +00009843 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844fi
Reid Spencera773bd52006-08-04 18:18:08 +00009845
Tanya Lattnercf067672008-01-17 05:57:22 +00009846rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847 conftest$ac_exeext conftest.$ac_ext
9848fi
Reid Spencera773bd52006-08-04 18:18:08 +00009849{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9850echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851if test $ac_cv_func_shl_load = yes; then
9852
9853cat >>confdefs.h <<\_ACEOF
9854#define HAVE_SHL_LOAD 1
9855_ACEOF
9856
9857else
Reid Spencera773bd52006-08-04 18:18:08 +00009858 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9859echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 ac_check_lib_save_LIBS=$LIBS
9864LIBS="-ldld $LIBS"
9865cat >conftest.$ac_ext <<_ACEOF
9866/* confdefs.h. */
9867_ACEOF
9868cat confdefs.h >>conftest.$ac_ext
9869cat >>conftest.$ac_ext <<_ACEOF
9870/* end confdefs.h. */
9871
Reid Spencera773bd52006-08-04 18:18:08 +00009872/* Override any GCC internal prototype to avoid an error.
9873 Use char because int might match the return type of a GCC
9874 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875#ifdef __cplusplus
9876extern "C"
9877#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878char shl_load ();
9879int
9880main ()
9881{
Reid Spencera773bd52006-08-04 18:18:08 +00009882return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009888if { (ac_try="$ac_link"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009900 (exit $ac_status); } &&
9901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9902 { (case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905esac
9906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_try") 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; } &&
9911 { ac_try='test -s conftest$ac_exeext'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915esac
9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921 ac_cv_lib_dld_shl_load=yes
9922else
9923 echo "$as_me: failed program was:" >&5
9924sed 's/^/| /' conftest.$ac_ext >&5
9925
Reid Spencera773bd52006-08-04 18:18:08 +00009926 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009927fi
Reid Spencera773bd52006-08-04 18:18:08 +00009928
Tanya Lattnercf067672008-01-17 05:57:22 +00009929rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930 conftest$ac_exeext conftest.$ac_ext
9931LIBS=$ac_check_lib_save_LIBS
9932fi
Reid Spencera773bd52006-08-04 18:18:08 +00009933{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9934echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935if test $ac_cv_lib_dld_shl_load = yes; then
9936
9937cat >>confdefs.h <<\_ACEOF
9938#define HAVE_SHL_LOAD 1
9939_ACEOF
9940
9941 LIBADD_DL="$LIBADD_DL -ldld"
9942else
Reid Spencera773bd52006-08-04 18:18:08 +00009943 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9944echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947else
9948 ac_check_lib_save_LIBS=$LIBS
9949LIBS="-ldl $LIBS"
9950cat >conftest.$ac_ext <<_ACEOF
9951/* confdefs.h. */
9952_ACEOF
9953cat confdefs.h >>conftest.$ac_ext
9954cat >>conftest.$ac_ext <<_ACEOF
9955/* end confdefs.h. */
9956
Reid Spencera773bd52006-08-04 18:18:08 +00009957/* Override any GCC internal prototype to avoid an error.
9958 Use char because int might match the return type of a GCC
9959 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009960#ifdef __cplusplus
9961extern "C"
9962#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963char dlopen ();
9964int
9965main ()
9966{
Reid Spencera773bd52006-08-04 18:18:08 +00009967return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009968 ;
9969 return 0;
9970}
9971_ACEOF
9972rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009973if { (ac_try="$ac_link"
9974case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977esac
9978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009985 (exit $ac_status); } &&
9986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9987 { (case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990esac
9991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_try") 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest$ac_exeext'
9997 { (case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000esac
10001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_try") 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006 ac_cv_lib_dl_dlopen=yes
10007else
10008 echo "$as_me: failed program was:" >&5
10009sed 's/^/| /' conftest.$ac_ext >&5
10010
Reid Spencera773bd52006-08-04 18:18:08 +000010011 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010012fi
Reid Spencera773bd52006-08-04 18:18:08 +000010013
Tanya Lattnercf067672008-01-17 05:57:22 +000010014rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010015 conftest$ac_exeext conftest.$ac_ext
10016LIBS=$ac_check_lib_save_LIBS
10017fi
Reid Spencera773bd52006-08-04 18:18:08 +000010018{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10019echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020if test $ac_cv_lib_dl_dlopen = yes; then
10021
10022cat >>confdefs.h <<\_ACEOF
10023#define HAVE_LIBDL 1
10024_ACEOF
10025
10026 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10027else
10028 cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034#if HAVE_DLFCN_H
10035# include <dlfcn.h>
10036#endif
10037
10038int
10039main ()
10040{
10041dlopen(0, 0);
10042 ;
10043 return 0;
10044}
10045_ACEOF
10046rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010047if { (ac_try="$ac_link"
10048case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10051esac
10052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010054 ac_status=$?
10055 grep -v '^ *+' conftest.er1 >conftest.err
10056 rm -f conftest.er1
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010059 (exit $ac_status); } &&
10060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064esac
10065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest$ac_exeext'
10071 { (case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10074esac
10075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_try") 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080
10081cat >>confdefs.h <<\_ACEOF
10082#define HAVE_LIBDL 1
10083_ACEOF
10084 libltdl_cv_func_dlopen="yes"
10085else
10086 echo "$as_me: failed program was:" >&5
10087sed 's/^/| /' conftest.$ac_ext >&5
10088
Reid Spencera773bd52006-08-04 18:18:08 +000010089 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10090echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010091if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10093else
10094 ac_check_lib_save_LIBS=$LIBS
10095LIBS="-lsvld $LIBS"
10096cat >conftest.$ac_ext <<_ACEOF
10097/* confdefs.h. */
10098_ACEOF
10099cat confdefs.h >>conftest.$ac_ext
10100cat >>conftest.$ac_ext <<_ACEOF
10101/* end confdefs.h. */
10102
Reid Spencera773bd52006-08-04 18:18:08 +000010103/* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010106#ifdef __cplusplus
10107extern "C"
10108#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010109char dlopen ();
10110int
10111main ()
10112{
Reid Spencera773bd52006-08-04 18:18:08 +000010113return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114 ;
10115 return 0;
10116}
10117_ACEOF
10118rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010119if { (ac_try="$ac_link"
10120case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123esac
10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10133 { (case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136esac
10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_try") 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest$ac_exeext'
10143 { (case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146esac
10147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_try") 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010152 ac_cv_lib_svld_dlopen=yes
10153else
10154 echo "$as_me: failed program was:" >&5
10155sed 's/^/| /' conftest.$ac_ext >&5
10156
Reid Spencera773bd52006-08-04 18:18:08 +000010157 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158fi
Reid Spencera773bd52006-08-04 18:18:08 +000010159
Tanya Lattnercf067672008-01-17 05:57:22 +000010160rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161 conftest$ac_exeext conftest.$ac_ext
10162LIBS=$ac_check_lib_save_LIBS
10163fi
Reid Spencera773bd52006-08-04 18:18:08 +000010164{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10165echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166if test $ac_cv_lib_svld_dlopen = yes; then
10167
10168cat >>confdefs.h <<\_ACEOF
10169#define HAVE_LIBDL 1
10170_ACEOF
10171
10172 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10173else
Reid Spencera773bd52006-08-04 18:18:08 +000010174 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10175echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178else
10179 ac_check_lib_save_LIBS=$LIBS
10180LIBS="-ldld $LIBS"
10181cat >conftest.$ac_ext <<_ACEOF
10182/* confdefs.h. */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h. */
10187
Reid Spencera773bd52006-08-04 18:18:08 +000010188/* Override any GCC internal prototype to avoid an error.
10189 Use char because int might match the return type of a GCC
10190 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191#ifdef __cplusplus
10192extern "C"
10193#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194char dld_link ();
10195int
10196main ()
10197{
Reid Spencera773bd52006-08-04 18:18:08 +000010198return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199 ;
10200 return 0;
10201}
10202_ACEOF
10203rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010204if { (ac_try="$ac_link"
10205case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208esac
10209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218 { (case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221esac
10222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_try") 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; } &&
10227 { ac_try='test -s conftest$ac_exeext'
10228 { (case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231esac
10232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_try") 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237 ac_cv_lib_dld_dld_link=yes
10238else
10239 echo "$as_me: failed program was:" >&5
10240sed 's/^/| /' conftest.$ac_ext >&5
10241
Reid Spencera773bd52006-08-04 18:18:08 +000010242 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243fi
Reid Spencera773bd52006-08-04 18:18:08 +000010244
Tanya Lattnercf067672008-01-17 05:57:22 +000010245rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010246 conftest$ac_exeext conftest.$ac_ext
10247LIBS=$ac_check_lib_save_LIBS
10248fi
Reid Spencera773bd52006-08-04 18:18:08 +000010249{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10250echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251if test $ac_cv_lib_dld_dld_link = yes; then
10252
10253cat >>confdefs.h <<\_ACEOF
10254#define HAVE_DLD 1
10255_ACEOF
10256
10257 LIBADD_DL="$LIBADD_DL -ldld"
10258else
Reid Spencera773bd52006-08-04 18:18:08 +000010259 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10260echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10263else
10264 cat >conftest.$ac_ext <<_ACEOF
10265/* confdefs.h. */
10266_ACEOF
10267cat confdefs.h >>conftest.$ac_ext
10268cat >>conftest.$ac_ext <<_ACEOF
10269/* end confdefs.h. */
10270/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10272#define _dyld_func_lookup innocuous__dyld_func_lookup
10273
10274/* System header to define __stub macros and hopefully few prototypes,
10275 which can conflict with char _dyld_func_lookup (); below.
10276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10277 <limits.h> exists even on freestanding compilers. */
10278
10279#ifdef __STDC__
10280# include <limits.h>
10281#else
10282# include <assert.h>
10283#endif
10284
10285#undef _dyld_func_lookup
10286
Reid Spencera773bd52006-08-04 18:18:08 +000010287/* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010290#ifdef __cplusplus
10291extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010292#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293char _dyld_func_lookup ();
10294/* The GNU C library defines this for functions which it implements
10295 to always fail with ENOSYS. Some functions are actually named
10296 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010297#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299#endif
10300
10301int
10302main ()
10303{
Reid Spencera773bd52006-08-04 18:18:08 +000010304return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305 ;
10306 return 0;
10307}
10308_ACEOF
10309rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010310if { (ac_try="$ac_link"
10311case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10314esac
10315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10324 { (case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327esac
10328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_try") 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try='test -s conftest$ac_exeext'
10334 { (case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337esac
10338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_try") 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010343 ac_cv_func__dyld_func_lookup=yes
10344else
10345 echo "$as_me: failed program was:" >&5
10346sed 's/^/| /' conftest.$ac_ext >&5
10347
Reid Spencera773bd52006-08-04 18:18:08 +000010348 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010349fi
Reid Spencera773bd52006-08-04 18:18:08 +000010350
Tanya Lattnercf067672008-01-17 05:57:22 +000010351rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010352 conftest$ac_exeext conftest.$ac_ext
10353fi
Reid Spencera773bd52006-08-04 18:18:08 +000010354{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10355echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010356if test $ac_cv_func__dyld_func_lookup = yes; then
10357
10358cat >>confdefs.h <<\_ACEOF
10359#define HAVE_DYLD 1
10360_ACEOF
10361
10362fi
10363
10364
10365fi
10366
10367
10368fi
10369
10370
10371fi
Reid Spencera773bd52006-08-04 18:18:08 +000010372
Tanya Lattnercf067672008-01-17 05:57:22 +000010373rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010374 conftest$ac_exeext conftest.$ac_ext
10375
10376fi
10377
10378
10379fi
10380
10381
10382fi
10383
10384
10385if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10386then
10387 lt_save_LIBS="$LIBS"
10388 LIBS="$LIBS $LIBADD_DL"
10389
10390for ac_func in dlerror
10391do
10392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010393{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10395if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397else
10398 cat >conftest.$ac_ext <<_ACEOF
10399/* confdefs.h. */
10400_ACEOF
10401cat confdefs.h >>conftest.$ac_ext
10402cat >>conftest.$ac_ext <<_ACEOF
10403/* end confdefs.h. */
10404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10406#define $ac_func innocuous_$ac_func
10407
10408/* System header to define __stub macros and hopefully few prototypes,
10409 which can conflict with char $ac_func (); below.
10410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10411 <limits.h> exists even on freestanding compilers. */
10412
10413#ifdef __STDC__
10414# include <limits.h>
10415#else
10416# include <assert.h>
10417#endif
10418
10419#undef $ac_func
10420
Reid Spencera773bd52006-08-04 18:18:08 +000010421/* Override any GCC internal prototype to avoid an error.
10422 Use char because int might match the return type of a GCC
10423 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424#ifdef __cplusplus
10425extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010427char $ac_func ();
10428/* The GNU C library defines this for functions which it implements
10429 to always fail with ENOSYS. Some functions are actually named
10430 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010431#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010432choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433#endif
10434
10435int
10436main ()
10437{
Reid Spencera773bd52006-08-04 18:18:08 +000010438return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439 ;
10440 return 0;
10441}
10442_ACEOF
10443rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010444if { (ac_try="$ac_link"
10445case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448esac
10449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451 ac_status=$?
10452 grep -v '^ *+' conftest.er1 >conftest.err
10453 rm -f conftest.er1
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010456 (exit $ac_status); } &&
10457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10458 { (case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10461esac
10462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463 (eval "$ac_try") 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; } &&
10467 { ac_try='test -s conftest$ac_exeext'
10468 { (case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471esac
10472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_try") 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010477 eval "$as_ac_var=yes"
10478else
10479 echo "$as_me: failed program was:" >&5
10480sed 's/^/| /' conftest.$ac_ext >&5
10481
Reid Spencera773bd52006-08-04 18:18:08 +000010482 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483fi
Reid Spencera773bd52006-08-04 18:18:08 +000010484
Tanya Lattnercf067672008-01-17 05:57:22 +000010485rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486 conftest$ac_exeext conftest.$ac_ext
10487fi
Reid Spencera773bd52006-08-04 18:18:08 +000010488ac_res=`eval echo '${'$as_ac_var'}'`
10489 { echo "$as_me:$LINENO: result: $ac_res" >&5
10490echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491if test `eval echo '${'$as_ac_var'}'` = yes; then
10492 cat >>confdefs.h <<_ACEOF
10493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10494_ACEOF
10495
10496fi
10497done
10498
10499 LIBS="$lt_save_LIBS"
10500fi
10501ac_ext=c
10502ac_cpp='$CPP $CPPFLAGS'
10503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10505ac_compiler_gnu=$ac_cv_c_compiler_gnu
10506
10507
10508
Reid Spencera773bd52006-08-04 18:18:08 +000010509{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10510echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010511if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513else
10514 ac_cv_sys_symbol_underscore=no
10515 cat > conftest.$ac_ext <<EOF
10516void nm_test_func(){}
10517int main(){nm_test_func;return 0;}
10518EOF
10519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10520 (eval $ac_compile) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; then
10524 # Now try to grab the symbols.
10525 ac_nlist=conftest.nm
10526 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10527 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && test -s "$ac_nlist"; then
10531 # See whether the symbols have a leading underscore.
10532 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10533 ac_cv_sys_symbol_underscore=yes
10534 else
10535 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10536 :
10537 else
10538 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10539 fi
10540 fi
10541 else
10542 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10543 fi
10544 else
10545 echo "configure: failed program was:" >&5
10546 cat conftest.c >&5
10547 fi
10548 rm -rf conftest*
10549
10550fi
Reid Spencera773bd52006-08-04 18:18:08 +000010551{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10552echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553
10554
10555if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10556 if test x"$libltdl_cv_func_dlopen" = xyes ||
10557 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010558 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10559echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010560if test "${libltdl_cv_need_uscore+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10562else
10563 libltdl_cv_need_uscore=unknown
10564 save_LIBS="$LIBS"
10565 LIBS="$LIBS $LIBADD_DL"
10566 if test "$cross_compiling" = yes; then :
10567 libltdl_cv_need_uscore=cross
10568else
10569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10570 lt_status=$lt_dlunknown
10571 cat > conftest.$ac_ext <<EOF
Bill Wendling41ef25b2008-03-05 09:28:02 +000010572#line 10572 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573#include "confdefs.h"
10574
10575#if HAVE_DLFCN_H
10576#include <dlfcn.h>
10577#endif
10578
10579#include <stdio.h>
10580
10581#ifdef RTLD_GLOBAL
10582# define LT_DLGLOBAL RTLD_GLOBAL
10583#else
10584# ifdef DL_GLOBAL
10585# define LT_DLGLOBAL DL_GLOBAL
10586# else
10587# define LT_DLGLOBAL 0
10588# endif
10589#endif
10590
10591/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10592 find out it does not work in some platform. */
10593#ifndef LT_DLLAZY_OR_NOW
10594# ifdef RTLD_LAZY
10595# define LT_DLLAZY_OR_NOW RTLD_LAZY
10596# else
10597# ifdef DL_LAZY
10598# define LT_DLLAZY_OR_NOW DL_LAZY
10599# else
10600# ifdef RTLD_NOW
10601# define LT_DLLAZY_OR_NOW RTLD_NOW
10602# else
10603# ifdef DL_NOW
10604# define LT_DLLAZY_OR_NOW DL_NOW
10605# else
10606# define LT_DLLAZY_OR_NOW 0
10607# endif
10608# endif
10609# endif
10610# endif
10611#endif
10612
10613#ifdef __cplusplus
10614extern "C" void exit (int);
10615#endif
10616
10617void fnord() { int i=42;}
10618int main ()
10619{
10620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10621 int status = $lt_dlunknown;
10622
10623 if (self)
10624 {
10625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10626 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10627 /* dlclose (self); */
10628 }
Reid Spencera773bd52006-08-04 18:18:08 +000010629 else
10630 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631
10632 exit (status);
10633}
10634EOF
10635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10636 (eval $ac_link) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010640 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641 lt_status=$?
10642 case x$lt_status in
10643 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10644 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010645 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646 esac
10647 else :
10648 # compilation failed
10649
10650 fi
10651fi
10652rm -fr conftest*
10653
10654 LIBS="$save_LIBS"
10655
10656fi
Reid Spencera773bd52006-08-04 18:18:08 +000010657{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10658echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659 fi
10660fi
10661
10662if test x"$libltdl_cv_need_uscore" = xyes; then
10663
10664cat >>confdefs.h <<\_ACEOF
10665#define NEED_USCORE 1
10666_ACEOF
10667
10668fi
10669
10670
Reid Spencera773bd52006-08-04 18:18:08 +000010671{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10672echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675else
10676 # PORTME does your system automatically load deplibs for dlopen?
10677 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10678 # For now, we just catch OSes we know something about -- in the
10679 # future, we'll try test this programmatically.
10680 libltdl_cv_sys_dlopen_deplibs=unknown
10681 case "$host_os" in
10682 aix3*|aix4.1.*|aix4.2.*)
10683 # Unknown whether this is true for these versions of AIX, but
10684 # we want this `case' here to explicitly catch those versions.
10685 libltdl_cv_sys_dlopen_deplibs=unknown
10686 ;;
10687 aix[45]*)
10688 libltdl_cv_sys_dlopen_deplibs=yes
10689 ;;
10690 darwin*)
10691 # Assuming the user has installed a libdl from somewhere, this is true
10692 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10693 libltdl_cv_sys_dlopen_deplibs=yes
10694 ;;
10695 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10696 # GNU and its variants, using gnu ld.so (Glibc)
10697 libltdl_cv_sys_dlopen_deplibs=yes
10698 ;;
10699 hpux10*|hpux11*)
10700 libltdl_cv_sys_dlopen_deplibs=yes
10701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010702 interix*)
10703 libltdl_cv_sys_dlopen_deplibs=yes
10704 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705 irix[12345]*|irix6.[01]*)
10706 # Catch all versions of IRIX before 6.2, and indicate that we don't
10707 # know how it worked for any of those versions.
10708 libltdl_cv_sys_dlopen_deplibs=unknown
10709 ;;
10710 irix*)
10711 # The case above catches anything before 6.2, and it's known that
10712 # at 6.2 and later dlopen does load deplibs.
10713 libltdl_cv_sys_dlopen_deplibs=yes
10714 ;;
10715 netbsd*)
10716 libltdl_cv_sys_dlopen_deplibs=yes
10717 ;;
10718 openbsd*)
10719 libltdl_cv_sys_dlopen_deplibs=yes
10720 ;;
10721 osf[1234]*)
10722 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10723 # it did *not* use an RPATH in a shared library to find objects the
10724 # library depends on, so we explictly say `no'.
10725 libltdl_cv_sys_dlopen_deplibs=no
10726 ;;
10727 osf5.0|osf5.0a|osf5.1)
10728 # dlopen *does* load deplibs and with the right loader patch applied
10729 # it even uses RPATH in a shared library to search for shared objects
10730 # that the library depends on, but there's no easy way to know if that
10731 # patch is installed. Since this is the case, all we can really
10732 # say is unknown -- it depends on the patch being installed. If
10733 # it is, this changes to `yes'. Without it, it would be `no'.
10734 libltdl_cv_sys_dlopen_deplibs=unknown
10735 ;;
10736 osf*)
10737 # the two cases above should catch all versions of osf <= 5.1. Read
10738 # the comments above for what we know about them.
10739 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10740 # is used to find them so we can finally say `yes'.
10741 libltdl_cv_sys_dlopen_deplibs=yes
10742 ;;
10743 solaris*)
10744 libltdl_cv_sys_dlopen_deplibs=yes
10745 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10747 libltdl_cv_sys_dlopen_deplibs=yes
10748 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749 esac
10750
10751fi
Reid Spencera773bd52006-08-04 18:18:08 +000010752{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10753echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10755
10756cat >>confdefs.h <<\_ACEOF
10757#define LTDL_DLOPEN_DEPLIBS 1
10758_ACEOF
10759
10760fi
10761
10762
10763for ac_header in argz.h
10764do
10765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771fi
Reid Spencera773bd52006-08-04 18:18:08 +000010772ac_res=`eval echo '${'$as_ac_Header'}'`
10773 { echo "$as_me:$LINENO: result: $ac_res" >&5
10774echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775else
10776 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010777{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010779cat >conftest.$ac_ext <<_ACEOF
10780/* confdefs.h. */
10781_ACEOF
10782cat confdefs.h >>conftest.$ac_ext
10783cat >>conftest.$ac_ext <<_ACEOF
10784/* end confdefs.h. */
10785$ac_includes_default
10786#include <$ac_header>
10787_ACEOF
10788rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010789if { (ac_try="$ac_compile"
10790case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793esac
10794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010801 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10803 { (case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10806esac
10807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_try") 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; } &&
10812 { ac_try='test -s conftest.$ac_objext'
10813 { (case "(($ac_try" in
10814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10815 *) ac_try_echo=$ac_try;;
10816esac
10817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10818 (eval "$ac_try") 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010822 ac_header_compiler=yes
10823else
10824 echo "$as_me: failed program was:" >&5
10825sed 's/^/| /' conftest.$ac_ext >&5
10826
Reid Spencera773bd52006-08-04 18:18:08 +000010827 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828fi
Reid Spencera773bd52006-08-04 18:18:08 +000010829
10830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10832echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833
10834# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010835{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837cat >conftest.$ac_ext <<_ACEOF
10838/* confdefs.h. */
10839_ACEOF
10840cat confdefs.h >>conftest.$ac_ext
10841cat >>conftest.$ac_ext <<_ACEOF
10842/* end confdefs.h. */
10843#include <$ac_header>
10844_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010845if { (ac_try="$ac_cpp conftest.$ac_ext"
10846case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849esac
10850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010857 (exit $ac_status); } >/dev/null; then
10858 if test -s conftest.err; then
10859 ac_cpp_err=$ac_c_preproc_warn_flag
10860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10861 else
10862 ac_cpp_err=
10863 fi
10864else
10865 ac_cpp_err=yes
10866fi
10867if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868 ac_header_preproc=yes
10869else
10870 echo "$as_me: failed program was:" >&5
10871sed 's/^/| /' conftest.$ac_ext >&5
10872
10873 ac_header_preproc=no
10874fi
Reid Spencera773bd52006-08-04 18:18:08 +000010875
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010877{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10878echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010879
10880# So? What about this header?
10881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10882 yes:no: )
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10887 ac_header_preproc=yes
10888 ;;
10889 no:yes:* )
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010902 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010903## ----------------------------------- ##
10904## Report this to llvmbugs@cs.uiuc.edu ##
10905## ----------------------------------- ##
10906_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010907 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908 ;;
10909esac
Reid Spencera773bd52006-08-04 18:18:08 +000010910{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914else
10915 eval "$as_ac_Header=\$ac_header_preproc"
10916fi
Reid Spencera773bd52006-08-04 18:18:08 +000010917ac_res=`eval echo '${'$as_ac_Header'}'`
10918 { echo "$as_me:$LINENO: result: $ac_res" >&5
10919echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010920
10921fi
10922if test `eval echo '${'$as_ac_Header'}'` = yes; then
10923 cat >>confdefs.h <<_ACEOF
10924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10925_ACEOF
10926
10927fi
10928
10929done
10930
10931
Reid Spencera773bd52006-08-04 18:18:08 +000010932{ echo "$as_me:$LINENO: checking for error_t" >&5
10933echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010934if test "${ac_cv_type_error_t+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937 cat >conftest.$ac_ext <<_ACEOF
10938/* confdefs.h. */
10939_ACEOF
10940cat confdefs.h >>conftest.$ac_ext
10941cat >>conftest.$ac_ext <<_ACEOF
10942/* end confdefs.h. */
10943#if HAVE_ARGZ_H
10944# include <argz.h>
10945#endif
10946
Reid Spencera773bd52006-08-04 18:18:08 +000010947typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010948int
10949main ()
10950{
Reid Spencera773bd52006-08-04 18:18:08 +000010951if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010953if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954 return 0;
10955 ;
10956 return 0;
10957}
10958_ACEOF
10959rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010960if { (ac_try="$ac_compile"
10961case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010972 (exit $ac_status); } &&
10973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10974 { (case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_try") 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest.$ac_objext'
10984 { (case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987esac
10988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_try") 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993 ac_cv_type_error_t=yes
10994else
10995 echo "$as_me: failed program was:" >&5
10996sed 's/^/| /' conftest.$ac_ext >&5
10997
Reid Spencera773bd52006-08-04 18:18:08 +000010998 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010999fi
Reid Spencera773bd52006-08-04 18:18:08 +000011000
11001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011002fi
Reid Spencera773bd52006-08-04 18:18:08 +000011003{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11004echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011005if test $ac_cv_type_error_t = yes; then
11006
11007cat >>confdefs.h <<_ACEOF
11008#define HAVE_ERROR_T 1
11009_ACEOF
11010
11011
11012else
11013
11014cat >>confdefs.h <<\_ACEOF
11015#define error_t int
11016_ACEOF
11017
11018fi
11019
11020
11021
11022
11023
11024
11025
11026for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11027do
11028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011029{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11031if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033else
11034 cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h. */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h. */
11040/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11042#define $ac_func innocuous_$ac_func
11043
11044/* System header to define __stub macros and hopefully few prototypes,
11045 which can conflict with char $ac_func (); below.
11046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11047 <limits.h> exists even on freestanding compilers. */
11048
11049#ifdef __STDC__
11050# include <limits.h>
11051#else
11052# include <assert.h>
11053#endif
11054
11055#undef $ac_func
11056
Reid Spencera773bd52006-08-04 18:18:08 +000011057/* Override any GCC internal prototype to avoid an error.
11058 Use char because int might match the return type of a GCC
11059 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060#ifdef __cplusplus
11061extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011062#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063char $ac_func ();
11064/* The GNU C library defines this for functions which it implements
11065 to always fail with ENOSYS. Some functions are actually named
11066 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011067#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069#endif
11070
11071int
11072main ()
11073{
Reid Spencera773bd52006-08-04 18:18:08 +000011074return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011075 ;
11076 return 0;
11077}
11078_ACEOF
11079rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011080if { (ac_try="$ac_link"
11081case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084esac
11085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087 ac_status=$?
11088 grep -v '^ *+' conftest.er1 >conftest.err
11089 rm -f conftest.er1
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011092 (exit $ac_status); } &&
11093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11094 { (case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097esac
11098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_try") 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; } &&
11103 { ac_try='test -s conftest$ac_exeext'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011113 eval "$as_ac_var=yes"
11114else
11115 echo "$as_me: failed program was:" >&5
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
Reid Spencera773bd52006-08-04 18:18:08 +000011118 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011119fi
Reid Spencera773bd52006-08-04 18:18:08 +000011120
Tanya Lattnercf067672008-01-17 05:57:22 +000011121rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011122 conftest$ac_exeext conftest.$ac_ext
11123fi
Reid Spencera773bd52006-08-04 18:18:08 +000011124ac_res=`eval echo '${'$as_ac_var'}'`
11125 { echo "$as_me:$LINENO: result: $ac_res" >&5
11126echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127if test `eval echo '${'$as_ac_var'}'` = yes; then
11128 cat >>confdefs.h <<_ACEOF
11129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11130_ACEOF
11131
11132fi
11133done
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11163 stdio.h unistd.h
11164do
11165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171fi
Reid Spencera773bd52006-08-04 18:18:08 +000011172ac_res=`eval echo '${'$as_ac_Header'}'`
11173 { echo "$as_me:$LINENO: result: $ac_res" >&5
11174echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011175else
11176 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011177{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179cat >conftest.$ac_ext <<_ACEOF
11180/* confdefs.h. */
11181_ACEOF
11182cat confdefs.h >>conftest.$ac_ext
11183cat >>conftest.$ac_ext <<_ACEOF
11184/* end confdefs.h. */
11185$ac_includes_default
11186#include <$ac_header>
11187_ACEOF
11188rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011189if { (ac_try="$ac_compile"
11190case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193esac
11194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011201 (exit $ac_status); } &&
11202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11203 { (case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11206esac
11207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_try") 2>&5
11209 ac_status=$?
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; } &&
11212 { ac_try='test -s conftest.$ac_objext'
11213 { (case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11216esac
11217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_try") 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011222 ac_header_compiler=yes
11223else
11224 echo "$as_me: failed program was:" >&5
11225sed 's/^/| /' conftest.$ac_ext >&5
11226
Reid Spencera773bd52006-08-04 18:18:08 +000011227 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228fi
Reid Spencera773bd52006-08-04 18:18:08 +000011229
11230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11231{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11232echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011233
11234# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011235{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11236echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237cat >conftest.$ac_ext <<_ACEOF
11238/* confdefs.h. */
11239_ACEOF
11240cat confdefs.h >>conftest.$ac_ext
11241cat >>conftest.$ac_ext <<_ACEOF
11242/* end confdefs.h. */
11243#include <$ac_header>
11244_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011245if { (ac_try="$ac_cpp conftest.$ac_ext"
11246case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11249esac
11250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011257 (exit $ac_status); } >/dev/null; then
11258 if test -s conftest.err; then
11259 ac_cpp_err=$ac_c_preproc_warn_flag
11260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11261 else
11262 ac_cpp_err=
11263 fi
11264else
11265 ac_cpp_err=yes
11266fi
11267if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268 ac_header_preproc=yes
11269else
11270 echo "$as_me: failed program was:" >&5
11271sed 's/^/| /' conftest.$ac_ext >&5
11272
11273 ac_header_preproc=no
11274fi
Reid Spencera773bd52006-08-04 18:18:08 +000011275
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011276rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011277{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11278echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011279
11280# So? What about this header?
11281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11282 yes:no: )
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11284echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11286echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11287 ac_header_preproc=yes
11288 ;;
11289 no:yes:* )
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11291echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11293echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11295echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11297echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11299echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11301echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011302 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011303## ----------------------------------- ##
11304## Report this to llvmbugs@cs.uiuc.edu ##
11305## ----------------------------------- ##
11306_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011307 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308 ;;
11309esac
Reid Spencera773bd52006-08-04 18:18:08 +000011310{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
11315 eval "$as_ac_Header=\$ac_header_preproc"
11316fi
Reid Spencera773bd52006-08-04 18:18:08 +000011317ac_res=`eval echo '${'$as_ac_Header'}'`
11318 { echo "$as_me:$LINENO: result: $ac_res" >&5
11319echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011320
11321fi
11322if test `eval echo '${'$as_ac_Header'}'` = yes; then
11323 cat >>confdefs.h <<_ACEOF
11324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11325_ACEOF
11326
11327fi
11328
11329done
11330
11331
11332
11333
11334
11335for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11336do
11337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343fi
Reid Spencera773bd52006-08-04 18:18:08 +000011344ac_res=`eval echo '${'$as_ac_Header'}'`
11345 { echo "$as_me:$LINENO: result: $ac_res" >&5
11346echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011347else
11348 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011349{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11350echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351cat >conftest.$ac_ext <<_ACEOF
11352/* confdefs.h. */
11353_ACEOF
11354cat confdefs.h >>conftest.$ac_ext
11355cat >>conftest.$ac_ext <<_ACEOF
11356/* end confdefs.h. */
11357$ac_includes_default
11358#include <$ac_header>
11359_ACEOF
11360rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011361if { (ac_try="$ac_compile"
11362case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365esac
11366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011373 (exit $ac_status); } &&
11374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11375 { (case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11378esac
11379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_try") 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; } &&
11384 { ac_try='test -s conftest.$ac_objext'
11385 { (case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11388esac
11389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_try") 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011394 ac_header_compiler=yes
11395else
11396 echo "$as_me: failed program was:" >&5
11397sed 's/^/| /' conftest.$ac_ext >&5
11398
Reid Spencera773bd52006-08-04 18:18:08 +000011399 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011400fi
Reid Spencera773bd52006-08-04 18:18:08 +000011401
11402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11404echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011405
11406# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011407{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011409cat >conftest.$ac_ext <<_ACEOF
11410/* confdefs.h. */
11411_ACEOF
11412cat confdefs.h >>conftest.$ac_ext
11413cat >>conftest.$ac_ext <<_ACEOF
11414/* end confdefs.h. */
11415#include <$ac_header>
11416_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011417if { (ac_try="$ac_cpp conftest.$ac_ext"
11418case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11421esac
11422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011429 (exit $ac_status); } >/dev/null; then
11430 if test -s conftest.err; then
11431 ac_cpp_err=$ac_c_preproc_warn_flag
11432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11433 else
11434 ac_cpp_err=
11435 fi
11436else
11437 ac_cpp_err=yes
11438fi
11439if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011440 ac_header_preproc=yes
11441else
11442 echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 ac_header_preproc=no
11446fi
Reid Spencera773bd52006-08-04 18:18:08 +000011447
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011448rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011449{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11450echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011451
11452# So? What about this header?
11453case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11454 yes:no: )
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11458echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11459 ac_header_preproc=yes
11460 ;;
11461 no:yes:* )
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11463echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11465echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11467echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11469echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11471echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11473echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011474 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011475## ----------------------------------- ##
11476## Report this to llvmbugs@cs.uiuc.edu ##
11477## ----------------------------------- ##
11478_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011479 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011480 ;;
11481esac
Reid Spencera773bd52006-08-04 18:18:08 +000011482{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11484if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485 echo $ECHO_N "(cached) $ECHO_C" >&6
11486else
11487 eval "$as_ac_Header=\$ac_header_preproc"
11488fi
Reid Spencera773bd52006-08-04 18:18:08 +000011489ac_res=`eval echo '${'$as_ac_Header'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492
11493fi
11494if test `eval echo '${'$as_ac_Header'}'` = yes; then
11495 cat >>confdefs.h <<_ACEOF
11496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11497_ACEOF
11498
11499fi
11500
11501done
11502
11503
11504
11505for ac_header in string.h strings.h
11506do
11507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513fi
Reid Spencera773bd52006-08-04 18:18:08 +000011514ac_res=`eval echo '${'$as_ac_Header'}'`
11515 { echo "$as_me:$LINENO: result: $ac_res" >&5
11516echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011517else
11518 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011519{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011521cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
11527$ac_includes_default
11528#include <$ac_header>
11529_ACEOF
11530rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011531if { (ac_try="$ac_compile"
11532case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535esac
11536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011543 (exit $ac_status); } &&
11544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11545 { (case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548esac
11549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_try") 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; } &&
11554 { ac_try='test -s conftest.$ac_objext'
11555 { (case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558esac
11559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_try") 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011564 ac_header_compiler=yes
11565else
11566 echo "$as_me: failed program was:" >&5
11567sed 's/^/| /' conftest.$ac_ext >&5
11568
Reid Spencera773bd52006-08-04 18:18:08 +000011569 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570fi
Reid Spencera773bd52006-08-04 18:18:08 +000011571
11572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11573{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11574echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011575
11576# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011577{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011579cat >conftest.$ac_ext <<_ACEOF
11580/* confdefs.h. */
11581_ACEOF
11582cat confdefs.h >>conftest.$ac_ext
11583cat >>conftest.$ac_ext <<_ACEOF
11584/* end confdefs.h. */
11585#include <$ac_header>
11586_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011587if { (ac_try="$ac_cpp conftest.$ac_ext"
11588case "(($ac_try" in
11589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11590 *) ac_try_echo=$ac_try;;
11591esac
11592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011599 (exit $ac_status); } >/dev/null; then
11600 if test -s conftest.err; then
11601 ac_cpp_err=$ac_c_preproc_warn_flag
11602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11603 else
11604 ac_cpp_err=
11605 fi
11606else
11607 ac_cpp_err=yes
11608fi
11609if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011610 ac_header_preproc=yes
11611else
11612 echo "$as_me: failed program was:" >&5
11613sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 ac_header_preproc=no
11616fi
Reid Spencera773bd52006-08-04 18:18:08 +000011617
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011619{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11620echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011621
11622# So? What about this header?
11623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11624 yes:no: )
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11628echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11629 ac_header_preproc=yes
11630 ;;
11631 no:yes:* )
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11635echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11637echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11639echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11643echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011644 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011645## ----------------------------------- ##
11646## Report this to llvmbugs@cs.uiuc.edu ##
11647## ----------------------------------- ##
11648_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011649 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650 ;;
11651esac
Reid Spencera773bd52006-08-04 18:18:08 +000011652{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656else
11657 eval "$as_ac_Header=\$ac_header_preproc"
11658fi
Reid Spencera773bd52006-08-04 18:18:08 +000011659ac_res=`eval echo '${'$as_ac_Header'}'`
11660 { echo "$as_me:$LINENO: result: $ac_res" >&5
11661echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011662
11663fi
11664if test `eval echo '${'$as_ac_Header'}'` = yes; then
11665 cat >>confdefs.h <<_ACEOF
11666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11667_ACEOF
11668 break
11669fi
11670
11671done
11672
11673
11674
11675
11676for ac_func in strchr index
11677do
11678as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011679{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11680echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11681if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683else
11684 cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
11690/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11692#define $ac_func innocuous_$ac_func
11693
11694/* System header to define __stub macros and hopefully few prototypes,
11695 which can conflict with char $ac_func (); below.
11696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11697 <limits.h> exists even on freestanding compilers. */
11698
11699#ifdef __STDC__
11700# include <limits.h>
11701#else
11702# include <assert.h>
11703#endif
11704
11705#undef $ac_func
11706
Reid Spencera773bd52006-08-04 18:18:08 +000011707/* Override any GCC internal prototype to avoid an error.
11708 Use char because int might match the return type of a GCC
11709 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011710#ifdef __cplusplus
11711extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011713char $ac_func ();
11714/* The GNU C library defines this for functions which it implements
11715 to always fail with ENOSYS. Some functions are actually named
11716 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011717#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011718choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011719#endif
11720
11721int
11722main ()
11723{
Reid Spencera773bd52006-08-04 18:18:08 +000011724return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011725 ;
11726 return 0;
11727}
11728_ACEOF
11729rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011730if { (ac_try="$ac_link"
11731case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11734esac
11735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011737 ac_status=$?
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011742 (exit $ac_status); } &&
11743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11744 { (case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11747esac
11748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_try") 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; } &&
11753 { ac_try='test -s conftest$ac_exeext'
11754 { (case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11757esac
11758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_try") 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011763 eval "$as_ac_var=yes"
11764else
11765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
Reid Spencera773bd52006-08-04 18:18:08 +000011768 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011769fi
Reid Spencera773bd52006-08-04 18:18:08 +000011770
Tanya Lattnercf067672008-01-17 05:57:22 +000011771rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011772 conftest$ac_exeext conftest.$ac_ext
11773fi
Reid Spencera773bd52006-08-04 18:18:08 +000011774ac_res=`eval echo '${'$as_ac_var'}'`
11775 { echo "$as_me:$LINENO: result: $ac_res" >&5
11776echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011777if test `eval echo '${'$as_ac_var'}'` = yes; then
11778 cat >>confdefs.h <<_ACEOF
11779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11780_ACEOF
11781 break
11782fi
11783done
11784
11785
11786
11787for ac_func in strrchr rindex
11788do
11789as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011790{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11792if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794else
11795 cat >conftest.$ac_ext <<_ACEOF
11796/* confdefs.h. */
11797_ACEOF
11798cat confdefs.h >>conftest.$ac_ext
11799cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h. */
11801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11803#define $ac_func innocuous_$ac_func
11804
11805/* System header to define __stub macros and hopefully few prototypes,
11806 which can conflict with char $ac_func (); below.
11807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11808 <limits.h> exists even on freestanding compilers. */
11809
11810#ifdef __STDC__
11811# include <limits.h>
11812#else
11813# include <assert.h>
11814#endif
11815
11816#undef $ac_func
11817
Reid Spencera773bd52006-08-04 18:18:08 +000011818/* Override any GCC internal prototype to avoid an error.
11819 Use char because int might match the return type of a GCC
11820 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011821#ifdef __cplusplus
11822extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824char $ac_func ();
11825/* The GNU C library defines this for functions which it implements
11826 to always fail with ENOSYS. Some functions are actually named
11827 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011828#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011829choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830#endif
11831
11832int
11833main ()
11834{
Reid Spencera773bd52006-08-04 18:18:08 +000011835return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011836 ;
11837 return 0;
11838}
11839_ACEOF
11840rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011841if { (ac_try="$ac_link"
11842case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11845esac
11846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011853 (exit $ac_status); } &&
11854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11855 { (case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11858esac
11859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860 (eval "$ac_try") 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; } &&
11864 { ac_try='test -s conftest$ac_exeext'
11865 { (case "(($ac_try" in
11866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11868esac
11869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_try") 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011874 eval "$as_ac_var=yes"
11875else
11876 echo "$as_me: failed program was:" >&5
11877sed 's/^/| /' conftest.$ac_ext >&5
11878
Reid Spencera773bd52006-08-04 18:18:08 +000011879 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011880fi
Reid Spencera773bd52006-08-04 18:18:08 +000011881
Tanya Lattnercf067672008-01-17 05:57:22 +000011882rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011883 conftest$ac_exeext conftest.$ac_ext
11884fi
Reid Spencera773bd52006-08-04 18:18:08 +000011885ac_res=`eval echo '${'$as_ac_var'}'`
11886 { echo "$as_me:$LINENO: result: $ac_res" >&5
11887echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888if test `eval echo '${'$as_ac_var'}'` = yes; then
11889 cat >>confdefs.h <<_ACEOF
11890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11891_ACEOF
11892 break
11893fi
11894done
11895
11896
11897
11898for ac_func in memcpy bcopy
11899do
11900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011901{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11903if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906 cat >conftest.$ac_ext <<_ACEOF
11907/* confdefs.h. */
11908_ACEOF
11909cat confdefs.h >>conftest.$ac_ext
11910cat >>conftest.$ac_ext <<_ACEOF
11911/* end confdefs.h. */
11912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11914#define $ac_func innocuous_$ac_func
11915
11916/* System header to define __stub macros and hopefully few prototypes,
11917 which can conflict with char $ac_func (); below.
11918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919 <limits.h> exists even on freestanding compilers. */
11920
11921#ifdef __STDC__
11922# include <limits.h>
11923#else
11924# include <assert.h>
11925#endif
11926
11927#undef $ac_func
11928
Reid Spencera773bd52006-08-04 18:18:08 +000011929/* Override any GCC internal prototype to avoid an error.
11930 Use char because int might match the return type of a GCC
11931 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011932#ifdef __cplusplus
11933extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935char $ac_func ();
11936/* The GNU C library defines this for functions which it implements
11937 to always fail with ENOSYS. Some functions are actually named
11938 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011939#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011941#endif
11942
11943int
11944main ()
11945{
Reid Spencera773bd52006-08-04 18:18:08 +000011946return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947 ;
11948 return 0;
11949}
11950_ACEOF
11951rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011952if { (ac_try="$ac_link"
11953case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956esac
11957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966 { (case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969esac
11970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_try") 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest$ac_exeext'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979esac
11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011985 eval "$as_ac_var=yes"
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
Reid Spencera773bd52006-08-04 18:18:08 +000011990 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011991fi
Reid Spencera773bd52006-08-04 18:18:08 +000011992
Tanya Lattnercf067672008-01-17 05:57:22 +000011993rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011994 conftest$ac_exeext conftest.$ac_ext
11995fi
Reid Spencera773bd52006-08-04 18:18:08 +000011996ac_res=`eval echo '${'$as_ac_var'}'`
11997 { echo "$as_me:$LINENO: result: $ac_res" >&5
11998echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999if test `eval echo '${'$as_ac_var'}'` = yes; then
12000 cat >>confdefs.h <<_ACEOF
12001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12002_ACEOF
12003 break
12004fi
12005done
12006
12007
12008
12009for ac_func in memmove strcmp
12010do
12011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012012{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12014if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012015 echo $ECHO_N "(cached) $ECHO_C" >&6
12016else
12017 cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h. */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h. */
12023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12025#define $ac_func innocuous_$ac_func
12026
12027/* System header to define __stub macros and hopefully few prototypes,
12028 which can conflict with char $ac_func (); below.
12029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 <limits.h> exists even on freestanding compilers. */
12031
12032#ifdef __STDC__
12033# include <limits.h>
12034#else
12035# include <assert.h>
12036#endif
12037
12038#undef $ac_func
12039
Reid Spencera773bd52006-08-04 18:18:08 +000012040/* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012043#ifdef __cplusplus
12044extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012045#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046char $ac_func ();
12047/* The GNU C library defines this for functions which it implements
12048 to always fail with ENOSYS. Some functions are actually named
12049 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012050#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052#endif
12053
12054int
12055main ()
12056{
Reid Spencera773bd52006-08-04 18:18:08 +000012057return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058 ;
12059 return 0;
12060}
12061_ACEOF
12062rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012063if { (ac_try="$ac_link"
12064case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12067esac
12068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077 { (case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12080esac
12081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_try") 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest$ac_exeext'
12087 { (case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12090esac
12091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092 (eval "$ac_try") 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012096 eval "$as_ac_var=yes"
12097else
12098 echo "$as_me: failed program was:" >&5
12099sed 's/^/| /' conftest.$ac_ext >&5
12100
Reid Spencera773bd52006-08-04 18:18:08 +000012101 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012102fi
Reid Spencera773bd52006-08-04 18:18:08 +000012103
Tanya Lattnercf067672008-01-17 05:57:22 +000012104rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012105 conftest$ac_exeext conftest.$ac_ext
12106fi
Reid Spencera773bd52006-08-04 18:18:08 +000012107ac_res=`eval echo '${'$as_ac_var'}'`
12108 { echo "$as_me:$LINENO: result: $ac_res" >&5
12109echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012110if test `eval echo '${'$as_ac_var'}'` = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113_ACEOF
12114
12115fi
12116done
12117
12118
12119
12120
12121for ac_func in closedir opendir readdir
12122do
12123as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012124{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12126if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128else
12129 cat >conftest.$ac_ext <<_ACEOF
12130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
12135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12137#define $ac_func innocuous_$ac_func
12138
12139/* System header to define __stub macros and hopefully few prototypes,
12140 which can conflict with char $ac_func (); below.
12141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12142 <limits.h> exists even on freestanding compilers. */
12143
12144#ifdef __STDC__
12145# include <limits.h>
12146#else
12147# include <assert.h>
12148#endif
12149
12150#undef $ac_func
12151
Reid Spencera773bd52006-08-04 18:18:08 +000012152/* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012155#ifdef __cplusplus
12156extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012157#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012158char $ac_func ();
12159/* The GNU C library defines this for functions which it implements
12160 to always fail with ENOSYS. Some functions are actually named
12161 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012162#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164#endif
12165
12166int
12167main ()
12168{
Reid Spencera773bd52006-08-04 18:18:08 +000012169return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012170 ;
12171 return 0;
12172}
12173_ACEOF
12174rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012175if { (ac_try="$ac_link"
12176case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179esac
12180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012187 (exit $ac_status); } &&
12188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12189 { (case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12192esac
12193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_try") 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; } &&
12198 { ac_try='test -s conftest$ac_exeext'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202esac
12203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012208 eval "$as_ac_var=yes"
12209else
12210 echo "$as_me: failed program was:" >&5
12211sed 's/^/| /' conftest.$ac_ext >&5
12212
Reid Spencera773bd52006-08-04 18:18:08 +000012213 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012214fi
Reid Spencera773bd52006-08-04 18:18:08 +000012215
Tanya Lattnercf067672008-01-17 05:57:22 +000012216rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012217 conftest$ac_exeext conftest.$ac_ext
12218fi
Reid Spencera773bd52006-08-04 18:18:08 +000012219ac_res=`eval echo '${'$as_ac_var'}'`
12220 { echo "$as_me:$LINENO: result: $ac_res" >&5
12221echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222if test `eval echo '${'$as_ac_var'}'` = yes; then
12223 cat >>confdefs.h <<_ACEOF
12224#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12225_ACEOF
12226
12227fi
12228done
12229
12230
Reid Spencera773bd52006-08-04 18:18:08 +000012231# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012233 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234 case $enableval in
12235 yes) enable_shared=yes ;;
12236 no) enable_shared=no ;;
12237 *)
12238 enable_shared=no
12239 # Look at the argument we got. We use all the common list separators.
12240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12241 for pkg in $enableval; do
12242 IFS="$lt_save_ifs"
12243 if test "X$pkg" = "X$p"; then
12244 enable_shared=yes
12245 fi
12246 done
12247 IFS="$lt_save_ifs"
12248 ;;
12249 esac
12250else
12251 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012252fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012253
Reid Spencera773bd52006-08-04 18:18:08 +000012254
12255# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012256if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012257 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012258 case $enableval in
12259 yes) enable_static=yes ;;
12260 no) enable_static=no ;;
12261 *)
12262 enable_static=no
12263 # Look at the argument we got. We use all the common list separators.
12264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12265 for pkg in $enableval; do
12266 IFS="$lt_save_ifs"
12267 if test "X$pkg" = "X$p"; then
12268 enable_static=yes
12269 fi
12270 done
12271 IFS="$lt_save_ifs"
12272 ;;
12273 esac
12274else
12275 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012276fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012277
Reid Spencera773bd52006-08-04 18:18:08 +000012278
12279# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012280if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012281 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012282 case $enableval in
12283 yes) enable_fast_install=yes ;;
12284 no) enable_fast_install=no ;;
12285 *)
12286 enable_fast_install=no
12287 # Look at the argument we got. We use all the common list separators.
12288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12289 for pkg in $enableval; do
12290 IFS="$lt_save_ifs"
12291 if test "X$pkg" = "X$p"; then
12292 enable_fast_install=yes
12293 fi
12294 done
12295 IFS="$lt_save_ifs"
12296 ;;
12297 esac
12298else
12299 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012300fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012301
Reid Spencera773bd52006-08-04 18:18:08 +000012302
12303{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12304echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012305if test "${lt_cv_path_SED+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307else
12308 # Loop through the user's path and test for sed and gsed.
12309# Then use that list of sed's as ones to test for truncation.
12310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311for as_dir in $PATH
12312do
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for lt_ac_prog in sed gsed; do
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12318 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12319 fi
12320 done
12321 done
12322done
12323lt_ac_max=0
12324lt_ac_count=0
12325# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12326# along with /bin/sed that truncates output.
12327for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012328 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012329 cat /dev/null > conftest.in
12330 lt_ac_count=0
12331 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12332 # Check for GNU sed and select it if it is found.
12333 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12334 lt_cv_path_SED=$lt_ac_sed
12335 break
12336 fi
12337 while true; do
12338 cat conftest.in conftest.in >conftest.tmp
12339 mv conftest.tmp conftest.in
12340 cp conftest.in conftest.nl
12341 echo >>conftest.nl
12342 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12343 cmp -s conftest.out conftest.nl || break
12344 # 10000 chars as input seems more than enough
12345 test $lt_ac_count -gt 10 && break
12346 lt_ac_count=`expr $lt_ac_count + 1`
12347 if test $lt_ac_count -gt $lt_ac_max; then
12348 lt_ac_max=$lt_ac_count
12349 lt_cv_path_SED=$lt_ac_sed
12350 fi
12351 done
12352done
12353
12354fi
12355
12356SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012357{ echo "$as_me:$LINENO: result: $SED" >&5
12358echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012359
12360
Reid Spencera773bd52006-08-04 18:18:08 +000012361# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012362if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012363 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012364else
12365 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012366fi
12367
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012368ac_prog=ld
12369if test "$GCC" = yes; then
12370 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012371 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12372echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012373 case $host in
12374 *-*-mingw*)
12375 # gcc leaves a trailing carriage return which upsets mingw
12376 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12377 *)
12378 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12379 esac
12380 case $ac_prog in
12381 # Accept absolute paths.
12382 [\\/]* | ?:[\\/]*)
12383 re_direlt='/[^/][^/]*/\.\./'
12384 # Canonicalize the pathname of ld
12385 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12386 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12387 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12388 done
12389 test -z "$LD" && LD="$ac_prog"
12390 ;;
12391 "")
12392 # If it fails, then pretend we aren't using GCC.
12393 ac_prog=ld
12394 ;;
12395 *)
12396 # If it is relative, then search for the first ld in PATH.
12397 with_gnu_ld=unknown
12398 ;;
12399 esac
12400elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012401 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12402echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012403else
Reid Spencera773bd52006-08-04 18:18:08 +000012404 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12405echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012406fi
12407if test "${lt_cv_path_LD+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409else
12410 if test -z "$LD"; then
12411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12412 for ac_dir in $PATH; do
12413 IFS="$lt_save_ifs"
12414 test -z "$ac_dir" && ac_dir=.
12415 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12416 lt_cv_path_LD="$ac_dir/$ac_prog"
12417 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012418 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012419 # Break only if it was the GNU/non-GNU ld that we prefer.
12420 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12421 *GNU* | *'with BFD'*)
12422 test "$with_gnu_ld" != no && break
12423 ;;
12424 *)
12425 test "$with_gnu_ld" != yes && break
12426 ;;
12427 esac
12428 fi
12429 done
12430 IFS="$lt_save_ifs"
12431else
12432 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12433fi
12434fi
12435
12436LD="$lt_cv_path_LD"
12437if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012438 { echo "$as_me:$LINENO: result: $LD" >&5
12439echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440else
Reid Spencera773bd52006-08-04 18:18:08 +000012441 { echo "$as_me:$LINENO: result: no" >&5
12442echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012443fi
12444test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12445echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12446 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012447{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12448echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012449if test "${lt_cv_prog_gnu_ld+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12451else
Reid Spencera773bd52006-08-04 18:18:08 +000012452 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012453case `$LD -v 2>&1 </dev/null` in
12454*GNU* | *'with BFD'*)
12455 lt_cv_prog_gnu_ld=yes
12456 ;;
12457*)
12458 lt_cv_prog_gnu_ld=no
12459 ;;
12460esac
12461fi
Reid Spencera773bd52006-08-04 18:18:08 +000012462{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12463echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012464with_gnu_ld=$lt_cv_prog_gnu_ld
12465
12466
Reid Spencera773bd52006-08-04 18:18:08 +000012467{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12468echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012469if test "${lt_cv_ld_reload_flag+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471else
12472 lt_cv_ld_reload_flag='-r'
12473fi
Reid Spencera773bd52006-08-04 18:18:08 +000012474{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12475echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012476reload_flag=$lt_cv_ld_reload_flag
12477case $reload_flag in
12478"" | " "*) ;;
12479*) reload_flag=" $reload_flag" ;;
12480esac
12481reload_cmds='$LD$reload_flag -o $output$reload_objs'
12482case $host_os in
12483 darwin*)
12484 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012485 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012486 else
12487 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12488 fi
12489 ;;
12490esac
12491
Reid Spencera773bd52006-08-04 18:18:08 +000012492{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12493echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012494if test "${lt_cv_deplibs_check_method+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496else
12497 lt_cv_file_magic_cmd='$MAGIC_CMD'
12498lt_cv_file_magic_test_file=
12499lt_cv_deplibs_check_method='unknown'
12500# Need to set the preceding variable on all platforms that support
12501# interlibrary dependencies.
12502# 'none' -- dependencies not supported.
12503# `unknown' -- same as none, but documents that we really don't know.
12504# 'pass_all' -- all dependencies passed with no checks.
12505# 'test_compile' -- check by making test program.
12506# 'file_magic [[regex]]' -- check by looking for files in library path
12507# which responds to the $file_magic_cmd with a given extended regex.
12508# If you have `file' or equivalent on your system and you're not sure
12509# whether `pass_all' will *always* work, you probably want this one.
12510
12511case $host_os in
12512aix4* | aix5*)
12513 lt_cv_deplibs_check_method=pass_all
12514 ;;
12515
12516beos*)
12517 lt_cv_deplibs_check_method=pass_all
12518 ;;
12519
12520bsdi[45]*)
12521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12522 lt_cv_file_magic_cmd='/usr/bin/file -L'
12523 lt_cv_file_magic_test_file=/shlib/libc.so
12524 ;;
12525
12526cygwin*)
12527 # func_win32_libid is a shell function defined in ltmain.sh
12528 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12529 lt_cv_file_magic_cmd='func_win32_libid'
12530 ;;
12531
12532mingw* | pw32*)
12533 # Base MSYS/MinGW do not provide the 'file' command needed by
12534 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12535 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12536 lt_cv_file_magic_cmd='$OBJDUMP -f'
12537 ;;
12538
12539darwin* | rhapsody*)
12540 lt_cv_deplibs_check_method=pass_all
12541 ;;
12542
Reid Spencera773bd52006-08-04 18:18:08 +000012543freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012544 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12545 case $host_cpu in
12546 i*86 )
12547 # Not sure whether the presence of OpenBSD here was a mistake.
12548 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012549 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 +000012550 lt_cv_file_magic_cmd=/usr/bin/file
12551 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12552 ;;
12553 esac
12554 else
12555 lt_cv_deplibs_check_method=pass_all
12556 fi
12557 ;;
12558
12559gnu*)
12560 lt_cv_deplibs_check_method=pass_all
12561 ;;
12562
12563hpux10.20* | hpux11*)
12564 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012565 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012566 ia64*)
12567 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12568 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12569 ;;
12570 hppa*64*)
12571 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]'
12572 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12573 ;;
12574 *)
12575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12576 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12577 ;;
12578 esac
12579 ;;
12580
Reid Spencera773bd52006-08-04 18:18:08 +000012581interix3*)
12582 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12584 ;;
12585
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012586irix5* | irix6* | nonstopux*)
12587 case $LD in
12588 *-32|*"-32 ") libmagic=32-bit;;
12589 *-n32|*"-n32 ") libmagic=N32;;
12590 *-64|*"-64 ") libmagic=64-bit;;
12591 *) libmagic=never-match;;
12592 esac
12593 lt_cv_deplibs_check_method=pass_all
12594 ;;
12595
12596# This must be Linux ELF.
12597linux*)
12598 lt_cv_deplibs_check_method=pass_all
12599 ;;
12600
12601netbsd*)
12602 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12604 else
12605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12606 fi
12607 ;;
12608
12609newos6*)
12610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12611 lt_cv_file_magic_cmd=/usr/bin/file
12612 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12613 ;;
12614
12615nto-qnx*)
12616 lt_cv_deplibs_check_method=unknown
12617 ;;
12618
12619openbsd*)
12620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12622 else
12623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12624 fi
12625 ;;
12626
12627osf3* | osf4* | osf5*)
12628 lt_cv_deplibs_check_method=pass_all
12629 ;;
12630
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012631solaris*)
12632 lt_cv_deplibs_check_method=pass_all
12633 ;;
12634
Reid Spencera773bd52006-08-04 18:18:08 +000012635sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012636 case $host_vendor in
12637 motorola)
12638 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]'
12639 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12640 ;;
12641 ncr)
12642 lt_cv_deplibs_check_method=pass_all
12643 ;;
12644 sequent)
12645 lt_cv_file_magic_cmd='/bin/file'
12646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12647 ;;
12648 sni)
12649 lt_cv_file_magic_cmd='/bin/file'
12650 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12651 lt_cv_file_magic_test_file=/lib/libc.so
12652 ;;
12653 siemens)
12654 lt_cv_deplibs_check_method=pass_all
12655 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012656 pc)
12657 lt_cv_deplibs_check_method=pass_all
12658 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012659 esac
12660 ;;
12661
Reid Spencera773bd52006-08-04 18:18:08 +000012662sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012663 lt_cv_deplibs_check_method=pass_all
12664 ;;
12665esac
12666
12667fi
Reid Spencera773bd52006-08-04 18:18:08 +000012668{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12669echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012670file_magic_cmd=$lt_cv_file_magic_cmd
12671deplibs_check_method=$lt_cv_deplibs_check_method
12672test -z "$deplibs_check_method" && deplibs_check_method=unknown
12673
12674
12675
12676# If no C compiler was specified, use CC.
12677LTCC=${LTCC-"$CC"}
12678
Reid Spencera773bd52006-08-04 18:18:08 +000012679# If no C compiler flags were specified, use CFLAGS.
12680LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12681
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012682# Allow CC to be a program name with arguments.
12683compiler=$CC
12684
Reid Spencera773bd52006-08-04 18:18:08 +000012685# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012686if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012687 enableval=$enable_libtool_lock;
12688fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012689
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012690test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12691
12692# Some flags need to be propagated to the compiler or linker for good
12693# libtool support.
12694case $host in
12695ia64-*-hpux*)
12696 # Find out which ABI we are using.
12697 echo 'int i;' > conftest.$ac_ext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12699 (eval $ac_compile) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; then
12703 case `/usr/bin/file conftest.$ac_objext` in
12704 *ELF-32*)
12705 HPUX_IA64_MODE="32"
12706 ;;
12707 *ELF-64*)
12708 HPUX_IA64_MODE="64"
12709 ;;
12710 esac
12711 fi
12712 rm -rf conftest*
12713 ;;
12714*-*-irix6*)
12715 # Find out which ABI we are using.
Bill Wendling41ef25b2008-03-05 09:28:02 +000012716 echo '#line 12716 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718 (eval $ac_compile) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; then
12722 if test "$lt_cv_prog_gnu_ld" = yes; then
12723 case `/usr/bin/file conftest.$ac_objext` in
12724 *32-bit*)
12725 LD="${LD-ld} -melf32bsmip"
12726 ;;
12727 *N32*)
12728 LD="${LD-ld} -melf32bmipn32"
12729 ;;
12730 *64-bit*)
12731 LD="${LD-ld} -melf64bmip"
12732 ;;
12733 esac
12734 else
12735 case `/usr/bin/file conftest.$ac_objext` in
12736 *32-bit*)
12737 LD="${LD-ld} -32"
12738 ;;
12739 *N32*)
12740 LD="${LD-ld} -n32"
12741 ;;
12742 *64-bit*)
12743 LD="${LD-ld} -64"
12744 ;;
12745 esac
12746 fi
12747 fi
12748 rm -rf conftest*
12749 ;;
12750
12751x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12752 # Find out which ABI we are using.
12753 echo 'int i;' > conftest.$ac_ext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755 (eval $ac_compile) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012759 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012760 *32-bit*)
12761 case $host in
12762 x86_64-*linux*)
12763 LD="${LD-ld} -m elf_i386"
12764 ;;
12765 ppc64-*linux*|powerpc64-*linux*)
12766 LD="${LD-ld} -m elf32ppclinux"
12767 ;;
12768 s390x-*linux*)
12769 LD="${LD-ld} -m elf_s390"
12770 ;;
12771 sparc64-*linux*)
12772 LD="${LD-ld} -m elf32_sparc"
12773 ;;
12774 esac
12775 ;;
12776 *64-bit*)
12777 case $host in
12778 x86_64-*linux*)
12779 LD="${LD-ld} -m elf_x86_64"
12780 ;;
12781 ppc*-*linux*|powerpc*-*linux*)
12782 LD="${LD-ld} -m elf64ppc"
12783 ;;
12784 s390*-*linux*)
12785 LD="${LD-ld} -m elf64_s390"
12786 ;;
12787 sparc*-*linux*)
12788 LD="${LD-ld} -m elf64_sparc"
12789 ;;
12790 esac
12791 ;;
12792 esac
12793 fi
12794 rm -rf conftest*
12795 ;;
12796
12797*-*-sco3.2v5*)
12798 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12799 SAVE_CFLAGS="$CFLAGS"
12800 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012801 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12802echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012803if test "${lt_cv_cc_needs_belf+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12805else
12806 ac_ext=c
12807ac_cpp='$CPP $CPPFLAGS'
12808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12810ac_compiler_gnu=$ac_cv_c_compiler_gnu
12811
12812 cat >conftest.$ac_ext <<_ACEOF
12813/* confdefs.h. */
12814_ACEOF
12815cat confdefs.h >>conftest.$ac_ext
12816cat >>conftest.$ac_ext <<_ACEOF
12817/* end confdefs.h. */
12818
Reid Spencera773bd52006-08-04 18:18:08 +000012819int
12820main ()
12821{
12822
12823 ;
12824 return 0;
12825}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012826_ACEOF
12827rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012828if { (ac_try="$ac_link"
12829case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832esac
12833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845esac
12846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_try") 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855esac
12856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_try") 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012861 lt_cv_cc_needs_belf=yes
12862else
12863 echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
12865
Reid Spencera773bd52006-08-04 18:18:08 +000012866 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012867fi
Reid Spencera773bd52006-08-04 18:18:08 +000012868
Tanya Lattnercf067672008-01-17 05:57:22 +000012869rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012870 conftest$ac_exeext conftest.$ac_ext
12871 ac_ext=c
12872ac_cpp='$CPP $CPPFLAGS'
12873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12875ac_compiler_gnu=$ac_cv_c_compiler_gnu
12876
12877fi
Reid Spencera773bd52006-08-04 18:18:08 +000012878{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12879echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012880 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12881 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12882 CFLAGS="$SAVE_CFLAGS"
12883 fi
12884 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012885sparc*-*solaris*)
12886 # Find out which ABI we are using.
12887 echo 'int i;' > conftest.$ac_ext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; then
12893 case `/usr/bin/file conftest.o` in
12894 *64-bit*)
12895 case $lt_cv_prog_gnu_ld in
12896 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12897 *) LD="${LD-ld} -64" ;;
12898 esac
12899 ;;
12900 esac
12901 fi
12902 rm -rf conftest*
12903 ;;
12904
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012905
12906esac
12907
12908need_locks="$enable_libtool_lock"
12909
12910
Reid Spencer2706f8c2004-09-19 23:53:36 +000012911
12912
12913if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12914 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12915 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012916 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012917ac_cpp='$CXXCPP $CPPFLAGS'
12918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012921{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12922echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012923if test -z "$CXXCPP"; then
12924 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926else
John Criswell47fdd832003-07-14 16:52:07 +000012927 # Double quotes because CXXCPP needs to be expanded
12928 for CXXCPP in "$CXX -E" "/lib/cpp"
12929 do
12930 ac_preproc_ok=false
12931for ac_cxx_preproc_warn_flag in '' yes
12932do
12933 # Use a header file that comes with gcc, so configuring glibc
12934 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12936 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012937 # On the NeXT, cc -E runs the code through the compiler's parser,
12938 # not just through cpp. "Syntax error" is here to catch this case.
12939 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012940/* confdefs.h. */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h. */
12945#ifdef __STDC__
12946# include <limits.h>
12947#else
12948# include <assert.h>
12949#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012950 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012951_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012952if { (ac_try="$ac_cpp conftest.$ac_ext"
12953case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12956esac
12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012959 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012960 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012961 rm -f conftest.er1
12962 cat conftest.err >&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012964 (exit $ac_status); } >/dev/null; then
12965 if test -s conftest.err; then
12966 ac_cpp_err=$ac_cxx_preproc_warn_flag
12967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12968 else
12969 ac_cpp_err=
12970 fi
12971else
12972 ac_cpp_err=yes
12973fi
12974if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012975 :
12976else
12977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012978sed 's/^/| /' conftest.$ac_ext >&5
12979
John Criswell47fdd832003-07-14 16:52:07 +000012980 # Broken: fails on valid input.
12981continue
12982fi
Reid Spencera773bd52006-08-04 18:18:08 +000012983
John Criswell47fdd832003-07-14 16:52:07 +000012984rm -f conftest.err conftest.$ac_ext
12985
Reid Spencera773bd52006-08-04 18:18:08 +000012986 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012987 # can be detected and how.
12988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012989/* confdefs.h. */
12990_ACEOF
12991cat confdefs.h >>conftest.$ac_ext
12992cat >>conftest.$ac_ext <<_ACEOF
12993/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012994#include <ac_nonexistent.h>
12995_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012996if { (ac_try="$ac_cpp conftest.$ac_ext"
12997case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000esac
13001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013003 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013004 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013005 rm -f conftest.er1
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013008 (exit $ac_status); } >/dev/null; then
13009 if test -s conftest.err; then
13010 ac_cpp_err=$ac_cxx_preproc_warn_flag
13011 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13012 else
13013 ac_cpp_err=
13014 fi
13015else
13016 ac_cpp_err=yes
13017fi
13018if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013019 # Broken: success on invalid input.
13020continue
13021else
13022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013023sed 's/^/| /' conftest.$ac_ext >&5
13024
John Criswell47fdd832003-07-14 16:52:07 +000013025 # Passes both tests.
13026ac_preproc_ok=:
13027break
13028fi
Reid Spencera773bd52006-08-04 18:18:08 +000013029
John Criswell47fdd832003-07-14 16:52:07 +000013030rm -f conftest.err conftest.$ac_ext
13031
13032done
13033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13034rm -f conftest.err conftest.$ac_ext
13035if $ac_preproc_ok; then
13036 break
John Criswell7a73b802003-06-30 21:59:07 +000013037fi
13038
John Criswell47fdd832003-07-14 16:52:07 +000013039 done
13040 ac_cv_prog_CXXCPP=$CXXCPP
13041
13042fi
13043 CXXCPP=$ac_cv_prog_CXXCPP
13044else
13045 ac_cv_prog_CXXCPP=$CXXCPP
13046fi
Reid Spencera773bd52006-08-04 18:18:08 +000013047{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13048echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013049ac_preproc_ok=false
13050for ac_cxx_preproc_warn_flag in '' yes
13051do
13052 # Use a header file that comes with gcc, so configuring glibc
13053 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13055 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013056 # On the NeXT, cc -E runs the code through the compiler's parser,
13057 # not just through cpp. "Syntax error" is here to catch this case.
13058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013059/* confdefs.h. */
13060_ACEOF
13061cat confdefs.h >>conftest.$ac_ext
13062cat >>conftest.$ac_ext <<_ACEOF
13063/* end confdefs.h. */
13064#ifdef __STDC__
13065# include <limits.h>
13066#else
13067# include <assert.h>
13068#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013069 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013070_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013071if { (ac_try="$ac_cpp conftest.$ac_ext"
13072case "(($ac_try" in
13073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13074 *) ac_try_echo=$ac_try;;
13075esac
13076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013078 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013079 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013080 rm -f conftest.er1
13081 cat conftest.err >&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013083 (exit $ac_status); } >/dev/null; then
13084 if test -s conftest.err; then
13085 ac_cpp_err=$ac_cxx_preproc_warn_flag
13086 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13087 else
13088 ac_cpp_err=
13089 fi
13090else
13091 ac_cpp_err=yes
13092fi
13093if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013094 :
13095else
13096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013097sed 's/^/| /' conftest.$ac_ext >&5
13098
John Criswell47fdd832003-07-14 16:52:07 +000013099 # Broken: fails on valid input.
13100continue
13101fi
Reid Spencera773bd52006-08-04 18:18:08 +000013102
John Criswell47fdd832003-07-14 16:52:07 +000013103rm -f conftest.err conftest.$ac_ext
13104
Reid Spencera773bd52006-08-04 18:18:08 +000013105 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013106 # can be detected and how.
13107 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013113#include <ac_nonexistent.h>
13114_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013115if { (ac_try="$ac_cpp conftest.$ac_ext"
13116case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119esac
13120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013122 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013123 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013124 rm -f conftest.er1
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013127 (exit $ac_status); } >/dev/null; then
13128 if test -s conftest.err; then
13129 ac_cpp_err=$ac_cxx_preproc_warn_flag
13130 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13131 else
13132 ac_cpp_err=
13133 fi
13134else
13135 ac_cpp_err=yes
13136fi
13137if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013138 # Broken: success on invalid input.
13139continue
13140else
13141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013142sed 's/^/| /' conftest.$ac_ext >&5
13143
John Criswell47fdd832003-07-14 16:52:07 +000013144 # Passes both tests.
13145ac_preproc_ok=:
13146break
13147fi
Reid Spencera773bd52006-08-04 18:18:08 +000013148
John Criswell47fdd832003-07-14 16:52:07 +000013149rm -f conftest.err conftest.$ac_ext
13150
13151done
13152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13153rm -f conftest.err conftest.$ac_ext
13154if $ac_preproc_ok; then
13155 :
13156else
John Criswell0c38eaf2003-09-10 15:17:25 +000013157 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13158See \`config.log' for more details." >&5
13159echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13160See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013161 { (exit 1); exit 1; }; }
13162fi
13163
Reid Spencera773bd52006-08-04 18:18:08 +000013164ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013165ac_cpp='$CXXCPP $CPPFLAGS'
13166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13169
Reid Spencer2706f8c2004-09-19 23:53:36 +000013170fi
13171
John Criswell47fdd832003-07-14 16:52:07 +000013172
13173ac_ext=f
13174ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13175ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13177if test -n "$ac_tool_prefix"; then
Tanya Lattnercf067672008-01-17 05:57:22 +000013178 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 +000013179 do
13180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013184if test "${ac_cv_prog_F77+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186else
13187 if test -n "$F77"; then
13188 ac_cv_prog_F77="$F77" # Let the user override the test.
13189else
13190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191for as_dir in $PATH
13192do
13193 IFS=$as_save_IFS
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013196 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 +000013197 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13199 break 2
13200 fi
13201done
13202done
Reid Spencera773bd52006-08-04 18:18:08 +000013203IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013204
13205fi
13206fi
13207F77=$ac_cv_prog_F77
13208if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013209 { echo "$as_me:$LINENO: result: $F77" >&5
13210echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013211else
Reid Spencera773bd52006-08-04 18:18:08 +000013212 { echo "$as_me:$LINENO: result: no" >&5
13213echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013214fi
13215
Reid Spencera773bd52006-08-04 18:18:08 +000013216
John Criswell47fdd832003-07-14 16:52:07 +000013217 test -n "$F77" && break
13218 done
13219fi
13220if test -z "$F77"; then
13221 ac_ct_F77=$F77
Tanya Lattnercf067672008-01-17 05:57:22 +000013222 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 +000013223do
13224 # Extract the first word of "$ac_prog", so it can be a program name with args.
13225set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013228if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13230else
13231 if test -n "$ac_ct_F77"; then
13232 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13233else
13234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235for as_dir in $PATH
13236do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013240 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 +000013241 ac_cv_prog_ac_ct_F77="$ac_prog"
13242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245done
13246done
Reid Spencera773bd52006-08-04 18:18:08 +000013247IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013248
13249fi
13250fi
13251ac_ct_F77=$ac_cv_prog_ac_ct_F77
13252if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013253 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13254echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013255else
Reid Spencera773bd52006-08-04 18:18:08 +000013256 { echo "$as_me:$LINENO: result: no" >&5
13257echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013258fi
13259
Reid Spencera773bd52006-08-04 18:18:08 +000013260
John Criswell47fdd832003-07-14 16:52:07 +000013261 test -n "$ac_ct_F77" && break
13262done
13263
Reid Spencera773bd52006-08-04 18:18:08 +000013264 if test "x$ac_ct_F77" = x; then
13265 F77=""
13266 else
13267 case $cross_compiling:$ac_tool_warned in
13268yes:)
13269{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13270whose name does not start with the host triplet. If you think this
13271configuration is useful to you, please write to autoconf@gnu.org." >&5
13272echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13273whose name does not start with the host triplet. If you think this
13274configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13275ac_tool_warned=yes ;;
13276esac
13277 F77=$ac_ct_F77
13278 fi
John Criswell47fdd832003-07-14 16:52:07 +000013279fi
13280
13281
13282# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013283echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013284ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013285{ (ac_try="$ac_compiler --version >&5"
13286case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13289esac
13290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013295{ (ac_try="$ac_compiler -v >&5"
13296case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13299esac
13300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013305{ (ac_try="$ac_compiler -V >&5"
13306case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13309esac
13310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013315rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013316
13317# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013318# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013319ac_save_ext=$ac_ext
13320ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013321{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13322echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013323if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325else
13326 cat >conftest.$ac_ext <<_ACEOF
13327 program main
13328#ifndef __GNUC__
13329 choke me
13330#endif
13331
13332 end
13333_ACEOF
13334rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013335if { (ac_try="$ac_compile"
13336case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13339esac
13340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013342 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013343 grep -v '^ *+' conftest.er1 >conftest.err
13344 rm -f conftest.er1
13345 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013347 (exit $ac_status); } &&
13348 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13349 { (case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352esac
13353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_try") 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; } &&
13358 { ac_try='test -s conftest.$ac_objext'
13359 { (case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362esac
13363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_try") 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013368 ac_compiler_gnu=yes
13369else
13370 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013371sed 's/^/| /' conftest.$ac_ext >&5
13372
Reid Spencera773bd52006-08-04 18:18:08 +000013373 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013374fi
Reid Spencera773bd52006-08-04 18:18:08 +000013375
13376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013377ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13378
13379fi
Reid Spencera773bd52006-08-04 18:18:08 +000013380{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13381echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013382ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013383ac_test_FFLAGS=${FFLAGS+set}
13384ac_save_FFLAGS=$FFLAGS
13385FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013386{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13387echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013388if test "${ac_cv_prog_f77_g+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390else
13391 FFLAGS=-g
13392cat >conftest.$ac_ext <<_ACEOF
13393 program main
13394
13395 end
13396_ACEOF
13397rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013398if { (ac_try="$ac_compile"
13399case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402esac
13403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013405 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013410 (exit $ac_status); } &&
13411 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13412 { (case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415esac
13416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_try") 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; } &&
13421 { ac_try='test -s conftest.$ac_objext'
13422 { (case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425esac
13426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_try") 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013431 ac_cv_prog_f77_g=yes
13432else
13433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013434sed 's/^/| /' conftest.$ac_ext >&5
13435
Reid Spencera773bd52006-08-04 18:18:08 +000013436 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013437fi
Reid Spencera773bd52006-08-04 18:18:08 +000013438
13439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013440
13441fi
Reid Spencera773bd52006-08-04 18:18:08 +000013442{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13443echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013444if test "$ac_test_FFLAGS" = set; then
13445 FFLAGS=$ac_save_FFLAGS
13446elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013447 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013448 FFLAGS="-g -O2"
13449 else
13450 FFLAGS="-g"
13451 fi
13452else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013454 FFLAGS="-O2"
13455 else
13456 FFLAGS=
13457 fi
13458fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013459
13460G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013461ac_ext=c
13462ac_cpp='$CPP $CPPFLAGS'
13463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465ac_compiler_gnu=$ac_cv_c_compiler_gnu
13466
13467
13468
13469# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13470
13471# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013472{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13473echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013474if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13476else
13477 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013478 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013479
13480 case $build_os in
13481 msdosdjgpp*)
13482 # On DJGPP, this test can blow up pretty badly due to problems in libc
13483 # (any single argument exceeding 2000 bytes causes a buffer overrun
13484 # during glob expansion). Even if it were fixed, the result of this
13485 # check would be larger than it should be.
13486 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13487 ;;
13488
13489 gnu*)
13490 # Under GNU Hurd, this test is not required because there is
13491 # no limit to the length of command line arguments.
13492 # Libtool will interpret -1 as no limit whatsoever
13493 lt_cv_sys_max_cmd_len=-1;
13494 ;;
13495
13496 cygwin* | mingw*)
13497 # On Win9x/ME, this test blows up -- it succeeds, but takes
13498 # about 5 minutes as the teststring grows exponentially.
13499 # Worse, since 9x/ME are not pre-emptively multitasking,
13500 # you end up with a "frozen" computer, even though with patience
13501 # the test eventually succeeds (with a max line length of 256k).
13502 # Instead, let's just punt: use the minimum linelength reported by
13503 # all of the supported platforms: 8192 (on NT/2K/XP).
13504 lt_cv_sys_max_cmd_len=8192;
13505 ;;
13506
Reid Spencer2706f8c2004-09-19 23:53:36 +000013507 amigaos*)
13508 # On AmigaOS with pdksh, this test takes hours, literally.
13509 # So we just punt and use a minimum line length of 8192.
13510 lt_cv_sys_max_cmd_len=8192;
13511 ;;
13512
Reid Spencera773bd52006-08-04 18:18:08 +000013513 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013514 # This has been around since 386BSD, at least. Likely further.
13515 if test -x /sbin/sysctl; then
13516 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13517 elif test -x /usr/sbin/sysctl; then
13518 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13519 else
Reid Spencera773bd52006-08-04 18:18:08 +000013520 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013521 fi
13522 # And add a safety zone
13523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013525 ;;
13526
Reid Spencera773bd52006-08-04 18:18:08 +000013527 interix*)
13528 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13529 lt_cv_sys_max_cmd_len=196608
13530 ;;
13531
13532 osf*)
13533 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13534 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13535 # nice to cause kernel panics so lets avoid the loop below.
13536 # First set a reasonable default.
13537 lt_cv_sys_max_cmd_len=16384
13538 #
13539 if test -x /sbin/sysconfig; then
13540 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13541 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13542 esac
13543 fi
13544 ;;
13545 sco3.2v5*)
13546 lt_cv_sys_max_cmd_len=102400
13547 ;;
13548 sysv5* | sco5v6* | sysv4.2uw2*)
13549 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13550 if test -n "$kargmax"; then
13551 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13552 else
13553 lt_cv_sys_max_cmd_len=32768
13554 fi
13555 ;;
13556 *)
John Criswell47fdd832003-07-14 16:52:07 +000013557 # If test is not a shell built-in, we'll probably end up computing a
13558 # maximum length that is only half of the actual maximum length, but
13559 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013560 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13561 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13562 = "XX$teststring") >/dev/null 2>&1 &&
13563 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013564 lt_cv_sys_max_cmd_len=$new_result &&
13565 test $i != 17 # 1/2 MB should be enough
13566 do
13567 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013568 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013569 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013570 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013571 # Add a significant safety factor because C++ compilers can tack on massive
13572 # amounts of additional arguments before passing them to the linker.
13573 # It appears as though 1/2 is a usable value.
13574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13575 ;;
13576 esac
13577
13578fi
13579
13580if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013581 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13582echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013583else
Reid Spencera773bd52006-08-04 18:18:08 +000013584 { echo "$as_me:$LINENO: result: none" >&5
13585echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013586fi
13587
13588
13589
13590
13591# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013592{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13593echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013594if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13596else
13597
13598# These are sane defaults that work on at least a few old systems.
13599# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13600
13601# Character class describing NM global symbol codes.
13602symcode='[BCDEGRST]'
13603
13604# Regexp to match symbols that can be accessed directly from C.
13605sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13606
John Criswell47fdd832003-07-14 16:52:07 +000013607# Transform an extracted symbol line into a proper C declaration
13608lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13609
13610# Transform an extracted symbol line into symbol name and symbol address
13611lt_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'"
13612
13613# Define system-specific variables.
13614case $host_os in
13615aix*)
13616 symcode='[BCDT]'
13617 ;;
13618cygwin* | mingw* | pw32*)
13619 symcode='[ABCDGISTW]'
13620 ;;
13621hpux*) # Its linker distinguishes data from code symbols
13622 if test "$host_cpu" = ia64; then
13623 symcode='[ABCDEGRST]'
13624 fi
13625 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13626 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'"
13627 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013628linux*)
13629 if test "$host_cpu" = ia64; then
13630 symcode='[ABCDGIRSTW]'
13631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13632 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'"
13633 fi
13634 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013635irix* | nonstopux*)
13636 symcode='[BCDEGRST]'
13637 ;;
13638osf*)
13639 symcode='[BCDEGQRST]'
13640 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013641solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013642 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013643 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013644sco3.2v5*)
13645 symcode='[DT]'
13646 ;;
13647sysv4.2uw2*)
13648 symcode='[DT]'
13649 ;;
13650sysv5* | sco5v6* | unixware* | OpenUNIX*)
13651 symcode='[ABDT]'
13652 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013653sysv4)
13654 symcode='[DFNSTU]'
13655 ;;
13656esac
13657
13658# Handle CRLF in mingw tool chain
13659opt_cr=
13660case $build_os in
13661mingw*)
13662 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13663 ;;
13664esac
13665
13666# If we're using GNU nm, then use its standard symbol codes.
13667case `$NM -V 2>&1` in
13668*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013669 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013670esac
13671
13672# Try without a prefix undercore, then with it.
13673for ac_symprfx in "" "_"; do
13674
Reid Spencera773bd52006-08-04 18:18:08 +000013675 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13676 symxfrm="\\1 $ac_symprfx\\2 \\2"
13677
John Criswell47fdd832003-07-14 16:52:07 +000013678 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013679 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 +000013680
13681 # Check to see that the pipe works correctly.
13682 pipe_works=no
13683
13684 rm -f conftest*
13685 cat > conftest.$ac_ext <<EOF
13686#ifdef __cplusplus
13687extern "C" {
13688#endif
13689char nm_test_var;
13690void nm_test_func(){}
13691#ifdef __cplusplus
13692}
13693#endif
13694int main(){nm_test_var='a';nm_test_func();return(0);}
13695EOF
13696
13697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13698 (eval $ac_compile) 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; then
13702 # Now try to grab the symbols.
13703 nlist=conftest.nm
13704 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13705 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && test -s "$nlist"; then
13709 # Try sorting and uniquifying the output.
13710 if sort "$nlist" | uniq > "$nlist"T; then
13711 mv -f "$nlist"T "$nlist"
13712 else
13713 rm -f "$nlist"T
13714 fi
13715
13716 # Make sure that we snagged all the symbols we need.
13717 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13718 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13719 cat <<EOF > conftest.$ac_ext
13720#ifdef __cplusplus
13721extern "C" {
13722#endif
13723
13724EOF
13725 # Now generate the symbol file.
13726 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13727
13728 cat <<EOF >> conftest.$ac_ext
13729#if defined (__STDC__) && __STDC__
13730# define lt_ptr_t void *
13731#else
13732# define lt_ptr_t char *
13733# define const
13734#endif
13735
13736/* The mapping between symbol names and symbols. */
13737const struct {
13738 const char *name;
13739 lt_ptr_t address;
13740}
13741lt_preloaded_symbols[] =
13742{
13743EOF
13744 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13745 cat <<\EOF >> conftest.$ac_ext
13746 {0, (lt_ptr_t) 0}
13747};
13748
13749#ifdef __cplusplus
13750}
13751#endif
13752EOF
13753 # Now try linking the two files.
13754 mv conftest.$ac_objext conftstm.$ac_objext
13755 lt_save_LIBS="$LIBS"
13756 lt_save_CFLAGS="$CFLAGS"
13757 LIBS="conftstm.$ac_objext"
13758 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13760 (eval $ac_link) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13764 pipe_works=yes
13765 fi
13766 LIBS="$lt_save_LIBS"
13767 CFLAGS="$lt_save_CFLAGS"
13768 else
13769 echo "cannot find nm_test_func in $nlist" >&5
13770 fi
13771 else
13772 echo "cannot find nm_test_var in $nlist" >&5
13773 fi
13774 else
13775 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13776 fi
13777 else
13778 echo "$progname: failed program was:" >&5
13779 cat conftest.$ac_ext >&5
13780 fi
13781 rm -f conftest* conftst*
13782
13783 # Do not use the global_symbol_pipe unless it works.
13784 if test "$pipe_works" = yes; then
13785 break
13786 else
13787 lt_cv_sys_global_symbol_pipe=
13788 fi
13789done
13790
13791fi
13792
13793if test -z "$lt_cv_sys_global_symbol_pipe"; then
13794 lt_cv_sys_global_symbol_to_cdecl=
13795fi
13796if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013797 { echo "$as_me:$LINENO: result: failed" >&5
13798echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013799else
Reid Spencera773bd52006-08-04 18:18:08 +000013800 { echo "$as_me:$LINENO: result: ok" >&5
13801echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013802fi
13803
Reid Spencera773bd52006-08-04 18:18:08 +000013804{ echo "$as_me:$LINENO: checking for objdir" >&5
13805echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013806if test "${lt_cv_objdir+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808else
13809 rm -f .libs 2>/dev/null
13810mkdir .libs 2>/dev/null
13811if test -d .libs; then
13812 lt_cv_objdir=.libs
13813else
13814 # MS-DOS does not allow filenames that begin with a dot.
13815 lt_cv_objdir=_libs
13816fi
13817rmdir .libs 2>/dev/null
13818fi
Reid Spencera773bd52006-08-04 18:18:08 +000013819{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13820echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013821objdir=$lt_cv_objdir
13822
13823
13824
13825
13826
13827case $host_os in
13828aix3*)
13829 # AIX sometimes has problems with the GCC collect2 program. For some
13830 # reason, if we set the COLLECT_NAMES environment variable, the problems
13831 # vanish in a puff of smoke.
13832 if test "X${COLLECT_NAMES+set}" != Xset; then
13833 COLLECT_NAMES=
13834 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013835 fi
13836 ;;
13837esac
13838
John Criswell47fdd832003-07-14 16:52:07 +000013839# Sed substitution that helps us do robust quoting. It backslashifies
13840# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013841Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013842sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13843
13844# Same as above, but do not quote variable references.
13845double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13846
13847# Sed substitution to delay expansion of an escaped shell variable in a
13848# double_quote_subst'ed string.
13849delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13850
13851# Sed substitution to avoid accidental globbing in evaled expressions
13852no_glob_subst='s/\*/\\\*/g'
13853
13854# Constants:
13855rm="rm -f"
13856
13857# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013858default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013859can_build_shared=yes
13860
Reid Spencera773bd52006-08-04 18:18:08 +000013861# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013862# which needs '.lib').
13863libext=a
13864ltmain="$ac_aux_dir/ltmain.sh"
13865ofile="$default_ofile"
13866with_gnu_ld="$lt_cv_prog_gnu_ld"
13867
13868if test -n "$ac_tool_prefix"; then
13869 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13870set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013873if test "${ac_cv_prog_AR+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875else
13876 if test -n "$AR"; then
13877 ac_cv_prog_AR="$AR" # Let the user override the test.
13878else
13879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880for as_dir in $PATH
13881do
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013885 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 +000013886 ac_cv_prog_AR="${ac_tool_prefix}ar"
13887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 break 2
13889 fi
13890done
13891done
Reid Spencera773bd52006-08-04 18:18:08 +000013892IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013893
13894fi
13895fi
13896AR=$ac_cv_prog_AR
13897if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013898 { echo "$as_me:$LINENO: result: $AR" >&5
13899echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013900else
Reid Spencera773bd52006-08-04 18:18:08 +000013901 { echo "$as_me:$LINENO: result: no" >&5
13902echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013903fi
13904
Reid Spencera773bd52006-08-04 18:18:08 +000013905
John Criswell47fdd832003-07-14 16:52:07 +000013906fi
13907if test -z "$ac_cv_prog_AR"; then
13908 ac_ct_AR=$AR
13909 # Extract the first word of "ar", so it can be a program name with args.
13910set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013913if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915else
13916 if test -n "$ac_ct_AR"; then
13917 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13918else
13919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920for as_dir in $PATH
13921do
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013925 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 +000013926 ac_cv_prog_ac_ct_AR="ar"
13927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13928 break 2
13929 fi
13930done
13931done
Reid Spencera773bd52006-08-04 18:18:08 +000013932IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013933
John Criswell47fdd832003-07-14 16:52:07 +000013934fi
13935fi
13936ac_ct_AR=$ac_cv_prog_ac_ct_AR
13937if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013938 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13939echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013940else
Reid Spencera773bd52006-08-04 18:18:08 +000013941 { echo "$as_me:$LINENO: result: no" >&5
13942echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013943fi
13944
Reid Spencera773bd52006-08-04 18:18:08 +000013945 if test "x$ac_ct_AR" = x; then
13946 AR="false"
13947 else
13948 case $cross_compiling:$ac_tool_warned in
13949yes:)
13950{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13951whose name does not start with the host triplet. If you think this
13952configuration is useful to you, please write to autoconf@gnu.org." >&5
13953echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13954whose name does not start with the host triplet. If you think this
13955configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13956ac_tool_warned=yes ;;
13957esac
13958 AR=$ac_ct_AR
13959 fi
John Criswell47fdd832003-07-14 16:52:07 +000013960else
13961 AR="$ac_cv_prog_AR"
13962fi
13963
John Criswell7a73b802003-06-30 21:59:07 +000013964if test -n "$ac_tool_prefix"; then
13965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13966set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013969if test "${ac_cv_prog_RANLIB+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
13972 if test -n "$RANLIB"; then
13973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13974else
13975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976for as_dir in $PATH
13977do
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013981 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 +000013982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13985 fi
13986done
13987done
Reid Spencera773bd52006-08-04 18:18:08 +000013988IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013989
13990fi
13991fi
13992RANLIB=$ac_cv_prog_RANLIB
13993if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013994 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13995echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013996else
Reid Spencera773bd52006-08-04 18:18:08 +000013997 { echo "$as_me:$LINENO: result: no" >&5
13998echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013999fi
14000
Reid Spencera773bd52006-08-04 18:18:08 +000014001
John Criswell7a73b802003-06-30 21:59:07 +000014002fi
14003if test -z "$ac_cv_prog_RANLIB"; then
14004 ac_ct_RANLIB=$RANLIB
14005 # Extract the first word of "ranlib", so it can be a program name with args.
14006set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014009if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14011else
14012 if test -n "$ac_ct_RANLIB"; then
14013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14014else
14015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016for as_dir in $PATH
14017do
14018 IFS=$as_save_IFS
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014021 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 +000014022 ac_cv_prog_ac_ct_RANLIB="ranlib"
14023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14024 break 2
14025 fi
14026done
14027done
Reid Spencera773bd52006-08-04 18:18:08 +000014028IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014029
John Criswell7a73b802003-06-30 21:59:07 +000014030fi
14031fi
14032ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14033if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014034 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14035echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014036else
Reid Spencera773bd52006-08-04 18:18:08 +000014037 { echo "$as_me:$LINENO: result: no" >&5
14038echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014039fi
14040
Reid Spencera773bd52006-08-04 18:18:08 +000014041 if test "x$ac_ct_RANLIB" = x; then
14042 RANLIB=":"
14043 else
14044 case $cross_compiling:$ac_tool_warned in
14045yes:)
14046{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14047whose name does not start with the host triplet. If you think this
14048configuration is useful to you, please write to autoconf@gnu.org." >&5
14049echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14050whose name does not start with the host triplet. If you think this
14051configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14052ac_tool_warned=yes ;;
14053esac
14054 RANLIB=$ac_ct_RANLIB
14055 fi
John Criswell7a73b802003-06-30 21:59:07 +000014056else
14057 RANLIB="$ac_cv_prog_RANLIB"
14058fi
14059
14060if test -n "$ac_tool_prefix"; then
14061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14062set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014065if test "${ac_cv_prog_STRIP+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067else
14068 if test -n "$STRIP"; then
14069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14070else
14071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072for as_dir in $PATH
14073do
14074 IFS=$as_save_IFS
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014077 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 +000014078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14080 break 2
14081 fi
14082done
14083done
Reid Spencera773bd52006-08-04 18:18:08 +000014084IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014085
14086fi
14087fi
14088STRIP=$ac_cv_prog_STRIP
14089if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014090 { echo "$as_me:$LINENO: result: $STRIP" >&5
14091echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014092else
Reid Spencera773bd52006-08-04 18:18:08 +000014093 { echo "$as_me:$LINENO: result: no" >&5
14094echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014095fi
14096
Reid Spencera773bd52006-08-04 18:18:08 +000014097
John Criswell7a73b802003-06-30 21:59:07 +000014098fi
14099if test -z "$ac_cv_prog_STRIP"; then
14100 ac_ct_STRIP=$STRIP
14101 # Extract the first word of "strip", so it can be a program name with args.
14102set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014105if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107else
14108 if test -n "$ac_ct_STRIP"; then
14109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14110else
14111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112for as_dir in $PATH
14113do
14114 IFS=$as_save_IFS
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014117 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 +000014118 ac_cv_prog_ac_ct_STRIP="strip"
14119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14120 break 2
14121 fi
14122done
14123done
Reid Spencera773bd52006-08-04 18:18:08 +000014124IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014125
John Criswell7a73b802003-06-30 21:59:07 +000014126fi
14127fi
14128ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14129if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014130 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14131echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014132else
Reid Spencera773bd52006-08-04 18:18:08 +000014133 { echo "$as_me:$LINENO: result: no" >&5
14134echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014135fi
14136
Reid Spencera773bd52006-08-04 18:18:08 +000014137 if test "x$ac_ct_STRIP" = x; then
14138 STRIP=":"
14139 else
14140 case $cross_compiling:$ac_tool_warned in
14141yes:)
14142{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14143whose name does not start with the host triplet. If you think this
14144configuration is useful to you, please write to autoconf@gnu.org." >&5
14145echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14146whose name does not start with the host triplet. If you think this
14147configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14148ac_tool_warned=yes ;;
14149esac
14150 STRIP=$ac_ct_STRIP
14151 fi
John Criswell7a73b802003-06-30 21:59:07 +000014152else
14153 STRIP="$ac_cv_prog_STRIP"
14154fi
14155
14156
John Criswell7a73b802003-06-30 21:59:07 +000014157old_CC="$CC"
14158old_CFLAGS="$CFLAGS"
14159
14160# Set sane defaults for various variables
14161test -z "$AR" && AR=ar
14162test -z "$AR_FLAGS" && AR_FLAGS=cru
14163test -z "$AS" && AS=as
14164test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014165test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014166test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014167test -z "$DLLTOOL" && DLLTOOL=dlltool
14168test -z "$LD" && LD=ld
14169test -z "$LN_S" && LN_S="ln -s"
14170test -z "$MAGIC_CMD" && MAGIC_CMD=file
14171test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014172test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014173test -z "$OBJDUMP" && OBJDUMP=objdump
14174test -z "$RANLIB" && RANLIB=:
14175test -z "$STRIP" && STRIP=:
14176test -z "$ac_objext" && ac_objext=o
14177
John Criswell7a73b802003-06-30 21:59:07 +000014178# Determine commands to create old-style static archives.
14179old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14180old_postinstall_cmds='chmod 644 $oldlib'
14181old_postuninstall_cmds=
14182
14183if test -n "$RANLIB"; then
14184 case $host_os in
14185 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014187 ;;
14188 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014190 ;;
14191 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014193fi
14194
Reid Spencera773bd52006-08-04 18:18:08 +000014195for cc_temp in $compiler""; do
14196 case $cc_temp in
14197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14199 \-*) ;;
14200 *) break;;
14201 esac
14202done
14203cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14204
Reid Spencer2706f8c2004-09-19 23:53:36 +000014205
John Criswell47fdd832003-07-14 16:52:07 +000014206# Only perform the check for file, if the check method requires it
14207case $deplibs_check_method in
14208file_magic*)
14209 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014210 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14211echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014212if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014214else
John Criswell47fdd832003-07-14 16:52:07 +000014215 case $MAGIC_CMD in
14216[\\/*] | ?:[\\/]*)
14217 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14218 ;;
14219*)
14220 lt_save_MAGIC_CMD="$MAGIC_CMD"
14221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14222 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14223 for ac_dir in $ac_dummy; do
14224 IFS="$lt_save_ifs"
14225 test -z "$ac_dir" && ac_dir=.
14226 if test -f $ac_dir/${ac_tool_prefix}file; then
14227 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14228 if test -n "$file_magic_test_file"; then
14229 case $deplibs_check_method in
14230 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014231 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14233 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14234 $EGREP "$file_magic_regex" > /dev/null; then
14235 :
14236 else
14237 cat <<EOF 1>&2
14238
14239*** Warning: the command libtool uses to detect shared libraries,
14240*** $file_magic_cmd, produces output that libtool cannot recognize.
14241*** The result is that libtool may fail to recognize shared libraries
14242*** as such. This will affect the creation of libtool libraries that
14243*** depend on shared libraries, but programs linked with such libtool
14244*** libraries will work regardless of this problem. Nevertheless, you
14245*** may want to report the problem to your system manager and/or to
14246*** bug-libtool@gnu.org
14247
14248EOF
14249 fi ;;
14250 esac
14251 fi
14252 break
14253 fi
14254 done
14255 IFS="$lt_save_ifs"
14256 MAGIC_CMD="$lt_save_MAGIC_CMD"
14257 ;;
14258esac
John Criswell7a73b802003-06-30 21:59:07 +000014259fi
John Criswell7a73b802003-06-30 21:59:07 +000014260
John Criswell47fdd832003-07-14 16:52:07 +000014261MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14262if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014263 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14264echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014265else
Reid Spencera773bd52006-08-04 18:18:08 +000014266 { echo "$as_me:$LINENO: result: no" >&5
14267echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014268fi
John Criswell7a73b802003-06-30 21:59:07 +000014269
John Criswell47fdd832003-07-14 16:52:07 +000014270if test -z "$lt_cv_path_MAGIC_CMD"; then
14271 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014272 { echo "$as_me:$LINENO: checking for file" >&5
14273echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014274if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14276else
14277 case $MAGIC_CMD in
14278[\\/*] | ?:[\\/]*)
14279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14280 ;;
14281*)
14282 lt_save_MAGIC_CMD="$MAGIC_CMD"
14283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14285 for ac_dir in $ac_dummy; do
14286 IFS="$lt_save_ifs"
14287 test -z "$ac_dir" && ac_dir=.
14288 if test -f $ac_dir/file; then
14289 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14290 if test -n "$file_magic_test_file"; then
14291 case $deplibs_check_method in
14292 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14296 $EGREP "$file_magic_regex" > /dev/null; then
14297 :
14298 else
14299 cat <<EOF 1>&2
14300
14301*** Warning: the command libtool uses to detect shared libraries,
14302*** $file_magic_cmd, produces output that libtool cannot recognize.
14303*** The result is that libtool may fail to recognize shared libraries
14304*** as such. This will affect the creation of libtool libraries that
14305*** depend on shared libraries, but programs linked with such libtool
14306*** libraries will work regardless of this problem. Nevertheless, you
14307*** may want to report the problem to your system manager and/or to
14308*** bug-libtool@gnu.org
14309
14310EOF
14311 fi ;;
14312 esac
14313 fi
14314 break
14315 fi
14316 done
14317 IFS="$lt_save_ifs"
14318 MAGIC_CMD="$lt_save_MAGIC_CMD"
14319 ;;
14320esac
14321fi
14322
14323MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14324if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014325 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14326echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014327else
Reid Spencera773bd52006-08-04 18:18:08 +000014328 { echo "$as_me:$LINENO: result: no" >&5
14329echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014330fi
14331
14332 else
14333 MAGIC_CMD=:
14334 fi
14335fi
14336
14337 fi
14338 ;;
14339esac
14340
Reid Spencer17795972004-11-18 09:47:37 +000014341enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014342enable_win32_dll=no
14343
Reid Spencera773bd52006-08-04 18:18:08 +000014344# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014345if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014346 enableval=$enable_libtool_lock;
14347fi
John Criswell47fdd832003-07-14 16:52:07 +000014348
John Criswell47fdd832003-07-14 16:52:07 +000014349test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14350
John Criswell7a73b802003-06-30 21:59:07 +000014351
Reid Spencera773bd52006-08-04 18:18:08 +000014352# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014353if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014354 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014355else
14356 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014357fi
14358
John Criswell7a73b802003-06-30 21:59:07 +000014359test -z "$pic_mode" && pic_mode=default
14360
John Criswell47fdd832003-07-14 16:52:07 +000014361# Use C for the default configuration in the libtool script
14362tagname=
14363lt_save_CC="$CC"
14364ac_ext=c
14365ac_cpp='$CPP $CPPFLAGS'
14366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14368ac_compiler_gnu=$ac_cv_c_compiler_gnu
14369
14370
14371# Source file extension for C test sources.
14372ac_ext=c
14373
14374# Object file extension for compiled C test sources.
14375objext=o
14376objext=$objext
14377
14378# Code to be used in simple compile tests
14379lt_simple_compile_test_code="int some_variable = 0;\n"
14380
14381# Code to be used in simple link tests
14382lt_simple_link_test_code='int main(){return(0);}\n'
14383
14384
14385# If no C compiler was specified, use CC.
14386LTCC=${LTCC-"$CC"}
14387
Reid Spencera773bd52006-08-04 18:18:08 +000014388# If no C compiler flags were specified, use CFLAGS.
14389LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14390
John Criswell47fdd832003-07-14 16:52:07 +000014391# Allow CC to be a program name with arguments.
14392compiler=$CC
14393
14394
Reid Spencera773bd52006-08-04 18:18:08 +000014395# save warnings/boilerplate of simple test code
14396ac_outfile=conftest.$ac_objext
14397printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14398eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14399_lt_compiler_boilerplate=`cat conftest.err`
14400$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014401
Reid Spencera773bd52006-08-04 18:18:08 +000014402ac_outfile=conftest.$ac_objext
14403printf "$lt_simple_link_test_code" >conftest.$ac_ext
14404eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14405_lt_linker_boilerplate=`cat conftest.err`
14406$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014407
14408
John Criswell47fdd832003-07-14 16:52:07 +000014409
14410lt_prog_compiler_no_builtin_flag=
14411
14412if test "$GCC" = yes; then
14413 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14414
Reid Spencer2706f8c2004-09-19 23:53:36 +000014415
Reid Spencera773bd52006-08-04 18:18:08 +000014416{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14417echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014418if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420else
14421 lt_cv_prog_compiler_rtti_exceptions=no
14422 ac_outfile=conftest.$ac_objext
14423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14424 lt_compiler_flag="-fno-rtti -fno-exceptions"
14425 # Insert the option either (1) after the last *FLAGS variable, or
14426 # (2) before a word containing "conftest.", or (3) at the end.
14427 # Note that $ac_compile itself does not contain backslashes and begins
14428 # with a dollar sign (not a hyphen), so the echo should work correctly.
14429 # The option is referenced via a variable to avoid confusing sed.
14430 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14433 -e 's:$: $lt_compiler_flag:'`
Bill Wendling41ef25b2008-03-05 09:28:02 +000014434 (eval echo "\"\$as_me:14434: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014435 (eval "$lt_compile" 2>conftest.err)
14436 ac_status=$?
14437 cat conftest.err >&5
Bill Wendling41ef25b2008-03-05 09:28:02 +000014438 echo "$as_me:14438: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014439 if (exit $ac_status) && test -s "$ac_outfile"; then
14440 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014441 # So say no if there are warnings other than the usual output.
14442 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014445 lt_cv_prog_compiler_rtti_exceptions=yes
14446 fi
14447 fi
14448 $rm conftest*
14449
14450fi
Reid Spencera773bd52006-08-04 18:18:08 +000014451{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14452echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014453
14454if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14455 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14456else
14457 :
14458fi
14459
14460fi
14461
14462lt_prog_compiler_wl=
14463lt_prog_compiler_pic=
14464lt_prog_compiler_static=
14465
Reid Spencera773bd52006-08-04 18:18:08 +000014466{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14467echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014468
14469 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014470 lt_prog_compiler_wl='-Wl,'
14471 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014472
14473 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014474 aix*)
14475 # All AIX code is PIC.
14476 if test "$host_cpu" = ia64; then
14477 # AIX 5 now supports IA64 processor
14478 lt_prog_compiler_static='-Bstatic'
14479 fi
John Criswell7a73b802003-06-30 21:59:07 +000014480 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014481
John Criswell7a73b802003-06-30 21:59:07 +000014482 amigaos*)
14483 # FIXME: we need at least 68020 code to build shared libraries, but
14484 # adding the `-m68020' flag to GCC prevents building anything better,
14485 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014486 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014487 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014488
14489 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014490 # PIC is the default for these OSes.
14491 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014492
14493 mingw* | pw32* | os2*)
14494 # This hack is so that the source file can tell whether it is being
14495 # built for inclusion in a dll (and should export symbols for example).
14496 lt_prog_compiler_pic='-DDLL_EXPORT'
14497 ;;
14498
John Criswell7a73b802003-06-30 21:59:07 +000014499 darwin* | rhapsody*)
14500 # PIC is the default on this platform
14501 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014502 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014503 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014504
Reid Spencera773bd52006-08-04 18:18:08 +000014505 interix3*)
14506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14507 # Instead, we relocate shared libraries at runtime.
14508 ;;
14509
John Criswell47fdd832003-07-14 16:52:07 +000014510 msdosdjgpp*)
14511 # Just because we use GCC doesn't mean we suddenly get shared libraries
14512 # on systems that don't support them.
14513 lt_prog_compiler_can_build_shared=no
14514 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014515 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014516
John Criswell7a73b802003-06-30 21:59:07 +000014517 sysv4*MP*)
14518 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014519 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014520 fi
14521 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014522
14523 hpux*)
14524 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14525 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014526 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014527 hppa*64*|ia64*)
14528 # +Z the default
14529 ;;
14530 *)
14531 lt_prog_compiler_pic='-fPIC'
14532 ;;
14533 esac
14534 ;;
14535
John Criswell7a73b802003-06-30 21:59:07 +000014536 *)
John Criswell47fdd832003-07-14 16:52:07 +000014537 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014538 ;;
14539 esac
14540 else
John Criswell47fdd832003-07-14 16:52:07 +000014541 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014542 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014543 aix*)
14544 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014545 if test "$host_cpu" = ia64; then
14546 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014547 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014548 else
John Criswell47fdd832003-07-14 16:52:07 +000014549 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014550 fi
14551 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014552 darwin*)
14553 # PIC is the default on this platform
14554 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014555 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014556 xlc*)
14557 lt_prog_compiler_pic='-qnocommon'
14558 lt_prog_compiler_wl='-Wl,'
14559 ;;
14560 esac
14561 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014562
John Criswell47fdd832003-07-14 16:52:07 +000014563 mingw* | pw32* | os2*)
14564 # This hack is so that the source file can tell whether it is being
14565 # built for inclusion in a dll (and should export symbols for example).
14566 lt_prog_compiler_pic='-DDLL_EXPORT'
14567 ;;
14568
John Criswell7a73b802003-06-30 21:59:07 +000014569 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014570 lt_prog_compiler_wl='-Wl,'
14571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14572 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014573 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014574 hppa*64*|ia64*)
14575 # +Z the default
14576 ;;
14577 *)
14578 lt_prog_compiler_pic='+Z'
14579 ;;
14580 esac
14581 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14582 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014583 ;;
14584
John Criswell47fdd832003-07-14 16:52:07 +000014585 irix5* | irix6* | nonstopux*)
14586 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014587 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014588 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014589 ;;
14590
14591 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014592 lt_prog_compiler_pic='-KPIC'
14593 lt_prog_compiler_static='-Bstatic'
14594 ;;
14595
14596 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014597 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014598 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014599 lt_prog_compiler_wl='-Wl,'
14600 lt_prog_compiler_pic='-KPIC'
14601 lt_prog_compiler_static='-static'
14602 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014603 pgcc* | pgf77* | pgf90* | pgf95*)
14604 # Portland Group compilers (*not* the Pentium gcc compiler,
14605 # which looks to be a dead project)
14606 lt_prog_compiler_wl='-Wl,'
14607 lt_prog_compiler_pic='-fpic'
14608 lt_prog_compiler_static='-Bstatic'
14609 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014610 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014611 lt_prog_compiler_wl='-Wl,'
14612 # All Alpha code is PIC.
14613 lt_prog_compiler_static='-non_shared'
14614 ;;
14615 esac
John Criswell7a73b802003-06-30 21:59:07 +000014616 ;;
14617
14618 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014619 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014620 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014621 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014622 ;;
14623
John Criswell7a73b802003-06-30 21:59:07 +000014624 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014625 lt_prog_compiler_pic='-KPIC'
14626 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014627 case $cc_basename in
14628 f77* | f90* | f95*)
14629 lt_prog_compiler_wl='-Qoption ld ';;
14630 *)
14631 lt_prog_compiler_wl='-Wl,';;
14632 esac
John Criswell7a73b802003-06-30 21:59:07 +000014633 ;;
14634
14635 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014636 lt_prog_compiler_wl='-Qoption ld '
14637 lt_prog_compiler_pic='-PIC'
14638 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014639 ;;
14640
Reid Spencera773bd52006-08-04 18:18:08 +000014641 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014642 lt_prog_compiler_wl='-Wl,'
14643 lt_prog_compiler_pic='-KPIC'
14644 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014645 ;;
14646
14647 sysv4*MP*)
14648 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014649 lt_prog_compiler_pic='-Kconform_pic'
14650 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014651 fi
14652 ;;
14653
Reid Spencera773bd52006-08-04 18:18:08 +000014654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14655 lt_prog_compiler_wl='-Wl,'
14656 lt_prog_compiler_pic='-KPIC'
14657 lt_prog_compiler_static='-Bstatic'
14658 ;;
14659
14660 unicos*)
14661 lt_prog_compiler_wl='-Wl,'
14662 lt_prog_compiler_can_build_shared=no
14663 ;;
14664
John Criswell47fdd832003-07-14 16:52:07 +000014665 uts4*)
14666 lt_prog_compiler_pic='-pic'
14667 lt_prog_compiler_static='-Bstatic'
14668 ;;
14669
John Criswell7a73b802003-06-30 21:59:07 +000014670 *)
John Criswell47fdd832003-07-14 16:52:07 +000014671 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014672 ;;
14673 esac
14674 fi
14675
Reid Spencera773bd52006-08-04 18:18:08 +000014676{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14677echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014678
John Criswell47fdd832003-07-14 16:52:07 +000014679#
14680# Check to make sure the PIC flag actually works.
14681#
14682if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014683
Reid Spencera773bd52006-08-04 18:18:08 +000014684{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14685echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014686if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688else
John Criswell47fdd832003-07-14 16:52:07 +000014689 lt_prog_compiler_pic_works=no
14690 ac_outfile=conftest.$ac_objext
14691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14692 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14693 # Insert the option either (1) after the last *FLAGS variable, or
14694 # (2) before a word containing "conftest.", or (3) at the end.
14695 # Note that $ac_compile itself does not contain backslashes and begins
14696 # with a dollar sign (not a hyphen), so the echo should work correctly.
14697 # The option is referenced via a variable to avoid confusing sed.
14698 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14701 -e 's:$: $lt_compiler_flag:'`
Bill Wendling41ef25b2008-03-05 09:28:02 +000014702 (eval echo "\"\$as_me:14702: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014703 (eval "$lt_compile" 2>conftest.err)
14704 ac_status=$?
14705 cat conftest.err >&5
Bill Wendling41ef25b2008-03-05 09:28:02 +000014706 echo "$as_me:14706: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014707 if (exit $ac_status) && test -s "$ac_outfile"; then
14708 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014709 # So say no if there are warnings other than the usual output.
14710 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014713 lt_prog_compiler_pic_works=yes
14714 fi
14715 fi
14716 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014717
John Criswell47fdd832003-07-14 16:52:07 +000014718fi
Reid Spencera773bd52006-08-04 18:18:08 +000014719{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14720echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014721
John Criswell47fdd832003-07-14 16:52:07 +000014722if test x"$lt_prog_compiler_pic_works" = xyes; then
14723 case $lt_prog_compiler_pic in
14724 "" | " "*) ;;
14725 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14726 esac
John Criswell7a73b802003-06-30 21:59:07 +000014727else
John Criswell47fdd832003-07-14 16:52:07 +000014728 lt_prog_compiler_pic=
14729 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014730fi
14731
John Criswell7a73b802003-06-30 21:59:07 +000014732fi
Reid Spencera773bd52006-08-04 18:18:08 +000014733case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014734 # For platforms which do not support PIC, -DPIC is meaningless:
14735 *djgpp*)
14736 lt_prog_compiler_pic=
14737 ;;
14738 *)
14739 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14740 ;;
14741esac
John Criswell7a73b802003-06-30 21:59:07 +000014742
Reid Spencera773bd52006-08-04 18:18:08 +000014743#
14744# Check to make sure the static flag actually works.
14745#
14746wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14747{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14748echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14749if test "${lt_prog_compiler_static_works+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751else
14752 lt_prog_compiler_static_works=no
14753 save_LDFLAGS="$LDFLAGS"
14754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14755 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14757 # The linker can only warn and ignore the option if not recognized
14758 # So say no if there are warnings
14759 if test -s conftest.err; then
14760 # Append any errors to the config.log.
14761 cat conftest.err 1>&5
14762 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14764 if diff conftest.exp conftest.er2 >/dev/null; then
14765 lt_prog_compiler_static_works=yes
14766 fi
14767 else
14768 lt_prog_compiler_static_works=yes
14769 fi
14770 fi
14771 $rm conftest*
14772 LDFLAGS="$save_LDFLAGS"
14773
14774fi
14775{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14776echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14777
14778if test x"$lt_prog_compiler_static_works" = xyes; then
14779 :
14780else
14781 lt_prog_compiler_static=
14782fi
14783
14784
14785{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14786echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014787if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014788 echo $ECHO_N "(cached) $ECHO_C" >&6
14789else
John Criswell47fdd832003-07-14 16:52:07 +000014790 lt_cv_prog_compiler_c_o=no
14791 $rm -r conftest 2>/dev/null
14792 mkdir conftest
14793 cd conftest
14794 mkdir out
14795 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014796
John Criswell47fdd832003-07-14 16:52:07 +000014797 lt_compiler_flag="-o out/conftest2.$ac_objext"
14798 # Insert the option either (1) after the last *FLAGS variable, or
14799 # (2) before a word containing "conftest.", or (3) at the end.
14800 # Note that $ac_compile itself does not contain backslashes and begins
14801 # with a dollar sign (not a hyphen), so the echo should work correctly.
14802 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14805 -e 's:$: $lt_compiler_flag:'`
Bill Wendling41ef25b2008-03-05 09:28:02 +000014806 (eval echo "\"\$as_me:14806: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014807 (eval "$lt_compile" 2>out/conftest.err)
14808 ac_status=$?
14809 cat out/conftest.err >&5
Bill Wendling41ef25b2008-03-05 09:28:02 +000014810 echo "$as_me:14810: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14812 then
14813 # The compiler can only warn and ignore the option if not recognized
14814 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014815 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014818 lt_cv_prog_compiler_c_o=yes
14819 fi
14820 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014821 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014822 $rm conftest*
14823 # SGI C++ compiler will create directory out/ii_files/ for
14824 # template instantiation
14825 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14826 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014827 cd ..
14828 rmdir conftest
14829 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014830
14831fi
Reid Spencera773bd52006-08-04 18:18:08 +000014832{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14833echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014834
John Criswell7a73b802003-06-30 21:59:07 +000014835
John Criswell7a73b802003-06-30 21:59:07 +000014836hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014837if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014838 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014839 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14840echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014841 hard_links=yes
14842 $rm conftest*
14843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14844 touch conftest.a
14845 ln conftest.a conftest.b 2>&5 || hard_links=no
14846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014847 { echo "$as_me:$LINENO: result: $hard_links" >&5
14848echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014849 if test "$hard_links" = no; then
14850 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14851echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14852 need_locks=warn
14853 fi
14854else
14855 need_locks=no
14856fi
John Criswell7a73b802003-06-30 21:59:07 +000014857
Reid Spencera773bd52006-08-04 18:18:08 +000014858{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14859echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014860
14861 runpath_var=
14862 allow_undefined_flag=
14863 enable_shared_with_static_runtimes=no
14864 archive_cmds=
14865 archive_expsym_cmds=
14866 old_archive_From_new_cmds=
14867 old_archive_from_expsyms_cmds=
14868 export_dynamic_flag_spec=
14869 whole_archive_flag_spec=
14870 thread_safe_flag_spec=
14871 hardcode_libdir_flag_spec=
14872 hardcode_libdir_flag_spec_ld=
14873 hardcode_libdir_separator=
14874 hardcode_direct=no
14875 hardcode_minus_L=no
14876 hardcode_shlibpath_var=unsupported
14877 link_all_deplibs=unknown
14878 hardcode_automatic=no
14879 module_cmds=
14880 module_expsym_cmds=
14881 always_export_symbols=no
14882 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14883 # include_expsyms should be a list of space-separated symbols to be *always*
14884 # included in the symbol list
14885 include_expsyms=
14886 # exclude_expsyms can be an extended regexp of symbols to exclude
14887 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14888 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14889 # as well as any symbol that contains `d'.
14890 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14891 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14892 # platforms (ab)use it in PIC code, but their linkers get confused if
14893 # the symbol is explicitly referenced. Since portable code cannot
14894 # rely on this symbol name, it's probably fine to never include it in
14895 # preloaded symbol tables.
14896 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014897 # Just being paranoid about ensuring that cc_basename is set.
14898 for cc_temp in $compiler""; do
14899 case $cc_temp in
14900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14902 \-*) ;;
14903 *) break;;
14904 esac
14905done
14906cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014907
14908 case $host_os in
14909 cygwin* | mingw* | pw32*)
14910 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14911 # When not using gcc, we currently assume that we are using
14912 # Microsoft Visual C++.
14913 if test "$GCC" != yes; then
14914 with_gnu_ld=no
14915 fi
14916 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014917 interix*)
14918 # we just hope/assume this is gcc and not c89 (= MSVC++)
14919 with_gnu_ld=yes
14920 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014921 openbsd*)
14922 with_gnu_ld=no
14923 ;;
14924 esac
14925
14926 ld_shlibs=yes
14927 if test "$with_gnu_ld" = yes; then
14928 # If archive_cmds runs LD, not CC, wlarc should be empty
14929 wlarc='${wl}'
14930
Reid Spencera773bd52006-08-04 18:18:08 +000014931 # Set some defaults for GNU ld with shared library support. These
14932 # are reset later if shared libraries are not supported. Putting them
14933 # here allows them to be overridden if necessary.
14934 runpath_var=LD_RUN_PATH
14935 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14936 export_dynamic_flag_spec='${wl}--export-dynamic'
14937 # ancient GNU ld didn't support --whole-archive et. al.
14938 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14939 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14940 else
14941 whole_archive_flag_spec=
14942 fi
14943 supports_anon_versioning=no
14944 case `$LD -v 2>/dev/null` in
14945 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14946 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14947 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14948 *\ 2.11.*) ;; # other 2.11 versions
14949 *) supports_anon_versioning=yes ;;
14950 esac
14951
John Criswell47fdd832003-07-14 16:52:07 +000014952 # See if GNU ld supports shared libraries.
14953 case $host_os in
14954 aix3* | aix4* | aix5*)
14955 # On AIX/PPC, the GNU linker is very broken
14956 if test "$host_cpu" != ia64; then
14957 ld_shlibs=no
14958 cat <<EOF 1>&2
14959
14960*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14961*** to be unable to reliably create shared libraries on AIX.
14962*** Therefore, libtool is disabling shared libraries support. If you
14963*** really care for shared libraries, you may want to modify your PATH
14964*** so that a non-GNU linker is found, and then restart.
14965
14966EOF
14967 fi
14968 ;;
14969
14970 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014971 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 +000014972 hardcode_libdir_flag_spec='-L$libdir'
14973 hardcode_minus_L=yes
14974
14975 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14976 # that the semantics of dynamic libraries on AmigaOS, at least up
14977 # to version 4, is to share data among multiple programs linked
14978 # with the same dynamic library. Since this doesn't match the
14979 # behavior of shared libraries on other platforms, we can't use
14980 # them.
14981 ld_shlibs=no
14982 ;;
14983
14984 beos*)
14985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14986 allow_undefined_flag=unsupported
14987 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14988 # support --undefined. This deserves some investigation. FIXME
14989 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14990 else
14991 ld_shlibs=no
14992 fi
14993 ;;
14994
14995 cygwin* | mingw* | pw32*)
14996 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14997 # as there is no search path for DLLs.
14998 hardcode_libdir_flag_spec='-L$libdir'
14999 allow_undefined_flag=unsupported
15000 always_export_symbols=no
15001 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015002 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 +000015003
15004 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015005 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 +000015006 # If the export-symbols file already is a .def file (1st line
15007 # is EXPORTS), use it as is; otherwise, prepend...
15008 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15009 cp $export_symbols $output_objdir/$soname.def;
15010 else
15011 echo EXPORTS > $output_objdir/$soname.def;
15012 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015013 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015014 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15015 else
15016 ld_shlibs=no
15017 fi
15018 ;;
15019
15020 interix3*)
15021 hardcode_direct=no
15022 hardcode_shlibpath_var=no
15023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15024 export_dynamic_flag_spec='${wl}-E'
15025 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15026 # Instead, shared libraries are loaded at an image base (0x10000000 by
15027 # default) and relocated if they conflict, which is a slow very memory
15028 # consuming and fragmenting process. To avoid this, we pick a random,
15029 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15030 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15031 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15032 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'
15033 ;;
15034
15035 linux*)
15036 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15037 tmp_addflag=
15038 case $cc_basename,$host_cpu in
15039 pgcc*) # Portland Group C compiler
15040 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'
15041 tmp_addflag=' $pic_flag'
15042 ;;
15043 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15044 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'
15045 tmp_addflag=' $pic_flag -Mnomain' ;;
15046 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15047 tmp_addflag=' -i_dynamic' ;;
15048 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15049 tmp_addflag=' -i_dynamic -nofor_main' ;;
15050 ifc* | ifort*) # Intel Fortran compiler
15051 tmp_addflag=' -nofor_main' ;;
15052 esac
15053 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15054
15055 if test $supports_anon_versioning = yes; then
15056 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15058 $echo "local: *; };" >> $output_objdir/$libname.ver~
15059 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15060 fi
John Criswell47fdd832003-07-14 16:52:07 +000015061 else
15062 ld_shlibs=no
15063 fi
15064 ;;
15065
15066 netbsd*)
15067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15068 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15069 wlarc=
15070 else
15071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15072 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15073 fi
15074 ;;
15075
Reid Spencera773bd52006-08-04 18:18:08 +000015076 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015077 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15078 ld_shlibs=no
15079 cat <<EOF 1>&2
15080
15081*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15082*** create shared libraries on Solaris systems. Therefore, libtool
15083*** is disabling shared libraries support. We urge you to upgrade GNU
15084*** binutils to release 2.9.1 or newer. Another option is to modify
15085*** your PATH or compiler configuration so that the native linker is
15086*** used, and then restart.
15087
15088EOF
15089 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15092 else
15093 ld_shlibs=no
15094 fi
15095 ;;
15096
Reid Spencera773bd52006-08-04 18:18:08 +000015097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15098 case `$LD -v 2>&1` in
15099 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15100 ld_shlibs=no
15101 cat <<_LT_EOF 1>&2
15102
15103*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15104*** reliably create shared libraries on SCO systems. Therefore, libtool
15105*** is disabling shared libraries support. We urge you to upgrade GNU
15106*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15107*** your PATH or compiler configuration so that the native linker is
15108*** used, and then restart.
15109
15110_LT_EOF
15111 ;;
15112 *)
15113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15114 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15117 else
15118 ld_shlibs=no
15119 fi
15120 ;;
15121 esac
15122 ;;
15123
John Criswell47fdd832003-07-14 16:52:07 +000015124 sunos4*)
15125 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15126 wlarc=
15127 hardcode_direct=yes
15128 hardcode_shlibpath_var=no
15129 ;;
15130
15131 *)
15132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15135 else
15136 ld_shlibs=no
15137 fi
15138 ;;
15139 esac
15140
Reid Spencera773bd52006-08-04 18:18:08 +000015141 if test "$ld_shlibs" = no; then
15142 runpath_var=
15143 hardcode_libdir_flag_spec=
15144 export_dynamic_flag_spec=
15145 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015146 fi
15147 else
15148 # PORTME fill in a description of your system's linker (not GNU ld)
15149 case $host_os in
15150 aix3*)
15151 allow_undefined_flag=unsupported
15152 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015153 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 +000015154 # Note: this linker hardcodes the directories in LIBPATH if there
15155 # are no directories specified by -L.
15156 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015157 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015158 # Neither direct hardcoding nor static linking is supported with a
15159 # broken collect2.
15160 hardcode_direct=unsupported
15161 fi
15162 ;;
15163
15164 aix4* | aix5*)
15165 if test "$host_cpu" = ia64; then
15166 # On IA64, the linker does run time linking by default, so we don't
15167 # have to do anything special.
15168 aix_use_runtimelinking=no
15169 exp_sym_flag='-Bexport'
15170 no_entry_flag=""
15171 else
15172 # If we're using GNU nm, then we don't want the "-C" option.
15173 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15174 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15175 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'
15176 else
15177 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'
15178 fi
15179 aix_use_runtimelinking=no
15180
15181 # Test if we are trying to use run time linking or normal
15182 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15183 # need to do runtime linking.
15184 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15185 for ld_flag in $LDFLAGS; do
15186 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15187 aix_use_runtimelinking=yes
15188 break
15189 fi
15190 done
Reid Spencera773bd52006-08-04 18:18:08 +000015191 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015192 esac
15193
15194 exp_sym_flag='-bexport'
15195 no_entry_flag='-bnoentry'
15196 fi
15197
15198 # When large executables or shared objects are built, AIX ld can
15199 # have problems creating the table of contents. If linking a library
15200 # or program results in "error TOC overflow" add -mminimal-toc to
15201 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15202 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15203
15204 archive_cmds=''
15205 hardcode_direct=yes
15206 hardcode_libdir_separator=':'
15207 link_all_deplibs=yes
15208
15209 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015210 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015211 # We only want to do this on AIX 4.2 and lower, the check
15212 # below for broken collect2 doesn't work under 4.3+
15213 collect2name=`${CC} -print-prog-name=collect2`
15214 if test -f "$collect2name" && \
15215 strings "$collect2name" | grep resolve_lib_name >/dev/null
15216 then
15217 # We have reworked collect2
15218 hardcode_direct=yes
15219 else
15220 # We have old collect2
15221 hardcode_direct=unsupported
15222 # It fails to find uninstalled libraries when the uninstalled
15223 # path is not listed in the libpath. Setting hardcode_minus_L
15224 # to unsupported forces relinking
15225 hardcode_minus_L=yes
15226 hardcode_libdir_flag_spec='-L$libdir'
15227 hardcode_libdir_separator=
15228 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015229 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015230 esac
15231 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015232 if test "$aix_use_runtimelinking" = yes; then
15233 shared_flag="$shared_flag "'${wl}-G'
15234 fi
John Criswell47fdd832003-07-14 16:52:07 +000015235 else
15236 # not using gcc
15237 if test "$host_cpu" = ia64; then
15238 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15239 # chokes on -Wl,-G. The following line is correct:
15240 shared_flag='-G'
15241 else
Reid Spencera773bd52006-08-04 18:18:08 +000015242 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015243 shared_flag='${wl}-G'
15244 else
15245 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015246 fi
John Criswell47fdd832003-07-14 16:52:07 +000015247 fi
15248 fi
15249
15250 # It seems that -bexpall does not export symbols beginning with
15251 # underscore (_), so it is better to generate a list of symbols to export.
15252 always_export_symbols=yes
15253 if test "$aix_use_runtimelinking" = yes; then
15254 # Warning - without using the other runtime loading flags (-brtl),
15255 # -berok will link without error, but may produce a broken library.
15256 allow_undefined_flag='-berok'
15257 # Determine the default libpath from the value encoded in an empty executable.
15258 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015259/* confdefs.h. */
15260_ACEOF
15261cat confdefs.h >>conftest.$ac_ext
15262cat >>conftest.$ac_ext <<_ACEOF
15263/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015264
John Criswell7a73b802003-06-30 21:59:07 +000015265int
15266main ()
15267{
John Criswell47fdd832003-07-14 16:52:07 +000015268
John Criswell7a73b802003-06-30 21:59:07 +000015269 ;
15270 return 0;
15271}
15272_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015273rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015274if { (ac_try="$ac_link"
15275case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278esac
15279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015281 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15288 { (case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15291esac
15292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_try") 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; } &&
15297 { ac_try='test -s conftest$ac_exeext'
15298 { (case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301esac
15302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_try") 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015307
John Criswell47fdd832003-07-14 16:52:07 +000015308aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15309}'`
15310# Check for a 64-bit object if we didn't find anything.
15311if 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; }
15312}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015313else
15314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015315sed 's/^/| /' conftest.$ac_ext >&5
15316
Reid Spencera773bd52006-08-04 18:18:08 +000015317
John Criswell7a73b802003-06-30 21:59:07 +000015318fi
Reid Spencera773bd52006-08-04 18:18:08 +000015319
Tanya Lattnercf067672008-01-17 05:57:22 +000015320rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015321 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015322if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015323
John Criswell47fdd832003-07-14 16:52:07 +000015324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015325 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 +000015326 else
15327 if test "$host_cpu" = ia64; then
15328 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15329 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015330 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 +000015331 else
15332 # Determine the default libpath from the value encoded in an empty executable.
15333 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015334/* confdefs.h. */
15335_ACEOF
15336cat confdefs.h >>conftest.$ac_ext
15337cat >>conftest.$ac_ext <<_ACEOF
15338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015339
John Criswell47fdd832003-07-14 16:52:07 +000015340int
15341main ()
15342{
John Criswell7a73b802003-06-30 21:59:07 +000015343
John Criswell47fdd832003-07-14 16:52:07 +000015344 ;
15345 return 0;
15346}
15347_ACEOF
15348rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015349if { (ac_try="$ac_link"
15350case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353esac
15354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015356 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015357 grep -v '^ *+' conftest.er1 >conftest.err
15358 rm -f conftest.er1
15359 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015361 (exit $ac_status); } &&
15362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15363 { (case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366esac
15367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_try") 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try='test -s conftest$ac_exeext'
15373 { (case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15376esac
15377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_try") 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015382
John Criswell47fdd832003-07-14 16:52:07 +000015383aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15384}'`
15385# Check for a 64-bit object if we didn't find anything.
15386if 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; }
15387}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015388else
John Criswell47fdd832003-07-14 16:52:07 +000015389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015390sed 's/^/| /' conftest.$ac_ext >&5
15391
Reid Spencera773bd52006-08-04 18:18:08 +000015392
John Criswell47fdd832003-07-14 16:52:07 +000015393fi
Reid Spencera773bd52006-08-04 18:18:08 +000015394
Tanya Lattnercf067672008-01-17 05:57:22 +000015395rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015396 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015398
John Criswell47fdd832003-07-14 16:52:07 +000015399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15400 # Warning - without using the other run time loading flags,
15401 # -berok will link without error, but may produce a broken library.
15402 no_undefined_flag=' ${wl}-bernotok'
15403 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015404 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015405 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015406 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015407 # This is similar to how AIX traditionally builds its shared libraries.
15408 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 +000015409 fi
15410 fi
John Criswell7a73b802003-06-30 21:59:07 +000015411 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015412
15413 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015414 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 +000015415 hardcode_libdir_flag_spec='-L$libdir'
15416 hardcode_minus_L=yes
15417 # see comment about different semantics on the GNU ld section
15418 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015419 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015420
Reid Spencer2706f8c2004-09-19 23:53:36 +000015421 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015422 export_dynamic_flag_spec=-rdynamic
15423 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015424
John Criswell47fdd832003-07-14 16:52:07 +000015425 cygwin* | mingw* | pw32*)
15426 # When not using gcc, we currently assume that we are using
15427 # Microsoft Visual C++.
15428 # hardcode_libdir_flag_spec is actually meaningless, as there is
15429 # no search path for DLLs.
15430 hardcode_libdir_flag_spec=' '
15431 allow_undefined_flag=unsupported
15432 # Tell ltmain to make .lib files, not .a files.
15433 libext=lib
15434 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015435 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015436 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015437 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015438 # The linker will automatically build a .lib file if we build a DLL.
15439 old_archive_From_new_cmds='true'
15440 # FIXME: Should let the user specify the lib program.
15441 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15442 fix_srcfile_path='`cygpath -w "$srcfile"`'
15443 enable_shared_with_static_runtimes=yes
15444 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015445
John Criswell47fdd832003-07-14 16:52:07 +000015446 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015447 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015448 rhapsody* | darwin1.[012])
15449 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15450 ;;
15451 *) # Darwin 1.3 on
15452 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15453 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15454 else
15455 case ${MACOSX_DEPLOYMENT_TARGET} in
15456 10.[012])
15457 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15458 ;;
15459 10.*)
15460 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15461 ;;
15462 esac
15463 fi
15464 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015465 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015466 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015467 hardcode_direct=no
15468 hardcode_automatic=yes
15469 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015470 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015471 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015472 if test "$GCC" = yes ; then
15473 output_verbose_link_cmd='echo'
15474 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15475 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015476 # 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 +000015477 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}'
15478 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 +000015479 else
Reid Spencera773bd52006-08-04 18:18:08 +000015480 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015481 xlc*)
15482 output_verbose_link_cmd='echo'
15483 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15484 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015485 # 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 +000015486 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}'
15487 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 +000015488 ;;
15489 *)
15490 ld_shlibs=no
15491 ;;
15492 esac
John Criswell7a73b802003-06-30 21:59:07 +000015493 fi
John Criswell47fdd832003-07-14 16:52:07 +000015494 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015495
John Criswell47fdd832003-07-14 16:52:07 +000015496 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015498 hardcode_libdir_flag_spec='-L$libdir'
15499 hardcode_shlibpath_var=no
15500 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015501
John Criswell47fdd832003-07-14 16:52:07 +000015502 freebsd1*)
15503 ld_shlibs=no
15504 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015505
John Criswell47fdd832003-07-14 16:52:07 +000015506 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15507 # support. Future versions do this automatically, but an explicit c++rt0.o
15508 # does not break anything, and helps significantly (at the cost of a little
15509 # extra space).
15510 freebsd2.2*)
15511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15512 hardcode_libdir_flag_spec='-R$libdir'
15513 hardcode_direct=yes
15514 hardcode_shlibpath_var=no
15515 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015516
John Criswell47fdd832003-07-14 16:52:07 +000015517 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15518 freebsd2*)
15519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15520 hardcode_direct=yes
15521 hardcode_minus_L=yes
15522 hardcode_shlibpath_var=no
15523 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015524
John Criswell47fdd832003-07-14 16:52:07 +000015525 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015526 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015527 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15528 hardcode_libdir_flag_spec='-R$libdir'
15529 hardcode_direct=yes
15530 hardcode_shlibpath_var=no
15531 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015532
John Criswell47fdd832003-07-14 16:52:07 +000015533 hpux9*)
15534 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015535 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 +000015536 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015537 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 +000015538 fi
15539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15540 hardcode_libdir_separator=:
15541 hardcode_direct=yes
15542
15543 # hardcode_minus_L: Not really in the search PATH,
15544 # but as the default location of the library.
15545 hardcode_minus_L=yes
15546 export_dynamic_flag_spec='${wl}-E'
15547 ;;
15548
Reid Spencera773bd52006-08-04 18:18:08 +000015549 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015550 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015551 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15552 else
15553 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15554 fi
15555 if test "$with_gnu_ld" = no; then
15556 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15557 hardcode_libdir_separator=:
15558
15559 hardcode_direct=yes
15560 export_dynamic_flag_spec='${wl}-E'
15561
15562 # hardcode_minus_L: Not really in the search PATH,
15563 # but as the default location of the library.
15564 hardcode_minus_L=yes
15565 fi
15566 ;;
15567
15568 hpux11*)
15569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15570 case $host_cpu in
15571 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015572 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15573 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015574 ia64*)
15575 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15576 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015577 *)
15578 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15579 ;;
15580 esac
15581 else
Reid Spencera773bd52006-08-04 18:18:08 +000015582 case $host_cpu in
15583 hppa*64*)
15584 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15585 ;;
15586 ia64*)
15587 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015588 ;;
15589 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015590 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 +000015591 ;;
15592 esac
15593 fi
15594 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015595 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15596 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015597
Reid Spencera773bd52006-08-04 18:18:08 +000015598 case $host_cpu in
15599 hppa*64*|ia64*)
15600 hardcode_libdir_flag_spec_ld='+b $libdir'
15601 hardcode_direct=no
15602 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015603 ;;
15604 *)
John Criswell47fdd832003-07-14 16:52:07 +000015605 hardcode_direct=yes
15606 export_dynamic_flag_spec='${wl}-E'
15607
15608 # hardcode_minus_L: Not really in the search PATH,
15609 # but as the default location of the library.
15610 hardcode_minus_L=yes
15611 ;;
15612 esac
15613 fi
15614 ;;
15615
15616 irix5* | irix6* | nonstopux*)
15617 if test "$GCC" = yes; then
15618 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'
15619 else
15620 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'
15621 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15622 fi
15623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15624 hardcode_libdir_separator=:
15625 link_all_deplibs=yes
15626 ;;
15627
15628 netbsd*)
15629 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15631 else
15632 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15633 fi
15634 hardcode_libdir_flag_spec='-R$libdir'
15635 hardcode_direct=yes
15636 hardcode_shlibpath_var=no
15637 ;;
15638
15639 newsos6)
15640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641 hardcode_direct=yes
15642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15643 hardcode_libdir_separator=:
15644 hardcode_shlibpath_var=no
15645 ;;
15646
15647 openbsd*)
15648 hardcode_direct=yes
15649 hardcode_shlibpath_var=no
15650 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015652 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 +000015653 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15654 export_dynamic_flag_spec='${wl}-E'
15655 else
15656 case $host_os in
15657 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15659 hardcode_libdir_flag_spec='-R$libdir'
15660 ;;
15661 *)
15662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15663 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15664 ;;
15665 esac
15666 fi
15667 ;;
15668
15669 os2*)
15670 hardcode_libdir_flag_spec='-L$libdir'
15671 hardcode_minus_L=yes
15672 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015673 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 +000015674 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15675 ;;
15676
15677 osf3*)
15678 if test "$GCC" = yes; then
15679 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15680 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'
15681 else
15682 allow_undefined_flag=' -expect_unresolved \*'
15683 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'
15684 fi
15685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15686 hardcode_libdir_separator=:
15687 ;;
15688
15689 osf4* | osf5*) # as osf3* with the addition of -msym flag
15690 if test "$GCC" = yes; then
15691 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15692 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'
15693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15694 else
15695 allow_undefined_flag=' -expect_unresolved \*'
15696 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 +000015697 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 +000015698 $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 +000015699
John Criswell47fdd832003-07-14 16:52:07 +000015700 # Both c and cxx compiler support -rpath directly
15701 hardcode_libdir_flag_spec='-rpath $libdir'
15702 fi
15703 hardcode_libdir_separator=:
15704 ;;
15705
John Criswell47fdd832003-07-14 16:52:07 +000015706 solaris*)
15707 no_undefined_flag=' -z text'
15708 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015709 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015710 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015711 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15712 $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 +000015713 else
Reid Spencera773bd52006-08-04 18:18:08 +000015714 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015715 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015716 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15717 $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 +000015718 fi
15719 hardcode_libdir_flag_spec='-R$libdir'
15720 hardcode_shlibpath_var=no
15721 case $host_os in
15722 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015723 *)
15724 # The compiler driver will combine linker options so we
15725 # cannot just pass the convience library names through
15726 # without $wl, iff we do not link with $LD.
15727 # Luckily, gcc supports the same syntax we need for Sun Studio.
15728 # Supported since Solaris 2.6 (maybe 2.5.1?)
15729 case $wlarc in
15730 '')
15731 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15732 *)
15733 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' ;;
15734 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015735 esac
15736 link_all_deplibs=yes
15737 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015738
John Criswell47fdd832003-07-14 16:52:07 +000015739 sunos4*)
15740 if test "x$host_vendor" = xsequent; then
15741 # Use $CC to link under sequent, because it throws in some extra .o
15742 # files that make .init and .fini sections work.
15743 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15744 else
15745 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15746 fi
15747 hardcode_libdir_flag_spec='-L$libdir'
15748 hardcode_direct=yes
15749 hardcode_minus_L=yes
15750 hardcode_shlibpath_var=no
15751 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015752
John Criswell47fdd832003-07-14 16:52:07 +000015753 sysv4)
15754 case $host_vendor in
15755 sni)
15756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_direct=yes # is this really true???
15758 ;;
15759 siemens)
15760 ## LD is ld it makes a PLAMLIB
15761 ## CC just makes a GrossModule.
15762 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15763 reload_cmds='$CC -r -o $output$reload_objs'
15764 hardcode_direct=no
15765 ;;
15766 motorola)
15767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15769 ;;
15770 esac
15771 runpath_var='LD_RUN_PATH'
15772 hardcode_shlibpath_var=no
15773 ;;
15774
15775 sysv4.3*)
15776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15777 hardcode_shlibpath_var=no
15778 export_dynamic_flag_spec='-Bexport'
15779 ;;
15780
15781 sysv4*MP*)
15782 if test -d /usr/nec; then
15783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784 hardcode_shlibpath_var=no
15785 runpath_var=LD_RUN_PATH
15786 hardcode_runpath_var=yes
15787 ld_shlibs=yes
15788 fi
15789 ;;
15790
Reid Spencera773bd52006-08-04 18:18:08 +000015791 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15792 no_undefined_flag='${wl}-z,text'
15793 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015794 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015795 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015796
John Criswell47fdd832003-07-14 16:52:07 +000015797 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015798 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15799 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 +000015800 else
Reid Spencera773bd52006-08-04 18:18:08 +000015801 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15802 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 +000015803 fi
John Criswell47fdd832003-07-14 16:52:07 +000015804 ;;
15805
Reid Spencera773bd52006-08-04 18:18:08 +000015806 sysv5* | sco3.2v5* | sco5v6*)
15807 # Note: We can NOT use -z defs as we might desire, because we do not
15808 # link with -lc, and that would cause any symbols used from libc to
15809 # always be unresolved, which means just about no library would
15810 # ever link correctly. If we're not using GNU ld we use -z text
15811 # though, which does catch some bad symbols but isn't as heavy-handed
15812 # as -z defs.
15813 no_undefined_flag='${wl}-z,text'
15814 allow_undefined_flag='${wl}-z,nodefs'
15815 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015816 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015817 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15818 hardcode_libdir_separator=':'
15819 link_all_deplibs=yes
15820 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015821 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015822
15823 if test "$GCC" = yes; then
15824 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15825 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15826 else
15827 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15828 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15829 fi
John Criswell47fdd832003-07-14 16:52:07 +000015830 ;;
15831
15832 uts4*)
15833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15834 hardcode_libdir_flag_spec='-L$libdir'
15835 hardcode_shlibpath_var=no
15836 ;;
15837
15838 *)
15839 ld_shlibs=no
15840 ;;
15841 esac
15842 fi
15843
Reid Spencera773bd52006-08-04 18:18:08 +000015844{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15845echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015846test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015847
John Criswell47fdd832003-07-14 16:52:07 +000015848#
15849# Do we need to explicitly link libc?
15850#
15851case "x$archive_cmds_need_lc" in
15852x|xyes)
15853 # Assume -lc should be added
15854 archive_cmds_need_lc=yes
15855
15856 if test "$enable_shared" = yes && test "$GCC" = yes; then
15857 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015858 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015859 # FIXME: we may have to deal with multi-command sequences.
15860 ;;
15861 '$CC '*)
15862 # Test whether the compiler implicitly links with -lc since on some
15863 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15864 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015865 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15866echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015867 $rm conftest*
15868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15869
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } 2>conftest.err; then
15875 soname=conftest
15876 lib=conftest
15877 libobjs=conftest.$ac_objext
15878 deplibs=
15879 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015880 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015881 compiler_flags=-v
15882 linker_flags=-v
15883 verstring=
15884 output_objdir=.
15885 libname=conftest
15886 lt_save_allow_undefined_flag=$allow_undefined_flag
15887 allow_undefined_flag=
15888 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15889 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }
15893 then
15894 archive_cmds_need_lc=no
15895 else
15896 archive_cmds_need_lc=yes
15897 fi
15898 allow_undefined_flag=$lt_save_allow_undefined_flag
15899 else
15900 cat conftest.err 1>&5
15901 fi
15902 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015903 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15904echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015905 ;;
15906 esac
15907 fi
15908 ;;
15909esac
15910
Reid Spencera773bd52006-08-04 18:18:08 +000015911{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15912echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015913library_names_spec=
15914libname_spec='lib$name'
15915soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015916shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015917postinstall_cmds=
15918postuninstall_cmds=
15919finish_cmds=
15920finish_eval=
15921shlibpath_var=
15922shlibpath_overrides_runpath=unknown
15923version_type=none
15924dynamic_linker="$host_os ld.so"
15925sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015926if test "$GCC" = yes; then
15927 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15928 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15929 # if the path contains ";" then we assume it to be the separator
15930 # otherwise default to the standard path separator (i.e. ":") - it is
15931 # assumed that no part of a normal pathname contains ";" but that should
15932 # okay in the real world where ";" in dirpaths is itself problematic.
15933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15934 else
15935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15936 fi
15937else
15938 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15939fi
15940need_lib_prefix=unknown
15941hardcode_into_libs=no
15942
15943# when you set need_version to no, make sure it does not cause -set_version
15944# flags to be left without arguments
15945need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015946
15947case $host_os in
15948aix3*)
15949 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015951 shlibpath_var=LIBPATH
15952
John Criswell47fdd832003-07-14 16:52:07 +000015953 # AIX 3 has no versioning support, so we append a major version to the name.
15954 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015955 ;;
15956
15957aix4* | aix5*)
15958 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015959 need_lib_prefix=no
15960 need_version=no
15961 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015962 if test "$host_cpu" = ia64; then
15963 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015964 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015965 shlibpath_var=LD_LIBRARY_PATH
15966 else
15967 # With GCC up to 2.95.x, collect2 would create an import file
15968 # for dependence libraries. The import file would start with
15969 # the line `#! .'. This would cause the generated library to
15970 # depend on `.', always an invalid library. This was fixed in
15971 # development snapshots of GCC prior to 3.0.
15972 case $host_os in
15973 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015974 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15975 echo ' yes '
15976 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15977 :
15978 else
15979 can_build_shared=no
15980 fi
15981 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015982 esac
John Criswell47fdd832003-07-14 16:52:07 +000015983 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15984 # soname into executable. Probably we can add versioning support to
15985 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015986 if test "$aix_use_runtimelinking" = yes; then
15987 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15988 # instead of lib<name>.a to let people know that these are not
15989 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015991 else
15992 # We preserve .a as extension for shared libraries through AIX4.2
15993 # and later when we are not doing run time linking.
15994 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015995 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015996 fi
15997 shlibpath_var=LIBPATH
15998 fi
15999 ;;
16000
16001amigaos*)
16002 library_names_spec='$libname.ixlibrary $libname.a'
16003 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016004 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 +000016005 ;;
16006
16007beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016008 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016009 dynamic_linker="$host_os ld.so"
16010 shlibpath_var=LIBRARY_PATH
16011 ;;
16012
Reid Spencer2706f8c2004-09-19 23:53:36 +000016013bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016014 version_type=linux
16015 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016018 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16021 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016022 # the default ld.so.conf also contains /usr/contrib/lib and
16023 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16024 # libtool to hard-code these into programs
16025 ;;
16026
16027cygwin* | mingw* | pw32*)
16028 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016029 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016030 need_version=no
16031 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016032
John Criswell7a73b802003-06-30 21:59:07 +000016033 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016034 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016035 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016036 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016037 postinstall_cmds='base_file=`basename \${file}`~
16038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16039 dldir=$destdir/`dirname \$dlpath`~
16040 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016041 $install_prog $dir/$dlname \$dldir/$dlname~
16042 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016043 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16044 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016045 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016046 shlibpath_overrides_runpath=yes
16047
16048 case $host_os in
16049 cygwin*)
16050 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16051 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 +000016052 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016053 ;;
16054 mingw*)
16055 # MinGW DLLs use traditional 'lib' prefix
16056 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16057 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16058 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16059 # It is most probably a Windows format PATH printed by
16060 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16061 # path with ; separators, and with drive letters. We can handle the
16062 # drive letters (cygwin fileutils understands them), so leave them,
16063 # especially as we might pass files found there to a mingw objdump,
16064 # which wouldn't understand a cygwinified path. Ahh.
16065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16066 else
16067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16068 fi
16069 ;;
16070 pw32*)
16071 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016072 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 +000016073 ;;
16074 esac
John Criswell7a73b802003-06-30 21:59:07 +000016075 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016076
John Criswell7a73b802003-06-30 21:59:07 +000016077 *)
John Criswell47fdd832003-07-14 16:52:07 +000016078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016079 ;;
16080 esac
16081 dynamic_linker='Win32 ld.exe'
16082 # FIXME: first we should search . and the directory the executable is in
16083 shlibpath_var=PATH
16084 ;;
16085
16086darwin* | rhapsody*)
16087 dynamic_linker="$host_os dyld"
16088 version_type=darwin
16089 need_lib_prefix=no
16090 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016091 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016092 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016093 shlibpath_overrides_runpath=yes
16094 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016095 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016096 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016097 if test "$GCC" = yes; then
16098 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"`
16099 else
16100 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016101 fi
16102 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16103 ;;
16104
16105dgux*)
16106 version_type=linux
16107 need_lib_prefix=no
16108 need_version=no
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16110 soname_spec='${libname}${release}${shared_ext}$major'
16111 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016112 ;;
16113
16114freebsd1*)
16115 dynamic_linker=no
16116 ;;
16117
Reid Spencer2706f8c2004-09-19 23:53:36 +000016118kfreebsd*-gnu)
16119 version_type=linux
16120 need_lib_prefix=no
16121 need_version=no
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 shlibpath_overrides_runpath=no
16126 hardcode_into_libs=yes
16127 dynamic_linker='GNU ld.so'
16128 ;;
16129
Reid Spencera773bd52006-08-04 18:18:08 +000016130freebsd* | dragonfly*)
16131 # DragonFly does not have aout. When/if they implement a new
16132 # versioning mechanism, adjust this.
16133 if test -x /usr/bin/objformat; then
16134 objformat=`/usr/bin/objformat`
16135 else
16136 case $host_os in
16137 freebsd[123]*) objformat=aout ;;
16138 *) objformat=elf ;;
16139 esac
16140 fi
John Criswell7a73b802003-06-30 21:59:07 +000016141 version_type=freebsd-$objformat
16142 case $version_type in
16143 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016145 need_version=no
16146 need_lib_prefix=no
16147 ;;
16148 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016150 need_version=yes
16151 ;;
16152 esac
16153 shlibpath_var=LD_LIBRARY_PATH
16154 case $host_os in
16155 freebsd2*)
16156 shlibpath_overrides_runpath=yes
16157 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016158 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016159 shlibpath_overrides_runpath=yes
16160 hardcode_into_libs=yes
16161 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016162 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16163 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016164 shlibpath_overrides_runpath=no
16165 hardcode_into_libs=yes
16166 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016167 freebsd*) # from 4.6 on
16168 shlibpath_overrides_runpath=yes
16169 hardcode_into_libs=yes
16170 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016171 esac
16172 ;;
16173
16174gnu*)
16175 version_type=linux
16176 need_lib_prefix=no
16177 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16179 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016180 shlibpath_var=LD_LIBRARY_PATH
16181 hardcode_into_libs=yes
16182 ;;
16183
16184hpux9* | hpux10* | hpux11*)
16185 # Give a soname corresponding to the major version so that dld.sl refuses to
16186 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016187 version_type=sunos
16188 need_lib_prefix=no
16189 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016190 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016191 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016192 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016193 hardcode_into_libs=yes
16194 dynamic_linker="$host_os dld.so"
16195 shlibpath_var=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 if test "X$HPUX_IA64_MODE" = X32; then
16200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16201 else
16202 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16203 fi
16204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16205 ;;
16206 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016207 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016208 hardcode_into_libs=yes
16209 dynamic_linker="$host_os dld.sl"
16210 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16216 ;;
16217 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016218 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016219 dynamic_linker="$host_os dld.sl"
16220 shlibpath_var=SHLIB_PATH
16221 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 ;;
16225 esac
John Criswell7a73b802003-06-30 21:59:07 +000016226 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16227 postinstall_cmds='chmod 555 $lib'
16228 ;;
16229
Reid Spencera773bd52006-08-04 18:18:08 +000016230interix3*)
16231 version_type=linux
16232 need_lib_prefix=no
16233 need_version=no
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16235 soname_spec='${libname}${release}${shared_ext}$major'
16236 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 shlibpath_overrides_runpath=no
16239 hardcode_into_libs=yes
16240 ;;
16241
John Criswell47fdd832003-07-14 16:52:07 +000016242irix5* | irix6* | nonstopux*)
16243 case $host_os in
16244 nonstopux*) version_type=nonstopux ;;
16245 *)
16246 if test "$lt_cv_prog_gnu_ld" = yes; then
16247 version_type=linux
16248 else
16249 version_type=irix
16250 fi ;;
16251 esac
John Criswell7a73b802003-06-30 21:59:07 +000016252 need_lib_prefix=no
16253 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016254 soname_spec='${libname}${release}${shared_ext}$major'
16255 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 +000016256 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016257 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016258 libsuff= shlibsuff=
16259 ;;
16260 *)
16261 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016262 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16263 libsuff= shlibsuff= libmagic=32-bit;;
16264 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16265 libsuff=32 shlibsuff=N32 libmagic=N32;;
16266 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16267 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016268 *) libsuff= shlibsuff= libmagic=never-match;;
16269 esac
16270 ;;
16271 esac
16272 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16273 shlibpath_overrides_runpath=no
16274 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16275 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016276 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016277 ;;
16278
16279# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016280linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016281 dynamic_linker=no
16282 ;;
16283
16284# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016285linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016286 version_type=linux
16287 need_lib_prefix=no
16288 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 shlibpath_overrides_runpath=no
16294 # This implies no fast_install, which is unacceptable.
16295 # Some rework will be needed to allow for fast_install
16296 # before this can be enabled.
16297 hardcode_into_libs=yes
16298
Reid Spencer2706f8c2004-09-19 23:53:36 +000016299 # Append ld.so.conf contents to the search path
16300 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016301 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 +000016302 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16303 fi
16304
John Criswell7a73b802003-06-30 21:59:07 +000016305 # We used to test for /lib/ld.so.1 and disable shared libraries on
16306 # powerpc, because MkLinux only supported shared libraries with the
16307 # GNU dynamic linker. Since this was broken with cross compilers,
16308 # most powerpc-linux boxes support dynamic linking these days and
16309 # people can always --disable-shared, the test was removed, and we
16310 # assume the GNU/Linux dynamic linker is in use.
16311 dynamic_linker='GNU/Linux ld.so'
16312 ;;
16313
Reid Spencer2706f8c2004-09-19 23:53:36 +000016314knetbsd*-gnu)
16315 version_type=linux
16316 need_lib_prefix=no
16317 need_version=no
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16319 soname_spec='${libname}${release}${shared_ext}$major'
16320 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=no
16322 hardcode_into_libs=yes
16323 dynamic_linker='GNU ld.so'
16324 ;;
16325
John Criswell7a73b802003-06-30 21:59:07 +000016326netbsd*)
16327 version_type=sunos
16328 need_lib_prefix=no
16329 need_version=no
16330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16333 dynamic_linker='NetBSD (a.out) ld.so'
16334 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016336 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016337 dynamic_linker='NetBSD ld.elf_so'
16338 fi
16339 shlibpath_var=LD_LIBRARY_PATH
16340 shlibpath_overrides_runpath=yes
16341 hardcode_into_libs=yes
16342 ;;
16343
16344newsos6)
16345 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 shlibpath_overrides_runpath=yes
16349 ;;
16350
Reid Spencer2706f8c2004-09-19 23:53:36 +000016351nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016352 version_type=linux
16353 need_lib_prefix=no
16354 need_version=no
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016357 shlibpath_var=LD_LIBRARY_PATH
16358 shlibpath_overrides_runpath=yes
16359 ;;
16360
16361openbsd*)
16362 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016363 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016364 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016365 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16366 case $host_os in
16367 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16368 *) need_version=no ;;
16369 esac
John Criswell47fdd832003-07-14 16:52:07 +000016370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16372 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016373 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 +000016374 case $host_os in
16375 openbsd2.[89] | openbsd2.[89].*)
16376 shlibpath_overrides_runpath=no
16377 ;;
16378 *)
16379 shlibpath_overrides_runpath=yes
16380 ;;
16381 esac
John Criswell7a73b802003-06-30 21:59:07 +000016382 else
16383 shlibpath_overrides_runpath=yes
16384 fi
John Criswell7a73b802003-06-30 21:59:07 +000016385 ;;
16386
16387os2*)
16388 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016389 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016390 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016391 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016392 dynamic_linker='OS/2 ld.exe'
16393 shlibpath_var=LIBPATH
16394 ;;
16395
16396osf3* | osf4* | osf5*)
16397 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016398 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016399 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016400 soname_spec='${libname}${release}${shared_ext}$major'
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016402 shlibpath_var=LD_LIBRARY_PATH
16403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16405 ;;
16406
John Criswell7a73b802003-06-30 21:59:07 +000016407solaris*)
16408 version_type=linux
16409 need_lib_prefix=no
16410 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016413 shlibpath_var=LD_LIBRARY_PATH
16414 shlibpath_overrides_runpath=yes
16415 hardcode_into_libs=yes
16416 # ldd complains unless libraries are executable
16417 postinstall_cmds='chmod +x $lib'
16418 ;;
16419
16420sunos4*)
16421 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016423 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16426 if test "$with_gnu_ld" = yes; then
16427 need_lib_prefix=no
16428 fi
16429 need_version=yes
16430 ;;
16431
Reid Spencera773bd52006-08-04 18:18:08 +000016432sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016433 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016436 shlibpath_var=LD_LIBRARY_PATH
16437 case $host_vendor in
16438 sni)
16439 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016440 need_lib_prefix=no
16441 export_dynamic_flag_spec='${wl}-Blargedynsym'
16442 runpath_var=LD_RUN_PATH
16443 ;;
16444 siemens)
16445 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016446 ;;
16447 motorola)
16448 need_lib_prefix=no
16449 need_version=no
16450 shlibpath_overrides_runpath=no
16451 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16452 ;;
16453 esac
16454 ;;
16455
John Criswell7a73b802003-06-30 21:59:07 +000016456sysv4*MP*)
16457 if test -d /usr/nec ;then
16458 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016459 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16460 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016461 shlibpath_var=LD_LIBRARY_PATH
16462 fi
16463 ;;
16464
Reid Spencera773bd52006-08-04 18:18:08 +000016465sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16466 version_type=freebsd-elf
16467 need_lib_prefix=no
16468 need_version=no
16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16470 soname_spec='${libname}${release}${shared_ext}$major'
16471 shlibpath_var=LD_LIBRARY_PATH
16472 hardcode_into_libs=yes
16473 if test "$with_gnu_ld" = yes; then
16474 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16475 shlibpath_overrides_runpath=no
16476 else
16477 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16478 shlibpath_overrides_runpath=yes
16479 case $host_os in
16480 sco3.2v5*)
16481 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16482 ;;
16483 esac
16484 fi
16485 sys_lib_dlsearch_path_spec='/usr/lib'
16486 ;;
16487
John Criswell47fdd832003-07-14 16:52:07 +000016488uts4*)
16489 version_type=linux
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 soname_spec='${libname}${release}${shared_ext}$major'
16492 shlibpath_var=LD_LIBRARY_PATH
16493 ;;
16494
John Criswell7a73b802003-06-30 21:59:07 +000016495*)
16496 dynamic_linker=no
16497 ;;
16498esac
Reid Spencera773bd52006-08-04 18:18:08 +000016499{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16500echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016501test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016502
Reid Spencera773bd52006-08-04 18:18:08 +000016503variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16504if test "$GCC" = yes; then
16505 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16506fi
16507
16508{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16509echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016510hardcode_action=
16511if test -n "$hardcode_libdir_flag_spec" || \
16512 test -n "$runpath_var" || \
16513 test "X$hardcode_automatic" = "Xyes" ; then
16514
16515 # We can hardcode non-existant directories.
16516 if test "$hardcode_direct" != no &&
16517 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16518 # have to relink, otherwise we might link with an installed library
16519 # when we should be linking with a yet-to-be-installed one
16520 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16521 test "$hardcode_minus_L" != no; then
16522 # Linking always hardcodes the temporary library directory.
16523 hardcode_action=relink
16524 else
16525 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16526 hardcode_action=immediate
16527 fi
16528else
16529 # We cannot hardcode anything, or else we can only hardcode existing
16530 # directories.
16531 hardcode_action=unsupported
16532fi
Reid Spencera773bd52006-08-04 18:18:08 +000016533{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16534echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016535
16536if test "$hardcode_action" = relink; then
16537 # Fast installation is not supported
16538 enable_fast_install=no
16539elif test "$shlibpath_overrides_runpath" = yes ||
16540 test "$enable_shared" = no; then
16541 # Fast installation is not necessary
16542 enable_fast_install=needless
16543fi
16544
16545striplib=
16546old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016547{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16548echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016549if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16550 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16551 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016552 { echo "$as_me:$LINENO: result: yes" >&5
16553echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016554else
16555# FIXME - insert some real tests, host_os isn't really good enough
16556 case $host_os in
16557 darwin*)
16558 if test -n "$STRIP" ; then
16559 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016560 { echo "$as_me:$LINENO: result: yes" >&5
16561echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016562 else
Reid Spencera773bd52006-08-04 18:18:08 +000016563 { echo "$as_me:$LINENO: result: no" >&5
16564echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016565fi
16566 ;;
16567 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016568 { echo "$as_me:$LINENO: result: no" >&5
16569echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016570 ;;
16571 esac
16572fi
16573
John Criswell7a73b802003-06-30 21:59:07 +000016574if test "x$enable_dlopen" != xyes; then
16575 enable_dlopen=unknown
16576 enable_dlopen_self=unknown
16577 enable_dlopen_self_static=unknown
16578else
16579 lt_cv_dlopen=no
16580 lt_cv_dlopen_libs=
16581
16582 case $host_os in
16583 beos*)
16584 lt_cv_dlopen="load_add_on"
16585 lt_cv_dlopen_libs=
16586 lt_cv_dlopen_self=yes
16587 ;;
16588
John Criswell47fdd832003-07-14 16:52:07 +000016589 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016590 lt_cv_dlopen="LoadLibrary"
16591 lt_cv_dlopen_libs=
16592 ;;
16593
John Criswell47fdd832003-07-14 16:52:07 +000016594 cygwin*)
16595 lt_cv_dlopen="dlopen"
16596 lt_cv_dlopen_libs=
16597 ;;
16598
16599 darwin*)
16600 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016601 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16602echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016603if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605else
16606 ac_check_lib_save_LIBS=$LIBS
16607LIBS="-ldl $LIBS"
16608cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016609/* confdefs.h. */
16610_ACEOF
16611cat confdefs.h >>conftest.$ac_ext
16612cat >>conftest.$ac_ext <<_ACEOF
16613/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016614
Reid Spencera773bd52006-08-04 18:18:08 +000016615/* Override any GCC internal prototype to avoid an error.
16616 Use char because int might match the return type of a GCC
16617 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016618#ifdef __cplusplus
16619extern "C"
16620#endif
John Criswell47fdd832003-07-14 16:52:07 +000016621char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016622int
16623main ()
16624{
Reid Spencera773bd52006-08-04 18:18:08 +000016625return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016626 ;
16627 return 0;
16628}
16629_ACEOF
16630rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016631if { (ac_try="$ac_link"
16632case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635esac
16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016638 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016643 (exit $ac_status); } &&
16644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16648esac
16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest$ac_exeext'
16655 { (case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16658esac
16659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_try") 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016664 ac_cv_lib_dl_dlopen=yes
16665else
16666 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016667sed 's/^/| /' conftest.$ac_ext >&5
16668
Reid Spencera773bd52006-08-04 18:18:08 +000016669 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016670fi
Reid Spencera773bd52006-08-04 18:18:08 +000016671
Tanya Lattnercf067672008-01-17 05:57:22 +000016672rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016673 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016674LIBS=$ac_check_lib_save_LIBS
16675fi
Reid Spencera773bd52006-08-04 18:18:08 +000016676{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16677echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016678if test $ac_cv_lib_dl_dlopen = yes; then
16679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16680else
16681
16682 lt_cv_dlopen="dyld"
16683 lt_cv_dlopen_libs=
16684 lt_cv_dlopen_self=yes
16685
16686fi
16687
16688 ;;
16689
John Criswell7a73b802003-06-30 21:59:07 +000016690 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016691 { echo "$as_me:$LINENO: checking for shl_load" >&5
16692echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016693if test "${ac_cv_func_shl_load+set}" = set; then
16694 echo $ECHO_N "(cached) $ECHO_C" >&6
16695else
16696 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016697/* confdefs.h. */
16698_ACEOF
16699cat confdefs.h >>conftest.$ac_ext
16700cat >>conftest.$ac_ext <<_ACEOF
16701/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016702/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16704#define shl_load innocuous_shl_load
16705
John Criswell7a73b802003-06-30 21:59:07 +000016706/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016707 which can conflict with char shl_load (); below.
16708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16709 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016710
John Criswell0c38eaf2003-09-10 15:17:25 +000016711#ifdef __STDC__
16712# include <limits.h>
16713#else
16714# include <assert.h>
16715#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016716
16717#undef shl_load
16718
Reid Spencera773bd52006-08-04 18:18:08 +000016719/* Override any GCC internal prototype to avoid an error.
16720 Use char because int might match the return type of a GCC
16721 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016722#ifdef __cplusplus
16723extern "C"
16724#endif
John Criswell7a73b802003-06-30 21:59:07 +000016725char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016726/* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016729#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016730choke me
John Criswell7a73b802003-06-30 21:59:07 +000016731#endif
16732
John Criswell0c38eaf2003-09-10 15:17:25 +000016733int
16734main ()
16735{
Reid Spencera773bd52006-08-04 18:18:08 +000016736return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016737 ;
16738 return 0;
16739}
16740_ACEOF
16741rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016742if { (ac_try="$ac_link"
16743case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746esac
16747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016749 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16756 { (case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16759esac
16760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761 (eval "$ac_try") 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest$ac_exeext'
16766 { (case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16769esac
16770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_try") 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016775 ac_cv_func_shl_load=yes
16776else
16777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016778sed 's/^/| /' conftest.$ac_ext >&5
16779
Reid Spencera773bd52006-08-04 18:18:08 +000016780 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016781fi
Reid Spencera773bd52006-08-04 18:18:08 +000016782
Tanya Lattnercf067672008-01-17 05:57:22 +000016783rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016784 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016785fi
Reid Spencera773bd52006-08-04 18:18:08 +000016786{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16787echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016788if test $ac_cv_func_shl_load = yes; then
16789 lt_cv_dlopen="shl_load"
16790else
Reid Spencera773bd52006-08-04 18:18:08 +000016791 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16792echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016793if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16795else
16796 ac_check_lib_save_LIBS=$LIBS
16797LIBS="-ldld $LIBS"
16798cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016804
Reid Spencera773bd52006-08-04 18:18:08 +000016805/* Override any GCC internal prototype to avoid an error.
16806 Use char because int might match the return type of a GCC
16807 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016808#ifdef __cplusplus
16809extern "C"
16810#endif
John Criswell7a73b802003-06-30 21:59:07 +000016811char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016812int
16813main ()
16814{
Reid Spencera773bd52006-08-04 18:18:08 +000016815return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016816 ;
16817 return 0;
16818}
16819_ACEOF
16820rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016821if { (ac_try="$ac_link"
16822case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825esac
16826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016828 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016829 grep -v '^ *+' conftest.er1 >conftest.err
16830 rm -f conftest.er1
16831 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016833 (exit $ac_status); } &&
16834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16835 { (case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16838esac
16839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_try") 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; } &&
16844 { ac_try='test -s conftest$ac_exeext'
16845 { (case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848esac
16849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_try") 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016854 ac_cv_lib_dld_shl_load=yes
16855else
16856 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016857sed 's/^/| /' conftest.$ac_ext >&5
16858
Reid Spencera773bd52006-08-04 18:18:08 +000016859 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016860fi
Reid Spencera773bd52006-08-04 18:18:08 +000016861
Tanya Lattnercf067672008-01-17 05:57:22 +000016862rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016863 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016864LIBS=$ac_check_lib_save_LIBS
16865fi
Reid Spencera773bd52006-08-04 18:18:08 +000016866{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16867echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016868if test $ac_cv_lib_dld_shl_load = yes; then
16869 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16870else
Reid Spencera773bd52006-08-04 18:18:08 +000016871 { echo "$as_me:$LINENO: checking for dlopen" >&5
16872echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016873if test "${ac_cv_func_dlopen+set}" = set; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875else
16876 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016877/* confdefs.h. */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016882/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16884#define dlopen innocuous_dlopen
16885
John Criswell7a73b802003-06-30 21:59:07 +000016886/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016887 which can conflict with char dlopen (); below.
16888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16889 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016890
John Criswell0c38eaf2003-09-10 15:17:25 +000016891#ifdef __STDC__
16892# include <limits.h>
16893#else
16894# include <assert.h>
16895#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016896
16897#undef dlopen
16898
Reid Spencera773bd52006-08-04 18:18:08 +000016899/* Override any GCC internal prototype to avoid an error.
16900 Use char because int might match the return type of a GCC
16901 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016902#ifdef __cplusplus
16903extern "C"
16904#endif
John Criswell7a73b802003-06-30 21:59:07 +000016905char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016906/* The GNU C library defines this for functions which it implements
16907 to always fail with ENOSYS. Some functions are actually named
16908 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016909#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016910choke me
John Criswell7a73b802003-06-30 21:59:07 +000016911#endif
16912
John Criswell0c38eaf2003-09-10 15:17:25 +000016913int
16914main ()
16915{
Reid Spencera773bd52006-08-04 18:18:08 +000016916return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016917 ;
16918 return 0;
16919}
16920_ACEOF
16921rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016922if { (ac_try="$ac_link"
16923case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16926esac
16927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016929 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016934 (exit $ac_status); } &&
16935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16936 { (case "(($ac_try" in
16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938 *) ac_try_echo=$ac_try;;
16939esac
16940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941 (eval "$ac_try") 2>&5
16942 ac_status=$?
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; } &&
16945 { ac_try='test -s conftest$ac_exeext'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016955 ac_cv_func_dlopen=yes
16956else
16957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016958sed 's/^/| /' conftest.$ac_ext >&5
16959
Reid Spencera773bd52006-08-04 18:18:08 +000016960 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016961fi
Reid Spencera773bd52006-08-04 18:18:08 +000016962
Tanya Lattnercf067672008-01-17 05:57:22 +000016963rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016964 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016965fi
Reid Spencera773bd52006-08-04 18:18:08 +000016966{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16967echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016968if test $ac_cv_func_dlopen = yes; then
16969 lt_cv_dlopen="dlopen"
16970else
Reid Spencera773bd52006-08-04 18:18:08 +000016971 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16972echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016973if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16975else
16976 ac_check_lib_save_LIBS=$LIBS
16977LIBS="-ldl $LIBS"
16978cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016979/* confdefs.h. */
16980_ACEOF
16981cat confdefs.h >>conftest.$ac_ext
16982cat >>conftest.$ac_ext <<_ACEOF
16983/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016984
Reid Spencera773bd52006-08-04 18:18:08 +000016985/* Override any GCC internal prototype to avoid an error.
16986 Use char because int might match the return type of a GCC
16987 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016988#ifdef __cplusplus
16989extern "C"
16990#endif
John Criswell7a73b802003-06-30 21:59:07 +000016991char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016992int
16993main ()
16994{
Reid Spencera773bd52006-08-04 18:18:08 +000016995return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016996 ;
16997 return 0;
16998}
16999_ACEOF
17000rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017001if { (ac_try="$ac_link"
17002case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17005esac
17006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017008 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017009 grep -v '^ *+' conftest.er1 >conftest.err
17010 rm -f conftest.er1
17011 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017013 (exit $ac_status); } &&
17014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17015 { (case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17018esac
17019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_try") 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest$ac_exeext'
17025 { (case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028esac
17029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_try") 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017034 ac_cv_lib_dl_dlopen=yes
17035else
17036 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017037sed 's/^/| /' conftest.$ac_ext >&5
17038
Reid Spencera773bd52006-08-04 18:18:08 +000017039 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017040fi
Reid Spencera773bd52006-08-04 18:18:08 +000017041
Tanya Lattnercf067672008-01-17 05:57:22 +000017042rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017043 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017044LIBS=$ac_check_lib_save_LIBS
17045fi
Reid Spencera773bd52006-08-04 18:18:08 +000017046{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17047echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017048if test $ac_cv_lib_dl_dlopen = yes; then
17049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17050else
Reid Spencera773bd52006-08-04 18:18:08 +000017051 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17052echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017053if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056 ac_check_lib_save_LIBS=$LIBS
17057LIBS="-lsvld $LIBS"
17058cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017059/* confdefs.h. */
17060_ACEOF
17061cat confdefs.h >>conftest.$ac_ext
17062cat >>conftest.$ac_ext <<_ACEOF
17063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017064
Reid Spencera773bd52006-08-04 18:18:08 +000017065/* Override any GCC internal prototype to avoid an error.
17066 Use char because int might match the return type of a GCC
17067 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017068#ifdef __cplusplus
17069extern "C"
17070#endif
John Criswell7a73b802003-06-30 21:59:07 +000017071char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017072int
17073main ()
17074{
Reid Spencera773bd52006-08-04 18:18:08 +000017075return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017076 ;
17077 return 0;
17078}
17079_ACEOF
17080rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017081if { (ac_try="$ac_link"
17082case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17085esac
17086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017088 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017089 grep -v '^ *+' conftest.er1 >conftest.err
17090 rm -f conftest.er1
17091 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017093 (exit $ac_status); } &&
17094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098esac
17099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest$ac_exeext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108esac
17109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017114 ac_cv_lib_svld_dlopen=yes
17115else
17116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017117sed 's/^/| /' conftest.$ac_ext >&5
17118
Reid Spencera773bd52006-08-04 18:18:08 +000017119 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017120fi
Reid Spencera773bd52006-08-04 18:18:08 +000017121
Tanya Lattnercf067672008-01-17 05:57:22 +000017122rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017123 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017124LIBS=$ac_check_lib_save_LIBS
17125fi
Reid Spencera773bd52006-08-04 18:18:08 +000017126{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17127echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017128if test $ac_cv_lib_svld_dlopen = yes; then
17129 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17130else
Reid Spencera773bd52006-08-04 18:18:08 +000017131 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17132echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017133if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135else
17136 ac_check_lib_save_LIBS=$LIBS
17137LIBS="-ldld $LIBS"
17138cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017139/* confdefs.h. */
17140_ACEOF
17141cat confdefs.h >>conftest.$ac_ext
17142cat >>conftest.$ac_ext <<_ACEOF
17143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017144
Reid Spencera773bd52006-08-04 18:18:08 +000017145/* Override any GCC internal prototype to avoid an error.
17146 Use char because int might match the return type of a GCC
17147 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017148#ifdef __cplusplus
17149extern "C"
17150#endif
John Criswell7a73b802003-06-30 21:59:07 +000017151char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017152int
17153main ()
17154{
Reid Spencera773bd52006-08-04 18:18:08 +000017155return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017156 ;
17157 return 0;
17158}
17159_ACEOF
17160rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017161if { (ac_try="$ac_link"
17162case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165esac
17166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017168 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017169 grep -v '^ *+' conftest.er1 >conftest.err
17170 rm -f conftest.er1
17171 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017173 (exit $ac_status); } &&
17174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178esac
17179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest$ac_exeext'
17185 { (case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17188esac
17189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_try") 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017194 ac_cv_lib_dld_dld_link=yes
17195else
17196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017197sed 's/^/| /' conftest.$ac_ext >&5
17198
Reid Spencera773bd52006-08-04 18:18:08 +000017199 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017200fi
Reid Spencera773bd52006-08-04 18:18:08 +000017201
Tanya Lattnercf067672008-01-17 05:57:22 +000017202rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017203 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017204LIBS=$ac_check_lib_save_LIBS
17205fi
Reid Spencera773bd52006-08-04 18:18:08 +000017206{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17207echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017208if test $ac_cv_lib_dld_dld_link = yes; then
17209 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17210fi
17211
17212
17213fi
17214
17215
17216fi
17217
17218
17219fi
17220
17221
17222fi
17223
17224
17225fi
17226
17227 ;;
17228 esac
17229
17230 if test "x$lt_cv_dlopen" != xno; then
17231 enable_dlopen=yes
17232 else
17233 enable_dlopen=no
17234 fi
17235
17236 case $lt_cv_dlopen in
17237 dlopen)
17238 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017239 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017240
17241 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017243
17244 save_LIBS="$LIBS"
17245 LIBS="$lt_cv_dlopen_libs $LIBS"
17246
Reid Spencera773bd52006-08-04 18:18:08 +000017247 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17248echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017249if test "${lt_cv_dlopen_self+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251else
17252 if test "$cross_compiling" = yes; then :
17253 lt_cv_dlopen_self=cross
17254else
John Criswell47fdd832003-07-14 16:52:07 +000017255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017256 lt_status=$lt_dlunknown
17257 cat > conftest.$ac_ext <<EOF
Bill Wendling41ef25b2008-03-05 09:28:02 +000017258#line 17258 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017259#include "confdefs.h"
17260
17261#if HAVE_DLFCN_H
17262#include <dlfcn.h>
17263#endif
17264
17265#include <stdio.h>
17266
17267#ifdef RTLD_GLOBAL
17268# define LT_DLGLOBAL RTLD_GLOBAL
17269#else
17270# ifdef DL_GLOBAL
17271# define LT_DLGLOBAL DL_GLOBAL
17272# else
17273# define LT_DLGLOBAL 0
17274# endif
17275#endif
17276
17277/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17278 find out it does not work in some platform. */
17279#ifndef LT_DLLAZY_OR_NOW
17280# ifdef RTLD_LAZY
17281# define LT_DLLAZY_OR_NOW RTLD_LAZY
17282# else
17283# ifdef DL_LAZY
17284# define LT_DLLAZY_OR_NOW DL_LAZY
17285# else
17286# ifdef RTLD_NOW
17287# define LT_DLLAZY_OR_NOW RTLD_NOW
17288# else
17289# ifdef DL_NOW
17290# define LT_DLLAZY_OR_NOW DL_NOW
17291# else
17292# define LT_DLLAZY_OR_NOW 0
17293# endif
17294# endif
17295# endif
17296# endif
17297#endif
17298
17299#ifdef __cplusplus
17300extern "C" void exit (int);
17301#endif
17302
17303void fnord() { int i=42;}
17304int main ()
17305{
17306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17307 int status = $lt_dlunknown;
17308
17309 if (self)
17310 {
17311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17313 /* dlclose (self); */
17314 }
Reid Spencera773bd52006-08-04 18:18:08 +000017315 else
17316 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017317
17318 exit (status);
17319}
17320EOF
17321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17322 (eval $ac_link) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017326 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017327 lt_status=$?
17328 case x$lt_status in
17329 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17330 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017331 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017332 esac
17333 else :
17334 # compilation failed
17335 lt_cv_dlopen_self=no
17336 fi
17337fi
17338rm -fr conftest*
17339
17340
17341fi
Reid Spencera773bd52006-08-04 18:18:08 +000017342{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17343echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017344
17345 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017346 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17347 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17348echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017349if test "${lt_cv_dlopen_self_static+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17351else
17352 if test "$cross_compiling" = yes; then :
17353 lt_cv_dlopen_self_static=cross
17354else
John Criswell47fdd832003-07-14 16:52:07 +000017355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017356 lt_status=$lt_dlunknown
17357 cat > conftest.$ac_ext <<EOF
Bill Wendling41ef25b2008-03-05 09:28:02 +000017358#line 17358 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017359#include "confdefs.h"
17360
17361#if HAVE_DLFCN_H
17362#include <dlfcn.h>
17363#endif
17364
17365#include <stdio.h>
17366
17367#ifdef RTLD_GLOBAL
17368# define LT_DLGLOBAL RTLD_GLOBAL
17369#else
17370# ifdef DL_GLOBAL
17371# define LT_DLGLOBAL DL_GLOBAL
17372# else
17373# define LT_DLGLOBAL 0
17374# endif
17375#endif
17376
17377/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17378 find out it does not work in some platform. */
17379#ifndef LT_DLLAZY_OR_NOW
17380# ifdef RTLD_LAZY
17381# define LT_DLLAZY_OR_NOW RTLD_LAZY
17382# else
17383# ifdef DL_LAZY
17384# define LT_DLLAZY_OR_NOW DL_LAZY
17385# else
17386# ifdef RTLD_NOW
17387# define LT_DLLAZY_OR_NOW RTLD_NOW
17388# else
17389# ifdef DL_NOW
17390# define LT_DLLAZY_OR_NOW DL_NOW
17391# else
17392# define LT_DLLAZY_OR_NOW 0
17393# endif
17394# endif
17395# endif
17396# endif
17397#endif
17398
17399#ifdef __cplusplus
17400extern "C" void exit (int);
17401#endif
17402
17403void fnord() { int i=42;}
17404int main ()
17405{
17406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17407 int status = $lt_dlunknown;
17408
17409 if (self)
17410 {
17411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17413 /* dlclose (self); */
17414 }
Reid Spencera773bd52006-08-04 18:18:08 +000017415 else
17416 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017417
17418 exit (status);
17419}
17420EOF
17421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17422 (eval $ac_link) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017426 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017427 lt_status=$?
17428 case x$lt_status in
17429 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17430 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017431 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017432 esac
17433 else :
17434 # compilation failed
17435 lt_cv_dlopen_self_static=no
17436 fi
17437fi
17438rm -fr conftest*
17439
17440
17441fi
Reid Spencera773bd52006-08-04 18:18:08 +000017442{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17443echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017444 fi
17445
17446 CPPFLAGS="$save_CPPFLAGS"
17447 LDFLAGS="$save_LDFLAGS"
17448 LIBS="$save_LIBS"
17449 ;;
17450 esac
17451
17452 case $lt_cv_dlopen_self in
17453 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17454 *) enable_dlopen_self=unknown ;;
17455 esac
17456
17457 case $lt_cv_dlopen_self_static in
17458 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17459 *) enable_dlopen_self_static=unknown ;;
17460 esac
17461fi
17462
17463
Reid Spencera773bd52006-08-04 18:18:08 +000017464# Report which library types will actually be built
17465{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17466echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17467{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17468echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017469
Reid Spencera773bd52006-08-04 18:18:08 +000017470{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17471echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017472test "$can_build_shared" = "no" && enable_shared=no
17473
17474# On AIX, shared libraries and static libraries use the same namespace, and
17475# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017476case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017477aix3*)
17478 test "$enable_shared" = yes && enable_static=no
17479 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017480 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017481 postinstall_cmds='$RANLIB $lib'
17482 fi
17483 ;;
17484
Reid Spencer2706f8c2004-09-19 23:53:36 +000017485aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17487 test "$enable_shared" = yes && enable_static=no
17488 fi
John Criswell7a73b802003-06-30 21:59:07 +000017489 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017490esac
Reid Spencera773bd52006-08-04 18:18:08 +000017491{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17492echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017493
Reid Spencera773bd52006-08-04 18:18:08 +000017494{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17495echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017496# Make sure either enable_shared or enable_static is yes.
17497test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017498{ echo "$as_me:$LINENO: result: $enable_static" >&5
17499echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017500
17501# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017502# libtool distribution, otherwise you forgot to ship ltmain.sh
17503# with your package, and you will get complaints that there are
17504# no rules to generate ltmain.sh.
17505if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017506 # See if we are running on zsh, and set the options which allow our commands through
17507 # without removal of \ escapes.
17508 if test -n "${ZSH_VERSION+set}" ; then
17509 setopt NO_GLOB_SUBST
17510 fi
John Criswell7a73b802003-06-30 21:59:07 +000017511 # Now quote all the things that may contain metacharacters while being
17512 # careful not to overquote the AC_SUBSTed values. We take copies of the
17513 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017514 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 +000017515 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017516 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17517 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17518 deplibs_check_method reload_flag reload_cmds need_locks \
17519 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17520 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017521 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017522 old_postinstall_cmds old_postuninstall_cmds \
17523 compiler \
17524 CC \
17525 LD \
17526 lt_prog_compiler_wl \
17527 lt_prog_compiler_pic \
17528 lt_prog_compiler_static \
17529 lt_prog_compiler_no_builtin_flag \
17530 export_dynamic_flag_spec \
17531 thread_safe_flag_spec \
17532 whole_archive_flag_spec \
17533 enable_shared_with_static_runtimes \
17534 old_archive_cmds \
17535 old_archive_from_new_cmds \
17536 predep_objects \
17537 postdep_objects \
17538 predeps \
17539 postdeps \
17540 compiler_lib_search_path \
17541 archive_cmds \
17542 archive_expsym_cmds \
17543 postinstall_cmds \
17544 postuninstall_cmds \
17545 old_archive_from_expsyms_cmds \
17546 allow_undefined_flag \
17547 no_undefined_flag \
17548 export_symbols_cmds \
17549 hardcode_libdir_flag_spec \
17550 hardcode_libdir_flag_spec_ld \
17551 hardcode_libdir_separator \
17552 hardcode_automatic \
17553 module_cmds \
17554 module_expsym_cmds \
17555 lt_cv_prog_compiler_c_o \
17556 exclude_expsyms \
17557 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017558
17559 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017560 old_archive_cmds | \
17561 old_archive_from_new_cmds | \
17562 archive_cmds | \
17563 archive_expsym_cmds | \
17564 module_cmds | \
17565 module_expsym_cmds | \
17566 old_archive_from_expsyms_cmds | \
17567 export_symbols_cmds | \
17568 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017569 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017570 old_postinstall_cmds | old_postuninstall_cmds | \
17571 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017572 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017573 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 +000017574 ;;
17575 *)
17576 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17577 ;;
17578 esac
17579 done
17580
John Criswell47fdd832003-07-14 16:52:07 +000017581 case $lt_echo in
17582 *'\$0 --fallback-echo"')
17583 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17584 ;;
17585 esac
17586
17587cfgfile="${ofile}T"
17588 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17589 $rm -f "$cfgfile"
17590 { echo "$as_me:$LINENO: creating $ofile" >&5
17591echo "$as_me: creating $ofile" >&6;}
17592
17593 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017594#! $SHELL
17595
John Criswell47fdd832003-07-14 16:52:07 +000017596# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017597# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17598# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17599#
John Criswell47fdd832003-07-14 16:52:07 +000017600# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17601# Free Software Foundation, Inc.
17602#
17603# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017604# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17605#
17606# This program is free software; you can redistribute it and/or modify
17607# it under the terms of the GNU General Public License as published by
17608# the Free Software Foundation; either version 2 of the License, or
17609# (at your option) any later version.
17610#
17611# This program is distributed in the hope that it will be useful, but
17612# WITHOUT ANY WARRANTY; without even the implied warranty of
17613# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17614# General Public License for more details.
17615#
17616# You should have received a copy of the GNU General Public License
17617# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017618# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017619#
17620# As a special exception to the GNU General Public License, if you
17621# distribute this file as part of a program that contains a
17622# configuration script generated by Autoconf, you may include it under
17623# the same distribution terms that you use for the rest of that program.
17624
John Criswell47fdd832003-07-14 16:52:07 +000017625# A sed program that does not truncate output.
17626SED=$lt_SED
17627
John Criswell7a73b802003-06-30 21:59:07 +000017628# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017629Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017630
17631# The HP-UX ksh and POSIX shell print the target directory to stdout
17632# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017633(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017634
John Criswell47fdd832003-07-14 16:52:07 +000017635# The names of the tagged configurations supported by this script.
17636available_tags=
17637
John Criswell7a73b802003-06-30 21:59:07 +000017638# ### BEGIN LIBTOOL CONFIG
17639
17640# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17641
17642# Shell to use when invoking shell scripts.
17643SHELL=$lt_SHELL
17644
17645# Whether or not to build shared libraries.
17646build_libtool_libs=$enable_shared
17647
17648# Whether or not to build static libraries.
17649build_old_libs=$enable_static
17650
17651# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017652build_libtool_need_lc=$archive_cmds_need_lc
17653
17654# Whether or not to disallow shared libs when runtime libs are static
17655allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017656
17657# Whether or not to optimize for fast installation.
17658fast_install=$enable_fast_install
17659
17660# The host system.
17661host_alias=$host_alias
17662host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017663host_os=$host_os
17664
17665# The build system.
17666build_alias=$build_alias
17667build=$build
17668build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017669
17670# An echo program that does not interpret backslashes.
17671echo=$lt_echo
17672
17673# The archiver.
17674AR=$lt_AR
17675AR_FLAGS=$lt_AR_FLAGS
17676
John Criswell47fdd832003-07-14 16:52:07 +000017677# A C compiler.
17678LTCC=$lt_LTCC
17679
Reid Spencera773bd52006-08-04 18:18:08 +000017680# LTCC compiler flags.
17681LTCFLAGS=$lt_LTCFLAGS
17682
John Criswell47fdd832003-07-14 16:52:07 +000017683# A language-specific compiler.
17684CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017685
17686# Is the compiler the GNU C compiler?
17687with_gcc=$GCC
17688
John Criswell47fdd832003-07-14 16:52:07 +000017689# An ERE matcher.
17690EGREP=$lt_EGREP
17691
John Criswell7a73b802003-06-30 21:59:07 +000017692# The linker used to build libraries.
17693LD=$lt_LD
17694
17695# Whether we need hard or soft links.
17696LN_S=$lt_LN_S
17697
17698# A BSD-compatible nm program.
17699NM=$lt_NM
17700
17701# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017702STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017703
17704# Used to examine libraries when file_magic_cmd begins "file"
17705MAGIC_CMD=$MAGIC_CMD
17706
17707# Used on cygwin: DLL creation program.
17708DLLTOOL="$DLLTOOL"
17709
17710# Used on cygwin: object dumper.
17711OBJDUMP="$OBJDUMP"
17712
17713# Used on cygwin: assembler.
17714AS="$AS"
17715
17716# The name of the directory that contains temporary libtool files.
17717objdir=$objdir
17718
17719# How to create reloadable object files.
17720reload_flag=$lt_reload_flag
17721reload_cmds=$lt_reload_cmds
17722
17723# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017724wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017725
17726# Object file suffix (normally "o").
17727objext="$ac_objext"
17728
17729# Old archive suffix (normally "a").
17730libext="$libext"
17731
John Criswell47fdd832003-07-14 16:52:07 +000017732# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017733shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017734
John Criswell7a73b802003-06-30 21:59:07 +000017735# Executable file suffix (normally "").
17736exeext="$exeext"
17737
17738# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017739pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017740pic_mode=$pic_mode
17741
John Criswell47fdd832003-07-14 16:52:07 +000017742# What is the maximum length of a command?
17743max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017744
John Criswell47fdd832003-07-14 16:52:07 +000017745# Does compiler simultaneously support -c and -o options?
17746compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017747
Reid Spencera773bd52006-08-04 18:18:08 +000017748# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017749need_locks=$lt_need_locks
17750
17751# Do we need the lib prefix for modules?
17752need_lib_prefix=$need_lib_prefix
17753
17754# Do we need a version for libraries?
17755need_version=$need_version
17756
17757# Whether dlopen is supported.
17758dlopen_support=$enable_dlopen
17759
17760# Whether dlopen of programs is supported.
17761dlopen_self=$enable_dlopen_self
17762
17763# Whether dlopen of statically linked programs is supported.
17764dlopen_self_static=$enable_dlopen_self_static
17765
17766# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017767link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017768
17769# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017770no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017771
17772# Compiler flag to allow reflexive dlopens.
17773export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17774
17775# Compiler flag to generate shared objects directly from archives.
17776whole_archive_flag_spec=$lt_whole_archive_flag_spec
17777
17778# Compiler flag to generate thread-safe objects.
17779thread_safe_flag_spec=$lt_thread_safe_flag_spec
17780
17781# Library versioning type.
17782version_type=$version_type
17783
17784# Format of library name prefix.
17785libname_spec=$lt_libname_spec
17786
17787# List of archive names. First name is the real one, the rest are links.
17788# The last name is the one that the linker finds with -lNAME.
17789library_names_spec=$lt_library_names_spec
17790
17791# The coded name of the library, if different from the real name.
17792soname_spec=$lt_soname_spec
17793
17794# Commands used to build and install an old-style archive.
17795RANLIB=$lt_RANLIB
17796old_archive_cmds=$lt_old_archive_cmds
17797old_postinstall_cmds=$lt_old_postinstall_cmds
17798old_postuninstall_cmds=$lt_old_postuninstall_cmds
17799
17800# Create an old-style archive from a shared archive.
17801old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17802
17803# Create a temporary old-style archive to link instead of a shared archive.
17804old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17805
17806# Commands used to build and install a shared archive.
17807archive_cmds=$lt_archive_cmds
17808archive_expsym_cmds=$lt_archive_expsym_cmds
17809postinstall_cmds=$lt_postinstall_cmds
17810postuninstall_cmds=$lt_postuninstall_cmds
17811
John Criswell47fdd832003-07-14 16:52:07 +000017812# Commands used to build a loadable module (assumed same as above if empty)
17813module_cmds=$lt_module_cmds
17814module_expsym_cmds=$lt_module_expsym_cmds
17815
John Criswell7a73b802003-06-30 21:59:07 +000017816# Commands to strip libraries.
17817old_striplib=$lt_old_striplib
17818striplib=$lt_striplib
17819
John Criswell47fdd832003-07-14 16:52:07 +000017820# Dependencies to place before the objects being linked to create a
17821# shared library.
17822predep_objects=$lt_predep_objects
17823
17824# Dependencies to place after the objects being linked to create a
17825# shared library.
17826postdep_objects=$lt_postdep_objects
17827
17828# Dependencies to place before the objects being linked to create a
17829# shared library.
17830predeps=$lt_predeps
17831
17832# Dependencies to place after the objects being linked to create a
17833# shared library.
17834postdeps=$lt_postdeps
17835
17836# The library search path used internally by the compiler when linking
17837# a shared library.
17838compiler_lib_search_path=$lt_compiler_lib_search_path
17839
John Criswell7a73b802003-06-30 21:59:07 +000017840# Method to check whether dependent libraries are shared objects.
17841deplibs_check_method=$lt_deplibs_check_method
17842
17843# Command to use when deplibs_check_method == file_magic.
17844file_magic_cmd=$lt_file_magic_cmd
17845
17846# Flag that allows shared libraries with undefined symbols to be built.
17847allow_undefined_flag=$lt_allow_undefined_flag
17848
17849# Flag that forces no undefined symbols.
17850no_undefined_flag=$lt_no_undefined_flag
17851
17852# Commands used to finish a libtool library installation in a directory.
17853finish_cmds=$lt_finish_cmds
17854
17855# Same as above, but a single script fragment to be evaled but not shown.
17856finish_eval=$lt_finish_eval
17857
17858# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017859global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017860
17861# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017862global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017863
17864# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017865global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017866
17867# This is the shared library runtime path variable.
17868runpath_var=$runpath_var
17869
17870# This is the shared library path variable.
17871shlibpath_var=$shlibpath_var
17872
17873# Is shlibpath searched before the hard-coded library search path?
17874shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17875
17876# How to hardcode a shared library path into an executable.
17877hardcode_action=$hardcode_action
17878
17879# Whether we should hardcode library paths into libraries.
17880hardcode_into_libs=$hardcode_into_libs
17881
17882# Flag to hardcode \$libdir into a binary during linking.
17883# This must work even if \$libdir does not exist.
17884hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17885
John Criswell47fdd832003-07-14 16:52:07 +000017886# If ld is used when linking, flag to hardcode \$libdir into
17887# a binary during linking. This must work even if \$libdir does
17888# not exist.
17889hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17890
John Criswell7a73b802003-06-30 21:59:07 +000017891# Whether we need a single -rpath flag with a separated argument.
17892hardcode_libdir_separator=$lt_hardcode_libdir_separator
17893
John Criswell47fdd832003-07-14 16:52:07 +000017894# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017895# resulting binary.
17896hardcode_direct=$hardcode_direct
17897
17898# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17899# resulting binary.
17900hardcode_minus_L=$hardcode_minus_L
17901
17902# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17903# the resulting binary.
17904hardcode_shlibpath_var=$hardcode_shlibpath_var
17905
John Criswell47fdd832003-07-14 16:52:07 +000017906# Set to yes if building a shared library automatically hardcodes DIR into the library
17907# and all subsequent libraries and executables linked against it.
17908hardcode_automatic=$hardcode_automatic
17909
John Criswell7a73b802003-06-30 21:59:07 +000017910# Variables whose values should be saved in libtool wrapper scripts and
17911# restored at relink time.
17912variables_saved_for_relink="$variables_saved_for_relink"
17913
17914# Whether libtool must link a program against all its dependency libraries.
17915link_all_deplibs=$link_all_deplibs
17916
17917# Compile-time system search path for libraries
17918sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17919
17920# Run-time system search path for libraries
17921sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17922
17923# Fix the shell variable \$srcfile for the compiler.
17924fix_srcfile_path="$fix_srcfile_path"
17925
17926# Set to yes if exported symbols are required.
17927always_export_symbols=$always_export_symbols
17928
17929# The commands to list exported symbols.
17930export_symbols_cmds=$lt_export_symbols_cmds
17931
17932# The commands to extract the exported symbol list from a shared archive.
17933extract_expsyms_cmds=$lt_extract_expsyms_cmds
17934
17935# Symbols that should not be listed in the preloaded symbols.
17936exclude_expsyms=$lt_exclude_expsyms
17937
17938# Symbols that must always be exported.
17939include_expsyms=$lt_include_expsyms
17940
17941# ### END LIBTOOL CONFIG
17942
17943__EOF__
17944
John Criswell47fdd832003-07-14 16:52:07 +000017945
John Criswell7a73b802003-06-30 21:59:07 +000017946 case $host_os in
17947 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017948 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017949
17950# AIX sometimes has problems with the GCC collect2 program. For some
17951# reason, if we set the COLLECT_NAMES environment variable, the problems
17952# vanish in a puff of smoke.
17953if test "X${COLLECT_NAMES+set}" != Xset; then
17954 COLLECT_NAMES=
17955 export COLLECT_NAMES
17956fi
17957EOF
17958 ;;
17959 esac
17960
John Criswell7a73b802003-06-30 21:59:07 +000017961 # We use sed instead of cat because bash on DJGPP gets confused if
17962 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17963 # text mode, it properly converts lines to CR/LF. This bash problem
17964 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017965 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017966
John Criswell47fdd832003-07-14 16:52:07 +000017967 mv -f "$cfgfile" "$ofile" || \
17968 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017969 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017970
17971else
17972 # If there is no Makefile yet, we rely on a make rule to execute
17973 # `config.status --recheck' to rerun these tests and create the
17974 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017975 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17976 if test -f "$ltmain_in"; then
17977 test -f Makefile && make "$ltmain"
17978 fi
John Criswell7a73b802003-06-30 21:59:07 +000017979fi
John Criswell7a73b802003-06-30 21:59:07 +000017980
17981
John Criswell47fdd832003-07-14 16:52:07 +000017982ac_ext=c
17983ac_cpp='$CPP $CPPFLAGS'
17984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17986ac_compiler_gnu=$ac_cv_c_compiler_gnu
17987
17988CC="$lt_save_CC"
17989
17990
Reid Spencera773bd52006-08-04 18:18:08 +000017991# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017992if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017993 withval=$with_tags; tagnames="$withval"
17994fi
17995
John Criswell47fdd832003-07-14 16:52:07 +000017996
17997if test -f "$ltmain" && test -n "$tagnames"; then
17998 if test ! -f "${ofile}"; then
17999 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18000echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18001 fi
18002
18003 if test -z "$LTCC"; then
18004 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18005 if test -z "$LTCC"; then
18006 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18007echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18008 else
18009 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18010echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18011 fi
18012 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018013 if test -z "$LTCFLAGS"; then
18014 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18015 fi
John Criswell47fdd832003-07-14 16:52:07 +000018016
18017 # Extract list of available tagged configurations in $ofile.
18018 # Note that this assumes the entire list is on one line.
18019 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18020
18021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18022 for tagname in $tagnames; do
18023 IFS="$lt_save_ifs"
18024 # Check whether tagname contains only valid characters
18025 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18026 "") ;;
18027 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18028echo "$as_me: error: invalid tag name: $tagname" >&2;}
18029 { (exit 1); exit 1; }; }
18030 ;;
18031 esac
18032
18033 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18034 then
18035 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18036echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18037 { (exit 1); exit 1; }; }
18038 fi
18039
18040 # Update the list of available tags.
18041 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018042 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018043
18044 case $tagname in
18045 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018046 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18047 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18048 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018049 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018050ac_cpp='$CXXCPP $CPPFLAGS'
18051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18054
18055
18056
18057
18058archive_cmds_need_lc_CXX=no
18059allow_undefined_flag_CXX=
18060always_export_symbols_CXX=no
18061archive_expsym_cmds_CXX=
18062export_dynamic_flag_spec_CXX=
18063hardcode_direct_CXX=no
18064hardcode_libdir_flag_spec_CXX=
18065hardcode_libdir_flag_spec_ld_CXX=
18066hardcode_libdir_separator_CXX=
18067hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018068hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018069hardcode_automatic_CXX=no
18070module_cmds_CXX=
18071module_expsym_cmds_CXX=
18072link_all_deplibs_CXX=unknown
18073old_archive_cmds_CXX=$old_archive_cmds
18074no_undefined_flag_CXX=
18075whole_archive_flag_spec_CXX=
18076enable_shared_with_static_runtimes_CXX=no
18077
18078# Dependencies to place before and after the object being linked:
18079predep_objects_CXX=
18080postdep_objects_CXX=
18081predeps_CXX=
18082postdeps_CXX=
18083compiler_lib_search_path_CXX=
18084
18085# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018086ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018087
18088# Object file extension for compiled C++ test sources.
18089objext=o
18090objext_CXX=$objext
18091
18092# Code to be used in simple compile tests
18093lt_simple_compile_test_code="int some_variable = 0;\n"
18094
18095# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018096lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018097
18098# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18099
18100# If no C compiler was specified, use CC.
18101LTCC=${LTCC-"$CC"}
18102
Reid Spencera773bd52006-08-04 18:18:08 +000018103# If no C compiler flags were specified, use CFLAGS.
18104LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18105
John Criswell47fdd832003-07-14 16:52:07 +000018106# Allow CC to be a program name with arguments.
18107compiler=$CC
18108
18109
Reid Spencera773bd52006-08-04 18:18:08 +000018110# save warnings/boilerplate of simple test code
18111ac_outfile=conftest.$ac_objext
18112printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18113eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18114_lt_compiler_boilerplate=`cat conftest.err`
18115$rm conftest*
18116
18117ac_outfile=conftest.$ac_objext
18118printf "$lt_simple_link_test_code" >conftest.$ac_ext
18119eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18120_lt_linker_boilerplate=`cat conftest.err`
18121$rm conftest*
18122
18123
John Criswell47fdd832003-07-14 16:52:07 +000018124# Allow CC to be a program name with arguments.
18125lt_save_CC=$CC
18126lt_save_LD=$LD
18127lt_save_GCC=$GCC
18128GCC=$GXX
18129lt_save_with_gnu_ld=$with_gnu_ld
18130lt_save_path_LD=$lt_cv_path_LD
18131if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18132 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18133else
Reid Spencera773bd52006-08-04 18:18:08 +000018134 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018135fi
18136if test -n "${lt_cv_path_LDCXX+set}"; then
18137 lt_cv_path_LD=$lt_cv_path_LDCXX
18138else
Reid Spencera773bd52006-08-04 18:18:08 +000018139 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018140fi
18141test -z "${LDCXX+set}" || LD=$LDCXX
18142CC=${CXX-"c++"}
18143compiler=$CC
18144compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018145for cc_temp in $compiler""; do
18146 case $cc_temp in
18147 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18148 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18149 \-*) ;;
18150 *) break;;
18151 esac
18152done
18153cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18154
John Criswell47fdd832003-07-14 16:52:07 +000018155
18156# We don't want -fno-exception wen compiling C++ code, so set the
18157# no_builtin_flag separately
18158if test "$GXX" = yes; then
18159 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18160else
18161 lt_prog_compiler_no_builtin_flag_CXX=
18162fi
18163
18164if test "$GXX" = yes; then
18165 # Set up default GNU C++ configuration
18166
18167
Reid Spencera773bd52006-08-04 18:18:08 +000018168# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018169if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018171else
18172 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018173fi
18174
John Criswell47fdd832003-07-14 16:52:07 +000018175ac_prog=ld
18176if test "$GCC" = yes; then
18177 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018178 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18179echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018180 case $host in
18181 *-*-mingw*)
18182 # gcc leaves a trailing carriage return which upsets mingw
18183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18184 *)
18185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18186 esac
18187 case $ac_prog in
18188 # Accept absolute paths.
18189 [\\/]* | ?:[\\/]*)
18190 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018191 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018192 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18193 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18194 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18195 done
18196 test -z "$LD" && LD="$ac_prog"
18197 ;;
18198 "")
18199 # If it fails, then pretend we aren't using GCC.
18200 ac_prog=ld
18201 ;;
18202 *)
18203 # If it is relative, then search for the first ld in PATH.
18204 with_gnu_ld=unknown
18205 ;;
18206 esac
18207elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018208 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18209echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018210else
Reid Spencera773bd52006-08-04 18:18:08 +000018211 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18212echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018213fi
18214if test "${lt_cv_path_LD+set}" = set; then
18215 echo $ECHO_N "(cached) $ECHO_C" >&6
18216else
18217 if test -z "$LD"; then
18218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18219 for ac_dir in $PATH; do
18220 IFS="$lt_save_ifs"
18221 test -z "$ac_dir" && ac_dir=.
18222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18223 lt_cv_path_LD="$ac_dir/$ac_prog"
18224 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018225 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018226 # Break only if it was the GNU/non-GNU ld that we prefer.
18227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18228 *GNU* | *'with BFD'*)
18229 test "$with_gnu_ld" != no && break
18230 ;;
18231 *)
18232 test "$with_gnu_ld" != yes && break
18233 ;;
18234 esac
18235 fi
18236 done
18237 IFS="$lt_save_ifs"
18238else
18239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18240fi
18241fi
18242
18243LD="$lt_cv_path_LD"
18244if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018245 { echo "$as_me:$LINENO: result: $LD" >&5
18246echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018247else
Reid Spencera773bd52006-08-04 18:18:08 +000018248 { echo "$as_me:$LINENO: result: no" >&5
18249echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018250fi
18251test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18252echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18253 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018254{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18255echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018256if test "${lt_cv_prog_gnu_ld+set}" = set; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18258else
Reid Spencera773bd52006-08-04 18:18:08 +000018259 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018260case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018261*GNU* | *'with BFD'*)
18262 lt_cv_prog_gnu_ld=yes
18263 ;;
18264*)
18265 lt_cv_prog_gnu_ld=no
18266 ;;
18267esac
18268fi
Reid Spencera773bd52006-08-04 18:18:08 +000018269{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18270echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018271with_gnu_ld=$lt_cv_prog_gnu_ld
18272
18273
18274
18275 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18276 # archiving commands below assume that GNU ld is being used.
18277 if test "$with_gnu_ld" = yes; then
18278 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18279 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'
18280
18281 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18282 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18283
18284 # If archive_cmds runs LD, not CC, wlarc should be empty
18285 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18286 # investigate it a little bit more. (MM)
18287 wlarc='${wl}'
18288
18289 # ancient GNU ld didn't support --whole-archive et. al.
18290 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18291 grep 'no-whole-archive' > /dev/null; then
18292 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18293 else
18294 whole_archive_flag_spec_CXX=
18295 fi
18296 else
18297 with_gnu_ld=no
18298 wlarc=
18299
18300 # A generic and very simple default shared library creation
18301 # command for GNU C++ for the case where it uses the native
18302 # linker, instead of GNU ld. If possible, this setting should
18303 # overridden to take advantage of the native linker features on
18304 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018305 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018306 fi
18307
18308 # Commands to make compiler produce verbose output that lists
18309 # what "hidden" libraries, object files and flags are used when
18310 # linking a shared library.
18311 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18312
18313else
18314 GXX=no
18315 with_gnu_ld=no
18316 wlarc=
18317fi
18318
18319# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018320{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18321echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018322ld_shlibs_CXX=yes
18323case $host_os in
18324 aix3*)
18325 # FIXME: insert proper C++ library support
18326 ld_shlibs_CXX=no
18327 ;;
18328 aix4* | aix5*)
18329 if test "$host_cpu" = ia64; then
18330 # On IA64, the linker does run time linking by default, so we don't
18331 # have to do anything special.
18332 aix_use_runtimelinking=no
18333 exp_sym_flag='-Bexport'
18334 no_entry_flag=""
18335 else
18336 aix_use_runtimelinking=no
18337
18338 # Test if we are trying to use run time linking or normal
18339 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18340 # need to do runtime linking.
18341 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18342 for ld_flag in $LDFLAGS; do
18343 case $ld_flag in
18344 *-brtl*)
18345 aix_use_runtimelinking=yes
18346 break
18347 ;;
18348 esac
18349 done
Reid Spencera773bd52006-08-04 18:18:08 +000018350 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018351 esac
18352
18353 exp_sym_flag='-bexport'
18354 no_entry_flag='-bnoentry'
18355 fi
18356
18357 # When large executables or shared objects are built, AIX ld can
18358 # have problems creating the table of contents. If linking a library
18359 # or program results in "error TOC overflow" add -mminimal-toc to
18360 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18361 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18362
18363 archive_cmds_CXX=''
18364 hardcode_direct_CXX=yes
18365 hardcode_libdir_separator_CXX=':'
18366 link_all_deplibs_CXX=yes
18367
18368 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018369 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018370 # We only want to do this on AIX 4.2 and lower, the check
18371 # below for broken collect2 doesn't work under 4.3+
18372 collect2name=`${CC} -print-prog-name=collect2`
18373 if test -f "$collect2name" && \
18374 strings "$collect2name" | grep resolve_lib_name >/dev/null
18375 then
18376 # We have reworked collect2
18377 hardcode_direct_CXX=yes
18378 else
18379 # We have old collect2
18380 hardcode_direct_CXX=unsupported
18381 # It fails to find uninstalled libraries when the uninstalled
18382 # path is not listed in the libpath. Setting hardcode_minus_L
18383 # to unsupported forces relinking
18384 hardcode_minus_L_CXX=yes
18385 hardcode_libdir_flag_spec_CXX='-L$libdir'
18386 hardcode_libdir_separator_CXX=
18387 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018388 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018389 esac
18390 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018391 if test "$aix_use_runtimelinking" = yes; then
18392 shared_flag="$shared_flag "'${wl}-G'
18393 fi
John Criswell47fdd832003-07-14 16:52:07 +000018394 else
18395 # not using gcc
18396 if test "$host_cpu" = ia64; then
18397 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18398 # chokes on -Wl,-G. The following line is correct:
18399 shared_flag='-G'
18400 else
18401 if test "$aix_use_runtimelinking" = yes; then
18402 shared_flag='${wl}-G'
18403 else
18404 shared_flag='${wl}-bM:SRE'
18405 fi
18406 fi
18407 fi
18408
18409 # It seems that -bexpall does not export symbols beginning with
18410 # underscore (_), so it is better to generate a list of symbols to export.
18411 always_export_symbols_CXX=yes
18412 if test "$aix_use_runtimelinking" = yes; then
18413 # Warning - without using the other runtime loading flags (-brtl),
18414 # -berok will link without error, but may produce a broken library.
18415 allow_undefined_flag_CXX='-berok'
18416 # Determine the default libpath from the value encoded in an empty executable.
18417 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018418/* confdefs.h. */
18419_ACEOF
18420cat confdefs.h >>conftest.$ac_ext
18421cat >>conftest.$ac_ext <<_ACEOF
18422/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018423
John Criswell47fdd832003-07-14 16:52:07 +000018424int
18425main ()
18426{
18427
18428 ;
18429 return 0;
18430}
18431_ACEOF
18432rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018433if { (ac_try="$ac_link"
18434case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437esac
18438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018441 grep -v '^ *+' conftest.er1 >conftest.err
18442 rm -f conftest.er1
18443 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018445 (exit $ac_status); } &&
18446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18447 { (case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450esac
18451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_try") 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; } &&
18456 { ac_try='test -s conftest$ac_exeext'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460esac
18461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018466
18467aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18468}'`
18469# Check for a 64-bit object if we didn't find anything.
18470if 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; }
18471}'`; fi
18472else
18473 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018474sed 's/^/| /' conftest.$ac_ext >&5
18475
Reid Spencera773bd52006-08-04 18:18:08 +000018476
John Criswell47fdd832003-07-14 16:52:07 +000018477fi
Reid Spencera773bd52006-08-04 18:18:08 +000018478
Tanya Lattnercf067672008-01-17 05:57:22 +000018479rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018480 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018481if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18482
18483 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18484
Reid Spencera773bd52006-08-04 18:18:08 +000018485 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 +000018486 else
18487 if test "$host_cpu" = ia64; then
18488 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18489 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018490 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 +000018491 else
18492 # Determine the default libpath from the value encoded in an empty executable.
18493 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018494/* confdefs.h. */
18495_ACEOF
18496cat confdefs.h >>conftest.$ac_ext
18497cat >>conftest.$ac_ext <<_ACEOF
18498/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018499
John Criswell47fdd832003-07-14 16:52:07 +000018500int
18501main ()
18502{
18503
18504 ;
18505 return 0;
18506}
18507_ACEOF
18508rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018509if { (ac_try="$ac_link"
18510case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18513esac
18514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018516 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018521 (exit $ac_status); } &&
18522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526esac
18527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest$ac_exeext'
18533 { (case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536esac
18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_try") 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018542
18543aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18544}'`
18545# Check for a 64-bit object if we didn't find anything.
18546if 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; }
18547}'`; fi
18548else
18549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018550sed 's/^/| /' conftest.$ac_ext >&5
18551
Reid Spencera773bd52006-08-04 18:18:08 +000018552
John Criswell47fdd832003-07-14 16:52:07 +000018553fi
Reid Spencera773bd52006-08-04 18:18:08 +000018554
Tanya Lattnercf067672008-01-17 05:57:22 +000018555rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018556 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018557if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18558
18559 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18560 # Warning - without using the other run time loading flags,
18561 # -berok will link without error, but may produce a broken library.
18562 no_undefined_flag_CXX=' ${wl}-bernotok'
18563 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018564 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018565 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018566 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018567 # This is similar to how AIX traditionally builds its shared libraries.
18568 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 +000018569 fi
18570 fi
18571 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018572
18573 beos*)
18574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18575 allow_undefined_flag_CXX=unsupported
18576 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18577 # support --undefined. This deserves some investigation. FIXME
18578 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18579 else
18580 ld_shlibs_CXX=no
18581 fi
18582 ;;
18583
John Criswell47fdd832003-07-14 16:52:07 +000018584 chorus*)
18585 case $cc_basename in
18586 *)
18587 # FIXME: insert proper C++ library support
18588 ld_shlibs_CXX=no
18589 ;;
18590 esac
18591 ;;
18592
18593 cygwin* | mingw* | pw32*)
18594 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18595 # as there is no search path for DLLs.
18596 hardcode_libdir_flag_spec_CXX='-L$libdir'
18597 allow_undefined_flag_CXX=unsupported
18598 always_export_symbols_CXX=no
18599 enable_shared_with_static_runtimes_CXX=yes
18600
18601 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018602 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 +000018603 # If the export-symbols file already is a .def file (1st line
18604 # is EXPORTS), use it as is; otherwise, prepend...
18605 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18606 cp $export_symbols $output_objdir/$soname.def;
18607 else
18608 echo EXPORTS > $output_objdir/$soname.def;
18609 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018610 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018611 $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 +000018612 else
18613 ld_shlibs_CXX=no
18614 fi
18615 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018616 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018617 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018618 rhapsody* | darwin1.[012])
18619 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18620 ;;
18621 *) # Darwin 1.3 on
18622 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18623 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18624 else
18625 case ${MACOSX_DEPLOYMENT_TARGET} in
18626 10.[012])
18627 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18628 ;;
18629 10.*)
18630 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18631 ;;
18632 esac
18633 fi
18634 ;;
18635 esac
18636 archive_cmds_need_lc_CXX=no
18637 hardcode_direct_CXX=no
18638 hardcode_automatic_CXX=yes
18639 hardcode_shlibpath_var_CXX=unsupported
18640 whole_archive_flag_spec_CXX=''
18641 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018642
Reid Spencer2706f8c2004-09-19 23:53:36 +000018643 if test "$GXX" = yes ; then
18644 lt_int_apple_cc_single_mod=no
18645 output_verbose_link_cmd='echo'
18646 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18647 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018648 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018649 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018650 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 +000018651 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018652 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 +000018653 fi
18654 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018655 # 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 +000018656 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018657 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 +000018658 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018659 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 +000018660 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018661 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 +000018662 else
Reid Spencera773bd52006-08-04 18:18:08 +000018663 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018664 xlc*)
18665 output_verbose_link_cmd='echo'
18666 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'
18667 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018668 # 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 +000018669 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}'
18670 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 +000018671 ;;
18672 *)
18673 ld_shlibs_CXX=no
18674 ;;
18675 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018676 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018677 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018678
18679 dgux*)
18680 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018681 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018682 # FIXME: insert proper C++ library support
18683 ld_shlibs_CXX=no
18684 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018685 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018686 # Green Hills C++ Compiler
18687 # FIXME: insert proper C++ library support
18688 ld_shlibs_CXX=no
18689 ;;
18690 *)
18691 # FIXME: insert proper C++ library support
18692 ld_shlibs_CXX=no
18693 ;;
18694 esac
18695 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018696 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018697 # C++ shared libraries reported to be fairly broken before switch to ELF
18698 ld_shlibs_CXX=no
18699 ;;
18700 freebsd-elf*)
18701 archive_cmds_need_lc_CXX=no
18702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018703 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018704 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18705 # conventions
18706 ld_shlibs_CXX=yes
18707 ;;
18708 gnu*)
18709 ;;
18710 hpux9*)
18711 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18712 hardcode_libdir_separator_CXX=:
18713 export_dynamic_flag_spec_CXX='${wl}-E'
18714 hardcode_direct_CXX=yes
18715 hardcode_minus_L_CXX=yes # Not in the search PATH,
18716 # but as the default
18717 # location of the library.
18718
18719 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018720 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018721 # FIXME: insert proper C++ library support
18722 ld_shlibs_CXX=no
18723 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018724 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018725 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 +000018726 # Commands to make compiler produce verbose output that lists
18727 # what "hidden" libraries, object files and flags are used when
18728 # linking a shared library.
18729 #
18730 # There doesn't appear to be a way to prevent this compiler from
18731 # explicitly linking system object files so we need to strip them
18732 # from the output so that they don't get included in the library
18733 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018734 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 +000018735 ;;
18736 *)
18737 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018738 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 +000018739 else
18740 # FIXME: insert proper C++ library support
18741 ld_shlibs_CXX=no
18742 fi
18743 ;;
18744 esac
18745 ;;
18746 hpux10*|hpux11*)
18747 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018748 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18749 hardcode_libdir_separator_CXX=:
18750
18751 case $host_cpu in
18752 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018753 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018754 ;;
18755 *)
John Criswell47fdd832003-07-14 16:52:07 +000018756 export_dynamic_flag_spec_CXX='${wl}-E'
18757 ;;
18758 esac
18759 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018760 case $host_cpu in
18761 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018762 hardcode_direct_CXX=no
18763 hardcode_shlibpath_var_CXX=no
18764 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018765 *)
18766 hardcode_direct_CXX=yes
18767 hardcode_minus_L_CXX=yes # Not in the search PATH,
18768 # but as the default
18769 # location of the library.
18770 ;;
18771 esac
18772
18773 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018774 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018775 # FIXME: insert proper C++ library support
18776 ld_shlibs_CXX=no
18777 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018778 aCC*)
18779 case $host_cpu in
18780 hppa*64*)
18781 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18782 ;;
18783 ia64*)
18784 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 +000018785 ;;
18786 *)
18787 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18788 ;;
18789 esac
18790 # Commands to make compiler produce verbose output that lists
18791 # what "hidden" libraries, object files and flags are used when
18792 # linking a shared library.
18793 #
18794 # There doesn't appear to be a way to prevent this compiler from
18795 # explicitly linking system object files so we need to strip them
18796 # from the output so that they don't get included in the library
18797 # dependencies.
18798 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'
18799 ;;
18800 *)
18801 if test "$GXX" = yes; then
18802 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018803 case $host_cpu in
18804 hppa*64*)
18805 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18806 ;;
18807 ia64*)
18808 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 +000018809 ;;
18810 *)
18811 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'
18812 ;;
18813 esac
18814 fi
18815 else
18816 # FIXME: insert proper C++ library support
18817 ld_shlibs_CXX=no
18818 fi
18819 ;;
18820 esac
18821 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018822 interix3*)
18823 hardcode_direct_CXX=no
18824 hardcode_shlibpath_var_CXX=no
18825 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18826 export_dynamic_flag_spec_CXX='${wl}-E'
18827 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18828 # Instead, shared libraries are loaded at an image base (0x10000000 by
18829 # default) and relocated if they conflict, which is a slow very memory
18830 # consuming and fragmenting process. To avoid this, we pick a random,
18831 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18832 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18833 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'
18834 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'
18835 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018836 irix5* | irix6*)
18837 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018838 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018839 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018840 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 +000018841
18842 # Archives containing C++ object files must be created using
18843 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18844 # necessary to make sure instantiated templates are included
18845 # in the archive.
18846 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18847 ;;
18848 *)
18849 if test "$GXX" = yes; then
18850 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018851 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 +000018852 else
18853 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'
18854 fi
18855 fi
18856 link_all_deplibs_CXX=yes
18857 ;;
18858 esac
18859 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18860 hardcode_libdir_separator_CXX=:
18861 ;;
18862 linux*)
18863 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018864 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018865 # Kuck and Associates, Inc. (KAI) C++ Compiler
18866
18867 # KCC will only create a shared library if the output file
18868 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18869 # to its proper name (with version) after linking.
18870 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'
18871 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'
18872 # Commands to make compiler produce verbose output that lists
18873 # what "hidden" libraries, object files and flags are used when
18874 # linking a shared library.
18875 #
18876 # There doesn't appear to be a way to prevent this compiler from
18877 # explicitly linking system object files so we need to strip them
18878 # from the output so that they don't get included in the library
18879 # dependencies.
18880 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'
18881
18882 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18883 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18884
18885 # Archives containing C++ object files must be created using
18886 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18887 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18888 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018889 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018890 # Intel C++
18891 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018892 # version 8.0 and above of icpc choke on multiply defined symbols
18893 # if we add $predep_objects and $postdep_objects, however 7.1 and
18894 # earlier do not add the objects themselves.
18895 case `$CC -V 2>&1` in
18896 *"Version 7."*)
18897 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18898 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'
18899 ;;
18900 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018901 tmp_idyn=
18902 case $host_cpu in
18903 ia64*) tmp_idyn=' -i_dynamic';;
18904 esac
18905 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18906 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 +000018907 ;;
18908 esac
John Criswell47fdd832003-07-14 16:52:07 +000018909 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18911 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18912 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18913 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018914 pgCC*)
18915 # Portland Group C++ compiler
18916 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18917 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'
18918
18919 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18921 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'
18922 ;;
18923 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018924 # Compaq C++
18925 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18926 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'
18927
18928 runpath_var=LD_RUN_PATH
18929 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18930 hardcode_libdir_separator_CXX=:
18931
18932 # Commands to make compiler produce verbose output that lists
18933 # what "hidden" libraries, object files and flags are used when
18934 # linking a shared library.
18935 #
18936 # There doesn't appear to be a way to prevent this compiler from
18937 # explicitly linking system object files so we need to strip them
18938 # from the output so that they don't get included in the library
18939 # dependencies.
18940 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'
18941 ;;
18942 esac
18943 ;;
18944 lynxos*)
18945 # FIXME: insert proper C++ library support
18946 ld_shlibs_CXX=no
18947 ;;
18948 m88k*)
18949 # FIXME: insert proper C++ library support
18950 ld_shlibs_CXX=no
18951 ;;
18952 mvs*)
18953 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018954 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018955 # FIXME: insert proper C++ library support
18956 ld_shlibs_CXX=no
18957 ;;
18958 *)
18959 # FIXME: insert proper C++ library support
18960 ld_shlibs_CXX=no
18961 ;;
18962 esac
18963 ;;
18964 netbsd*)
18965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18966 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18967 wlarc=
18968 hardcode_libdir_flag_spec_CXX='-R$libdir'
18969 hardcode_direct_CXX=yes
18970 hardcode_shlibpath_var_CXX=no
18971 fi
18972 # Workaround some broken pre-1.5 toolchains
18973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18974 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018975 openbsd2*)
18976 # C++ shared libraries are fairly broken
18977 ld_shlibs_CXX=no
18978 ;;
18979 openbsd*)
18980 hardcode_direct_CXX=yes
18981 hardcode_shlibpath_var_CXX=no
18982 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18985 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18986 export_dynamic_flag_spec_CXX='${wl}-E'
18987 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18988 fi
18989 output_verbose_link_cmd='echo'
18990 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018991 osf3*)
18992 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018993 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018994 # Kuck and Associates, Inc. (KAI) C++ Compiler
18995
18996 # KCC will only create a shared library if the output file
18997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18998 # to its proper name (with version) after linking.
18999 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'
19000
19001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19002 hardcode_libdir_separator_CXX=:
19003
19004 # Archives containing C++ object files must be created using
19005 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19006 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19007
19008 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019009 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019010 # Rational C++ 2.4.1
19011 # FIXME: insert proper C++ library support
19012 ld_shlibs_CXX=no
19013 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019014 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019015 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019016 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 +000019017
19018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19019 hardcode_libdir_separator_CXX=:
19020
19021 # Commands to make compiler produce verbose output that lists
19022 # what "hidden" libraries, object files and flags are used when
19023 # linking a shared library.
19024 #
19025 # There doesn't appear to be a way to prevent this compiler from
19026 # explicitly linking system object files so we need to strip them
19027 # from the output so that they don't get included in the library
19028 # dependencies.
19029 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'
19030 ;;
19031 *)
19032 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19033 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019034 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 +000019035
19036 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19037 hardcode_libdir_separator_CXX=:
19038
19039 # Commands to make compiler produce verbose output that lists
19040 # what "hidden" libraries, object files and flags are used when
19041 # linking a shared library.
19042 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19043
19044 else
19045 # FIXME: insert proper C++ library support
19046 ld_shlibs_CXX=no
19047 fi
19048 ;;
19049 esac
19050 ;;
19051 osf4* | osf5*)
19052 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019053 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019054 # Kuck and Associates, Inc. (KAI) C++ Compiler
19055
19056 # KCC will only create a shared library if the output file
19057 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19058 # to its proper name (with version) after linking.
19059 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'
19060
19061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19062 hardcode_libdir_separator_CXX=:
19063
19064 # Archives containing C++ object files must be created using
19065 # the KAI C++ compiler.
19066 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19067 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019068 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019069 # Rational C++ 2.4.1
19070 # FIXME: insert proper C++ library support
19071 ld_shlibs_CXX=no
19072 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019073 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019074 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019075 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 +000019076 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19077 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019078 $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 +000019079 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019080
19081 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19082 hardcode_libdir_separator_CXX=:
19083
19084 # Commands to make compiler produce verbose output that lists
19085 # what "hidden" libraries, object files and flags are used when
19086 # linking a shared library.
19087 #
19088 # There doesn't appear to be a way to prevent this compiler from
19089 # explicitly linking system object files so we need to strip them
19090 # from the output so that they don't get included in the library
19091 # dependencies.
19092 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'
19093 ;;
19094 *)
19095 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19096 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019097 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 +000019098
19099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19100 hardcode_libdir_separator_CXX=:
19101
19102 # Commands to make compiler produce verbose output that lists
19103 # what "hidden" libraries, object files and flags are used when
19104 # linking a shared library.
19105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19106
19107 else
19108 # FIXME: insert proper C++ library support
19109 ld_shlibs_CXX=no
19110 fi
19111 ;;
19112 esac
19113 ;;
19114 psos*)
19115 # FIXME: insert proper C++ library support
19116 ld_shlibs_CXX=no
19117 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019118 sunos4*)
19119 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019120 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019121 # Sun C++ 4.x
19122 # FIXME: insert proper C++ library support
19123 ld_shlibs_CXX=no
19124 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019125 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019126 # Lucid
19127 # FIXME: insert proper C++ library support
19128 ld_shlibs_CXX=no
19129 ;;
19130 *)
19131 # FIXME: insert proper C++ library support
19132 ld_shlibs_CXX=no
19133 ;;
19134 esac
19135 ;;
19136 solaris*)
19137 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019138 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019139 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019140 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019141 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019142 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 +000019143 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 +000019144 $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 +000019145
19146 hardcode_libdir_flag_spec_CXX='-R$libdir'
19147 hardcode_shlibpath_var_CXX=no
19148 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019149 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019150 *)
19151 # The C++ compiler is used as linker so we must use $wl
19152 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019153 # linker. We must also pass each convience library through
19154 # to the system linker between allextract/defaultextract.
19155 # The C++ compiler will combine linker options so we
19156 # cannot just pass the convience library names through
19157 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019158 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019159 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 +000019160 ;;
19161 esac
19162 link_all_deplibs_CXX=yes
19163
Reid Spencera773bd52006-08-04 18:18:08 +000019164 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019165
19166 # Archives containing C++ object files must be created using
19167 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19168 # necessary to make sure instantiated templates are included
19169 # in the archive.
19170 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19171 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019172 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019173 # Green Hills C++ Compiler
19174 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19175
19176 # The C++ compiler must be used to create the archive.
19177 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19178 ;;
19179 *)
19180 # GNU C++ compiler with Solaris linker
19181 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19182 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19183 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019184 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 +000019185 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19186 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19187
John Criswell47fdd832003-07-14 16:52:07 +000019188 # Commands to make compiler produce verbose output that lists
19189 # what "hidden" libraries, object files and flags are used when
19190 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019191 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019192 else
19193 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19194 # platform.
19195 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 +000019196 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19197 $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 +000019198
19199 # Commands to make compiler produce verbose output that lists
19200 # what "hidden" libraries, object files and flags are used when
19201 # linking a shared library.
19202 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19203 fi
19204
19205 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19206 fi
19207 ;;
19208 esac
19209 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19211 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019212 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019213 hardcode_shlibpath_var_CXX=no
19214 runpath_var='LD_RUN_PATH'
19215
19216 case $cc_basename in
19217 CC*)
19218 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19219 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19220 ;;
19221 *)
19222 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19223 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19224 ;;
19225 esac
19226 ;;
19227 sysv5* | sco3.2v5* | sco5v6*)
19228 # Note: We can NOT use -z defs as we might desire, because we do not
19229 # link with -lc, and that would cause any symbols used from libc to
19230 # always be unresolved, which means just about no library would
19231 # ever link correctly. If we're not using GNU ld we use -z text
19232 # though, which does catch some bad symbols but isn't as heavy-handed
19233 # as -z defs.
19234 # For security reasons, it is highly recommended that you always
19235 # use absolute paths for naming shared libraries, and exclude the
19236 # DT_RUNPATH tag from executables and libraries. But doing so
19237 # requires that you compile everything twice, which is a pain.
19238 # So that behaviour is only enabled if SCOABSPATH is set to a
19239 # non-empty value in the environment. Most likely only useful for
19240 # creating official distributions of packages.
19241 # This is a hack until libtool officially supports absolute path
19242 # names for shared libraries.
19243 no_undefined_flag_CXX='${wl}-z,text'
19244 allow_undefined_flag_CXX='${wl}-z,nodefs'
19245 archive_cmds_need_lc_CXX=no
19246 hardcode_shlibpath_var_CXX=no
19247 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19248 hardcode_libdir_separator_CXX=':'
19249 link_all_deplibs_CXX=yes
19250 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19251 runpath_var='LD_RUN_PATH'
19252
19253 case $cc_basename in
19254 CC*)
19255 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19256 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19257 ;;
19258 *)
19259 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19260 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19261 ;;
19262 esac
John Criswell47fdd832003-07-14 16:52:07 +000019263 ;;
19264 tandem*)
19265 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019266 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019267 # NonStop-UX NCC 3.20
19268 # FIXME: insert proper C++ library support
19269 ld_shlibs_CXX=no
19270 ;;
19271 *)
19272 # FIXME: insert proper C++ library support
19273 ld_shlibs_CXX=no
19274 ;;
19275 esac
19276 ;;
19277 vxworks*)
19278 # FIXME: insert proper C++ library support
19279 ld_shlibs_CXX=no
19280 ;;
19281 *)
19282 # FIXME: insert proper C++ library support
19283 ld_shlibs_CXX=no
19284 ;;
19285esac
Reid Spencera773bd52006-08-04 18:18:08 +000019286{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19287echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019288test "$ld_shlibs_CXX" = no && can_build_shared=no
19289
19290GCC_CXX="$GXX"
19291LD_CXX="$LD"
19292
John Criswell47fdd832003-07-14 16:52:07 +000019293
19294cat > conftest.$ac_ext <<EOF
19295class Foo
19296{
19297public:
19298 Foo (void) { a = 0; }
19299private:
19300 int a;
19301};
19302EOF
19303
19304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19305 (eval $ac_compile) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; then
19309 # Parse the compiler output and extract the necessary
19310 # objects, libraries and library flags.
19311
19312 # Sentinel used to keep track of whether or not we are before
19313 # the conftest object file.
19314 pre_test_object_deps_done=no
19315
19316 # The `*' in the case matches for architectures that use `case' in
19317 # $output_verbose_cmd can trigger glob expansion during the loop
19318 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019319 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019320
19321 for p in `eval $output_verbose_link_cmd`; do
19322 case $p in
19323
19324 -L* | -R* | -l*)
19325 # Some compilers place space between "-{L,R}" and the path.
19326 # Remove the space.
19327 if test $p = "-L" \
19328 || test $p = "-R"; then
19329 prev=$p
19330 continue
19331 else
19332 prev=
19333 fi
19334
19335 if test "$pre_test_object_deps_done" = no; then
19336 case $p in
19337 -L* | -R*)
19338 # Internal compiler library paths should come after those
19339 # provided the user. The postdeps already come after the
19340 # user supplied libs so there is no need to process them.
19341 if test -z "$compiler_lib_search_path_CXX"; then
19342 compiler_lib_search_path_CXX="${prev}${p}"
19343 else
19344 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19345 fi
19346 ;;
19347 # The "-l" case would never come before the object being
19348 # linked, so don't bother handling this case.
19349 esac
19350 else
19351 if test -z "$postdeps_CXX"; then
19352 postdeps_CXX="${prev}${p}"
19353 else
19354 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19355 fi
19356 fi
19357 ;;
19358
19359 *.$objext)
19360 # This assumes that the test object file only shows up
19361 # once in the compiler output.
19362 if test "$p" = "conftest.$objext"; then
19363 pre_test_object_deps_done=yes
19364 continue
19365 fi
19366
19367 if test "$pre_test_object_deps_done" = no; then
19368 if test -z "$predep_objects_CXX"; then
19369 predep_objects_CXX="$p"
19370 else
19371 predep_objects_CXX="$predep_objects_CXX $p"
19372 fi
19373 else
19374 if test -z "$postdep_objects_CXX"; then
19375 postdep_objects_CXX="$p"
19376 else
19377 postdep_objects_CXX="$postdep_objects_CXX $p"
19378 fi
19379 fi
19380 ;;
19381
19382 *) ;; # Ignore the rest.
19383
19384 esac
19385 done
19386
19387 # Clean up.
19388 rm -f a.out a.exe
19389else
19390 echo "libtool.m4: error: problem compiling CXX test program"
19391fi
19392
19393$rm -f confest.$objext
19394
Reid Spencera773bd52006-08-04 18:18:08 +000019395# PORTME: override above test on systems where it is broken
19396case $host_os in
19397interix3*)
19398 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19399 # hack all around it, let's just trust "g++" to DTRT.
19400 predep_objects_CXX=
19401 postdep_objects_CXX=
19402 postdeps_CXX=
19403 ;;
19404
19405solaris*)
19406 case $cc_basename in
19407 CC*)
19408 # Adding this requires a known-good setup of shared libraries for
19409 # Sun compiler versions before 5.6, else PIC objects from an old
19410 # archive will be linked into the output, leading to subtle bugs.
19411 postdeps_CXX='-lCstd -lCrun'
19412 ;;
19413 esac
19414 ;;
19415esac
19416
19417
John Criswell47fdd832003-07-14 16:52:07 +000019418case " $postdeps_CXX " in
19419*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19420esac
19421
19422lt_prog_compiler_wl_CXX=
19423lt_prog_compiler_pic_CXX=
19424lt_prog_compiler_static_CXX=
19425
Reid Spencera773bd52006-08-04 18:18:08 +000019426{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19427echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019428
19429 # C++ specific cases for pic, static, wl, etc.
19430 if test "$GXX" = yes; then
19431 lt_prog_compiler_wl_CXX='-Wl,'
19432 lt_prog_compiler_static_CXX='-static'
19433
19434 case $host_os in
19435 aix*)
19436 # All AIX code is PIC.
19437 if test "$host_cpu" = ia64; then
19438 # AIX 5 now supports IA64 processor
19439 lt_prog_compiler_static_CXX='-Bstatic'
19440 fi
19441 ;;
19442 amigaos*)
19443 # FIXME: we need at least 68020 code to build shared libraries, but
19444 # adding the `-m68020' flag to GCC prevents building anything better,
19445 # like `-m68040'.
19446 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19447 ;;
19448 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19449 # PIC is the default for these OSes.
19450 ;;
19451 mingw* | os2* | pw32*)
19452 # This hack is so that the source file can tell whether it is being
19453 # built for inclusion in a dll (and should export symbols for example).
19454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19455 ;;
19456 darwin* | rhapsody*)
19457 # PIC is the default on this platform
19458 # Common symbols not allowed in MH_DYLIB files
19459 lt_prog_compiler_pic_CXX='-fno-common'
19460 ;;
19461 *djgpp*)
19462 # DJGPP does not support shared libraries at all
19463 lt_prog_compiler_pic_CXX=
19464 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019465 interix3*)
19466 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19467 # Instead, we relocate shared libraries at runtime.
19468 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019469 sysv4*MP*)
19470 if test -d /usr/nec; then
19471 lt_prog_compiler_pic_CXX=-Kconform_pic
19472 fi
19473 ;;
19474 hpux*)
19475 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19476 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019477 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019478 hppa*64*|ia64*)
19479 ;;
19480 *)
19481 lt_prog_compiler_pic_CXX='-fPIC'
19482 ;;
19483 esac
19484 ;;
19485 *)
19486 lt_prog_compiler_pic_CXX='-fPIC'
19487 ;;
19488 esac
19489 else
19490 case $host_os in
19491 aix4* | aix5*)
19492 # All AIX code is PIC.
19493 if test "$host_cpu" = ia64; then
19494 # AIX 5 now supports IA64 processor
19495 lt_prog_compiler_static_CXX='-Bstatic'
19496 else
19497 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19498 fi
19499 ;;
19500 chorus*)
19501 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019502 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019503 # Green Hills C++ Compiler
19504 # _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"
19505 ;;
19506 esac
19507 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019508 darwin*)
19509 # PIC is the default on this platform
19510 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019511 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019512 xlc*)
19513 lt_prog_compiler_pic_CXX='-qnocommon'
19514 lt_prog_compiler_wl_CXX='-Wl,'
19515 ;;
19516 esac
19517 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019518 dgux*)
19519 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019520 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019521 lt_prog_compiler_pic_CXX='-KPIC'
19522 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019523 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019524 # Green Hills C++ Compiler
19525 lt_prog_compiler_pic_CXX='-pic'
19526 ;;
19527 *)
19528 ;;
19529 esac
19530 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019531 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019532 # FreeBSD uses GNU C++
19533 ;;
19534 hpux9* | hpux10* | hpux11*)
19535 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019536 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019537 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019538 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019539 if test "$host_cpu" != ia64; then
19540 lt_prog_compiler_pic_CXX='+Z'
19541 fi
19542 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019543 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019544 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019545 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19546 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019547 hppa*64*|ia64*)
19548 # +Z the default
19549 ;;
19550 *)
19551 lt_prog_compiler_pic_CXX='+Z'
19552 ;;
19553 esac
19554 ;;
19555 *)
19556 ;;
19557 esac
19558 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019559 interix*)
19560 # This is c89, which is MS Visual C++ (no shared libs)
19561 # Anyone wants to do a port?
19562 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019563 irix5* | irix6* | nonstopux*)
19564 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019565 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019566 lt_prog_compiler_wl_CXX='-Wl,'
19567 lt_prog_compiler_static_CXX='-non_shared'
19568 # CC pic flag -KPIC is the default.
19569 ;;
19570 *)
19571 ;;
19572 esac
19573 ;;
19574 linux*)
19575 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019576 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019577 # KAI C++ Compiler
19578 lt_prog_compiler_wl_CXX='--backend -Wl,'
19579 lt_prog_compiler_pic_CXX='-fPIC'
19580 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019581 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019582 # Intel C++
19583 lt_prog_compiler_wl_CXX='-Wl,'
19584 lt_prog_compiler_pic_CXX='-KPIC'
19585 lt_prog_compiler_static_CXX='-static'
19586 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019587 pgCC*)
19588 # Portland Group C++ compiler.
19589 lt_prog_compiler_wl_CXX='-Wl,'
19590 lt_prog_compiler_pic_CXX='-fpic'
19591 lt_prog_compiler_static_CXX='-Bstatic'
19592 ;;
19593 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019594 # Compaq C++
19595 # Make sure the PIC flag is empty. It appears that all Alpha
19596 # Linux and Compaq Tru64 Unix objects are PIC.
19597 lt_prog_compiler_pic_CXX=
19598 lt_prog_compiler_static_CXX='-non_shared'
19599 ;;
19600 *)
19601 ;;
19602 esac
19603 ;;
19604 lynxos*)
19605 ;;
19606 m88k*)
19607 ;;
19608 mvs*)
19609 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019610 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019611 lt_prog_compiler_pic_CXX='-W c,exportall'
19612 ;;
19613 *)
19614 ;;
19615 esac
19616 ;;
19617 netbsd*)
19618 ;;
19619 osf3* | osf4* | osf5*)
19620 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019621 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019622 lt_prog_compiler_wl_CXX='--backend -Wl,'
19623 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019624 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019625 # Rational C++ 2.4.1
19626 lt_prog_compiler_pic_CXX='-pic'
19627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019628 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019629 # Digital/Compaq C++
19630 lt_prog_compiler_wl_CXX='-Wl,'
19631 # Make sure the PIC flag is empty. It appears that all Alpha
19632 # Linux and Compaq Tru64 Unix objects are PIC.
19633 lt_prog_compiler_pic_CXX=
19634 lt_prog_compiler_static_CXX='-non_shared'
19635 ;;
19636 *)
19637 ;;
19638 esac
19639 ;;
19640 psos*)
19641 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019642 solaris*)
19643 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019644 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019645 # Sun C++ 4.2, 5.x and Centerline C++
19646 lt_prog_compiler_pic_CXX='-KPIC'
19647 lt_prog_compiler_static_CXX='-Bstatic'
19648 lt_prog_compiler_wl_CXX='-Qoption ld '
19649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019650 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019651 # Green Hills C++ Compiler
19652 lt_prog_compiler_pic_CXX='-PIC'
19653 ;;
19654 *)
19655 ;;
19656 esac
19657 ;;
19658 sunos4*)
19659 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019660 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019661 # Sun C++ 4.x
19662 lt_prog_compiler_pic_CXX='-pic'
19663 lt_prog_compiler_static_CXX='-Bstatic'
19664 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019665 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019666 # Lucid
19667 lt_prog_compiler_pic_CXX='-pic'
19668 ;;
19669 *)
19670 ;;
19671 esac
19672 ;;
19673 tandem*)
19674 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019675 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019676 # NonStop-UX NCC 3.20
19677 lt_prog_compiler_pic_CXX='-KPIC'
19678 ;;
19679 *)
19680 ;;
19681 esac
19682 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019683 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19684 case $cc_basename in
19685 CC*)
19686 lt_prog_compiler_wl_CXX='-Wl,'
19687 lt_prog_compiler_pic_CXX='-KPIC'
19688 lt_prog_compiler_static_CXX='-Bstatic'
19689 ;;
19690 esac
John Criswell47fdd832003-07-14 16:52:07 +000019691 ;;
19692 vxworks*)
19693 ;;
19694 *)
19695 lt_prog_compiler_can_build_shared_CXX=no
19696 ;;
19697 esac
19698 fi
19699
Reid Spencera773bd52006-08-04 18:18:08 +000019700{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19701echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019702
19703#
19704# Check to make sure the PIC flag actually works.
19705#
19706if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019707
Reid Spencera773bd52006-08-04 18:18:08 +000019708{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19709echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019710if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712else
19713 lt_prog_compiler_pic_works_CXX=no
19714 ac_outfile=conftest.$ac_objext
19715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19716 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19717 # Insert the option either (1) after the last *FLAGS variable, or
19718 # (2) before a word containing "conftest.", or (3) at the end.
19719 # Note that $ac_compile itself does not contain backslashes and begins
19720 # with a dollar sign (not a hyphen), so the echo should work correctly.
19721 # The option is referenced via a variable to avoid confusing sed.
19722 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19725 -e 's:$: $lt_compiler_flag:'`
Bill Wendling41ef25b2008-03-05 09:28:02 +000019726 (eval echo "\"\$as_me:19726: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019727 (eval "$lt_compile" 2>conftest.err)
19728 ac_status=$?
19729 cat conftest.err >&5
Bill Wendling41ef25b2008-03-05 09:28:02 +000019730 echo "$as_me:19730: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019731 if (exit $ac_status) && test -s "$ac_outfile"; then
19732 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019733 # So say no if there are warnings other than the usual output.
19734 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019737 lt_prog_compiler_pic_works_CXX=yes
19738 fi
19739 fi
19740 $rm conftest*
19741
19742fi
Reid Spencera773bd52006-08-04 18:18:08 +000019743{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19744echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019745
19746if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19747 case $lt_prog_compiler_pic_CXX in
19748 "" | " "*) ;;
19749 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19750 esac
19751else
19752 lt_prog_compiler_pic_CXX=
19753 lt_prog_compiler_can_build_shared_CXX=no
19754fi
19755
19756fi
Reid Spencera773bd52006-08-04 18:18:08 +000019757case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019758 # For platforms which do not support PIC, -DPIC is meaningless:
19759 *djgpp*)
19760 lt_prog_compiler_pic_CXX=
19761 ;;
19762 *)
19763 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19764 ;;
19765esac
19766
Reid Spencera773bd52006-08-04 18:18:08 +000019767#
19768# Check to make sure the static flag actually works.
19769#
19770wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19771{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19772echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19773if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
19775else
19776 lt_prog_compiler_static_works_CXX=no
19777 save_LDFLAGS="$LDFLAGS"
19778 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19779 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19781 # The linker can only warn and ignore the option if not recognized
19782 # So say no if there are warnings
19783 if test -s conftest.err; then
19784 # Append any errors to the config.log.
19785 cat conftest.err 1>&5
19786 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19788 if diff conftest.exp conftest.er2 >/dev/null; then
19789 lt_prog_compiler_static_works_CXX=yes
19790 fi
19791 else
19792 lt_prog_compiler_static_works_CXX=yes
19793 fi
19794 fi
19795 $rm conftest*
19796 LDFLAGS="$save_LDFLAGS"
19797
19798fi
19799{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19800echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19801
19802if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19803 :
19804else
19805 lt_prog_compiler_static_CXX=
19806fi
19807
19808
19809{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19810echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019811if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813else
19814 lt_cv_prog_compiler_c_o_CXX=no
19815 $rm -r conftest 2>/dev/null
19816 mkdir conftest
19817 cd conftest
19818 mkdir out
19819 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19820
John Criswell47fdd832003-07-14 16:52:07 +000019821 lt_compiler_flag="-o out/conftest2.$ac_objext"
19822 # Insert the option either (1) after the last *FLAGS variable, or
19823 # (2) before a word containing "conftest.", or (3) at the end.
19824 # Note that $ac_compile itself does not contain backslashes and begins
19825 # with a dollar sign (not a hyphen), so the echo should work correctly.
19826 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19829 -e 's:$: $lt_compiler_flag:'`
Bill Wendling41ef25b2008-03-05 09:28:02 +000019830 (eval echo "\"\$as_me:19830: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019831 (eval "$lt_compile" 2>out/conftest.err)
19832 ac_status=$?
19833 cat out/conftest.err >&5
Bill Wendling41ef25b2008-03-05 09:28:02 +000019834 echo "$as_me:19834: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019835 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19836 then
19837 # The compiler can only warn and ignore the option if not recognized
19838 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019839 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019842 lt_cv_prog_compiler_c_o_CXX=yes
19843 fi
19844 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019845 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019846 $rm conftest*
19847 # SGI C++ compiler will create directory out/ii_files/ for
19848 # template instantiation
19849 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19850 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019851 cd ..
19852 rmdir conftest
19853 $rm conftest*
19854
19855fi
Reid Spencera773bd52006-08-04 18:18:08 +000019856{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19857echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019858
19859
19860hard_links="nottested"
19861if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19862 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019863 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19864echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019865 hard_links=yes
19866 $rm conftest*
19867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19868 touch conftest.a
19869 ln conftest.a conftest.b 2>&5 || hard_links=no
19870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019871 { echo "$as_me:$LINENO: result: $hard_links" >&5
19872echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019873 if test "$hard_links" = no; then
19874 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19875echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19876 need_locks=warn
19877 fi
19878else
19879 need_locks=no
19880fi
19881
Reid Spencera773bd52006-08-04 18:18:08 +000019882{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19883echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019884
19885 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19886 case $host_os in
19887 aix4* | aix5*)
19888 # If we're using GNU nm, then we don't want the "-C" option.
19889 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19890 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19891 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'
19892 else
19893 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'
19894 fi
19895 ;;
19896 pw32*)
19897 export_symbols_cmds_CXX="$ltdll_cmds"
19898 ;;
19899 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019900 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 +000019901 ;;
19902 *)
19903 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19904 ;;
19905 esac
19906
Reid Spencera773bd52006-08-04 18:18:08 +000019907{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19908echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019909test "$ld_shlibs_CXX" = no && can_build_shared=no
19910
John Criswell47fdd832003-07-14 16:52:07 +000019911#
19912# Do we need to explicitly link libc?
19913#
19914case "x$archive_cmds_need_lc_CXX" in
19915x|xyes)
19916 # Assume -lc should be added
19917 archive_cmds_need_lc_CXX=yes
19918
19919 if test "$enable_shared" = yes && test "$GCC" = yes; then
19920 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019921 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019922 # FIXME: we may have to deal with multi-command sequences.
19923 ;;
19924 '$CC '*)
19925 # Test whether the compiler implicitly links with -lc since on some
19926 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19927 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019928 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19929echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019930 $rm conftest*
19931 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19932
19933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19934 (eval $ac_compile) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } 2>conftest.err; then
19938 soname=conftest
19939 lib=conftest
19940 libobjs=conftest.$ac_objext
19941 deplibs=
19942 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019943 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019944 compiler_flags=-v
19945 linker_flags=-v
19946 verstring=
19947 output_objdir=.
19948 libname=conftest
19949 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19950 allow_undefined_flag_CXX=
19951 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19952 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19953 ac_status=$?
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }
19956 then
19957 archive_cmds_need_lc_CXX=no
19958 else
19959 archive_cmds_need_lc_CXX=yes
19960 fi
19961 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19962 else
19963 cat conftest.err 1>&5
19964 fi
19965 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019966 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19967echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019968 ;;
19969 esac
19970 fi
19971 ;;
19972esac
19973
Reid Spencera773bd52006-08-04 18:18:08 +000019974{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19975echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019976library_names_spec=
19977libname_spec='lib$name'
19978soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019979shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019980postinstall_cmds=
19981postuninstall_cmds=
19982finish_cmds=
19983finish_eval=
19984shlibpath_var=
19985shlibpath_overrides_runpath=unknown
19986version_type=none
19987dynamic_linker="$host_os ld.so"
19988sys_lib_dlsearch_path_spec="/lib /usr/lib"
19989if test "$GCC" = yes; then
19990 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19991 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19992 # if the path contains ";" then we assume it to be the separator
19993 # otherwise default to the standard path separator (i.e. ":") - it is
19994 # assumed that no part of a normal pathname contains ";" but that should
19995 # okay in the real world where ";" in dirpaths is itself problematic.
19996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19997 else
19998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19999 fi
20000else
20001 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20002fi
20003need_lib_prefix=unknown
20004hardcode_into_libs=no
20005
20006# when you set need_version to no, make sure it does not cause -set_version
20007# flags to be left without arguments
20008need_version=unknown
20009
20010case $host_os in
20011aix3*)
20012 version_type=linux
20013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20014 shlibpath_var=LIBPATH
20015
20016 # AIX 3 has no versioning support, so we append a major version to the name.
20017 soname_spec='${libname}${release}${shared_ext}$major'
20018 ;;
20019
20020aix4* | aix5*)
20021 version_type=linux
20022 need_lib_prefix=no
20023 need_version=no
20024 hardcode_into_libs=yes
20025 if test "$host_cpu" = ia64; then
20026 # AIX 5 supports IA64
20027 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20028 shlibpath_var=LD_LIBRARY_PATH
20029 else
20030 # With GCC up to 2.95.x, collect2 would create an import file
20031 # for dependence libraries. The import file would start with
20032 # the line `#! .'. This would cause the generated library to
20033 # depend on `.', always an invalid library. This was fixed in
20034 # development snapshots of GCC prior to 3.0.
20035 case $host_os in
20036 aix4 | aix4.[01] | aix4.[01].*)
20037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20038 echo ' yes '
20039 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20040 :
20041 else
20042 can_build_shared=no
20043 fi
20044 ;;
20045 esac
20046 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20047 # soname into executable. Probably we can add versioning support to
20048 # collect2, so additional links can be useful in future.
20049 if test "$aix_use_runtimelinking" = yes; then
20050 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20051 # instead of lib<name>.a to let people know that these are not
20052 # typical AIX shared libraries.
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20054 else
20055 # We preserve .a as extension for shared libraries through AIX4.2
20056 # and later when we are not doing run time linking.
20057 library_names_spec='${libname}${release}.a $libname.a'
20058 soname_spec='${libname}${release}${shared_ext}$major'
20059 fi
20060 shlibpath_var=LIBPATH
20061 fi
20062 ;;
20063
20064amigaos*)
20065 library_names_spec='$libname.ixlibrary $libname.a'
20066 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020067 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 +000020068 ;;
20069
20070beos*)
20071 library_names_spec='${libname}${shared_ext}'
20072 dynamic_linker="$host_os ld.so"
20073 shlibpath_var=LIBRARY_PATH
20074 ;;
20075
Reid Spencer2706f8c2004-09-19 23:53:36 +000020076bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020077 version_type=linux
20078 need_version=no
20079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20080 soname_spec='${libname}${release}${shared_ext}$major'
20081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20082 shlibpath_var=LD_LIBRARY_PATH
20083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20085 # the default ld.so.conf also contains /usr/contrib/lib and
20086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20087 # libtool to hard-code these into programs
20088 ;;
20089
20090cygwin* | mingw* | pw32*)
20091 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020092 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020093 need_version=no
20094 need_lib_prefix=no
20095
20096 case $GCC,$host_os in
20097 yes,cygwin* | yes,mingw* | yes,pw32*)
20098 library_names_spec='$libname.dll.a'
20099 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020100 postinstall_cmds='base_file=`basename \${file}`~
20101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20102 dldir=$destdir/`dirname \$dlpath`~
20103 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020104 $install_prog $dir/$dlname \$dldir/$dlname~
20105 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020106 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20107 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020108 $rm \$dlpath'
20109 shlibpath_overrides_runpath=yes
20110
20111 case $host_os in
20112 cygwin*)
20113 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20114 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 +000020115 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020116 ;;
20117 mingw*)
20118 # MinGW DLLs use traditional 'lib' prefix
20119 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20120 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20121 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20122 # It is most probably a Windows format PATH printed by
20123 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20124 # path with ; separators, and with drive letters. We can handle the
20125 # drive letters (cygwin fileutils understands them), so leave them,
20126 # especially as we might pass files found there to a mingw objdump,
20127 # which wouldn't understand a cygwinified path. Ahh.
20128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20129 else
20130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20131 fi
20132 ;;
20133 pw32*)
20134 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020135 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 +000020136 ;;
20137 esac
20138 ;;
20139
20140 *)
20141 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20142 ;;
20143 esac
20144 dynamic_linker='Win32 ld.exe'
20145 # FIXME: first we should search . and the directory the executable is in
20146 shlibpath_var=PATH
20147 ;;
20148
20149darwin* | rhapsody*)
20150 dynamic_linker="$host_os dyld"
20151 version_type=darwin
20152 need_lib_prefix=no
20153 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020154 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020155 soname_spec='${libname}${release}${major}$shared_ext'
20156 shlibpath_overrides_runpath=yes
20157 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020158 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020159 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020160 if test "$GCC" = yes; then
20161 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"`
20162 else
20163 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020164 fi
20165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20166 ;;
20167
20168dgux*)
20169 version_type=linux
20170 need_lib_prefix=no
20171 need_version=no
20172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20173 soname_spec='${libname}${release}${shared_ext}$major'
20174 shlibpath_var=LD_LIBRARY_PATH
20175 ;;
20176
20177freebsd1*)
20178 dynamic_linker=no
20179 ;;
20180
Reid Spencer2706f8c2004-09-19 23:53:36 +000020181kfreebsd*-gnu)
20182 version_type=linux
20183 need_lib_prefix=no
20184 need_version=no
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20186 soname_spec='${libname}${release}${shared_ext}$major'
20187 shlibpath_var=LD_LIBRARY_PATH
20188 shlibpath_overrides_runpath=no
20189 hardcode_into_libs=yes
20190 dynamic_linker='GNU ld.so'
20191 ;;
20192
Reid Spencera773bd52006-08-04 18:18:08 +000020193freebsd* | dragonfly*)
20194 # DragonFly does not have aout. When/if they implement a new
20195 # versioning mechanism, adjust this.
20196 if test -x /usr/bin/objformat; then
20197 objformat=`/usr/bin/objformat`
20198 else
20199 case $host_os in
20200 freebsd[123]*) objformat=aout ;;
20201 *) objformat=elf ;;
20202 esac
20203 fi
John Criswell47fdd832003-07-14 16:52:07 +000020204 version_type=freebsd-$objformat
20205 case $version_type in
20206 freebsd-elf*)
20207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20208 need_version=no
20209 need_lib_prefix=no
20210 ;;
20211 freebsd-*)
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20213 need_version=yes
20214 ;;
20215 esac
20216 shlibpath_var=LD_LIBRARY_PATH
20217 case $host_os in
20218 freebsd2*)
20219 shlibpath_overrides_runpath=yes
20220 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020221 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020222 shlibpath_overrides_runpath=yes
20223 hardcode_into_libs=yes
20224 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020225 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20226 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020227 shlibpath_overrides_runpath=no
20228 hardcode_into_libs=yes
20229 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020230 freebsd*) # from 4.6 on
20231 shlibpath_overrides_runpath=yes
20232 hardcode_into_libs=yes
20233 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020234 esac
20235 ;;
20236
20237gnu*)
20238 version_type=linux
20239 need_lib_prefix=no
20240 need_version=no
20241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20242 soname_spec='${libname}${release}${shared_ext}$major'
20243 shlibpath_var=LD_LIBRARY_PATH
20244 hardcode_into_libs=yes
20245 ;;
20246
20247hpux9* | hpux10* | hpux11*)
20248 # Give a soname corresponding to the major version so that dld.sl refuses to
20249 # link against other versions.
20250 version_type=sunos
20251 need_lib_prefix=no
20252 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020253 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020254 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020255 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020256 hardcode_into_libs=yes
20257 dynamic_linker="$host_os dld.so"
20258 shlibpath_var=LD_LIBRARY_PATH
20259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261 soname_spec='${libname}${release}${shared_ext}$major'
20262 if test "X$HPUX_IA64_MODE" = X32; then
20263 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20264 else
20265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20266 fi
20267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20268 ;;
20269 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020270 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020271 hardcode_into_libs=yes
20272 dynamic_linker="$host_os dld.sl"
20273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20276 soname_spec='${libname}${release}${shared_ext}$major'
20277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20279 ;;
20280 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020281 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020282 dynamic_linker="$host_os dld.sl"
20283 shlibpath_var=SHLIB_PATH
20284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20286 soname_spec='${libname}${release}${shared_ext}$major'
20287 ;;
20288 esac
20289 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20290 postinstall_cmds='chmod 555 $lib'
20291 ;;
20292
Reid Spencera773bd52006-08-04 18:18:08 +000020293interix3*)
20294 version_type=linux
20295 need_lib_prefix=no
20296 need_version=no
20297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20298 soname_spec='${libname}${release}${shared_ext}$major'
20299 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20300 shlibpath_var=LD_LIBRARY_PATH
20301 shlibpath_overrides_runpath=no
20302 hardcode_into_libs=yes
20303 ;;
20304
John Criswell47fdd832003-07-14 16:52:07 +000020305irix5* | irix6* | nonstopux*)
20306 case $host_os in
20307 nonstopux*) version_type=nonstopux ;;
20308 *)
20309 if test "$lt_cv_prog_gnu_ld" = yes; then
20310 version_type=linux
20311 else
20312 version_type=irix
20313 fi ;;
20314 esac
20315 need_lib_prefix=no
20316 need_version=no
20317 soname_spec='${libname}${release}${shared_ext}$major'
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20319 case $host_os in
20320 irix5* | nonstopux*)
20321 libsuff= shlibsuff=
20322 ;;
20323 *)
20324 case $LD in # libtool.m4 will add one of these switches to LD
20325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20326 libsuff= shlibsuff= libmagic=32-bit;;
20327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20328 libsuff=32 shlibsuff=N32 libmagic=N32;;
20329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20331 *) libsuff= shlibsuff= libmagic=never-match;;
20332 esac
20333 ;;
20334 esac
20335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20336 shlibpath_overrides_runpath=no
20337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20339 hardcode_into_libs=yes
20340 ;;
20341
20342# No shared lib support for Linux oldld, aout, or coff.
20343linux*oldld* | linux*aout* | linux*coff*)
20344 dynamic_linker=no
20345 ;;
20346
20347# This must be Linux ELF.
20348linux*)
20349 version_type=linux
20350 need_lib_prefix=no
20351 need_version=no
20352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20353 soname_spec='${libname}${release}${shared_ext}$major'
20354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20355 shlibpath_var=LD_LIBRARY_PATH
20356 shlibpath_overrides_runpath=no
20357 # This implies no fast_install, which is unacceptable.
20358 # Some rework will be needed to allow for fast_install
20359 # before this can be enabled.
20360 hardcode_into_libs=yes
20361
Reid Spencer2706f8c2004-09-19 23:53:36 +000020362 # Append ld.so.conf contents to the search path
20363 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020364 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 +000020365 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20366 fi
20367
John Criswell47fdd832003-07-14 16:52:07 +000020368 # We used to test for /lib/ld.so.1 and disable shared libraries on
20369 # powerpc, because MkLinux only supported shared libraries with the
20370 # GNU dynamic linker. Since this was broken with cross compilers,
20371 # most powerpc-linux boxes support dynamic linking these days and
20372 # people can always --disable-shared, the test was removed, and we
20373 # assume the GNU/Linux dynamic linker is in use.
20374 dynamic_linker='GNU/Linux ld.so'
20375 ;;
20376
Reid Spencer2706f8c2004-09-19 23:53:36 +000020377knetbsd*-gnu)
20378 version_type=linux
20379 need_lib_prefix=no
20380 need_version=no
20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20382 soname_spec='${libname}${release}${shared_ext}$major'
20383 shlibpath_var=LD_LIBRARY_PATH
20384 shlibpath_overrides_runpath=no
20385 hardcode_into_libs=yes
20386 dynamic_linker='GNU ld.so'
20387 ;;
20388
John Criswell47fdd832003-07-14 16:52:07 +000020389netbsd*)
20390 version_type=sunos
20391 need_lib_prefix=no
20392 need_version=no
20393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20396 dynamic_linker='NetBSD (a.out) ld.so'
20397 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020399 soname_spec='${libname}${release}${shared_ext}$major'
20400 dynamic_linker='NetBSD ld.elf_so'
20401 fi
20402 shlibpath_var=LD_LIBRARY_PATH
20403 shlibpath_overrides_runpath=yes
20404 hardcode_into_libs=yes
20405 ;;
20406
20407newsos6)
20408 version_type=linux
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410 shlibpath_var=LD_LIBRARY_PATH
20411 shlibpath_overrides_runpath=yes
20412 ;;
20413
Reid Spencer2706f8c2004-09-19 23:53:36 +000020414nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020415 version_type=linux
20416 need_lib_prefix=no
20417 need_version=no
20418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 shlibpath_var=LD_LIBRARY_PATH
20421 shlibpath_overrides_runpath=yes
20422 ;;
20423
20424openbsd*)
20425 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020426 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020427 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020428 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20429 case $host_os in
20430 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20431 *) need_version=no ;;
20432 esac
John Criswell47fdd832003-07-14 16:52:07 +000020433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20435 shlibpath_var=LD_LIBRARY_PATH
20436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20437 case $host_os in
20438 openbsd2.[89] | openbsd2.[89].*)
20439 shlibpath_overrides_runpath=no
20440 ;;
20441 *)
20442 shlibpath_overrides_runpath=yes
20443 ;;
20444 esac
20445 else
20446 shlibpath_overrides_runpath=yes
20447 fi
20448 ;;
20449
20450os2*)
20451 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020452 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020453 need_lib_prefix=no
20454 library_names_spec='$libname${shared_ext} $libname.a'
20455 dynamic_linker='OS/2 ld.exe'
20456 shlibpath_var=LIBPATH
20457 ;;
20458
20459osf3* | osf4* | osf5*)
20460 version_type=osf
20461 need_lib_prefix=no
20462 need_version=no
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20465 shlibpath_var=LD_LIBRARY_PATH
20466 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20467 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20468 ;;
20469
John Criswell47fdd832003-07-14 16:52:07 +000020470solaris*)
20471 version_type=linux
20472 need_lib_prefix=no
20473 need_version=no
20474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 shlibpath_var=LD_LIBRARY_PATH
20477 shlibpath_overrides_runpath=yes
20478 hardcode_into_libs=yes
20479 # ldd complains unless libraries are executable
20480 postinstall_cmds='chmod +x $lib'
20481 ;;
20482
20483sunos4*)
20484 version_type=sunos
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 shlibpath_overrides_runpath=yes
20489 if test "$with_gnu_ld" = yes; then
20490 need_lib_prefix=no
20491 fi
20492 need_version=yes
20493 ;;
20494
Reid Spencera773bd52006-08-04 18:18:08 +000020495sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020496 version_type=linux
20497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498 soname_spec='${libname}${release}${shared_ext}$major'
20499 shlibpath_var=LD_LIBRARY_PATH
20500 case $host_vendor in
20501 sni)
20502 shlibpath_overrides_runpath=no
20503 need_lib_prefix=no
20504 export_dynamic_flag_spec='${wl}-Blargedynsym'
20505 runpath_var=LD_RUN_PATH
20506 ;;
20507 siemens)
20508 need_lib_prefix=no
20509 ;;
20510 motorola)
20511 need_lib_prefix=no
20512 need_version=no
20513 shlibpath_overrides_runpath=no
20514 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20515 ;;
20516 esac
20517 ;;
20518
20519sysv4*MP*)
20520 if test -d /usr/nec ;then
20521 version_type=linux
20522 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20523 soname_spec='$libname${shared_ext}.$major'
20524 shlibpath_var=LD_LIBRARY_PATH
20525 fi
20526 ;;
20527
Reid Spencera773bd52006-08-04 18:18:08 +000020528sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20529 version_type=freebsd-elf
20530 need_lib_prefix=no
20531 need_version=no
20532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20533 soname_spec='${libname}${release}${shared_ext}$major'
20534 shlibpath_var=LD_LIBRARY_PATH
20535 hardcode_into_libs=yes
20536 if test "$with_gnu_ld" = yes; then
20537 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20538 shlibpath_overrides_runpath=no
20539 else
20540 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20541 shlibpath_overrides_runpath=yes
20542 case $host_os in
20543 sco3.2v5*)
20544 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20545 ;;
20546 esac
20547 fi
20548 sys_lib_dlsearch_path_spec='/usr/lib'
20549 ;;
20550
John Criswell47fdd832003-07-14 16:52:07 +000020551uts4*)
20552 version_type=linux
20553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20554 soname_spec='${libname}${release}${shared_ext}$major'
20555 shlibpath_var=LD_LIBRARY_PATH
20556 ;;
20557
20558*)
20559 dynamic_linker=no
20560 ;;
20561esac
Reid Spencera773bd52006-08-04 18:18:08 +000020562{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20563echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020564test "$dynamic_linker" = no && can_build_shared=no
20565
Reid Spencera773bd52006-08-04 18:18:08 +000020566variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20567if test "$GCC" = yes; then
20568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20569fi
20570
20571{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20572echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020573hardcode_action_CXX=
20574if test -n "$hardcode_libdir_flag_spec_CXX" || \
20575 test -n "$runpath_var_CXX" || \
20576 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20577
20578 # We can hardcode non-existant directories.
20579 if test "$hardcode_direct_CXX" != no &&
20580 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20581 # have to relink, otherwise we might link with an installed library
20582 # when we should be linking with a yet-to-be-installed one
20583 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20584 test "$hardcode_minus_L_CXX" != no; then
20585 # Linking always hardcodes the temporary library directory.
20586 hardcode_action_CXX=relink
20587 else
20588 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20589 hardcode_action_CXX=immediate
20590 fi
20591else
20592 # We cannot hardcode anything, or else we can only hardcode existing
20593 # directories.
20594 hardcode_action_CXX=unsupported
20595fi
Reid Spencera773bd52006-08-04 18:18:08 +000020596{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20597echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020598
20599if test "$hardcode_action_CXX" = relink; then
20600 # Fast installation is not supported
20601 enable_fast_install=no
20602elif test "$shlibpath_overrides_runpath" = yes ||
20603 test "$enable_shared" = no; then
20604 # Fast installation is not necessary
20605 enable_fast_install=needless
20606fi
20607
John Criswell47fdd832003-07-14 16:52:07 +000020608
20609# The else clause should only fire when bootstrapping the
20610# libtool distribution, otherwise you forgot to ship ltmain.sh
20611# with your package, and you will get complaints that there are
20612# no rules to generate ltmain.sh.
20613if test -f "$ltmain"; then
20614 # See if we are running on zsh, and set the options which allow our commands through
20615 # without removal of \ escapes.
20616 if test -n "${ZSH_VERSION+set}" ; then
20617 setopt NO_GLOB_SUBST
20618 fi
20619 # Now quote all the things that may contain metacharacters while being
20620 # careful not to overquote the AC_SUBSTed values. We take copies of the
20621 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020622 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 +000020623 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020624 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20625 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20626 deplibs_check_method reload_flag reload_cmds need_locks \
20627 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20628 lt_cv_sys_global_symbol_to_c_name_address \
20629 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20630 old_postinstall_cmds old_postuninstall_cmds \
20631 compiler_CXX \
20632 CC_CXX \
20633 LD_CXX \
20634 lt_prog_compiler_wl_CXX \
20635 lt_prog_compiler_pic_CXX \
20636 lt_prog_compiler_static_CXX \
20637 lt_prog_compiler_no_builtin_flag_CXX \
20638 export_dynamic_flag_spec_CXX \
20639 thread_safe_flag_spec_CXX \
20640 whole_archive_flag_spec_CXX \
20641 enable_shared_with_static_runtimes_CXX \
20642 old_archive_cmds_CXX \
20643 old_archive_from_new_cmds_CXX \
20644 predep_objects_CXX \
20645 postdep_objects_CXX \
20646 predeps_CXX \
20647 postdeps_CXX \
20648 compiler_lib_search_path_CXX \
20649 archive_cmds_CXX \
20650 archive_expsym_cmds_CXX \
20651 postinstall_cmds_CXX \
20652 postuninstall_cmds_CXX \
20653 old_archive_from_expsyms_cmds_CXX \
20654 allow_undefined_flag_CXX \
20655 no_undefined_flag_CXX \
20656 export_symbols_cmds_CXX \
20657 hardcode_libdir_flag_spec_CXX \
20658 hardcode_libdir_flag_spec_ld_CXX \
20659 hardcode_libdir_separator_CXX \
20660 hardcode_automatic_CXX \
20661 module_cmds_CXX \
20662 module_expsym_cmds_CXX \
20663 lt_cv_prog_compiler_c_o_CXX \
20664 exclude_expsyms_CXX \
20665 include_expsyms_CXX; do
20666
20667 case $var in
20668 old_archive_cmds_CXX | \
20669 old_archive_from_new_cmds_CXX | \
20670 archive_cmds_CXX | \
20671 archive_expsym_cmds_CXX | \
20672 module_cmds_CXX | \
20673 module_expsym_cmds_CXX | \
20674 old_archive_from_expsyms_cmds_CXX | \
20675 export_symbols_cmds_CXX | \
20676 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20677 postinstall_cmds | postuninstall_cmds | \
20678 old_postinstall_cmds | old_postuninstall_cmds | \
20679 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20680 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020681 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 +000020682 ;;
20683 *)
20684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20685 ;;
20686 esac
20687 done
20688
20689 case $lt_echo in
20690 *'\$0 --fallback-echo"')
20691 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20692 ;;
20693 esac
20694
20695cfgfile="$ofile"
20696
20697 cat <<__EOF__ >> "$cfgfile"
20698# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20699
20700# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20701
20702# Shell to use when invoking shell scripts.
20703SHELL=$lt_SHELL
20704
20705# Whether or not to build shared libraries.
20706build_libtool_libs=$enable_shared
20707
20708# Whether or not to build static libraries.
20709build_old_libs=$enable_static
20710
20711# Whether or not to add -lc for building shared libraries.
20712build_libtool_need_lc=$archive_cmds_need_lc_CXX
20713
20714# Whether or not to disallow shared libs when runtime libs are static
20715allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20716
20717# Whether or not to optimize for fast installation.
20718fast_install=$enable_fast_install
20719
20720# The host system.
20721host_alias=$host_alias
20722host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020723host_os=$host_os
20724
20725# The build system.
20726build_alias=$build_alias
20727build=$build
20728build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020729
20730# An echo program that does not interpret backslashes.
20731echo=$lt_echo
20732
20733# The archiver.
20734AR=$lt_AR
20735AR_FLAGS=$lt_AR_FLAGS
20736
20737# A C compiler.
20738LTCC=$lt_LTCC
20739
Reid Spencera773bd52006-08-04 18:18:08 +000020740# LTCC compiler flags.
20741LTCFLAGS=$lt_LTCFLAGS
20742
John Criswell47fdd832003-07-14 16:52:07 +000020743# A language-specific compiler.
20744CC=$lt_compiler_CXX
20745
20746# Is the compiler the GNU C compiler?
20747with_gcc=$GCC_CXX
20748
20749# An ERE matcher.
20750EGREP=$lt_EGREP
20751
20752# The linker used to build libraries.
20753LD=$lt_LD_CXX
20754
20755# Whether we need hard or soft links.
20756LN_S=$lt_LN_S
20757
20758# A BSD-compatible nm program.
20759NM=$lt_NM
20760
20761# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020762STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020763
20764# Used to examine libraries when file_magic_cmd begins "file"
20765MAGIC_CMD=$MAGIC_CMD
20766
20767# Used on cygwin: DLL creation program.
20768DLLTOOL="$DLLTOOL"
20769
20770# Used on cygwin: object dumper.
20771OBJDUMP="$OBJDUMP"
20772
20773# Used on cygwin: assembler.
20774AS="$AS"
20775
20776# The name of the directory that contains temporary libtool files.
20777objdir=$objdir
20778
20779# How to create reloadable object files.
20780reload_flag=$lt_reload_flag
20781reload_cmds=$lt_reload_cmds
20782
20783# How to pass a linker flag through the compiler.
20784wl=$lt_lt_prog_compiler_wl_CXX
20785
20786# Object file suffix (normally "o").
20787objext="$ac_objext"
20788
20789# Old archive suffix (normally "a").
20790libext="$libext"
20791
20792# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020793shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020794
20795# Executable file suffix (normally "").
20796exeext="$exeext"
20797
20798# Additional compiler flags for building library objects.
20799pic_flag=$lt_lt_prog_compiler_pic_CXX
20800pic_mode=$pic_mode
20801
20802# What is the maximum length of a command?
20803max_cmd_len=$lt_cv_sys_max_cmd_len
20804
20805# Does compiler simultaneously support -c and -o options?
20806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20807
Reid Spencera773bd52006-08-04 18:18:08 +000020808# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020809need_locks=$lt_need_locks
20810
20811# Do we need the lib prefix for modules?
20812need_lib_prefix=$need_lib_prefix
20813
20814# Do we need a version for libraries?
20815need_version=$need_version
20816
20817# Whether dlopen is supported.
20818dlopen_support=$enable_dlopen
20819
20820# Whether dlopen of programs is supported.
20821dlopen_self=$enable_dlopen_self
20822
20823# Whether dlopen of statically linked programs is supported.
20824dlopen_self_static=$enable_dlopen_self_static
20825
20826# Compiler flag to prevent dynamic linking.
20827link_static_flag=$lt_lt_prog_compiler_static_CXX
20828
20829# Compiler flag to turn off builtin functions.
20830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20831
20832# Compiler flag to allow reflexive dlopens.
20833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20834
20835# Compiler flag to generate shared objects directly from archives.
20836whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20837
20838# Compiler flag to generate thread-safe objects.
20839thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20840
20841# Library versioning type.
20842version_type=$version_type
20843
20844# Format of library name prefix.
20845libname_spec=$lt_libname_spec
20846
20847# List of archive names. First name is the real one, the rest are links.
20848# The last name is the one that the linker finds with -lNAME.
20849library_names_spec=$lt_library_names_spec
20850
20851# The coded name of the library, if different from the real name.
20852soname_spec=$lt_soname_spec
20853
20854# Commands used to build and install an old-style archive.
20855RANLIB=$lt_RANLIB
20856old_archive_cmds=$lt_old_archive_cmds_CXX
20857old_postinstall_cmds=$lt_old_postinstall_cmds
20858old_postuninstall_cmds=$lt_old_postuninstall_cmds
20859
20860# Create an old-style archive from a shared archive.
20861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20862
20863# Create a temporary old-style archive to link instead of a shared archive.
20864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20865
20866# Commands used to build and install a shared archive.
20867archive_cmds=$lt_archive_cmds_CXX
20868archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20869postinstall_cmds=$lt_postinstall_cmds
20870postuninstall_cmds=$lt_postuninstall_cmds
20871
20872# Commands used to build a loadable module (assumed same as above if empty)
20873module_cmds=$lt_module_cmds_CXX
20874module_expsym_cmds=$lt_module_expsym_cmds_CXX
20875
20876# Commands to strip libraries.
20877old_striplib=$lt_old_striplib
20878striplib=$lt_striplib
20879
20880# Dependencies to place before the objects being linked to create a
20881# shared library.
20882predep_objects=$lt_predep_objects_CXX
20883
20884# Dependencies to place after the objects being linked to create a
20885# shared library.
20886postdep_objects=$lt_postdep_objects_CXX
20887
20888# Dependencies to place before the objects being linked to create a
20889# shared library.
20890predeps=$lt_predeps_CXX
20891
20892# Dependencies to place after the objects being linked to create a
20893# shared library.
20894postdeps=$lt_postdeps_CXX
20895
20896# The library search path used internally by the compiler when linking
20897# a shared library.
20898compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20899
20900# Method to check whether dependent libraries are shared objects.
20901deplibs_check_method=$lt_deplibs_check_method
20902
20903# Command to use when deplibs_check_method == file_magic.
20904file_magic_cmd=$lt_file_magic_cmd
20905
20906# Flag that allows shared libraries with undefined symbols to be built.
20907allow_undefined_flag=$lt_allow_undefined_flag_CXX
20908
20909# Flag that forces no undefined symbols.
20910no_undefined_flag=$lt_no_undefined_flag_CXX
20911
20912# Commands used to finish a libtool library installation in a directory.
20913finish_cmds=$lt_finish_cmds
20914
20915# Same as above, but a single script fragment to be evaled but not shown.
20916finish_eval=$lt_finish_eval
20917
20918# Take the output of nm and produce a listing of raw symbols and C names.
20919global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20920
20921# Transform the output of nm in a proper C declaration
20922global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20923
20924# Transform the output of nm in a C name address pair
20925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20926
20927# This is the shared library runtime path variable.
20928runpath_var=$runpath_var
20929
20930# This is the shared library path variable.
20931shlibpath_var=$shlibpath_var
20932
20933# Is shlibpath searched before the hard-coded library search path?
20934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20935
20936# How to hardcode a shared library path into an executable.
20937hardcode_action=$hardcode_action_CXX
20938
20939# Whether we should hardcode library paths into libraries.
20940hardcode_into_libs=$hardcode_into_libs
20941
20942# Flag to hardcode \$libdir into a binary during linking.
20943# This must work even if \$libdir does not exist.
20944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20945
20946# If ld is used when linking, flag to hardcode \$libdir into
20947# a binary during linking. This must work even if \$libdir does
20948# not exist.
20949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20950
20951# Whether we need a single -rpath flag with a separated argument.
20952hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20953
20954# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20955# resulting binary.
20956hardcode_direct=$hardcode_direct_CXX
20957
20958# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20959# resulting binary.
20960hardcode_minus_L=$hardcode_minus_L_CXX
20961
20962# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20963# the resulting binary.
20964hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20965
20966# Set to yes if building a shared library automatically hardcodes DIR into the library
20967# and all subsequent libraries and executables linked against it.
20968hardcode_automatic=$hardcode_automatic_CXX
20969
20970# Variables whose values should be saved in libtool wrapper scripts and
20971# restored at relink time.
20972variables_saved_for_relink="$variables_saved_for_relink"
20973
20974# Whether libtool must link a program against all its dependency libraries.
20975link_all_deplibs=$link_all_deplibs_CXX
20976
20977# Compile-time system search path for libraries
20978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20979
20980# Run-time system search path for libraries
20981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20982
20983# Fix the shell variable \$srcfile for the compiler.
20984fix_srcfile_path="$fix_srcfile_path_CXX"
20985
20986# Set to yes if exported symbols are required.
20987always_export_symbols=$always_export_symbols_CXX
20988
20989# The commands to list exported symbols.
20990export_symbols_cmds=$lt_export_symbols_cmds_CXX
20991
20992# The commands to extract the exported symbol list from a shared archive.
20993extract_expsyms_cmds=$lt_extract_expsyms_cmds
20994
20995# Symbols that should not be listed in the preloaded symbols.
20996exclude_expsyms=$lt_exclude_expsyms_CXX
20997
20998# Symbols that must always be exported.
20999include_expsyms=$lt_include_expsyms_CXX
21000
21001# ### END LIBTOOL TAG CONFIG: $tagname
21002
21003__EOF__
21004
21005
21006else
21007 # If there is no Makefile yet, we rely on a make rule to execute
21008 # `config.status --recheck' to rerun these tests and create the
21009 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21011 if test -f "$ltmain_in"; then
21012 test -f Makefile && make "$ltmain"
21013 fi
John Criswell47fdd832003-07-14 16:52:07 +000021014fi
21015
21016
21017ac_ext=c
21018ac_cpp='$CPP $CPPFLAGS'
21019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21021ac_compiler_gnu=$ac_cv_c_compiler_gnu
21022
21023CC=$lt_save_CC
21024LDCXX=$LD
21025LD=$lt_save_LD
21026GCC=$lt_save_GCC
21027with_gnu_ldcxx=$with_gnu_ld
21028with_gnu_ld=$lt_save_with_gnu_ld
21029lt_cv_path_LDCXX=$lt_cv_path_LD
21030lt_cv_path_LD=$lt_save_path_LD
21031lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21032lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21033
21034 else
21035 tagname=""
21036 fi
21037 ;;
21038
21039 F77)
21040 if test -n "$F77" && test "X$F77" != "Xno"; then
21041
21042ac_ext=f
21043ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21044ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21045ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21046
21047
21048archive_cmds_need_lc_F77=no
21049allow_undefined_flag_F77=
21050always_export_symbols_F77=no
21051archive_expsym_cmds_F77=
21052export_dynamic_flag_spec_F77=
21053hardcode_direct_F77=no
21054hardcode_libdir_flag_spec_F77=
21055hardcode_libdir_flag_spec_ld_F77=
21056hardcode_libdir_separator_F77=
21057hardcode_minus_L_F77=no
21058hardcode_automatic_F77=no
21059module_cmds_F77=
21060module_expsym_cmds_F77=
21061link_all_deplibs_F77=unknown
21062old_archive_cmds_F77=$old_archive_cmds
21063no_undefined_flag_F77=
21064whole_archive_flag_spec_F77=
21065enable_shared_with_static_runtimes_F77=no
21066
21067# Source file extension for f77 test sources.
21068ac_ext=f
21069
21070# Object file extension for compiled f77 test sources.
21071objext=o
21072objext_F77=$objext
21073
21074# Code to be used in simple compile tests
21075lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21076
21077# Code to be used in simple link tests
21078lt_simple_link_test_code=" program t\n end\n"
21079
21080# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21081
21082# If no C compiler was specified, use CC.
21083LTCC=${LTCC-"$CC"}
21084
Reid Spencera773bd52006-08-04 18:18:08 +000021085# If no C compiler flags were specified, use CFLAGS.
21086LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21087
John Criswell47fdd832003-07-14 16:52:07 +000021088# Allow CC to be a program name with arguments.
21089compiler=$CC
21090
21091
Reid Spencera773bd52006-08-04 18:18:08 +000021092# save warnings/boilerplate of simple test code
21093ac_outfile=conftest.$ac_objext
21094printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21095eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21096_lt_compiler_boilerplate=`cat conftest.err`
21097$rm conftest*
21098
21099ac_outfile=conftest.$ac_objext
21100printf "$lt_simple_link_test_code" >conftest.$ac_ext
21101eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21102_lt_linker_boilerplate=`cat conftest.err`
21103$rm conftest*
21104
21105
John Criswell47fdd832003-07-14 16:52:07 +000021106# Allow CC to be a program name with arguments.
21107lt_save_CC="$CC"
21108CC=${F77-"f77"}
21109compiler=$CC
21110compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021111for cc_temp in $compiler""; do
21112 case $cc_temp in
21113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21115 \-*) ;;
21116 *) break;;
21117 esac
21118done
21119cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021120
John Criswell47fdd832003-07-14 16:52:07 +000021121
Reid Spencera773bd52006-08-04 18:18:08 +000021122{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21123echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21124{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21125echo "${ECHO_T}$can_build_shared" >&6; }
21126
21127{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21128echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021129test "$can_build_shared" = "no" && enable_shared=no
21130
21131# On AIX, shared libraries and static libraries use the same namespace, and
21132# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021133case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021134aix3*)
21135 test "$enable_shared" = yes && enable_static=no
21136 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021137 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021138 postinstall_cmds='$RANLIB $lib'
21139 fi
21140 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021141aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021142 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21143 test "$enable_shared" = yes && enable_static=no
21144 fi
John Criswell47fdd832003-07-14 16:52:07 +000021145 ;;
21146esac
Reid Spencera773bd52006-08-04 18:18:08 +000021147{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21148echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021149
Reid Spencera773bd52006-08-04 18:18:08 +000021150{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21151echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021152# Make sure either enable_shared or enable_static is yes.
21153test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021154{ echo "$as_me:$LINENO: result: $enable_static" >&5
21155echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021156
21157GCC_F77="$G77"
21158LD_F77="$LD"
21159
21160lt_prog_compiler_wl_F77=
21161lt_prog_compiler_pic_F77=
21162lt_prog_compiler_static_F77=
21163
Reid Spencera773bd52006-08-04 18:18:08 +000021164{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21165echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021166
21167 if test "$GCC" = yes; then
21168 lt_prog_compiler_wl_F77='-Wl,'
21169 lt_prog_compiler_static_F77='-static'
21170
21171 case $host_os in
21172 aix*)
21173 # All AIX code is PIC.
21174 if test "$host_cpu" = ia64; then
21175 # AIX 5 now supports IA64 processor
21176 lt_prog_compiler_static_F77='-Bstatic'
21177 fi
21178 ;;
21179
21180 amigaos*)
21181 # FIXME: we need at least 68020 code to build shared libraries, but
21182 # adding the `-m68020' flag to GCC prevents building anything better,
21183 # like `-m68040'.
21184 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21185 ;;
21186
21187 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21188 # PIC is the default for these OSes.
21189 ;;
21190
21191 mingw* | pw32* | os2*)
21192 # This hack is so that the source file can tell whether it is being
21193 # built for inclusion in a dll (and should export symbols for example).
21194 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21195 ;;
21196
21197 darwin* | rhapsody*)
21198 # PIC is the default on this platform
21199 # Common symbols not allowed in MH_DYLIB files
21200 lt_prog_compiler_pic_F77='-fno-common'
21201 ;;
21202
Reid Spencera773bd52006-08-04 18:18:08 +000021203 interix3*)
21204 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21205 # Instead, we relocate shared libraries at runtime.
21206 ;;
21207
John Criswell47fdd832003-07-14 16:52:07 +000021208 msdosdjgpp*)
21209 # Just because we use GCC doesn't mean we suddenly get shared libraries
21210 # on systems that don't support them.
21211 lt_prog_compiler_can_build_shared_F77=no
21212 enable_shared=no
21213 ;;
21214
21215 sysv4*MP*)
21216 if test -d /usr/nec; then
21217 lt_prog_compiler_pic_F77=-Kconform_pic
21218 fi
21219 ;;
21220
21221 hpux*)
21222 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21223 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021224 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021225 hppa*64*|ia64*)
21226 # +Z the default
21227 ;;
21228 *)
21229 lt_prog_compiler_pic_F77='-fPIC'
21230 ;;
21231 esac
21232 ;;
21233
21234 *)
21235 lt_prog_compiler_pic_F77='-fPIC'
21236 ;;
21237 esac
21238 else
21239 # PORTME Check for flag to pass linker flags through the system compiler.
21240 case $host_os in
21241 aix*)
21242 lt_prog_compiler_wl_F77='-Wl,'
21243 if test "$host_cpu" = ia64; then
21244 # AIX 5 now supports IA64 processor
21245 lt_prog_compiler_static_F77='-Bstatic'
21246 else
21247 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21248 fi
21249 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021250 darwin*)
21251 # PIC is the default on this platform
21252 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021253 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021254 xlc*)
21255 lt_prog_compiler_pic_F77='-qnocommon'
21256 lt_prog_compiler_wl_F77='-Wl,'
21257 ;;
21258 esac
21259 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021260
21261 mingw* | pw32* | os2*)
21262 # This hack is so that the source file can tell whether it is being
21263 # built for inclusion in a dll (and should export symbols for example).
21264 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21265 ;;
21266
21267 hpux9* | hpux10* | hpux11*)
21268 lt_prog_compiler_wl_F77='-Wl,'
21269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21270 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021271 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021272 hppa*64*|ia64*)
21273 # +Z the default
21274 ;;
21275 *)
21276 lt_prog_compiler_pic_F77='+Z'
21277 ;;
21278 esac
21279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21280 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21281 ;;
21282
21283 irix5* | irix6* | nonstopux*)
21284 lt_prog_compiler_wl_F77='-Wl,'
21285 # PIC (with -KPIC) is the default.
21286 lt_prog_compiler_static_F77='-non_shared'
21287 ;;
21288
21289 newsos6)
21290 lt_prog_compiler_pic_F77='-KPIC'
21291 lt_prog_compiler_static_F77='-Bstatic'
21292 ;;
21293
21294 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021295 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021296 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021297 lt_prog_compiler_wl_F77='-Wl,'
21298 lt_prog_compiler_pic_F77='-KPIC'
21299 lt_prog_compiler_static_F77='-static'
21300 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021301 pgcc* | pgf77* | pgf90* | pgf95*)
21302 # Portland Group compilers (*not* the Pentium gcc compiler,
21303 # which looks to be a dead project)
21304 lt_prog_compiler_wl_F77='-Wl,'
21305 lt_prog_compiler_pic_F77='-fpic'
21306 lt_prog_compiler_static_F77='-Bstatic'
21307 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021308 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021309 lt_prog_compiler_wl_F77='-Wl,'
21310 # All Alpha code is PIC.
21311 lt_prog_compiler_static_F77='-non_shared'
21312 ;;
21313 esac
21314 ;;
21315
21316 osf3* | osf4* | osf5*)
21317 lt_prog_compiler_wl_F77='-Wl,'
21318 # All OSF/1 code is PIC.
21319 lt_prog_compiler_static_F77='-non_shared'
21320 ;;
21321
John Criswell47fdd832003-07-14 16:52:07 +000021322 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021323 lt_prog_compiler_pic_F77='-KPIC'
21324 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021325 case $cc_basename in
21326 f77* | f90* | f95*)
21327 lt_prog_compiler_wl_F77='-Qoption ld ';;
21328 *)
21329 lt_prog_compiler_wl_F77='-Wl,';;
21330 esac
John Criswell47fdd832003-07-14 16:52:07 +000021331 ;;
21332
21333 sunos4*)
21334 lt_prog_compiler_wl_F77='-Qoption ld '
21335 lt_prog_compiler_pic_F77='-PIC'
21336 lt_prog_compiler_static_F77='-Bstatic'
21337 ;;
21338
Reid Spencera773bd52006-08-04 18:18:08 +000021339 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021340 lt_prog_compiler_wl_F77='-Wl,'
21341 lt_prog_compiler_pic_F77='-KPIC'
21342 lt_prog_compiler_static_F77='-Bstatic'
21343 ;;
21344
21345 sysv4*MP*)
21346 if test -d /usr/nec ;then
21347 lt_prog_compiler_pic_F77='-Kconform_pic'
21348 lt_prog_compiler_static_F77='-Bstatic'
21349 fi
21350 ;;
21351
Reid Spencera773bd52006-08-04 18:18:08 +000021352 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21353 lt_prog_compiler_wl_F77='-Wl,'
21354 lt_prog_compiler_pic_F77='-KPIC'
21355 lt_prog_compiler_static_F77='-Bstatic'
21356 ;;
21357
21358 unicos*)
21359 lt_prog_compiler_wl_F77='-Wl,'
21360 lt_prog_compiler_can_build_shared_F77=no
21361 ;;
21362
John Criswell47fdd832003-07-14 16:52:07 +000021363 uts4*)
21364 lt_prog_compiler_pic_F77='-pic'
21365 lt_prog_compiler_static_F77='-Bstatic'
21366 ;;
21367
21368 *)
21369 lt_prog_compiler_can_build_shared_F77=no
21370 ;;
21371 esac
21372 fi
21373
Reid Spencera773bd52006-08-04 18:18:08 +000021374{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21375echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021376
21377#
21378# Check to make sure the PIC flag actually works.
21379#
21380if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021381
Reid Spencera773bd52006-08-04 18:18:08 +000021382{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21383echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021384if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21386else
21387 lt_prog_compiler_pic_works_F77=no
21388 ac_outfile=conftest.$ac_objext
21389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21390 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21391 # Insert the option either (1) after the last *FLAGS variable, or
21392 # (2) before a word containing "conftest.", or (3) at the end.
21393 # Note that $ac_compile itself does not contain backslashes and begins
21394 # with a dollar sign (not a hyphen), so the echo should work correctly.
21395 # The option is referenced via a variable to avoid confusing sed.
21396 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21399 -e 's:$: $lt_compiler_flag:'`
Bill Wendling41ef25b2008-03-05 09:28:02 +000021400 (eval echo "\"\$as_me:21400: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021401 (eval "$lt_compile" 2>conftest.err)
21402 ac_status=$?
21403 cat conftest.err >&5
Bill Wendling41ef25b2008-03-05 09:28:02 +000021404 echo "$as_me:21404: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021405 if (exit $ac_status) && test -s "$ac_outfile"; then
21406 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021407 # So say no if there are warnings other than the usual output.
21408 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021411 lt_prog_compiler_pic_works_F77=yes
21412 fi
21413 fi
21414 $rm conftest*
21415
21416fi
Reid Spencera773bd52006-08-04 18:18:08 +000021417{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21418echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021419
21420if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21421 case $lt_prog_compiler_pic_F77 in
21422 "" | " "*) ;;
21423 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21424 esac
21425else
21426 lt_prog_compiler_pic_F77=
21427 lt_prog_compiler_can_build_shared_F77=no
21428fi
21429
21430fi
Reid Spencera773bd52006-08-04 18:18:08 +000021431case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021432 # For platforms which do not support PIC, -DPIC is meaningless:
21433 *djgpp*)
21434 lt_prog_compiler_pic_F77=
21435 ;;
21436 *)
21437 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21438 ;;
21439esac
21440
Reid Spencera773bd52006-08-04 18:18:08 +000021441#
21442# Check to make sure the static flag actually works.
21443#
21444wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21445{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21446echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21447if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21448 echo $ECHO_N "(cached) $ECHO_C" >&6
21449else
21450 lt_prog_compiler_static_works_F77=no
21451 save_LDFLAGS="$LDFLAGS"
21452 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21453 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21455 # The linker can only warn and ignore the option if not recognized
21456 # So say no if there are warnings
21457 if test -s conftest.err; then
21458 # Append any errors to the config.log.
21459 cat conftest.err 1>&5
21460 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21462 if diff conftest.exp conftest.er2 >/dev/null; then
21463 lt_prog_compiler_static_works_F77=yes
21464 fi
21465 else
21466 lt_prog_compiler_static_works_F77=yes
21467 fi
21468 fi
21469 $rm conftest*
21470 LDFLAGS="$save_LDFLAGS"
21471
21472fi
21473{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21474echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21475
21476if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21477 :
21478else
21479 lt_prog_compiler_static_F77=
21480fi
21481
21482
21483{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21484echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021485if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21487else
21488 lt_cv_prog_compiler_c_o_F77=no
21489 $rm -r conftest 2>/dev/null
21490 mkdir conftest
21491 cd conftest
21492 mkdir out
21493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21494
John Criswell47fdd832003-07-14 16:52:07 +000021495 lt_compiler_flag="-o out/conftest2.$ac_objext"
21496 # Insert the option either (1) after the last *FLAGS variable, or
21497 # (2) before a word containing "conftest.", or (3) at the end.
21498 # Note that $ac_compile itself does not contain backslashes and begins
21499 # with a dollar sign (not a hyphen), so the echo should work correctly.
21500 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21503 -e 's:$: $lt_compiler_flag:'`
Bill Wendling41ef25b2008-03-05 09:28:02 +000021504 (eval echo "\"\$as_me:21504: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021505 (eval "$lt_compile" 2>out/conftest.err)
21506 ac_status=$?
21507 cat out/conftest.err >&5
Bill Wendling41ef25b2008-03-05 09:28:02 +000021508 echo "$as_me:21508: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021509 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21510 then
21511 # The compiler can only warn and ignore the option if not recognized
21512 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021513 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21514 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21515 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021516 lt_cv_prog_compiler_c_o_F77=yes
21517 fi
21518 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021519 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021520 $rm conftest*
21521 # SGI C++ compiler will create directory out/ii_files/ for
21522 # template instantiation
21523 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21524 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021525 cd ..
21526 rmdir conftest
21527 $rm conftest*
21528
21529fi
Reid Spencera773bd52006-08-04 18:18:08 +000021530{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21531echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021532
21533
21534hard_links="nottested"
21535if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21536 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021537 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21538echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021539 hard_links=yes
21540 $rm conftest*
21541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21542 touch conftest.a
21543 ln conftest.a conftest.b 2>&5 || hard_links=no
21544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021545 { echo "$as_me:$LINENO: result: $hard_links" >&5
21546echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021547 if test "$hard_links" = no; then
21548 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21549echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21550 need_locks=warn
21551 fi
21552else
21553 need_locks=no
21554fi
21555
Reid Spencera773bd52006-08-04 18:18:08 +000021556{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21557echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021558
21559 runpath_var=
21560 allow_undefined_flag_F77=
21561 enable_shared_with_static_runtimes_F77=no
21562 archive_cmds_F77=
21563 archive_expsym_cmds_F77=
21564 old_archive_From_new_cmds_F77=
21565 old_archive_from_expsyms_cmds_F77=
21566 export_dynamic_flag_spec_F77=
21567 whole_archive_flag_spec_F77=
21568 thread_safe_flag_spec_F77=
21569 hardcode_libdir_flag_spec_F77=
21570 hardcode_libdir_flag_spec_ld_F77=
21571 hardcode_libdir_separator_F77=
21572 hardcode_direct_F77=no
21573 hardcode_minus_L_F77=no
21574 hardcode_shlibpath_var_F77=unsupported
21575 link_all_deplibs_F77=unknown
21576 hardcode_automatic_F77=no
21577 module_cmds_F77=
21578 module_expsym_cmds_F77=
21579 always_export_symbols_F77=no
21580 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21581 # include_expsyms should be a list of space-separated symbols to be *always*
21582 # included in the symbol list
21583 include_expsyms_F77=
21584 # exclude_expsyms can be an extended regexp of symbols to exclude
21585 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21586 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21587 # as well as any symbol that contains `d'.
21588 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21589 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21590 # platforms (ab)use it in PIC code, but their linkers get confused if
21591 # the symbol is explicitly referenced. Since portable code cannot
21592 # rely on this symbol name, it's probably fine to never include it in
21593 # preloaded symbol tables.
21594 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021595 # Just being paranoid about ensuring that cc_basename is set.
21596 for cc_temp in $compiler""; do
21597 case $cc_temp in
21598 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21599 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21600 \-*) ;;
21601 *) break;;
21602 esac
21603done
21604cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021605
21606 case $host_os in
21607 cygwin* | mingw* | pw32*)
21608 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21609 # When not using gcc, we currently assume that we are using
21610 # Microsoft Visual C++.
21611 if test "$GCC" != yes; then
21612 with_gnu_ld=no
21613 fi
21614 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021615 interix*)
21616 # we just hope/assume this is gcc and not c89 (= MSVC++)
21617 with_gnu_ld=yes
21618 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021619 openbsd*)
21620 with_gnu_ld=no
21621 ;;
21622 esac
21623
21624 ld_shlibs_F77=yes
21625 if test "$with_gnu_ld" = yes; then
21626 # If archive_cmds runs LD, not CC, wlarc should be empty
21627 wlarc='${wl}'
21628
Reid Spencera773bd52006-08-04 18:18:08 +000021629 # Set some defaults for GNU ld with shared library support. These
21630 # are reset later if shared libraries are not supported. Putting them
21631 # here allows them to be overridden if necessary.
21632 runpath_var=LD_RUN_PATH
21633 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21634 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21635 # ancient GNU ld didn't support --whole-archive et. al.
21636 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21637 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21638 else
21639 whole_archive_flag_spec_F77=
21640 fi
21641 supports_anon_versioning=no
21642 case `$LD -v 2>/dev/null` in
21643 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21644 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21645 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21646 *\ 2.11.*) ;; # other 2.11 versions
21647 *) supports_anon_versioning=yes ;;
21648 esac
21649
John Criswell47fdd832003-07-14 16:52:07 +000021650 # See if GNU ld supports shared libraries.
21651 case $host_os in
21652 aix3* | aix4* | aix5*)
21653 # On AIX/PPC, the GNU linker is very broken
21654 if test "$host_cpu" != ia64; then
21655 ld_shlibs_F77=no
21656 cat <<EOF 1>&2
21657
21658*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21659*** to be unable to reliably create shared libraries on AIX.
21660*** Therefore, libtool is disabling shared libraries support. If you
21661*** really care for shared libraries, you may want to modify your PATH
21662*** so that a non-GNU linker is found, and then restart.
21663
21664EOF
21665 fi
21666 ;;
21667
21668 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021669 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 +000021670 hardcode_libdir_flag_spec_F77='-L$libdir'
21671 hardcode_minus_L_F77=yes
21672
21673 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21674 # that the semantics of dynamic libraries on AmigaOS, at least up
21675 # to version 4, is to share data among multiple programs linked
21676 # with the same dynamic library. Since this doesn't match the
21677 # behavior of shared libraries on other platforms, we can't use
21678 # them.
21679 ld_shlibs_F77=no
21680 ;;
21681
21682 beos*)
21683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21684 allow_undefined_flag_F77=unsupported
21685 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21686 # support --undefined. This deserves some investigation. FIXME
21687 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21688 else
21689 ld_shlibs_F77=no
21690 fi
21691 ;;
21692
21693 cygwin* | mingw* | pw32*)
21694 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21695 # as there is no search path for DLLs.
21696 hardcode_libdir_flag_spec_F77='-L$libdir'
21697 allow_undefined_flag_F77=unsupported
21698 always_export_symbols_F77=no
21699 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021700 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 +000021701
21702 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021703 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 +000021704 # If the export-symbols file already is a .def file (1st line
21705 # is EXPORTS), use it as is; otherwise, prepend...
21706 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21707 cp $export_symbols $output_objdir/$soname.def;
21708 else
21709 echo EXPORTS > $output_objdir/$soname.def;
21710 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021711 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021712 $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 +000021713 else
Reid Spencera773bd52006-08-04 18:18:08 +000021714 ld_shlibs_F77=no
21715 fi
21716 ;;
21717
21718 interix3*)
21719 hardcode_direct_F77=no
21720 hardcode_shlibpath_var_F77=no
21721 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21722 export_dynamic_flag_spec_F77='${wl}-E'
21723 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21724 # Instead, shared libraries are loaded at an image base (0x10000000 by
21725 # default) and relocated if they conflict, which is a slow very memory
21726 # consuming and fragmenting process. To avoid this, we pick a random,
21727 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21728 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21729 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'
21730 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'
21731 ;;
21732
21733 linux*)
21734 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21735 tmp_addflag=
21736 case $cc_basename,$host_cpu in
21737 pgcc*) # Portland Group C compiler
21738 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'
21739 tmp_addflag=' $pic_flag'
21740 ;;
21741 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21742 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'
21743 tmp_addflag=' $pic_flag -Mnomain' ;;
21744 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21745 tmp_addflag=' -i_dynamic' ;;
21746 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21747 tmp_addflag=' -i_dynamic -nofor_main' ;;
21748 ifc* | ifort*) # Intel Fortran compiler
21749 tmp_addflag=' -nofor_main' ;;
21750 esac
21751 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21752
21753 if test $supports_anon_versioning = yes; then
21754 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21756 $echo "local: *; };" >> $output_objdir/$libname.ver~
21757 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21758 fi
21759 else
21760 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021761 fi
21762 ;;
21763
21764 netbsd*)
21765 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21766 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21767 wlarc=
21768 else
21769 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21770 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21771 fi
21772 ;;
21773
Reid Spencera773bd52006-08-04 18:18:08 +000021774 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021775 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21776 ld_shlibs_F77=no
21777 cat <<EOF 1>&2
21778
21779*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21780*** create shared libraries on Solaris systems. Therefore, libtool
21781*** is disabling shared libraries support. We urge you to upgrade GNU
21782*** binutils to release 2.9.1 or newer. Another option is to modify
21783*** your PATH or compiler configuration so that the native linker is
21784*** used, and then restart.
21785
21786EOF
21787 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21788 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21789 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21790 else
21791 ld_shlibs_F77=no
21792 fi
21793 ;;
21794
Reid Spencera773bd52006-08-04 18:18:08 +000021795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21796 case `$LD -v 2>&1` in
21797 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21798 ld_shlibs_F77=no
21799 cat <<_LT_EOF 1>&2
21800
21801*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21802*** reliably create shared libraries on SCO systems. Therefore, libtool
21803*** is disabling shared libraries support. We urge you to upgrade GNU
21804*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21805*** your PATH or compiler configuration so that the native linker is
21806*** used, and then restart.
21807
21808_LT_EOF
21809 ;;
21810 *)
21811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21812 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21813 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21814 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21815 else
21816 ld_shlibs_F77=no
21817 fi
21818 ;;
21819 esac
21820 ;;
21821
John Criswell47fdd832003-07-14 16:52:07 +000021822 sunos4*)
21823 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21824 wlarc=
21825 hardcode_direct_F77=yes
21826 hardcode_shlibpath_var_F77=no
21827 ;;
21828
21829 *)
21830 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21831 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21832 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21833 else
21834 ld_shlibs_F77=no
21835 fi
21836 ;;
21837 esac
21838
Reid Spencera773bd52006-08-04 18:18:08 +000021839 if test "$ld_shlibs_F77" = no; then
21840 runpath_var=
21841 hardcode_libdir_flag_spec_F77=
21842 export_dynamic_flag_spec_F77=
21843 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021844 fi
21845 else
21846 # PORTME fill in a description of your system's linker (not GNU ld)
21847 case $host_os in
21848 aix3*)
21849 allow_undefined_flag_F77=unsupported
21850 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021851 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 +000021852 # Note: this linker hardcodes the directories in LIBPATH if there
21853 # are no directories specified by -L.
21854 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021855 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021856 # Neither direct hardcoding nor static linking is supported with a
21857 # broken collect2.
21858 hardcode_direct_F77=unsupported
21859 fi
21860 ;;
21861
21862 aix4* | aix5*)
21863 if test "$host_cpu" = ia64; then
21864 # On IA64, the linker does run time linking by default, so we don't
21865 # have to do anything special.
21866 aix_use_runtimelinking=no
21867 exp_sym_flag='-Bexport'
21868 no_entry_flag=""
21869 else
21870 # If we're using GNU nm, then we don't want the "-C" option.
21871 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21872 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21873 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'
21874 else
21875 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'
21876 fi
21877 aix_use_runtimelinking=no
21878
21879 # Test if we are trying to use run time linking or normal
21880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21881 # need to do runtime linking.
21882 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21883 for ld_flag in $LDFLAGS; do
21884 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21885 aix_use_runtimelinking=yes
21886 break
21887 fi
21888 done
Reid Spencera773bd52006-08-04 18:18:08 +000021889 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021890 esac
21891
21892 exp_sym_flag='-bexport'
21893 no_entry_flag='-bnoentry'
21894 fi
21895
21896 # When large executables or shared objects are built, AIX ld can
21897 # have problems creating the table of contents. If linking a library
21898 # or program results in "error TOC overflow" add -mminimal-toc to
21899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21901
21902 archive_cmds_F77=''
21903 hardcode_direct_F77=yes
21904 hardcode_libdir_separator_F77=':'
21905 link_all_deplibs_F77=yes
21906
21907 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021908 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021909 # We only want to do this on AIX 4.2 and lower, the check
21910 # below for broken collect2 doesn't work under 4.3+
21911 collect2name=`${CC} -print-prog-name=collect2`
21912 if test -f "$collect2name" && \
21913 strings "$collect2name" | grep resolve_lib_name >/dev/null
21914 then
21915 # We have reworked collect2
21916 hardcode_direct_F77=yes
21917 else
21918 # We have old collect2
21919 hardcode_direct_F77=unsupported
21920 # It fails to find uninstalled libraries when the uninstalled
21921 # path is not listed in the libpath. Setting hardcode_minus_L
21922 # to unsupported forces relinking
21923 hardcode_minus_L_F77=yes
21924 hardcode_libdir_flag_spec_F77='-L$libdir'
21925 hardcode_libdir_separator_F77=
21926 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021927 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021928 esac
21929 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021930 if test "$aix_use_runtimelinking" = yes; then
21931 shared_flag="$shared_flag "'${wl}-G'
21932 fi
John Criswell47fdd832003-07-14 16:52:07 +000021933 else
21934 # not using gcc
21935 if test "$host_cpu" = ia64; then
21936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21937 # chokes on -Wl,-G. The following line is correct:
21938 shared_flag='-G'
21939 else
Reid Spencera773bd52006-08-04 18:18:08 +000021940 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021941 shared_flag='${wl}-G'
21942 else
21943 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021944 fi
John Criswell47fdd832003-07-14 16:52:07 +000021945 fi
21946 fi
21947
21948 # It seems that -bexpall does not export symbols beginning with
21949 # underscore (_), so it is better to generate a list of symbols to export.
21950 always_export_symbols_F77=yes
21951 if test "$aix_use_runtimelinking" = yes; then
21952 # Warning - without using the other runtime loading flags (-brtl),
21953 # -berok will link without error, but may produce a broken library.
21954 allow_undefined_flag_F77='-berok'
21955 # Determine the default libpath from the value encoded in an empty executable.
21956 cat >conftest.$ac_ext <<_ACEOF
21957 program main
21958
21959 end
21960_ACEOF
21961rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021962if { (ac_try="$ac_link"
21963case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21966esac
21967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021970 grep -v '^ *+' conftest.er1 >conftest.err
21971 rm -f conftest.er1
21972 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000021974 (exit $ac_status); } &&
21975 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21976 { (case "(($ac_try" in
21977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978 *) ac_try_echo=$ac_try;;
21979esac
21980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981 (eval "$ac_try") 2>&5
21982 ac_status=$?
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; } &&
21985 { ac_try='test -s conftest$ac_exeext'
21986 { (case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21989esac
21990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991 (eval "$ac_try") 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000021995
21996aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21997}'`
21998# Check for a 64-bit object if we didn't find anything.
21999if 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; }
22000}'`; fi
22001else
22002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022003sed 's/^/| /' conftest.$ac_ext >&5
22004
Reid Spencera773bd52006-08-04 18:18:08 +000022005
John Criswell47fdd832003-07-14 16:52:07 +000022006fi
Reid Spencera773bd52006-08-04 18:18:08 +000022007
Tanya Lattnercf067672008-01-17 05:57:22 +000022008rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022009 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22011
22012 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022013 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 +000022014 else
22015 if test "$host_cpu" = ia64; then
22016 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22017 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022018 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 +000022019 else
22020 # Determine the default libpath from the value encoded in an empty executable.
22021 cat >conftest.$ac_ext <<_ACEOF
22022 program main
22023
22024 end
22025_ACEOF
22026rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022027if { (ac_try="$ac_link"
22028case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22031esac
22032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022034 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022035 grep -v '^ *+' conftest.er1 >conftest.err
22036 rm -f conftest.er1
22037 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022039 (exit $ac_status); } &&
22040 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22041 { (case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22044esac
22045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_try") 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; } &&
22050 { ac_try='test -s conftest$ac_exeext'
22051 { (case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22054esac
22055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_try") 2>&5
22057 ac_status=$?
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022060
22061aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22062}'`
22063# Check for a 64-bit object if we didn't find anything.
22064if 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; }
22065}'`; fi
22066else
22067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022068sed 's/^/| /' conftest.$ac_ext >&5
22069
Reid Spencera773bd52006-08-04 18:18:08 +000022070
John Criswell47fdd832003-07-14 16:52:07 +000022071fi
Reid Spencera773bd52006-08-04 18:18:08 +000022072
Tanya Lattnercf067672008-01-17 05:57:22 +000022073rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022074 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022075if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22076
22077 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22078 # Warning - without using the other run time loading flags,
22079 # -berok will link without error, but may produce a broken library.
22080 no_undefined_flag_F77=' ${wl}-bernotok'
22081 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022082 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022083 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022084 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022085 # This is similar to how AIX traditionally builds its shared libraries.
22086 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 +000022087 fi
22088 fi
22089 ;;
22090
22091 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022092 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 +000022093 hardcode_libdir_flag_spec_F77='-L$libdir'
22094 hardcode_minus_L_F77=yes
22095 # see comment about different semantics on the GNU ld section
22096 ld_shlibs_F77=no
22097 ;;
22098
Reid Spencer2706f8c2004-09-19 23:53:36 +000022099 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022100 export_dynamic_flag_spec_F77=-rdynamic
22101 ;;
22102
22103 cygwin* | mingw* | pw32*)
22104 # When not using gcc, we currently assume that we are using
22105 # Microsoft Visual C++.
22106 # hardcode_libdir_flag_spec is actually meaningless, as there is
22107 # no search path for DLLs.
22108 hardcode_libdir_flag_spec_F77=' '
22109 allow_undefined_flag_F77=unsupported
22110 # Tell ltmain to make .lib files, not .a files.
22111 libext=lib
22112 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022113 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022114 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022115 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 +000022116 # The linker will automatically build a .lib file if we build a DLL.
22117 old_archive_From_new_cmds_F77='true'
22118 # FIXME: Should let the user specify the lib program.
22119 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022120 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022121 enable_shared_with_static_runtimes_F77=yes
22122 ;;
22123
22124 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022125 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022126 rhapsody* | darwin1.[012])
22127 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22128 ;;
22129 *) # Darwin 1.3 on
22130 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22131 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22132 else
22133 case ${MACOSX_DEPLOYMENT_TARGET} in
22134 10.[012])
22135 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22136 ;;
22137 10.*)
22138 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22139 ;;
22140 esac
22141 fi
22142 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022143 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022144 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022145 hardcode_direct_F77=no
22146 hardcode_automatic_F77=yes
22147 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022148 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022149 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022150 if test "$GCC" = yes ; then
22151 output_verbose_link_cmd='echo'
22152 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22153 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022154 # 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 +000022155 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}'
22156 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 +000022157 else
Reid Spencera773bd52006-08-04 18:18:08 +000022158 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022159 xlc*)
22160 output_verbose_link_cmd='echo'
22161 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22162 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022163 # 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 +000022164 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}'
22165 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 +000022166 ;;
22167 *)
22168 ld_shlibs_F77=no
22169 ;;
22170 esac
John Criswell47fdd832003-07-14 16:52:07 +000022171 fi
22172 ;;
22173
22174 dgux*)
22175 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22176 hardcode_libdir_flag_spec_F77='-L$libdir'
22177 hardcode_shlibpath_var_F77=no
22178 ;;
22179
22180 freebsd1*)
22181 ld_shlibs_F77=no
22182 ;;
22183
22184 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22185 # support. Future versions do this automatically, but an explicit c++rt0.o
22186 # does not break anything, and helps significantly (at the cost of a little
22187 # extra space).
22188 freebsd2.2*)
22189 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22190 hardcode_libdir_flag_spec_F77='-R$libdir'
22191 hardcode_direct_F77=yes
22192 hardcode_shlibpath_var_F77=no
22193 ;;
22194
22195 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22196 freebsd2*)
22197 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22198 hardcode_direct_F77=yes
22199 hardcode_minus_L_F77=yes
22200 hardcode_shlibpath_var_F77=no
22201 ;;
22202
22203 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022204 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022205 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22206 hardcode_libdir_flag_spec_F77='-R$libdir'
22207 hardcode_direct_F77=yes
22208 hardcode_shlibpath_var_F77=no
22209 ;;
22210
22211 hpux9*)
22212 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022213 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 +000022214 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022215 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 +000022216 fi
22217 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22218 hardcode_libdir_separator_F77=:
22219 hardcode_direct_F77=yes
22220
22221 # hardcode_minus_L: Not really in the search PATH,
22222 # but as the default location of the library.
22223 hardcode_minus_L_F77=yes
22224 export_dynamic_flag_spec_F77='${wl}-E'
22225 ;;
22226
Reid Spencera773bd52006-08-04 18:18:08 +000022227 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022228 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022229 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22230 else
22231 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22232 fi
22233 if test "$with_gnu_ld" = no; then
22234 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22235 hardcode_libdir_separator_F77=:
22236
22237 hardcode_direct_F77=yes
22238 export_dynamic_flag_spec_F77='${wl}-E'
22239
22240 # hardcode_minus_L: Not really in the search PATH,
22241 # but as the default location of the library.
22242 hardcode_minus_L_F77=yes
22243 fi
22244 ;;
22245
22246 hpux11*)
22247 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22248 case $host_cpu in
22249 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022250 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22251 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022252 ia64*)
22253 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22254 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022255 *)
22256 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22257 ;;
22258 esac
22259 else
Reid Spencera773bd52006-08-04 18:18:08 +000022260 case $host_cpu in
22261 hppa*64*)
22262 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22263 ;;
22264 ia64*)
22265 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022266 ;;
22267 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022268 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 +000022269 ;;
22270 esac
22271 fi
22272 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022273 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22274 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022275
Reid Spencera773bd52006-08-04 18:18:08 +000022276 case $host_cpu in
22277 hppa*64*|ia64*)
22278 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22279 hardcode_direct_F77=no
22280 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022281 ;;
22282 *)
John Criswell47fdd832003-07-14 16:52:07 +000022283 hardcode_direct_F77=yes
22284 export_dynamic_flag_spec_F77='${wl}-E'
22285
22286 # hardcode_minus_L: Not really in the search PATH,
22287 # but as the default location of the library.
22288 hardcode_minus_L_F77=yes
22289 ;;
22290 esac
22291 fi
22292 ;;
22293
22294 irix5* | irix6* | nonstopux*)
22295 if test "$GCC" = yes; then
22296 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'
22297 else
22298 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'
22299 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22300 fi
22301 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22302 hardcode_libdir_separator_F77=:
22303 link_all_deplibs_F77=yes
22304 ;;
22305
22306 netbsd*)
22307 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22308 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22309 else
22310 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22311 fi
22312 hardcode_libdir_flag_spec_F77='-R$libdir'
22313 hardcode_direct_F77=yes
22314 hardcode_shlibpath_var_F77=no
22315 ;;
22316
22317 newsos6)
22318 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22319 hardcode_direct_F77=yes
22320 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22321 hardcode_libdir_separator_F77=:
22322 hardcode_shlibpath_var_F77=no
22323 ;;
22324
22325 openbsd*)
22326 hardcode_direct_F77=yes
22327 hardcode_shlibpath_var_F77=no
22328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22329 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022330 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 +000022331 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22332 export_dynamic_flag_spec_F77='${wl}-E'
22333 else
22334 case $host_os in
22335 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22336 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22337 hardcode_libdir_flag_spec_F77='-R$libdir'
22338 ;;
22339 *)
22340 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22341 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22342 ;;
22343 esac
22344 fi
22345 ;;
22346
22347 os2*)
22348 hardcode_libdir_flag_spec_F77='-L$libdir'
22349 hardcode_minus_L_F77=yes
22350 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022351 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 +000022352 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22353 ;;
22354
22355 osf3*)
22356 if test "$GCC" = yes; then
22357 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22358 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'
22359 else
22360 allow_undefined_flag_F77=' -expect_unresolved \*'
22361 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'
22362 fi
22363 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22364 hardcode_libdir_separator_F77=:
22365 ;;
22366
22367 osf4* | osf5*) # as osf3* with the addition of -msym flag
22368 if test "$GCC" = yes; then
22369 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22370 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'
22371 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22372 else
22373 allow_undefined_flag_F77=' -expect_unresolved \*'
22374 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 +000022375 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 +000022376 $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 +000022377
John Criswell47fdd832003-07-14 16:52:07 +000022378 # Both c and cxx compiler support -rpath directly
22379 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22380 fi
22381 hardcode_libdir_separator_F77=:
22382 ;;
22383
John Criswell47fdd832003-07-14 16:52:07 +000022384 solaris*)
22385 no_undefined_flag_F77=' -z text'
22386 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022387 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022388 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022389 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22390 $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 +000022391 else
Reid Spencera773bd52006-08-04 18:18:08 +000022392 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022393 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022394 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22395 $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 +000022396 fi
22397 hardcode_libdir_flag_spec_F77='-R$libdir'
22398 hardcode_shlibpath_var_F77=no
22399 case $host_os in
22400 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022401 *)
22402 # The compiler driver will combine linker options so we
22403 # cannot just pass the convience library names through
22404 # without $wl, iff we do not link with $LD.
22405 # Luckily, gcc supports the same syntax we need for Sun Studio.
22406 # Supported since Solaris 2.6 (maybe 2.5.1?)
22407 case $wlarc in
22408 '')
22409 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22410 *)
22411 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' ;;
22412 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022413 esac
22414 link_all_deplibs_F77=yes
22415 ;;
22416
22417 sunos4*)
22418 if test "x$host_vendor" = xsequent; then
22419 # Use $CC to link under sequent, because it throws in some extra .o
22420 # files that make .init and .fini sections work.
22421 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22422 else
22423 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22424 fi
22425 hardcode_libdir_flag_spec_F77='-L$libdir'
22426 hardcode_direct_F77=yes
22427 hardcode_minus_L_F77=yes
22428 hardcode_shlibpath_var_F77=no
22429 ;;
22430
22431 sysv4)
22432 case $host_vendor in
22433 sni)
22434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22435 hardcode_direct_F77=yes # is this really true???
22436 ;;
22437 siemens)
22438 ## LD is ld it makes a PLAMLIB
22439 ## CC just makes a GrossModule.
22440 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22441 reload_cmds_F77='$CC -r -o $output$reload_objs'
22442 hardcode_direct_F77=no
22443 ;;
22444 motorola)
22445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22446 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22447 ;;
22448 esac
22449 runpath_var='LD_RUN_PATH'
22450 hardcode_shlibpath_var_F77=no
22451 ;;
22452
22453 sysv4.3*)
22454 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22455 hardcode_shlibpath_var_F77=no
22456 export_dynamic_flag_spec_F77='-Bexport'
22457 ;;
22458
22459 sysv4*MP*)
22460 if test -d /usr/nec; then
22461 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22462 hardcode_shlibpath_var_F77=no
22463 runpath_var=LD_RUN_PATH
22464 hardcode_runpath_var=yes
22465 ld_shlibs_F77=yes
22466 fi
22467 ;;
22468
Reid Spencera773bd52006-08-04 18:18:08 +000022469 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22470 no_undefined_flag_F77='${wl}-z,text'
22471 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022472 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022473 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022474
John Criswell47fdd832003-07-14 16:52:07 +000022475 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022476 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22477 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 +000022478 else
Reid Spencera773bd52006-08-04 18:18:08 +000022479 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22480 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 +000022481 fi
John Criswell47fdd832003-07-14 16:52:07 +000022482 ;;
22483
Reid Spencera773bd52006-08-04 18:18:08 +000022484 sysv5* | sco3.2v5* | sco5v6*)
22485 # Note: We can NOT use -z defs as we might desire, because we do not
22486 # link with -lc, and that would cause any symbols used from libc to
22487 # always be unresolved, which means just about no library would
22488 # ever link correctly. If we're not using GNU ld we use -z text
22489 # though, which does catch some bad symbols but isn't as heavy-handed
22490 # as -z defs.
22491 no_undefined_flag_F77='${wl}-z,text'
22492 allow_undefined_flag_F77='${wl}-z,nodefs'
22493 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022494 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022495 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22496 hardcode_libdir_separator_F77=':'
22497 link_all_deplibs_F77=yes
22498 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022499 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022500
22501 if test "$GCC" = yes; then
22502 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22503 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22504 else
22505 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22506 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22507 fi
John Criswell47fdd832003-07-14 16:52:07 +000022508 ;;
22509
22510 uts4*)
22511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22512 hardcode_libdir_flag_spec_F77='-L$libdir'
22513 hardcode_shlibpath_var_F77=no
22514 ;;
22515
22516 *)
22517 ld_shlibs_F77=no
22518 ;;
22519 esac
22520 fi
22521
Reid Spencera773bd52006-08-04 18:18:08 +000022522{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22523echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022524test "$ld_shlibs_F77" = no && can_build_shared=no
22525
John Criswell47fdd832003-07-14 16:52:07 +000022526#
22527# Do we need to explicitly link libc?
22528#
22529case "x$archive_cmds_need_lc_F77" in
22530x|xyes)
22531 # Assume -lc should be added
22532 archive_cmds_need_lc_F77=yes
22533
22534 if test "$enable_shared" = yes && test "$GCC" = yes; then
22535 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022536 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022537 # FIXME: we may have to deal with multi-command sequences.
22538 ;;
22539 '$CC '*)
22540 # Test whether the compiler implicitly links with -lc since on some
22541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22542 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022543 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22544echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022545 $rm conftest*
22546 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22547
22548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22549 (eval $ac_compile) 2>&5
22550 ac_status=$?
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } 2>conftest.err; then
22553 soname=conftest
22554 lib=conftest
22555 libobjs=conftest.$ac_objext
22556 deplibs=
22557 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022558 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022559 compiler_flags=-v
22560 linker_flags=-v
22561 verstring=
22562 output_objdir=.
22563 libname=conftest
22564 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22565 allow_undefined_flag_F77=
22566 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22567 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22568 ac_status=$?
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); }
22571 then
22572 archive_cmds_need_lc_F77=no
22573 else
22574 archive_cmds_need_lc_F77=yes
22575 fi
22576 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22577 else
22578 cat conftest.err 1>&5
22579 fi
22580 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022581 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22582echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022583 ;;
22584 esac
22585 fi
22586 ;;
22587esac
22588
Reid Spencera773bd52006-08-04 18:18:08 +000022589{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22590echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022591library_names_spec=
22592libname_spec='lib$name'
22593soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022594shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022595postinstall_cmds=
22596postuninstall_cmds=
22597finish_cmds=
22598finish_eval=
22599shlibpath_var=
22600shlibpath_overrides_runpath=unknown
22601version_type=none
22602dynamic_linker="$host_os ld.so"
22603sys_lib_dlsearch_path_spec="/lib /usr/lib"
22604if test "$GCC" = yes; then
22605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22606 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22607 # if the path contains ";" then we assume it to be the separator
22608 # otherwise default to the standard path separator (i.e. ":") - it is
22609 # assumed that no part of a normal pathname contains ";" but that should
22610 # okay in the real world where ";" in dirpaths is itself problematic.
22611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22612 else
22613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22614 fi
22615else
22616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22617fi
22618need_lib_prefix=unknown
22619hardcode_into_libs=no
22620
22621# when you set need_version to no, make sure it does not cause -set_version
22622# flags to be left without arguments
22623need_version=unknown
22624
22625case $host_os in
22626aix3*)
22627 version_type=linux
22628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22629 shlibpath_var=LIBPATH
22630
22631 # AIX 3 has no versioning support, so we append a major version to the name.
22632 soname_spec='${libname}${release}${shared_ext}$major'
22633 ;;
22634
22635aix4* | aix5*)
22636 version_type=linux
22637 need_lib_prefix=no
22638 need_version=no
22639 hardcode_into_libs=yes
22640 if test "$host_cpu" = ia64; then
22641 # AIX 5 supports IA64
22642 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22643 shlibpath_var=LD_LIBRARY_PATH
22644 else
22645 # With GCC up to 2.95.x, collect2 would create an import file
22646 # for dependence libraries. The import file would start with
22647 # the line `#! .'. This would cause the generated library to
22648 # depend on `.', always an invalid library. This was fixed in
22649 # development snapshots of GCC prior to 3.0.
22650 case $host_os in
22651 aix4 | aix4.[01] | aix4.[01].*)
22652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22653 echo ' yes '
22654 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22655 :
22656 else
22657 can_build_shared=no
22658 fi
22659 ;;
22660 esac
22661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22662 # soname into executable. Probably we can add versioning support to
22663 # collect2, so additional links can be useful in future.
22664 if test "$aix_use_runtimelinking" = yes; then
22665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22666 # instead of lib<name>.a to let people know that these are not
22667 # typical AIX shared libraries.
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22669 else
22670 # We preserve .a as extension for shared libraries through AIX4.2
22671 # and later when we are not doing run time linking.
22672 library_names_spec='${libname}${release}.a $libname.a'
22673 soname_spec='${libname}${release}${shared_ext}$major'
22674 fi
22675 shlibpath_var=LIBPATH
22676 fi
22677 ;;
22678
22679amigaos*)
22680 library_names_spec='$libname.ixlibrary $libname.a'
22681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022682 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 +000022683 ;;
22684
22685beos*)
22686 library_names_spec='${libname}${shared_ext}'
22687 dynamic_linker="$host_os ld.so"
22688 shlibpath_var=LIBRARY_PATH
22689 ;;
22690
Reid Spencer2706f8c2004-09-19 23:53:36 +000022691bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022692 version_type=linux
22693 need_version=no
22694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22695 soname_spec='${libname}${release}${shared_ext}$major'
22696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22697 shlibpath_var=LD_LIBRARY_PATH
22698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22700 # the default ld.so.conf also contains /usr/contrib/lib and
22701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22702 # libtool to hard-code these into programs
22703 ;;
22704
22705cygwin* | mingw* | pw32*)
22706 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022707 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022708 need_version=no
22709 need_lib_prefix=no
22710
22711 case $GCC,$host_os in
22712 yes,cygwin* | yes,mingw* | yes,pw32*)
22713 library_names_spec='$libname.dll.a'
22714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022715 postinstall_cmds='base_file=`basename \${file}`~
22716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22717 dldir=$destdir/`dirname \$dlpath`~
22718 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022719 $install_prog $dir/$dlname \$dldir/$dlname~
22720 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022721 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22722 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022723 $rm \$dlpath'
22724 shlibpath_overrides_runpath=yes
22725
22726 case $host_os in
22727 cygwin*)
22728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22729 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 +000022730 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022731 ;;
22732 mingw*)
22733 # MinGW DLLs use traditional 'lib' prefix
22734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22735 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22736 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22737 # It is most probably a Windows format PATH printed by
22738 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22739 # path with ; separators, and with drive letters. We can handle the
22740 # drive letters (cygwin fileutils understands them), so leave them,
22741 # especially as we might pass files found there to a mingw objdump,
22742 # which wouldn't understand a cygwinified path. Ahh.
22743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22744 else
22745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22746 fi
22747 ;;
22748 pw32*)
22749 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022750 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 +000022751 ;;
22752 esac
22753 ;;
22754
22755 *)
22756 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22757 ;;
22758 esac
22759 dynamic_linker='Win32 ld.exe'
22760 # FIXME: first we should search . and the directory the executable is in
22761 shlibpath_var=PATH
22762 ;;
22763
22764darwin* | rhapsody*)
22765 dynamic_linker="$host_os dyld"
22766 version_type=darwin
22767 need_lib_prefix=no
22768 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022769 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022770 soname_spec='${libname}${release}${major}$shared_ext'
22771 shlibpath_overrides_runpath=yes
22772 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022773 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022774 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022775 if test "$GCC" = yes; then
22776 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"`
22777 else
22778 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022779 fi
22780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22781 ;;
22782
22783dgux*)
22784 version_type=linux
22785 need_lib_prefix=no
22786 need_version=no
22787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22788 soname_spec='${libname}${release}${shared_ext}$major'
22789 shlibpath_var=LD_LIBRARY_PATH
22790 ;;
22791
22792freebsd1*)
22793 dynamic_linker=no
22794 ;;
22795
Reid Spencer2706f8c2004-09-19 23:53:36 +000022796kfreebsd*-gnu)
22797 version_type=linux
22798 need_lib_prefix=no
22799 need_version=no
22800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22801 soname_spec='${libname}${release}${shared_ext}$major'
22802 shlibpath_var=LD_LIBRARY_PATH
22803 shlibpath_overrides_runpath=no
22804 hardcode_into_libs=yes
22805 dynamic_linker='GNU ld.so'
22806 ;;
22807
Reid Spencera773bd52006-08-04 18:18:08 +000022808freebsd* | dragonfly*)
22809 # DragonFly does not have aout. When/if they implement a new
22810 # versioning mechanism, adjust this.
22811 if test -x /usr/bin/objformat; then
22812 objformat=`/usr/bin/objformat`
22813 else
22814 case $host_os in
22815 freebsd[123]*) objformat=aout ;;
22816 *) objformat=elf ;;
22817 esac
22818 fi
John Criswell47fdd832003-07-14 16:52:07 +000022819 version_type=freebsd-$objformat
22820 case $version_type in
22821 freebsd-elf*)
22822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22823 need_version=no
22824 need_lib_prefix=no
22825 ;;
22826 freebsd-*)
22827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22828 need_version=yes
22829 ;;
22830 esac
22831 shlibpath_var=LD_LIBRARY_PATH
22832 case $host_os in
22833 freebsd2*)
22834 shlibpath_overrides_runpath=yes
22835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022836 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022837 shlibpath_overrides_runpath=yes
22838 hardcode_into_libs=yes
22839 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022840 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22841 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022842 shlibpath_overrides_runpath=no
22843 hardcode_into_libs=yes
22844 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022845 freebsd*) # from 4.6 on
22846 shlibpath_overrides_runpath=yes
22847 hardcode_into_libs=yes
22848 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022849 esac
22850 ;;
22851
22852gnu*)
22853 version_type=linux
22854 need_lib_prefix=no
22855 need_version=no
22856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22857 soname_spec='${libname}${release}${shared_ext}$major'
22858 shlibpath_var=LD_LIBRARY_PATH
22859 hardcode_into_libs=yes
22860 ;;
22861
22862hpux9* | hpux10* | hpux11*)
22863 # Give a soname corresponding to the major version so that dld.sl refuses to
22864 # link against other versions.
22865 version_type=sunos
22866 need_lib_prefix=no
22867 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022868 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022869 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022870 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022871 hardcode_into_libs=yes
22872 dynamic_linker="$host_os dld.so"
22873 shlibpath_var=LD_LIBRARY_PATH
22874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22876 soname_spec='${libname}${release}${shared_ext}$major'
22877 if test "X$HPUX_IA64_MODE" = X32; then
22878 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22879 else
22880 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22881 fi
22882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22883 ;;
22884 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022885 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022886 hardcode_into_libs=yes
22887 dynamic_linker="$host_os dld.sl"
22888 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22889 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22891 soname_spec='${libname}${release}${shared_ext}$major'
22892 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22893 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22894 ;;
22895 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022896 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022897 dynamic_linker="$host_os dld.sl"
22898 shlibpath_var=SHLIB_PATH
22899 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22901 soname_spec='${libname}${release}${shared_ext}$major'
22902 ;;
22903 esac
22904 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22905 postinstall_cmds='chmod 555 $lib'
22906 ;;
22907
Reid Spencera773bd52006-08-04 18:18:08 +000022908interix3*)
22909 version_type=linux
22910 need_lib_prefix=no
22911 need_version=no
22912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22913 soname_spec='${libname}${release}${shared_ext}$major'
22914 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22915 shlibpath_var=LD_LIBRARY_PATH
22916 shlibpath_overrides_runpath=no
22917 hardcode_into_libs=yes
22918 ;;
22919
John Criswell47fdd832003-07-14 16:52:07 +000022920irix5* | irix6* | nonstopux*)
22921 case $host_os in
22922 nonstopux*) version_type=nonstopux ;;
22923 *)
22924 if test "$lt_cv_prog_gnu_ld" = yes; then
22925 version_type=linux
22926 else
22927 version_type=irix
22928 fi ;;
22929 esac
22930 need_lib_prefix=no
22931 need_version=no
22932 soname_spec='${libname}${release}${shared_ext}$major'
22933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22934 case $host_os in
22935 irix5* | nonstopux*)
22936 libsuff= shlibsuff=
22937 ;;
22938 *)
22939 case $LD in # libtool.m4 will add one of these switches to LD
22940 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22941 libsuff= shlibsuff= libmagic=32-bit;;
22942 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22943 libsuff=32 shlibsuff=N32 libmagic=N32;;
22944 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22945 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22946 *) libsuff= shlibsuff= libmagic=never-match;;
22947 esac
22948 ;;
22949 esac
22950 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22951 shlibpath_overrides_runpath=no
22952 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22953 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22954 hardcode_into_libs=yes
22955 ;;
22956
22957# No shared lib support for Linux oldld, aout, or coff.
22958linux*oldld* | linux*aout* | linux*coff*)
22959 dynamic_linker=no
22960 ;;
22961
22962# This must be Linux ELF.
22963linux*)
22964 version_type=linux
22965 need_lib_prefix=no
22966 need_version=no
22967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22968 soname_spec='${libname}${release}${shared_ext}$major'
22969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22970 shlibpath_var=LD_LIBRARY_PATH
22971 shlibpath_overrides_runpath=no
22972 # This implies no fast_install, which is unacceptable.
22973 # Some rework will be needed to allow for fast_install
22974 # before this can be enabled.
22975 hardcode_into_libs=yes
22976
Reid Spencer2706f8c2004-09-19 23:53:36 +000022977 # Append ld.so.conf contents to the search path
22978 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022979 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 +000022980 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22981 fi
22982
John Criswell47fdd832003-07-14 16:52:07 +000022983 # We used to test for /lib/ld.so.1 and disable shared libraries on
22984 # powerpc, because MkLinux only supported shared libraries with the
22985 # GNU dynamic linker. Since this was broken with cross compilers,
22986 # most powerpc-linux boxes support dynamic linking these days and
22987 # people can always --disable-shared, the test was removed, and we
22988 # assume the GNU/Linux dynamic linker is in use.
22989 dynamic_linker='GNU/Linux ld.so'
22990 ;;
22991
Reid Spencer2706f8c2004-09-19 23:53:36 +000022992knetbsd*-gnu)
22993 version_type=linux
22994 need_lib_prefix=no
22995 need_version=no
22996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22997 soname_spec='${libname}${release}${shared_ext}$major'
22998 shlibpath_var=LD_LIBRARY_PATH
22999 shlibpath_overrides_runpath=no
23000 hardcode_into_libs=yes
23001 dynamic_linker='GNU ld.so'
23002 ;;
23003
John Criswell47fdd832003-07-14 16:52:07 +000023004netbsd*)
23005 version_type=sunos
23006 need_lib_prefix=no
23007 need_version=no
23008 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23011 dynamic_linker='NetBSD (a.out) ld.so'
23012 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023014 soname_spec='${libname}${release}${shared_ext}$major'
23015 dynamic_linker='NetBSD ld.elf_so'
23016 fi
23017 shlibpath_var=LD_LIBRARY_PATH
23018 shlibpath_overrides_runpath=yes
23019 hardcode_into_libs=yes
23020 ;;
23021
23022newsos6)
23023 version_type=linux
23024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23025 shlibpath_var=LD_LIBRARY_PATH
23026 shlibpath_overrides_runpath=yes
23027 ;;
23028
Reid Spencer2706f8c2004-09-19 23:53:36 +000023029nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023030 version_type=linux
23031 need_lib_prefix=no
23032 need_version=no
23033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23034 soname_spec='${libname}${release}${shared_ext}$major'
23035 shlibpath_var=LD_LIBRARY_PATH
23036 shlibpath_overrides_runpath=yes
23037 ;;
23038
23039openbsd*)
23040 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023041 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023042 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023043 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23044 case $host_os in
23045 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23046 *) need_version=no ;;
23047 esac
John Criswell47fdd832003-07-14 16:52:07 +000023048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23050 shlibpath_var=LD_LIBRARY_PATH
23051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23052 case $host_os in
23053 openbsd2.[89] | openbsd2.[89].*)
23054 shlibpath_overrides_runpath=no
23055 ;;
23056 *)
23057 shlibpath_overrides_runpath=yes
23058 ;;
23059 esac
23060 else
23061 shlibpath_overrides_runpath=yes
23062 fi
23063 ;;
23064
23065os2*)
23066 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023067 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023068 need_lib_prefix=no
23069 library_names_spec='$libname${shared_ext} $libname.a'
23070 dynamic_linker='OS/2 ld.exe'
23071 shlibpath_var=LIBPATH
23072 ;;
23073
23074osf3* | osf4* | osf5*)
23075 version_type=osf
23076 need_lib_prefix=no
23077 need_version=no
23078 soname_spec='${libname}${release}${shared_ext}$major'
23079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23080 shlibpath_var=LD_LIBRARY_PATH
23081 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23082 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23083 ;;
23084
John Criswell47fdd832003-07-14 16:52:07 +000023085solaris*)
23086 version_type=linux
23087 need_lib_prefix=no
23088 need_version=no
23089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23090 soname_spec='${libname}${release}${shared_ext}$major'
23091 shlibpath_var=LD_LIBRARY_PATH
23092 shlibpath_overrides_runpath=yes
23093 hardcode_into_libs=yes
23094 # ldd complains unless libraries are executable
23095 postinstall_cmds='chmod +x $lib'
23096 ;;
23097
23098sunos4*)
23099 version_type=sunos
23100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23101 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23102 shlibpath_var=LD_LIBRARY_PATH
23103 shlibpath_overrides_runpath=yes
23104 if test "$with_gnu_ld" = yes; then
23105 need_lib_prefix=no
23106 fi
23107 need_version=yes
23108 ;;
23109
Reid Spencera773bd52006-08-04 18:18:08 +000023110sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023111 version_type=linux
23112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23113 soname_spec='${libname}${release}${shared_ext}$major'
23114 shlibpath_var=LD_LIBRARY_PATH
23115 case $host_vendor in
23116 sni)
23117 shlibpath_overrides_runpath=no
23118 need_lib_prefix=no
23119 export_dynamic_flag_spec='${wl}-Blargedynsym'
23120 runpath_var=LD_RUN_PATH
23121 ;;
23122 siemens)
23123 need_lib_prefix=no
23124 ;;
23125 motorola)
23126 need_lib_prefix=no
23127 need_version=no
23128 shlibpath_overrides_runpath=no
23129 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23130 ;;
23131 esac
23132 ;;
23133
23134sysv4*MP*)
23135 if test -d /usr/nec ;then
23136 version_type=linux
23137 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23138 soname_spec='$libname${shared_ext}.$major'
23139 shlibpath_var=LD_LIBRARY_PATH
23140 fi
23141 ;;
23142
Reid Spencera773bd52006-08-04 18:18:08 +000023143sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23144 version_type=freebsd-elf
23145 need_lib_prefix=no
23146 need_version=no
23147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23148 soname_spec='${libname}${release}${shared_ext}$major'
23149 shlibpath_var=LD_LIBRARY_PATH
23150 hardcode_into_libs=yes
23151 if test "$with_gnu_ld" = yes; then
23152 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23153 shlibpath_overrides_runpath=no
23154 else
23155 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23156 shlibpath_overrides_runpath=yes
23157 case $host_os in
23158 sco3.2v5*)
23159 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23160 ;;
23161 esac
23162 fi
23163 sys_lib_dlsearch_path_spec='/usr/lib'
23164 ;;
23165
John Criswell47fdd832003-07-14 16:52:07 +000023166uts4*)
23167 version_type=linux
23168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23169 soname_spec='${libname}${release}${shared_ext}$major'
23170 shlibpath_var=LD_LIBRARY_PATH
23171 ;;
23172
23173*)
23174 dynamic_linker=no
23175 ;;
23176esac
Reid Spencera773bd52006-08-04 18:18:08 +000023177{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23178echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023179test "$dynamic_linker" = no && can_build_shared=no
23180
Reid Spencera773bd52006-08-04 18:18:08 +000023181variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23182if test "$GCC" = yes; then
23183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23184fi
23185
23186{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23187echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023188hardcode_action_F77=
23189if test -n "$hardcode_libdir_flag_spec_F77" || \
23190 test -n "$runpath_var_F77" || \
23191 test "X$hardcode_automatic_F77" = "Xyes" ; then
23192
23193 # We can hardcode non-existant directories.
23194 if test "$hardcode_direct_F77" != no &&
23195 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23196 # have to relink, otherwise we might link with an installed library
23197 # when we should be linking with a yet-to-be-installed one
23198 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23199 test "$hardcode_minus_L_F77" != no; then
23200 # Linking always hardcodes the temporary library directory.
23201 hardcode_action_F77=relink
23202 else
23203 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23204 hardcode_action_F77=immediate
23205 fi
23206else
23207 # We cannot hardcode anything, or else we can only hardcode existing
23208 # directories.
23209 hardcode_action_F77=unsupported
23210fi
Reid Spencera773bd52006-08-04 18:18:08 +000023211{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23212echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023213
23214if test "$hardcode_action_F77" = relink; then
23215 # Fast installation is not supported
23216 enable_fast_install=no
23217elif test "$shlibpath_overrides_runpath" = yes ||
23218 test "$enable_shared" = no; then
23219 # Fast installation is not necessary
23220 enable_fast_install=needless
23221fi
23222
John Criswell47fdd832003-07-14 16:52:07 +000023223
23224# The else clause should only fire when bootstrapping the
23225# libtool distribution, otherwise you forgot to ship ltmain.sh
23226# with your package, and you will get complaints that there are
23227# no rules to generate ltmain.sh.
23228if test -f "$ltmain"; then
23229 # See if we are running on zsh, and set the options which allow our commands through
23230 # without removal of \ escapes.
23231 if test -n "${ZSH_VERSION+set}" ; then
23232 setopt NO_GLOB_SUBST
23233 fi
23234 # Now quote all the things that may contain metacharacters while being
23235 # careful not to overquote the AC_SUBSTed values. We take copies of the
23236 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023237 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 +000023238 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023239 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23240 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23241 deplibs_check_method reload_flag reload_cmds need_locks \
23242 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23243 lt_cv_sys_global_symbol_to_c_name_address \
23244 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23245 old_postinstall_cmds old_postuninstall_cmds \
23246 compiler_F77 \
23247 CC_F77 \
23248 LD_F77 \
23249 lt_prog_compiler_wl_F77 \
23250 lt_prog_compiler_pic_F77 \
23251 lt_prog_compiler_static_F77 \
23252 lt_prog_compiler_no_builtin_flag_F77 \
23253 export_dynamic_flag_spec_F77 \
23254 thread_safe_flag_spec_F77 \
23255 whole_archive_flag_spec_F77 \
23256 enable_shared_with_static_runtimes_F77 \
23257 old_archive_cmds_F77 \
23258 old_archive_from_new_cmds_F77 \
23259 predep_objects_F77 \
23260 postdep_objects_F77 \
23261 predeps_F77 \
23262 postdeps_F77 \
23263 compiler_lib_search_path_F77 \
23264 archive_cmds_F77 \
23265 archive_expsym_cmds_F77 \
23266 postinstall_cmds_F77 \
23267 postuninstall_cmds_F77 \
23268 old_archive_from_expsyms_cmds_F77 \
23269 allow_undefined_flag_F77 \
23270 no_undefined_flag_F77 \
23271 export_symbols_cmds_F77 \
23272 hardcode_libdir_flag_spec_F77 \
23273 hardcode_libdir_flag_spec_ld_F77 \
23274 hardcode_libdir_separator_F77 \
23275 hardcode_automatic_F77 \
23276 module_cmds_F77 \
23277 module_expsym_cmds_F77 \
23278 lt_cv_prog_compiler_c_o_F77 \
23279 exclude_expsyms_F77 \
23280 include_expsyms_F77; do
23281
23282 case $var in
23283 old_archive_cmds_F77 | \
23284 old_archive_from_new_cmds_F77 | \
23285 archive_cmds_F77 | \
23286 archive_expsym_cmds_F77 | \
23287 module_cmds_F77 | \
23288 module_expsym_cmds_F77 | \
23289 old_archive_from_expsyms_cmds_F77 | \
23290 export_symbols_cmds_F77 | \
23291 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23292 postinstall_cmds | postuninstall_cmds | \
23293 old_postinstall_cmds | old_postuninstall_cmds | \
23294 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23295 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023296 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 +000023297 ;;
23298 *)
23299 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23300 ;;
23301 esac
23302 done
23303
23304 case $lt_echo in
23305 *'\$0 --fallback-echo"')
23306 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23307 ;;
23308 esac
23309
23310cfgfile="$ofile"
23311
23312 cat <<__EOF__ >> "$cfgfile"
23313# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23314
23315# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23316
23317# Shell to use when invoking shell scripts.
23318SHELL=$lt_SHELL
23319
23320# Whether or not to build shared libraries.
23321build_libtool_libs=$enable_shared
23322
23323# Whether or not to build static libraries.
23324build_old_libs=$enable_static
23325
23326# Whether or not to add -lc for building shared libraries.
23327build_libtool_need_lc=$archive_cmds_need_lc_F77
23328
23329# Whether or not to disallow shared libs when runtime libs are static
23330allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23331
23332# Whether or not to optimize for fast installation.
23333fast_install=$enable_fast_install
23334
23335# The host system.
23336host_alias=$host_alias
23337host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023338host_os=$host_os
23339
23340# The build system.
23341build_alias=$build_alias
23342build=$build
23343build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023344
23345# An echo program that does not interpret backslashes.
23346echo=$lt_echo
23347
23348# The archiver.
23349AR=$lt_AR
23350AR_FLAGS=$lt_AR_FLAGS
23351
23352# A C compiler.
23353LTCC=$lt_LTCC
23354
Reid Spencera773bd52006-08-04 18:18:08 +000023355# LTCC compiler flags.
23356LTCFLAGS=$lt_LTCFLAGS
23357
John Criswell47fdd832003-07-14 16:52:07 +000023358# A language-specific compiler.
23359CC=$lt_compiler_F77
23360
23361# Is the compiler the GNU C compiler?
23362with_gcc=$GCC_F77
23363
23364# An ERE matcher.
23365EGREP=$lt_EGREP
23366
23367# The linker used to build libraries.
23368LD=$lt_LD_F77
23369
23370# Whether we need hard or soft links.
23371LN_S=$lt_LN_S
23372
23373# A BSD-compatible nm program.
23374NM=$lt_NM
23375
23376# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023377STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023378
23379# Used to examine libraries when file_magic_cmd begins "file"
23380MAGIC_CMD=$MAGIC_CMD
23381
23382# Used on cygwin: DLL creation program.
23383DLLTOOL="$DLLTOOL"
23384
23385# Used on cygwin: object dumper.
23386OBJDUMP="$OBJDUMP"
23387
23388# Used on cygwin: assembler.
23389AS="$AS"
23390
23391# The name of the directory that contains temporary libtool files.
23392objdir=$objdir
23393
23394# How to create reloadable object files.
23395reload_flag=$lt_reload_flag
23396reload_cmds=$lt_reload_cmds
23397
23398# How to pass a linker flag through the compiler.
23399wl=$lt_lt_prog_compiler_wl_F77
23400
23401# Object file suffix (normally "o").
23402objext="$ac_objext"
23403
23404# Old archive suffix (normally "a").
23405libext="$libext"
23406
23407# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023408shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023409
23410# Executable file suffix (normally "").
23411exeext="$exeext"
23412
23413# Additional compiler flags for building library objects.
23414pic_flag=$lt_lt_prog_compiler_pic_F77
23415pic_mode=$pic_mode
23416
23417# What is the maximum length of a command?
23418max_cmd_len=$lt_cv_sys_max_cmd_len
23419
23420# Does compiler simultaneously support -c and -o options?
23421compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23422
Reid Spencera773bd52006-08-04 18:18:08 +000023423# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023424need_locks=$lt_need_locks
23425
23426# Do we need the lib prefix for modules?
23427need_lib_prefix=$need_lib_prefix
23428
23429# Do we need a version for libraries?
23430need_version=$need_version
23431
23432# Whether dlopen is supported.
23433dlopen_support=$enable_dlopen
23434
23435# Whether dlopen of programs is supported.
23436dlopen_self=$enable_dlopen_self
23437
23438# Whether dlopen of statically linked programs is supported.
23439dlopen_self_static=$enable_dlopen_self_static
23440
23441# Compiler flag to prevent dynamic linking.
23442link_static_flag=$lt_lt_prog_compiler_static_F77
23443
23444# Compiler flag to turn off builtin functions.
23445no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23446
23447# Compiler flag to allow reflexive dlopens.
23448export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23449
23450# Compiler flag to generate shared objects directly from archives.
23451whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23452
23453# Compiler flag to generate thread-safe objects.
23454thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23455
23456# Library versioning type.
23457version_type=$version_type
23458
23459# Format of library name prefix.
23460libname_spec=$lt_libname_spec
23461
23462# List of archive names. First name is the real one, the rest are links.
23463# The last name is the one that the linker finds with -lNAME.
23464library_names_spec=$lt_library_names_spec
23465
23466# The coded name of the library, if different from the real name.
23467soname_spec=$lt_soname_spec
23468
23469# Commands used to build and install an old-style archive.
23470RANLIB=$lt_RANLIB
23471old_archive_cmds=$lt_old_archive_cmds_F77
23472old_postinstall_cmds=$lt_old_postinstall_cmds
23473old_postuninstall_cmds=$lt_old_postuninstall_cmds
23474
23475# Create an old-style archive from a shared archive.
23476old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23477
23478# Create a temporary old-style archive to link instead of a shared archive.
23479old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23480
23481# Commands used to build and install a shared archive.
23482archive_cmds=$lt_archive_cmds_F77
23483archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23484postinstall_cmds=$lt_postinstall_cmds
23485postuninstall_cmds=$lt_postuninstall_cmds
23486
23487# Commands used to build a loadable module (assumed same as above if empty)
23488module_cmds=$lt_module_cmds_F77
23489module_expsym_cmds=$lt_module_expsym_cmds_F77
23490
23491# Commands to strip libraries.
23492old_striplib=$lt_old_striplib
23493striplib=$lt_striplib
23494
23495# Dependencies to place before the objects being linked to create a
23496# shared library.
23497predep_objects=$lt_predep_objects_F77
23498
23499# Dependencies to place after the objects being linked to create a
23500# shared library.
23501postdep_objects=$lt_postdep_objects_F77
23502
23503# Dependencies to place before the objects being linked to create a
23504# shared library.
23505predeps=$lt_predeps_F77
23506
23507# Dependencies to place after the objects being linked to create a
23508# shared library.
23509postdeps=$lt_postdeps_F77
23510
23511# The library search path used internally by the compiler when linking
23512# a shared library.
23513compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23514
23515# Method to check whether dependent libraries are shared objects.
23516deplibs_check_method=$lt_deplibs_check_method
23517
23518# Command to use when deplibs_check_method == file_magic.
23519file_magic_cmd=$lt_file_magic_cmd
23520
23521# Flag that allows shared libraries with undefined symbols to be built.
23522allow_undefined_flag=$lt_allow_undefined_flag_F77
23523
23524# Flag that forces no undefined symbols.
23525no_undefined_flag=$lt_no_undefined_flag_F77
23526
23527# Commands used to finish a libtool library installation in a directory.
23528finish_cmds=$lt_finish_cmds
23529
23530# Same as above, but a single script fragment to be evaled but not shown.
23531finish_eval=$lt_finish_eval
23532
23533# Take the output of nm and produce a listing of raw symbols and C names.
23534global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23535
23536# Transform the output of nm in a proper C declaration
23537global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23538
23539# Transform the output of nm in a C name address pair
23540global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23541
23542# This is the shared library runtime path variable.
23543runpath_var=$runpath_var
23544
23545# This is the shared library path variable.
23546shlibpath_var=$shlibpath_var
23547
23548# Is shlibpath searched before the hard-coded library search path?
23549shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23550
23551# How to hardcode a shared library path into an executable.
23552hardcode_action=$hardcode_action_F77
23553
23554# Whether we should hardcode library paths into libraries.
23555hardcode_into_libs=$hardcode_into_libs
23556
23557# Flag to hardcode \$libdir into a binary during linking.
23558# This must work even if \$libdir does not exist.
23559hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23560
23561# If ld is used when linking, flag to hardcode \$libdir into
23562# a binary during linking. This must work even if \$libdir does
23563# not exist.
23564hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23565
23566# Whether we need a single -rpath flag with a separated argument.
23567hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23568
23569# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23570# resulting binary.
23571hardcode_direct=$hardcode_direct_F77
23572
23573# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23574# resulting binary.
23575hardcode_minus_L=$hardcode_minus_L_F77
23576
23577# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23578# the resulting binary.
23579hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23580
23581# Set to yes if building a shared library automatically hardcodes DIR into the library
23582# and all subsequent libraries and executables linked against it.
23583hardcode_automatic=$hardcode_automatic_F77
23584
23585# Variables whose values should be saved in libtool wrapper scripts and
23586# restored at relink time.
23587variables_saved_for_relink="$variables_saved_for_relink"
23588
23589# Whether libtool must link a program against all its dependency libraries.
23590link_all_deplibs=$link_all_deplibs_F77
23591
23592# Compile-time system search path for libraries
23593sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23594
23595# Run-time system search path for libraries
23596sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23597
23598# Fix the shell variable \$srcfile for the compiler.
23599fix_srcfile_path="$fix_srcfile_path_F77"
23600
23601# Set to yes if exported symbols are required.
23602always_export_symbols=$always_export_symbols_F77
23603
23604# The commands to list exported symbols.
23605export_symbols_cmds=$lt_export_symbols_cmds_F77
23606
23607# The commands to extract the exported symbol list from a shared archive.
23608extract_expsyms_cmds=$lt_extract_expsyms_cmds
23609
23610# Symbols that should not be listed in the preloaded symbols.
23611exclude_expsyms=$lt_exclude_expsyms_F77
23612
23613# Symbols that must always be exported.
23614include_expsyms=$lt_include_expsyms_F77
23615
23616# ### END LIBTOOL TAG CONFIG: $tagname
23617
23618__EOF__
23619
23620
23621else
23622 # If there is no Makefile yet, we rely on a make rule to execute
23623 # `config.status --recheck' to rerun these tests and create the
23624 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023625 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23626 if test -f "$ltmain_in"; then
23627 test -f Makefile && make "$ltmain"
23628 fi
John Criswell47fdd832003-07-14 16:52:07 +000023629fi
23630
23631
23632ac_ext=c
23633ac_cpp='$CPP $CPPFLAGS'
23634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23636ac_compiler_gnu=$ac_cv_c_compiler_gnu
23637
23638CC="$lt_save_CC"
23639
23640 else
23641 tagname=""
23642 fi
23643 ;;
23644
23645 GCJ)
23646 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023647 ac_ext=c
23648ac_cpp='$CPP $CPPFLAGS'
23649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23651ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023652
23653
23654# Source file extension for Java test sources.
23655ac_ext=java
23656
23657# Object file extension for compiled Java test sources.
23658objext=o
23659objext_GCJ=$objext
23660
23661# Code to be used in simple compile tests
23662lt_simple_compile_test_code="class foo {}\n"
23663
23664# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023665lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023666
23667# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23668
23669# If no C compiler was specified, use CC.
23670LTCC=${LTCC-"$CC"}
23671
Reid Spencera773bd52006-08-04 18:18:08 +000023672# If no C compiler flags were specified, use CFLAGS.
23673LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23674
John Criswell47fdd832003-07-14 16:52:07 +000023675# Allow CC to be a program name with arguments.
23676compiler=$CC
23677
23678
Reid Spencera773bd52006-08-04 18:18:08 +000023679# save warnings/boilerplate of simple test code
23680ac_outfile=conftest.$ac_objext
23681printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23682eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23683_lt_compiler_boilerplate=`cat conftest.err`
23684$rm conftest*
23685
23686ac_outfile=conftest.$ac_objext
23687printf "$lt_simple_link_test_code" >conftest.$ac_ext
23688eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23689_lt_linker_boilerplate=`cat conftest.err`
23690$rm conftest*
23691
23692
John Criswell47fdd832003-07-14 16:52:07 +000023693# Allow CC to be a program name with arguments.
23694lt_save_CC="$CC"
23695CC=${GCJ-"gcj"}
23696compiler=$CC
23697compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023698for cc_temp in $compiler""; do
23699 case $cc_temp in
23700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23702 \-*) ;;
23703 *) break;;
23704 esac
23705done
23706cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23707
John Criswell47fdd832003-07-14 16:52:07 +000023708
23709# GCJ did not exist at the time GCC didn't implicitly link libc in.
23710archive_cmds_need_lc_GCJ=no
23711
Reid Spencera773bd52006-08-04 18:18:08 +000023712old_archive_cmds_GCJ=$old_archive_cmds
23713
John Criswell47fdd832003-07-14 16:52:07 +000023714
23715lt_prog_compiler_no_builtin_flag_GCJ=
23716
23717if test "$GCC" = yes; then
23718 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23719
Reid Spencer2706f8c2004-09-19 23:53:36 +000023720
Reid Spencera773bd52006-08-04 18:18:08 +000023721{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23722echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023723if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23725else
23726 lt_cv_prog_compiler_rtti_exceptions=no
23727 ac_outfile=conftest.$ac_objext
23728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23729 lt_compiler_flag="-fno-rtti -fno-exceptions"
23730 # Insert the option either (1) after the last *FLAGS variable, or
23731 # (2) before a word containing "conftest.", or (3) at the end.
23732 # Note that $ac_compile itself does not contain backslashes and begins
23733 # with a dollar sign (not a hyphen), so the echo should work correctly.
23734 # The option is referenced via a variable to avoid confusing sed.
23735 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23738 -e 's:$: $lt_compiler_flag:'`
Bill Wendling41ef25b2008-03-05 09:28:02 +000023739 (eval echo "\"\$as_me:23739: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023740 (eval "$lt_compile" 2>conftest.err)
23741 ac_status=$?
23742 cat conftest.err >&5
Bill Wendling41ef25b2008-03-05 09:28:02 +000023743 echo "$as_me:23743: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023744 if (exit $ac_status) && test -s "$ac_outfile"; then
23745 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023746 # So say no if there are warnings other than the usual output.
23747 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023750 lt_cv_prog_compiler_rtti_exceptions=yes
23751 fi
23752 fi
23753 $rm conftest*
23754
23755fi
Reid Spencera773bd52006-08-04 18:18:08 +000023756{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23757echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023758
23759if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23760 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23761else
23762 :
23763fi
23764
23765fi
23766
23767lt_prog_compiler_wl_GCJ=
23768lt_prog_compiler_pic_GCJ=
23769lt_prog_compiler_static_GCJ=
23770
Reid Spencera773bd52006-08-04 18:18:08 +000023771{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23772echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023773
23774 if test "$GCC" = yes; then
23775 lt_prog_compiler_wl_GCJ='-Wl,'
23776 lt_prog_compiler_static_GCJ='-static'
23777
23778 case $host_os in
23779 aix*)
23780 # All AIX code is PIC.
23781 if test "$host_cpu" = ia64; then
23782 # AIX 5 now supports IA64 processor
23783 lt_prog_compiler_static_GCJ='-Bstatic'
23784 fi
23785 ;;
23786
23787 amigaos*)
23788 # FIXME: we need at least 68020 code to build shared libraries, but
23789 # adding the `-m68020' flag to GCC prevents building anything better,
23790 # like `-m68040'.
23791 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23792 ;;
23793
23794 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23795 # PIC is the default for these OSes.
23796 ;;
23797
23798 mingw* | pw32* | os2*)
23799 # This hack is so that the source file can tell whether it is being
23800 # built for inclusion in a dll (and should export symbols for example).
23801 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23802 ;;
23803
23804 darwin* | rhapsody*)
23805 # PIC is the default on this platform
23806 # Common symbols not allowed in MH_DYLIB files
23807 lt_prog_compiler_pic_GCJ='-fno-common'
23808 ;;
23809
Reid Spencera773bd52006-08-04 18:18:08 +000023810 interix3*)
23811 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23812 # Instead, we relocate shared libraries at runtime.
23813 ;;
23814
John Criswell47fdd832003-07-14 16:52:07 +000023815 msdosdjgpp*)
23816 # Just because we use GCC doesn't mean we suddenly get shared libraries
23817 # on systems that don't support them.
23818 lt_prog_compiler_can_build_shared_GCJ=no
23819 enable_shared=no
23820 ;;
23821
23822 sysv4*MP*)
23823 if test -d /usr/nec; then
23824 lt_prog_compiler_pic_GCJ=-Kconform_pic
23825 fi
23826 ;;
23827
23828 hpux*)
23829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23830 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023831 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023832 hppa*64*|ia64*)
23833 # +Z the default
23834 ;;
23835 *)
23836 lt_prog_compiler_pic_GCJ='-fPIC'
23837 ;;
23838 esac
23839 ;;
23840
23841 *)
23842 lt_prog_compiler_pic_GCJ='-fPIC'
23843 ;;
23844 esac
23845 else
23846 # PORTME Check for flag to pass linker flags through the system compiler.
23847 case $host_os in
23848 aix*)
23849 lt_prog_compiler_wl_GCJ='-Wl,'
23850 if test "$host_cpu" = ia64; then
23851 # AIX 5 now supports IA64 processor
23852 lt_prog_compiler_static_GCJ='-Bstatic'
23853 else
23854 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23855 fi
23856 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023857 darwin*)
23858 # PIC is the default on this platform
23859 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023860 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023861 xlc*)
23862 lt_prog_compiler_pic_GCJ='-qnocommon'
23863 lt_prog_compiler_wl_GCJ='-Wl,'
23864 ;;
23865 esac
23866 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023867
23868 mingw* | pw32* | os2*)
23869 # This hack is so that the source file can tell whether it is being
23870 # built for inclusion in a dll (and should export symbols for example).
23871 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23872 ;;
23873
23874 hpux9* | hpux10* | hpux11*)
23875 lt_prog_compiler_wl_GCJ='-Wl,'
23876 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23877 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023878 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023879 hppa*64*|ia64*)
23880 # +Z the default
23881 ;;
23882 *)
23883 lt_prog_compiler_pic_GCJ='+Z'
23884 ;;
23885 esac
23886 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23887 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23888 ;;
23889
23890 irix5* | irix6* | nonstopux*)
23891 lt_prog_compiler_wl_GCJ='-Wl,'
23892 # PIC (with -KPIC) is the default.
23893 lt_prog_compiler_static_GCJ='-non_shared'
23894 ;;
23895
23896 newsos6)
23897 lt_prog_compiler_pic_GCJ='-KPIC'
23898 lt_prog_compiler_static_GCJ='-Bstatic'
23899 ;;
23900
23901 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023902 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023903 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023904 lt_prog_compiler_wl_GCJ='-Wl,'
23905 lt_prog_compiler_pic_GCJ='-KPIC'
23906 lt_prog_compiler_static_GCJ='-static'
23907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023908 pgcc* | pgf77* | pgf90* | pgf95*)
23909 # Portland Group compilers (*not* the Pentium gcc compiler,
23910 # which looks to be a dead project)
23911 lt_prog_compiler_wl_GCJ='-Wl,'
23912 lt_prog_compiler_pic_GCJ='-fpic'
23913 lt_prog_compiler_static_GCJ='-Bstatic'
23914 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023915 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023916 lt_prog_compiler_wl_GCJ='-Wl,'
23917 # All Alpha code is PIC.
23918 lt_prog_compiler_static_GCJ='-non_shared'
23919 ;;
23920 esac
23921 ;;
23922
23923 osf3* | osf4* | osf5*)
23924 lt_prog_compiler_wl_GCJ='-Wl,'
23925 # All OSF/1 code is PIC.
23926 lt_prog_compiler_static_GCJ='-non_shared'
23927 ;;
23928
John Criswell47fdd832003-07-14 16:52:07 +000023929 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023930 lt_prog_compiler_pic_GCJ='-KPIC'
23931 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023932 case $cc_basename in
23933 f77* | f90* | f95*)
23934 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23935 *)
23936 lt_prog_compiler_wl_GCJ='-Wl,';;
23937 esac
John Criswell47fdd832003-07-14 16:52:07 +000023938 ;;
23939
23940 sunos4*)
23941 lt_prog_compiler_wl_GCJ='-Qoption ld '
23942 lt_prog_compiler_pic_GCJ='-PIC'
23943 lt_prog_compiler_static_GCJ='-Bstatic'
23944 ;;
23945
Reid Spencera773bd52006-08-04 18:18:08 +000023946 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023947 lt_prog_compiler_wl_GCJ='-Wl,'
23948 lt_prog_compiler_pic_GCJ='-KPIC'
23949 lt_prog_compiler_static_GCJ='-Bstatic'
23950 ;;
23951
23952 sysv4*MP*)
23953 if test -d /usr/nec ;then
23954 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23955 lt_prog_compiler_static_GCJ='-Bstatic'
23956 fi
23957 ;;
23958
Reid Spencera773bd52006-08-04 18:18:08 +000023959 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23960 lt_prog_compiler_wl_GCJ='-Wl,'
23961 lt_prog_compiler_pic_GCJ='-KPIC'
23962 lt_prog_compiler_static_GCJ='-Bstatic'
23963 ;;
23964
23965 unicos*)
23966 lt_prog_compiler_wl_GCJ='-Wl,'
23967 lt_prog_compiler_can_build_shared_GCJ=no
23968 ;;
23969
John Criswell47fdd832003-07-14 16:52:07 +000023970 uts4*)
23971 lt_prog_compiler_pic_GCJ='-pic'
23972 lt_prog_compiler_static_GCJ='-Bstatic'
23973 ;;
23974
23975 *)
23976 lt_prog_compiler_can_build_shared_GCJ=no
23977 ;;
23978 esac
23979 fi
23980
Reid Spencera773bd52006-08-04 18:18:08 +000023981{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23982echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023983
23984#
23985# Check to make sure the PIC flag actually works.
23986#
23987if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023988
Reid Spencera773bd52006-08-04 18:18:08 +000023989{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23990echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023991if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23992 echo $ECHO_N "(cached) $ECHO_C" >&6
23993else
23994 lt_prog_compiler_pic_works_GCJ=no
23995 ac_outfile=conftest.$ac_objext
23996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23997 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23998 # Insert the option either (1) after the last *FLAGS variable, or
23999 # (2) before a word containing "conftest.", or (3) at the end.
24000 # Note that $ac_compile itself does not contain backslashes and begins
24001 # with a dollar sign (not a hyphen), so the echo should work correctly.
24002 # The option is referenced via a variable to avoid confusing sed.
24003 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24006 -e 's:$: $lt_compiler_flag:'`
Bill Wendling41ef25b2008-03-05 09:28:02 +000024007 (eval echo "\"\$as_me:24007: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024008 (eval "$lt_compile" 2>conftest.err)
24009 ac_status=$?
24010 cat conftest.err >&5
Bill Wendling41ef25b2008-03-05 09:28:02 +000024011 echo "$as_me:24011: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024012 if (exit $ac_status) && test -s "$ac_outfile"; then
24013 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024014 # So say no if there are warnings other than the usual output.
24015 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24017 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024018 lt_prog_compiler_pic_works_GCJ=yes
24019 fi
24020 fi
24021 $rm conftest*
24022
24023fi
Reid Spencera773bd52006-08-04 18:18:08 +000024024{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24025echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024026
24027if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24028 case $lt_prog_compiler_pic_GCJ in
24029 "" | " "*) ;;
24030 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24031 esac
24032else
24033 lt_prog_compiler_pic_GCJ=
24034 lt_prog_compiler_can_build_shared_GCJ=no
24035fi
24036
24037fi
Reid Spencera773bd52006-08-04 18:18:08 +000024038case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024039 # For platforms which do not support PIC, -DPIC is meaningless:
24040 *djgpp*)
24041 lt_prog_compiler_pic_GCJ=
24042 ;;
24043 *)
24044 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24045 ;;
24046esac
24047
Reid Spencera773bd52006-08-04 18:18:08 +000024048#
24049# Check to make sure the static flag actually works.
24050#
24051wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24052{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24053echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24054if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24055 echo $ECHO_N "(cached) $ECHO_C" >&6
24056else
24057 lt_prog_compiler_static_works_GCJ=no
24058 save_LDFLAGS="$LDFLAGS"
24059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24060 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24062 # The linker can only warn and ignore the option if not recognized
24063 # So say no if there are warnings
24064 if test -s conftest.err; then
24065 # Append any errors to the config.log.
24066 cat conftest.err 1>&5
24067 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24069 if diff conftest.exp conftest.er2 >/dev/null; then
24070 lt_prog_compiler_static_works_GCJ=yes
24071 fi
24072 else
24073 lt_prog_compiler_static_works_GCJ=yes
24074 fi
24075 fi
24076 $rm conftest*
24077 LDFLAGS="$save_LDFLAGS"
24078
24079fi
24080{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24081echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24082
24083if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24084 :
24085else
24086 lt_prog_compiler_static_GCJ=
24087fi
24088
24089
24090{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24091echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024092if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24093 echo $ECHO_N "(cached) $ECHO_C" >&6
24094else
24095 lt_cv_prog_compiler_c_o_GCJ=no
24096 $rm -r conftest 2>/dev/null
24097 mkdir conftest
24098 cd conftest
24099 mkdir out
24100 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24101
John Criswell47fdd832003-07-14 16:52:07 +000024102 lt_compiler_flag="-o out/conftest2.$ac_objext"
24103 # Insert the option either (1) after the last *FLAGS variable, or
24104 # (2) before a word containing "conftest.", or (3) at the end.
24105 # Note that $ac_compile itself does not contain backslashes and begins
24106 # with a dollar sign (not a hyphen), so the echo should work correctly.
24107 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24110 -e 's:$: $lt_compiler_flag:'`
Bill Wendling41ef25b2008-03-05 09:28:02 +000024111 (eval echo "\"\$as_me:24111: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024112 (eval "$lt_compile" 2>out/conftest.err)
24113 ac_status=$?
24114 cat out/conftest.err >&5
Bill Wendling41ef25b2008-03-05 09:28:02 +000024115 echo "$as_me:24115: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024116 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24117 then
24118 # The compiler can only warn and ignore the option if not recognized
24119 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024120 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24121 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24122 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024123 lt_cv_prog_compiler_c_o_GCJ=yes
24124 fi
24125 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024126 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024127 $rm conftest*
24128 # SGI C++ compiler will create directory out/ii_files/ for
24129 # template instantiation
24130 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24131 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024132 cd ..
24133 rmdir conftest
24134 $rm conftest*
24135
24136fi
Reid Spencera773bd52006-08-04 18:18:08 +000024137{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24138echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024139
24140
24141hard_links="nottested"
24142if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24143 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024144 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24145echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024146 hard_links=yes
24147 $rm conftest*
24148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24149 touch conftest.a
24150 ln conftest.a conftest.b 2>&5 || hard_links=no
24151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024152 { echo "$as_me:$LINENO: result: $hard_links" >&5
24153echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024154 if test "$hard_links" = no; then
24155 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24156echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24157 need_locks=warn
24158 fi
24159else
24160 need_locks=no
24161fi
24162
Reid Spencera773bd52006-08-04 18:18:08 +000024163{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24164echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024165
24166 runpath_var=
24167 allow_undefined_flag_GCJ=
24168 enable_shared_with_static_runtimes_GCJ=no
24169 archive_cmds_GCJ=
24170 archive_expsym_cmds_GCJ=
24171 old_archive_From_new_cmds_GCJ=
24172 old_archive_from_expsyms_cmds_GCJ=
24173 export_dynamic_flag_spec_GCJ=
24174 whole_archive_flag_spec_GCJ=
24175 thread_safe_flag_spec_GCJ=
24176 hardcode_libdir_flag_spec_GCJ=
24177 hardcode_libdir_flag_spec_ld_GCJ=
24178 hardcode_libdir_separator_GCJ=
24179 hardcode_direct_GCJ=no
24180 hardcode_minus_L_GCJ=no
24181 hardcode_shlibpath_var_GCJ=unsupported
24182 link_all_deplibs_GCJ=unknown
24183 hardcode_automatic_GCJ=no
24184 module_cmds_GCJ=
24185 module_expsym_cmds_GCJ=
24186 always_export_symbols_GCJ=no
24187 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24188 # include_expsyms should be a list of space-separated symbols to be *always*
24189 # included in the symbol list
24190 include_expsyms_GCJ=
24191 # exclude_expsyms can be an extended regexp of symbols to exclude
24192 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24193 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24194 # as well as any symbol that contains `d'.
24195 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24196 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24197 # platforms (ab)use it in PIC code, but their linkers get confused if
24198 # the symbol is explicitly referenced. Since portable code cannot
24199 # rely on this symbol name, it's probably fine to never include it in
24200 # preloaded symbol tables.
24201 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024202 # Just being paranoid about ensuring that cc_basename is set.
24203 for cc_temp in $compiler""; do
24204 case $cc_temp in
24205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24207 \-*) ;;
24208 *) break;;
24209 esac
24210done
24211cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024212
24213 case $host_os in
24214 cygwin* | mingw* | pw32*)
24215 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24216 # When not using gcc, we currently assume that we are using
24217 # Microsoft Visual C++.
24218 if test "$GCC" != yes; then
24219 with_gnu_ld=no
24220 fi
24221 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024222 interix*)
24223 # we just hope/assume this is gcc and not c89 (= MSVC++)
24224 with_gnu_ld=yes
24225 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024226 openbsd*)
24227 with_gnu_ld=no
24228 ;;
24229 esac
24230
24231 ld_shlibs_GCJ=yes
24232 if test "$with_gnu_ld" = yes; then
24233 # If archive_cmds runs LD, not CC, wlarc should be empty
24234 wlarc='${wl}'
24235
Reid Spencera773bd52006-08-04 18:18:08 +000024236 # Set some defaults for GNU ld with shared library support. These
24237 # are reset later if shared libraries are not supported. Putting them
24238 # here allows them to be overridden if necessary.
24239 runpath_var=LD_RUN_PATH
24240 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24241 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24242 # ancient GNU ld didn't support --whole-archive et. al.
24243 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24244 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24245 else
24246 whole_archive_flag_spec_GCJ=
24247 fi
24248 supports_anon_versioning=no
24249 case `$LD -v 2>/dev/null` in
24250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24253 *\ 2.11.*) ;; # other 2.11 versions
24254 *) supports_anon_versioning=yes ;;
24255 esac
24256
John Criswell47fdd832003-07-14 16:52:07 +000024257 # See if GNU ld supports shared libraries.
24258 case $host_os in
24259 aix3* | aix4* | aix5*)
24260 # On AIX/PPC, the GNU linker is very broken
24261 if test "$host_cpu" != ia64; then
24262 ld_shlibs_GCJ=no
24263 cat <<EOF 1>&2
24264
24265*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24266*** to be unable to reliably create shared libraries on AIX.
24267*** Therefore, libtool is disabling shared libraries support. If you
24268*** really care for shared libraries, you may want to modify your PATH
24269*** so that a non-GNU linker is found, and then restart.
24270
24271EOF
24272 fi
24273 ;;
24274
24275 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024276 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 +000024277 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24278 hardcode_minus_L_GCJ=yes
24279
24280 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24281 # that the semantics of dynamic libraries on AmigaOS, at least up
24282 # to version 4, is to share data among multiple programs linked
24283 # with the same dynamic library. Since this doesn't match the
24284 # behavior of shared libraries on other platforms, we can't use
24285 # them.
24286 ld_shlibs_GCJ=no
24287 ;;
24288
24289 beos*)
24290 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24291 allow_undefined_flag_GCJ=unsupported
24292 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24293 # support --undefined. This deserves some investigation. FIXME
24294 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24295 else
24296 ld_shlibs_GCJ=no
24297 fi
24298 ;;
24299
24300 cygwin* | mingw* | pw32*)
24301 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24302 # as there is no search path for DLLs.
24303 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24304 allow_undefined_flag_GCJ=unsupported
24305 always_export_symbols_GCJ=no
24306 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024307 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 +000024308
24309 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024310 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 +000024311 # If the export-symbols file already is a .def file (1st line
24312 # is EXPORTS), use it as is; otherwise, prepend...
24313 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24314 cp $export_symbols $output_objdir/$soname.def;
24315 else
24316 echo EXPORTS > $output_objdir/$soname.def;
24317 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024318 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024319 $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 +000024320 else
Reid Spencera773bd52006-08-04 18:18:08 +000024321 ld_shlibs_GCJ=no
24322 fi
24323 ;;
24324
24325 interix3*)
24326 hardcode_direct_GCJ=no
24327 hardcode_shlibpath_var_GCJ=no
24328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24329 export_dynamic_flag_spec_GCJ='${wl}-E'
24330 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24331 # Instead, shared libraries are loaded at an image base (0x10000000 by
24332 # default) and relocated if they conflict, which is a slow very memory
24333 # consuming and fragmenting process. To avoid this, we pick a random,
24334 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24335 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24336 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'
24337 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'
24338 ;;
24339
24340 linux*)
24341 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24342 tmp_addflag=
24343 case $cc_basename,$host_cpu in
24344 pgcc*) # Portland Group C compiler
24345 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'
24346 tmp_addflag=' $pic_flag'
24347 ;;
24348 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24349 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'
24350 tmp_addflag=' $pic_flag -Mnomain' ;;
24351 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24352 tmp_addflag=' -i_dynamic' ;;
24353 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24354 tmp_addflag=' -i_dynamic -nofor_main' ;;
24355 ifc* | ifort*) # Intel Fortran compiler
24356 tmp_addflag=' -nofor_main' ;;
24357 esac
24358 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24359
24360 if test $supports_anon_versioning = yes; then
24361 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24363 $echo "local: *; };" >> $output_objdir/$libname.ver~
24364 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24365 fi
24366 else
24367 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024368 fi
24369 ;;
24370
24371 netbsd*)
24372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24373 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24374 wlarc=
24375 else
24376 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24377 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24378 fi
24379 ;;
24380
Reid Spencera773bd52006-08-04 18:18:08 +000024381 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024382 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24383 ld_shlibs_GCJ=no
24384 cat <<EOF 1>&2
24385
24386*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24387*** create shared libraries on Solaris systems. Therefore, libtool
24388*** is disabling shared libraries support. We urge you to upgrade GNU
24389*** binutils to release 2.9.1 or newer. Another option is to modify
24390*** your PATH or compiler configuration so that the native linker is
24391*** used, and then restart.
24392
24393EOF
24394 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24395 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24396 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24397 else
24398 ld_shlibs_GCJ=no
24399 fi
24400 ;;
24401
Reid Spencera773bd52006-08-04 18:18:08 +000024402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24403 case `$LD -v 2>&1` in
24404 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24405 ld_shlibs_GCJ=no
24406 cat <<_LT_EOF 1>&2
24407
24408*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24409*** reliably create shared libraries on SCO systems. Therefore, libtool
24410*** is disabling shared libraries support. We urge you to upgrade GNU
24411*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24412*** your PATH or compiler configuration so that the native linker is
24413*** used, and then restart.
24414
24415_LT_EOF
24416 ;;
24417 *)
24418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24419 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24420 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24421 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24422 else
24423 ld_shlibs_GCJ=no
24424 fi
24425 ;;
24426 esac
24427 ;;
24428
John Criswell47fdd832003-07-14 16:52:07 +000024429 sunos4*)
24430 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24431 wlarc=
24432 hardcode_direct_GCJ=yes
24433 hardcode_shlibpath_var_GCJ=no
24434 ;;
24435
24436 *)
24437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24438 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24439 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24440 else
24441 ld_shlibs_GCJ=no
24442 fi
24443 ;;
24444 esac
24445
Reid Spencera773bd52006-08-04 18:18:08 +000024446 if test "$ld_shlibs_GCJ" = no; then
24447 runpath_var=
24448 hardcode_libdir_flag_spec_GCJ=
24449 export_dynamic_flag_spec_GCJ=
24450 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024451 fi
24452 else
24453 # PORTME fill in a description of your system's linker (not GNU ld)
24454 case $host_os in
24455 aix3*)
24456 allow_undefined_flag_GCJ=unsupported
24457 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024458 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 +000024459 # Note: this linker hardcodes the directories in LIBPATH if there
24460 # are no directories specified by -L.
24461 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024462 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024463 # Neither direct hardcoding nor static linking is supported with a
24464 # broken collect2.
24465 hardcode_direct_GCJ=unsupported
24466 fi
24467 ;;
24468
24469 aix4* | aix5*)
24470 if test "$host_cpu" = ia64; then
24471 # On IA64, the linker does run time linking by default, so we don't
24472 # have to do anything special.
24473 aix_use_runtimelinking=no
24474 exp_sym_flag='-Bexport'
24475 no_entry_flag=""
24476 else
24477 # If we're using GNU nm, then we don't want the "-C" option.
24478 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24479 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24480 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'
24481 else
24482 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'
24483 fi
24484 aix_use_runtimelinking=no
24485
24486 # Test if we are trying to use run time linking or normal
24487 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24488 # need to do runtime linking.
24489 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24490 for ld_flag in $LDFLAGS; do
24491 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24492 aix_use_runtimelinking=yes
24493 break
24494 fi
24495 done
Reid Spencera773bd52006-08-04 18:18:08 +000024496 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024497 esac
24498
24499 exp_sym_flag='-bexport'
24500 no_entry_flag='-bnoentry'
24501 fi
24502
24503 # When large executables or shared objects are built, AIX ld can
24504 # have problems creating the table of contents. If linking a library
24505 # or program results in "error TOC overflow" add -mminimal-toc to
24506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24508
24509 archive_cmds_GCJ=''
24510 hardcode_direct_GCJ=yes
24511 hardcode_libdir_separator_GCJ=':'
24512 link_all_deplibs_GCJ=yes
24513
24514 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024515 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024516 # We only want to do this on AIX 4.2 and lower, the check
24517 # below for broken collect2 doesn't work under 4.3+
24518 collect2name=`${CC} -print-prog-name=collect2`
24519 if test -f "$collect2name" && \
24520 strings "$collect2name" | grep resolve_lib_name >/dev/null
24521 then
24522 # We have reworked collect2
24523 hardcode_direct_GCJ=yes
24524 else
24525 # We have old collect2
24526 hardcode_direct_GCJ=unsupported
24527 # It fails to find uninstalled libraries when the uninstalled
24528 # path is not listed in the libpath. Setting hardcode_minus_L
24529 # to unsupported forces relinking
24530 hardcode_minus_L_GCJ=yes
24531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24532 hardcode_libdir_separator_GCJ=
24533 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024534 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024535 esac
24536 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024537 if test "$aix_use_runtimelinking" = yes; then
24538 shared_flag="$shared_flag "'${wl}-G'
24539 fi
John Criswell47fdd832003-07-14 16:52:07 +000024540 else
24541 # not using gcc
24542 if test "$host_cpu" = ia64; then
24543 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24544 # chokes on -Wl,-G. The following line is correct:
24545 shared_flag='-G'
24546 else
Reid Spencera773bd52006-08-04 18:18:08 +000024547 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024548 shared_flag='${wl}-G'
24549 else
24550 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024551 fi
John Criswell47fdd832003-07-14 16:52:07 +000024552 fi
24553 fi
24554
24555 # It seems that -bexpall does not export symbols beginning with
24556 # underscore (_), so it is better to generate a list of symbols to export.
24557 always_export_symbols_GCJ=yes
24558 if test "$aix_use_runtimelinking" = yes; then
24559 # Warning - without using the other runtime loading flags (-brtl),
24560 # -berok will link without error, but may produce a broken library.
24561 allow_undefined_flag_GCJ='-berok'
24562 # Determine the default libpath from the value encoded in an empty executable.
24563 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024564/* confdefs.h. */
24565_ACEOF
24566cat confdefs.h >>conftest.$ac_ext
24567cat >>conftest.$ac_ext <<_ACEOF
24568/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024569
John Criswell47fdd832003-07-14 16:52:07 +000024570int
24571main ()
24572{
24573
24574 ;
24575 return 0;
24576}
24577_ACEOF
24578rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024579if { (ac_try="$ac_link"
24580case "(($ac_try" in
24581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24582 *) ac_try_echo=$ac_try;;
24583esac
24584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24585 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024586 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024587 grep -v '^ *+' conftest.er1 >conftest.err
24588 rm -f conftest.er1
24589 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024591 (exit $ac_status); } &&
24592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24593 { (case "(($ac_try" in
24594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595 *) ac_try_echo=$ac_try;;
24596esac
24597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598 (eval "$ac_try") 2>&5
24599 ac_status=$?
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; } &&
24602 { ac_try='test -s conftest$ac_exeext'
24603 { (case "(($ac_try" in
24604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605 *) ac_try_echo=$ac_try;;
24606esac
24607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24608 (eval "$ac_try") 2>&5
24609 ac_status=$?
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024612
24613aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24614}'`
24615# Check for a 64-bit object if we didn't find anything.
24616if 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; }
24617}'`; fi
24618else
24619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024620sed 's/^/| /' conftest.$ac_ext >&5
24621
Reid Spencera773bd52006-08-04 18:18:08 +000024622
John Criswell47fdd832003-07-14 16:52:07 +000024623fi
Reid Spencera773bd52006-08-04 18:18:08 +000024624
Tanya Lattnercf067672008-01-17 05:57:22 +000024625rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024626 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024627if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24628
24629 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024630 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 +000024631 else
24632 if test "$host_cpu" = ia64; then
24633 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24634 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024635 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 +000024636 else
24637 # Determine the default libpath from the value encoded in an empty executable.
24638 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024639/* confdefs.h. */
24640_ACEOF
24641cat confdefs.h >>conftest.$ac_ext
24642cat >>conftest.$ac_ext <<_ACEOF
24643/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024644
John Criswell47fdd832003-07-14 16:52:07 +000024645int
24646main ()
24647{
24648
24649 ;
24650 return 0;
24651}
24652_ACEOF
24653rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024654if { (ac_try="$ac_link"
24655case "(($ac_try" in
24656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24657 *) ac_try_echo=$ac_try;;
24658esac
24659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24660 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024661 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024662 grep -v '^ *+' conftest.er1 >conftest.err
24663 rm -f conftest.er1
24664 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024666 (exit $ac_status); } &&
24667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24668 { (case "(($ac_try" in
24669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24670 *) ac_try_echo=$ac_try;;
24671esac
24672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24673 (eval "$ac_try") 2>&5
24674 ac_status=$?
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); }; } &&
24677 { ac_try='test -s conftest$ac_exeext'
24678 { (case "(($ac_try" in
24679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24680 *) ac_try_echo=$ac_try;;
24681esac
24682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24683 (eval "$ac_try") 2>&5
24684 ac_status=$?
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024687
24688aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24689}'`
24690# Check for a 64-bit object if we didn't find anything.
24691if 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; }
24692}'`; fi
24693else
24694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024695sed 's/^/| /' conftest.$ac_ext >&5
24696
Reid Spencera773bd52006-08-04 18:18:08 +000024697
John Criswell47fdd832003-07-14 16:52:07 +000024698fi
Reid Spencera773bd52006-08-04 18:18:08 +000024699
Tanya Lattnercf067672008-01-17 05:57:22 +000024700rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024701 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024702if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24703
24704 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24705 # Warning - without using the other run time loading flags,
24706 # -berok will link without error, but may produce a broken library.
24707 no_undefined_flag_GCJ=' ${wl}-bernotok'
24708 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024709 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024710 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024711 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024712 # This is similar to how AIX traditionally builds its shared libraries.
24713 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 +000024714 fi
24715 fi
24716 ;;
24717
24718 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024719 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 +000024720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24721 hardcode_minus_L_GCJ=yes
24722 # see comment about different semantics on the GNU ld section
24723 ld_shlibs_GCJ=no
24724 ;;
24725
Reid Spencer2706f8c2004-09-19 23:53:36 +000024726 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024727 export_dynamic_flag_spec_GCJ=-rdynamic
24728 ;;
24729
24730 cygwin* | mingw* | pw32*)
24731 # When not using gcc, we currently assume that we are using
24732 # Microsoft Visual C++.
24733 # hardcode_libdir_flag_spec is actually meaningless, as there is
24734 # no search path for DLLs.
24735 hardcode_libdir_flag_spec_GCJ=' '
24736 allow_undefined_flag_GCJ=unsupported
24737 # Tell ltmain to make .lib files, not .a files.
24738 libext=lib
24739 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024740 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024741 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024742 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 +000024743 # The linker will automatically build a .lib file if we build a DLL.
24744 old_archive_From_new_cmds_GCJ='true'
24745 # FIXME: Should let the user specify the lib program.
24746 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024747 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024748 enable_shared_with_static_runtimes_GCJ=yes
24749 ;;
24750
24751 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024752 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024753 rhapsody* | darwin1.[012])
24754 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24755 ;;
24756 *) # Darwin 1.3 on
24757 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24758 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24759 else
24760 case ${MACOSX_DEPLOYMENT_TARGET} in
24761 10.[012])
24762 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24763 ;;
24764 10.*)
24765 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24766 ;;
24767 esac
24768 fi
24769 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024770 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024771 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024772 hardcode_direct_GCJ=no
24773 hardcode_automatic_GCJ=yes
24774 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024775 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024776 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024777 if test "$GCC" = yes ; then
24778 output_verbose_link_cmd='echo'
24779 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24780 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024781 # 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 +000024782 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}'
24783 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 +000024784 else
Reid Spencera773bd52006-08-04 18:18:08 +000024785 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024786 xlc*)
24787 output_verbose_link_cmd='echo'
24788 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24789 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024790 # 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 +000024791 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}'
24792 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 +000024793 ;;
24794 *)
24795 ld_shlibs_GCJ=no
24796 ;;
24797 esac
John Criswell47fdd832003-07-14 16:52:07 +000024798 fi
24799 ;;
24800
24801 dgux*)
24802 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24803 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24804 hardcode_shlibpath_var_GCJ=no
24805 ;;
24806
24807 freebsd1*)
24808 ld_shlibs_GCJ=no
24809 ;;
24810
24811 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24812 # support. Future versions do this automatically, but an explicit c++rt0.o
24813 # does not break anything, and helps significantly (at the cost of a little
24814 # extra space).
24815 freebsd2.2*)
24816 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24817 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24818 hardcode_direct_GCJ=yes
24819 hardcode_shlibpath_var_GCJ=no
24820 ;;
24821
24822 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24823 freebsd2*)
24824 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24825 hardcode_direct_GCJ=yes
24826 hardcode_minus_L_GCJ=yes
24827 hardcode_shlibpath_var_GCJ=no
24828 ;;
24829
24830 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024831 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024832 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24833 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24834 hardcode_direct_GCJ=yes
24835 hardcode_shlibpath_var_GCJ=no
24836 ;;
24837
24838 hpux9*)
24839 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024840 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 +000024841 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024842 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 +000024843 fi
24844 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24845 hardcode_libdir_separator_GCJ=:
24846 hardcode_direct_GCJ=yes
24847
24848 # hardcode_minus_L: Not really in the search PATH,
24849 # but as the default location of the library.
24850 hardcode_minus_L_GCJ=yes
24851 export_dynamic_flag_spec_GCJ='${wl}-E'
24852 ;;
24853
Reid Spencera773bd52006-08-04 18:18:08 +000024854 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024855 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024856 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24857 else
24858 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24859 fi
24860 if test "$with_gnu_ld" = no; then
24861 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24862 hardcode_libdir_separator_GCJ=:
24863
24864 hardcode_direct_GCJ=yes
24865 export_dynamic_flag_spec_GCJ='${wl}-E'
24866
24867 # hardcode_minus_L: Not really in the search PATH,
24868 # but as the default location of the library.
24869 hardcode_minus_L_GCJ=yes
24870 fi
24871 ;;
24872
24873 hpux11*)
24874 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24875 case $host_cpu in
24876 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024877 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24878 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024879 ia64*)
24880 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24881 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024882 *)
24883 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24884 ;;
24885 esac
24886 else
Reid Spencera773bd52006-08-04 18:18:08 +000024887 case $host_cpu in
24888 hppa*64*)
24889 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24890 ;;
24891 ia64*)
24892 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024893 ;;
24894 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024895 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 +000024896 ;;
24897 esac
24898 fi
24899 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024900 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24901 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024902
Reid Spencera773bd52006-08-04 18:18:08 +000024903 case $host_cpu in
24904 hppa*64*|ia64*)
24905 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24906 hardcode_direct_GCJ=no
24907 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024908 ;;
24909 *)
John Criswell47fdd832003-07-14 16:52:07 +000024910 hardcode_direct_GCJ=yes
24911 export_dynamic_flag_spec_GCJ='${wl}-E'
24912
24913 # hardcode_minus_L: Not really in the search PATH,
24914 # but as the default location of the library.
24915 hardcode_minus_L_GCJ=yes
24916 ;;
24917 esac
24918 fi
24919 ;;
24920
24921 irix5* | irix6* | nonstopux*)
24922 if test "$GCC" = yes; then
24923 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'
24924 else
24925 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'
24926 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24927 fi
24928 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24929 hardcode_libdir_separator_GCJ=:
24930 link_all_deplibs_GCJ=yes
24931 ;;
24932
24933 netbsd*)
24934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24935 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24936 else
24937 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24938 fi
24939 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24940 hardcode_direct_GCJ=yes
24941 hardcode_shlibpath_var_GCJ=no
24942 ;;
24943
24944 newsos6)
24945 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24946 hardcode_direct_GCJ=yes
24947 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24948 hardcode_libdir_separator_GCJ=:
24949 hardcode_shlibpath_var_GCJ=no
24950 ;;
24951
24952 openbsd*)
24953 hardcode_direct_GCJ=yes
24954 hardcode_shlibpath_var_GCJ=no
24955 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24956 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024957 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 +000024958 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24959 export_dynamic_flag_spec_GCJ='${wl}-E'
24960 else
24961 case $host_os in
24962 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24963 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24964 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24965 ;;
24966 *)
24967 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24968 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24969 ;;
24970 esac
24971 fi
24972 ;;
24973
24974 os2*)
24975 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24976 hardcode_minus_L_GCJ=yes
24977 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024978 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 +000024979 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24980 ;;
24981
24982 osf3*)
24983 if test "$GCC" = yes; then
24984 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24985 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'
24986 else
24987 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24988 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'
24989 fi
24990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24991 hardcode_libdir_separator_GCJ=:
24992 ;;
24993
24994 osf4* | osf5*) # as osf3* with the addition of -msym flag
24995 if test "$GCC" = yes; then
24996 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24997 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'
24998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24999 else
25000 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25001 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 +000025002 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 +000025003 $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 +000025004
John Criswell47fdd832003-07-14 16:52:07 +000025005 # Both c and cxx compiler support -rpath directly
25006 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25007 fi
25008 hardcode_libdir_separator_GCJ=:
25009 ;;
25010
John Criswell47fdd832003-07-14 16:52:07 +000025011 solaris*)
25012 no_undefined_flag_GCJ=' -z text'
25013 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025014 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025015 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025016 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25017 $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 +000025018 else
Reid Spencera773bd52006-08-04 18:18:08 +000025019 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025020 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025021 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25022 $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 +000025023 fi
25024 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25025 hardcode_shlibpath_var_GCJ=no
25026 case $host_os in
25027 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025028 *)
25029 # The compiler driver will combine linker options so we
25030 # cannot just pass the convience library names through
25031 # without $wl, iff we do not link with $LD.
25032 # Luckily, gcc supports the same syntax we need for Sun Studio.
25033 # Supported since Solaris 2.6 (maybe 2.5.1?)
25034 case $wlarc in
25035 '')
25036 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25037 *)
25038 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' ;;
25039 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025040 esac
25041 link_all_deplibs_GCJ=yes
25042 ;;
25043
25044 sunos4*)
25045 if test "x$host_vendor" = xsequent; then
25046 # Use $CC to link under sequent, because it throws in some extra .o
25047 # files that make .init and .fini sections work.
25048 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25049 else
25050 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25051 fi
25052 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25053 hardcode_direct_GCJ=yes
25054 hardcode_minus_L_GCJ=yes
25055 hardcode_shlibpath_var_GCJ=no
25056 ;;
25057
25058 sysv4)
25059 case $host_vendor in
25060 sni)
25061 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25062 hardcode_direct_GCJ=yes # is this really true???
25063 ;;
25064 siemens)
25065 ## LD is ld it makes a PLAMLIB
25066 ## CC just makes a GrossModule.
25067 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25068 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25069 hardcode_direct_GCJ=no
25070 ;;
25071 motorola)
25072 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25073 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25074 ;;
25075 esac
25076 runpath_var='LD_RUN_PATH'
25077 hardcode_shlibpath_var_GCJ=no
25078 ;;
25079
25080 sysv4.3*)
25081 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25082 hardcode_shlibpath_var_GCJ=no
25083 export_dynamic_flag_spec_GCJ='-Bexport'
25084 ;;
25085
25086 sysv4*MP*)
25087 if test -d /usr/nec; then
25088 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25089 hardcode_shlibpath_var_GCJ=no
25090 runpath_var=LD_RUN_PATH
25091 hardcode_runpath_var=yes
25092 ld_shlibs_GCJ=yes
25093 fi
25094 ;;
25095
Reid Spencera773bd52006-08-04 18:18:08 +000025096 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25097 no_undefined_flag_GCJ='${wl}-z,text'
25098 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025099 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025100 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025101
John Criswell47fdd832003-07-14 16:52:07 +000025102 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025103 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25104 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 +000025105 else
Reid Spencera773bd52006-08-04 18:18:08 +000025106 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25107 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 +000025108 fi
John Criswell47fdd832003-07-14 16:52:07 +000025109 ;;
25110
Reid Spencera773bd52006-08-04 18:18:08 +000025111 sysv5* | sco3.2v5* | sco5v6*)
25112 # Note: We can NOT use -z defs as we might desire, because we do not
25113 # link with -lc, and that would cause any symbols used from libc to
25114 # always be unresolved, which means just about no library would
25115 # ever link correctly. If we're not using GNU ld we use -z text
25116 # though, which does catch some bad symbols but isn't as heavy-handed
25117 # as -z defs.
25118 no_undefined_flag_GCJ='${wl}-z,text'
25119 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25120 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025121 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025122 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25123 hardcode_libdir_separator_GCJ=':'
25124 link_all_deplibs_GCJ=yes
25125 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025126 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025127
25128 if test "$GCC" = yes; then
25129 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25130 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25131 else
25132 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25133 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25134 fi
John Criswell47fdd832003-07-14 16:52:07 +000025135 ;;
25136
25137 uts4*)
25138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25139 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25140 hardcode_shlibpath_var_GCJ=no
25141 ;;
25142
25143 *)
25144 ld_shlibs_GCJ=no
25145 ;;
25146 esac
25147 fi
25148
Reid Spencera773bd52006-08-04 18:18:08 +000025149{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25150echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025151test "$ld_shlibs_GCJ" = no && can_build_shared=no
25152
John Criswell47fdd832003-07-14 16:52:07 +000025153#
25154# Do we need to explicitly link libc?
25155#
25156case "x$archive_cmds_need_lc_GCJ" in
25157x|xyes)
25158 # Assume -lc should be added
25159 archive_cmds_need_lc_GCJ=yes
25160
25161 if test "$enable_shared" = yes && test "$GCC" = yes; then
25162 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025163 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025164 # FIXME: we may have to deal with multi-command sequences.
25165 ;;
25166 '$CC '*)
25167 # Test whether the compiler implicitly links with -lc since on some
25168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25169 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025170 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25171echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025172 $rm conftest*
25173 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25174
25175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25176 (eval $ac_compile) 2>&5
25177 ac_status=$?
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); } 2>conftest.err; then
25180 soname=conftest
25181 lib=conftest
25182 libobjs=conftest.$ac_objext
25183 deplibs=
25184 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025185 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025186 compiler_flags=-v
25187 linker_flags=-v
25188 verstring=
25189 output_objdir=.
25190 libname=conftest
25191 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25192 allow_undefined_flag_GCJ=
25193 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25194 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25195 ac_status=$?
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }
25198 then
25199 archive_cmds_need_lc_GCJ=no
25200 else
25201 archive_cmds_need_lc_GCJ=yes
25202 fi
25203 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25204 else
25205 cat conftest.err 1>&5
25206 fi
25207 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025208 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25209echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025210 ;;
25211 esac
25212 fi
25213 ;;
25214esac
25215
Reid Spencera773bd52006-08-04 18:18:08 +000025216{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25217echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025218library_names_spec=
25219libname_spec='lib$name'
25220soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025221shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025222postinstall_cmds=
25223postuninstall_cmds=
25224finish_cmds=
25225finish_eval=
25226shlibpath_var=
25227shlibpath_overrides_runpath=unknown
25228version_type=none
25229dynamic_linker="$host_os ld.so"
25230sys_lib_dlsearch_path_spec="/lib /usr/lib"
25231if test "$GCC" = yes; then
25232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25233 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25234 # if the path contains ";" then we assume it to be the separator
25235 # otherwise default to the standard path separator (i.e. ":") - it is
25236 # assumed that no part of a normal pathname contains ";" but that should
25237 # okay in the real world where ";" in dirpaths is itself problematic.
25238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25239 else
25240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25241 fi
25242else
25243 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25244fi
25245need_lib_prefix=unknown
25246hardcode_into_libs=no
25247
25248# when you set need_version to no, make sure it does not cause -set_version
25249# flags to be left without arguments
25250need_version=unknown
25251
25252case $host_os in
25253aix3*)
25254 version_type=linux
25255 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25256 shlibpath_var=LIBPATH
25257
25258 # AIX 3 has no versioning support, so we append a major version to the name.
25259 soname_spec='${libname}${release}${shared_ext}$major'
25260 ;;
25261
25262aix4* | aix5*)
25263 version_type=linux
25264 need_lib_prefix=no
25265 need_version=no
25266 hardcode_into_libs=yes
25267 if test "$host_cpu" = ia64; then
25268 # AIX 5 supports IA64
25269 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25270 shlibpath_var=LD_LIBRARY_PATH
25271 else
25272 # With GCC up to 2.95.x, collect2 would create an import file
25273 # for dependence libraries. The import file would start with
25274 # the line `#! .'. This would cause the generated library to
25275 # depend on `.', always an invalid library. This was fixed in
25276 # development snapshots of GCC prior to 3.0.
25277 case $host_os in
25278 aix4 | aix4.[01] | aix4.[01].*)
25279 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25280 echo ' yes '
25281 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25282 :
25283 else
25284 can_build_shared=no
25285 fi
25286 ;;
25287 esac
25288 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25289 # soname into executable. Probably we can add versioning support to
25290 # collect2, so additional links can be useful in future.
25291 if test "$aix_use_runtimelinking" = yes; then
25292 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25293 # instead of lib<name>.a to let people know that these are not
25294 # typical AIX shared libraries.
25295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25296 else
25297 # We preserve .a as extension for shared libraries through AIX4.2
25298 # and later when we are not doing run time linking.
25299 library_names_spec='${libname}${release}.a $libname.a'
25300 soname_spec='${libname}${release}${shared_ext}$major'
25301 fi
25302 shlibpath_var=LIBPATH
25303 fi
25304 ;;
25305
25306amigaos*)
25307 library_names_spec='$libname.ixlibrary $libname.a'
25308 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025309 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 +000025310 ;;
25311
25312beos*)
25313 library_names_spec='${libname}${shared_ext}'
25314 dynamic_linker="$host_os ld.so"
25315 shlibpath_var=LIBRARY_PATH
25316 ;;
25317
Reid Spencer2706f8c2004-09-19 23:53:36 +000025318bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025319 version_type=linux
25320 need_version=no
25321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25322 soname_spec='${libname}${release}${shared_ext}$major'
25323 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25324 shlibpath_var=LD_LIBRARY_PATH
25325 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25326 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25327 # the default ld.so.conf also contains /usr/contrib/lib and
25328 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25329 # libtool to hard-code these into programs
25330 ;;
25331
25332cygwin* | mingw* | pw32*)
25333 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025334 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025335 need_version=no
25336 need_lib_prefix=no
25337
25338 case $GCC,$host_os in
25339 yes,cygwin* | yes,mingw* | yes,pw32*)
25340 library_names_spec='$libname.dll.a'
25341 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025342 postinstall_cmds='base_file=`basename \${file}`~
25343 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25344 dldir=$destdir/`dirname \$dlpath`~
25345 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025346 $install_prog $dir/$dlname \$dldir/$dlname~
25347 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025348 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25349 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025350 $rm \$dlpath'
25351 shlibpath_overrides_runpath=yes
25352
25353 case $host_os in
25354 cygwin*)
25355 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25356 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 +000025357 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025358 ;;
25359 mingw*)
25360 # MinGW DLLs use traditional 'lib' prefix
25361 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25362 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25363 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25364 # It is most probably a Windows format PATH printed by
25365 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25366 # path with ; separators, and with drive letters. We can handle the
25367 # drive letters (cygwin fileutils understands them), so leave them,
25368 # especially as we might pass files found there to a mingw objdump,
25369 # which wouldn't understand a cygwinified path. Ahh.
25370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25371 else
25372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25373 fi
25374 ;;
25375 pw32*)
25376 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025377 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 +000025378 ;;
25379 esac
25380 ;;
25381
25382 *)
25383 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25384 ;;
25385 esac
25386 dynamic_linker='Win32 ld.exe'
25387 # FIXME: first we should search . and the directory the executable is in
25388 shlibpath_var=PATH
25389 ;;
25390
25391darwin* | rhapsody*)
25392 dynamic_linker="$host_os dyld"
25393 version_type=darwin
25394 need_lib_prefix=no
25395 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025396 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025397 soname_spec='${libname}${release}${major}$shared_ext'
25398 shlibpath_overrides_runpath=yes
25399 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025400 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025401 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025402 if test "$GCC" = yes; then
25403 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"`
25404 else
25405 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025406 fi
25407 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25408 ;;
25409
25410dgux*)
25411 version_type=linux
25412 need_lib_prefix=no
25413 need_version=no
25414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25415 soname_spec='${libname}${release}${shared_ext}$major'
25416 shlibpath_var=LD_LIBRARY_PATH
25417 ;;
25418
25419freebsd1*)
25420 dynamic_linker=no
25421 ;;
25422
Reid Spencer2706f8c2004-09-19 23:53:36 +000025423kfreebsd*-gnu)
25424 version_type=linux
25425 need_lib_prefix=no
25426 need_version=no
25427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25428 soname_spec='${libname}${release}${shared_ext}$major'
25429 shlibpath_var=LD_LIBRARY_PATH
25430 shlibpath_overrides_runpath=no
25431 hardcode_into_libs=yes
25432 dynamic_linker='GNU ld.so'
25433 ;;
25434
Reid Spencera773bd52006-08-04 18:18:08 +000025435freebsd* | dragonfly*)
25436 # DragonFly does not have aout. When/if they implement a new
25437 # versioning mechanism, adjust this.
25438 if test -x /usr/bin/objformat; then
25439 objformat=`/usr/bin/objformat`
25440 else
25441 case $host_os in
25442 freebsd[123]*) objformat=aout ;;
25443 *) objformat=elf ;;
25444 esac
25445 fi
John Criswell47fdd832003-07-14 16:52:07 +000025446 version_type=freebsd-$objformat
25447 case $version_type in
25448 freebsd-elf*)
25449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25450 need_version=no
25451 need_lib_prefix=no
25452 ;;
25453 freebsd-*)
25454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25455 need_version=yes
25456 ;;
25457 esac
25458 shlibpath_var=LD_LIBRARY_PATH
25459 case $host_os in
25460 freebsd2*)
25461 shlibpath_overrides_runpath=yes
25462 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025463 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025464 shlibpath_overrides_runpath=yes
25465 hardcode_into_libs=yes
25466 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025467 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25468 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025469 shlibpath_overrides_runpath=no
25470 hardcode_into_libs=yes
25471 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025472 freebsd*) # from 4.6 on
25473 shlibpath_overrides_runpath=yes
25474 hardcode_into_libs=yes
25475 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025476 esac
25477 ;;
25478
25479gnu*)
25480 version_type=linux
25481 need_lib_prefix=no
25482 need_version=no
25483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25484 soname_spec='${libname}${release}${shared_ext}$major'
25485 shlibpath_var=LD_LIBRARY_PATH
25486 hardcode_into_libs=yes
25487 ;;
25488
25489hpux9* | hpux10* | hpux11*)
25490 # Give a soname corresponding to the major version so that dld.sl refuses to
25491 # link against other versions.
25492 version_type=sunos
25493 need_lib_prefix=no
25494 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025495 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025496 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025497 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025498 hardcode_into_libs=yes
25499 dynamic_linker="$host_os dld.so"
25500 shlibpath_var=LD_LIBRARY_PATH
25501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25503 soname_spec='${libname}${release}${shared_ext}$major'
25504 if test "X$HPUX_IA64_MODE" = X32; then
25505 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25506 else
25507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25508 fi
25509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25510 ;;
25511 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025512 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025513 hardcode_into_libs=yes
25514 dynamic_linker="$host_os dld.sl"
25515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25518 soname_spec='${libname}${release}${shared_ext}$major'
25519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25521 ;;
25522 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025523 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025524 dynamic_linker="$host_os dld.sl"
25525 shlibpath_var=SHLIB_PATH
25526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25528 soname_spec='${libname}${release}${shared_ext}$major'
25529 ;;
25530 esac
25531 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25532 postinstall_cmds='chmod 555 $lib'
25533 ;;
25534
Reid Spencera773bd52006-08-04 18:18:08 +000025535interix3*)
25536 version_type=linux
25537 need_lib_prefix=no
25538 need_version=no
25539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25540 soname_spec='${libname}${release}${shared_ext}$major'
25541 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25542 shlibpath_var=LD_LIBRARY_PATH
25543 shlibpath_overrides_runpath=no
25544 hardcode_into_libs=yes
25545 ;;
25546
John Criswell47fdd832003-07-14 16:52:07 +000025547irix5* | irix6* | nonstopux*)
25548 case $host_os in
25549 nonstopux*) version_type=nonstopux ;;
25550 *)
25551 if test "$lt_cv_prog_gnu_ld" = yes; then
25552 version_type=linux
25553 else
25554 version_type=irix
25555 fi ;;
25556 esac
25557 need_lib_prefix=no
25558 need_version=no
25559 soname_spec='${libname}${release}${shared_ext}$major'
25560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25561 case $host_os in
25562 irix5* | nonstopux*)
25563 libsuff= shlibsuff=
25564 ;;
25565 *)
25566 case $LD in # libtool.m4 will add one of these switches to LD
25567 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25568 libsuff= shlibsuff= libmagic=32-bit;;
25569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25570 libsuff=32 shlibsuff=N32 libmagic=N32;;
25571 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25572 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25573 *) libsuff= shlibsuff= libmagic=never-match;;
25574 esac
25575 ;;
25576 esac
25577 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25578 shlibpath_overrides_runpath=no
25579 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25580 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25581 hardcode_into_libs=yes
25582 ;;
25583
25584# No shared lib support for Linux oldld, aout, or coff.
25585linux*oldld* | linux*aout* | linux*coff*)
25586 dynamic_linker=no
25587 ;;
25588
25589# This must be Linux ELF.
25590linux*)
25591 version_type=linux
25592 need_lib_prefix=no
25593 need_version=no
25594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25595 soname_spec='${libname}${release}${shared_ext}$major'
25596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25597 shlibpath_var=LD_LIBRARY_PATH
25598 shlibpath_overrides_runpath=no
25599 # This implies no fast_install, which is unacceptable.
25600 # Some rework will be needed to allow for fast_install
25601 # before this can be enabled.
25602 hardcode_into_libs=yes
25603
Reid Spencer2706f8c2004-09-19 23:53:36 +000025604 # Append ld.so.conf contents to the search path
25605 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025606 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 +000025607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25608 fi
25609
John Criswell47fdd832003-07-14 16:52:07 +000025610 # We used to test for /lib/ld.so.1 and disable shared libraries on
25611 # powerpc, because MkLinux only supported shared libraries with the
25612 # GNU dynamic linker. Since this was broken with cross compilers,
25613 # most powerpc-linux boxes support dynamic linking these days and
25614 # people can always --disable-shared, the test was removed, and we
25615 # assume the GNU/Linux dynamic linker is in use.
25616 dynamic_linker='GNU/Linux ld.so'
25617 ;;
25618
Reid Spencer2706f8c2004-09-19 23:53:36 +000025619knetbsd*-gnu)
25620 version_type=linux
25621 need_lib_prefix=no
25622 need_version=no
25623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25624 soname_spec='${libname}${release}${shared_ext}$major'
25625 shlibpath_var=LD_LIBRARY_PATH
25626 shlibpath_overrides_runpath=no
25627 hardcode_into_libs=yes
25628 dynamic_linker='GNU ld.so'
25629 ;;
25630
John Criswell47fdd832003-07-14 16:52:07 +000025631netbsd*)
25632 version_type=sunos
25633 need_lib_prefix=no
25634 need_version=no
25635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25638 dynamic_linker='NetBSD (a.out) ld.so'
25639 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025641 soname_spec='${libname}${release}${shared_ext}$major'
25642 dynamic_linker='NetBSD ld.elf_so'
25643 fi
25644 shlibpath_var=LD_LIBRARY_PATH
25645 shlibpath_overrides_runpath=yes
25646 hardcode_into_libs=yes
25647 ;;
25648
25649newsos6)
25650 version_type=linux
25651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25652 shlibpath_var=LD_LIBRARY_PATH
25653 shlibpath_overrides_runpath=yes
25654 ;;
25655
Reid Spencer2706f8c2004-09-19 23:53:36 +000025656nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025657 version_type=linux
25658 need_lib_prefix=no
25659 need_version=no
25660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25661 soname_spec='${libname}${release}${shared_ext}$major'
25662 shlibpath_var=LD_LIBRARY_PATH
25663 shlibpath_overrides_runpath=yes
25664 ;;
25665
25666openbsd*)
25667 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025668 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025669 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025670 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25671 case $host_os in
25672 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25673 *) need_version=no ;;
25674 esac
John Criswell47fdd832003-07-14 16:52:07 +000025675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25677 shlibpath_var=LD_LIBRARY_PATH
25678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25679 case $host_os in
25680 openbsd2.[89] | openbsd2.[89].*)
25681 shlibpath_overrides_runpath=no
25682 ;;
25683 *)
25684 shlibpath_overrides_runpath=yes
25685 ;;
25686 esac
25687 else
25688 shlibpath_overrides_runpath=yes
25689 fi
25690 ;;
25691
25692os2*)
25693 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025694 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025695 need_lib_prefix=no
25696 library_names_spec='$libname${shared_ext} $libname.a'
25697 dynamic_linker='OS/2 ld.exe'
25698 shlibpath_var=LIBPATH
25699 ;;
25700
25701osf3* | osf4* | osf5*)
25702 version_type=osf
25703 need_lib_prefix=no
25704 need_version=no
25705 soname_spec='${libname}${release}${shared_ext}$major'
25706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25707 shlibpath_var=LD_LIBRARY_PATH
25708 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25709 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25710 ;;
25711
John Criswell47fdd832003-07-14 16:52:07 +000025712solaris*)
25713 version_type=linux
25714 need_lib_prefix=no
25715 need_version=no
25716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25717 soname_spec='${libname}${release}${shared_ext}$major'
25718 shlibpath_var=LD_LIBRARY_PATH
25719 shlibpath_overrides_runpath=yes
25720 hardcode_into_libs=yes
25721 # ldd complains unless libraries are executable
25722 postinstall_cmds='chmod +x $lib'
25723 ;;
25724
25725sunos4*)
25726 version_type=sunos
25727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25728 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25729 shlibpath_var=LD_LIBRARY_PATH
25730 shlibpath_overrides_runpath=yes
25731 if test "$with_gnu_ld" = yes; then
25732 need_lib_prefix=no
25733 fi
25734 need_version=yes
25735 ;;
25736
Reid Spencera773bd52006-08-04 18:18:08 +000025737sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025738 version_type=linux
25739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25740 soname_spec='${libname}${release}${shared_ext}$major'
25741 shlibpath_var=LD_LIBRARY_PATH
25742 case $host_vendor in
25743 sni)
25744 shlibpath_overrides_runpath=no
25745 need_lib_prefix=no
25746 export_dynamic_flag_spec='${wl}-Blargedynsym'
25747 runpath_var=LD_RUN_PATH
25748 ;;
25749 siemens)
25750 need_lib_prefix=no
25751 ;;
25752 motorola)
25753 need_lib_prefix=no
25754 need_version=no
25755 shlibpath_overrides_runpath=no
25756 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25757 ;;
25758 esac
25759 ;;
25760
25761sysv4*MP*)
25762 if test -d /usr/nec ;then
25763 version_type=linux
25764 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25765 soname_spec='$libname${shared_ext}.$major'
25766 shlibpath_var=LD_LIBRARY_PATH
25767 fi
25768 ;;
25769
Reid Spencera773bd52006-08-04 18:18:08 +000025770sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25771 version_type=freebsd-elf
25772 need_lib_prefix=no
25773 need_version=no
25774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25775 soname_spec='${libname}${release}${shared_ext}$major'
25776 shlibpath_var=LD_LIBRARY_PATH
25777 hardcode_into_libs=yes
25778 if test "$with_gnu_ld" = yes; then
25779 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25780 shlibpath_overrides_runpath=no
25781 else
25782 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25783 shlibpath_overrides_runpath=yes
25784 case $host_os in
25785 sco3.2v5*)
25786 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25787 ;;
25788 esac
25789 fi
25790 sys_lib_dlsearch_path_spec='/usr/lib'
25791 ;;
25792
John Criswell47fdd832003-07-14 16:52:07 +000025793uts4*)
25794 version_type=linux
25795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25796 soname_spec='${libname}${release}${shared_ext}$major'
25797 shlibpath_var=LD_LIBRARY_PATH
25798 ;;
25799
25800*)
25801 dynamic_linker=no
25802 ;;
25803esac
Reid Spencera773bd52006-08-04 18:18:08 +000025804{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25805echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025806test "$dynamic_linker" = no && can_build_shared=no
25807
Reid Spencera773bd52006-08-04 18:18:08 +000025808variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25809if test "$GCC" = yes; then
25810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25811fi
25812
25813{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25814echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025815hardcode_action_GCJ=
25816if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25817 test -n "$runpath_var_GCJ" || \
25818 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25819
25820 # We can hardcode non-existant directories.
25821 if test "$hardcode_direct_GCJ" != no &&
25822 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25823 # have to relink, otherwise we might link with an installed library
25824 # when we should be linking with a yet-to-be-installed one
25825 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25826 test "$hardcode_minus_L_GCJ" != no; then
25827 # Linking always hardcodes the temporary library directory.
25828 hardcode_action_GCJ=relink
25829 else
25830 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25831 hardcode_action_GCJ=immediate
25832 fi
25833else
25834 # We cannot hardcode anything, or else we can only hardcode existing
25835 # directories.
25836 hardcode_action_GCJ=unsupported
25837fi
Reid Spencera773bd52006-08-04 18:18:08 +000025838{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25839echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025840
25841if test "$hardcode_action_GCJ" = relink; then
25842 # Fast installation is not supported
25843 enable_fast_install=no
25844elif test "$shlibpath_overrides_runpath" = yes ||
25845 test "$enable_shared" = no; then
25846 # Fast installation is not necessary
25847 enable_fast_install=needless
25848fi
25849
John Criswell47fdd832003-07-14 16:52:07 +000025850
25851# The else clause should only fire when bootstrapping the
25852# libtool distribution, otherwise you forgot to ship ltmain.sh
25853# with your package, and you will get complaints that there are
25854# no rules to generate ltmain.sh.
25855if test -f "$ltmain"; then
25856 # See if we are running on zsh, and set the options which allow our commands through
25857 # without removal of \ escapes.
25858 if test -n "${ZSH_VERSION+set}" ; then
25859 setopt NO_GLOB_SUBST
25860 fi
25861 # Now quote all the things that may contain metacharacters while being
25862 # careful not to overquote the AC_SUBSTed values. We take copies of the
25863 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025864 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 +000025865 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025866 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25867 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25868 deplibs_check_method reload_flag reload_cmds need_locks \
25869 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25870 lt_cv_sys_global_symbol_to_c_name_address \
25871 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25872 old_postinstall_cmds old_postuninstall_cmds \
25873 compiler_GCJ \
25874 CC_GCJ \
25875 LD_GCJ \
25876 lt_prog_compiler_wl_GCJ \
25877 lt_prog_compiler_pic_GCJ \
25878 lt_prog_compiler_static_GCJ \
25879 lt_prog_compiler_no_builtin_flag_GCJ \
25880 export_dynamic_flag_spec_GCJ \
25881 thread_safe_flag_spec_GCJ \
25882 whole_archive_flag_spec_GCJ \
25883 enable_shared_with_static_runtimes_GCJ \
25884 old_archive_cmds_GCJ \
25885 old_archive_from_new_cmds_GCJ \
25886 predep_objects_GCJ \
25887 postdep_objects_GCJ \
25888 predeps_GCJ \
25889 postdeps_GCJ \
25890 compiler_lib_search_path_GCJ \
25891 archive_cmds_GCJ \
25892 archive_expsym_cmds_GCJ \
25893 postinstall_cmds_GCJ \
25894 postuninstall_cmds_GCJ \
25895 old_archive_from_expsyms_cmds_GCJ \
25896 allow_undefined_flag_GCJ \
25897 no_undefined_flag_GCJ \
25898 export_symbols_cmds_GCJ \
25899 hardcode_libdir_flag_spec_GCJ \
25900 hardcode_libdir_flag_spec_ld_GCJ \
25901 hardcode_libdir_separator_GCJ \
25902 hardcode_automatic_GCJ \
25903 module_cmds_GCJ \
25904 module_expsym_cmds_GCJ \
25905 lt_cv_prog_compiler_c_o_GCJ \
25906 exclude_expsyms_GCJ \
25907 include_expsyms_GCJ; do
25908
25909 case $var in
25910 old_archive_cmds_GCJ | \
25911 old_archive_from_new_cmds_GCJ | \
25912 archive_cmds_GCJ | \
25913 archive_expsym_cmds_GCJ | \
25914 module_cmds_GCJ | \
25915 module_expsym_cmds_GCJ | \
25916 old_archive_from_expsyms_cmds_GCJ | \
25917 export_symbols_cmds_GCJ | \
25918 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25919 postinstall_cmds | postuninstall_cmds | \
25920 old_postinstall_cmds | old_postuninstall_cmds | \
25921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25922 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025923 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 +000025924 ;;
25925 *)
25926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25927 ;;
25928 esac
25929 done
25930
25931 case $lt_echo in
25932 *'\$0 --fallback-echo"')
25933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25934 ;;
25935 esac
25936
25937cfgfile="$ofile"
25938
25939 cat <<__EOF__ >> "$cfgfile"
25940# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25941
25942# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25943
25944# Shell to use when invoking shell scripts.
25945SHELL=$lt_SHELL
25946
25947# Whether or not to build shared libraries.
25948build_libtool_libs=$enable_shared
25949
25950# Whether or not to build static libraries.
25951build_old_libs=$enable_static
25952
25953# Whether or not to add -lc for building shared libraries.
25954build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25955
25956# Whether or not to disallow shared libs when runtime libs are static
25957allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25958
25959# Whether or not to optimize for fast installation.
25960fast_install=$enable_fast_install
25961
25962# The host system.
25963host_alias=$host_alias
25964host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025965host_os=$host_os
25966
25967# The build system.
25968build_alias=$build_alias
25969build=$build
25970build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025971
25972# An echo program that does not interpret backslashes.
25973echo=$lt_echo
25974
25975# The archiver.
25976AR=$lt_AR
25977AR_FLAGS=$lt_AR_FLAGS
25978
25979# A C compiler.
25980LTCC=$lt_LTCC
25981
Reid Spencera773bd52006-08-04 18:18:08 +000025982# LTCC compiler flags.
25983LTCFLAGS=$lt_LTCFLAGS
25984
John Criswell47fdd832003-07-14 16:52:07 +000025985# A language-specific compiler.
25986CC=$lt_compiler_GCJ
25987
25988# Is the compiler the GNU C compiler?
25989with_gcc=$GCC_GCJ
25990
25991# An ERE matcher.
25992EGREP=$lt_EGREP
25993
25994# The linker used to build libraries.
25995LD=$lt_LD_GCJ
25996
25997# Whether we need hard or soft links.
25998LN_S=$lt_LN_S
25999
26000# A BSD-compatible nm program.
26001NM=$lt_NM
26002
26003# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026004STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026005
26006# Used to examine libraries when file_magic_cmd begins "file"
26007MAGIC_CMD=$MAGIC_CMD
26008
26009# Used on cygwin: DLL creation program.
26010DLLTOOL="$DLLTOOL"
26011
26012# Used on cygwin: object dumper.
26013OBJDUMP="$OBJDUMP"
26014
26015# Used on cygwin: assembler.
26016AS="$AS"
26017
26018# The name of the directory that contains temporary libtool files.
26019objdir=$objdir
26020
26021# How to create reloadable object files.
26022reload_flag=$lt_reload_flag
26023reload_cmds=$lt_reload_cmds
26024
26025# How to pass a linker flag through the compiler.
26026wl=$lt_lt_prog_compiler_wl_GCJ
26027
26028# Object file suffix (normally "o").
26029objext="$ac_objext"
26030
26031# Old archive suffix (normally "a").
26032libext="$libext"
26033
26034# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026035shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026036
26037# Executable file suffix (normally "").
26038exeext="$exeext"
26039
26040# Additional compiler flags for building library objects.
26041pic_flag=$lt_lt_prog_compiler_pic_GCJ
26042pic_mode=$pic_mode
26043
26044# What is the maximum length of a command?
26045max_cmd_len=$lt_cv_sys_max_cmd_len
26046
26047# Does compiler simultaneously support -c and -o options?
26048compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26049
Reid Spencera773bd52006-08-04 18:18:08 +000026050# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026051need_locks=$lt_need_locks
26052
26053# Do we need the lib prefix for modules?
26054need_lib_prefix=$need_lib_prefix
26055
26056# Do we need a version for libraries?
26057need_version=$need_version
26058
26059# Whether dlopen is supported.
26060dlopen_support=$enable_dlopen
26061
26062# Whether dlopen of programs is supported.
26063dlopen_self=$enable_dlopen_self
26064
26065# Whether dlopen of statically linked programs is supported.
26066dlopen_self_static=$enable_dlopen_self_static
26067
26068# Compiler flag to prevent dynamic linking.
26069link_static_flag=$lt_lt_prog_compiler_static_GCJ
26070
26071# Compiler flag to turn off builtin functions.
26072no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26073
26074# Compiler flag to allow reflexive dlopens.
26075export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26076
26077# Compiler flag to generate shared objects directly from archives.
26078whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26079
26080# Compiler flag to generate thread-safe objects.
26081thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26082
26083# Library versioning type.
26084version_type=$version_type
26085
26086# Format of library name prefix.
26087libname_spec=$lt_libname_spec
26088
26089# List of archive names. First name is the real one, the rest are links.
26090# The last name is the one that the linker finds with -lNAME.
26091library_names_spec=$lt_library_names_spec
26092
26093# The coded name of the library, if different from the real name.
26094soname_spec=$lt_soname_spec
26095
26096# Commands used to build and install an old-style archive.
26097RANLIB=$lt_RANLIB
26098old_archive_cmds=$lt_old_archive_cmds_GCJ
26099old_postinstall_cmds=$lt_old_postinstall_cmds
26100old_postuninstall_cmds=$lt_old_postuninstall_cmds
26101
26102# Create an old-style archive from a shared archive.
26103old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26104
26105# Create a temporary old-style archive to link instead of a shared archive.
26106old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26107
26108# Commands used to build and install a shared archive.
26109archive_cmds=$lt_archive_cmds_GCJ
26110archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26111postinstall_cmds=$lt_postinstall_cmds
26112postuninstall_cmds=$lt_postuninstall_cmds
26113
26114# Commands used to build a loadable module (assumed same as above if empty)
26115module_cmds=$lt_module_cmds_GCJ
26116module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26117
26118# Commands to strip libraries.
26119old_striplib=$lt_old_striplib
26120striplib=$lt_striplib
26121
26122# Dependencies to place before the objects being linked to create a
26123# shared library.
26124predep_objects=$lt_predep_objects_GCJ
26125
26126# Dependencies to place after the objects being linked to create a
26127# shared library.
26128postdep_objects=$lt_postdep_objects_GCJ
26129
26130# Dependencies to place before the objects being linked to create a
26131# shared library.
26132predeps=$lt_predeps_GCJ
26133
26134# Dependencies to place after the objects being linked to create a
26135# shared library.
26136postdeps=$lt_postdeps_GCJ
26137
26138# The library search path used internally by the compiler when linking
26139# a shared library.
26140compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26141
26142# Method to check whether dependent libraries are shared objects.
26143deplibs_check_method=$lt_deplibs_check_method
26144
26145# Command to use when deplibs_check_method == file_magic.
26146file_magic_cmd=$lt_file_magic_cmd
26147
26148# Flag that allows shared libraries with undefined symbols to be built.
26149allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26150
26151# Flag that forces no undefined symbols.
26152no_undefined_flag=$lt_no_undefined_flag_GCJ
26153
26154# Commands used to finish a libtool library installation in a directory.
26155finish_cmds=$lt_finish_cmds
26156
26157# Same as above, but a single script fragment to be evaled but not shown.
26158finish_eval=$lt_finish_eval
26159
26160# Take the output of nm and produce a listing of raw symbols and C names.
26161global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26162
26163# Transform the output of nm in a proper C declaration
26164global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26165
26166# Transform the output of nm in a C name address pair
26167global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26168
26169# This is the shared library runtime path variable.
26170runpath_var=$runpath_var
26171
26172# This is the shared library path variable.
26173shlibpath_var=$shlibpath_var
26174
26175# Is shlibpath searched before the hard-coded library search path?
26176shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26177
26178# How to hardcode a shared library path into an executable.
26179hardcode_action=$hardcode_action_GCJ
26180
26181# Whether we should hardcode library paths into libraries.
26182hardcode_into_libs=$hardcode_into_libs
26183
26184# Flag to hardcode \$libdir into a binary during linking.
26185# This must work even if \$libdir does not exist.
26186hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26187
26188# If ld is used when linking, flag to hardcode \$libdir into
26189# a binary during linking. This must work even if \$libdir does
26190# not exist.
26191hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26192
26193# Whether we need a single -rpath flag with a separated argument.
26194hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26195
26196# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26197# resulting binary.
26198hardcode_direct=$hardcode_direct_GCJ
26199
26200# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26201# resulting binary.
26202hardcode_minus_L=$hardcode_minus_L_GCJ
26203
26204# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26205# the resulting binary.
26206hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26207
26208# Set to yes if building a shared library automatically hardcodes DIR into the library
26209# and all subsequent libraries and executables linked against it.
26210hardcode_automatic=$hardcode_automatic_GCJ
26211
26212# Variables whose values should be saved in libtool wrapper scripts and
26213# restored at relink time.
26214variables_saved_for_relink="$variables_saved_for_relink"
26215
26216# Whether libtool must link a program against all its dependency libraries.
26217link_all_deplibs=$link_all_deplibs_GCJ
26218
26219# Compile-time system search path for libraries
26220sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26221
26222# Run-time system search path for libraries
26223sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26224
26225# Fix the shell variable \$srcfile for the compiler.
26226fix_srcfile_path="$fix_srcfile_path_GCJ"
26227
26228# Set to yes if exported symbols are required.
26229always_export_symbols=$always_export_symbols_GCJ
26230
26231# The commands to list exported symbols.
26232export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26233
26234# The commands to extract the exported symbol list from a shared archive.
26235extract_expsyms_cmds=$lt_extract_expsyms_cmds
26236
26237# Symbols that should not be listed in the preloaded symbols.
26238exclude_expsyms=$lt_exclude_expsyms_GCJ
26239
26240# Symbols that must always be exported.
26241include_expsyms=$lt_include_expsyms_GCJ
26242
26243# ### END LIBTOOL TAG CONFIG: $tagname
26244
26245__EOF__
26246
26247
26248else
26249 # If there is no Makefile yet, we rely on a make rule to execute
26250 # `config.status --recheck' to rerun these tests and create the
26251 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026252 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26253 if test -f "$ltmain_in"; then
26254 test -f Makefile && make "$ltmain"
26255 fi
John Criswell47fdd832003-07-14 16:52:07 +000026256fi
26257
26258
26259ac_ext=c
26260ac_cpp='$CPP $CPPFLAGS'
26261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26263ac_compiler_gnu=$ac_cv_c_compiler_gnu
26264
26265CC="$lt_save_CC"
26266
26267 else
26268 tagname=""
26269 fi
26270 ;;
26271
26272 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026273 ac_ext=c
26274ac_cpp='$CPP $CPPFLAGS'
26275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26277ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026278
26279
26280# Source file extension for RC test sources.
26281ac_ext=rc
26282
26283# Object file extension for compiled RC test sources.
26284objext=o
26285objext_RC=$objext
26286
26287# Code to be used in simple compile tests
26288lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26289
26290# Code to be used in simple link tests
26291lt_simple_link_test_code="$lt_simple_compile_test_code"
26292
26293# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26294
26295# If no C compiler was specified, use CC.
26296LTCC=${LTCC-"$CC"}
26297
Reid Spencera773bd52006-08-04 18:18:08 +000026298# If no C compiler flags were specified, use CFLAGS.
26299LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26300
John Criswell47fdd832003-07-14 16:52:07 +000026301# Allow CC to be a program name with arguments.
26302compiler=$CC
26303
26304
Reid Spencera773bd52006-08-04 18:18:08 +000026305# save warnings/boilerplate of simple test code
26306ac_outfile=conftest.$ac_objext
26307printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26308eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26309_lt_compiler_boilerplate=`cat conftest.err`
26310$rm conftest*
26311
26312ac_outfile=conftest.$ac_objext
26313printf "$lt_simple_link_test_code" >conftest.$ac_ext
26314eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26315_lt_linker_boilerplate=`cat conftest.err`
26316$rm conftest*
26317
26318
John Criswell47fdd832003-07-14 16:52:07 +000026319# Allow CC to be a program name with arguments.
26320lt_save_CC="$CC"
26321CC=${RC-"windres"}
26322compiler=$CC
26323compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026324for cc_temp in $compiler""; do
26325 case $cc_temp in
26326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26328 \-*) ;;
26329 *) break;;
26330 esac
26331done
26332cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26333
John Criswell47fdd832003-07-14 16:52:07 +000026334lt_cv_prog_compiler_c_o_RC=yes
26335
26336# The else clause should only fire when bootstrapping the
26337# libtool distribution, otherwise you forgot to ship ltmain.sh
26338# with your package, and you will get complaints that there are
26339# no rules to generate ltmain.sh.
26340if test -f "$ltmain"; then
26341 # See if we are running on zsh, and set the options which allow our commands through
26342 # without removal of \ escapes.
26343 if test -n "${ZSH_VERSION+set}" ; then
26344 setopt NO_GLOB_SUBST
26345 fi
26346 # Now quote all the things that may contain metacharacters while being
26347 # careful not to overquote the AC_SUBSTed values. We take copies of the
26348 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026349 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 +000026350 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026351 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26352 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26353 deplibs_check_method reload_flag reload_cmds need_locks \
26354 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26355 lt_cv_sys_global_symbol_to_c_name_address \
26356 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26357 old_postinstall_cmds old_postuninstall_cmds \
26358 compiler_RC \
26359 CC_RC \
26360 LD_RC \
26361 lt_prog_compiler_wl_RC \
26362 lt_prog_compiler_pic_RC \
26363 lt_prog_compiler_static_RC \
26364 lt_prog_compiler_no_builtin_flag_RC \
26365 export_dynamic_flag_spec_RC \
26366 thread_safe_flag_spec_RC \
26367 whole_archive_flag_spec_RC \
26368 enable_shared_with_static_runtimes_RC \
26369 old_archive_cmds_RC \
26370 old_archive_from_new_cmds_RC \
26371 predep_objects_RC \
26372 postdep_objects_RC \
26373 predeps_RC \
26374 postdeps_RC \
26375 compiler_lib_search_path_RC \
26376 archive_cmds_RC \
26377 archive_expsym_cmds_RC \
26378 postinstall_cmds_RC \
26379 postuninstall_cmds_RC \
26380 old_archive_from_expsyms_cmds_RC \
26381 allow_undefined_flag_RC \
26382 no_undefined_flag_RC \
26383 export_symbols_cmds_RC \
26384 hardcode_libdir_flag_spec_RC \
26385 hardcode_libdir_flag_spec_ld_RC \
26386 hardcode_libdir_separator_RC \
26387 hardcode_automatic_RC \
26388 module_cmds_RC \
26389 module_expsym_cmds_RC \
26390 lt_cv_prog_compiler_c_o_RC \
26391 exclude_expsyms_RC \
26392 include_expsyms_RC; do
26393
26394 case $var in
26395 old_archive_cmds_RC | \
26396 old_archive_from_new_cmds_RC | \
26397 archive_cmds_RC | \
26398 archive_expsym_cmds_RC | \
26399 module_cmds_RC | \
26400 module_expsym_cmds_RC | \
26401 old_archive_from_expsyms_cmds_RC | \
26402 export_symbols_cmds_RC | \
26403 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26404 postinstall_cmds | postuninstall_cmds | \
26405 old_postinstall_cmds | old_postuninstall_cmds | \
26406 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26407 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026408 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 +000026409 ;;
26410 *)
26411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26412 ;;
26413 esac
26414 done
26415
26416 case $lt_echo in
26417 *'\$0 --fallback-echo"')
26418 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26419 ;;
26420 esac
26421
26422cfgfile="$ofile"
26423
26424 cat <<__EOF__ >> "$cfgfile"
26425# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26426
26427# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26428
26429# Shell to use when invoking shell scripts.
26430SHELL=$lt_SHELL
26431
26432# Whether or not to build shared libraries.
26433build_libtool_libs=$enable_shared
26434
26435# Whether or not to build static libraries.
26436build_old_libs=$enable_static
26437
26438# Whether or not to add -lc for building shared libraries.
26439build_libtool_need_lc=$archive_cmds_need_lc_RC
26440
26441# Whether or not to disallow shared libs when runtime libs are static
26442allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26443
26444# Whether or not to optimize for fast installation.
26445fast_install=$enable_fast_install
26446
26447# The host system.
26448host_alias=$host_alias
26449host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026450host_os=$host_os
26451
26452# The build system.
26453build_alias=$build_alias
26454build=$build
26455build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026456
26457# An echo program that does not interpret backslashes.
26458echo=$lt_echo
26459
26460# The archiver.
26461AR=$lt_AR
26462AR_FLAGS=$lt_AR_FLAGS
26463
26464# A C compiler.
26465LTCC=$lt_LTCC
26466
Reid Spencera773bd52006-08-04 18:18:08 +000026467# LTCC compiler flags.
26468LTCFLAGS=$lt_LTCFLAGS
26469
John Criswell47fdd832003-07-14 16:52:07 +000026470# A language-specific compiler.
26471CC=$lt_compiler_RC
26472
26473# Is the compiler the GNU C compiler?
26474with_gcc=$GCC_RC
26475
26476# An ERE matcher.
26477EGREP=$lt_EGREP
26478
26479# The linker used to build libraries.
26480LD=$lt_LD_RC
26481
26482# Whether we need hard or soft links.
26483LN_S=$lt_LN_S
26484
26485# A BSD-compatible nm program.
26486NM=$lt_NM
26487
26488# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026489STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026490
26491# Used to examine libraries when file_magic_cmd begins "file"
26492MAGIC_CMD=$MAGIC_CMD
26493
26494# Used on cygwin: DLL creation program.
26495DLLTOOL="$DLLTOOL"
26496
26497# Used on cygwin: object dumper.
26498OBJDUMP="$OBJDUMP"
26499
26500# Used on cygwin: assembler.
26501AS="$AS"
26502
26503# The name of the directory that contains temporary libtool files.
26504objdir=$objdir
26505
26506# How to create reloadable object files.
26507reload_flag=$lt_reload_flag
26508reload_cmds=$lt_reload_cmds
26509
26510# How to pass a linker flag through the compiler.
26511wl=$lt_lt_prog_compiler_wl_RC
26512
26513# Object file suffix (normally "o").
26514objext="$ac_objext"
26515
26516# Old archive suffix (normally "a").
26517libext="$libext"
26518
26519# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026520shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026521
26522# Executable file suffix (normally "").
26523exeext="$exeext"
26524
26525# Additional compiler flags for building library objects.
26526pic_flag=$lt_lt_prog_compiler_pic_RC
26527pic_mode=$pic_mode
26528
26529# What is the maximum length of a command?
26530max_cmd_len=$lt_cv_sys_max_cmd_len
26531
26532# Does compiler simultaneously support -c and -o options?
26533compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26534
Reid Spencera773bd52006-08-04 18:18:08 +000026535# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026536need_locks=$lt_need_locks
26537
26538# Do we need the lib prefix for modules?
26539need_lib_prefix=$need_lib_prefix
26540
26541# Do we need a version for libraries?
26542need_version=$need_version
26543
26544# Whether dlopen is supported.
26545dlopen_support=$enable_dlopen
26546
26547# Whether dlopen of programs is supported.
26548dlopen_self=$enable_dlopen_self
26549
26550# Whether dlopen of statically linked programs is supported.
26551dlopen_self_static=$enable_dlopen_self_static
26552
26553# Compiler flag to prevent dynamic linking.
26554link_static_flag=$lt_lt_prog_compiler_static_RC
26555
26556# Compiler flag to turn off builtin functions.
26557no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26558
26559# Compiler flag to allow reflexive dlopens.
26560export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26561
26562# Compiler flag to generate shared objects directly from archives.
26563whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26564
26565# Compiler flag to generate thread-safe objects.
26566thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26567
26568# Library versioning type.
26569version_type=$version_type
26570
26571# Format of library name prefix.
26572libname_spec=$lt_libname_spec
26573
26574# List of archive names. First name is the real one, the rest are links.
26575# The last name is the one that the linker finds with -lNAME.
26576library_names_spec=$lt_library_names_spec
26577
26578# The coded name of the library, if different from the real name.
26579soname_spec=$lt_soname_spec
26580
26581# Commands used to build and install an old-style archive.
26582RANLIB=$lt_RANLIB
26583old_archive_cmds=$lt_old_archive_cmds_RC
26584old_postinstall_cmds=$lt_old_postinstall_cmds
26585old_postuninstall_cmds=$lt_old_postuninstall_cmds
26586
26587# Create an old-style archive from a shared archive.
26588old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26589
26590# Create a temporary old-style archive to link instead of a shared archive.
26591old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26592
26593# Commands used to build and install a shared archive.
26594archive_cmds=$lt_archive_cmds_RC
26595archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26596postinstall_cmds=$lt_postinstall_cmds
26597postuninstall_cmds=$lt_postuninstall_cmds
26598
26599# Commands used to build a loadable module (assumed same as above if empty)
26600module_cmds=$lt_module_cmds_RC
26601module_expsym_cmds=$lt_module_expsym_cmds_RC
26602
26603# Commands to strip libraries.
26604old_striplib=$lt_old_striplib
26605striplib=$lt_striplib
26606
26607# Dependencies to place before the objects being linked to create a
26608# shared library.
26609predep_objects=$lt_predep_objects_RC
26610
26611# Dependencies to place after the objects being linked to create a
26612# shared library.
26613postdep_objects=$lt_postdep_objects_RC
26614
26615# Dependencies to place before the objects being linked to create a
26616# shared library.
26617predeps=$lt_predeps_RC
26618
26619# Dependencies to place after the objects being linked to create a
26620# shared library.
26621postdeps=$lt_postdeps_RC
26622
26623# The library search path used internally by the compiler when linking
26624# a shared library.
26625compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26626
26627# Method to check whether dependent libraries are shared objects.
26628deplibs_check_method=$lt_deplibs_check_method
26629
26630# Command to use when deplibs_check_method == file_magic.
26631file_magic_cmd=$lt_file_magic_cmd
26632
26633# Flag that allows shared libraries with undefined symbols to be built.
26634allow_undefined_flag=$lt_allow_undefined_flag_RC
26635
26636# Flag that forces no undefined symbols.
26637no_undefined_flag=$lt_no_undefined_flag_RC
26638
26639# Commands used to finish a libtool library installation in a directory.
26640finish_cmds=$lt_finish_cmds
26641
26642# Same as above, but a single script fragment to be evaled but not shown.
26643finish_eval=$lt_finish_eval
26644
26645# Take the output of nm and produce a listing of raw symbols and C names.
26646global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26647
26648# Transform the output of nm in a proper C declaration
26649global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26650
26651# Transform the output of nm in a C name address pair
26652global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26653
26654# This is the shared library runtime path variable.
26655runpath_var=$runpath_var
26656
26657# This is the shared library path variable.
26658shlibpath_var=$shlibpath_var
26659
26660# Is shlibpath searched before the hard-coded library search path?
26661shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26662
26663# How to hardcode a shared library path into an executable.
26664hardcode_action=$hardcode_action_RC
26665
26666# Whether we should hardcode library paths into libraries.
26667hardcode_into_libs=$hardcode_into_libs
26668
26669# Flag to hardcode \$libdir into a binary during linking.
26670# This must work even if \$libdir does not exist.
26671hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26672
26673# If ld is used when linking, flag to hardcode \$libdir into
26674# a binary during linking. This must work even if \$libdir does
26675# not exist.
26676hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26677
26678# Whether we need a single -rpath flag with a separated argument.
26679hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26680
26681# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26682# resulting binary.
26683hardcode_direct=$hardcode_direct_RC
26684
26685# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26686# resulting binary.
26687hardcode_minus_L=$hardcode_minus_L_RC
26688
26689# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26690# the resulting binary.
26691hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26692
26693# Set to yes if building a shared library automatically hardcodes DIR into the library
26694# and all subsequent libraries and executables linked against it.
26695hardcode_automatic=$hardcode_automatic_RC
26696
26697# Variables whose values should be saved in libtool wrapper scripts and
26698# restored at relink time.
26699variables_saved_for_relink="$variables_saved_for_relink"
26700
26701# Whether libtool must link a program against all its dependency libraries.
26702link_all_deplibs=$link_all_deplibs_RC
26703
26704# Compile-time system search path for libraries
26705sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26706
26707# Run-time system search path for libraries
26708sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26709
26710# Fix the shell variable \$srcfile for the compiler.
26711fix_srcfile_path="$fix_srcfile_path_RC"
26712
26713# Set to yes if exported symbols are required.
26714always_export_symbols=$always_export_symbols_RC
26715
26716# The commands to list exported symbols.
26717export_symbols_cmds=$lt_export_symbols_cmds_RC
26718
26719# The commands to extract the exported symbol list from a shared archive.
26720extract_expsyms_cmds=$lt_extract_expsyms_cmds
26721
26722# Symbols that should not be listed in the preloaded symbols.
26723exclude_expsyms=$lt_exclude_expsyms_RC
26724
26725# Symbols that must always be exported.
26726include_expsyms=$lt_include_expsyms_RC
26727
26728# ### END LIBTOOL TAG CONFIG: $tagname
26729
26730__EOF__
26731
26732
26733else
26734 # If there is no Makefile yet, we rely on a make rule to execute
26735 # `config.status --recheck' to rerun these tests and create the
26736 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026737 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26738 if test -f "$ltmain_in"; then
26739 test -f Makefile && make "$ltmain"
26740 fi
John Criswell47fdd832003-07-14 16:52:07 +000026741fi
26742
26743
26744ac_ext=c
26745ac_cpp='$CPP $CPPFLAGS'
26746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26748ac_compiler_gnu=$ac_cv_c_compiler_gnu
26749
26750CC="$lt_save_CC"
26751
26752 ;;
26753
26754 *)
26755 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26756echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26757 { (exit 1); exit 1; }; }
26758 ;;
26759 esac
26760
26761 # Append the new tag name to the list of available tags.
26762 if test -n "$tagname" ; then
26763 available_tags="$available_tags $tagname"
26764 fi
26765 fi
26766 done
26767 IFS="$lt_save_ifs"
26768
26769 # Now substitute the updated list of available tags.
26770 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26771 mv "${ofile}T" "$ofile"
26772 chmod +x "$ofile"
26773 else
26774 rm -f "${ofile}T"
26775 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26776echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26777 { (exit 1); exit 1; }; }
26778 fi
26779fi
John Criswell7a73b802003-06-30 21:59:07 +000026780
26781
26782
26783# This can be used to rebuild libtool when needed
26784LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26785
26786# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026787LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026788
26789# Prevent multiple expansion
26790
26791
26792
John Criswell47fdd832003-07-14 16:52:07 +000026793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026810
Reid Spencer582a23c2004-12-29 07:07:57 +000026811if test "$lt_cv_dlopen_self" = "yes" ; then
26812
26813cat >>confdefs.h <<\_ACEOF
26814#define CAN_DLOPEN_SELF 1
26815_ACEOF
26816
26817fi
26818
Reid Spencer7931a782004-12-27 06:15:02 +000026819if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026820 LLVMGCC="llvm-gcc${EXEEXT}"
26821 LLVMGXX="llvm-g++${EXEEXT}"
26822 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26823set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026826if test "${ac_cv_path_LLVMGCC+set}" = set; then
26827 echo $ECHO_N "(cached) $ECHO_C" >&6
26828else
26829 case $LLVMGCC in
26830 [\\/]* | ?:[\\/]*)
26831 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26832 ;;
26833 *)
26834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26835for as_dir in $PATH
26836do
26837 IFS=$as_save_IFS
26838 test -z "$as_dir" && as_dir=.
26839 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026840 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 +000026841 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26843 break 2
26844 fi
26845done
26846done
Reid Spencera773bd52006-08-04 18:18:08 +000026847IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026848
Reid Spencer59473af2004-12-25 07:31:29 +000026849 ;;
26850esac
26851fi
26852LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026853if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026854 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26855echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026856else
Reid Spencera773bd52006-08-04 18:18:08 +000026857 { echo "$as_me:$LINENO: result: no" >&5
26858echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026859fi
26860
Reid Spencera773bd52006-08-04 18:18:08 +000026861
Reid Spencerc84492c2005-06-02 22:34:49 +000026862 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26863set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026864{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026866if test "${ac_cv_path_LLVMGXX+set}" = set; then
26867 echo $ECHO_N "(cached) $ECHO_C" >&6
26868else
26869 case $LLVMGXX in
26870 [\\/]* | ?:[\\/]*)
26871 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26872 ;;
26873 *)
26874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26875for as_dir in $PATH
26876do
26877 IFS=$as_save_IFS
26878 test -z "$as_dir" && as_dir=.
26879 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026880 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 +000026881 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26883 break 2
26884 fi
26885done
26886done
Reid Spencera773bd52006-08-04 18:18:08 +000026887IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026888
Reid Spencer59473af2004-12-25 07:31:29 +000026889 ;;
26890esac
26891fi
26892LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026893if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026894 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26895echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026896else
Reid Spencera773bd52006-08-04 18:18:08 +000026897 { echo "$as_me:$LINENO: result: no" >&5
26898echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026899fi
26900
Reid Spencera773bd52006-08-04 18:18:08 +000026901
Reid Spencer59473af2004-12-25 07:31:29 +000026902else
Devang Patel5d28b882007-12-04 22:54:47 +000026903 if test -z "$LLVMGCC"; then
26904 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26905 fi
26906 if test -z "$LLVMGXX"; then
26907 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26908 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026909 LLVMGCC=$LLVMGCC
26910
26911 LLVMGXX=$LLVMGXX
26912
26913fi
26914
Reid Spencera773bd52006-08-04 18:18:08 +000026915{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26916echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026917
Reid Spencer86901802004-12-08 23:07:27 +000026918ICC=no
26919IXX=no
26920case $CC in
26921 icc*|icpc*)
26922 ICC=yes
26923 IXX=yes
26924 ;;
26925 *)
26926 ;;
26927esac
26928
Duraid Madina937c60a2006-02-15 07:57:42 +000026929if test "$GCC" != "yes" && test "$ICC" != "yes"
26930then
26931 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26932echo "$as_me: error: gcc|icc required but not found" >&2;}
26933 { (exit 1); exit 1; }; }
26934fi
26935
26936if test "$GXX" != "yes" && test "$IXX" != "yes"
26937then
26938 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26939echo "$as_me: error: g++|icc required but not found" >&2;}
26940 { (exit 1); exit 1; }; }
26941fi
26942
Reid Spencer86901802004-12-08 23:07:27 +000026943if test "$GCC" = "yes"
26944then
Chris Lattner399c7c72008-02-05 19:43:53 +000026945 cat >conftest.$ac_ext <<_ACEOF
26946#if !defined(__GNUC__) || __GNUC__ < 3
26947#error Unsupported GCC version
26948#endif
26949
26950_ACEOF
26951rm -f conftest.$ac_objext
26952if { (ac_try="$ac_compile"
26953case "(($ac_try" in
26954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26955 *) ac_try_echo=$ac_try;;
26956esac
26957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26958 (eval "$ac_compile") 2>conftest.er1
26959 ac_status=$?
26960 grep -v '^ *+' conftest.er1 >conftest.err
26961 rm -f conftest.er1
26962 cat conftest.err >&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); } &&
26965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26966 { (case "(($ac_try" in
26967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26968 *) ac_try_echo=$ac_try;;
26969esac
26970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971 (eval "$ac_try") 2>&5
26972 ac_status=$?
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); }; } &&
26975 { ac_try='test -s conftest.$ac_objext'
26976 { (case "(($ac_try" in
26977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978 *) ac_try_echo=$ac_try;;
26979esac
26980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26981 (eval "$ac_try") 2>&5
26982 ac_status=$?
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); }; }; then
26985 :
26986else
26987 echo "$as_me: failed program was:" >&5
26988sed 's/^/| /' conftest.$ac_ext >&5
26989
26990 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026991echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26992 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000026993fi
26994
26995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026996fi
26997
26998if test -z "$llvm_cv_gnu_make_command"
26999then
27000 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27001echo "$as_me: error: GNU Make required but not found" >&2;}
27002 { (exit 1); exit 1; }; }
27003fi
27004
Reid Spencera773bd52006-08-04 18:18:08 +000027005{ echo "$as_me:$LINENO: result: ok" >&5
27006echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027007
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027008
John Criswell7a73b802003-06-30 21:59:07 +000027009
Reid Spencera773bd52006-08-04 18:18:08 +000027010{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27011echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027012if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27013 echo $ECHO_N "(cached) $ECHO_C" >&6
27014else
27015 ac_check_lib_save_LIBS=$LIBS
27016LIBS="-lelf $LIBS"
27017cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027018/* confdefs.h. */
27019_ACEOF
27020cat confdefs.h >>conftest.$ac_ext
27021cat >>conftest.$ac_ext <<_ACEOF
27022/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027023
Reid Spencera773bd52006-08-04 18:18:08 +000027024/* Override any GCC internal prototype to avoid an error.
27025 Use char because int might match the return type of a GCC
27026 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027027#ifdef __cplusplus
27028extern "C"
27029#endif
John Criswell7a73b802003-06-30 21:59:07 +000027030char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027031int
27032main ()
27033{
Reid Spencera773bd52006-08-04 18:18:08 +000027034return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027035 ;
27036 return 0;
27037}
27038_ACEOF
27039rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027040if { (ac_try="$ac_link"
27041case "(($ac_try" in
27042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27043 *) ac_try_echo=$ac_try;;
27044esac
27045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27046 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027048 grep -v '^ *+' conftest.er1 >conftest.err
27049 rm -f conftest.er1
27050 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027052 (exit $ac_status); } &&
27053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27054 { (case "(($ac_try" in
27055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056 *) ac_try_echo=$ac_try;;
27057esac
27058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059 (eval "$ac_try") 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; } &&
27063 { ac_try='test -s conftest$ac_exeext'
27064 { (case "(($ac_try" in
27065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066 *) ac_try_echo=$ac_try;;
27067esac
27068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27069 (eval "$ac_try") 2>&5
27070 ac_status=$?
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027073 ac_cv_lib_elf_elf_begin=yes
27074else
27075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027076sed 's/^/| /' conftest.$ac_ext >&5
27077
Reid Spencera773bd52006-08-04 18:18:08 +000027078 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027079fi
Reid Spencera773bd52006-08-04 18:18:08 +000027080
Tanya Lattnercf067672008-01-17 05:57:22 +000027081rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027082 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027083LIBS=$ac_check_lib_save_LIBS
27084fi
Reid Spencera773bd52006-08-04 18:18:08 +000027085{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27086echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027087if test $ac_cv_lib_elf_elf_begin = yes; then
27088 cat >>confdefs.h <<_ACEOF
27089#define HAVE_LIBELF 1
27090_ACEOF
27091
27092 LIBS="-lelf $LIBS"
27093
27094fi
27095
27096
Reid Spencera773bd52006-08-04 18:18:08 +000027097{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27098echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027099if test "${ac_cv_lib_m_sin+set}" = set; then
27100 echo $ECHO_N "(cached) $ECHO_C" >&6
27101else
27102 ac_check_lib_save_LIBS=$LIBS
27103LIBS="-lm $LIBS"
27104cat >conftest.$ac_ext <<_ACEOF
27105/* confdefs.h. */
27106_ACEOF
27107cat confdefs.h >>conftest.$ac_ext
27108cat >>conftest.$ac_ext <<_ACEOF
27109/* end confdefs.h. */
27110
Reid Spencera773bd52006-08-04 18:18:08 +000027111/* Override any GCC internal prototype to avoid an error.
27112 Use char because int might match the return type of a GCC
27113 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027114#ifdef __cplusplus
27115extern "C"
27116#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027117char sin ();
27118int
27119main ()
27120{
Reid Spencera773bd52006-08-04 18:18:08 +000027121return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027122 ;
27123 return 0;
27124}
27125_ACEOF
27126rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027127if { (ac_try="$ac_link"
27128case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27131esac
27132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027134 ac_status=$?
27135 grep -v '^ *+' conftest.er1 >conftest.err
27136 rm -f conftest.er1
27137 cat conftest.err >&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027139 (exit $ac_status); } &&
27140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27141 { (case "(($ac_try" in
27142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143 *) ac_try_echo=$ac_try;;
27144esac
27145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146 (eval "$ac_try") 2>&5
27147 ac_status=$?
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; } &&
27150 { ac_try='test -s conftest$ac_exeext'
27151 { (case "(($ac_try" in
27152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153 *) ac_try_echo=$ac_try;;
27154esac
27155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156 (eval "$ac_try") 2>&5
27157 ac_status=$?
27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027160 ac_cv_lib_m_sin=yes
27161else
27162 echo "$as_me: failed program was:" >&5
27163sed 's/^/| /' conftest.$ac_ext >&5
27164
Reid Spencera773bd52006-08-04 18:18:08 +000027165 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027166fi
Reid Spencera773bd52006-08-04 18:18:08 +000027167
Tanya Lattnercf067672008-01-17 05:57:22 +000027168rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027169 conftest$ac_exeext conftest.$ac_ext
27170LIBS=$ac_check_lib_save_LIBS
27171fi
Reid Spencera773bd52006-08-04 18:18:08 +000027172{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27173echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027174if test $ac_cv_lib_m_sin = yes; then
27175 cat >>confdefs.h <<_ACEOF
27176#define HAVE_LIBM 1
27177_ACEOF
27178
27179 LIBS="-lm $LIBS"
27180
27181fi
27182
Jeff Cohen28783c32007-01-12 18:22:38 +000027183if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027184
Reid Spencera773bd52006-08-04 18:18:08 +000027185{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27186echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027187if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027188 echo $ECHO_N "(cached) $ECHO_C" >&6
27189else
27190 ac_check_lib_save_LIBS=$LIBS
27191LIBS="-limagehlp $LIBS"
27192cat >conftest.$ac_ext <<_ACEOF
27193/* confdefs.h. */
27194_ACEOF
27195cat confdefs.h >>conftest.$ac_ext
27196cat >>conftest.$ac_ext <<_ACEOF
27197/* end confdefs.h. */
27198
Reid Spencer48fdf912006-06-01 19:03:21 +000027199
Reid Spencer484fc8e2006-06-01 16:55:59 +000027200int
27201main ()
27202{
Reid Spencera773bd52006-08-04 18:18:08 +000027203return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027204 ;
27205 return 0;
27206}
27207_ACEOF
27208rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027209if { (ac_try="$ac_link"
27210case "(($ac_try" in
27211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27212 *) ac_try_echo=$ac_try;;
27213esac
27214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27215 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027216 ac_status=$?
27217 grep -v '^ *+' conftest.er1 >conftest.err
27218 rm -f conftest.er1
27219 cat conftest.err >&5
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027221 (exit $ac_status); } &&
27222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27223 { (case "(($ac_try" in
27224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225 *) ac_try_echo=$ac_try;;
27226esac
27227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228 (eval "$ac_try") 2>&5
27229 ac_status=$?
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; } &&
27232 { ac_try='test -s conftest$ac_exeext'
27233 { (case "(($ac_try" in
27234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235 *) ac_try_echo=$ac_try;;
27236esac
27237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238 (eval "$ac_try") 2>&5
27239 ac_status=$?
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027242 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027243else
27244 echo "$as_me: failed program was:" >&5
27245sed 's/^/| /' conftest.$ac_ext >&5
27246
Reid Spencera773bd52006-08-04 18:18:08 +000027247 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027248fi
Reid Spencera773bd52006-08-04 18:18:08 +000027249
Tanya Lattnercf067672008-01-17 05:57:22 +000027250rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027251 conftest$ac_exeext conftest.$ac_ext
27252LIBS=$ac_check_lib_save_LIBS
27253fi
Reid Spencera773bd52006-08-04 18:18:08 +000027254{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27255echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027256if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027257 cat >>confdefs.h <<_ACEOF
27258#define HAVE_LIBIMAGEHLP 1
27259_ACEOF
27260
27261 LIBS="-limagehlp $LIBS"
27262
27263fi
27264
27265
Reid Spencera773bd52006-08-04 18:18:08 +000027266{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27267echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027268if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027269 echo $ECHO_N "(cached) $ECHO_C" >&6
27270else
27271 ac_check_lib_save_LIBS=$LIBS
27272LIBS="-lpsapi $LIBS"
27273cat >conftest.$ac_ext <<_ACEOF
27274/* confdefs.h. */
27275_ACEOF
27276cat confdefs.h >>conftest.$ac_ext
27277cat >>conftest.$ac_ext <<_ACEOF
27278/* end confdefs.h. */
27279
Reid Spencer48fdf912006-06-01 19:03:21 +000027280
Reid Spencer484fc8e2006-06-01 16:55:59 +000027281int
27282main ()
27283{
Reid Spencera773bd52006-08-04 18:18:08 +000027284return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027285 ;
27286 return 0;
27287}
27288_ACEOF
27289rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027290if { (ac_try="$ac_link"
27291case "(($ac_try" in
27292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27293 *) ac_try_echo=$ac_try;;
27294esac
27295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27296 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027297 ac_status=$?
27298 grep -v '^ *+' conftest.er1 >conftest.err
27299 rm -f conftest.er1
27300 cat conftest.err >&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027302 (exit $ac_status); } &&
27303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27304 { (case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27307esac
27308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_try") 2>&5
27310 ac_status=$?
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; } &&
27313 { ac_try='test -s conftest$ac_exeext'
27314 { (case "(($ac_try" in
27315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316 *) ac_try_echo=$ac_try;;
27317esac
27318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319 (eval "$ac_try") 2>&5
27320 ac_status=$?
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027323 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027324else
27325 echo "$as_me: failed program was:" >&5
27326sed 's/^/| /' conftest.$ac_ext >&5
27327
Reid Spencera773bd52006-08-04 18:18:08 +000027328 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027329fi
Reid Spencera773bd52006-08-04 18:18:08 +000027330
Tanya Lattnercf067672008-01-17 05:57:22 +000027331rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027332 conftest$ac_exeext conftest.$ac_ext
27333LIBS=$ac_check_lib_save_LIBS
27334fi
Reid Spencera773bd52006-08-04 18:18:08 +000027335{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27336echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027337if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027338 cat >>confdefs.h <<_ACEOF
27339#define HAVE_LIBPSAPI 1
27340_ACEOF
27341
27342 LIBS="-lpsapi $LIBS"
27343
27344fi
27345
27346fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027347
Reid Spencera773bd52006-08-04 18:18:08 +000027348{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27349echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027350if test "${ac_cv_search_dlopen+set}" = set; then
27351 echo $ECHO_N "(cached) $ECHO_C" >&6
27352else
27353 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027354cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027355/* confdefs.h. */
27356_ACEOF
27357cat confdefs.h >>conftest.$ac_ext
27358cat >>conftest.$ac_ext <<_ACEOF
27359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027360
Reid Spencera773bd52006-08-04 18:18:08 +000027361/* Override any GCC internal prototype to avoid an error.
27362 Use char because int might match the return type of a GCC
27363 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027364#ifdef __cplusplus
27365extern "C"
27366#endif
John Criswell7a73b802003-06-30 21:59:07 +000027367char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027368int
27369main ()
27370{
Reid Spencera773bd52006-08-04 18:18:08 +000027371return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027372 ;
27373 return 0;
27374}
27375_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027376for ac_lib in '' dl; do
27377 if test -z "$ac_lib"; then
27378 ac_res="none required"
27379 else
27380 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027382 fi
27383 rm -f conftest.$ac_objext conftest$ac_exeext
27384if { (ac_try="$ac_link"
27385case "(($ac_try" in
27386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387 *) ac_try_echo=$ac_try;;
27388esac
27389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27390 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027391 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027392 grep -v '^ *+' conftest.er1 >conftest.err
27393 rm -f conftest.er1
27394 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027396 (exit $ac_status); } &&
27397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27398 { (case "(($ac_try" in
27399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400 *) ac_try_echo=$ac_try;;
27401esac
27402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403 (eval "$ac_try") 2>&5
27404 ac_status=$?
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); }; } &&
27407 { ac_try='test -s conftest$ac_exeext'
27408 { (case "(($ac_try" in
27409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27411esac
27412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27413 (eval "$ac_try") 2>&5
27414 ac_status=$?
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027417 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027418else
27419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027420sed 's/^/| /' conftest.$ac_ext >&5
27421
Reid Spencera773bd52006-08-04 18:18:08 +000027422
John Criswell7a73b802003-06-30 21:59:07 +000027423fi
Reid Spencera773bd52006-08-04 18:18:08 +000027424
Tanya Lattnercf067672008-01-17 05:57:22 +000027425rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027426 conftest$ac_exeext
27427 if test "${ac_cv_search_dlopen+set}" = set; then
27428 break
John Criswell7a73b802003-06-30 21:59:07 +000027429fi
Reid Spencera773bd52006-08-04 18:18:08 +000027430done
27431if test "${ac_cv_search_dlopen+set}" = set; then
27432 :
27433else
27434 ac_cv_search_dlopen=no
27435fi
27436rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027437LIBS=$ac_func_search_save_LIBS
27438fi
Reid Spencera773bd52006-08-04 18:18:08 +000027439{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27440echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27441ac_res=$ac_cv_search_dlopen
27442if test "$ac_res" != no; then
27443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027444
27445cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027446#define HAVE_DLOPEN 1
27447_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027448
27449else
Brian Gaekec45be042003-10-07 06:01:34 +000027450 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27451echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027452fi
27453
27454
Reid Spencera773bd52006-08-04 18:18:08 +000027455{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27456echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027457if test "${ac_cv_search_mallinfo+set}" = set; then
27458 echo $ECHO_N "(cached) $ECHO_C" >&6
27459else
27460 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027461cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027462/* confdefs.h. */
27463_ACEOF
27464cat confdefs.h >>conftest.$ac_ext
27465cat >>conftest.$ac_ext <<_ACEOF
27466/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027467
Reid Spencera773bd52006-08-04 18:18:08 +000027468/* Override any GCC internal prototype to avoid an error.
27469 Use char because int might match the return type of a GCC
27470 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027471#ifdef __cplusplus
27472extern "C"
27473#endif
John Criswell7a73b802003-06-30 21:59:07 +000027474char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027475int
27476main ()
27477{
Reid Spencera773bd52006-08-04 18:18:08 +000027478return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027479 ;
27480 return 0;
27481}
27482_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027483for ac_lib in '' malloc; do
27484 if test -z "$ac_lib"; then
27485 ac_res="none required"
27486 else
27487 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027489 fi
27490 rm -f conftest.$ac_objext conftest$ac_exeext
27491if { (ac_try="$ac_link"
27492case "(($ac_try" in
27493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27494 *) ac_try_echo=$ac_try;;
27495esac
27496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27497 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027498 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027499 grep -v '^ *+' conftest.er1 >conftest.err
27500 rm -f conftest.er1
27501 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027503 (exit $ac_status); } &&
27504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27505 { (case "(($ac_try" in
27506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27507 *) ac_try_echo=$ac_try;;
27508esac
27509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27510 (eval "$ac_try") 2>&5
27511 ac_status=$?
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); }; } &&
27514 { ac_try='test -s conftest$ac_exeext'
27515 { (case "(($ac_try" in
27516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27517 *) ac_try_echo=$ac_try;;
27518esac
27519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27520 (eval "$ac_try") 2>&5
27521 ac_status=$?
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027524 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027525else
27526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027527sed 's/^/| /' conftest.$ac_ext >&5
27528
Reid Spencera773bd52006-08-04 18:18:08 +000027529
John Criswell7a73b802003-06-30 21:59:07 +000027530fi
Reid Spencera773bd52006-08-04 18:18:08 +000027531
Tanya Lattnercf067672008-01-17 05:57:22 +000027532rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027533 conftest$ac_exeext
27534 if test "${ac_cv_search_mallinfo+set}" = set; then
27535 break
John Criswell7a73b802003-06-30 21:59:07 +000027536fi
Reid Spencera773bd52006-08-04 18:18:08 +000027537done
27538if test "${ac_cv_search_mallinfo+set}" = set; then
27539 :
27540else
27541 ac_cv_search_mallinfo=no
27542fi
27543rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027544LIBS=$ac_func_search_save_LIBS
27545fi
Reid Spencera773bd52006-08-04 18:18:08 +000027546{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27547echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27548ac_res=$ac_cv_search_mallinfo
27549if test "$ac_res" != no; then
27550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027551
27552cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027553#define HAVE_MALLINFO 1
27554_ACEOF
27555
27556fi
27557
27558
Reid Spencer0a262ba2005-08-24 10:07:20 +000027559if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027560
Reid Spencera773bd52006-08-04 18:18:08 +000027561{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27562echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027563if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27564 echo $ECHO_N "(cached) $ECHO_C" >&6
27565else
27566 ac_check_lib_save_LIBS=$LIBS
27567LIBS="-lpthread $LIBS"
27568cat >conftest.$ac_ext <<_ACEOF
27569/* confdefs.h. */
27570_ACEOF
27571cat confdefs.h >>conftest.$ac_ext
27572cat >>conftest.$ac_ext <<_ACEOF
27573/* end confdefs.h. */
27574
Reid Spencera773bd52006-08-04 18:18:08 +000027575/* Override any GCC internal prototype to avoid an error.
27576 Use char because int might match the return type of a GCC
27577 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027578#ifdef __cplusplus
27579extern "C"
27580#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027581char pthread_mutex_init ();
27582int
27583main ()
27584{
Reid Spencera773bd52006-08-04 18:18:08 +000027585return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027586 ;
27587 return 0;
27588}
27589_ACEOF
27590rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027591if { (ac_try="$ac_link"
27592case "(($ac_try" in
27593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27594 *) ac_try_echo=$ac_try;;
27595esac
27596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27597 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027598 ac_status=$?
27599 grep -v '^ *+' conftest.er1 >conftest.err
27600 rm -f conftest.er1
27601 cat conftest.err >&5
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027603 (exit $ac_status); } &&
27604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27605 { (case "(($ac_try" in
27606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27607 *) ac_try_echo=$ac_try;;
27608esac
27609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27610 (eval "$ac_try") 2>&5
27611 ac_status=$?
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; } &&
27614 { ac_try='test -s conftest$ac_exeext'
27615 { (case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27618esac
27619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_try") 2>&5
27621 ac_status=$?
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027624 ac_cv_lib_pthread_pthread_mutex_init=yes
27625else
27626 echo "$as_me: failed program was:" >&5
27627sed 's/^/| /' conftest.$ac_ext >&5
27628
Reid Spencera773bd52006-08-04 18:18:08 +000027629 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027630fi
Reid Spencera773bd52006-08-04 18:18:08 +000027631
Tanya Lattnercf067672008-01-17 05:57:22 +000027632rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027633 conftest$ac_exeext conftest.$ac_ext
27634LIBS=$ac_check_lib_save_LIBS
27635fi
Reid Spencera773bd52006-08-04 18:18:08 +000027636{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27637echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027638if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27639 cat >>confdefs.h <<_ACEOF
27640#define HAVE_LIBPTHREAD 1
27641_ACEOF
27642
27643 LIBS="-lpthread $LIBS"
27644
27645fi
27646
Reid Spencera773bd52006-08-04 18:18:08 +000027647 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27648echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027649if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27650 echo $ECHO_N "(cached) $ECHO_C" >&6
27651else
27652 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027653cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027654/* confdefs.h. */
27655_ACEOF
27656cat confdefs.h >>conftest.$ac_ext
27657cat >>conftest.$ac_ext <<_ACEOF
27658/* end confdefs.h. */
27659
Reid Spencera773bd52006-08-04 18:18:08 +000027660/* Override any GCC internal prototype to avoid an error.
27661 Use char because int might match the return type of a GCC
27662 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027663#ifdef __cplusplus
27664extern "C"
27665#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027666char pthread_mutex_lock ();
27667int
27668main ()
27669{
Reid Spencera773bd52006-08-04 18:18:08 +000027670return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027671 ;
27672 return 0;
27673}
27674_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027675for ac_lib in '' pthread; do
27676 if test -z "$ac_lib"; then
27677 ac_res="none required"
27678 else
27679 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027681 fi
27682 rm -f conftest.$ac_objext conftest$ac_exeext
27683if { (ac_try="$ac_link"
27684case "(($ac_try" in
27685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686 *) ac_try_echo=$ac_try;;
27687esac
27688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027690 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027691 grep -v '^ *+' conftest.er1 >conftest.err
27692 rm -f conftest.er1
27693 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027695 (exit $ac_status); } &&
27696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27697 { (case "(($ac_try" in
27698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27699 *) ac_try_echo=$ac_try;;
27700esac
27701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27702 (eval "$ac_try") 2>&5
27703 ac_status=$?
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; } &&
27706 { ac_try='test -s conftest$ac_exeext'
27707 { (case "(($ac_try" in
27708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27709 *) ac_try_echo=$ac_try;;
27710esac
27711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27712 (eval "$ac_try") 2>&5
27713 ac_status=$?
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027716 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027717else
27718 echo "$as_me: failed program was:" >&5
27719sed 's/^/| /' conftest.$ac_ext >&5
27720
Reid Spencera773bd52006-08-04 18:18:08 +000027721
Brian Gaeke5f268f72003-12-05 19:29:01 +000027722fi
Reid Spencera773bd52006-08-04 18:18:08 +000027723
Tanya Lattnercf067672008-01-17 05:57:22 +000027724rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027725 conftest$ac_exeext
27726 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27727 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027728fi
Reid Spencera773bd52006-08-04 18:18:08 +000027729done
27730if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27731 :
27732else
27733 ac_cv_search_pthread_mutex_lock=no
27734fi
27735rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027736LIBS=$ac_func_search_save_LIBS
27737fi
Reid Spencera773bd52006-08-04 18:18:08 +000027738{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27739echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27740ac_res=$ac_cv_search_pthread_mutex_lock
27741if test "$ac_res" != no; then
27742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027743
John Criswell40468462004-09-24 21:19:06 +000027744cat >>confdefs.h <<\_ACEOF
27745#define HAVE_PTHREAD_MUTEX_LOCK 1
27746_ACEOF
27747
27748fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027749
Reid Spencer0a262ba2005-08-24 10:07:20 +000027750fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027751
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027752
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027753# Check whether --with-udis86 was given.
27754if test "${with_udis86+set}" = set; then
27755 withval=$with_udis86;
27756 USE_UDIS86=1
27757
27758 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027759 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027760 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27761 esac
27762
27763{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27764echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27765if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27766 echo $ECHO_N "(cached) $ECHO_C" >&6
27767else
27768 ac_check_lib_save_LIBS=$LIBS
27769LIBS="-ludis86 $LIBS"
27770cat >conftest.$ac_ext <<_ACEOF
27771/* confdefs.h. */
27772_ACEOF
27773cat confdefs.h >>conftest.$ac_ext
27774cat >>conftest.$ac_ext <<_ACEOF
27775/* end confdefs.h. */
27776
27777/* Override any GCC internal prototype to avoid an error.
27778 Use char because int might match the return type of a GCC
27779 builtin and then its argument prototype would still apply. */
27780#ifdef __cplusplus
27781extern "C"
27782#endif
27783char ud_init ();
27784int
27785main ()
27786{
27787return ud_init ();
27788 ;
27789 return 0;
27790}
27791_ACEOF
27792rm -f conftest.$ac_objext conftest$ac_exeext
27793if { (ac_try="$ac_link"
27794case "(($ac_try" in
27795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27796 *) ac_try_echo=$ac_try;;
27797esac
27798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27799 (eval "$ac_link") 2>conftest.er1
27800 ac_status=$?
27801 grep -v '^ *+' conftest.er1 >conftest.err
27802 rm -f conftest.er1
27803 cat conftest.err >&5
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027805 (exit $ac_status); } &&
27806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27807 { (case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27810esac
27811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812 (eval "$ac_try") 2>&5
27813 ac_status=$?
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; } &&
27816 { ac_try='test -s conftest$ac_exeext'
27817 { (case "(($ac_try" in
27818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27819 *) ac_try_echo=$ac_try;;
27820esac
27821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27822 (eval "$ac_try") 2>&5
27823 ac_status=$?
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027826 ac_cv_lib_udis86_ud_init=yes
27827else
27828 echo "$as_me: failed program was:" >&5
27829sed 's/^/| /' conftest.$ac_ext >&5
27830
27831 ac_cv_lib_udis86_ud_init=no
27832fi
27833
Tanya Lattnercf067672008-01-17 05:57:22 +000027834rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027835 conftest$ac_exeext conftest.$ac_ext
27836LIBS=$ac_check_lib_save_LIBS
27837fi
27838{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27839echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27840if test $ac_cv_lib_udis86_ud_init = yes; then
27841 cat >>confdefs.h <<_ACEOF
27842#define HAVE_LIBUDIS86 1
27843_ACEOF
27844
27845 LIBS="-ludis86 $LIBS"
27846
27847else
27848
27849 echo "Error! You need to have libudis86 around."
27850 exit -1
27851
27852fi
27853
27854
27855else
27856 USE_UDIS86=0
27857
27858fi
27859
27860
27861cat >>confdefs.h <<_ACEOF
27862#define USE_UDIS86 $USE_UDIS86
27863_ACEOF
27864
27865
27866
Reid Spencer59473af2004-12-25 07:31:29 +000027867
27868
27869
27870
27871
27872ac_header_dirent=no
27873for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27874 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027875{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27876echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027878 echo $ECHO_N "(cached) $ECHO_C" >&6
27879else
27880 cat >conftest.$ac_ext <<_ACEOF
27881/* confdefs.h. */
27882_ACEOF
27883cat confdefs.h >>conftest.$ac_ext
27884cat >>conftest.$ac_ext <<_ACEOF
27885/* end confdefs.h. */
27886#include <sys/types.h>
27887#include <$ac_hdr>
27888
27889int
27890main ()
27891{
27892if ((DIR *) 0)
27893return 0;
27894 ;
27895 return 0;
27896}
27897_ACEOF
27898rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027899if { (ac_try="$ac_compile"
27900case "(($ac_try" in
27901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902 *) ac_try_echo=$ac_try;;
27903esac
27904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027906 ac_status=$?
27907 grep -v '^ *+' conftest.er1 >conftest.err
27908 rm -f conftest.er1
27909 cat conftest.err >&5
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027911 (exit $ac_status); } &&
27912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27913 { (case "(($ac_try" in
27914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915 *) ac_try_echo=$ac_try;;
27916esac
27917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918 (eval "$ac_try") 2>&5
27919 ac_status=$?
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); }; } &&
27922 { ac_try='test -s conftest.$ac_objext'
27923 { (case "(($ac_try" in
27924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925 *) ac_try_echo=$ac_try;;
27926esac
27927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928 (eval "$ac_try") 2>&5
27929 ac_status=$?
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027932 eval "$as_ac_Header=yes"
27933else
27934 echo "$as_me: failed program was:" >&5
27935sed 's/^/| /' conftest.$ac_ext >&5
27936
Reid Spencera773bd52006-08-04 18:18:08 +000027937 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027938fi
Reid Spencera773bd52006-08-04 18:18:08 +000027939
27940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027941fi
Reid Spencera773bd52006-08-04 18:18:08 +000027942ac_res=`eval echo '${'$as_ac_Header'}'`
27943 { echo "$as_me:$LINENO: result: $ac_res" >&5
27944echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027945if test `eval echo '${'$as_ac_Header'}'` = yes; then
27946 cat >>confdefs.h <<_ACEOF
27947#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27948_ACEOF
27949
27950ac_header_dirent=$ac_hdr; break
27951fi
27952
27953done
27954# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27955if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027956 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27957echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027958if test "${ac_cv_search_opendir+set}" = set; then
27959 echo $ECHO_N "(cached) $ECHO_C" >&6
27960else
27961 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027962cat >conftest.$ac_ext <<_ACEOF
27963/* confdefs.h. */
27964_ACEOF
27965cat confdefs.h >>conftest.$ac_ext
27966cat >>conftest.$ac_ext <<_ACEOF
27967/* end confdefs.h. */
27968
Reid Spencera773bd52006-08-04 18:18:08 +000027969/* Override any GCC internal prototype to avoid an error.
27970 Use char because int might match the return type of a GCC
27971 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027972#ifdef __cplusplus
27973extern "C"
27974#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027975char opendir ();
27976int
27977main ()
27978{
Reid Spencera773bd52006-08-04 18:18:08 +000027979return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027980 ;
27981 return 0;
27982}
27983_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027984for ac_lib in '' dir; do
27985 if test -z "$ac_lib"; then
27986 ac_res="none required"
27987 else
27988 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027990 fi
27991 rm -f conftest.$ac_objext conftest$ac_exeext
27992if { (ac_try="$ac_link"
27993case "(($ac_try" in
27994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995 *) ac_try_echo=$ac_try;;
27996esac
27997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027999 ac_status=$?
28000 grep -v '^ *+' conftest.er1 >conftest.err
28001 rm -f conftest.er1
28002 cat conftest.err >&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028004 (exit $ac_status); } &&
28005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28006 { (case "(($ac_try" in
28007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28008 *) ac_try_echo=$ac_try;;
28009esac
28010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28011 (eval "$ac_try") 2>&5
28012 ac_status=$?
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014 (exit $ac_status); }; } &&
28015 { ac_try='test -s conftest$ac_exeext'
28016 { (case "(($ac_try" in
28017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28018 *) ac_try_echo=$ac_try;;
28019esac
28020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28021 (eval "$ac_try") 2>&5
28022 ac_status=$?
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028025 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028026else
28027 echo "$as_me: failed program was:" >&5
28028sed 's/^/| /' conftest.$ac_ext >&5
28029
Reid Spencera773bd52006-08-04 18:18:08 +000028030
Reid Spencer59473af2004-12-25 07:31:29 +000028031fi
Reid Spencera773bd52006-08-04 18:18:08 +000028032
Tanya Lattnercf067672008-01-17 05:57:22 +000028033rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028034 conftest$ac_exeext
28035 if test "${ac_cv_search_opendir+set}" = set; then
28036 break
Reid Spencer59473af2004-12-25 07:31:29 +000028037fi
Reid Spencera773bd52006-08-04 18:18:08 +000028038done
28039if test "${ac_cv_search_opendir+set}" = set; then
28040 :
28041else
28042 ac_cv_search_opendir=no
28043fi
28044rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028045LIBS=$ac_func_search_save_LIBS
28046fi
Reid Spencera773bd52006-08-04 18:18:08 +000028047{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28048echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28049ac_res=$ac_cv_search_opendir
28050if test "$ac_res" != no; then
28051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028052
28053fi
28054
28055else
Reid Spencera773bd52006-08-04 18:18:08 +000028056 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28057echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028058if test "${ac_cv_search_opendir+set}" = set; then
28059 echo $ECHO_N "(cached) $ECHO_C" >&6
28060else
28061 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028062cat >conftest.$ac_ext <<_ACEOF
28063/* confdefs.h. */
28064_ACEOF
28065cat confdefs.h >>conftest.$ac_ext
28066cat >>conftest.$ac_ext <<_ACEOF
28067/* end confdefs.h. */
28068
Reid Spencera773bd52006-08-04 18:18:08 +000028069/* Override any GCC internal prototype to avoid an error.
28070 Use char because int might match the return type of a GCC
28071 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028072#ifdef __cplusplus
28073extern "C"
28074#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028075char opendir ();
28076int
28077main ()
28078{
Reid Spencera773bd52006-08-04 18:18:08 +000028079return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028080 ;
28081 return 0;
28082}
28083_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028084for ac_lib in '' x; do
28085 if test -z "$ac_lib"; then
28086 ac_res="none required"
28087 else
28088 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028090 fi
28091 rm -f conftest.$ac_objext conftest$ac_exeext
28092if { (ac_try="$ac_link"
28093case "(($ac_try" in
28094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095 *) ac_try_echo=$ac_try;;
28096esac
28097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028099 ac_status=$?
28100 grep -v '^ *+' conftest.er1 >conftest.err
28101 rm -f conftest.er1
28102 cat conftest.err >&5
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028104 (exit $ac_status); } &&
28105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28106 { (case "(($ac_try" in
28107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108 *) ac_try_echo=$ac_try;;
28109esac
28110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111 (eval "$ac_try") 2>&5
28112 ac_status=$?
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); }; } &&
28115 { ac_try='test -s conftest$ac_exeext'
28116 { (case "(($ac_try" in
28117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118 *) ac_try_echo=$ac_try;;
28119esac
28120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121 (eval "$ac_try") 2>&5
28122 ac_status=$?
28123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028125 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028126else
28127 echo "$as_me: failed program was:" >&5
28128sed 's/^/| /' conftest.$ac_ext >&5
28129
Reid Spencera773bd52006-08-04 18:18:08 +000028130
Reid Spencer59473af2004-12-25 07:31:29 +000028131fi
Reid Spencera773bd52006-08-04 18:18:08 +000028132
Tanya Lattnercf067672008-01-17 05:57:22 +000028133rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028134 conftest$ac_exeext
28135 if test "${ac_cv_search_opendir+set}" = set; then
28136 break
Reid Spencer59473af2004-12-25 07:31:29 +000028137fi
Reid Spencera773bd52006-08-04 18:18:08 +000028138done
28139if test "${ac_cv_search_opendir+set}" = set; then
28140 :
28141else
28142 ac_cv_search_opendir=no
28143fi
28144rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028145LIBS=$ac_func_search_save_LIBS
28146fi
Reid Spencera773bd52006-08-04 18:18:08 +000028147{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28148echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28149ac_res=$ac_cv_search_opendir
28150if test "$ac_res" != no; then
28151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028152
28153fi
28154
28155fi
28156
Reid Spencera773bd52006-08-04 18:18:08 +000028157{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28158echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028159if test "${ac_cv_header_mmap_anon+set}" = set; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28161else
28162 ac_ext=c
28163ac_cpp='$CPP $CPPFLAGS'
28164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28166ac_compiler_gnu=$ac_cv_c_compiler_gnu
28167
28168 cat >conftest.$ac_ext <<_ACEOF
28169/* confdefs.h. */
28170_ACEOF
28171cat confdefs.h >>conftest.$ac_ext
28172cat >>conftest.$ac_ext <<_ACEOF
28173/* end confdefs.h. */
28174#include <sys/mman.h>
28175#include <unistd.h>
28176#include <fcntl.h>
28177int
28178main ()
28179{
28180mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28181 ;
28182 return 0;
28183}
28184_ACEOF
28185rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028186if { (ac_try="$ac_compile"
28187case "(($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_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028193 ac_status=$?
28194 grep -v '^ *+' conftest.er1 >conftest.err
28195 rm -f conftest.er1
28196 cat conftest.err >&5
28197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028198 (exit $ac_status); } &&
28199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28200 { (case "(($ac_try" in
28201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28202 *) ac_try_echo=$ac_try;;
28203esac
28204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28205 (eval "$ac_try") 2>&5
28206 ac_status=$?
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); }; } &&
28209 { ac_try='test -s conftest.$ac_objext'
28210 { (case "(($ac_try" in
28211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212 *) ac_try_echo=$ac_try;;
28213esac
28214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215 (eval "$ac_try") 2>&5
28216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028219 ac_cv_header_mmap_anon=yes
28220else
28221 echo "$as_me: failed program was:" >&5
28222sed 's/^/| /' conftest.$ac_ext >&5
28223
Reid Spencera773bd52006-08-04 18:18:08 +000028224 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028225fi
Reid Spencera773bd52006-08-04 18:18:08 +000028226
28227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028228 ac_ext=c
28229ac_cpp='$CPP $CPPFLAGS'
28230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28232ac_compiler_gnu=$ac_cv_c_compiler_gnu
28233
28234
28235fi
Reid Spencera773bd52006-08-04 18:18:08 +000028236{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28237echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028238if test "$ac_cv_header_mmap_anon" = yes; then
28239
28240cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028241#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028242_ACEOF
28243
28244fi
28245
Reid Spencera773bd52006-08-04 18:18:08 +000028246{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28247echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028248if test "${ac_cv_header_stat_broken+set}" = set; then
28249 echo $ECHO_N "(cached) $ECHO_C" >&6
28250else
28251 cat >conftest.$ac_ext <<_ACEOF
28252/* confdefs.h. */
28253_ACEOF
28254cat confdefs.h >>conftest.$ac_ext
28255cat >>conftest.$ac_ext <<_ACEOF
28256/* end confdefs.h. */
28257#include <sys/types.h>
28258#include <sys/stat.h>
28259
Reid Spencera773bd52006-08-04 18:18:08 +000028260#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnercf067672008-01-17 05:57:22 +000028261# if S_ISBLK (S_IFDIR)
28262You lose.
28263# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028264#endif
28265
Reid Spencera773bd52006-08-04 18:18:08 +000028266#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnercf067672008-01-17 05:57:22 +000028267# if S_ISBLK (S_IFCHR)
28268You lose.
28269# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028270#endif
28271
Reid Spencera773bd52006-08-04 18:18:08 +000028272#if defined S_ISLNK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028273# if S_ISLNK (S_IFREG)
28274You lose.
28275# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028276#endif
28277
Reid Spencera773bd52006-08-04 18:18:08 +000028278#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028279# if S_ISSOCK (S_IFREG)
28280You lose.
28281# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028282#endif
28283
28284_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +000028285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28286 $EGREP "You lose" >/dev/null 2>&1; then
28287 ac_cv_header_stat_broken=yes
Scott Michel96dcd2b2007-12-05 21:24:02 +000028288else
Tanya Lattnercf067672008-01-17 05:57:22 +000028289 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000028290fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028291rm -f conftest*
Scott Michel96dcd2b2007-12-05 21:24:02 +000028292
Reid Spencer59473af2004-12-25 07:31:29 +000028293fi
Reid Spencera773bd52006-08-04 18:18:08 +000028294{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28295echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028296if test $ac_cv_header_stat_broken = yes; then
28297
28298cat >>confdefs.h <<\_ACEOF
28299#define STAT_MACROS_BROKEN 1
28300_ACEOF
28301
28302fi
28303
Reid Spencera773bd52006-08-04 18:18:08 +000028304{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28305echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028306if test "${ac_cv_header_stdc+set}" = set; then
28307 echo $ECHO_N "(cached) $ECHO_C" >&6
28308else
28309 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028310/* confdefs.h. */
28311_ACEOF
28312cat confdefs.h >>conftest.$ac_ext
28313cat >>conftest.$ac_ext <<_ACEOF
28314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028315#include <stdlib.h>
28316#include <stdarg.h>
28317#include <string.h>
28318#include <float.h>
28319
John Criswell0c38eaf2003-09-10 15:17:25 +000028320int
28321main ()
28322{
28323
28324 ;
28325 return 0;
28326}
John Criswell7a73b802003-06-30 21:59:07 +000028327_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028328rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028329if { (ac_try="$ac_compile"
28330case "(($ac_try" in
28331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332 *) ac_try_echo=$ac_try;;
28333esac
28334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28335 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028336 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028337 grep -v '^ *+' conftest.er1 >conftest.err
28338 rm -f conftest.er1
28339 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028341 (exit $ac_status); } &&
28342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28343 { (case "(($ac_try" in
28344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28345 *) ac_try_echo=$ac_try;;
28346esac
28347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28348 (eval "$ac_try") 2>&5
28349 ac_status=$?
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); }; } &&
28352 { ac_try='test -s conftest.$ac_objext'
28353 { (case "(($ac_try" in
28354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355 *) ac_try_echo=$ac_try;;
28356esac
28357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358 (eval "$ac_try") 2>&5
28359 ac_status=$?
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028362 ac_cv_header_stdc=yes
28363else
28364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028365sed 's/^/| /' conftest.$ac_ext >&5
28366
Reid Spencera773bd52006-08-04 18:18:08 +000028367 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028368fi
Reid Spencera773bd52006-08-04 18:18:08 +000028369
28370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028371
28372if test $ac_cv_header_stdc = yes; then
28373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28374 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028375/* confdefs.h. */
28376_ACEOF
28377cat confdefs.h >>conftest.$ac_ext
28378cat >>conftest.$ac_ext <<_ACEOF
28379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028380#include <string.h>
28381
28382_ACEOF
28383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028384 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028385 :
28386else
28387 ac_cv_header_stdc=no
28388fi
28389rm -f conftest*
28390
28391fi
28392
28393if test $ac_cv_header_stdc = yes; then
28394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28395 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028396/* confdefs.h. */
28397_ACEOF
28398cat confdefs.h >>conftest.$ac_ext
28399cat >>conftest.$ac_ext <<_ACEOF
28400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028401#include <stdlib.h>
28402
28403_ACEOF
28404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028405 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028406 :
28407else
28408 ac_cv_header_stdc=no
28409fi
28410rm -f conftest*
28411
28412fi
28413
28414if test $ac_cv_header_stdc = yes; then
28415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28416 if test "$cross_compiling" = yes; then
28417 :
28418else
28419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028420/* confdefs.h. */
28421_ACEOF
28422cat confdefs.h >>conftest.$ac_ext
28423cat >>conftest.$ac_ext <<_ACEOF
28424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028425#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028426#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028427#if ((' ' & 0x0FF) == 0x020)
28428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28430#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028431# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028432 (('a' <= (c) && (c) <= 'i') \
28433 || ('j' <= (c) && (c) <= 'r') \
28434 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28436#endif
28437
28438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28439int
28440main ()
28441{
28442 int i;
28443 for (i = 0; i < 256; i++)
28444 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028445 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028446 return 2;
28447 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028448}
28449_ACEOF
28450rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028451if { (ac_try="$ac_link"
28452case "(($ac_try" in
28453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28454 *) ac_try_echo=$ac_try;;
28455esac
28456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28457 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028458 ac_status=$?
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028461 { (case "(($ac_try" in
28462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463 *) ac_try_echo=$ac_try;;
28464esac
28465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28466 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028467 ac_status=$?
28468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469 (exit $ac_status); }; }; then
28470 :
28471else
28472 echo "$as_me: program exited with status $ac_status" >&5
28473echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028474sed 's/^/| /' conftest.$ac_ext >&5
28475
John Criswell7a73b802003-06-30 21:59:07 +000028476( exit $ac_status )
28477ac_cv_header_stdc=no
28478fi
Reid Spencera773bd52006-08-04 18:18:08 +000028479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28480fi
28481
28482
John Criswell7a73b802003-06-30 21:59:07 +000028483fi
28484fi
Reid Spencera773bd52006-08-04 18:18:08 +000028485{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28486echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028487if test $ac_cv_header_stdc = yes; then
28488
28489cat >>confdefs.h <<\_ACEOF
28490#define STDC_HEADERS 1
28491_ACEOF
28492
28493fi
28494
Reid Spencera773bd52006-08-04 18:18:08 +000028495{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28496echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028497if test "${ac_cv_header_sys_wait_h+set}" = set; then
28498 echo $ECHO_N "(cached) $ECHO_C" >&6
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 <sys/types.h>
28507#include <sys/wait.h>
28508#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028509# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028510#endif
28511#ifndef WIFEXITED
28512# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28513#endif
28514
John Criswell7a73b802003-06-30 21:59:07 +000028515int
28516main ()
28517{
28518 int s;
28519 wait (&s);
28520 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28521 ;
28522 return 0;
28523}
28524_ACEOF
28525rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028526if { (ac_try="$ac_compile"
28527case "(($ac_try" in
28528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28529 *) ac_try_echo=$ac_try;;
28530esac
28531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28532 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028533 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028534 grep -v '^ *+' conftest.er1 >conftest.err
28535 rm -f conftest.er1
28536 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028538 (exit $ac_status); } &&
28539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28540 { (case "(($ac_try" in
28541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28542 *) ac_try_echo=$ac_try;;
28543esac
28544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28545 (eval "$ac_try") 2>&5
28546 ac_status=$?
28547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548 (exit $ac_status); }; } &&
28549 { ac_try='test -s conftest.$ac_objext'
28550 { (case "(($ac_try" in
28551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552 *) ac_try_echo=$ac_try;;
28553esac
28554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555 (eval "$ac_try") 2>&5
28556 ac_status=$?
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028559 ac_cv_header_sys_wait_h=yes
28560else
28561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028562sed 's/^/| /' conftest.$ac_ext >&5
28563
Reid Spencera773bd52006-08-04 18:18:08 +000028564 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028565fi
Reid Spencera773bd52006-08-04 18:18:08 +000028566
28567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028568fi
Reid Spencera773bd52006-08-04 18:18:08 +000028569{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28570echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028571if test $ac_cv_header_sys_wait_h = yes; then
28572
28573cat >>confdefs.h <<\_ACEOF
28574#define HAVE_SYS_WAIT_H 1
28575_ACEOF
28576
28577fi
28578
Reid Spencera773bd52006-08-04 18:18:08 +000028579{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28580echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028581if test "${ac_cv_header_time+set}" = set; then
28582 echo $ECHO_N "(cached) $ECHO_C" >&6
28583else
28584 cat >conftest.$ac_ext <<_ACEOF
28585/* confdefs.h. */
28586_ACEOF
28587cat confdefs.h >>conftest.$ac_ext
28588cat >>conftest.$ac_ext <<_ACEOF
28589/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028590#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028591#include <sys/time.h>
28592#include <time.h>
28593
28594int
28595main ()
28596{
28597if ((struct tm *) 0)
28598return 0;
28599 ;
28600 return 0;
28601}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028602_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028603rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028604if { (ac_try="$ac_compile"
28605case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28608esac
28609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028611 ac_status=$?
28612 grep -v '^ *+' conftest.er1 >conftest.err
28613 rm -f conftest.er1
28614 cat conftest.err >&5
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028616 (exit $ac_status); } &&
28617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28618 { (case "(($ac_try" in
28619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620 *) ac_try_echo=$ac_try;;
28621esac
28622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28623 (eval "$ac_try") 2>&5
28624 ac_status=$?
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; } &&
28627 { ac_try='test -s conftest.$ac_objext'
28628 { (case "(($ac_try" in
28629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28630 *) ac_try_echo=$ac_try;;
28631esac
28632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28633 (eval "$ac_try") 2>&5
28634 ac_status=$?
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028637 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028638else
28639 echo "$as_me: failed program was:" >&5
28640sed 's/^/| /' conftest.$ac_ext >&5
28641
Reid Spencera773bd52006-08-04 18:18:08 +000028642 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028643fi
Reid Spencera773bd52006-08-04 18:18:08 +000028644
28645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028646fi
Reid Spencera773bd52006-08-04 18:18:08 +000028647{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28648echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028649if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028650
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028651cat >>confdefs.h <<\_ACEOF
28652#define TIME_WITH_SYS_TIME 1
28653_ACEOF
28654
28655fi
28656
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028657
Reid Spencer59473af2004-12-25 07:31:29 +000028658
28659
28660
28661
28662
28663
28664for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28665do
28666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028671 echo $ECHO_N "(cached) $ECHO_C" >&6
28672fi
Reid Spencera773bd52006-08-04 18:18:08 +000028673ac_res=`eval echo '${'$as_ac_Header'}'`
28674 { echo "$as_me:$LINENO: result: $ac_res" >&5
28675echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028676else
28677 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028680cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028681/* confdefs.h. */
28682_ACEOF
28683cat confdefs.h >>conftest.$ac_ext
28684cat >>conftest.$ac_ext <<_ACEOF
28685/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028686$ac_includes_default
28687#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028688_ACEOF
28689rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028690if { (ac_try="$ac_compile"
28691case "(($ac_try" in
28692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693 *) ac_try_echo=$ac_try;;
28694esac
28695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028697 ac_status=$?
28698 grep -v '^ *+' conftest.er1 >conftest.err
28699 rm -f conftest.er1
28700 cat conftest.err >&5
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028702 (exit $ac_status); } &&
28703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28704 { (case "(($ac_try" in
28705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28706 *) ac_try_echo=$ac_try;;
28707esac
28708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28709 (eval "$ac_try") 2>&5
28710 ac_status=$?
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); }; } &&
28713 { ac_try='test -s conftest.$ac_objext'
28714 { (case "(($ac_try" in
28715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28716 *) ac_try_echo=$ac_try;;
28717esac
28718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28719 (eval "$ac_try") 2>&5
28720 ac_status=$?
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028723 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028724else
28725 echo "$as_me: failed program was:" >&5
28726sed 's/^/| /' conftest.$ac_ext >&5
28727
Reid Spencera773bd52006-08-04 18:18:08 +000028728 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028729fi
Reid Spencera773bd52006-08-04 18:18:08 +000028730
28731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28733echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028734
Reid Spencer59473af2004-12-25 07:31:29 +000028735# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028738cat >conftest.$ac_ext <<_ACEOF
28739/* confdefs.h. */
28740_ACEOF
28741cat confdefs.h >>conftest.$ac_ext
28742cat >>conftest.$ac_ext <<_ACEOF
28743/* end confdefs.h. */
28744#include <$ac_header>
28745_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028746if { (ac_try="$ac_cpp conftest.$ac_ext"
28747case "(($ac_try" in
28748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749 *) ac_try_echo=$ac_try;;
28750esac
28751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028753 ac_status=$?
28754 grep -v '^ *+' conftest.er1 >conftest.err
28755 rm -f conftest.er1
28756 cat conftest.err >&5
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028758 (exit $ac_status); } >/dev/null; then
28759 if test -s conftest.err; then
28760 ac_cpp_err=$ac_c_preproc_warn_flag
28761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28762 else
28763 ac_cpp_err=
28764 fi
28765else
28766 ac_cpp_err=yes
28767fi
28768if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028769 ac_header_preproc=yes
28770else
28771 echo "$as_me: failed program was:" >&5
28772sed 's/^/| /' conftest.$ac_ext >&5
28773
28774 ac_header_preproc=no
28775fi
Reid Spencera773bd52006-08-04 18:18:08 +000028776
Reid Spencer59473af2004-12-25 07:31:29 +000028777rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28779echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028780
28781# So? What about this header?
28782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28783 yes:no: )
28784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28788 ac_header_preproc=yes
28789 ;;
28790 no:yes:* )
28791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028803 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028804## ----------------------------------- ##
28805## Report this to llvmbugs@cs.uiuc.edu ##
28806## ----------------------------------- ##
28807_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028808 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028809 ;;
28810esac
Reid Spencera773bd52006-08-04 18:18:08 +000028811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028814 echo $ECHO_N "(cached) $ECHO_C" >&6
28815else
28816 eval "$as_ac_Header=\$ac_header_preproc"
28817fi
Reid Spencera773bd52006-08-04 18:18:08 +000028818ac_res=`eval echo '${'$as_ac_Header'}'`
28819 { echo "$as_me:$LINENO: result: $ac_res" >&5
28820echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028821
28822fi
Reid Spencer59473af2004-12-25 07:31:29 +000028823if test `eval echo '${'$as_ac_Header'}'` = yes; then
28824 cat >>confdefs.h <<_ACEOF
28825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028826_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028827
28828fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028829
Reid Spencer59473af2004-12-25 07:31:29 +000028830done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028831
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028832
28833
Reid Spencer59473af2004-12-25 07:31:29 +000028834
28835
28836
28837
Reid Spencercdb08a32006-06-05 16:11:07 +000028838for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028839do
28840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028845 echo $ECHO_N "(cached) $ECHO_C" >&6
28846fi
Reid Spencera773bd52006-08-04 18:18:08 +000028847ac_res=`eval echo '${'$as_ac_Header'}'`
28848 { echo "$as_me:$LINENO: result: $ac_res" >&5
28849echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028850else
28851 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028852{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028854cat >conftest.$ac_ext <<_ACEOF
28855/* confdefs.h. */
28856_ACEOF
28857cat confdefs.h >>conftest.$ac_ext
28858cat >>conftest.$ac_ext <<_ACEOF
28859/* end confdefs.h. */
28860$ac_includes_default
28861#include <$ac_header>
28862_ACEOF
28863rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028864if { (ac_try="$ac_compile"
28865case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28868esac
28869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028871 ac_status=$?
28872 grep -v '^ *+' conftest.er1 >conftest.err
28873 rm -f conftest.er1
28874 cat conftest.err >&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028876 (exit $ac_status); } &&
28877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28878 { (case "(($ac_try" in
28879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28880 *) ac_try_echo=$ac_try;;
28881esac
28882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28883 (eval "$ac_try") 2>&5
28884 ac_status=$?
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; } &&
28887 { ac_try='test -s conftest.$ac_objext'
28888 { (case "(($ac_try" in
28889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890 *) ac_try_echo=$ac_try;;
28891esac
28892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28893 (eval "$ac_try") 2>&5
28894 ac_status=$?
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028897 ac_header_compiler=yes
28898else
28899 echo "$as_me: failed program was:" >&5
28900sed 's/^/| /' conftest.$ac_ext >&5
28901
Reid Spencera773bd52006-08-04 18:18:08 +000028902 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028903fi
Reid Spencera773bd52006-08-04 18:18:08 +000028904
28905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28906{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28907echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028908
28909# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028910{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028912cat >conftest.$ac_ext <<_ACEOF
28913/* confdefs.h. */
28914_ACEOF
28915cat confdefs.h >>conftest.$ac_ext
28916cat >>conftest.$ac_ext <<_ACEOF
28917/* end confdefs.h. */
28918#include <$ac_header>
28919_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028920if { (ac_try="$ac_cpp conftest.$ac_ext"
28921case "(($ac_try" in
28922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923 *) ac_try_echo=$ac_try;;
28924esac
28925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028927 ac_status=$?
28928 grep -v '^ *+' conftest.er1 >conftest.err
28929 rm -f conftest.er1
28930 cat conftest.err >&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028932 (exit $ac_status); } >/dev/null; then
28933 if test -s conftest.err; then
28934 ac_cpp_err=$ac_c_preproc_warn_flag
28935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28936 else
28937 ac_cpp_err=
28938 fi
28939else
28940 ac_cpp_err=yes
28941fi
28942if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028943 ac_header_preproc=yes
28944else
28945 echo "$as_me: failed program was:" >&5
28946sed 's/^/| /' conftest.$ac_ext >&5
28947
28948 ac_header_preproc=no
28949fi
Reid Spencera773bd52006-08-04 18:18:08 +000028950
Reid Spencer59473af2004-12-25 07:31:29 +000028951rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28953echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028954
28955# So? What about this header?
28956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28957 yes:no: )
28958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28962 ac_header_preproc=yes
28963 ;;
28964 no:yes:* )
28965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028977 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028978## ----------------------------------- ##
28979## Report this to llvmbugs@cs.uiuc.edu ##
28980## ----------------------------------- ##
28981_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028982 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028983 ;;
28984esac
Reid Spencera773bd52006-08-04 18:18:08 +000028985{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028988 echo $ECHO_N "(cached) $ECHO_C" >&6
28989else
28990 eval "$as_ac_Header=\$ac_header_preproc"
28991fi
Reid Spencera773bd52006-08-04 18:18:08 +000028992ac_res=`eval echo '${'$as_ac_Header'}'`
28993 { echo "$as_me:$LINENO: result: $ac_res" >&5
28994echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028995
28996fi
28997if test `eval echo '${'$as_ac_Header'}'` = yes; then
28998 cat >>confdefs.h <<_ACEOF
28999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29000_ACEOF
29001
29002fi
29003
29004done
29005
29006
Reid Spencerbe3e4192007-08-17 05:45:26 +000029007for ac_header in windows.h
29008do
29009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29013if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29014 echo $ECHO_N "(cached) $ECHO_C" >&6
29015fi
29016ac_res=`eval echo '${'$as_ac_Header'}'`
29017 { echo "$as_me:$LINENO: result: $ac_res" >&5
29018echo "${ECHO_T}$ac_res" >&6; }
29019else
29020 # Is the header compilable?
29021{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29023cat >conftest.$ac_ext <<_ACEOF
29024/* confdefs.h. */
29025_ACEOF
29026cat confdefs.h >>conftest.$ac_ext
29027cat >>conftest.$ac_ext <<_ACEOF
29028/* end confdefs.h. */
29029$ac_includes_default
29030#include <$ac_header>
29031_ACEOF
29032rm -f conftest.$ac_objext
29033if { (ac_try="$ac_compile"
29034case "(($ac_try" in
29035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29036 *) ac_try_echo=$ac_try;;
29037esac
29038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29039 (eval "$ac_compile") 2>conftest.er1
29040 ac_status=$?
29041 grep -v '^ *+' conftest.er1 >conftest.err
29042 rm -f conftest.er1
29043 cat conftest.err >&5
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029045 (exit $ac_status); } &&
29046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29047 { (case "(($ac_try" in
29048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049 *) ac_try_echo=$ac_try;;
29050esac
29051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052 (eval "$ac_try") 2>&5
29053 ac_status=$?
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); }; } &&
29056 { ac_try='test -s conftest.$ac_objext'
29057 { (case "(($ac_try" in
29058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29059 *) ac_try_echo=$ac_try;;
29060esac
29061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29062 (eval "$ac_try") 2>&5
29063 ac_status=$?
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029066 ac_header_compiler=yes
29067else
29068 echo "$as_me: failed program was:" >&5
29069sed 's/^/| /' conftest.$ac_ext >&5
29070
29071 ac_header_compiler=no
29072fi
29073
29074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29075{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29076echo "${ECHO_T}$ac_header_compiler" >&6; }
29077
29078# Is the header present?
29079{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29081cat >conftest.$ac_ext <<_ACEOF
29082/* confdefs.h. */
29083_ACEOF
29084cat confdefs.h >>conftest.$ac_ext
29085cat >>conftest.$ac_ext <<_ACEOF
29086/* end confdefs.h. */
29087#include <$ac_header>
29088_ACEOF
29089if { (ac_try="$ac_cpp conftest.$ac_ext"
29090case "(($ac_try" in
29091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29092 *) ac_try_echo=$ac_try;;
29093esac
29094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29096 ac_status=$?
29097 grep -v '^ *+' conftest.er1 >conftest.err
29098 rm -f conftest.er1
29099 cat conftest.err >&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029101 (exit $ac_status); } >/dev/null; then
29102 if test -s conftest.err; then
29103 ac_cpp_err=$ac_c_preproc_warn_flag
29104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29105 else
29106 ac_cpp_err=
29107 fi
29108else
29109 ac_cpp_err=yes
29110fi
29111if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029112 ac_header_preproc=yes
29113else
29114 echo "$as_me: failed program was:" >&5
29115sed 's/^/| /' conftest.$ac_ext >&5
29116
29117 ac_header_preproc=no
29118fi
29119
29120rm -f conftest.err conftest.$ac_ext
29121{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29122echo "${ECHO_T}$ac_header_preproc" >&6; }
29123
29124# So? What about this header?
29125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29126 yes:no: )
29127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29131 ac_header_preproc=yes
29132 ;;
29133 no:yes:* )
29134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29146 ( cat <<\_ASBOX
29147## ----------------------------------- ##
29148## Report this to llvmbugs@cs.uiuc.edu ##
29149## ----------------------------------- ##
29150_ASBOX
29151 ) | sed "s/^/$as_me: WARNING: /" >&2
29152 ;;
29153esac
29154{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29157 echo $ECHO_N "(cached) $ECHO_C" >&6
29158else
29159 eval "$as_ac_Header=\$ac_header_preproc"
29160fi
29161ac_res=`eval echo '${'$as_ac_Header'}'`
29162 { echo "$as_me:$LINENO: result: $ac_res" >&5
29163echo "${ECHO_T}$ac_res" >&6; }
29164
29165fi
29166if test `eval echo '${'$as_ac_Header'}'` = yes; then
29167 cat >>confdefs.h <<_ACEOF
29168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29169_ACEOF
29170
29171fi
29172
29173done
Reid Spencer59473af2004-12-25 07:31:29 +000029174
29175
29176
29177
Reid Spencerbe3e4192007-08-17 05:45:26 +000029178
29179for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029180do
29181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029186 echo $ECHO_N "(cached) $ECHO_C" >&6
29187fi
Reid Spencera773bd52006-08-04 18:18:08 +000029188ac_res=`eval echo '${'$as_ac_Header'}'`
29189 { echo "$as_me:$LINENO: result: $ac_res" >&5
29190echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029191else
29192 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029193{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029195cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029196/* confdefs.h. */
29197_ACEOF
29198cat confdefs.h >>conftest.$ac_ext
29199cat >>conftest.$ac_ext <<_ACEOF
29200/* end confdefs.h. */
29201$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029202#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029203_ACEOF
29204rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029205if { (ac_try="$ac_compile"
29206case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29209esac
29210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029212 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029213 grep -v '^ *+' conftest.er1 >conftest.err
29214 rm -f conftest.er1
29215 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029217 (exit $ac_status); } &&
29218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29219 { (case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29222esac
29223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_try") 2>&5
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; } &&
29228 { ac_try='test -s conftest.$ac_objext'
29229 { (case "(($ac_try" in
29230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231 *) ac_try_echo=$ac_try;;
29232esac
29233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234 (eval "$ac_try") 2>&5
29235 ac_status=$?
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029238 ac_header_compiler=yes
29239else
29240 echo "$as_me: failed program was:" >&5
29241sed 's/^/| /' conftest.$ac_ext >&5
29242
Reid Spencera773bd52006-08-04 18:18:08 +000029243 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029244fi
Reid Spencera773bd52006-08-04 18:18:08 +000029245
29246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29247{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29248echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029249
29250# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029251{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029253cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029254/* confdefs.h. */
29255_ACEOF
29256cat confdefs.h >>conftest.$ac_ext
29257cat >>conftest.$ac_ext <<_ACEOF
29258/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029259#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029260_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029261if { (ac_try="$ac_cpp conftest.$ac_ext"
29262case "(($ac_try" in
29263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29264 *) ac_try_echo=$ac_try;;
29265esac
29266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029268 ac_status=$?
29269 grep -v '^ *+' conftest.er1 >conftest.err
29270 rm -f conftest.er1
29271 cat conftest.err >&5
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029273 (exit $ac_status); } >/dev/null; then
29274 if test -s conftest.err; then
29275 ac_cpp_err=$ac_c_preproc_warn_flag
29276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29277 else
29278 ac_cpp_err=
29279 fi
29280else
29281 ac_cpp_err=yes
29282fi
29283if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029284 ac_header_preproc=yes
29285else
29286 echo "$as_me: failed program was:" >&5
29287sed 's/^/| /' conftest.$ac_ext >&5
29288
29289 ac_header_preproc=no
29290fi
Reid Spencera773bd52006-08-04 18:18:08 +000029291
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029292rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029293{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29294echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029295
29296# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29298 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29302echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029303 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029304 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029305 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29311echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29313echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29317echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029318 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029319## ----------------------------------- ##
29320## Report this to llvmbugs@cs.uiuc.edu ##
29321## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029322_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029323 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029324 ;;
29325esac
Reid Spencera773bd52006-08-04 18:18:08 +000029326{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029329 echo $ECHO_N "(cached) $ECHO_C" >&6
29330else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029331 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029332fi
Reid Spencera773bd52006-08-04 18:18:08 +000029333ac_res=`eval echo '${'$as_ac_Header'}'`
29334 { echo "$as_me:$LINENO: result: $ac_res" >&5
29335echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029336
29337fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029338if test `eval echo '${'$as_ac_Header'}'` = yes; then
29339 cat >>confdefs.h <<_ACEOF
29340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029341_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029342
29343fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029344
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029345done
29346
John Criswell7ed43ad2004-07-19 16:12:29 +000029347
Reid Spencercdb08a32006-06-05 16:11:07 +000029348
Reid Spencera6d990a2006-09-14 06:17:21 +000029349
29350for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029351do
29352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029357 echo $ECHO_N "(cached) $ECHO_C" >&6
29358fi
Reid Spencera773bd52006-08-04 18:18:08 +000029359ac_res=`eval echo '${'$as_ac_Header'}'`
29360 { echo "$as_me:$LINENO: result: $ac_res" >&5
29361echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029362else
29363 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029366cat >conftest.$ac_ext <<_ACEOF
29367/* confdefs.h. */
29368_ACEOF
29369cat confdefs.h >>conftest.$ac_ext
29370cat >>conftest.$ac_ext <<_ACEOF
29371/* end confdefs.h. */
29372$ac_includes_default
29373#include <$ac_header>
29374_ACEOF
29375rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029376if { (ac_try="$ac_compile"
29377case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29380esac
29381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029383 ac_status=$?
29384 grep -v '^ *+' conftest.er1 >conftest.err
29385 rm -f conftest.er1
29386 cat conftest.err >&5
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029388 (exit $ac_status); } &&
29389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29390 { (case "(($ac_try" in
29391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392 *) ac_try_echo=$ac_try;;
29393esac
29394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395 (eval "$ac_try") 2>&5
29396 ac_status=$?
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); }; } &&
29399 { ac_try='test -s conftest.$ac_objext'
29400 { (case "(($ac_try" in
29401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402 *) ac_try_echo=$ac_try;;
29403esac
29404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29405 (eval "$ac_try") 2>&5
29406 ac_status=$?
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029409 ac_header_compiler=yes
29410else
29411 echo "$as_me: failed program was:" >&5
29412sed 's/^/| /' conftest.$ac_ext >&5
29413
Reid Spencera773bd52006-08-04 18:18:08 +000029414 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029415fi
Reid Spencera773bd52006-08-04 18:18:08 +000029416
29417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29419echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029420
29421# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029424cat >conftest.$ac_ext <<_ACEOF
29425/* confdefs.h. */
29426_ACEOF
29427cat confdefs.h >>conftest.$ac_ext
29428cat >>conftest.$ac_ext <<_ACEOF
29429/* end confdefs.h. */
29430#include <$ac_header>
29431_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029432if { (ac_try="$ac_cpp conftest.$ac_ext"
29433case "(($ac_try" in
29434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29435 *) ac_try_echo=$ac_try;;
29436esac
29437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029439 ac_status=$?
29440 grep -v '^ *+' conftest.er1 >conftest.err
29441 rm -f conftest.er1
29442 cat conftest.err >&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029444 (exit $ac_status); } >/dev/null; then
29445 if test -s conftest.err; then
29446 ac_cpp_err=$ac_c_preproc_warn_flag
29447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29448 else
29449 ac_cpp_err=
29450 fi
29451else
29452 ac_cpp_err=yes
29453fi
29454if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029455 ac_header_preproc=yes
29456else
29457 echo "$as_me: failed program was:" >&5
29458sed 's/^/| /' conftest.$ac_ext >&5
29459
29460 ac_header_preproc=no
29461fi
Reid Spencera773bd52006-08-04 18:18:08 +000029462
Chris Lattner0b142592005-11-14 06:57:34 +000029463rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029464{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29465echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029466
29467# So? What about this header?
29468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29469 yes:no: )
29470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29474 ac_header_preproc=yes
29475 ;;
29476 no:yes:* )
29477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029489 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029490## ----------------------------------- ##
29491## Report this to llvmbugs@cs.uiuc.edu ##
29492## ----------------------------------- ##
29493_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029494 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029495 ;;
29496esac
Reid Spencera773bd52006-08-04 18:18:08 +000029497{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029500 echo $ECHO_N "(cached) $ECHO_C" >&6
29501else
29502 eval "$as_ac_Header=\$ac_header_preproc"
29503fi
Reid Spencera773bd52006-08-04 18:18:08 +000029504ac_res=`eval echo '${'$as_ac_Header'}'`
29505 { echo "$as_me:$LINENO: result: $ac_res" >&5
29506echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029507
29508fi
29509if test `eval echo '${'$as_ac_Header'}'` = yes; then
29510 cat >>confdefs.h <<_ACEOF
29511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29512_ACEOF
29513
29514fi
29515
29516done
29517
Reid Spencer0a262ba2005-08-24 10:07:20 +000029518if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029519
29520for ac_header in pthread.h
29521do
29522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029527 echo $ECHO_N "(cached) $ECHO_C" >&6
29528fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029529ac_res=`eval echo '${'$as_ac_Header'}'`
29530 { echo "$as_me:$LINENO: result: $ac_res" >&5
29531echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029532else
29533 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029536cat >conftest.$ac_ext <<_ACEOF
29537/* confdefs.h. */
29538_ACEOF
29539cat confdefs.h >>conftest.$ac_ext
29540cat >>conftest.$ac_ext <<_ACEOF
29541/* end confdefs.h. */
29542$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029543#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029544_ACEOF
29545rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029546if { (ac_try="$ac_compile"
29547case "(($ac_try" in
29548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549 *) ac_try_echo=$ac_try;;
29550esac
29551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029553 ac_status=$?
29554 grep -v '^ *+' conftest.er1 >conftest.err
29555 rm -f conftest.er1
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029558 (exit $ac_status); } &&
29559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29560 { (case "(($ac_try" in
29561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29562 *) ac_try_echo=$ac_try;;
29563esac
29564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29565 (eval "$ac_try") 2>&5
29566 ac_status=$?
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; } &&
29569 { ac_try='test -s conftest.$ac_objext'
29570 { (case "(($ac_try" in
29571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572 *) ac_try_echo=$ac_try;;
29573esac
29574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575 (eval "$ac_try") 2>&5
29576 ac_status=$?
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029579 ac_header_compiler=yes
29580else
29581 echo "$as_me: failed program was:" >&5
29582sed 's/^/| /' conftest.$ac_ext >&5
29583
Reid Spencera773bd52006-08-04 18:18:08 +000029584 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029585fi
Reid Spencera773bd52006-08-04 18:18:08 +000029586
29587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29589echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029590
29591# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029594cat >conftest.$ac_ext <<_ACEOF
29595/* confdefs.h. */
29596_ACEOF
29597cat confdefs.h >>conftest.$ac_ext
29598cat >>conftest.$ac_ext <<_ACEOF
29599/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029600#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029601_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029602if { (ac_try="$ac_cpp conftest.$ac_ext"
29603case "(($ac_try" in
29604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29605 *) ac_try_echo=$ac_try;;
29606esac
29607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029609 ac_status=$?
29610 grep -v '^ *+' conftest.er1 >conftest.err
29611 rm -f conftest.er1
29612 cat conftest.err >&5
29613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029614 (exit $ac_status); } >/dev/null; then
29615 if test -s conftest.err; then
29616 ac_cpp_err=$ac_c_preproc_warn_flag
29617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29618 else
29619 ac_cpp_err=
29620 fi
29621else
29622 ac_cpp_err=yes
29623fi
29624if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029625 ac_header_preproc=yes
29626else
29627 echo "$as_me: failed program was:" >&5
29628sed 's/^/| /' conftest.$ac_ext >&5
29629
29630 ac_header_preproc=no
29631fi
Reid Spencera773bd52006-08-04 18:18:08 +000029632
Reid Spencer0a262ba2005-08-24 10:07:20 +000029633rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29635echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029636
29637# So? What about this header?
29638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29639 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029644 ac_header_preproc=yes
29645 ;;
29646 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029659 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029660## ----------------------------------- ##
29661## Report this to llvmbugs@cs.uiuc.edu ##
29662## ----------------------------------- ##
29663_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029664 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029665 ;;
29666esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029670 echo $ECHO_N "(cached) $ECHO_C" >&6
29671else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029672 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029673fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029674ac_res=`eval echo '${'$as_ac_Header'}'`
29675 { echo "$as_me:$LINENO: result: $ac_res" >&5
29676echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029677
29678fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029679if test `eval echo '${'$as_ac_Header'}'` = yes; then
29680 cat >>confdefs.h <<_ACEOF
29681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29682_ACEOF
29683 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029684
29685else
29686 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029687
29688fi
29689
Reid Spencerbe3e4192007-08-17 05:45:26 +000029690done
Reid Spencer1000b732006-12-01 00:37:14 +000029691
29692else
29693 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029694
29695fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029696
29697
Reid Spencerb2ed05262006-11-03 18:04:08 +000029698
29699 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29700echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29701if test "${ac_cv_huge_val_sanity+set}" = set; then
29702 echo $ECHO_N "(cached) $ECHO_C" >&6
29703else
29704
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029705 ac_ext=cpp
29706ac_cpp='$CXXCPP $CPPFLAGS'
29707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029710
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029711 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029712 if test "$cross_compiling" = yes; then
29713 ac_cv_huge_val_sanity=yes
29714else
29715 cat >conftest.$ac_ext <<_ACEOF
29716/* confdefs.h. */
29717_ACEOF
29718cat confdefs.h >>conftest.$ac_ext
29719cat >>conftest.$ac_ext <<_ACEOF
29720/* end confdefs.h. */
29721#include <math.h>
29722int
29723main ()
29724{
29725double x = HUGE_VAL; return x != x;
29726 ;
29727 return 0;
29728}
29729_ACEOF
29730rm -f conftest$ac_exeext
29731if { (ac_try="$ac_link"
29732case "(($ac_try" in
29733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734 *) ac_try_echo=$ac_try;;
29735esac
29736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29737 (eval "$ac_link") 2>&5
29738 ac_status=$?
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29741 { (case "(($ac_try" in
29742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29743 *) ac_try_echo=$ac_try;;
29744esac
29745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29746 (eval "$ac_try") 2>&5
29747 ac_status=$?
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; }; then
29750 ac_cv_huge_val_sanity=yes
29751else
29752 echo "$as_me: program exited with status $ac_status" >&5
29753echo "$as_me: failed program was:" >&5
29754sed 's/^/| /' conftest.$ac_ext >&5
29755
29756( exit $ac_status )
29757ac_cv_huge_val_sanity=no
29758fi
29759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29760fi
29761
29762
29763 ac_ext=c
29764ac_cpp='$CPP $CPPFLAGS'
29765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29767ac_compiler_gnu=$ac_cv_c_compiler_gnu
29768
29769
29770fi
29771{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29772echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29773 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29774
29775
Reid Spencera773bd52006-08-04 18:18:08 +000029776{ echo "$as_me:$LINENO: checking for pid_t" >&5
29777echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029778if test "${ac_cv_type_pid_t+set}" = set; then
29779 echo $ECHO_N "(cached) $ECHO_C" >&6
29780else
29781 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029782/* confdefs.h. */
29783_ACEOF
29784cat confdefs.h >>conftest.$ac_ext
29785cat >>conftest.$ac_ext <<_ACEOF
29786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029787$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029788typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029789int
29790main ()
29791{
Reid Spencera773bd52006-08-04 18:18:08 +000029792if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029793 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029794if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029795 return 0;
29796 ;
29797 return 0;
29798}
29799_ACEOF
29800rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029801if { (ac_try="$ac_compile"
29802case "(($ac_try" in
29803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29804 *) ac_try_echo=$ac_try;;
29805esac
29806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29807 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029809 grep -v '^ *+' conftest.er1 >conftest.err
29810 rm -f conftest.er1
29811 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029813 (exit $ac_status); } &&
29814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29815 { (case "(($ac_try" in
29816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29817 *) ac_try_echo=$ac_try;;
29818esac
29819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29820 (eval "$ac_try") 2>&5
29821 ac_status=$?
29822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823 (exit $ac_status); }; } &&
29824 { ac_try='test -s conftest.$ac_objext'
29825 { (case "(($ac_try" in
29826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29827 *) ac_try_echo=$ac_try;;
29828esac
29829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29830 (eval "$ac_try") 2>&5
29831 ac_status=$?
29832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029834 ac_cv_type_pid_t=yes
29835else
29836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029837sed 's/^/| /' conftest.$ac_ext >&5
29838
Reid Spencera773bd52006-08-04 18:18:08 +000029839 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029840fi
Reid Spencera773bd52006-08-04 18:18:08 +000029841
29842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029843fi
Reid Spencera773bd52006-08-04 18:18:08 +000029844{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29845echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029846if test $ac_cv_type_pid_t = yes; then
29847 :
29848else
29849
29850cat >>confdefs.h <<_ACEOF
29851#define pid_t int
29852_ACEOF
29853
29854fi
29855
Reid Spencera773bd52006-08-04 18:18:08 +000029856{ echo "$as_me:$LINENO: checking for size_t" >&5
29857echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029858if test "${ac_cv_type_size_t+set}" = set; then
29859 echo $ECHO_N "(cached) $ECHO_C" >&6
29860else
29861 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029862/* confdefs.h. */
29863_ACEOF
29864cat confdefs.h >>conftest.$ac_ext
29865cat >>conftest.$ac_ext <<_ACEOF
29866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029867$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029868typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029869int
29870main ()
29871{
Reid Spencera773bd52006-08-04 18:18:08 +000029872if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029873 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029874if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029875 return 0;
29876 ;
29877 return 0;
29878}
29879_ACEOF
29880rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029881if { (ac_try="$ac_compile"
29882case "(($ac_try" in
29883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884 *) ac_try_echo=$ac_try;;
29885esac
29886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029888 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029889 grep -v '^ *+' conftest.er1 >conftest.err
29890 rm -f conftest.er1
29891 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029893 (exit $ac_status); } &&
29894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29895 { (case "(($ac_try" in
29896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897 *) ac_try_echo=$ac_try;;
29898esac
29899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900 (eval "$ac_try") 2>&5
29901 ac_status=$?
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; } &&
29904 { ac_try='test -s conftest.$ac_objext'
29905 { (case "(($ac_try" in
29906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29907 *) ac_try_echo=$ac_try;;
29908esac
29909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29910 (eval "$ac_try") 2>&5
29911 ac_status=$?
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029914 ac_cv_type_size_t=yes
29915else
29916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029917sed 's/^/| /' conftest.$ac_ext >&5
29918
Reid Spencera773bd52006-08-04 18:18:08 +000029919 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029920fi
Reid Spencera773bd52006-08-04 18:18:08 +000029921
29922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029923fi
Reid Spencera773bd52006-08-04 18:18:08 +000029924{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29925echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029926if test $ac_cv_type_size_t = yes; then
29927 :
29928else
29929
29930cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029931#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029932_ACEOF
29933
29934fi
29935
Reid Spencera773bd52006-08-04 18:18:08 +000029936{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29937echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029938if test "${ac_cv_type_signal+set}" = set; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29940else
29941 cat >conftest.$ac_ext <<_ACEOF
29942/* confdefs.h. */
29943_ACEOF
29944cat confdefs.h >>conftest.$ac_ext
29945cat >>conftest.$ac_ext <<_ACEOF
29946/* end confdefs.h. */
29947#include <sys/types.h>
29948#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029949
29950int
29951main ()
29952{
Reid Spencera773bd52006-08-04 18:18:08 +000029953return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029954 ;
29955 return 0;
29956}
29957_ACEOF
29958rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029959if { (ac_try="$ac_compile"
29960case "(($ac_try" in
29961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962 *) ac_try_echo=$ac_try;;
29963esac
29964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029966 ac_status=$?
29967 grep -v '^ *+' conftest.er1 >conftest.err
29968 rm -f conftest.er1
29969 cat conftest.err >&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029971 (exit $ac_status); } &&
29972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29973 { (case "(($ac_try" in
29974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975 *) ac_try_echo=$ac_try;;
29976esac
29977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_try") 2>&5
29979 ac_status=$?
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; } &&
29982 { ac_try='test -s conftest.$ac_objext'
29983 { (case "(($ac_try" in
29984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29985 *) ac_try_echo=$ac_try;;
29986esac
29987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29988 (eval "$ac_try") 2>&5
29989 ac_status=$?
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029992 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029993else
29994 echo "$as_me: failed program was:" >&5
29995sed 's/^/| /' conftest.$ac_ext >&5
29996
Reid Spencera773bd52006-08-04 18:18:08 +000029997 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029998fi
Reid Spencera773bd52006-08-04 18:18:08 +000029999
30000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030001fi
Reid Spencera773bd52006-08-04 18:18:08 +000030002{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30003echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030004
30005cat >>confdefs.h <<_ACEOF
30006#define RETSIGTYPE $ac_cv_type_signal
30007_ACEOF
30008
30009
Reid Spencera773bd52006-08-04 18:18:08 +000030010{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30011echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030012if test "${ac_cv_struct_tm+set}" = set; then
30013 echo $ECHO_N "(cached) $ECHO_C" >&6
30014else
30015 cat >conftest.$ac_ext <<_ACEOF
30016/* confdefs.h. */
30017_ACEOF
30018cat confdefs.h >>conftest.$ac_ext
30019cat >>conftest.$ac_ext <<_ACEOF
30020/* end confdefs.h. */
30021#include <sys/types.h>
30022#include <time.h>
30023
30024int
30025main ()
30026{
Tanya Lattnercf067672008-01-17 05:57:22 +000030027struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030028 ;
30029 return 0;
30030}
30031_ACEOF
30032rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030033if { (ac_try="$ac_compile"
30034case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30037esac
30038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030040 ac_status=$?
30041 grep -v '^ *+' conftest.er1 >conftest.err
30042 rm -f conftest.er1
30043 cat conftest.err >&5
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030045 (exit $ac_status); } &&
30046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30047 { (case "(($ac_try" in
30048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049 *) ac_try_echo=$ac_try;;
30050esac
30051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052 (eval "$ac_try") 2>&5
30053 ac_status=$?
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); }; } &&
30056 { ac_try='test -s conftest.$ac_objext'
30057 { (case "(($ac_try" in
30058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30059 *) ac_try_echo=$ac_try;;
30060esac
30061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30062 (eval "$ac_try") 2>&5
30063 ac_status=$?
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030066 ac_cv_struct_tm=time.h
30067else
30068 echo "$as_me: failed program was:" >&5
30069sed 's/^/| /' conftest.$ac_ext >&5
30070
Reid Spencera773bd52006-08-04 18:18:08 +000030071 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030072fi
Reid Spencera773bd52006-08-04 18:18:08 +000030073
30074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030075fi
Reid Spencera773bd52006-08-04 18:18:08 +000030076{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30077echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030078if test $ac_cv_struct_tm = sys/time.h; then
30079
30080cat >>confdefs.h <<\_ACEOF
30081#define TM_IN_SYS_TIME 1
30082_ACEOF
30083
30084fi
30085
Reid Spencera773bd52006-08-04 18:18:08 +000030086{ echo "$as_me:$LINENO: checking for int64_t" >&5
30087echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030088if test "${ac_cv_type_int64_t+set}" = set; then
30089 echo $ECHO_N "(cached) $ECHO_C" >&6
30090else
30091 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030092/* confdefs.h. */
30093_ACEOF
30094cat confdefs.h >>conftest.$ac_ext
30095cat >>conftest.$ac_ext <<_ACEOF
30096/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030097$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030098typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030099int
30100main ()
30101{
Reid Spencera773bd52006-08-04 18:18:08 +000030102if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030103 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030104if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030105 return 0;
30106 ;
30107 return 0;
30108}
30109_ACEOF
30110rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030111if { (ac_try="$ac_compile"
30112case "(($ac_try" in
30113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30115esac
30116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030118 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030119 grep -v '^ *+' conftest.er1 >conftest.err
30120 rm -f conftest.er1
30121 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030123 (exit $ac_status); } &&
30124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30125 { (case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30128esac
30129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130 (eval "$ac_try") 2>&5
30131 ac_status=$?
30132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133 (exit $ac_status); }; } &&
30134 { ac_try='test -s conftest.$ac_objext'
30135 { (case "(($ac_try" in
30136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30138esac
30139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_try") 2>&5
30141 ac_status=$?
30142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030144 ac_cv_type_int64_t=yes
30145else
30146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030147sed 's/^/| /' conftest.$ac_ext >&5
30148
Reid Spencera773bd52006-08-04 18:18:08 +000030149 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030150fi
Reid Spencera773bd52006-08-04 18:18:08 +000030151
30152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030153fi
Reid Spencera773bd52006-08-04 18:18:08 +000030154{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30155echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030156if test $ac_cv_type_int64_t = yes; then
30157
30158cat >>confdefs.h <<_ACEOF
30159#define HAVE_INT64_T 1
30160_ACEOF
30161
30162
30163else
30164 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30165echo "$as_me: error: Type int64_t required but not found" >&2;}
30166 { (exit 1); exit 1; }; }
30167fi
30168
Reid Spencera773bd52006-08-04 18:18:08 +000030169{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30170echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030171if test "${ac_cv_type_uint64_t+set}" = set; then
30172 echo $ECHO_N "(cached) $ECHO_C" >&6
30173else
30174 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030175/* confdefs.h. */
30176_ACEOF
30177cat confdefs.h >>conftest.$ac_ext
30178cat >>conftest.$ac_ext <<_ACEOF
30179/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030180$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030181typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030182int
30183main ()
30184{
Reid Spencera773bd52006-08-04 18:18:08 +000030185if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030186 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030187if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030188 return 0;
30189 ;
30190 return 0;
30191}
30192_ACEOF
30193rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030194if { (ac_try="$ac_compile"
30195case "(($ac_try" in
30196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197 *) ac_try_echo=$ac_try;;
30198esac
30199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030202 grep -v '^ *+' conftest.er1 >conftest.err
30203 rm -f conftest.er1
30204 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030206 (exit $ac_status); } &&
30207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30208 { (case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30211esac
30212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_try") 2>&5
30214 ac_status=$?
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; } &&
30217 { ac_try='test -s conftest.$ac_objext'
30218 { (case "(($ac_try" in
30219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220 *) ac_try_echo=$ac_try;;
30221esac
30222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223 (eval "$ac_try") 2>&5
30224 ac_status=$?
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030227 ac_cv_type_uint64_t=yes
30228else
30229 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030230sed 's/^/| /' conftest.$ac_ext >&5
30231
Reid Spencera773bd52006-08-04 18:18:08 +000030232 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030233fi
Reid Spencera773bd52006-08-04 18:18:08 +000030234
30235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030236fi
Reid Spencera773bd52006-08-04 18:18:08 +000030237{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30238echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030239if test $ac_cv_type_uint64_t = yes; then
30240
30241cat >>confdefs.h <<_ACEOF
30242#define HAVE_UINT64_T 1
30243_ACEOF
30244
30245
30246else
Reid Spencera773bd52006-08-04 18:18:08 +000030247 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30248echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030249if test "${ac_cv_type_u_int64_t+set}" = set; then
30250 echo $ECHO_N "(cached) $ECHO_C" >&6
30251else
30252 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030253/* confdefs.h. */
30254_ACEOF
30255cat confdefs.h >>conftest.$ac_ext
30256cat >>conftest.$ac_ext <<_ACEOF
30257/* end confdefs.h. */
30258$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030259typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030260int
30261main ()
30262{
Reid Spencera773bd52006-08-04 18:18:08 +000030263if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030264 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030265if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030266 return 0;
30267 ;
30268 return 0;
30269}
30270_ACEOF
30271rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030272if { (ac_try="$ac_compile"
30273case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276esac
30277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030279 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030280 grep -v '^ *+' conftest.er1 >conftest.err
30281 rm -f conftest.er1
30282 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030284 (exit $ac_status); } &&
30285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30286 { (case "(($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_try") 2>&5
30292 ac_status=$?
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); }; } &&
30295 { ac_try='test -s conftest.$ac_objext'
30296 { (case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30299esac
30300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_try") 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030305 ac_cv_type_u_int64_t=yes
30306else
30307 echo "$as_me: failed program was:" >&5
30308sed 's/^/| /' conftest.$ac_ext >&5
30309
Reid Spencera773bd52006-08-04 18:18:08 +000030310 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030311fi
Reid Spencera773bd52006-08-04 18:18:08 +000030312
30313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030314fi
Reid Spencera773bd52006-08-04 18:18:08 +000030315{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30316echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030317if test $ac_cv_type_u_int64_t = yes; then
30318
30319cat >>confdefs.h <<_ACEOF
30320#define HAVE_U_INT64_T 1
30321_ACEOF
30322
30323
Misha Brukmanceca9042004-09-02 23:02:30 +000030324else
30325 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30326echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30327 { (exit 1); exit 1; }; }
30328fi
30329
John Criswell679ff312004-09-02 18:44:44 +000030330fi
30331
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030332
30333
30334
30335
30336
30337
30338
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030339
30340
Reid Spencerdf3be822006-01-23 08:15:53 +000030341for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030342do
30343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030344{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30346if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030347 echo $ECHO_N "(cached) $ECHO_C" >&6
30348else
30349 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030350/* confdefs.h. */
30351_ACEOF
30352cat confdefs.h >>conftest.$ac_ext
30353cat >>conftest.$ac_ext <<_ACEOF
30354/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30357#define $ac_func innocuous_$ac_func
30358
30359/* System header to define __stub macros and hopefully few prototypes,
30360 which can conflict with char $ac_func (); below.
30361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30362 <limits.h> exists even on freestanding compilers. */
30363
30364#ifdef __STDC__
30365# include <limits.h>
30366#else
30367# include <assert.h>
30368#endif
30369
30370#undef $ac_func
30371
Reid Spencera773bd52006-08-04 18:18:08 +000030372/* Override any GCC internal prototype to avoid an error.
30373 Use char because int might match the return type of a GCC
30374 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030375#ifdef __cplusplus
30376extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030377#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030378char $ac_func ();
30379/* The GNU C library defines this for functions which it implements
30380 to always fail with ENOSYS. Some functions are actually named
30381 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030382#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030383choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030384#endif
John Criswell7a73b802003-06-30 21:59:07 +000030385
John Criswell7a73b802003-06-30 21:59:07 +000030386int
30387main ()
30388{
Reid Spencera773bd52006-08-04 18:18:08 +000030389return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030390 ;
30391 return 0;
30392}
30393_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030394rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030395if { (ac_try="$ac_link"
30396case "(($ac_try" in
30397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30398 *) ac_try_echo=$ac_try;;
30399esac
30400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30401 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030402 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030403 grep -v '^ *+' conftest.er1 >conftest.err
30404 rm -f conftest.er1
30405 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030407 (exit $ac_status); } &&
30408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30409 { (case "(($ac_try" in
30410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411 *) ac_try_echo=$ac_try;;
30412esac
30413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414 (eval "$ac_try") 2>&5
30415 ac_status=$?
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); }; } &&
30418 { ac_try='test -s conftest$ac_exeext'
30419 { (case "(($ac_try" in
30420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30421 *) ac_try_echo=$ac_try;;
30422esac
30423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30424 (eval "$ac_try") 2>&5
30425 ac_status=$?
30426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030428 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030429else
30430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030431sed 's/^/| /' conftest.$ac_ext >&5
30432
Reid Spencera773bd52006-08-04 18:18:08 +000030433 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030434fi
Reid Spencera773bd52006-08-04 18:18:08 +000030435
Tanya Lattnercf067672008-01-17 05:57:22 +000030436rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030437 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030438fi
Reid Spencera773bd52006-08-04 18:18:08 +000030439ac_res=`eval echo '${'$as_ac_var'}'`
30440 { echo "$as_me:$LINENO: result: $ac_res" >&5
30441echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030442if test `eval echo '${'$as_ac_var'}'` = yes; then
30443 cat >>confdefs.h <<_ACEOF
30444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030445_ACEOF
30446
30447fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030448done
John Criswell7a73b802003-06-30 21:59:07 +000030449
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030450
30451
30452
Reid Spencer6af3d262004-12-15 04:01:48 +000030453
Reid Spencer96cf5872007-07-13 10:05:30 +000030454for ac_func in powf fmodf strtof round
30455do
30456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30457{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30459if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30460 echo $ECHO_N "(cached) $ECHO_C" >&6
30461else
30462 cat >conftest.$ac_ext <<_ACEOF
30463/* confdefs.h. */
30464_ACEOF
30465cat confdefs.h >>conftest.$ac_ext
30466cat >>conftest.$ac_ext <<_ACEOF
30467/* end confdefs.h. */
30468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30470#define $ac_func innocuous_$ac_func
30471
30472/* System header to define __stub macros and hopefully few prototypes,
30473 which can conflict with char $ac_func (); below.
30474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30475 <limits.h> exists even on freestanding compilers. */
30476
30477#ifdef __STDC__
30478# include <limits.h>
30479#else
30480# include <assert.h>
30481#endif
30482
30483#undef $ac_func
30484
30485/* Override any GCC internal prototype to avoid an error.
30486 Use char because int might match the return type of a GCC
30487 builtin and then its argument prototype would still apply. */
30488#ifdef __cplusplus
30489extern "C"
30490#endif
30491char $ac_func ();
30492/* The GNU C library defines this for functions which it implements
30493 to always fail with ENOSYS. Some functions are actually named
30494 something starting with __ and the normal name is an alias. */
30495#if defined __stub_$ac_func || defined __stub___$ac_func
30496choke me
30497#endif
30498
30499int
30500main ()
30501{
30502return $ac_func ();
30503 ;
30504 return 0;
30505}
30506_ACEOF
30507rm -f conftest.$ac_objext conftest$ac_exeext
30508if { (ac_try="$ac_link"
30509case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30512esac
30513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_link") 2>conftest.er1
30515 ac_status=$?
30516 grep -v '^ *+' conftest.er1 >conftest.err
30517 rm -f conftest.er1
30518 cat conftest.err >&5
30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030520 (exit $ac_status); } &&
30521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30522 { (case "(($ac_try" in
30523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30524 *) ac_try_echo=$ac_try;;
30525esac
30526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30527 (eval "$ac_try") 2>&5
30528 ac_status=$?
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); }; } &&
30531 { ac_try='test -s conftest$ac_exeext'
30532 { (case "(($ac_try" in
30533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30534 *) ac_try_echo=$ac_try;;
30535esac
30536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30537 (eval "$ac_try") 2>&5
30538 ac_status=$?
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030541 eval "$as_ac_var=yes"
30542else
30543 echo "$as_me: failed program was:" >&5
30544sed 's/^/| /' conftest.$ac_ext >&5
30545
30546 eval "$as_ac_var=no"
30547fi
30548
Tanya Lattnercf067672008-01-17 05:57:22 +000030549rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030550 conftest$ac_exeext conftest.$ac_ext
30551fi
30552ac_res=`eval echo '${'$as_ac_var'}'`
30553 { echo "$as_me:$LINENO: result: $ac_res" >&5
30554echo "${ECHO_T}$ac_res" >&6; }
30555if test `eval echo '${'$as_ac_var'}'` = yes; then
30556 cat >>confdefs.h <<_ACEOF
30557#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30558_ACEOF
30559
30560fi
30561done
30562
30563
30564
30565
30566
Reid Spencer6af3d262004-12-15 04:01:48 +000030567
Reid Spencerb90645c2007-02-16 19:17:20 +000030568for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30569do
30570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30571{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30573if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30574 echo $ECHO_N "(cached) $ECHO_C" >&6
30575else
30576 cat >conftest.$ac_ext <<_ACEOF
30577/* confdefs.h. */
30578_ACEOF
30579cat confdefs.h >>conftest.$ac_ext
30580cat >>conftest.$ac_ext <<_ACEOF
30581/* end confdefs.h. */
30582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30584#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030585
Reid Spencerb90645c2007-02-16 19:17:20 +000030586/* System header to define __stub macros and hopefully few prototypes,
30587 which can conflict with char $ac_func (); below.
30588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30589 <limits.h> exists even on freestanding compilers. */
30590
30591#ifdef __STDC__
30592# include <limits.h>
30593#else
30594# include <assert.h>
30595#endif
30596
30597#undef $ac_func
30598
30599/* Override any GCC internal prototype to avoid an error.
30600 Use char because int might match the return type of a GCC
30601 builtin and then its argument prototype would still apply. */
30602#ifdef __cplusplus
30603extern "C"
30604#endif
30605char $ac_func ();
30606/* The GNU C library defines this for functions which it implements
30607 to always fail with ENOSYS. Some functions are actually named
30608 something starting with __ and the normal name is an alias. */
30609#if defined __stub_$ac_func || defined __stub___$ac_func
30610choke me
30611#endif
30612
30613int
30614main ()
30615{
30616return $ac_func ();
30617 ;
30618 return 0;
30619}
30620_ACEOF
30621rm -f conftest.$ac_objext conftest$ac_exeext
30622if { (ac_try="$ac_link"
30623case "(($ac_try" in
30624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625 *) ac_try_echo=$ac_try;;
30626esac
30627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628 (eval "$ac_link") 2>conftest.er1
30629 ac_status=$?
30630 grep -v '^ *+' conftest.er1 >conftest.err
30631 rm -f conftest.er1
30632 cat conftest.err >&5
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030634 (exit $ac_status); } &&
30635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30636 { (case "(($ac_try" in
30637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30638 *) ac_try_echo=$ac_try;;
30639esac
30640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30641 (eval "$ac_try") 2>&5
30642 ac_status=$?
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); }; } &&
30645 { ac_try='test -s conftest$ac_exeext'
30646 { (case "(($ac_try" in
30647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30648 *) ac_try_echo=$ac_try;;
30649esac
30650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30651 (eval "$ac_try") 2>&5
30652 ac_status=$?
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030655 eval "$as_ac_var=yes"
30656else
30657 echo "$as_me: failed program was:" >&5
30658sed 's/^/| /' conftest.$ac_ext >&5
30659
30660 eval "$as_ac_var=no"
30661fi
30662
Tanya Lattnercf067672008-01-17 05:57:22 +000030663rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030664 conftest$ac_exeext conftest.$ac_ext
30665fi
30666ac_res=`eval echo '${'$as_ac_var'}'`
30667 { echo "$as_me:$LINENO: result: $ac_res" >&5
30668echo "${ECHO_T}$ac_res" >&6; }
30669if test `eval echo '${'$as_ac_var'}'` = yes; then
30670 cat >>confdefs.h <<_ACEOF
30671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30672_ACEOF
30673
30674fi
30675done
30676
30677
30678
30679
30680for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030681do
30682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030683{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30685if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030686 echo $ECHO_N "(cached) $ECHO_C" >&6
30687else
30688 cat >conftest.$ac_ext <<_ACEOF
30689/* confdefs.h. */
30690_ACEOF
30691cat confdefs.h >>conftest.$ac_ext
30692cat >>conftest.$ac_ext <<_ACEOF
30693/* end confdefs.h. */
30694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30696#define $ac_func innocuous_$ac_func
30697
30698/* System header to define __stub macros and hopefully few prototypes,
30699 which can conflict with char $ac_func (); below.
30700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30701 <limits.h> exists even on freestanding compilers. */
30702
30703#ifdef __STDC__
30704# include <limits.h>
30705#else
30706# include <assert.h>
30707#endif
30708
30709#undef $ac_func
30710
Reid Spencera773bd52006-08-04 18:18:08 +000030711/* Override any GCC internal prototype to avoid an error.
30712 Use char because int might match the return type of a GCC
30713 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030714#ifdef __cplusplus
30715extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030716#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030717char $ac_func ();
30718/* The GNU C library defines this for functions which it implements
30719 to always fail with ENOSYS. Some functions are actually named
30720 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030721#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030722choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030723#endif
30724
30725int
30726main ()
30727{
Reid Spencera773bd52006-08-04 18:18:08 +000030728return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030729 ;
30730 return 0;
30731}
30732_ACEOF
30733rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030734if { (ac_try="$ac_link"
30735case "(($ac_try" in
30736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30737 *) ac_try_echo=$ac_try;;
30738esac
30739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30740 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030741 ac_status=$?
30742 grep -v '^ *+' conftest.er1 >conftest.err
30743 rm -f conftest.er1
30744 cat conftest.err >&5
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030746 (exit $ac_status); } &&
30747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30748 { (case "(($ac_try" in
30749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30750 *) ac_try_echo=$ac_try;;
30751esac
30752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30753 (eval "$ac_try") 2>&5
30754 ac_status=$?
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); }; } &&
30757 { ac_try='test -s conftest$ac_exeext'
30758 { (case "(($ac_try" in
30759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30760 *) ac_try_echo=$ac_try;;
30761esac
30762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30763 (eval "$ac_try") 2>&5
30764 ac_status=$?
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030767 eval "$as_ac_var=yes"
30768else
30769 echo "$as_me: failed program was:" >&5
30770sed 's/^/| /' conftest.$ac_ext >&5
30771
Reid Spencera773bd52006-08-04 18:18:08 +000030772 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030773fi
Reid Spencera773bd52006-08-04 18:18:08 +000030774
Tanya Lattnercf067672008-01-17 05:57:22 +000030775rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030776 conftest$ac_exeext conftest.$ac_ext
30777fi
Reid Spencera773bd52006-08-04 18:18:08 +000030778ac_res=`eval echo '${'$as_ac_var'}'`
30779 { echo "$as_me:$LINENO: result: $ac_res" >&5
30780echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030781if test `eval echo '${'$as_ac_var'}'` = yes; then
30782 cat >>confdefs.h <<_ACEOF
30783#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30784_ACEOF
30785
30786fi
30787done
30788
30789
30790
30791
30792
30793
30794
30795
30796for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030797do
30798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030799{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30801if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030802 echo $ECHO_N "(cached) $ECHO_C" >&6
30803else
30804 cat >conftest.$ac_ext <<_ACEOF
30805/* confdefs.h. */
30806_ACEOF
30807cat confdefs.h >>conftest.$ac_ext
30808cat >>conftest.$ac_ext <<_ACEOF
30809/* end confdefs.h. */
30810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30812#define $ac_func innocuous_$ac_func
30813
30814/* System header to define __stub macros and hopefully few prototypes,
30815 which can conflict with char $ac_func (); below.
30816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30817 <limits.h> exists even on freestanding compilers. */
30818
30819#ifdef __STDC__
30820# include <limits.h>
30821#else
30822# include <assert.h>
30823#endif
30824
30825#undef $ac_func
30826
Reid Spencera773bd52006-08-04 18:18:08 +000030827/* Override any GCC internal prototype to avoid an error.
30828 Use char because int might match the return type of a GCC
30829 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030830#ifdef __cplusplus
30831extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030832#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030833char $ac_func ();
30834/* The GNU C library defines this for functions which it implements
30835 to always fail with ENOSYS. Some functions are actually named
30836 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030837#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030838choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030839#endif
30840
30841int
30842main ()
30843{
Reid Spencera773bd52006-08-04 18:18:08 +000030844return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030845 ;
30846 return 0;
30847}
30848_ACEOF
30849rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030850if { (ac_try="$ac_link"
30851case "(($ac_try" in
30852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30853 *) ac_try_echo=$ac_try;;
30854esac
30855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30856 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030857 ac_status=$?
30858 grep -v '^ *+' conftest.er1 >conftest.err
30859 rm -f conftest.er1
30860 cat conftest.err >&5
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030862 (exit $ac_status); } &&
30863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30864 { (case "(($ac_try" in
30865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30866 *) ac_try_echo=$ac_try;;
30867esac
30868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30869 (eval "$ac_try") 2>&5
30870 ac_status=$?
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); }; } &&
30873 { ac_try='test -s conftest$ac_exeext'
30874 { (case "(($ac_try" in
30875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876 *) ac_try_echo=$ac_try;;
30877esac
30878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879 (eval "$ac_try") 2>&5
30880 ac_status=$?
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030883 eval "$as_ac_var=yes"
30884else
30885 echo "$as_me: failed program was:" >&5
30886sed 's/^/| /' conftest.$ac_ext >&5
30887
Reid Spencera773bd52006-08-04 18:18:08 +000030888 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030889fi
Reid Spencera773bd52006-08-04 18:18:08 +000030890
Tanya Lattnercf067672008-01-17 05:57:22 +000030891rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030892 conftest$ac_exeext conftest.$ac_ext
30893fi
Reid Spencera773bd52006-08-04 18:18:08 +000030894ac_res=`eval echo '${'$as_ac_var'}'`
30895 { echo "$as_me:$LINENO: result: $ac_res" >&5
30896echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030897if test `eval echo '${'$as_ac_var'}'` = yes; then
30898 cat >>confdefs.h <<_ACEOF
30899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30900_ACEOF
30901
30902fi
30903done
30904
30905
Reid Spencerba46ca32004-12-31 05:49:15 +000030906
30907
Chris Lattner0b142592005-11-14 06:57:34 +000030908
Chris Lattner511f11d2005-11-14 07:25:50 +000030909for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030910do
30911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030912{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30914if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030915 echo $ECHO_N "(cached) $ECHO_C" >&6
30916else
30917 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030918/* confdefs.h. */
30919_ACEOF
30920cat confdefs.h >>conftest.$ac_ext
30921cat >>conftest.$ac_ext <<_ACEOF
30922/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30925#define $ac_func innocuous_$ac_func
30926
30927/* System header to define __stub macros and hopefully few prototypes,
30928 which can conflict with char $ac_func (); below.
30929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30930 <limits.h> exists even on freestanding compilers. */
30931
30932#ifdef __STDC__
30933# include <limits.h>
30934#else
30935# include <assert.h>
30936#endif
30937
30938#undef $ac_func
30939
Reid Spencera773bd52006-08-04 18:18:08 +000030940/* Override any GCC internal prototype to avoid an error.
30941 Use char because int might match the return type of a GCC
30942 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030943#ifdef __cplusplus
30944extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030945#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030946char $ac_func ();
30947/* The GNU C library defines this for functions which it implements
30948 to always fail with ENOSYS. Some functions are actually named
30949 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030950#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030951choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030952#endif
John Criswell7a73b802003-06-30 21:59:07 +000030953
John Criswell7a73b802003-06-30 21:59:07 +000030954int
30955main ()
30956{
Reid Spencera773bd52006-08-04 18:18:08 +000030957return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030958 ;
30959 return 0;
30960}
30961_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030962rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030963if { (ac_try="$ac_link"
30964case "(($ac_try" in
30965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966 *) ac_try_echo=$ac_try;;
30967esac
30968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30969 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030970 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030971 grep -v '^ *+' conftest.er1 >conftest.err
30972 rm -f conftest.er1
30973 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030975 (exit $ac_status); } &&
30976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30977 { (case "(($ac_try" in
30978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30979 *) ac_try_echo=$ac_try;;
30980esac
30981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30982 (eval "$ac_try") 2>&5
30983 ac_status=$?
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); }; } &&
30986 { ac_try='test -s conftest$ac_exeext'
30987 { (case "(($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_try") 2>&5
30993 ac_status=$?
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030996 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030997else
30998 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030999sed 's/^/| /' conftest.$ac_ext >&5
31000
Reid Spencera773bd52006-08-04 18:18:08 +000031001 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031002fi
Reid Spencera773bd52006-08-04 18:18:08 +000031003
Tanya Lattnercf067672008-01-17 05:57:22 +000031004rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031005 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031006fi
Reid Spencera773bd52006-08-04 18:18:08 +000031007ac_res=`eval echo '${'$as_ac_var'}'`
31008 { echo "$as_me:$LINENO: result: $ac_res" >&5
31009echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031010if test `eval echo '${'$as_ac_var'}'` = yes; then
31011 cat >>confdefs.h <<_ACEOF
31012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031013_ACEOF
31014
31015fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031016done
John Criswell7a73b802003-06-30 21:59:07 +000031017
Reid Spencercdb08a32006-06-05 16:11:07 +000031018
31019
31020
31021
Reid Spencerafa22e22006-12-10 23:29:19 +000031022for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031023do
31024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031025{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31027if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031028 echo $ECHO_N "(cached) $ECHO_C" >&6
31029else
31030 cat >conftest.$ac_ext <<_ACEOF
31031/* confdefs.h. */
31032_ACEOF
31033cat confdefs.h >>conftest.$ac_ext
31034cat >>conftest.$ac_ext <<_ACEOF
31035/* end confdefs.h. */
31036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31038#define $ac_func innocuous_$ac_func
31039
31040/* System header to define __stub macros and hopefully few prototypes,
31041 which can conflict with char $ac_func (); below.
31042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31043 <limits.h> exists even on freestanding compilers. */
31044
31045#ifdef __STDC__
31046# include <limits.h>
31047#else
31048# include <assert.h>
31049#endif
31050
31051#undef $ac_func
31052
Reid Spencera773bd52006-08-04 18:18:08 +000031053/* Override any GCC internal prototype to avoid an error.
31054 Use char because int might match the return type of a GCC
31055 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031056#ifdef __cplusplus
31057extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031058#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031059char $ac_func ();
31060/* The GNU C library defines this for functions which it implements
31061 to always fail with ENOSYS. Some functions are actually named
31062 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031063#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031064choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031065#endif
31066
31067int
31068main ()
31069{
Reid Spencera773bd52006-08-04 18:18:08 +000031070return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031071 ;
31072 return 0;
31073}
31074_ACEOF
31075rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031076if { (ac_try="$ac_link"
31077case "(($ac_try" in
31078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31079 *) ac_try_echo=$ac_try;;
31080esac
31081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31082 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031083 ac_status=$?
31084 grep -v '^ *+' conftest.er1 >conftest.err
31085 rm -f conftest.er1
31086 cat conftest.err >&5
31087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031088 (exit $ac_status); } &&
31089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31090 { (case "(($ac_try" in
31091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31092 *) ac_try_echo=$ac_try;;
31093esac
31094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31095 (eval "$ac_try") 2>&5
31096 ac_status=$?
31097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098 (exit $ac_status); }; } &&
31099 { ac_try='test -s conftest$ac_exeext'
31100 { (case "(($ac_try" in
31101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31102 *) ac_try_echo=$ac_try;;
31103esac
31104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31105 (eval "$ac_try") 2>&5
31106 ac_status=$?
31107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31108 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031109 eval "$as_ac_var=yes"
31110else
31111 echo "$as_me: failed program was:" >&5
31112sed 's/^/| /' conftest.$ac_ext >&5
31113
Reid Spencera773bd52006-08-04 18:18:08 +000031114 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031115fi
Reid Spencera773bd52006-08-04 18:18:08 +000031116
Tanya Lattnercf067672008-01-17 05:57:22 +000031117rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031118 conftest$ac_exeext conftest.$ac_ext
31119fi
Reid Spencera773bd52006-08-04 18:18:08 +000031120ac_res=`eval echo '${'$as_ac_var'}'`
31121 { echo "$as_me:$LINENO: result: $ac_res" >&5
31122echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031123if test `eval echo '${'$as_ac_var'}'` = yes; then
31124 cat >>confdefs.h <<_ACEOF
31125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31126_ACEOF
31127
31128fi
31129done
31130
Reid Spencera773bd52006-08-04 18:18:08 +000031131{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31132echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031133if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031134 echo $ECHO_N "(cached) $ECHO_C" >&6
31135else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031136 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031137ac_cpp='$CPP $CPPFLAGS'
31138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31140ac_compiler_gnu=$ac_cv_c_compiler_gnu
31141
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031142 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031143 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031144else
31145 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031146
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031147 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031148_ACEOF
31149cat confdefs.h >>conftest.$ac_ext
31150cat >>conftest.$ac_ext <<_ACEOF
31151/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031152
John Criswella0137d32003-10-13 16:22:01 +000031153#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031154#include <stdlib.h>
31155
John Criswella0137d32003-10-13 16:22:01 +000031156int
31157main ()
31158{
31159
Reid Spencer2706f8c2004-09-19 23:53:36 +000031160volatile double A, B;
31161char Buffer[100];
31162A = 1;
31163A /= 10.0;
31164sprintf(Buffer, "%a", A);
31165B = atof(Buffer);
31166if (A != B)
31167 return (1);
31168if (A != 0x1.999999999999ap-4)
31169 return (1);
31170return (0);
John Criswella0137d32003-10-13 16:22:01 +000031171 ;
31172 return 0;
31173}
31174_ACEOF
31175rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031176if { (ac_try="$ac_link"
31177case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31180esac
31181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031183 ac_status=$?
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031186 { (case "(($ac_try" in
31187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31188 *) ac_try_echo=$ac_try;;
31189esac
31190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31191 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031192 ac_status=$?
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031195 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031196else
31197 echo "$as_me: program exited with status $ac_status" >&5
31198echo "$as_me: failed program was:" >&5
31199sed 's/^/| /' conftest.$ac_ext >&5
31200
31201( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031202llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031203fi
Reid Spencera773bd52006-08-04 18:18:08 +000031204rm -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 +000031205fi
Reid Spencera773bd52006-08-04 18:18:08 +000031206
31207
Reid Spencer2706f8c2004-09-19 23:53:36 +000031208 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031209ac_cpp='$CPP $CPPFLAGS'
31210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31212ac_compiler_gnu=$ac_cv_c_compiler_gnu
31213
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031214fi
Reid Spencera773bd52006-08-04 18:18:08 +000031215{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31216echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031217 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031218
31219cat >>confdefs.h <<\_ACEOF
31220#define HAVE_PRINTF_A 1
31221_ACEOF
31222
Reid Spencer2706f8c2004-09-19 23:53:36 +000031223 fi
John Criswella0137d32003-10-13 16:22:01 +000031224
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031225# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31226# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031227{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31228echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031229if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031230 echo $ECHO_N "(cached) $ECHO_C" >&6
31231else
John Criswell0021c312004-02-13 21:57:29 +000031232 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031233/* confdefs.h. */
31234_ACEOF
31235cat confdefs.h >>conftest.$ac_ext
31236cat >>conftest.$ac_ext <<_ACEOF
31237/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031238#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031239int
31240main ()
31241{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031242char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031243 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031244 ;
31245 return 0;
31246}
31247_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031248rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031249if { (ac_try="$ac_link"
31250case "(($ac_try" in
31251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252 *) ac_try_echo=$ac_try;;
31253esac
31254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031256 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031257 grep -v '^ *+' conftest.er1 >conftest.err
31258 rm -f conftest.er1
31259 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031261 (exit $ac_status); } &&
31262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31263 { (case "(($ac_try" in
31264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31265 *) ac_try_echo=$ac_try;;
31266esac
31267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31268 (eval "$ac_try") 2>&5
31269 ac_status=$?
31270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31271 (exit $ac_status); }; } &&
31272 { ac_try='test -s conftest$ac_exeext'
31273 { (case "(($ac_try" in
31274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275 *) ac_try_echo=$ac_try;;
31276esac
31277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278 (eval "$ac_try") 2>&5
31279 ac_status=$?
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031282 ac_cv_working_alloca_h=yes
31283else
31284 echo "$as_me: failed program was:" >&5
31285sed 's/^/| /' conftest.$ac_ext >&5
31286
Reid Spencera773bd52006-08-04 18:18:08 +000031287 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031288fi
Reid Spencera773bd52006-08-04 18:18:08 +000031289
Tanya Lattnercf067672008-01-17 05:57:22 +000031290rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031291 conftest$ac_exeext conftest.$ac_ext
31292fi
Reid Spencera773bd52006-08-04 18:18:08 +000031293{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31294echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031295if test $ac_cv_working_alloca_h = yes; then
31296
31297cat >>confdefs.h <<\_ACEOF
31298#define HAVE_ALLOCA_H 1
31299_ACEOF
31300
31301fi
31302
Reid Spencera773bd52006-08-04 18:18:08 +000031303{ echo "$as_me:$LINENO: checking for alloca" >&5
31304echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031305if test "${ac_cv_func_alloca_works+set}" = set; then
31306 echo $ECHO_N "(cached) $ECHO_C" >&6
31307else
31308 cat >conftest.$ac_ext <<_ACEOF
31309/* confdefs.h. */
31310_ACEOF
31311cat confdefs.h >>conftest.$ac_ext
31312cat >>conftest.$ac_ext <<_ACEOF
31313/* end confdefs.h. */
31314#ifdef __GNUC__
31315# define alloca __builtin_alloca
31316#else
31317# ifdef _MSC_VER
31318# include <malloc.h>
31319# define alloca _alloca
31320# else
Tanya Lattnercf067672008-01-17 05:57:22 +000031321# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031322# include <alloca.h>
31323# else
31324# ifdef _AIX
31325 #pragma alloca
31326# else
31327# ifndef alloca /* predefined by HP cc +Olibcalls */
31328char *alloca ();
31329# endif
31330# endif
31331# endif
31332# endif
31333#endif
31334
31335int
31336main ()
31337{
31338char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031339 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031340 ;
31341 return 0;
31342}
31343_ACEOF
31344rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031345if { (ac_try="$ac_link"
31346case "(($ac_try" in
31347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31348 *) ac_try_echo=$ac_try;;
31349esac
31350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31351 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031352 ac_status=$?
31353 grep -v '^ *+' conftest.er1 >conftest.err
31354 rm -f conftest.er1
31355 cat conftest.err >&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031357 (exit $ac_status); } &&
31358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31359 { (case "(($ac_try" in
31360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361 *) ac_try_echo=$ac_try;;
31362esac
31363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364 (eval "$ac_try") 2>&5
31365 ac_status=$?
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; } &&
31368 { ac_try='test -s conftest$ac_exeext'
31369 { (case "(($ac_try" in
31370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31371 *) ac_try_echo=$ac_try;;
31372esac
31373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31374 (eval "$ac_try") 2>&5
31375 ac_status=$?
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031378 ac_cv_func_alloca_works=yes
31379else
31380 echo "$as_me: failed program was:" >&5
31381sed 's/^/| /' conftest.$ac_ext >&5
31382
Reid Spencera773bd52006-08-04 18:18:08 +000031383 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031384fi
Reid Spencera773bd52006-08-04 18:18:08 +000031385
Tanya Lattnercf067672008-01-17 05:57:22 +000031386rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031387 conftest$ac_exeext conftest.$ac_ext
31388fi
Reid Spencera773bd52006-08-04 18:18:08 +000031389{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31390echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031391
31392if test $ac_cv_func_alloca_works = yes; then
31393
31394cat >>confdefs.h <<\_ACEOF
31395#define HAVE_ALLOCA 1
31396_ACEOF
31397
31398else
31399 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31400# that cause trouble. Some versions do not even contain alloca or
31401# contain a buggy version. If you still want to use their alloca,
31402# use ar to extract alloca.o from them instead of compiling alloca.c.
31403
Reid Spencera773bd52006-08-04 18:18:08 +000031404ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031405
31406cat >>confdefs.h <<\_ACEOF
31407#define C_ALLOCA 1
31408_ACEOF
31409
31410
Reid Spencera773bd52006-08-04 18:18:08 +000031411{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31412echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031413if test "${ac_cv_os_cray+set}" = set; then
31414 echo $ECHO_N "(cached) $ECHO_C" >&6
31415else
31416 cat >conftest.$ac_ext <<_ACEOF
31417/* confdefs.h. */
31418_ACEOF
31419cat confdefs.h >>conftest.$ac_ext
31420cat >>conftest.$ac_ext <<_ACEOF
31421/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031422#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031423webecray
31424#else
31425wenotbecray
31426#endif
31427
31428_ACEOF
31429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31430 $EGREP "webecray" >/dev/null 2>&1; then
31431 ac_cv_os_cray=yes
31432else
31433 ac_cv_os_cray=no
31434fi
31435rm -f conftest*
31436
31437fi
Reid Spencera773bd52006-08-04 18:18:08 +000031438{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31439echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031440if test $ac_cv_os_cray = yes; then
31441 for ac_func in _getb67 GETB67 getb67; do
31442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031443{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31445if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031446 echo $ECHO_N "(cached) $ECHO_C" >&6
31447else
31448 cat >conftest.$ac_ext <<_ACEOF
31449/* confdefs.h. */
31450_ACEOF
31451cat confdefs.h >>conftest.$ac_ext
31452cat >>conftest.$ac_ext <<_ACEOF
31453/* end confdefs.h. */
31454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31456#define $ac_func innocuous_$ac_func
31457
31458/* System header to define __stub macros and hopefully few prototypes,
31459 which can conflict with char $ac_func (); below.
31460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31461 <limits.h> exists even on freestanding compilers. */
31462
31463#ifdef __STDC__
31464# include <limits.h>
31465#else
31466# include <assert.h>
31467#endif
31468
31469#undef $ac_func
31470
Reid Spencera773bd52006-08-04 18:18:08 +000031471/* Override any GCC internal prototype to avoid an error.
31472 Use char because int might match the return type of a GCC
31473 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031474#ifdef __cplusplus
31475extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031476#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031477char $ac_func ();
31478/* The GNU C library defines this for functions which it implements
31479 to always fail with ENOSYS. Some functions are actually named
31480 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031481#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031482choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031483#endif
31484
31485int
31486main ()
31487{
Reid Spencera773bd52006-08-04 18:18:08 +000031488return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031489 ;
31490 return 0;
31491}
31492_ACEOF
31493rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031494if { (ac_try="$ac_link"
31495case "(($ac_try" in
31496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31497 *) ac_try_echo=$ac_try;;
31498esac
31499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31500 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031501 ac_status=$?
31502 grep -v '^ *+' conftest.er1 >conftest.err
31503 rm -f conftest.er1
31504 cat conftest.err >&5
31505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031506 (exit $ac_status); } &&
31507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31508 { (case "(($ac_try" in
31509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31510 *) ac_try_echo=$ac_try;;
31511esac
31512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31513 (eval "$ac_try") 2>&5
31514 ac_status=$?
31515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516 (exit $ac_status); }; } &&
31517 { ac_try='test -s conftest$ac_exeext'
31518 { (case "(($ac_try" in
31519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520 *) ac_try_echo=$ac_try;;
31521esac
31522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523 (eval "$ac_try") 2>&5
31524 ac_status=$?
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031527 eval "$as_ac_var=yes"
31528else
31529 echo "$as_me: failed program was:" >&5
31530sed 's/^/| /' conftest.$ac_ext >&5
31531
Reid Spencera773bd52006-08-04 18:18:08 +000031532 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031533fi
Reid Spencera773bd52006-08-04 18:18:08 +000031534
Tanya Lattnercf067672008-01-17 05:57:22 +000031535rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031536 conftest$ac_exeext conftest.$ac_ext
31537fi
Reid Spencera773bd52006-08-04 18:18:08 +000031538ac_res=`eval echo '${'$as_ac_var'}'`
31539 { echo "$as_me:$LINENO: result: $ac_res" >&5
31540echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031541if test `eval echo '${'$as_ac_var'}'` = yes; then
31542
31543cat >>confdefs.h <<_ACEOF
31544#define CRAY_STACKSEG_END $ac_func
31545_ACEOF
31546
31547 break
31548fi
31549
31550 done
31551fi
31552
Reid Spencera773bd52006-08-04 18:18:08 +000031553{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31554echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031555if test "${ac_cv_c_stack_direction+set}" = set; then
31556 echo $ECHO_N "(cached) $ECHO_C" >&6
31557else
31558 if test "$cross_compiling" = yes; then
31559 ac_cv_c_stack_direction=0
31560else
31561 cat >conftest.$ac_ext <<_ACEOF
31562/* confdefs.h. */
31563_ACEOF
31564cat confdefs.h >>conftest.$ac_ext
31565cat >>conftest.$ac_ext <<_ACEOF
31566/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031567$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031568int
31569find_stack_direction ()
31570{
31571 static char *addr = 0;
31572 auto char dummy;
31573 if (addr == 0)
31574 {
31575 addr = &dummy;
31576 return find_stack_direction ();
31577 }
John Criswell0021c312004-02-13 21:57:29 +000031578 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031579 return (&dummy > addr) ? 1 : -1;
31580}
John Criswell0021c312004-02-13 21:57:29 +000031581
John Criswell0021c312004-02-13 21:57:29 +000031582int
31583main ()
31584{
Reid Spencera773bd52006-08-04 18:18:08 +000031585 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031586}
31587_ACEOF
31588rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031589if { (ac_try="$ac_link"
31590case "(($ac_try" in
31591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592 *) ac_try_echo=$ac_try;;
31593esac
31594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031596 ac_status=$?
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031599 { (case "(($ac_try" in
31600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31601 *) ac_try_echo=$ac_try;;
31602esac
31603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31604 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031605 ac_status=$?
31606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31607 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031608 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031609else
31610 echo "$as_me: program exited with status $ac_status" >&5
31611echo "$as_me: failed program was:" >&5
31612sed 's/^/| /' conftest.$ac_ext >&5
31613
31614( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031615ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031616fi
Reid Spencera773bd52006-08-04 18:18:08 +000031617rm -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 +000031618fi
Reid Spencera773bd52006-08-04 18:18:08 +000031619
31620
John Criswell0021c312004-02-13 21:57:29 +000031621fi
Reid Spencera773bd52006-08-04 18:18:08 +000031622{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31623echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031624
31625cat >>confdefs.h <<_ACEOF
31626#define STACK_DIRECTION $ac_cv_c_stack_direction
31627_ACEOF
31628
31629
John Criswell0021c312004-02-13 21:57:29 +000031630fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031631
31632
Reid Spencera773bd52006-08-04 18:18:08 +000031633{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31634echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031635if test "${ac_cv_func_rand48+set}" = set; then
31636 echo $ECHO_N "(cached) $ECHO_C" >&6
31637else
Reid Spencera773bd52006-08-04 18:18:08 +000031638 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031639ac_cpp='$CXXCPP $CPPFLAGS'
31640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31643
31644 cat >conftest.$ac_ext <<_ACEOF
31645/* confdefs.h. */
31646_ACEOF
31647cat confdefs.h >>conftest.$ac_ext
31648cat >>conftest.$ac_ext <<_ACEOF
31649/* end confdefs.h. */
31650#include <stdlib.h>
31651int
31652main ()
31653{
31654srand48(0);lrand48();drand48();
31655 ;
31656 return 0;
31657}
31658_ACEOF
31659rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031660if { (ac_try="$ac_compile"
31661case "(($ac_try" in
31662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663 *) ac_try_echo=$ac_try;;
31664esac
31665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031667 ac_status=$?
31668 grep -v '^ *+' conftest.er1 >conftest.err
31669 rm -f conftest.er1
31670 cat conftest.err >&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031672 (exit $ac_status); } &&
31673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31674 { (case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31677esac
31678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_try") 2>&5
31680 ac_status=$?
31681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31682 (exit $ac_status); }; } &&
31683 { ac_try='test -s conftest.$ac_objext'
31684 { (case "(($ac_try" in
31685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686 *) ac_try_echo=$ac_try;;
31687esac
31688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689 (eval "$ac_try") 2>&5
31690 ac_status=$?
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031693 ac_cv_func_rand48=yes
31694else
31695 echo "$as_me: failed program was:" >&5
31696sed 's/^/| /' conftest.$ac_ext >&5
31697
Reid Spencera773bd52006-08-04 18:18:08 +000031698 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031699fi
Reid Spencera773bd52006-08-04 18:18:08 +000031700
31701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031702 ac_ext=c
31703ac_cpp='$CPP $CPPFLAGS'
31704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31706ac_compiler_gnu=$ac_cv_c_compiler_gnu
31707
31708fi
Reid Spencera773bd52006-08-04 18:18:08 +000031709{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31710echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031711
31712if test "$ac_cv_func_rand48" = "yes" ; then
31713
31714cat >>confdefs.h <<\_ACEOF
31715#define HAVE_RAND48 1
31716_ACEOF
31717
31718fi
John Criswell0021c312004-02-13 21:57:29 +000031719
31720
Reid Spencera773bd52006-08-04 18:18:08 +000031721{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31722echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031723if test "${ac_cv_cxx_namespaces+set}" = set; then
31724 echo $ECHO_N "(cached) $ECHO_C" >&6
31725else
Reid Spencera773bd52006-08-04 18:18:08 +000031726 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031727ac_cpp='$CXXCPP $CPPFLAGS'
31728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31731
31732 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031733/* confdefs.h. */
31734_ACEOF
31735cat confdefs.h >>conftest.$ac_ext
31736cat >>conftest.$ac_ext <<_ACEOF
31737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031738namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031739int
31740main ()
31741{
31742using namespace Outer::Inner; return i;
31743 ;
31744 return 0;
31745}
31746_ACEOF
31747rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031748if { (ac_try="$ac_compile"
31749case "(($ac_try" in
31750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31751 *) ac_try_echo=$ac_try;;
31752esac
31753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31754 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031755 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031756 grep -v '^ *+' conftest.er1 >conftest.err
31757 rm -f conftest.er1
31758 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031760 (exit $ac_status); } &&
31761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31762 { (case "(($ac_try" in
31763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31764 *) ac_try_echo=$ac_try;;
31765esac
31766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31767 (eval "$ac_try") 2>&5
31768 ac_status=$?
31769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770 (exit $ac_status); }; } &&
31771 { ac_try='test -s conftest.$ac_objext'
31772 { (case "(($ac_try" in
31773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31774 *) ac_try_echo=$ac_try;;
31775esac
31776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31777 (eval "$ac_try") 2>&5
31778 ac_status=$?
31779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031781 ac_cv_cxx_namespaces=yes
31782else
31783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031784sed 's/^/| /' conftest.$ac_ext >&5
31785
Reid Spencera773bd52006-08-04 18:18:08 +000031786 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031787fi
Reid Spencera773bd52006-08-04 18:18:08 +000031788
31789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031790 ac_ext=c
31791ac_cpp='$CPP $CPPFLAGS'
31792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31794ac_compiler_gnu=$ac_cv_c_compiler_gnu
31795
31796
31797fi
Reid Spencera773bd52006-08-04 18:18:08 +000031798{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31799echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031800if test "$ac_cv_cxx_namespaces" = yes; then
31801
31802cat >>confdefs.h <<\_ACEOF
31803#define HAVE_NAMESPACES
31804_ACEOF
31805
31806fi
31807
Reid Spencera773bd52006-08-04 18:18:08 +000031808{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31809echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031810if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031811 echo $ECHO_N "(cached) $ECHO_C" >&6
31812else
31813
Reid Spencera773bd52006-08-04 18:18:08 +000031814 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031815ac_cpp='$CXXCPP $CPPFLAGS'
31816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31819
31820 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031821/* confdefs.h. */
31822_ACEOF
31823cat confdefs.h >>conftest.$ac_ext
31824cat >>conftest.$ac_ext <<_ACEOF
31825/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031826#include <ext/hash_map>
31827#ifdef HAVE_NAMESPACES
31828using namespace std;
31829#endif
John Criswell7a73b802003-06-30 21:59:07 +000031830int
31831main ()
31832{
Brian Gaeke90583492003-11-10 03:06:28 +000031833hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031834 ;
31835 return 0;
31836}
31837_ACEOF
31838rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031839if { (ac_try="$ac_compile"
31840case "(($ac_try" in
31841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842 *) ac_try_echo=$ac_try;;
31843esac
31844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031846 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031847 grep -v '^ *+' conftest.er1 >conftest.err
31848 rm -f conftest.er1
31849 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031851 (exit $ac_status); } &&
31852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31853 { (case "(($ac_try" in
31854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855 *) ac_try_echo=$ac_try;;
31856esac
31857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31858 (eval "$ac_try") 2>&5
31859 ac_status=$?
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); }; } &&
31862 { ac_try='test -s conftest.$ac_objext'
31863 { (case "(($ac_try" in
31864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31865 *) ac_try_echo=$ac_try;;
31866esac
31867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31868 (eval "$ac_try") 2>&5
31869 ac_status=$?
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031872 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031873else
31874 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031875sed 's/^/| /' conftest.$ac_ext >&5
31876
Reid Spencera773bd52006-08-04 18:18:08 +000031877 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031878fi
Reid Spencera773bd52006-08-04 18:18:08 +000031879
31880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031881 ac_ext=c
31882ac_cpp='$CPP $CPPFLAGS'
31883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31885ac_compiler_gnu=$ac_cv_c_compiler_gnu
31886
John Criswell7a73b802003-06-30 21:59:07 +000031887fi
Reid Spencera773bd52006-08-04 18:18:08 +000031888{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31889echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031890 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31891 then
John Criswell9f011862004-09-24 18:28:00 +000031892
31893cat >>confdefs.h <<\_ACEOF
31894#define HAVE_STD_EXT_HASH_MAP 1
31895_ACEOF
31896
31897 else
31898
31899cat >>confdefs.h <<\_ACEOF
31900#define HAVE_STD_EXT_HASH_MAP 0
31901_ACEOF
31902
Brian Gaeke90583492003-11-10 03:06:28 +000031903 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031904
Reid Spencera773bd52006-08-04 18:18:08 +000031905 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31906echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031907if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31908 echo $ECHO_N "(cached) $ECHO_C" >&6
31909else
31910
Reid Spencera773bd52006-08-04 18:18:08 +000031911 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031912ac_cpp='$CXXCPP $CPPFLAGS'
31913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31916
31917 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031918/* confdefs.h. */
31919_ACEOF
31920cat confdefs.h >>conftest.$ac_ext
31921cat >>conftest.$ac_ext <<_ACEOF
31922/* end confdefs.h. */
31923#include <ext/hash_map>
31924#ifdef HAVE_NAMESPACES
31925using namespace __gnu_cxx;
31926#endif
31927int
31928main ()
31929{
31930hash_map<int,int> t;
31931 ;
31932 return 0;
31933}
31934_ACEOF
31935rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031936if { (ac_try="$ac_compile"
31937case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31940esac
31941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031943 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031944 grep -v '^ *+' conftest.er1 >conftest.err
31945 rm -f conftest.er1
31946 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031948 (exit $ac_status); } &&
31949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31950 { (case "(($ac_try" in
31951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31952 *) ac_try_echo=$ac_try;;
31953esac
31954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31955 (eval "$ac_try") 2>&5
31956 ac_status=$?
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; } &&
31959 { ac_try='test -s conftest.$ac_objext'
31960 { (case "(($ac_try" in
31961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962 *) ac_try_echo=$ac_try;;
31963esac
31964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31965 (eval "$ac_try") 2>&5
31966 ac_status=$?
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031969 ac_cv_cxx_have_gnu_ext_hash_map=yes
31970else
31971 echo "$as_me: failed program was:" >&5
31972sed 's/^/| /' conftest.$ac_ext >&5
31973
Reid Spencera773bd52006-08-04 18:18:08 +000031974 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031975fi
Reid Spencera773bd52006-08-04 18:18:08 +000031976
31977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031978 ac_ext=c
31979ac_cpp='$CPP $CPPFLAGS'
31980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31982ac_compiler_gnu=$ac_cv_c_compiler_gnu
31983
31984fi
Reid Spencera773bd52006-08-04 18:18:08 +000031985{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31986echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031987 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31988 then
John Criswell9f011862004-09-24 18:28:00 +000031989
31990cat >>confdefs.h <<\_ACEOF
31991#define HAVE_GNU_EXT_HASH_MAP 1
31992_ACEOF
31993
31994 else
31995
31996cat >>confdefs.h <<\_ACEOF
31997#define HAVE_GNU_EXT_HASH_MAP 0
31998_ACEOF
31999
Brian Gaeke90583492003-11-10 03:06:28 +000032000 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032001
Reid Spencera773bd52006-08-04 18:18:08 +000032002 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32003echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032004if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32005 echo $ECHO_N "(cached) $ECHO_C" >&6
32006else
John Criswell7a73b802003-06-30 21:59:07 +000032007
Reid Spencera773bd52006-08-04 18:18:08 +000032008 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032009ac_cpp='$CXXCPP $CPPFLAGS'
32010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32013
32014 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032015/* confdefs.h. */
32016_ACEOF
32017cat confdefs.h >>conftest.$ac_ext
32018cat >>conftest.$ac_ext <<_ACEOF
32019/* end confdefs.h. */
32020#include <hash_map>
32021int
32022main ()
32023{
32024hash_map<int,int> t;
32025 ;
32026 return 0;
32027}
32028_ACEOF
32029rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032030if { (ac_try="$ac_compile"
32031case "(($ac_try" in
32032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32033 *) ac_try_echo=$ac_try;;
32034esac
32035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32036 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032037 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032038 grep -v '^ *+' conftest.er1 >conftest.err
32039 rm -f conftest.er1
32040 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032042 (exit $ac_status); } &&
32043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32044 { (case "(($ac_try" in
32045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32046 *) ac_try_echo=$ac_try;;
32047esac
32048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32049 (eval "$ac_try") 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); }; } &&
32053 { ac_try='test -s conftest.$ac_objext'
32054 { (case "(($ac_try" in
32055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32056 *) ac_try_echo=$ac_try;;
32057esac
32058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32059 (eval "$ac_try") 2>&5
32060 ac_status=$?
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032063 ac_cv_cxx_have_global_hash_map=yes
32064else
32065 echo "$as_me: failed program was:" >&5
32066sed 's/^/| /' conftest.$ac_ext >&5
32067
Reid Spencera773bd52006-08-04 18:18:08 +000032068 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032069fi
Reid Spencera773bd52006-08-04 18:18:08 +000032070
32071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032072 ac_ext=c
32073ac_cpp='$CPP $CPPFLAGS'
32074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32076ac_compiler_gnu=$ac_cv_c_compiler_gnu
32077
32078fi
Reid Spencera773bd52006-08-04 18:18:08 +000032079{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32080echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032081 if test "$ac_cv_cxx_have_global_hash_map" = yes
32082 then
John Criswell9f011862004-09-24 18:28:00 +000032083
32084cat >>confdefs.h <<\_ACEOF
32085#define HAVE_GLOBAL_HASH_MAP 1
32086_ACEOF
32087
32088 else
32089
32090cat >>confdefs.h <<\_ACEOF
32091#define HAVE_GLOBAL_HASH_MAP 0
32092_ACEOF
32093
Brian Gaeke90583492003-11-10 03:06:28 +000032094 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032095
Reid Spencera773bd52006-08-04 18:18:08 +000032096{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32097echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032098if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032099 echo $ECHO_N "(cached) $ECHO_C" >&6
32100else
32101
Reid Spencera773bd52006-08-04 18:18:08 +000032102 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032103ac_cpp='$CXXCPP $CPPFLAGS'
32104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32107
32108 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032109/* confdefs.h. */
32110_ACEOF
32111cat confdefs.h >>conftest.$ac_ext
32112cat >>conftest.$ac_ext <<_ACEOF
32113/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032114#include <ext/hash_set>
32115#ifdef HAVE_NAMESPACES
32116using namespace std;
32117#endif
John Criswell7a73b802003-06-30 21:59:07 +000032118int
32119main ()
32120{
Brian Gaeke90583492003-11-10 03:06:28 +000032121hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032122 ;
32123 return 0;
32124}
32125_ACEOF
32126rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032127if { (ac_try="$ac_compile"
32128case "(($ac_try" in
32129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32130 *) ac_try_echo=$ac_try;;
32131esac
32132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32133 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032134 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032135 grep -v '^ *+' conftest.er1 >conftest.err
32136 rm -f conftest.er1
32137 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032139 (exit $ac_status); } &&
32140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32141 { (case "(($ac_try" in
32142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143 *) ac_try_echo=$ac_try;;
32144esac
32145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146 (eval "$ac_try") 2>&5
32147 ac_status=$?
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); }; } &&
32150 { ac_try='test -s conftest.$ac_objext'
32151 { (case "(($ac_try" in
32152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153 *) ac_try_echo=$ac_try;;
32154esac
32155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156 (eval "$ac_try") 2>&5
32157 ac_status=$?
32158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032160 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032161else
32162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032163sed 's/^/| /' conftest.$ac_ext >&5
32164
Reid Spencera773bd52006-08-04 18:18:08 +000032165 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032166fi
Reid Spencera773bd52006-08-04 18:18:08 +000032167
32168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032169 ac_ext=c
32170ac_cpp='$CPP $CPPFLAGS'
32171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32173ac_compiler_gnu=$ac_cv_c_compiler_gnu
32174
32175fi
Reid Spencera773bd52006-08-04 18:18:08 +000032176{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32177echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032178 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32179 then
John Criswell9f011862004-09-24 18:28:00 +000032180
32181cat >>confdefs.h <<\_ACEOF
32182#define HAVE_STD_EXT_HASH_SET 1
32183_ACEOF
32184
32185 else
32186
32187cat >>confdefs.h <<\_ACEOF
32188#define HAVE_STD_EXT_HASH_SET 0
32189_ACEOF
32190
Brian Gaeke90583492003-11-10 03:06:28 +000032191 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032192
Reid Spencera773bd52006-08-04 18:18:08 +000032193 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32194echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032195if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32196 echo $ECHO_N "(cached) $ECHO_C" >&6
32197else
32198
Reid Spencera773bd52006-08-04 18:18:08 +000032199 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032200ac_cpp='$CXXCPP $CPPFLAGS'
32201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32204
John Criswell7a73b802003-06-30 21:59:07 +000032205 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032206/* confdefs.h. */
32207_ACEOF
32208cat confdefs.h >>conftest.$ac_ext
32209cat >>conftest.$ac_ext <<_ACEOF
32210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032211#include <ext/hash_set>
32212#ifdef HAVE_NAMESPACES
32213using namespace __gnu_cxx;
32214#endif
John Criswell7a73b802003-06-30 21:59:07 +000032215int
32216main ()
32217{
Brian Gaeke90583492003-11-10 03:06:28 +000032218hash_set<int> t;
32219 ;
32220 return 0;
32221}
32222_ACEOF
32223rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032224if { (ac_try="$ac_compile"
32225case "(($ac_try" in
32226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227 *) ac_try_echo=$ac_try;;
32228esac
32229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032231 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032232 grep -v '^ *+' conftest.er1 >conftest.err
32233 rm -f conftest.er1
32234 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032236 (exit $ac_status); } &&
32237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32238 { (case "(($ac_try" in
32239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240 *) ac_try_echo=$ac_try;;
32241esac
32242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243 (eval "$ac_try") 2>&5
32244 ac_status=$?
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); }; } &&
32247 { ac_try='test -s conftest.$ac_objext'
32248 { (case "(($ac_try" in
32249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32250 *) ac_try_echo=$ac_try;;
32251esac
32252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32253 (eval "$ac_try") 2>&5
32254 ac_status=$?
32255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032257 ac_cv_cxx_have_gnu_ext_hash_set=yes
32258else
32259 echo "$as_me: failed program was:" >&5
32260sed 's/^/| /' conftest.$ac_ext >&5
32261
Reid Spencera773bd52006-08-04 18:18:08 +000032262 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032263fi
Reid Spencera773bd52006-08-04 18:18:08 +000032264
32265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032266 ac_ext=c
32267ac_cpp='$CPP $CPPFLAGS'
32268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32270ac_compiler_gnu=$ac_cv_c_compiler_gnu
32271
32272fi
Reid Spencera773bd52006-08-04 18:18:08 +000032273{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32274echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032275 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32276 then
John Criswell9f011862004-09-24 18:28:00 +000032277
32278cat >>confdefs.h <<\_ACEOF
32279#define HAVE_GNU_EXT_HASH_SET 1
32280_ACEOF
32281
32282 else
32283
32284cat >>confdefs.h <<\_ACEOF
32285#define HAVE_GNU_EXT_HASH_SET 0
32286_ACEOF
32287
Brian Gaeke90583492003-11-10 03:06:28 +000032288 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032289
Reid Spencera773bd52006-08-04 18:18:08 +000032290 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32291echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032292if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32293 echo $ECHO_N "(cached) $ECHO_C" >&6
32294else
32295
Reid Spencera773bd52006-08-04 18:18:08 +000032296 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032297ac_cpp='$CXXCPP $CPPFLAGS'
32298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32301
32302 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032303/* confdefs.h. */
32304_ACEOF
32305cat confdefs.h >>conftest.$ac_ext
32306cat >>conftest.$ac_ext <<_ACEOF
32307/* end confdefs.h. */
32308#include <hash_set>
32309int
32310main ()
32311{
John Criswell7a73b802003-06-30 21:59:07 +000032312hash_set<int> t; return 0;
32313 ;
32314 return 0;
32315}
32316_ACEOF
32317rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032318if { (ac_try="$ac_compile"
32319case "(($ac_try" in
32320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32321 *) ac_try_echo=$ac_try;;
32322esac
32323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32324 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032326 grep -v '^ *+' conftest.er1 >conftest.err
32327 rm -f conftest.er1
32328 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032330 (exit $ac_status); } &&
32331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32332 { (case "(($ac_try" in
32333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32334 *) ac_try_echo=$ac_try;;
32335esac
32336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32337 (eval "$ac_try") 2>&5
32338 ac_status=$?
32339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340 (exit $ac_status); }; } &&
32341 { ac_try='test -s conftest.$ac_objext'
32342 { (case "(($ac_try" in
32343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32344 *) ac_try_echo=$ac_try;;
32345esac
32346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32347 (eval "$ac_try") 2>&5
32348 ac_status=$?
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032351 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032352else
32353 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032354sed 's/^/| /' conftest.$ac_ext >&5
32355
Reid Spencera773bd52006-08-04 18:18:08 +000032356 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032357fi
Reid Spencera773bd52006-08-04 18:18:08 +000032358
32359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032360 ac_ext=c
32361ac_cpp='$CPP $CPPFLAGS'
32362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32364ac_compiler_gnu=$ac_cv_c_compiler_gnu
32365
John Criswell7a73b802003-06-30 21:59:07 +000032366fi
Reid Spencera773bd52006-08-04 18:18:08 +000032367{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32368echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032369 if test "$ac_cv_cxx_have_global_hash_set" = yes
32370 then
John Criswell9f011862004-09-24 18:28:00 +000032371
32372cat >>confdefs.h <<\_ACEOF
32373#define HAVE_GLOBAL_HASH_SET 1
32374_ACEOF
32375
32376 else
32377
32378cat >>confdefs.h <<\_ACEOF
32379#define HAVE_GLOBAL_HASH_SET 0
32380_ACEOF
32381
Brian Gaeke90583492003-11-10 03:06:28 +000032382 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032383
Reid Spencera773bd52006-08-04 18:18:08 +000032384{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32385echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032386if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32387 echo $ECHO_N "(cached) $ECHO_C" >&6
32388else
32389
Reid Spencera773bd52006-08-04 18:18:08 +000032390 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032391ac_cpp='$CXXCPP $CPPFLAGS'
32392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32395
32396 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032397/* confdefs.h. */
32398_ACEOF
32399cat confdefs.h >>conftest.$ac_ext
32400cat >>conftest.$ac_ext <<_ACEOF
32401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032402#include <iterator>
32403#ifdef HAVE_NAMESPACES
32404using namespace std;
32405#endif
John Criswell7a73b802003-06-30 21:59:07 +000032406int
32407main ()
32408{
32409iterator<int,int,int> t; return 0;
32410 ;
32411 return 0;
32412}
32413_ACEOF
32414rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032415if { (ac_try="$ac_compile"
32416case "(($ac_try" in
32417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32418 *) ac_try_echo=$ac_try;;
32419esac
32420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32421 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032422 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032423 grep -v '^ *+' conftest.er1 >conftest.err
32424 rm -f conftest.er1
32425 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032427 (exit $ac_status); } &&
32428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32429 { (case "(($ac_try" in
32430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32431 *) ac_try_echo=$ac_try;;
32432esac
32433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32434 (eval "$ac_try") 2>&5
32435 ac_status=$?
32436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437 (exit $ac_status); }; } &&
32438 { ac_try='test -s conftest.$ac_objext'
32439 { (case "(($ac_try" in
32440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32441 *) ac_try_echo=$ac_try;;
32442esac
32443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32444 (eval "$ac_try") 2>&5
32445 ac_status=$?
32446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032448 ac_cv_cxx_have_std_iterator=yes
32449else
32450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032451sed 's/^/| /' conftest.$ac_ext >&5
32452
Reid Spencera773bd52006-08-04 18:18:08 +000032453 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032454fi
Reid Spencera773bd52006-08-04 18:18:08 +000032455
32456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032457 ac_ext=c
32458ac_cpp='$CPP $CPPFLAGS'
32459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32461ac_compiler_gnu=$ac_cv_c_compiler_gnu
32462
32463
32464fi
Reid Spencera773bd52006-08-04 18:18:08 +000032465{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32466echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032467if test "$ac_cv_cxx_have_std_iterator" = yes
32468then
John Criswell40468462004-09-24 21:19:06 +000032469
32470cat >>confdefs.h <<\_ACEOF
32471#define HAVE_STD_ITERATOR 1
32472_ACEOF
32473
32474else
32475
32476cat >>confdefs.h <<\_ACEOF
32477#define HAVE_STD_ITERATOR 0
32478_ACEOF
32479
John Criswell7a73b802003-06-30 21:59:07 +000032480fi
32481
Reid Spencera773bd52006-08-04 18:18:08 +000032482{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32483echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032484if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32485 echo $ECHO_N "(cached) $ECHO_C" >&6
32486else
32487
Reid Spencera773bd52006-08-04 18:18:08 +000032488 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032489ac_cpp='$CXXCPP $CPPFLAGS'
32490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32493
32494 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032495/* confdefs.h. */
32496_ACEOF
32497cat confdefs.h >>conftest.$ac_ext
32498cat >>conftest.$ac_ext <<_ACEOF
32499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032500#include <iterator>
32501#ifdef HAVE_NAMESPACES
32502using namespace std;
32503#endif
John Criswell7a73b802003-06-30 21:59:07 +000032504int
32505main ()
32506{
John Criswellc78022e2003-07-29 19:11:58 +000032507bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032508 ;
32509 return 0;
32510}
32511_ACEOF
32512rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032513if { (ac_try="$ac_compile"
32514case "(($ac_try" in
32515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32516 *) ac_try_echo=$ac_try;;
32517esac
32518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32519 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032521 grep -v '^ *+' conftest.er1 >conftest.err
32522 rm -f conftest.er1
32523 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032525 (exit $ac_status); } &&
32526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32527 { (case "(($ac_try" in
32528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32529 *) ac_try_echo=$ac_try;;
32530esac
32531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32532 (eval "$ac_try") 2>&5
32533 ac_status=$?
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; } &&
32536 { ac_try='test -s conftest.$ac_objext'
32537 { (case "(($ac_try" in
32538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32539 *) ac_try_echo=$ac_try;;
32540esac
32541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32542 (eval "$ac_try") 2>&5
32543 ac_status=$?
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032546 ac_cv_cxx_have_bi_iterator=yes
32547else
32548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032549sed 's/^/| /' conftest.$ac_ext >&5
32550
Reid Spencera773bd52006-08-04 18:18:08 +000032551 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032552fi
Reid Spencera773bd52006-08-04 18:18:08 +000032553
32554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032555 ac_ext=c
32556ac_cpp='$CPP $CPPFLAGS'
32557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32559ac_compiler_gnu=$ac_cv_c_compiler_gnu
32560
32561
32562fi
Reid Spencera773bd52006-08-04 18:18:08 +000032563{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32564echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032565if test "$ac_cv_cxx_have_bi_iterator" = yes
32566then
John Criswell40468462004-09-24 21:19:06 +000032567
32568cat >>confdefs.h <<\_ACEOF
32569#define HAVE_BI_ITERATOR 1
32570_ACEOF
32571
32572else
32573
32574cat >>confdefs.h <<\_ACEOF
32575#define HAVE_BI_ITERATOR 0
32576_ACEOF
32577
John Criswell7a73b802003-06-30 21:59:07 +000032578fi
32579
Reid Spencera773bd52006-08-04 18:18:08 +000032580{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32581echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032582if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32583 echo $ECHO_N "(cached) $ECHO_C" >&6
32584else
32585
Reid Spencera773bd52006-08-04 18:18:08 +000032586 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032587ac_cpp='$CXXCPP $CPPFLAGS'
32588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32591
32592 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032593/* confdefs.h. */
32594_ACEOF
32595cat confdefs.h >>conftest.$ac_ext
32596cat >>conftest.$ac_ext <<_ACEOF
32597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032598#include <iterator>
32599#ifdef HAVE_NAMESPACES
32600using namespace std;
32601#endif
John Criswell7a73b802003-06-30 21:59:07 +000032602int
32603main ()
32604{
John Criswellc78022e2003-07-29 19:11:58 +000032605forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032606 ;
32607 return 0;
32608}
32609_ACEOF
32610rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032611if { (ac_try="$ac_compile"
32612case "(($ac_try" in
32613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32614 *) ac_try_echo=$ac_try;;
32615esac
32616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32617 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032618 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032619 grep -v '^ *+' conftest.er1 >conftest.err
32620 rm -f conftest.er1
32621 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032623 (exit $ac_status); } &&
32624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32625 { (case "(($ac_try" in
32626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32627 *) ac_try_echo=$ac_try;;
32628esac
32629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32630 (eval "$ac_try") 2>&5
32631 ac_status=$?
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); }; } &&
32634 { ac_try='test -s conftest.$ac_objext'
32635 { (case "(($ac_try" in
32636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32637 *) ac_try_echo=$ac_try;;
32638esac
32639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32640 (eval "$ac_try") 2>&5
32641 ac_status=$?
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032644 ac_cv_cxx_have_fwd_iterator=yes
32645else
32646 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032647sed 's/^/| /' conftest.$ac_ext >&5
32648
Reid Spencera773bd52006-08-04 18:18:08 +000032649 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032650fi
Reid Spencera773bd52006-08-04 18:18:08 +000032651
32652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032653 ac_ext=c
32654ac_cpp='$CPP $CPPFLAGS'
32655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657ac_compiler_gnu=$ac_cv_c_compiler_gnu
32658
32659
32660fi
Reid Spencera773bd52006-08-04 18:18:08 +000032661{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32662echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032663if test "$ac_cv_cxx_have_fwd_iterator" = yes
32664then
John Criswell40468462004-09-24 21:19:06 +000032665
32666cat >>confdefs.h <<\_ACEOF
32667#define HAVE_FWD_ITERATOR 1
32668_ACEOF
32669
32670else
32671
32672cat >>confdefs.h <<\_ACEOF
32673#define HAVE_FWD_ITERATOR 0
32674_ACEOF
32675
John Criswell7a73b802003-06-30 21:59:07 +000032676fi
32677
32678
Reid Spencera773bd52006-08-04 18:18:08 +000032679{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32680echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032681if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32682 echo $ECHO_N "(cached) $ECHO_C" >&6
32683else
Reid Spencera773bd52006-08-04 18:18:08 +000032684 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032685ac_cpp='$CXXCPP $CPPFLAGS'
32686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32689
Reid Spencerabec8f92004-10-27 23:03:44 +000032690 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032691/* confdefs.h. */
32692_ACEOF
32693cat confdefs.h >>conftest.$ac_ext
32694cat >>conftest.$ac_ext <<_ACEOF
32695/* end confdefs.h. */
32696#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032697int
32698main ()
32699{
32700float f; isnan(f);
32701 ;
32702 return 0;
32703}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032704_ACEOF
32705rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032706if { (ac_try="$ac_compile"
32707case "(($ac_try" in
32708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709 *) ac_try_echo=$ac_try;;
32710esac
32711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032713 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032714 grep -v '^ *+' conftest.er1 >conftest.err
32715 rm -f conftest.er1
32716 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032718 (exit $ac_status); } &&
32719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32720 { (case "(($ac_try" in
32721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722 *) ac_try_echo=$ac_try;;
32723esac
32724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725 (eval "$ac_try") 2>&5
32726 ac_status=$?
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); }; } &&
32729 { ac_try='test -s conftest.$ac_objext'
32730 { (case "(($ac_try" in
32731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32732 *) ac_try_echo=$ac_try;;
32733esac
32734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32735 (eval "$ac_try") 2>&5
32736 ac_status=$?
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032739 ac_cv_func_isnan_in_math_h=yes
32740else
32741 echo "$as_me: failed program was:" >&5
32742sed 's/^/| /' conftest.$ac_ext >&5
32743
Reid Spencera773bd52006-08-04 18:18:08 +000032744 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032745fi
Reid Spencera773bd52006-08-04 18:18:08 +000032746
32747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032748 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032749ac_cpp='$CPP $CPPFLAGS'
32750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32752ac_compiler_gnu=$ac_cv_c_compiler_gnu
32753
32754fi
Reid Spencera773bd52006-08-04 18:18:08 +000032755{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32756echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032757
32758
32759if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032760
32761cat >>confdefs.h <<\_ACEOF
32762#define HAVE_ISNAN_IN_MATH_H 1
32763_ACEOF
32764
Reid Spencerabec8f92004-10-27 23:03:44 +000032765fi
32766
Reid Spencera773bd52006-08-04 18:18:08 +000032767{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32768echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032769if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32770 echo $ECHO_N "(cached) $ECHO_C" >&6
32771else
Reid Spencera773bd52006-08-04 18:18:08 +000032772 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032773ac_cpp='$CXXCPP $CPPFLAGS'
32774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32777
Reid Spencerabec8f92004-10-27 23:03:44 +000032778 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032779/* confdefs.h. */
32780_ACEOF
32781cat confdefs.h >>conftest.$ac_ext
32782cat >>conftest.$ac_ext <<_ACEOF
32783/* end confdefs.h. */
32784#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032785int
32786main ()
32787{
32788float f; isnan(f);
32789 ;
32790 return 0;
32791}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032792_ACEOF
32793rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032794if { (ac_try="$ac_compile"
32795case "(($ac_try" in
32796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32797 *) ac_try_echo=$ac_try;;
32798esac
32799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32800 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032801 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032802 grep -v '^ *+' conftest.er1 >conftest.err
32803 rm -f conftest.er1
32804 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032806 (exit $ac_status); } &&
32807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32808 { (case "(($ac_try" in
32809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32810 *) ac_try_echo=$ac_try;;
32811esac
32812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32813 (eval "$ac_try") 2>&5
32814 ac_status=$?
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); }; } &&
32817 { ac_try='test -s conftest.$ac_objext'
32818 { (case "(($ac_try" in
32819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32820 *) ac_try_echo=$ac_try;;
32821esac
32822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32823 (eval "$ac_try") 2>&5
32824 ac_status=$?
32825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032827 ac_cv_func_isnan_in_cmath=yes
32828else
32829 echo "$as_me: failed program was:" >&5
32830sed 's/^/| /' conftest.$ac_ext >&5
32831
Reid Spencera773bd52006-08-04 18:18:08 +000032832 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032833fi
Reid Spencera773bd52006-08-04 18:18:08 +000032834
32835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032836 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032837ac_cpp='$CPP $CPPFLAGS'
32838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32840ac_compiler_gnu=$ac_cv_c_compiler_gnu
32841
32842fi
Reid Spencera773bd52006-08-04 18:18:08 +000032843{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32844echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032845
32846if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032847
32848cat >>confdefs.h <<\_ACEOF
32849#define HAVE_ISNAN_IN_CMATH 1
32850_ACEOF
32851
Reid Spencerabec8f92004-10-27 23:03:44 +000032852fi
32853
Reid Spencera773bd52006-08-04 18:18:08 +000032854{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32855echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032856if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32857 echo $ECHO_N "(cached) $ECHO_C" >&6
32858else
Reid Spencera773bd52006-08-04 18:18:08 +000032859 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032860ac_cpp='$CXXCPP $CPPFLAGS'
32861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32864
Reid Spencerabec8f92004-10-27 23:03:44 +000032865 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032866/* confdefs.h. */
32867_ACEOF
32868cat confdefs.h >>conftest.$ac_ext
32869cat >>conftest.$ac_ext <<_ACEOF
32870/* end confdefs.h. */
32871#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032872int
32873main ()
32874{
32875float f; std::isnan(f);
32876 ;
32877 return 0;
32878}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032879_ACEOF
32880rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032881if { (ac_try="$ac_compile"
32882case "(($ac_try" in
32883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32884 *) ac_try_echo=$ac_try;;
32885esac
32886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032888 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032889 grep -v '^ *+' conftest.er1 >conftest.err
32890 rm -f conftest.er1
32891 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032893 (exit $ac_status); } &&
32894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32895 { (case "(($ac_try" in
32896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32897 *) ac_try_echo=$ac_try;;
32898esac
32899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900 (eval "$ac_try") 2>&5
32901 ac_status=$?
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; } &&
32904 { ac_try='test -s conftest.$ac_objext'
32905 { (case "(($ac_try" in
32906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32907 *) ac_try_echo=$ac_try;;
32908esac
32909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32910 (eval "$ac_try") 2>&5
32911 ac_status=$?
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032914 ac_cv_func_std_isnan_in_cmath=yes
32915else
32916 echo "$as_me: failed program was:" >&5
32917sed 's/^/| /' conftest.$ac_ext >&5
32918
Reid Spencera773bd52006-08-04 18:18:08 +000032919 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032920fi
Reid Spencera773bd52006-08-04 18:18:08 +000032921
32922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032923 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032924ac_cpp='$CPP $CPPFLAGS'
32925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32927ac_compiler_gnu=$ac_cv_c_compiler_gnu
32928
32929fi
Reid Spencera773bd52006-08-04 18:18:08 +000032930{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32931echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032932
32933if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032934
32935cat >>confdefs.h <<\_ACEOF
32936#define HAVE_STD_ISNAN_IN_CMATH 1
32937_ACEOF
32938
Reid Spencerabec8f92004-10-27 23:03:44 +000032939fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032940
32941
Reid Spencera773bd52006-08-04 18:18:08 +000032942{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32943echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032944if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32945 echo $ECHO_N "(cached) $ECHO_C" >&6
32946else
Reid Spencera773bd52006-08-04 18:18:08 +000032947 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032948ac_cpp='$CXXCPP $CPPFLAGS'
32949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32952
Reid Spencerabec8f92004-10-27 23:03:44 +000032953 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032954/* confdefs.h. */
32955_ACEOF
32956cat confdefs.h >>conftest.$ac_ext
32957cat >>conftest.$ac_ext <<_ACEOF
32958/* end confdefs.h. */
32959#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032960int
32961main ()
32962{
32963float f; isinf(f);
32964 ;
32965 return 0;
32966}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032967_ACEOF
32968rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032969if { (ac_try="$ac_compile"
32970case "(($ac_try" in
32971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32972 *) ac_try_echo=$ac_try;;
32973esac
32974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32975 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032976 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032977 grep -v '^ *+' conftest.er1 >conftest.err
32978 rm -f conftest.er1
32979 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032981 (exit $ac_status); } &&
32982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32983 { (case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32986esac
32987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_try") 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; } &&
32992 { ac_try='test -s conftest.$ac_objext'
32993 { (case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32996esac
32997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_try") 2>&5
32999 ac_status=$?
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033002 ac_cv_func_isinf_in_math_h=yes
33003else
33004 echo "$as_me: failed program was:" >&5
33005sed 's/^/| /' conftest.$ac_ext >&5
33006
Reid Spencera773bd52006-08-04 18:18:08 +000033007 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033008fi
Reid Spencera773bd52006-08-04 18:18:08 +000033009
33010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033011 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033012ac_cpp='$CPP $CPPFLAGS'
33013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33015ac_compiler_gnu=$ac_cv_c_compiler_gnu
33016
33017fi
Reid Spencera773bd52006-08-04 18:18:08 +000033018{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33019echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033020
33021if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033022
33023cat >>confdefs.h <<\_ACEOF
33024#define HAVE_ISINF_IN_MATH_H 1
33025_ACEOF
33026
Reid Spencerabec8f92004-10-27 23:03:44 +000033027fi
33028
Reid Spencera773bd52006-08-04 18:18:08 +000033029{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33030echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033031if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33033else
Reid Spencera773bd52006-08-04 18:18:08 +000033034 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033035ac_cpp='$CXXCPP $CPPFLAGS'
33036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33039
Reid Spencerabec8f92004-10-27 23:03:44 +000033040 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033041/* confdefs.h. */
33042_ACEOF
33043cat confdefs.h >>conftest.$ac_ext
33044cat >>conftest.$ac_ext <<_ACEOF
33045/* end confdefs.h. */
33046#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033047int
33048main ()
33049{
33050float f; isinf(f);
33051 ;
33052 return 0;
33053}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033054_ACEOF
33055rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033056if { (ac_try="$ac_compile"
33057case "(($ac_try" in
33058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059 *) ac_try_echo=$ac_try;;
33060esac
33061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33062 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033063 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033064 grep -v '^ *+' conftest.er1 >conftest.err
33065 rm -f conftest.er1
33066 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033068 (exit $ac_status); } &&
33069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33070 { (case "(($ac_try" in
33071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072 *) ac_try_echo=$ac_try;;
33073esac
33074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075 (eval "$ac_try") 2>&5
33076 ac_status=$?
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); }; } &&
33079 { ac_try='test -s conftest.$ac_objext'
33080 { (case "(($ac_try" in
33081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33082 *) ac_try_echo=$ac_try;;
33083esac
33084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33085 (eval "$ac_try") 2>&5
33086 ac_status=$?
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033089 ac_cv_func_isinf_in_cmath=yes
33090else
33091 echo "$as_me: failed program was:" >&5
33092sed 's/^/| /' conftest.$ac_ext >&5
33093
Reid Spencera773bd52006-08-04 18:18:08 +000033094 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033095fi
Reid Spencera773bd52006-08-04 18:18:08 +000033096
33097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033098 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033099ac_cpp='$CPP $CPPFLAGS'
33100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33102ac_compiler_gnu=$ac_cv_c_compiler_gnu
33103
33104fi
Reid Spencera773bd52006-08-04 18:18:08 +000033105{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33106echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033107
33108if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033109
33110cat >>confdefs.h <<\_ACEOF
33111#define HAVE_ISINF_IN_CMATH 1
33112_ACEOF
33113
Reid Spencerabec8f92004-10-27 23:03:44 +000033114fi
33115
Reid Spencera773bd52006-08-04 18:18:08 +000033116{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33117echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033118if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33119 echo $ECHO_N "(cached) $ECHO_C" >&6
33120else
Reid Spencera773bd52006-08-04 18:18:08 +000033121 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033122ac_cpp='$CXXCPP $CPPFLAGS'
33123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33126
Reid Spencerabec8f92004-10-27 23:03:44 +000033127 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033128/* confdefs.h. */
33129_ACEOF
33130cat confdefs.h >>conftest.$ac_ext
33131cat >>conftest.$ac_ext <<_ACEOF
33132/* end confdefs.h. */
33133#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033134int
33135main ()
33136{
33137float f; std::isinf(f)}
33138 ;
33139 return 0;
33140}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033141_ACEOF
33142rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033143if { (ac_try="$ac_compile"
33144case "(($ac_try" in
33145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146 *) ac_try_echo=$ac_try;;
33147esac
33148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033150 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033151 grep -v '^ *+' conftest.er1 >conftest.err
33152 rm -f conftest.er1
33153 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033155 (exit $ac_status); } &&
33156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33157 { (case "(($ac_try" in
33158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33159 *) ac_try_echo=$ac_try;;
33160esac
33161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33162 (eval "$ac_try") 2>&5
33163 ac_status=$?
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); }; } &&
33166 { ac_try='test -s conftest.$ac_objext'
33167 { (case "(($ac_try" in
33168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33169 *) ac_try_echo=$ac_try;;
33170esac
33171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33172 (eval "$ac_try") 2>&5
33173 ac_status=$?
33174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033176 ac_cv_func_std_isinf_in_cmath=yes
33177else
33178 echo "$as_me: failed program was:" >&5
33179sed 's/^/| /' conftest.$ac_ext >&5
33180
Reid Spencera773bd52006-08-04 18:18:08 +000033181 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033182fi
Reid Spencera773bd52006-08-04 18:18:08 +000033183
33184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033185 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033186ac_cpp='$CPP $CPPFLAGS'
33187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33189ac_compiler_gnu=$ac_cv_c_compiler_gnu
33190
33191fi
Reid Spencera773bd52006-08-04 18:18:08 +000033192{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33193echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033194
33195if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033196
33197cat >>confdefs.h <<\_ACEOF
33198#define HAVE_STD_ISINF_IN_CMATH 1
33199_ACEOF
33200
Reid Spencerabec8f92004-10-27 23:03:44 +000033201fi
33202
Reid Spencera773bd52006-08-04 18:18:08 +000033203{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33204echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033205if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33206 echo $ECHO_N "(cached) $ECHO_C" >&6
33207else
Reid Spencera773bd52006-08-04 18:18:08 +000033208 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033209ac_cpp='$CXXCPP $CPPFLAGS'
33210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33213
Reid Spencerabec8f92004-10-27 23:03:44 +000033214 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033215/* confdefs.h. */
33216_ACEOF
33217cat confdefs.h >>conftest.$ac_ext
33218cat >>conftest.$ac_ext <<_ACEOF
33219/* end confdefs.h. */
33220#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033221int
33222main ()
33223{
33224float f; finite(f);
33225 ;
33226 return 0;
33227}
Brian Gaeked59a6472004-07-21 03:33:58 +000033228_ACEOF
33229rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033230if { (ac_try="$ac_compile"
33231case "(($ac_try" in
33232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33233 *) ac_try_echo=$ac_try;;
33234esac
33235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33236 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033237 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033238 grep -v '^ *+' conftest.er1 >conftest.err
33239 rm -f conftest.er1
33240 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033242 (exit $ac_status); } &&
33243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33244 { (case "(($ac_try" in
33245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33246 *) ac_try_echo=$ac_try;;
33247esac
33248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33249 (eval "$ac_try") 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; } &&
33253 { ac_try='test -s conftest.$ac_objext'
33254 { (case "(($ac_try" in
33255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33256 *) ac_try_echo=$ac_try;;
33257esac
33258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33259 (eval "$ac_try") 2>&5
33260 ac_status=$?
33261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033263 ac_cv_func_finite_in_ieeefp_h=yes
33264else
33265 echo "$as_me: failed program was:" >&5
33266sed 's/^/| /' conftest.$ac_ext >&5
33267
Reid Spencera773bd52006-08-04 18:18:08 +000033268 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033269fi
Reid Spencera773bd52006-08-04 18:18:08 +000033270
33271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033272 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033273ac_cpp='$CPP $CPPFLAGS'
33274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33276ac_compiler_gnu=$ac_cv_c_compiler_gnu
33277
33278fi
Reid Spencera773bd52006-08-04 18:18:08 +000033279{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33280echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033281
Brian Gaeke6802b552004-10-28 05:06:45 +000033282if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033283
33284cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033285#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033286_ACEOF
33287
Reid Spencerabec8f92004-10-27 23:03:44 +000033288fi
33289
33290
33291
Reid Spencer30fe5262007-01-20 07:48:49 +000033292if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033293
33294
33295for ac_header in stdlib.h unistd.h
33296do
33297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033302 echo $ECHO_N "(cached) $ECHO_C" >&6
33303fi
Reid Spencera773bd52006-08-04 18:18:08 +000033304ac_res=`eval echo '${'$as_ac_Header'}'`
33305 { echo "$as_me:$LINENO: result: $ac_res" >&5
33306echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033307else
33308 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033309{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33310echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033311cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033312/* confdefs.h. */
33313_ACEOF
33314cat confdefs.h >>conftest.$ac_ext
33315cat >>conftest.$ac_ext <<_ACEOF
33316/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033317$ac_includes_default
33318#include <$ac_header>
33319_ACEOF
33320rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033321if { (ac_try="$ac_compile"
33322case "(($ac_try" in
33323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33324 *) ac_try_echo=$ac_try;;
33325esac
33326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33327 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033328 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033329 grep -v '^ *+' conftest.er1 >conftest.err
33330 rm -f conftest.er1
33331 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033333 (exit $ac_status); } &&
33334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33335 { (case "(($ac_try" in
33336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33337 *) ac_try_echo=$ac_try;;
33338esac
33339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33340 (eval "$ac_try") 2>&5
33341 ac_status=$?
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); }; } &&
33344 { ac_try='test -s conftest.$ac_objext'
33345 { (case "(($ac_try" in
33346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33347 *) ac_try_echo=$ac_try;;
33348esac
33349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33350 (eval "$ac_try") 2>&5
33351 ac_status=$?
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033354 ac_header_compiler=yes
33355else
33356 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033357sed 's/^/| /' conftest.$ac_ext >&5
33358
Reid Spencera773bd52006-08-04 18:18:08 +000033359 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033360fi
Reid Spencera773bd52006-08-04 18:18:08 +000033361
33362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33363{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33364echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033365
33366# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033367{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33368echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033369cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033370/* confdefs.h. */
33371_ACEOF
33372cat confdefs.h >>conftest.$ac_ext
33373cat >>conftest.$ac_ext <<_ACEOF
33374/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033375#include <$ac_header>
33376_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033377if { (ac_try="$ac_cpp conftest.$ac_ext"
33378case "(($ac_try" in
33379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380 *) ac_try_echo=$ac_try;;
33381esac
33382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033384 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033385 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033386 rm -f conftest.er1
33387 cat conftest.err >&5
33388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033389 (exit $ac_status); } >/dev/null; then
33390 if test -s conftest.err; then
33391 ac_cpp_err=$ac_c_preproc_warn_flag
33392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33393 else
33394 ac_cpp_err=
33395 fi
33396else
33397 ac_cpp_err=yes
33398fi
33399if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033400 ac_header_preproc=yes
33401else
33402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033403sed 's/^/| /' conftest.$ac_ext >&5
33404
John Criswell7a73b802003-06-30 21:59:07 +000033405 ac_header_preproc=no
33406fi
Reid Spencera773bd52006-08-04 18:18:08 +000033407
John Criswell7a73b802003-06-30 21:59:07 +000033408rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033409{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33410echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033411
33412# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33414 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33418echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33419 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033420 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033421 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33425echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33427echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33429echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33433echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033434 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033435## ----------------------------------- ##
33436## Report this to llvmbugs@cs.uiuc.edu ##
33437## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033438_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033439 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033440 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033441esac
Reid Spencera773bd52006-08-04 18:18:08 +000033442{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033445 echo $ECHO_N "(cached) $ECHO_C" >&6
33446else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033447 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033448fi
Reid Spencera773bd52006-08-04 18:18:08 +000033449ac_res=`eval echo '${'$as_ac_Header'}'`
33450 { echo "$as_me:$LINENO: result: $ac_res" >&5
33451echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033452
33453fi
33454if test `eval echo '${'$as_ac_Header'}'` = yes; then
33455 cat >>confdefs.h <<_ACEOF
33456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33457_ACEOF
33458
33459fi
33460
33461done
33462
33463
33464for ac_func in getpagesize
33465do
33466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033467{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33469if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033470 echo $ECHO_N "(cached) $ECHO_C" >&6
33471else
33472 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033473/* confdefs.h. */
33474_ACEOF
33475cat confdefs.h >>conftest.$ac_ext
33476cat >>conftest.$ac_ext <<_ACEOF
33477/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33480#define $ac_func innocuous_$ac_func
33481
John Criswell7a73b802003-06-30 21:59:07 +000033482/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033483 which can conflict with char $ac_func (); below.
33484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33485 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033486
John Criswell0c38eaf2003-09-10 15:17:25 +000033487#ifdef __STDC__
33488# include <limits.h>
33489#else
33490# include <assert.h>
33491#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033492
33493#undef $ac_func
33494
Reid Spencera773bd52006-08-04 18:18:08 +000033495/* Override any GCC internal prototype to avoid an error.
33496 Use char because int might match the return type of a GCC
33497 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033498#ifdef __cplusplus
33499extern "C"
33500#endif
John Criswell7a73b802003-06-30 21:59:07 +000033501char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033502/* The GNU C library defines this for functions which it implements
33503 to always fail with ENOSYS. Some functions are actually named
33504 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033505#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033506choke me
John Criswell7a73b802003-06-30 21:59:07 +000033507#endif
33508
John Criswell0c38eaf2003-09-10 15:17:25 +000033509int
33510main ()
33511{
Reid Spencera773bd52006-08-04 18:18:08 +000033512return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033513 ;
33514 return 0;
33515}
33516_ACEOF
33517rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033518if { (ac_try="$ac_link"
33519case "(($ac_try" in
33520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33521 *) ac_try_echo=$ac_try;;
33522esac
33523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33524 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033525 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033526 grep -v '^ *+' conftest.er1 >conftest.err
33527 rm -f conftest.er1
33528 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033530 (exit $ac_status); } &&
33531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33532 { (case "(($ac_try" in
33533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33534 *) ac_try_echo=$ac_try;;
33535esac
33536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33537 (eval "$ac_try") 2>&5
33538 ac_status=$?
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); }; } &&
33541 { ac_try='test -s conftest$ac_exeext'
33542 { (case "(($ac_try" in
33543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33544 *) ac_try_echo=$ac_try;;
33545esac
33546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33547 (eval "$ac_try") 2>&5
33548 ac_status=$?
33549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033551 eval "$as_ac_var=yes"
33552else
33553 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033554sed 's/^/| /' conftest.$ac_ext >&5
33555
Reid Spencera773bd52006-08-04 18:18:08 +000033556 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033557fi
Reid Spencera773bd52006-08-04 18:18:08 +000033558
Tanya Lattnercf067672008-01-17 05:57:22 +000033559rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033560 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033561fi
Reid Spencera773bd52006-08-04 18:18:08 +000033562ac_res=`eval echo '${'$as_ac_var'}'`
33563 { echo "$as_me:$LINENO: result: $ac_res" >&5
33564echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033565if test `eval echo '${'$as_ac_var'}'` = yes; then
33566 cat >>confdefs.h <<_ACEOF
33567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33568_ACEOF
33569
33570fi
33571done
33572
Reid Spencera773bd52006-08-04 18:18:08 +000033573{ echo "$as_me:$LINENO: checking for working mmap" >&5
33574echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033575if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33576 echo $ECHO_N "(cached) $ECHO_C" >&6
33577else
33578 if test "$cross_compiling" = yes; then
33579 ac_cv_func_mmap_fixed_mapped=no
33580else
33581 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033582/* confdefs.h. */
33583_ACEOF
33584cat confdefs.h >>conftest.$ac_ext
33585cat >>conftest.$ac_ext <<_ACEOF
33586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033587$ac_includes_default
33588/* malloc might have been renamed as rpl_malloc. */
33589#undef malloc
33590
33591/* Thanks to Mike Haertel and Jim Avera for this test.
33592 Here is a matrix of mmap possibilities:
33593 mmap private not fixed
33594 mmap private fixed at somewhere currently unmapped
33595 mmap private fixed at somewhere already mapped
33596 mmap shared not fixed
33597 mmap shared fixed at somewhere currently unmapped
33598 mmap shared fixed at somewhere already mapped
33599 For private mappings, we should verify that changes cannot be read()
33600 back from the file, nor mmap's back from the file at a different
33601 address. (There have been systems where private was not correctly
33602 implemented like the infamous i386 svr4.0, and systems where the
33603 VM page cache was not coherent with the file system buffer cache
33604 like early versions of FreeBSD and possibly contemporary NetBSD.)
33605 For shared mappings, we should conversely verify that changes get
33606 propagated back to all the places they're supposed to be.
33607
33608 Grep wants private fixed already mapped.
33609 The main things grep needs to know about mmap are:
33610 * does it exist and is it safe to write into the mmap'd area
33611 * how to use it (BSD variants) */
33612
33613#include <fcntl.h>
33614#include <sys/mman.h>
33615
Tanya Lattnercf067672008-01-17 05:57:22 +000033616#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033617char *malloc ();
33618#endif
33619
33620/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033621#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033622/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033623# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033624# define HAVE_SYS_PARAM_H 1
33625# endif
33626
33627# ifdef _SC_PAGESIZE
33628# define getpagesize() sysconf(_SC_PAGESIZE)
33629# else /* no _SC_PAGESIZE */
Tanya Lattnercf067672008-01-17 05:57:22 +000033630# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033631# include <sys/param.h>
33632# ifdef EXEC_PAGESIZE
33633# define getpagesize() EXEC_PAGESIZE
33634# else /* no EXEC_PAGESIZE */
33635# ifdef NBPG
33636# define getpagesize() NBPG * CLSIZE
33637# ifndef CLSIZE
33638# define CLSIZE 1
33639# endif /* no CLSIZE */
33640# else /* no NBPG */
33641# ifdef NBPC
33642# define getpagesize() NBPC
33643# else /* no NBPC */
33644# ifdef PAGESIZE
33645# define getpagesize() PAGESIZE
33646# endif /* PAGESIZE */
33647# endif /* no NBPC */
33648# endif /* no NBPG */
33649# endif /* no EXEC_PAGESIZE */
33650# else /* no HAVE_SYS_PARAM_H */
33651# define getpagesize() 8192 /* punt totally */
33652# endif /* no HAVE_SYS_PARAM_H */
33653# endif /* no _SC_PAGESIZE */
33654
33655#endif /* no HAVE_GETPAGESIZE */
33656
33657int
33658main ()
33659{
33660 char *data, *data2, *data3;
33661 int i, pagesize;
33662 int fd;
33663
33664 pagesize = getpagesize ();
33665
33666 /* First, make a file with some known garbage in it. */
33667 data = (char *) malloc (pagesize);
33668 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033669 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033670 for (i = 0; i < pagesize; ++i)
33671 *(data + i) = rand ();
33672 umask (0);
33673 fd = creat ("conftest.mmap", 0600);
33674 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033675 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033676 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033677 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033678 close (fd);
33679
33680 /* Next, try to mmap the file at a fixed address which already has
33681 something else allocated at it. If we can, also make sure that
33682 we see the same garbage. */
33683 fd = open ("conftest.mmap", O_RDWR);
33684 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033685 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033686 data2 = (char *) malloc (2 * pagesize);
33687 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033688 return 1;
33689 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033690 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033691 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033692 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033693 for (i = 0; i < pagesize; ++i)
33694 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033695 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033696
33697 /* Finally, make sure that changes to the mapped area do not
33698 percolate back to the file as seen by read(). (This is a bug on
33699 some variants of i386 svr4.0.) */
33700 for (i = 0; i < pagesize; ++i)
33701 *(data2 + i) = *(data2 + i) + 1;
33702 data3 = (char *) malloc (pagesize);
33703 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033704 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033705 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033706 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033707 for (i = 0; i < pagesize; ++i)
33708 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033709 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033710 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033711 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033712}
33713_ACEOF
33714rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033715if { (ac_try="$ac_link"
33716case "(($ac_try" in
33717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33718 *) ac_try_echo=$ac_try;;
33719esac
33720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33721 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033722 ac_status=$?
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033725 { (case "(($ac_try" in
33726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33727 *) ac_try_echo=$ac_try;;
33728esac
33729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33730 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033731 ac_status=$?
33732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733 (exit $ac_status); }; }; then
33734 ac_cv_func_mmap_fixed_mapped=yes
33735else
33736 echo "$as_me: program exited with status $ac_status" >&5
33737echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033738sed 's/^/| /' conftest.$ac_ext >&5
33739
John Criswell7a73b802003-06-30 21:59:07 +000033740( exit $ac_status )
33741ac_cv_func_mmap_fixed_mapped=no
33742fi
Reid Spencera773bd52006-08-04 18:18:08 +000033743rm -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 +000033744fi
Reid Spencera773bd52006-08-04 18:18:08 +000033745
33746
John Criswell7a73b802003-06-30 21:59:07 +000033747fi
Reid Spencera773bd52006-08-04 18:18:08 +000033748{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33749echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033750if test $ac_cv_func_mmap_fixed_mapped = yes; then
33751
33752cat >>confdefs.h <<\_ACEOF
33753#define HAVE_MMAP 1
33754_ACEOF
33755
33756fi
33757rm -f conftest.mmap
33758
Reid Spencer30fe5262007-01-20 07:48:49 +000033759 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033760echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033761if test "${ac_cv_func_mmap_file+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33763else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033764 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033765ac_cpp='$CPP $CPPFLAGS'
33766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33768ac_compiler_gnu=$ac_cv_c_compiler_gnu
33769
33770 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033771 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033772else
33773 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033774
Reid Spencer777ce172004-09-20 04:09:56 +000033775 /* confdefs.h. */
33776_ACEOF
33777cat confdefs.h >>conftest.$ac_ext
33778cat >>conftest.$ac_ext <<_ACEOF
33779/* end confdefs.h. */
33780
John Criswell7a73b802003-06-30 21:59:07 +000033781#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033782#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033783#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033784
33785int
33786main ()
33787{
John Criswell7a73b802003-06-30 21:59:07 +000033788
33789 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033790 fd = creat ("foo",0777);
33791 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33792 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033793 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033794 ;
33795 return 0;
33796}
John Criswell7a73b802003-06-30 21:59:07 +000033797_ACEOF
33798rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033799if { (ac_try="$ac_link"
33800case "(($ac_try" in
33801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33802 *) ac_try_echo=$ac_try;;
33803esac
33804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33805 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033806 ac_status=$?
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033809 { (case "(($ac_try" in
33810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33811 *) ac_try_echo=$ac_try;;
33812esac
33813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33814 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033815 ac_status=$?
33816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817 (exit $ac_status); }; }; then
33818 ac_cv_func_mmap_file=yes
33819else
33820 echo "$as_me: program exited with status $ac_status" >&5
33821echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033822sed 's/^/| /' conftest.$ac_ext >&5
33823
John Criswell7a73b802003-06-30 21:59:07 +000033824( exit $ac_status )
33825ac_cv_func_mmap_file=no
33826fi
Reid Spencera773bd52006-08-04 18:18:08 +000033827rm -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 +000033828fi
Reid Spencera773bd52006-08-04 18:18:08 +000033829
33830
John Criswell7a73b802003-06-30 21:59:07 +000033831 ac_ext=c
33832ac_cpp='$CPP $CPPFLAGS'
33833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33835ac_compiler_gnu=$ac_cv_c_compiler_gnu
33836
33837
33838fi
Reid Spencera773bd52006-08-04 18:18:08 +000033839{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33840echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033841if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033842
33843cat >>confdefs.h <<\_ACEOF
33844#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033845_ACEOF
33846
33847 MMAP_FILE=yes
33848
33849fi
33850
Reid Spencer30fe5262007-01-20 07:48:49 +000033851 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033852echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033853if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33854 echo $ECHO_N "(cached) $ECHO_C" >&6
33855else
Reid Spencer582a23c2004-12-29 07:07:57 +000033856 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033857 ac_cv_need_dev_zero_for_mmap=yes
33858 else
33859 ac_cv_need_dev_zero_for_mmap=no
33860 fi
33861
33862fi
Reid Spencera773bd52006-08-04 18:18:08 +000033863{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33864echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033865if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33866
33867cat >>confdefs.h <<\_ACEOF
33868#define NEED_DEV_ZERO_FOR_MMAP 1
33869_ACEOF
33870
33871fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033872
Reid Spencer30fe5262007-01-20 07:48:49 +000033873 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33874 then
33875 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033876echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033877 fi
33878 if test "$ac_cv_func_mmap_file" = "no"
33879 then
33880 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033881echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033882 fi
John Criswellb13092b2003-07-22 21:00:24 +000033883fi
John Criswell7a73b802003-06-30 21:59:07 +000033884
33885
Reid Spencer9372f152007-07-30 20:13:24 +000033886
33887for ac_func in __dso_handle
33888do
33889as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33890{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33892if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33893 echo $ECHO_N "(cached) $ECHO_C" >&6
33894else
33895 cat >conftest.$ac_ext <<_ACEOF
33896/* confdefs.h. */
33897_ACEOF
33898cat confdefs.h >>conftest.$ac_ext
33899cat >>conftest.$ac_ext <<_ACEOF
33900/* end confdefs.h. */
33901/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33903#define $ac_func innocuous_$ac_func
33904
33905/* System header to define __stub macros and hopefully few prototypes,
33906 which can conflict with char $ac_func (); below.
33907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33908 <limits.h> exists even on freestanding compilers. */
33909
33910#ifdef __STDC__
33911# include <limits.h>
33912#else
33913# include <assert.h>
33914#endif
33915
33916#undef $ac_func
33917
33918/* Override any GCC internal prototype to avoid an error.
33919 Use char because int might match the return type of a GCC
33920 builtin and then its argument prototype would still apply. */
33921#ifdef __cplusplus
33922extern "C"
33923#endif
33924char $ac_func ();
33925/* The GNU C library defines this for functions which it implements
33926 to always fail with ENOSYS. Some functions are actually named
33927 something starting with __ and the normal name is an alias. */
33928#if defined __stub_$ac_func || defined __stub___$ac_func
33929choke me
33930#endif
33931
33932int
33933main ()
33934{
33935return $ac_func ();
33936 ;
33937 return 0;
33938}
33939_ACEOF
33940rm -f conftest.$ac_objext conftest$ac_exeext
33941if { (ac_try="$ac_link"
33942case "(($ac_try" in
33943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33944 *) ac_try_echo=$ac_try;;
33945esac
33946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33947 (eval "$ac_link") 2>conftest.er1
33948 ac_status=$?
33949 grep -v '^ *+' conftest.er1 >conftest.err
33950 rm -f conftest.er1
33951 cat conftest.err >&5
33952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033953 (exit $ac_status); } &&
33954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33955 { (case "(($ac_try" in
33956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33957 *) ac_try_echo=$ac_try;;
33958esac
33959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33960 (eval "$ac_try") 2>&5
33961 ac_status=$?
33962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963 (exit $ac_status); }; } &&
33964 { ac_try='test -s conftest$ac_exeext'
33965 { (case "(($ac_try" in
33966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33967 *) ac_try_echo=$ac_try;;
33968esac
33969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33970 (eval "$ac_try") 2>&5
33971 ac_status=$?
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033974 eval "$as_ac_var=yes"
33975else
33976 echo "$as_me: failed program was:" >&5
33977sed 's/^/| /' conftest.$ac_ext >&5
33978
33979 eval "$as_ac_var=no"
33980fi
33981
Tanya Lattnercf067672008-01-17 05:57:22 +000033982rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033983 conftest$ac_exeext conftest.$ac_ext
33984fi
33985ac_res=`eval echo '${'$as_ac_var'}'`
33986 { echo "$as_me:$LINENO: result: $ac_res" >&5
33987echo "${ECHO_T}$ac_res" >&6; }
33988if test `eval echo '${'$as_ac_var'}'` = yes; then
33989 cat >>confdefs.h <<_ACEOF
33990#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33991_ACEOF
33992
33993fi
33994done
33995
33996
Reid Spencera773bd52006-08-04 18:18:08 +000033997{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33998echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033999if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34000 echo $ECHO_N "(cached) $ECHO_C" >&6
34001else
34002 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034003if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034004 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034005 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34006 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034007 if test $? -eq 0 ; then
34008 llvm_cv_llvmgcc_sanity="yes"
34009 fi
34010 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034011fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034012fi
Reid Spencera773bd52006-08-04 18:18:08 +000034013{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34014echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034015
34016if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034017 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34018echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034019 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034020 LLVMCC1=$llvmcc1path
34021
Reid Spencer502935f2004-12-22 05:56:56 +000034022 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034023 LLVMCC1PLUS=$llvmcc1pluspath
34024
Reid Spencer502935f2004-12-22 05:56:56 +000034025 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34026 LLVMGCCDIR=$llvmgccdir
34027
Reid Spencer282d8c12006-12-21 22:55:41 +000034028 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34029 LLVMGCCLIBEXEC=$llvmgcclibexec
34030
Reid Spencerb5d75b82006-05-09 00:31:01 +000034031 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034032 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34033 LLVMGCC_VERSION=$llvmgccversion
34034
34035 LLVMGCC_MAJVERS=$llvmgccmajvers
34036
Reid Spencer0d238182007-04-21 21:28:52 +000034037 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34038 LLVMGCC_LANGS=$llvmgcclangs
34039
34040 { echo "$as_me:$LINENO: result: ok" >&5
34041echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034042fi
34043
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034044SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034045
34046
Reid Spencere9de0912004-08-20 09:03:57 +000034047# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034048# information into substitutions that will end up in Makefile.config.in
34049# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034050if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034051 prefix="/usr/local"
34052fi
Reid Spencere9de0912004-08-20 09:03:57 +000034053eval LLVM_PREFIX="${prefix}";
34054eval LLVM_BINDIR="${prefix}/bin";
34055eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034056eval LLVM_DATADIR="${prefix}/share/llvm";
34057eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34058eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034059eval LLVM_INCLUDEDIR="${prefix}/include";
34060eval LLVM_INFODIR="${prefix}/info";
34061eval LLVM_MANDIR="${prefix}/man";
34062LLVM_CONFIGTIME=`date`
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034074# Place the various directores into the config.h file as #defines so that we
34075# can know about the installation paths within LLVM.
34076
Reid Spencere9de0912004-08-20 09:03:57 +000034077cat >>confdefs.h <<_ACEOF
34078#define LLVM_PREFIX "$LLVM_PREFIX"
34079_ACEOF
34080
34081
34082cat >>confdefs.h <<_ACEOF
34083#define LLVM_BINDIR "$LLVM_BINDIR"
34084_ACEOF
34085
34086
34087cat >>confdefs.h <<_ACEOF
34088#define LLVM_LIBDIR "$LLVM_LIBDIR"
34089_ACEOF
34090
34091
34092cat >>confdefs.h <<_ACEOF
34093#define LLVM_DATADIR "$LLVM_DATADIR"
34094_ACEOF
34095
34096
34097cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034098#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034099_ACEOF
34100
34101
34102cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034103#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034104_ACEOF
34105
34106
34107cat >>confdefs.h <<_ACEOF
34108#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34109_ACEOF
34110
34111
34112cat >>confdefs.h <<_ACEOF
34113#define LLVM_INFODIR "$LLVM_INFODIR"
34114_ACEOF
34115
34116
34117cat >>confdefs.h <<_ACEOF
34118#define LLVM_MANDIR "$LLVM_MANDIR"
34119_ACEOF
34120
34121
34122cat >>confdefs.h <<_ACEOF
34123#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34124_ACEOF
34125
34126
Eric Christopher790e11c2007-12-01 00:34:39 +000034127cat >>confdefs.h <<_ACEOF
34128#define LLVM_HOSTTRIPLE "$host"
34129_ACEOF
34130
34131
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034132# Determine which bindings to build.
34133if test "$BINDINGS_TO_BUILD" = auto ; then
34134 BINDINGS_TO_BUILD=""
34135 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34136 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34137 fi
34138fi
34139BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34140
34141
34142# This isn't really configurey, but it avoids having to repeat the list in
34143# other files.
34144ALL_BINDINGS=ocaml
34145
34146
Gordon Henriksenf0915682007-10-02 16:42:22 +000034147# Do any work necessary to ensure that bindings have what they need.
34148binding_prereqs_failed=0
34149for a_binding in $BINDINGS_TO_BUILD ; do
34150 case "$a_binding" in
34151 ocaml)
34152 if test "x$OCAMLC" = x ; then
34153 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34154echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34155 binding_prereqs_failed=1
34156 fi
34157 if test "x$OCAMLDEP" = x ; then
34158 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34159echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34160 binding_prereqs_failed=1
34161 fi
34162 if test "x$OCAMLOPT" = x ; then
34163 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34164echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34165 fi
34166 if test "x$with_ocaml_libdir" != xauto ; then
34167 OCAML_LIBDIR=$with_ocaml_libdir
34168
34169 else
34170 ocaml_stdlib="`"$OCAMLC" -where`"
34171 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34172 then
34173 # ocaml stdlib is beneath our prefix; use stdlib
34174 OCAML_LIBDIR=$ocaml_stdlib
34175
34176 else
34177 # ocaml stdlib is outside our prefix; use libdir/ocaml
34178 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34179
34180 fi
34181 fi
34182 ;;
34183 esac
34184done
34185if test "$binding_prereqs_failed" = 1 ; then
34186 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34187echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34188 { (exit 1); exit 1; }; }
34189fi
34190
34191
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034192
Reid Spencera773bd52006-08-04 18:18:08 +000034193ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034194
Reid Spencera773bd52006-08-04 18:18:08 +000034195ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034196
Reid Spencera773bd52006-08-04 18:18:08 +000034197ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034198
Reid Spencera773bd52006-08-04 18:18:08 +000034199ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034200
Reid Spencera773bd52006-08-04 18:18:08 +000034201ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034202
34203
Reid Spencera773bd52006-08-04 18:18:08 +000034204ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034205
34206
Reid Spencerea949cf2006-08-16 00:45:38 +000034207ac_config_files="$ac_config_files llvm.spec"
34208
34209
Reid Spencera773bd52006-08-04 18:18:08 +000034210ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034211
34212
Reid Spencera773bd52006-08-04 18:18:08 +000034213ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034214
34215
Reid Spencera773bd52006-08-04 18:18:08 +000034216ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034217
Reid Spencera773bd52006-08-04 18:18:08 +000034218ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034219
34220
Reid Spencera773bd52006-08-04 18:18:08 +000034221ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034222
34223
Reid Spencera773bd52006-08-04 18:18:08 +000034224ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034225
34226
Reid Spencera773bd52006-08-04 18:18:08 +000034227ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034228
34229
Reid Spencer8b2e1412006-11-17 03:32:33 +000034230ac_config_commands="$ac_config_commands runtime/Makefile"
34231
34232
Reid Spencera773bd52006-08-04 18:18:08 +000034233ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034234
34235
Reid Spencera773bd52006-08-04 18:18:08 +000034236ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034237
34238
Reid Spencera773bd52006-08-04 18:18:08 +000034239ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034240
34241
Reid Spencera773bd52006-08-04 18:18:08 +000034242ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034243
34244
Reid Spencera773bd52006-08-04 18:18:08 +000034245ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034246
34247
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034248ac_config_commands="$ac_config_commands bindings/Makefile"
34249
34250
34251ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34252
34253
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034254
John Criswell7a73b802003-06-30 21:59:07 +000034255cat >confcache <<\_ACEOF
34256# This file is a shell script that caches the results of configure
34257# tests run on this system so they can be shared between configure
34258# scripts and configure runs, see configure's option --config-cache.
34259# It is not useful on other systems. If it contains results you don't
34260# want to keep, you may remove or edit it.
34261#
34262# config.status only pays attention to the cache file if you give it
34263# the --recheck option to rerun configure.
34264#
John Criswell0c38eaf2003-09-10 15:17:25 +000034265# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034266# loading this file, other *unset* `ac_cv_foo' will be assigned the
34267# following values.
34268
34269_ACEOF
34270
34271# The following way of writing the cache mishandles newlines in values,
34272# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034273# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034274# Ultrix sh set writes to stderr and can't be redirected directly,
34275# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034276(
34277 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34278 eval ac_val=\$$ac_var
34279 case $ac_val in #(
34280 *${as_nl}*)
34281 case $ac_var in #(
34282 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34283echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34284 esac
34285 case $ac_var in #(
34286 _ | IFS | as_nl) ;; #(
34287 *) $as_unset $ac_var ;;
34288 esac ;;
34289 esac
34290 done
34291
John Criswell7a73b802003-06-30 21:59:07 +000034292 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034293 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34294 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034295 # `set' does not quote correctly, so add quotes (double-quote
34296 # substitution turns \\\\ into \\, and sed turns \\ into \).
34297 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034298 "s/'/'\\\\''/g;
34299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034300 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034301 *)
34302 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034304 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034305 esac |
34306 sort
34307) |
John Criswell7a73b802003-06-30 21:59:07 +000034308 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034309 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034310 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034311 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034312 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34313 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034314 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34315 :end' >>confcache
34316if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34317 if test -w "$cache_file"; then
34318 test "x$cache_file" != "x/dev/null" &&
34319 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34320echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034321 cat confcache >$cache_file
34322 else
Reid Spencera773bd52006-08-04 18:18:08 +000034323 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34324echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034325 fi
34326fi
34327rm -f confcache
34328
34329test "x$prefix" = xNONE && prefix=$ac_default_prefix
34330# Let make expand exec_prefix.
34331test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34332
John Criswell7a73b802003-06-30 21:59:07 +000034333DEFS=-DHAVE_CONFIG_H
34334
John Criswell0c38eaf2003-09-10 15:17:25 +000034335ac_libobjs=
34336ac_ltlibobjs=
34337for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34338 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034339 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34340 ac_i=`echo "$ac_i" | sed "$ac_script"`
34341 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34342 # will be set to the directory where LIBOBJS objects are built.
34343 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34344 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034345done
34346LIBOBJS=$ac_libobjs
34347
34348LTLIBOBJS=$ac_ltlibobjs
34349
34350
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034351if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34352 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34353Usually this means the macro was only invoked conditionally." >&5
34354echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34355Usually this means the macro was only invoked conditionally." >&2;}
34356 { (exit 1); exit 1; }; }
34357fi
34358if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34359 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34360Usually this means the macro was only invoked conditionally." >&5
34361echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34362Usually this means the macro was only invoked conditionally." >&2;}
34363 { (exit 1); exit 1; }; }
34364fi
John Criswell7a73b802003-06-30 21:59:07 +000034365
34366: ${CONFIG_STATUS=./config.status}
34367ac_clean_files_save=$ac_clean_files
34368ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34369{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34370echo "$as_me: creating $CONFIG_STATUS" >&6;}
34371cat >$CONFIG_STATUS <<_ACEOF
34372#! $SHELL
34373# Generated by $as_me.
34374# Run this file to recreate the current configuration.
34375# Compiler output produced by configure, useful for debugging
34376# configure, is in config.log if it exists.
34377
34378debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034379ac_cs_recheck=false
34380ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034381SHELL=\${CONFIG_SHELL-$SHELL}
34382_ACEOF
34383
34384cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034385## --------------------- ##
34386## M4sh Initialization. ##
34387## --------------------- ##
34388
Tanya Lattnercf067672008-01-17 05:57:22 +000034389# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034390if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34391 emulate sh
34392 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034393 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34394 # is contrary to our usage. Disable this feature.
34395 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034396 setopt NO_GLOB_SUBST
34397else
Tanya Lattnercf067672008-01-17 05:57:22 +000034398 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034399fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034400BIN_SH=xpg4; export BIN_SH # for Tru64
34401DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034402
John Criswell7a73b802003-06-30 21:59:07 +000034403
Reid Spencera773bd52006-08-04 18:18:08 +000034404# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034405# Avoid depending upon Character Ranges.
34406as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34407as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34408as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34409as_cr_digits='0123456789'
34410as_cr_alnum=$as_cr_Letters$as_cr_digits
34411
34412# The user is always right.
34413if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034414 echo "#! /bin/sh" >conf$$.sh
34415 echo "exit 0" >>conf$$.sh
34416 chmod +x conf$$.sh
34417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034418 PATH_SEPARATOR=';'
34419 else
34420 PATH_SEPARATOR=:
34421 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034422 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034423fi
34424
Reid Spencera773bd52006-08-04 18:18:08 +000034425# Support unset when possible.
34426if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34427 as_unset=unset
34428else
34429 as_unset=false
34430fi
John Criswell7a73b802003-06-30 21:59:07 +000034431
Reid Spencera773bd52006-08-04 18:18:08 +000034432
34433# IFS
34434# We need space, tab and new line, in precisely that order. Quoting is
34435# there to prevent editors from complaining about space-tab.
34436# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34437# splitting by setting IFS to empty value.)
34438as_nl='
34439'
34440IFS=" "" $as_nl"
34441
34442# Find who we are. Look in the path if we contain no directory separator.
34443case $0 in
34444 *[\\/]* ) as_myself=$0 ;;
34445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034446for as_dir in $PATH
34447do
34448 IFS=$as_save_IFS
34449 test -z "$as_dir" && as_dir=.
34450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34451done
Reid Spencera773bd52006-08-04 18:18:08 +000034452IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034453
Reid Spencera773bd52006-08-04 18:18:08 +000034454 ;;
34455esac
34456# We did not find ourselves, most probably we were run as `sh COMMAND'
34457# in which case we are not to be found in the path.
34458if test "x$as_myself" = x; then
34459 as_myself=$0
34460fi
34461if test ! -f "$as_myself"; then
34462 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34463 { (exit 1); exit 1; }
34464fi
34465
34466# Work around bugs in pre-3.0 UWIN ksh.
34467for as_var in ENV MAIL MAILPATH
34468do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34469done
34470PS1='$ '
34471PS2='> '
34472PS4='+ '
34473
34474# NLS nuisances.
34475for as_var in \
34476 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34477 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34478 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034479do
Reid Spencera773bd52006-08-04 18:18:08 +000034480 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34481 eval $as_var=C; export $as_var
34482 else
34483 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34484 fi
34485done
34486
34487# Required to use basename.
34488if expr a : '\(a\)' >/dev/null 2>&1 &&
34489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34490 as_expr=expr
34491else
34492 as_expr=false
34493fi
34494
34495if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34496 as_basename=basename
34497else
34498 as_basename=false
34499fi
34500
34501
34502# Name of the executable.
34503as_me=`$as_basename -- "$0" ||
34504$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34505 X"$0" : 'X\(//\)$' \| \
34506 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34507echo X/"$0" |
34508 sed '/^.*\/\([^/][^/]*\)\/*$/{
34509 s//\1/
34510 q
34511 }
34512 /^X\/\(\/\/\)$/{
34513 s//\1/
34514 q
34515 }
34516 /^X\/\(\/\).*/{
34517 s//\1/
34518 q
34519 }
34520 s/.*/./; q'`
34521
34522# CDPATH.
34523$as_unset CDPATH
34524
34525
34526
John Criswell7a73b802003-06-30 21:59:07 +000034527 as_lineno_1=$LINENO
34528 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034529 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034530 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034531
34532 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34533 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034534 # line-number line after each line using $LINENO; the second 'sed'
34535 # does the real work. The second script uses 'N' to pair each
34536 # line-number line with the line containing $LINENO, and appends
34537 # trailing '-' during substitution so that $LINENO is not a special
34538 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034539 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034540 # scripts with optimization help from Paolo Bonzini. Blame Lee
34541 # E. McMahon (1931-1989) for sed's syntax. :-)
34542 sed -n '
34543 p
34544 /[$]LINENO/=
34545 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034546 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034547 s/[$]LINENO.*/&-/
34548 t lineno
34549 b
34550 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034551 N
Reid Spencera773bd52006-08-04 18:18:08 +000034552 :loop
34553 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034554 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034555 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034556 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034557 chmod +x "$as_me.lineno" ||
34558 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034559 { (exit 1); exit 1; }; }
34560
34561 # Don't try to exec as it changes $[0], causing all sort of problems
34562 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034563 # original and so on. Autoconf is especially sensitive to this).
34564 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034565 # Exit status is that of the last command.
34566 exit
34567}
34568
34569
Reid Spencera773bd52006-08-04 18:18:08 +000034570if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34571 as_dirname=dirname
34572else
34573 as_dirname=false
34574fi
34575
34576ECHO_C= ECHO_N= ECHO_T=
34577case `echo -n x` in
34578-n*)
34579 case `echo 'x\c'` in
34580 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34581 *) ECHO_C='\c';;
34582 esac;;
34583*)
34584 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034585esac
34586
Reid Spencera773bd52006-08-04 18:18:08 +000034587if expr a : '\(a\)' >/dev/null 2>&1 &&
34588 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034589 as_expr=expr
34590else
34591 as_expr=false
34592fi
34593
34594rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034595if test -d conf$$.dir; then
34596 rm -f conf$$.dir/conf$$.file
34597else
34598 rm -f conf$$.dir
34599 mkdir conf$$.dir
34600fi
John Criswell7a73b802003-06-30 21:59:07 +000034601echo >conf$$.file
34602if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034603 as_ln_s='ln -s'
34604 # ... but there are two gotchas:
34605 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34606 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34607 # In both cases, we have to default to `cp -p'.
34608 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034609 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034610elif ln conf$$.file conf$$ 2>/dev/null; then
34611 as_ln_s=ln
34612else
34613 as_ln_s='cp -p'
34614fi
Reid Spencera773bd52006-08-04 18:18:08 +000034615rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34616rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034617
John Criswell0c38eaf2003-09-10 15:17:25 +000034618if mkdir -p . 2>/dev/null; then
34619 as_mkdir_p=:
34620else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034621 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034622 as_mkdir_p=false
34623fi
34624
Tanya Lattnercf067672008-01-17 05:57:22 +000034625# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34626# systems may use methods other than mode bits to determine executability.
34627cat >conf$$.file <<_ASEOF
34628#! /bin/sh
34629exit 0
34630_ASEOF
34631chmod +x conf$$.file
34632if test -x conf$$.file >/dev/null 2>&1; then
34633 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034634else
Tanya Lattnercf067672008-01-17 05:57:22 +000034635 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034636fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034637rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034638
34639# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034640as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034641
34642# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034643as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034644
34645
John Criswell7a73b802003-06-30 21:59:07 +000034646exec 6>&1
34647
Reid Spencera773bd52006-08-04 18:18:08 +000034648# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034649# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034650# values after options handling.
34651ac_log="
Tanya Lattnercf067672008-01-17 05:57:22 +000034652This file was extended by llvm $as_me 2.3svn, which was
34653generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034654
34655 CONFIG_FILES = $CONFIG_FILES
34656 CONFIG_HEADERS = $CONFIG_HEADERS
34657 CONFIG_LINKS = $CONFIG_LINKS
34658 CONFIG_COMMANDS = $CONFIG_COMMANDS
34659 $ $0 $@
34660
Reid Spencera773bd52006-08-04 18:18:08 +000034661on `(hostname || uname -n) 2>/dev/null | sed 1q`
34662"
34663
John Criswell7a73b802003-06-30 21:59:07 +000034664_ACEOF
34665
Reid Spencera773bd52006-08-04 18:18:08 +000034666cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034667# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034668config_files="$ac_config_files"
34669config_headers="$ac_config_headers"
34670config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034671
Reid Spencera773bd52006-08-04 18:18:08 +000034672_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034673
34674cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034675ac_cs_usage="\
34676\`$as_me' instantiates files from templates according to the
34677current configuration.
34678
34679Usage: $0 [OPTIONS] [FILE]...
34680
34681 -h, --help print this help, then exit
Tanya Lattnercf067672008-01-17 05:57:22 +000034682 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034683 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034684 -d, --debug don't remove temporary files
34685 --recheck update $as_me by reconfiguring in the same conditions
34686 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034687 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034688 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034689 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034690
34691Configuration files:
34692$config_files
34693
34694Configuration headers:
34695$config_headers
34696
John Criswellc764fbc2003-09-06 15:17:13 +000034697Configuration commands:
34698$config_commands
34699
John Criswell7a73b802003-06-30 21:59:07 +000034700Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034701
Reid Spencera773bd52006-08-04 18:18:08 +000034702_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034703cat >>$CONFIG_STATUS <<_ACEOF
34704ac_cs_version="\\
Tanya Lattnercf067672008-01-17 05:57:22 +000034705llvm config.status 2.3svn
34706configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034707 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034708
Reid Spencera773bd52006-08-04 18:18:08 +000034709Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034710This config.status script is free software; the Free Software Foundation
34711gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034712
34713ac_pwd='$ac_pwd'
34714srcdir='$srcdir'
34715INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034716_ACEOF
34717
34718cat >>$CONFIG_STATUS <<\_ACEOF
34719# If no file are specified by the user, then we need to provide default
34720# value. By we need to know if files were specified by the user.
34721ac_need_defaults=:
34722while test $# != 0
34723do
34724 case $1 in
34725 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034726 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34727 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034728 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034729 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034730 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034731 ac_option=$1
34732 ac_optarg=$2
34733 ac_shift=shift
34734 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034735 esac
34736
John Criswell0c38eaf2003-09-10 15:17:25 +000034737 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034738 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34740 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034741 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34742 echo "$ac_cs_version"; exit ;;
34743 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034744 debug=: ;;
34745 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034746 $ac_shift
34747 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034748 ac_need_defaults=false;;
34749 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034750 $ac_shift
34751 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034752 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034753 --he | --h)
34754 # Conflict between --help and --header
34755 { echo "$as_me: error: ambiguous option: $1
34756Try \`$0 --help' for more information." >&2
34757 { (exit 1); exit 1; }; };;
34758 --help | --hel | -h )
34759 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34761 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34762 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034763
34764 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034765 -*) { echo "$as_me: error: unrecognized option: $1
34766Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034767 { (exit 1); exit 1; }; } ;;
34768
Reid Spencera773bd52006-08-04 18:18:08 +000034769 *) ac_config_targets="$ac_config_targets $1"
34770 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034771
34772 esac
34773 shift
34774done
34775
John Criswell0c38eaf2003-09-10 15:17:25 +000034776ac_configure_extra_args=
34777
34778if $ac_cs_silent; then
34779 exec 6>/dev/null
34780 ac_configure_extra_args="$ac_configure_extra_args --silent"
34781fi
34782
34783_ACEOF
34784cat >>$CONFIG_STATUS <<_ACEOF
34785if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034786 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34787 CONFIG_SHELL=$SHELL
34788 export CONFIG_SHELL
34789 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034790fi
34791
John Criswell7a73b802003-06-30 21:59:07 +000034792_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034793cat >>$CONFIG_STATUS <<\_ACEOF
34794exec 5>>config.log
34795{
34796 echo
34797 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34798## Running $as_me. ##
34799_ASBOX
34800 echo "$ac_log"
34801} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034802
Reid Spencera773bd52006-08-04 18:18:08 +000034803_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034804cat >>$CONFIG_STATUS <<_ACEOF
34805#
Reid Spencera773bd52006-08-04 18:18:08 +000034806# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034807#
Reid Spencerc0682832005-02-24 19:05:19 +000034808llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034809
34810_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034811
John Criswell7a73b802003-06-30 21:59:07 +000034812cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034813
34814# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034815for ac_config_target in $ac_config_targets
34816do
Reid Spencera773bd52006-08-04 18:18:08 +000034817 case $ac_config_target in
34818 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34819 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34820 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34821 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34822 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34823 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034824 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034825 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34826 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34827 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34828 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34829 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34830 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34831 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034832 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034833 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34834 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34835 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34836 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34837 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034838 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34839 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034840
John Criswell7a73b802003-06-30 21:59:07 +000034841 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34842echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34843 { (exit 1); exit 1; }; };;
34844 esac
34845done
34846
Reid Spencera773bd52006-08-04 18:18:08 +000034847
John Criswell7a73b802003-06-30 21:59:07 +000034848# If the user did not use the arguments to specify the items to instantiate,
34849# then the envvar interface is used. Set only those that are not.
34850# We use the long form for the default assignment because of an extremely
34851# bizarre bug on SunOS 4.1.3.
34852if $ac_need_defaults; then
34853 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34854 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034856fi
34857
John Criswell0c38eaf2003-09-10 15:17:25 +000034858# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034859# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034860# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034861# Hook for its removal unless debugging.
34862# Note that there is a small window in which the directory will not be cleaned:
34863# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034864$debug ||
34865{
Reid Spencera773bd52006-08-04 18:18:08 +000034866 tmp=
34867 trap 'exit_status=$?
34868 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34869' 0
John Criswell7a73b802003-06-30 21:59:07 +000034870 trap '{ (exit 1); exit 1; }' 1 2 13 15
34871}
John Criswell7a73b802003-06-30 21:59:07 +000034872# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034873
John Criswell7a73b802003-06-30 21:59:07 +000034874{
Reid Spencera773bd52006-08-04 18:18:08 +000034875 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034876 test -n "$tmp" && test -d "$tmp"
34877} ||
34878{
Reid Spencera773bd52006-08-04 18:18:08 +000034879 tmp=./conf$$-$RANDOM
34880 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034881} ||
34882{
John Criswell0c38eaf2003-09-10 15:17:25 +000034883 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034884 { (exit 1); exit 1; }
34885}
34886
John Criswell7a73b802003-06-30 21:59:07 +000034887#
Reid Spencera773bd52006-08-04 18:18:08 +000034888# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034889#
34890
34891# No need to generate the scripts if there are no CONFIG_FILES.
34892# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034893if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034894
34895_ACEOF
34896
Reid Spencera773bd52006-08-04 18:18:08 +000034897
34898
34899ac_delim='%!_!# '
34900for ac_last_try in false false false false false :; do
34901 cat >conf$$subs.sed <<_ACEOF
34902SHELL!$SHELL$ac_delim
34903PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34904PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34905PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34906PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34907PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34908PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34909exec_prefix!$exec_prefix$ac_delim
34910prefix!$prefix$ac_delim
34911program_transform_name!$program_transform_name$ac_delim
34912bindir!$bindir$ac_delim
34913sbindir!$sbindir$ac_delim
34914libexecdir!$libexecdir$ac_delim
34915datarootdir!$datarootdir$ac_delim
34916datadir!$datadir$ac_delim
34917sysconfdir!$sysconfdir$ac_delim
34918sharedstatedir!$sharedstatedir$ac_delim
34919localstatedir!$localstatedir$ac_delim
34920includedir!$includedir$ac_delim
34921oldincludedir!$oldincludedir$ac_delim
34922docdir!$docdir$ac_delim
34923infodir!$infodir$ac_delim
34924htmldir!$htmldir$ac_delim
34925dvidir!$dvidir$ac_delim
34926pdfdir!$pdfdir$ac_delim
34927psdir!$psdir$ac_delim
34928libdir!$libdir$ac_delim
34929localedir!$localedir$ac_delim
34930mandir!$mandir$ac_delim
34931DEFS!$DEFS$ac_delim
34932ECHO_C!$ECHO_C$ac_delim
34933ECHO_N!$ECHO_N$ac_delim
34934ECHO_T!$ECHO_T$ac_delim
34935LIBS!$LIBS$ac_delim
34936build_alias!$build_alias$ac_delim
34937host_alias!$host_alias$ac_delim
34938target_alias!$target_alias$ac_delim
34939LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34940subdirs!$subdirs$ac_delim
34941build!$build$ac_delim
34942build_cpu!$build_cpu$ac_delim
34943build_vendor!$build_vendor$ac_delim
34944build_os!$build_os$ac_delim
34945host!$host$ac_delim
34946host_cpu!$host_cpu$ac_delim
34947host_vendor!$host_vendor$ac_delim
34948host_os!$host_os$ac_delim
34949target!$target$ac_delim
34950target_cpu!$target_cpu$ac_delim
34951target_vendor!$target_vendor$ac_delim
34952target_os!$target_os$ac_delim
34953OS!$OS$ac_delim
34954LINKALL!$LINKALL$ac_delim
34955NOLINKALL!$NOLINKALL$ac_delim
34956LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34957LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34958ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000034959ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034960CC!$CC$ac_delim
34961CFLAGS!$CFLAGS$ac_delim
34962LDFLAGS!$LDFLAGS$ac_delim
34963CPPFLAGS!$CPPFLAGS$ac_delim
34964ac_ct_CC!$ac_ct_CC$ac_delim
34965EXEEXT!$EXEEXT$ac_delim
34966OBJEXT!$OBJEXT$ac_delim
34967CPP!$CPP$ac_delim
34968GREP!$GREP$ac_delim
34969EGREP!$EGREP$ac_delim
34970LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34971BUILD_CC!$BUILD_CC$ac_delim
34972BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34973CVSBUILD!$CVSBUILD$ac_delim
34974ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34975DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034976ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34977EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034978DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034979JIT!$JIT$ac_delim
34980TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34981ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34982ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034983ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034984TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034985ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034986EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34987CXX!$CXX$ac_delim
34988CXXFLAGS!$CXXFLAGS$ac_delim
34989ac_ct_CXX!$ac_ct_CXX$ac_delim
34990LEX!$LEX$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000034991LEXLIB!$LEXLIB$ac_delim
Tanya Lattnercf067672008-01-17 05:57:22 +000034992LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034993FLEX!$FLEX$ac_delim
34994YACC!$YACC$ac_delim
34995YFLAGS!$YFLAGS$ac_delim
34996BISON!$BISON$ac_delim
34997NM!$NM$ac_delim
34998ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034999_ACEOF
35000
35001 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35002 break
35003 elif $ac_last_try; then
35004 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35005echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35006 { (exit 1); exit 1; }; }
35007 else
35008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035009 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035010done
35011
35012ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35013if test -n "$ac_eof"; then
35014 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35015 ac_eof=`expr $ac_eof + 1`
35016fi
35017
35018cat >>$CONFIG_STATUS <<_ACEOF
35019cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35020/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35021_ACEOF
35022sed '
35023s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35024s/^/s,@/; s/!/@,|#_!!_#|/
35025:n
35026t n
35027s/'"$ac_delim"'$/,g/; t
35028s/$/\\/; p
35029N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35030' >>$CONFIG_STATUS <conf$$subs.sed
35031rm -f conf$$subs.sed
35032cat >>$CONFIG_STATUS <<_ACEOF
35033CEOF$ac_eof
35034_ACEOF
35035
35036
35037ac_delim='%!_!# '
35038for ac_last_try in false false false false false :; do
35039 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000035040LN_S!$LN_S$ac_delim
35041CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035042CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035043DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035044FIND!$FIND$ac_delim
35045MKDIR!$MKDIR$ac_delim
35046MV!$MV$ac_delim
35047RANLIB!$RANLIB$ac_delim
35048RM!$RM$ac_delim
35049SED!$SED$ac_delim
35050TAR!$TAR$ac_delim
35051BINPWD!$BINPWD$ac_delim
35052GRAPHVIZ!$GRAPHVIZ$ac_delim
35053DOT!$DOT$ac_delim
35054GV!$GV$ac_delim
35055DOTTY!$DOTTY$ac_delim
35056PERL!$PERL$ac_delim
35057HAVE_PERL!$HAVE_PERL$ac_delim
35058INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35059INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35060INSTALL_DATA!$INSTALL_DATA$ac_delim
35061BZIP2!$BZIP2$ac_delim
35062DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035063GROFF!$GROFF$ac_delim
35064GZIP!$GZIP$ac_delim
35065POD2HTML!$POD2HTML$ac_delim
35066POD2MAN!$POD2MAN$ac_delim
35067RUNTEST!$RUNTEST$ac_delim
35068TCLSH!$TCLSH$ac_delim
35069ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035070OCAMLC!$OCAMLC$ac_delim
35071OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035072OCAMLDEP!$OCAMLDEP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035073INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35074INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35075CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35076CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35077LIBADD_DL!$LIBADD_DL$ac_delim
35078ECHO!$ECHO$ac_delim
35079AR!$AR$ac_delim
35080STRIP!$STRIP$ac_delim
35081CXXCPP!$CXXCPP$ac_delim
35082F77!$F77$ac_delim
35083FFLAGS!$FFLAGS$ac_delim
35084ac_ct_F77!$ac_ct_F77$ac_delim
35085LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035086LLVMGCC!$LLVMGCC$ac_delim
35087LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035088USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035089HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035090HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035091ALLOCA!$ALLOCA$ac_delim
35092MMAP_FILE!$MMAP_FILE$ac_delim
35093LLVMCC1!$LLVMCC1$ac_delim
35094LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35095LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035096LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035097LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35098LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035099LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035100SHLIBEXT!$SHLIBEXT$ac_delim
35101LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35102LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35103LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35104LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35105LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35106LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35107LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35108LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35109LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35110LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035111BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35112ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035113OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035114LIBOBJS!$LIBOBJS$ac_delim
35115LTLIBOBJS!$LTLIBOBJS$ac_delim
35116_ACEOF
35117
Gordon Henriksenf0915682007-10-02 16:42:22 +000035118 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Reid Spencera773bd52006-08-04 18:18:08 +000035119 break
35120 elif $ac_last_try; then
35121 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35122echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35123 { (exit 1); exit 1; }; }
35124 else
35125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35126 fi
35127done
35128
35129ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35130if test -n "$ac_eof"; then
35131 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35132 ac_eof=`expr $ac_eof + 1`
35133fi
35134
35135cat >>$CONFIG_STATUS <<_ACEOF
35136cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35137/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35138_ACEOF
35139sed '
35140s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35141s/^/s,@/; s/!/@,|#_!!_#|/
35142:n
35143t n
35144s/'"$ac_delim"'$/,g/; t
35145s/$/\\/; p
35146N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35147' >>$CONFIG_STATUS <conf$$subs.sed
35148rm -f conf$$subs.sed
35149cat >>$CONFIG_STATUS <<_ACEOF
35150:end
35151s/|#_!!_#|//g
35152CEOF$ac_eof
35153_ACEOF
35154
35155
35156# VPATH may cause trouble with some makes, so we remove $(srcdir),
35157# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35158# trailing colons and then remove the whole line if VPATH becomes empty
35159# (actually we leave an empty line to preserve line numbers).
35160if test "x$srcdir" = x.; then
35161 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35162s/:*\$(srcdir):*/:/
35163s/:*\${srcdir}:*/:/
35164s/:*@srcdir@:*/:/
35165s/^\([^=]*=[ ]*\):*/\1/
35166s/:*$//
35167s/^[^=]*=[ ]*$//
35168}'
35169fi
35170
35171cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035172fi # test -n "$CONFIG_FILES"
35173
Reid Spencera773bd52006-08-04 18:18:08 +000035174
35175for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35176do
35177 case $ac_tag in
35178 :[FHLC]) ac_mode=$ac_tag; continue;;
35179 esac
35180 case $ac_mode$ac_tag in
35181 :[FHL]*:*);;
35182 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35183echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35184 { (exit 1); exit 1; }; };;
35185 :[FH]-) ac_tag=-:-;;
35186 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35187 esac
35188 ac_save_IFS=$IFS
35189 IFS=:
35190 set x $ac_tag
35191 IFS=$ac_save_IFS
35192 shift
35193 ac_file=$1
35194 shift
35195
35196 case $ac_mode in
35197 :L) ac_source=$1;;
35198 :[FH])
35199 ac_file_inputs=
35200 for ac_f
35201 do
35202 case $ac_f in
35203 -) ac_f="$tmp/stdin";;
35204 *) # Look for the file first in the build tree, then in the source tree
35205 # (if the path is not absolute). The absolute path cannot be DOS-style,
35206 # because $ac_f cannot contain `:'.
35207 test -f "$ac_f" ||
35208 case $ac_f in
35209 [\\/$]*) false;;
35210 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35211 esac ||
35212 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35213echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35214 { (exit 1); exit 1; }; };;
35215 esac
35216 ac_file_inputs="$ac_file_inputs $ac_f"
35217 done
35218
35219 # Let's still pretend it is `configure' which instantiates (i.e., don't
35220 # use $as_me), people would be surprised to read:
35221 # /* config.h. Generated by config.status. */
35222 configure_input="Generated from "`IFS=:
35223 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35224 if test x"$ac_file" != x-; then
35225 configure_input="$ac_file. $configure_input"
35226 { echo "$as_me:$LINENO: creating $ac_file" >&5
35227echo "$as_me: creating $ac_file" >&6;}
35228 fi
35229
35230 case $ac_tag in
35231 *:-:* | *:-) cat >"$tmp/stdin";;
35232 esac
35233 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035234 esac
35235
Reid Spencera773bd52006-08-04 18:18:08 +000035236 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035237$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035238 X"$ac_file" : 'X\(//\)[^/]' \| \
35239 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035240 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035241echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35243 s//\1/
35244 q
35245 }
35246 /^X\(\/\/\)[^/].*/{
35247 s//\1/
35248 q
35249 }
35250 /^X\(\/\/\)$/{
35251 s//\1/
35252 q
35253 }
35254 /^X\(\/\).*/{
35255 s//\1/
35256 q
35257 }
35258 s/.*/./; q'`
35259 { as_dir="$ac_dir"
35260 case $as_dir in #(
35261 -*) as_dir=./$as_dir;;
35262 esac
35263 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035264 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035265 while :; do
35266 case $as_dir in #(
35267 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35268 *) as_qdir=$as_dir;;
35269 esac
35270 as_dirs="'$as_qdir' $as_dirs"
35271 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035272$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035273 X"$as_dir" : 'X\(//\)[^/]' \| \
35274 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035276echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35278 s//\1/
35279 q
35280 }
35281 /^X\(\/\/\)[^/].*/{
35282 s//\1/
35283 q
35284 }
35285 /^X\(\/\/\)$/{
35286 s//\1/
35287 q
35288 }
35289 /^X\(\/\).*/{
35290 s//\1/
35291 q
35292 }
35293 s/.*/./; q'`
35294 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035295 done
Reid Spencera773bd52006-08-04 18:18:08 +000035296 test -z "$as_dirs" || eval "mkdir $as_dirs"
35297 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35298echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035299 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035300 ac_builddir=.
35301
Reid Spencera773bd52006-08-04 18:18:08 +000035302case "$ac_dir" in
35303.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35304*)
John Criswell7a73b802003-06-30 21:59:07 +000035305 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035306 # A ".." for each directory in $ac_dir_suffix.
35307 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35308 case $ac_top_builddir_sub in
35309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35311 esac ;;
35312esac
35313ac_abs_top_builddir=$ac_pwd
35314ac_abs_builddir=$ac_pwd$ac_dir_suffix
35315# for backward compatibility:
35316ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035317
35318case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035319 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035320 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035321 ac_top_srcdir=$ac_top_builddir_sub
35322 ac_abs_top_srcdir=$ac_pwd ;;
35323 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035324 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035325 ac_top_srcdir=$srcdir
35326 ac_abs_top_srcdir=$srcdir ;;
35327 *) # Relative name.
35328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35329 ac_top_srcdir=$ac_top_build_prefix$srcdir
35330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035331esac
Reid Spencera773bd52006-08-04 18:18:08 +000035332ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035333
John Criswell7a73b802003-06-30 21:59:07 +000035334
Reid Spencera773bd52006-08-04 18:18:08 +000035335 case $ac_mode in
35336 :F)
35337 #
35338 # CONFIG_FILE
35339 #
John Criswell7a73b802003-06-30 21:59:07 +000035340
35341 case $INSTALL in
35342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035343 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035344 esac
John Criswell7a73b802003-06-30 21:59:07 +000035345_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035346
35347cat >>$CONFIG_STATUS <<\_ACEOF
35348# If the template does not know about datarootdir, expand it.
35349# FIXME: This hack should be removed a few years after 2.60.
35350ac_datarootdir_hack=; ac_datarootdir_seen=
35351
35352case `sed -n '/datarootdir/ {
35353 p
35354 q
35355}
35356/@datadir@/p
35357/@docdir@/p
35358/@infodir@/p
35359/@localedir@/p
35360/@mandir@/p
35361' $ac_file_inputs` in
35362*datarootdir*) ac_datarootdir_seen=yes;;
35363*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35364 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35365echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35366_ACEOF
35367cat >>$CONFIG_STATUS <<_ACEOF
35368 ac_datarootdir_hack='
35369 s&@datadir@&$datadir&g
35370 s&@docdir@&$docdir&g
35371 s&@infodir@&$infodir&g
35372 s&@localedir@&$localedir&g
35373 s&@mandir@&$mandir&g
35374 s&\\\${datarootdir}&$datarootdir&g' ;;
35375esac
35376_ACEOF
35377
35378# Neutralize VPATH when `$srcdir' = `.'.
35379# Shell code in configure.ac might set extrasub.
35380# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035381cat >>$CONFIG_STATUS <<_ACEOF
35382 sed "$ac_vpsub
35383$extrasub
35384_ACEOF
35385cat >>$CONFIG_STATUS <<\_ACEOF
35386:t
35387/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035388s&@configure_input@&$configure_input&;t t
35389s&@top_builddir@&$ac_top_builddir_sub&;t t
35390s&@srcdir@&$ac_srcdir&;t t
35391s&@abs_srcdir@&$ac_abs_srcdir&;t t
35392s&@top_srcdir@&$ac_top_srcdir&;t t
35393s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35394s&@builddir@&$ac_builddir&;t t
35395s&@abs_builddir@&$ac_abs_builddir&;t t
35396s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35397s&@INSTALL@&$ac_INSTALL&;t t
35398$ac_datarootdir_hack
35399" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035400
Reid Spencera773bd52006-08-04 18:18:08 +000035401test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35402 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35403 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35404 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35405which seems to be undefined. Please make sure it is defined." >&5
35406echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35407which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035408
Reid Spencera773bd52006-08-04 18:18:08 +000035409 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035410 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035411 -) cat "$tmp/out"; rm -f "$tmp/out";;
35412 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035413 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035414 ;;
35415 :H)
35416 #
35417 # CONFIG_HEADER
35418 #
John Criswell7a73b802003-06-30 21:59:07 +000035419_ACEOF
35420
Reid Spencera773bd52006-08-04 18:18:08 +000035421# Transform confdefs.h into a sed script `conftest.defines', that
35422# substitutes the proper values into config.h.in to produce config.h.
35423rm -f conftest.defines conftest.tail
35424# First, append a space to every undef/define line, to ease matching.
35425echo 's/$/ /' >conftest.defines
35426# Then, protect against being on the right side of a sed subst, or in
35427# an unquoted here document, in config.status. If some macros were
35428# called several times there might be several #defines for the same
35429# symbol, which is useless. But do not sort them, since the last
35430# AC_DEFINE must be honored.
35431ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35432# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35433# NAME is the cpp macro being defined, VALUE is the value it is being given.
35434# PARAMS is the parameter list in the macro definition--in most cases, it's
35435# just an empty string.
35436ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35437ac_dB='\\)[ (].*,\\1define\\2'
35438ac_dC=' '
35439ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035440
Reid Spencera773bd52006-08-04 18:18:08 +000035441uniq confdefs.h |
35442 sed -n '
35443 t rset
35444 :rset
35445 s/^[ ]*#[ ]*define[ ][ ]*//
35446 t ok
35447 d
35448 :ok
35449 s/[\\&,]/\\&/g
35450 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35451 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35452 ' >>conftest.defines
35453
35454# Remove the space that was appended to ease matching.
35455# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035456# example, in the case of _POSIX_SOURCE, which is predefined and required
35457# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035458# (The regexp can be short, since the line contains either #define or #undef.)
35459echo 's/ $//
35460s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035461
Reid Spencera773bd52006-08-04 18:18:08 +000035462# Break up conftest.defines:
35463ac_max_sed_lines=50
35464
35465# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35466# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35467# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35468# et cetera.
35469ac_in='$ac_file_inputs'
35470ac_out='"$tmp/out1"'
35471ac_nxt='"$tmp/out2"'
35472
35473while :
John Criswell7a73b802003-06-30 21:59:07 +000035474do
Reid Spencera773bd52006-08-04 18:18:08 +000035475 # Write a here document:
35476 cat >>$CONFIG_STATUS <<_ACEOF
35477 # First, check the format of the line:
35478 cat >"\$tmp/defines.sed" <<\\CEOF
35479/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35480/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35481b
35482:def
35483_ACEOF
35484 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035485 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035486 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35487 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35488 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35489 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035490 rm -f conftest.defines
35491 mv conftest.tail conftest.defines
35492done
Reid Spencera773bd52006-08-04 18:18:08 +000035493rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035494
Reid Spencera773bd52006-08-04 18:18:08 +000035495echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035496cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035497 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035498 echo "/* $configure_input */" >"$tmp/config.h"
35499 cat "$ac_result" >>"$tmp/config.h"
35500 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035501 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35502echo "$as_me: $ac_file is unchanged" >&6;}
35503 else
John Criswell7a73b802003-06-30 21:59:07 +000035504 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035505 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035506 fi
35507 else
Reid Spencera773bd52006-08-04 18:18:08 +000035508 echo "/* $configure_input */"
35509 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035510 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035511 rm -f "$tmp/out12"
35512 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035513
Reid Spencera773bd52006-08-04 18:18:08 +000035514 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35515echo "$as_me: executing $ac_file commands" >&6;}
35516 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035517 esac
John Criswell7a73b802003-06-30 21:59:07 +000035518
Reid Spencera773bd52006-08-04 18:18:08 +000035519
35520 case $ac_file$ac_mode in
35521 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35522 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35523 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35524 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35525 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35526 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35527 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35528 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035529 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35530 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035531 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35532 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35533 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35534 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35535 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35536 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35537 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35538 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35539 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35540 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035541 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35542 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35543 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35544 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035545
35546 esac
35547done # for ac_tag
35548
John Criswell7a73b802003-06-30 21:59:07 +000035549
35550{ (exit 0); exit 0; }
35551_ACEOF
35552chmod +x $CONFIG_STATUS
35553ac_clean_files=$ac_clean_files_save
35554
35555
35556# configure is writing to config.log, and then calls config.status.
35557# config.status does its own redirection, appending to config.log.
35558# Unfortunately, on DOS this fails, as config.log is still kept open
35559# by configure, so config.status won't be able to write to it; its
35560# output is simply discarded. So we exec the FD to /dev/null,
35561# effectively closing config.log, so it can be properly (re)opened and
35562# appended to by config.status. When coming back to configure, we
35563# need to make the FD available again.
35564if test "$no_create" != yes; then
35565 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035566 ac_config_status_args=
35567 test "$silent" = yes &&
35568 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035569 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035570 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035571 exec 5>>config.log
35572 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35573 # would make configure fail if this is the last instruction.
35574 $ac_cs_success || { (exit 1); exit 1; }
35575fi
35576
John Criswell12399a12003-09-30 15:55:44 +000035577#
35578# CONFIG_SUBDIRS section.
35579#
35580if test "$no_recursion" != yes; then
35581
35582 # Remove --cache-file and --srcdir arguments so they do not pile up.
35583 ac_sub_configure_args=
35584 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035585 eval "set x $ac_configure_args"
35586 shift
35587 for ac_arg
35588 do
John Criswell12399a12003-09-30 15:55:44 +000035589 if test -n "$ac_prev"; then
35590 ac_prev=
35591 continue
35592 fi
35593 case $ac_arg in
35594 -cache-file | --cache-file | --cache-fil | --cache-fi \
35595 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35596 ac_prev=cache_file ;;
35597 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35598 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35599 | --c=*)
35600 ;;
35601 --config-cache | -C)
35602 ;;
35603 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35604 ac_prev=srcdir ;;
35605 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35606 ;;
35607 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35608 ac_prev=prefix ;;
35609 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35610 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035611 *)
35612 case $ac_arg in
35613 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35614 esac
35615 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035616 esac
35617 done
35618
35619 # Always prepend --prefix to ensure using the same prefix
35620 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035621 ac_arg="--prefix=$prefix"
35622 case $ac_arg in
35623 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35624 esac
Tanya Lattnercf067672008-01-17 05:57:22 +000035625 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035626
35627 ac_popdir=`pwd`
35628 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35629
35630 # Do not complain, so a configure script can configure whichever
35631 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035632 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035633
Reid Spencera773bd52006-08-04 18:18:08 +000035634 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35635 echo "$as_me:$LINENO: $ac_msg" >&5
35636 echo "$ac_msg" >&6
35637 { as_dir="$ac_dir"
35638 case $as_dir in #(
35639 -*) as_dir=./$as_dir;;
35640 esac
35641 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035642 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035643 while :; do
35644 case $as_dir in #(
35645 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35646 *) as_qdir=$as_dir;;
35647 esac
35648 as_dirs="'$as_qdir' $as_dirs"
35649 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035651 X"$as_dir" : 'X\(//\)[^/]' \| \
35652 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035654echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35656 s//\1/
35657 q
35658 }
35659 /^X\(\/\/\)[^/].*/{
35660 s//\1/
35661 q
35662 }
35663 /^X\(\/\/\)$/{
35664 s//\1/
35665 q
35666 }
35667 /^X\(\/\).*/{
35668 s//\1/
35669 q
35670 }
35671 s/.*/./; q'`
35672 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035673 done
Reid Spencera773bd52006-08-04 18:18:08 +000035674 test -z "$as_dirs" || eval "mkdir $as_dirs"
35675 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35676echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035677 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035678 ac_builddir=.
35679
Reid Spencera773bd52006-08-04 18:18:08 +000035680case "$ac_dir" in
35681.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35682*)
John Criswell12399a12003-09-30 15:55:44 +000035683 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035684 # A ".." for each directory in $ac_dir_suffix.
35685 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35686 case $ac_top_builddir_sub in
35687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35689 esac ;;
35690esac
35691ac_abs_top_builddir=$ac_pwd
35692ac_abs_builddir=$ac_pwd$ac_dir_suffix
35693# for backward compatibility:
35694ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035695
35696case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035697 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035698 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035699 ac_top_srcdir=$ac_top_builddir_sub
35700 ac_abs_top_srcdir=$ac_pwd ;;
35701 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035702 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035703 ac_top_srcdir=$srcdir
35704 ac_abs_top_srcdir=$srcdir ;;
35705 *) # Relative name.
35706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35707 ac_top_srcdir=$ac_top_build_prefix$srcdir
35708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035709esac
Reid Spencera773bd52006-08-04 18:18:08 +000035710ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035711
35712
Reid Spencera773bd52006-08-04 18:18:08 +000035713 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035714
35715 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035716 if test -f "$ac_srcdir/configure.gnu"; then
35717 ac_sub_configure=$ac_srcdir/configure.gnu
35718 elif test -f "$ac_srcdir/configure"; then
35719 ac_sub_configure=$ac_srcdir/configure
35720 elif test -f "$ac_srcdir/configure.in"; then
35721 # This should be Cygnus configure.
35722 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035723 else
35724 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35725echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35726 ac_sub_configure=
35727 fi
35728
35729 # The recursion is here.
35730 if test -n "$ac_sub_configure"; then
35731 # Make the cache file name correct relative to the subdirectory.
35732 case $cache_file in
35733 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035734 *) # Relative name.
35735 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035736 esac
35737
Reid Spencera773bd52006-08-04 18:18:08 +000035738 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35739echo "$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 +000035740 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035741 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35742 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035743 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035744echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35745 { (exit 1); exit 1; }; }
35746 fi
35747
Reid Spencera773bd52006-08-04 18:18:08 +000035748 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035749 done
35750fi
35751