Merge remote branch 'remotes/origin/Teaman-IPTraffic' into Teaman-ND
[tomato.git] / release / src / router / libvorbis / configure
blobc14894847e718acb338a7eb60d6bcce281e546ae
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libvorbis 1.2.3.
5 # Report bugs to <vorbis-dev@xiph.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563 esac
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
586 exit 0
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
604 done
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
628 done
629 IFS="$lt_save_ifs"
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
677 prev="$cmd"
678 done
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 # Initializations.
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='libvorbis'
730 PACKAGE_TARNAME='libvorbis'
731 PACKAGE_VERSION='1.2.3'
732 PACKAGE_STRING='libvorbis 1.2.3'
733 PACKAGE_BUGREPORT='vorbis-dev@xiph.org'
735 ac_unique_file="lib/mdct.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 am__isrc
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 ACLOCAL_AMFLAGS
844 V_LIB_CURRENT
845 V_LIB_REVISION
846 V_LIB_AGE
847 VF_LIB_CURRENT
848 VF_LIB_REVISION
849 VF_LIB_AGE
850 VE_LIB_CURRENT
851 VE_LIB_REVISION
852 VE_LIB_AGE
854 CFLAGS
855 LDFLAGS
856 CPPFLAGS
857 ac_ct_CC
858 EXEEXT
859 OBJEXT
860 DEPDIR
861 am__include
862 am__quote
863 AMDEP_TRUE
864 AMDEP_FALSE
865 AMDEPBACKSLASH
866 CCDEPMODE
867 am__fastdepCC_TRUE
868 am__fastdepCC_FALSE
871 GREP
872 EGREP
873 LN_S
874 ECHO
876 RANLIB
877 DSYMUTIL
878 NMEDIT
879 DLLTOOL
881 OBJDUMP
883 CXXFLAGS
884 ac_ct_CXX
885 CXXDEPMODE
886 am__fastdepCXX_TRUE
887 am__fastdepCXX_FALSE
888 CXXCPP
890 FFLAGS
891 ac_ct_F77
892 LIBTOOL
893 PDFLATEX
894 HTLATEX
895 BUILD_DOCS_TRUE
896 BUILD_DOCS_FALSE
897 PKG_CONFIG
898 OGG_CFLAGS
899 OGG_LIBS
900 ALLOCA
901 LIBOBJS
902 VORBIS_LIBS
903 DEBUG
904 PROFILE
905 pthread_lib
906 LIBTOOL_DEPS
907 LTLIBOBJS'
908 ac_subst_files=''
909 ac_precious_vars='build_alias
910 host_alias
911 target_alias
913 CFLAGS
914 LDFLAGS
915 LIBS
916 CPPFLAGS
919 CXXFLAGS
921 CXXCPP
923 FFLAGS
924 PKG_CONFIG
925 OGG_CFLAGS
926 OGG_LIBS'
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 # The variables have the same names as the options, with
933 # dashes changed to underlines.
934 cache_file=/dev/null
935 exec_prefix=NONE
936 no_create=
937 no_recursion=
938 prefix=NONE
939 program_prefix=NONE
940 program_suffix=NONE
941 program_transform_name=s,x,x,
942 silent=
943 site=
944 srcdir=
945 verbose=
946 x_includes=NONE
947 x_libraries=NONE
949 # Installation directory options.
950 # These are left unexpanded so users can "make install exec_prefix=/foo"
951 # and all the variables that are supposed to be based on exec_prefix
952 # by default will actually change.
953 # Use braces instead of parens because sh, perl, etc. also accept them.
954 # (The list follows the same order as the GNU Coding Standards.)
955 bindir='${exec_prefix}/bin'
956 sbindir='${exec_prefix}/sbin'
957 libexecdir='${exec_prefix}/libexec'
958 datarootdir='${prefix}/share'
959 datadir='${datarootdir}'
960 sysconfdir='${prefix}/etc'
961 sharedstatedir='${prefix}/com'
962 localstatedir='${prefix}/var'
963 includedir='${prefix}/include'
964 oldincludedir='/usr/include'
965 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966 infodir='${datarootdir}/info'
967 htmldir='${docdir}'
968 dvidir='${docdir}'
969 pdfdir='${docdir}'
970 psdir='${docdir}'
971 libdir='${exec_prefix}/lib'
972 localedir='${datarootdir}/locale'
973 mandir='${datarootdir}/man'
975 ac_prev=
976 ac_dashdash=
977 for ac_option
979 # If the previous option needs an argument, assign it.
980 if test -n "$ac_prev"; then
981 eval $ac_prev=\$ac_option
982 ac_prev=
983 continue
986 case $ac_option in
987 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988 *) ac_optarg=yes ;;
989 esac
991 # Accept the important Cygnus configure options, so we can diagnose typos.
993 case $ac_dashdash$ac_option in
995 ac_dashdash=yes ;;
997 -bindir | --bindir | --bindi | --bind | --bin | --bi)
998 ac_prev=bindir ;;
999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 bindir=$ac_optarg ;;
1002 -build | --build | --buil | --bui | --bu)
1003 ac_prev=build_alias ;;
1004 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005 build_alias=$ac_optarg ;;
1007 -cache-file | --cache-file | --cache-fil | --cache-fi \
1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009 ac_prev=cache_file ;;
1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012 cache_file=$ac_optarg ;;
1014 --config-cache | -C)
1015 cache_file=config.cache ;;
1017 -datadir | --datadir | --datadi | --datad)
1018 ac_prev=datadir ;;
1019 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020 datadir=$ac_optarg ;;
1022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023 | --dataroo | --dataro | --datar)
1024 ac_prev=datarootdir ;;
1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027 datarootdir=$ac_optarg ;;
1029 -disable-* | --disable-*)
1030 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036 eval enable_$ac_feature=no ;;
1038 -docdir | --docdir | --docdi | --doc | --do)
1039 ac_prev=docdir ;;
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 ac_prev=dvidir ;;
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
1048 -enable-* | --enable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1055 eval enable_$ac_feature=\$ac_optarg ;;
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1135 no_create=yes ;;
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
1204 sbindir=$ac_optarg ;;
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
1215 sharedstatedir=$ac_optarg ;;
1217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
1220 site=$ac_optarg ;;
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1245 -with-* | --with-*)
1246 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 { echo "$as_me: error: invalid package name: $ac_package" >&2
1250 { (exit 1); exit 1; }; }
1251 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1252 eval with_$ac_package=\$ac_optarg ;;
1254 -without-* | --without-*)
1255 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid package name: $ac_package" >&2
1259 { (exit 1); exit 1; }; }
1260 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1261 eval with_$ac_package=no ;;
1263 --x)
1264 # Obsolete; use --with-x.
1265 with_x=yes ;;
1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1268 | --x-incl | --x-inc | --x-in | --x-i)
1269 ac_prev=x_includes ;;
1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1272 x_includes=$ac_optarg ;;
1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1276 ac_prev=x_libraries ;;
1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1279 x_libraries=$ac_optarg ;;
1281 -*) { echo "$as_me: error: unrecognized option: $ac_option
1282 Try \`$0 --help' for more information." >&2
1283 { (exit 1); exit 1; }; }
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1291 { (exit 1); exit 1; }; }
1292 eval $ac_envvar=\$ac_optarg
1293 export $ac_envvar ;;
1296 # FIXME: should be removed in autoconf 3.0.
1297 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1299 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1303 esac
1304 done
1306 if test -n "$ac_prev"; then
1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1308 { echo "$as_me: error: missing argument to $ac_option" >&2
1309 { (exit 1); exit 1; }; }
1312 # Be sure to have absolute directory names.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1319 case $ac_val in
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 esac
1323 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324 { (exit 1); exit 1; }; }
1325 done
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336 if test "x$build_alias" = x; then
1337 cross_compiling=maybe
1338 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used." >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348 test "$silent" = yes && exec 6>/dev/null
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 { echo "$as_me: error: Working directory cannot be determined" >&2
1355 { (exit 1); exit 1; }; }
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 { echo "$as_me: error: pwd does not report name of working directory" >&2
1358 { (exit 1); exit 1; }; }
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$0" ||
1366 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$0" : 'X\(//\)[^/]' \| \
1368 X"$0" : 'X\(//\)$' \| \
1369 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1370 echo X"$0" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1379 /^X\(\/\/\)$/{
1380 s//\1/
1383 /^X\(\/\).*/{
1384 s//\1/
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1392 else
1393 ac_srcdir_defaulted=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398 { (exit 1); exit 1; }; }
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1403 { (exit 1); exit 1; }; }
1404 pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 srcdir=.
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_${ac_var}_value=\$${ac_var}
1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1428 cat <<_ACEOF
1429 \`configure' configures libvorbis 1.2.3 to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1438 Configuration:
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 [PREFIX]
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/libvorbis]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1482 _ACEOF
1484 cat <<\_ACEOF
1486 Program names:
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1491 System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 --target=TARGET configure for building compilers for TARGET [HOST]
1495 _ACEOF
1498 if test -n "$ac_init_help"; then
1499 case $ac_init_help in
1500 short | recursive ) echo "Configuration of libvorbis 1.2.3:";;
1501 esac
1502 cat <<\_ACEOF
1504 Optional Features:
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --disable-dependency-tracking speeds up one-time build
1508 --enable-dependency-tracking do not reject slow dependency extractors
1509 --enable-shared[=PKGS] build shared libraries [default=yes]
1510 --enable-static[=PKGS] build static libraries [default=yes]
1511 --enable-fast-install[=PKGS]
1512 optimize for fast installation [default=yes]
1513 --disable-libtool-lock avoid locking (might break parallel builds)
1514 --enable-docs build the documentation
1515 --disable-oggtest Do not try to compile and run a test Ogg program
1517 Optional Packages:
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 --with-pic try to use only PIC/non-PIC objects [default=use
1522 both]
1523 --with-tags[=TAGS] include additional configurations [automatic]
1524 --with-ogg=PFX Prefix where libogg is installed (optional)
1525 --with-ogg-libraries=DIR
1526 Directory where libogg library is installed
1527 (optional)
1528 --with-ogg-includes=DIR Directory where libogg header files are installed
1529 (optional)
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 CPP C preprocessor
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
1542 CXXCPP C++ preprocessor
1543 F77 Fortran 77 compiler command
1544 FFLAGS Fortran 77 compiler flags
1545 PKG_CONFIG path to pkg-config utility
1546 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1547 OGG_LIBS linker flags for OGG, overriding pkg-config
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1552 Report bugs to <vorbis-dev@xiph.org>.
1553 _ACEOF
1554 ac_status=$?
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" || continue
1561 ac_builddir=.
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1579 case $srcdir in
1580 .) # We are building in place.
1581 ac_srcdir=.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1603 else
1604 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 fi || ac_status=$?
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1607 done
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612 cat <<\_ACEOF
1613 libvorbis configure 1.2.3
1614 generated by GNU Autoconf 2.61
1616 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1617 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1620 _ACEOF
1621 exit
1623 cat >config.log <<_ACEOF
1624 This file contains any messages produced by compilers while
1625 running configure, to aid debugging if configure makes a mistake.
1627 It was created by libvorbis $as_me 1.2.3, which was
1628 generated by GNU Autoconf 2.61. Invocation command line was
1630 $ $0 $@
1632 _ACEOF
1633 exec 5>>config.log
1635 cat <<_ASUNAME
1636 ## --------- ##
1637 ## Platform. ##
1638 ## --------- ##
1640 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1641 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1642 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1643 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1644 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1646 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1647 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1649 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1650 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1651 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1652 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1653 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1654 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1655 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1657 _ASUNAME
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1662 IFS=$as_save_IFS
1663 test -z "$as_dir" && as_dir=.
1664 echo "PATH: $as_dir"
1665 done
1666 IFS=$as_save_IFS
1668 } >&5
1670 cat >&5 <<_ACEOF
1673 ## ----------- ##
1674 ## Core tests. ##
1675 ## ----------- ##
1677 _ACEOF
1680 # Keep a trace of the command line.
1681 # Strip out --no-create and --no-recursion so they do not pile up.
1682 # Strip out --silent because we don't want to record it for future runs.
1683 # Also quote any args containing shell meta-characters.
1684 # Make two passes to allow for proper duplicate-argument suppression.
1685 ac_configure_args=
1686 ac_configure_args0=
1687 ac_configure_args1=
1688 ac_must_keep_next=false
1689 for ac_pass in 1 2
1691 for ac_arg
1693 case $ac_arg in
1694 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1696 | -silent | --silent | --silen | --sile | --sil)
1697 continue ;;
1698 *\'*)
1699 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1700 esac
1701 case $ac_pass in
1702 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1704 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1705 if test $ac_must_keep_next = true; then
1706 ac_must_keep_next=false # Got value, back to normal.
1707 else
1708 case $ac_arg in
1709 *=* | --config-cache | -C | -disable-* | --disable-* \
1710 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1711 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1712 | -with-* | --with-* | -without-* | --without-* | --x)
1713 case "$ac_configure_args0 " in
1714 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1715 esac
1717 -* ) ac_must_keep_next=true ;;
1718 esac
1720 ac_configure_args="$ac_configure_args '$ac_arg'"
1722 esac
1723 done
1724 done
1725 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1726 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1728 # When interrupted or exit'd, cleanup temporary files, and complete
1729 # config.log. We remove comments because anyway the quotes in there
1730 # would cause problems or look ugly.
1731 # WARNING: Use '\'' to represent an apostrophe within the trap.
1732 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1733 trap 'exit_status=$?
1734 # Save into config.log some information that might help in debugging.
1736 echo
1738 cat <<\_ASBOX
1739 ## ---------------- ##
1740 ## Cache variables. ##
1741 ## ---------------- ##
1742 _ASBOX
1743 echo
1744 # The following way of writing the cache mishandles newlines in values,
1746 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1747 eval ac_val=\$$ac_var
1748 case $ac_val in #(
1749 *${as_nl}*)
1750 case $ac_var in #(
1751 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1752 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1753 esac
1754 case $ac_var in #(
1755 _ | IFS | as_nl) ;; #(
1756 *) $as_unset $ac_var ;;
1757 esac ;;
1758 esac
1759 done
1760 (set) 2>&1 |
1761 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1762 *${as_nl}ac_space=\ *)
1763 sed -n \
1764 "s/'\''/'\''\\\\'\'''\''/g;
1765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1766 ;; #(
1768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1770 esac |
1771 sort
1773 echo
1775 cat <<\_ASBOX
1776 ## ----------------- ##
1777 ## Output variables. ##
1778 ## ----------------- ##
1779 _ASBOX
1780 echo
1781 for ac_var in $ac_subst_vars
1783 eval ac_val=\$$ac_var
1784 case $ac_val in
1785 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1786 esac
1787 echo "$ac_var='\''$ac_val'\''"
1788 done | sort
1789 echo
1791 if test -n "$ac_subst_files"; then
1792 cat <<\_ASBOX
1793 ## ------------------- ##
1794 ## File substitutions. ##
1795 ## ------------------- ##
1796 _ASBOX
1797 echo
1798 for ac_var in $ac_subst_files
1800 eval ac_val=\$$ac_var
1801 case $ac_val in
1802 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803 esac
1804 echo "$ac_var='\''$ac_val'\''"
1805 done | sort
1806 echo
1809 if test -s confdefs.h; then
1810 cat <<\_ASBOX
1811 ## ----------- ##
1812 ## confdefs.h. ##
1813 ## ----------- ##
1814 _ASBOX
1815 echo
1816 cat confdefs.h
1817 echo
1819 test "$ac_signal" != 0 &&
1820 echo "$as_me: caught signal $ac_signal"
1821 echo "$as_me: exit $exit_status"
1822 } >&5
1823 rm -f core *.core core.conftest.* &&
1824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1825 exit $exit_status
1827 for ac_signal in 1 2 13 15; do
1828 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1829 done
1830 ac_signal=0
1832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1833 rm -f -r conftest* confdefs.h
1835 # Predefined preprocessor variables.
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_NAME "$PACKAGE_NAME"
1839 _ACEOF
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1844 _ACEOF
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1849 _ACEOF
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_STRING "$PACKAGE_STRING"
1854 _ACEOF
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1859 _ACEOF
1862 # Let the site file select an alternate cache file if it wants to.
1863 # Prefer explicitly selected file to automatically selected ones.
1864 if test -n "$CONFIG_SITE"; then
1865 set x "$CONFIG_SITE"
1866 elif test "x$prefix" != xNONE; then
1867 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1868 else
1869 set x "$ac_default_prefix/share/config.site" \
1870 "$ac_default_prefix/etc/config.site"
1872 shift
1873 for ac_site_file
1875 if test -r "$ac_site_file"; then
1876 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1877 echo "$as_me: loading site script $ac_site_file" >&6;}
1878 sed 's/^/| /' "$ac_site_file" >&5
1879 . "$ac_site_file"
1881 done
1883 if test -r "$cache_file"; then
1884 # Some versions of bash will fail to source /dev/null (special
1885 # files actually), so we avoid doing that.
1886 if test -f "$cache_file"; then
1887 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1888 echo "$as_me: loading cache $cache_file" >&6;}
1889 case $cache_file in
1890 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891 *) . "./$cache_file";;
1892 esac
1894 else
1895 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1896 echo "$as_me: creating cache $cache_file" >&6;}
1897 >$cache_file
1900 # Check that the precious variables saved in the cache have kept the same
1901 # value.
1902 ac_cache_corrupted=false
1903 for ac_var in $ac_precious_vars; do
1904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905 eval ac_new_set=\$ac_env_${ac_var}_set
1906 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907 eval ac_new_val=\$ac_env_${ac_var}_value
1908 case $ac_old_set,$ac_new_set in
1909 set,)
1910 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1911 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1913 ,set)
1914 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1915 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1916 ac_cache_corrupted=: ;;
1917 ,);;
1919 if test "x$ac_old_val" != "x$ac_new_val"; then
1920 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1923 echo "$as_me: former value: $ac_old_val" >&2;}
1924 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1925 echo "$as_me: current value: $ac_new_val" >&2;}
1926 ac_cache_corrupted=:
1927 fi;;
1928 esac
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1931 case $ac_new_val in
1932 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1934 esac
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1938 esac
1940 done
1941 if $ac_cache_corrupted; then
1942 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1973 ac_ext=c
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983 ac_aux_dir=
1984 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1985 if test -f "$ac_dir/install-sh"; then
1986 ac_aux_dir=$ac_dir
1987 ac_install_sh="$ac_aux_dir/install-sh -c"
1988 break
1989 elif test -f "$ac_dir/install.sh"; then
1990 ac_aux_dir=$ac_dir
1991 ac_install_sh="$ac_aux_dir/install.sh -c"
1992 break
1993 elif test -f "$ac_dir/shtool"; then
1994 ac_aux_dir=$ac_dir
1995 ac_install_sh="$ac_aux_dir/shtool install -c"
1996 break
1998 done
1999 if test -z "$ac_aux_dir"; then
2000 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2001 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2002 { (exit 1); exit 1; }; }
2005 # These three variables are undocumented and unsupported,
2006 # and are intended to be withdrawn in a future Autoconf release.
2007 # They can cause serious problems if a builder's source tree is in a directory
2008 # whose full name contains unusual characters.
2009 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2010 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2011 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2014 # Make sure we can run config.sub.
2015 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2016 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2017 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2018 { (exit 1); exit 1; }; }
2020 { echo "$as_me:$LINENO: checking build system type" >&5
2021 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2022 if test "${ac_cv_build+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 ac_build_alias=$build_alias
2026 test "x$ac_build_alias" = x &&
2027 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2028 test "x$ac_build_alias" = x &&
2029 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2030 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2031 { (exit 1); exit 1; }; }
2032 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2033 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2034 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2035 { (exit 1); exit 1; }; }
2038 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2039 echo "${ECHO_T}$ac_cv_build" >&6; }
2040 case $ac_cv_build in
2041 *-*-*) ;;
2042 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2043 echo "$as_me: error: invalid value of canonical build" >&2;}
2044 { (exit 1); exit 1; }; };;
2045 esac
2046 build=$ac_cv_build
2047 ac_save_IFS=$IFS; IFS='-'
2048 set x $ac_cv_build
2049 shift
2050 build_cpu=$1
2051 build_vendor=$2
2052 shift; shift
2053 # Remember, the first character of IFS is used to create $*,
2054 # except with old shells:
2055 build_os=$*
2056 IFS=$ac_save_IFS
2057 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2060 { echo "$as_me:$LINENO: checking host system type" >&5
2061 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_host+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065 if test "x$host_alias" = x; then
2066 ac_cv_host=$ac_cv_build
2067 else
2068 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2069 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2070 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2071 { (exit 1); exit 1; }; }
2075 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2076 echo "${ECHO_T}$ac_cv_host" >&6; }
2077 case $ac_cv_host in
2078 *-*-*) ;;
2079 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2080 echo "$as_me: error: invalid value of canonical host" >&2;}
2081 { (exit 1); exit 1; }; };;
2082 esac
2083 host=$ac_cv_host
2084 ac_save_IFS=$IFS; IFS='-'
2085 set x $ac_cv_host
2086 shift
2087 host_cpu=$1
2088 host_vendor=$2
2089 shift; shift
2090 # Remember, the first character of IFS is used to create $*,
2091 # except with old shells:
2092 host_os=$*
2093 IFS=$ac_save_IFS
2094 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2097 { echo "$as_me:$LINENO: checking target system type" >&5
2098 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2099 if test "${ac_cv_target+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 if test "x$target_alias" = x; then
2103 ac_cv_target=$ac_cv_host
2104 else
2105 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2106 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2107 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2108 { (exit 1); exit 1; }; }
2112 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2113 echo "${ECHO_T}$ac_cv_target" >&6; }
2114 case $ac_cv_target in
2115 *-*-*) ;;
2116 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2117 echo "$as_me: error: invalid value of canonical target" >&2;}
2118 { (exit 1); exit 1; }; };;
2119 esac
2120 target=$ac_cv_target
2121 ac_save_IFS=$IFS; IFS='-'
2122 set x $ac_cv_target
2123 shift
2124 target_cpu=$1
2125 target_vendor=$2
2126 shift; shift
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2129 target_os=$*
2130 IFS=$ac_save_IFS
2131 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2134 # The aliases save the names the user supplied, while $host etc.
2135 # will get canonicalized.
2136 test -n "$target_alias" &&
2137 test "$program_prefix$program_suffix$program_transform_name" = \
2138 NONENONEs,x,x, &&
2139 program_prefix=${target_alias}-
2141 am__api_version='1.10'
2143 # Find a good install program. We prefer a C program (faster),
2144 # so one script is as good as another. But avoid the broken or
2145 # incompatible versions:
2146 # SysV /etc/install, /usr/sbin/install
2147 # SunOS /usr/etc/install
2148 # IRIX /sbin/install
2149 # AIX /bin/install
2150 # AmigaOS /C/install, which installs bootblocks on floppy discs
2151 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2152 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2153 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2154 # OS/2's system install, which has a completely different semantic
2155 # ./install, which can be erroneously created by make from ./install.sh.
2156 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2157 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2158 if test -z "$INSTALL"; then
2159 if test "${ac_cv_path_install+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 # Account for people who put trailing slashes in PATH elements.
2168 case $as_dir/ in
2169 ./ | .// | /cC/* | \
2170 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2171 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2172 /usr/ucb/* ) ;;
2174 # OSF1 and SCO ODT 3.0 have their own names for install.
2175 # Don't use installbsd from OSF since it installs stuff as root
2176 # by default.
2177 for ac_prog in ginstall scoinst install; do
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2180 if test $ac_prog = install &&
2181 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2182 # AIX install. It has an incompatible calling convention.
2184 elif test $ac_prog = install &&
2185 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2186 # program-specific install script used by HP pwplus--don't use.
2188 else
2189 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2190 break 3
2193 done
2194 done
2196 esac
2197 done
2198 IFS=$as_save_IFS
2202 if test "${ac_cv_path_install+set}" = set; then
2203 INSTALL=$ac_cv_path_install
2204 else
2205 # As a last resort, use the slow shell script. Don't cache a
2206 # value for INSTALL within a source directory, because that will
2207 # break other packages using the cache if that directory is
2208 # removed, or if the value is a relative name.
2209 INSTALL=$ac_install_sh
2212 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2213 echo "${ECHO_T}$INSTALL" >&6; }
2215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2216 # It thinks the first close brace ends the variable substitution.
2217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2221 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2223 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2224 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2225 # Just in case
2226 sleep 1
2227 echo timestamp > conftest.file
2228 # Do `set' in a subshell so we don't clobber the current shell's
2229 # arguments. Must try -L first in case configure is actually a
2230 # symlink; some systems play weird games with the mod time of symlinks
2231 # (eg FreeBSD returns the mod time of the symlink's containing
2232 # directory).
2233 if (
2234 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2235 if test "$*" = "X"; then
2236 # -L didn't work.
2237 set X `ls -t $srcdir/configure conftest.file`
2239 rm -f conftest.file
2240 if test "$*" != "X $srcdir/configure conftest.file" \
2241 && test "$*" != "X conftest.file $srcdir/configure"; then
2243 # If neither matched, then we have a broken ls. This can happen
2244 # if, for instance, CONFIG_SHELL is bash and it inherits a
2245 # broken ls alias from the environment. This has actually
2246 # happened. Such a system could not be considered "sane".
2247 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2248 alias in your environment" >&5
2249 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2250 alias in your environment" >&2;}
2251 { (exit 1); exit 1; }; }
2254 test "$2" = conftest.file
2256 then
2257 # Ok.
2259 else
2260 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2261 Check your system clock" >&5
2262 echo "$as_me: error: newly created file is older than distributed files!
2263 Check your system clock" >&2;}
2264 { (exit 1); exit 1; }; }
2266 { echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6; }
2268 test "$program_prefix" != NONE &&
2269 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2270 # Use a double $ so make ignores it.
2271 test "$program_suffix" != NONE &&
2272 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2273 # Double any \ or $. echo might interpret backslashes.
2274 # By default was `s,x,x', remove it if useless.
2275 cat <<\_ACEOF >conftest.sed
2276 s/[\\$]/&&/g;s/;s,x,x,$//
2277 _ACEOF
2278 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2279 rm -f conftest.sed
2281 # expand $ac_aux_dir to an absolute path
2282 am_aux_dir=`cd $ac_aux_dir && pwd`
2284 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2285 # Use eval to expand $SHELL
2286 if eval "$MISSING --run true"; then
2287 am_missing_run="$MISSING --run "
2288 else
2289 am_missing_run=
2290 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2291 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2294 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2295 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2296 if test -z "$MKDIR_P"; then
2297 if test "${ac_cv_path_mkdir+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_prog in mkdir gmkdir; do
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2308 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2309 'mkdir (GNU coreutils) '* | \
2310 'mkdir (coreutils) '* | \
2311 'mkdir (fileutils) '4.1*)
2312 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2313 break 3;;
2314 esac
2315 done
2316 done
2317 done
2318 IFS=$as_save_IFS
2322 if test "${ac_cv_path_mkdir+set}" = set; then
2323 MKDIR_P="$ac_cv_path_mkdir -p"
2324 else
2325 # As a last resort, use the slow shell script. Don't cache a
2326 # value for MKDIR_P within a source directory, because that will
2327 # break other packages using the cache if that directory is
2328 # removed, or if the value is a relative name.
2329 test -d ./--version && rmdir ./--version
2330 MKDIR_P="$ac_install_sh -d"
2333 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2334 echo "${ECHO_T}$MKDIR_P" >&6; }
2336 mkdir_p="$MKDIR_P"
2337 case $mkdir_p in
2338 [\\/$]* | ?:[\\/]*) ;;
2339 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2340 esac
2342 for ac_prog in gawk mawk nawk awk
2344 # Extract the first word of "$ac_prog", so it can be a program name with args.
2345 set dummy $ac_prog; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_AWK+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test -n "$AWK"; then
2352 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_AWK="$ac_prog"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2365 done
2366 done
2367 IFS=$as_save_IFS
2371 AWK=$ac_cv_prog_AWK
2372 if test -n "$AWK"; then
2373 { echo "$as_me:$LINENO: result: $AWK" >&5
2374 echo "${ECHO_T}$AWK" >&6; }
2375 else
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2381 test -n "$AWK" && break
2382 done
2384 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2385 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2386 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2387 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 cat >conftest.make <<\_ACEOF
2391 SHELL = /bin/sh
2392 all:
2393 @echo '@@@%%%=$(MAKE)=@@@%%%'
2394 _ACEOF
2395 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2396 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2397 *@@@%%%=?*=@@@%%%*)
2398 eval ac_cv_prog_make_${ac_make}_set=yes;;
2400 eval ac_cv_prog_make_${ac_make}_set=no;;
2401 esac
2402 rm -f conftest.make
2404 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2405 { echo "$as_me:$LINENO: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6; }
2407 SET_MAKE=
2408 else
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2411 SET_MAKE="MAKE=${MAKE-make}"
2414 rm -rf .tst 2>/dev/null
2415 mkdir .tst 2>/dev/null
2416 if test -d .tst; then
2417 am__leading_dot=.
2418 else
2419 am__leading_dot=_
2421 rmdir .tst 2>/dev/null
2423 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2424 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2425 # is not polluted with repeated "-I."
2426 am__isrc=' -I$(srcdir)'
2427 # test to see if srcdir already configured
2428 if test -f $srcdir/config.status; then
2429 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2430 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2431 { (exit 1); exit 1; }; }
2435 # test whether we have cygpath
2436 if test -z "$CYGPATH_W"; then
2437 if (cygpath --version) >/dev/null 2>/dev/null; then
2438 CYGPATH_W='cygpath -w'
2439 else
2440 CYGPATH_W=echo
2445 # Define the identity of the package.
2446 PACKAGE=$PACKAGE_NAME
2447 VERSION=$PACKAGE_VERSION
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE "$PACKAGE"
2452 _ACEOF
2455 cat >>confdefs.h <<_ACEOF
2456 #define VERSION "$VERSION"
2457 _ACEOF
2459 # Some tools Automake needs.
2461 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2464 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2467 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2470 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2473 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2475 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2477 # Installed binaries are usually stripped using `strip' when the user
2478 # run `make install-strip'. However `strip' might not be the right
2479 # tool to use in cross-compilation environments, therefore Automake
2480 # will honor the `STRIP' environment variable to overrule this program.
2481 if test "$cross_compiling" != no; then
2482 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}strip; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_STRIP+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 if test -n "$STRIP"; then
2491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2504 done
2505 done
2506 IFS=$as_save_IFS
2510 STRIP=$ac_cv_prog_STRIP
2511 if test -n "$STRIP"; then
2512 { echo "$as_me:$LINENO: result: $STRIP" >&5
2513 echo "${ECHO_T}$STRIP" >&6; }
2514 else
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2521 if test -z "$ac_cv_prog_STRIP"; then
2522 ac_ct_STRIP=$STRIP
2523 # Extract the first word of "strip", so it can be a program name with args.
2524 set dummy strip; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530 if test -n "$ac_ct_STRIP"; then
2531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2540 ac_cv_prog_ac_ct_STRIP="strip"
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2544 done
2545 done
2546 IFS=$as_save_IFS
2550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2551 if test -n "$ac_ct_STRIP"; then
2552 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2553 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2554 else
2555 { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2559 if test "x$ac_ct_STRIP" = x; then
2560 STRIP=":"
2561 else
2562 case $cross_compiling:$ac_tool_warned in
2563 yes:)
2564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2565 whose name does not start with the host triplet. If you think this
2566 configuration is useful to you, please write to autoconf@gnu.org." >&5
2567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2568 whose name does not start with the host triplet. If you think this
2569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2570 ac_tool_warned=yes ;;
2571 esac
2572 STRIP=$ac_ct_STRIP
2574 else
2575 STRIP="$ac_cv_prog_STRIP"
2579 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2581 # We need awk for the "check" target. The system "awk" is bad on
2582 # some platforms.
2583 # Always define AMTAR for backward compatibility.
2585 AMTAR=${AMTAR-"${am_missing_run}tar"}
2587 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2593 ac_config_headers="$ac_config_headers config.h"
2596 ACLOCAL_AMFLAGS="-I m4"
2600 V_LIB_CURRENT=4
2601 V_LIB_REVISION=3
2602 V_LIB_AGE=4
2604 VF_LIB_CURRENT=6
2605 VF_LIB_REVISION=2
2606 VF_LIB_AGE=3
2608 VE_LIB_CURRENT=2
2609 VE_LIB_REVISION=6
2610 VE_LIB_AGE=0
2623 cflags_save="$CFLAGS"
2624 ac_ext=c
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634 if test "${ac_cv_prog_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2651 done
2652 done
2653 IFS=$as_save_IFS
2657 CC=$ac_cv_prog_CC
2658 if test -n "$CC"; then
2659 { echo "$as_me:$LINENO: result: $CC" >&5
2660 echo "${ECHO_T}$CC" >&6; }
2661 else
2662 { echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6; }
2668 if test -z "$ac_cv_prog_CC"; then
2669 ac_ct_CC=$CC
2670 # Extract the first word of "gcc", so it can be a program name with args.
2671 set dummy gcc; ac_word=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_ac_ct_CC="gcc"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2693 IFS=$as_save_IFS
2697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700 echo "${ECHO_T}$ac_ct_CC" >&6; }
2701 else
2702 { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2706 if test "x$ac_ct_CC" = x; then
2707 CC=""
2708 else
2709 case $cross_compiling:$ac_tool_warned in
2710 yes:)
2711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet. If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&5
2714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2715 whose name does not start with the host triplet. If you think this
2716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2717 ac_tool_warned=yes ;;
2718 esac
2719 CC=$ac_ct_CC
2721 else
2722 CC="$ac_cv_prog_CC"
2725 if test -z "$CC"; then
2726 if test -n "$ac_tool_prefix"; then
2727 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2728 set dummy ${ac_tool_prefix}cc; ac_word=$2
2729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2731 if test "${ac_cv_prog_CC+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734 if test -n "$CC"; then
2735 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 ac_cv_prog_CC="${ac_tool_prefix}cc"
2745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2748 done
2749 done
2750 IFS=$as_save_IFS
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756 { echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6; }
2758 else
2759 { echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6; }
2766 if test -z "$CC"; then
2767 # Extract the first word of "cc", so it can be a program name with args.
2768 set dummy cc; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CC+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 else
2777 ac_prog_rejected=no
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2786 ac_prog_rejected=yes
2787 continue
2789 ac_cv_prog_CC="cc"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2793 done
2794 done
2795 IFS=$as_save_IFS
2797 if test $ac_prog_rejected = yes; then
2798 # We found a bogon in the path, so make sure we never use it.
2799 set dummy $ac_cv_prog_CC
2800 shift
2801 if test $# != 0; then
2802 # We chose a different compiler from the bogus one.
2803 # However, it has the same basename, so the bogon will be chosen
2804 # first if we set CC to just the basename; use the full file name.
2805 shift
2806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813 { echo "$as_me:$LINENO: result: $CC" >&5
2814 echo "${ECHO_T}$CC" >&6; }
2815 else
2816 { echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6; }
2822 if test -z "$CC"; then
2823 if test -n "$ac_tool_prefix"; then
2824 for ac_prog in cl.exe
2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
2847 done
2848 done
2849 IFS=$as_save_IFS
2853 CC=$ac_cv_prog_CC
2854 if test -n "$CC"; then
2855 { echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6; }
2857 else
2858 { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2863 test -n "$CC" && break
2864 done
2866 if test -z "$CC"; then
2867 ac_ct_CC=$CC
2868 for ac_prog in cl.exe
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871 set dummy $ac_prog; ac_word=$2
2872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 if test -n "$ac_ct_CC"; then
2878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_ac_ct_CC="$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2891 done
2892 done
2893 IFS=$as_save_IFS
2897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898 if test -n "$ac_ct_CC"; then
2899 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2900 echo "${ECHO_T}$ac_ct_CC" >&6; }
2901 else
2902 { echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6; }
2907 test -n "$ac_ct_CC" && break
2908 done
2910 if test "x$ac_ct_CC" = x; then
2911 CC=""
2912 else
2913 case $cross_compiling:$ac_tool_warned in
2914 yes:)
2915 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2916 whose name does not start with the host triplet. If you think this
2917 configuration is useful to you, please write to autoconf@gnu.org." >&5
2918 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2919 whose name does not start with the host triplet. If you think this
2920 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2921 ac_tool_warned=yes ;;
2922 esac
2923 CC=$ac_ct_CC
2930 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: no acceptable C compiler found in \$PATH
2933 See \`config.log' for more details." >&2;}
2934 { (exit 1); exit 1; }; }
2936 # Provide some information about the compiler.
2937 echo "$as_me:$LINENO: checking for C compiler version" >&5
2938 ac_compiler=`set X $ac_compile; echo $2`
2939 { (ac_try="$ac_compiler --version >&5"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compiler --version >&5") 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }
2949 { (ac_try="$ac_compiler -v >&5"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compiler -v >&5") 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2959 { (ac_try="$ac_compiler -V >&5"
2960 case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compiler -V >&5") 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }
2970 cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2978 main ()
2982 return 0;
2984 _ACEOF
2985 ac_clean_files_save=$ac_clean_files
2986 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2987 # Try to create an executable without -o first, disregard a.out.
2988 # It will help us diagnose broken compilers, and finding out an intuition
2989 # of exeext.
2990 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2991 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2992 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2994 # List of possible output files, starting from the most likely.
2995 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2996 # only as a last resort. b.out is created by i960 compilers.
2997 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2999 # The IRIX 6 linker writes into existing files which may not be
3000 # executable, retaining their permissions. Remove them first so a
3001 # subsequent execution test works.
3002 ac_rmfiles=
3003 for ac_file in $ac_files
3005 case $ac_file in
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3007 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3008 esac
3009 done
3010 rm -f $ac_rmfiles
3012 if { (ac_try="$ac_link_default"
3013 case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_link_default") 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; then
3022 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3023 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3024 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3025 # so that the user can short-circuit this test for compilers unknown to
3026 # Autoconf.
3027 for ac_file in $ac_files ''
3029 test -f "$ac_file" || continue
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3033 [ab].out )
3034 # We found the default executable, but exeext='' is most
3035 # certainly right.
3036 break;;
3037 *.* )
3038 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3039 then :; else
3040 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 # We set ac_cv_exeext here because the later test for it is not
3043 # safe: cross compilers may not add the suffix if given an `-o'
3044 # argument, so we may need to know it at that point already.
3045 # Even if this section looks crufty: it has the advantage of
3046 # actually working.
3047 break;;
3049 break;;
3050 esac
3051 done
3052 test "$ac_cv_exeext" = no && ac_cv_exeext=
3054 else
3055 ac_file=''
3058 { echo "$as_me:$LINENO: result: $ac_file" >&5
3059 echo "${ECHO_T}$ac_file" >&6; }
3060 if test -z "$ac_file"; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3065 See \`config.log' for more details." >&5
3066 echo "$as_me: error: C compiler cannot create executables
3067 See \`config.log' for more details." >&2;}
3068 { (exit 77); exit 77; }; }
3071 ac_exeext=$ac_cv_exeext
3073 # Check that the compiler produces executables we can run. If not, either
3074 # the compiler is broken, or we cross compile.
3075 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3076 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3077 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3078 # If not cross compiling, check that we can run a simple program.
3079 if test "$cross_compiling" != yes; then
3080 if { ac_try='./$ac_file'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 cross_compiling=no
3091 else
3092 if test "$cross_compiling" = maybe; then
3093 cross_compiling=yes
3094 else
3095 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3096 If you meant to cross compile, use \`--host'.
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot run C compiled programs.
3099 If you meant to cross compile, use \`--host'.
3100 See \`config.log' for more details." >&2;}
3101 { (exit 1); exit 1; }; }
3105 { echo "$as_me:$LINENO: result: yes" >&5
3106 echo "${ECHO_T}yes" >&6; }
3108 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3109 ac_clean_files=$ac_clean_files_save
3110 # Check that the compiler produces executables we can run. If not, either
3111 # the compiler is broken, or we cross compile.
3112 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3113 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3114 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3115 echo "${ECHO_T}$cross_compiling" >&6; }
3117 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3118 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3119 if { (ac_try="$ac_link"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_link") 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; then
3129 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3130 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3131 # work properly (i.e., refer to `conftest.exe'), while it won't with
3132 # `rm'.
3133 for ac_file in conftest.exe conftest conftest.*; do
3134 test -f "$ac_file" || continue
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3137 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 break;;
3139 * ) break;;
3140 esac
3141 done
3142 else
3143 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3146 See \`config.log' for more details." >&2;}
3147 { (exit 1); exit 1; }; }
3150 rm -f conftest$ac_cv_exeext
3151 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3152 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3154 rm -f conftest.$ac_ext
3155 EXEEXT=$ac_cv_exeext
3156 ac_exeext=$EXEEXT
3157 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3158 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3159 if test "${ac_cv_objext+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3170 main ()
3174 return 0;
3176 _ACEOF
3177 rm -f conftest.o conftest.obj
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; then
3188 for ac_file in conftest.o conftest.obj conftest.*; do
3189 test -f "$ac_file" || continue;
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3192 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3193 break;;
3194 esac
3195 done
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3201 See \`config.log' for more details." >&5
3202 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3203 See \`config.log' for more details." >&2;}
3204 { (exit 1); exit 1; }; }
3207 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3209 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3210 echo "${ECHO_T}$ac_cv_objext" >&6; }
3211 OBJEXT=$ac_cv_objext
3212 ac_objext=$OBJEXT
3213 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3214 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3215 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3226 main ()
3228 #ifndef __GNUC__
3229 choke me
3230 #endif
3233 return 0;
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3253 ac_compiler_gnu=yes
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 ac_compiler_gnu=no
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3265 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3266 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3267 GCC=`test $ac_compiler_gnu = yes && echo yes`
3268 ac_test_CFLAGS=${CFLAGS+set}
3269 ac_save_CFLAGS=$CFLAGS
3270 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3271 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3272 if test "${ac_cv_prog_cc_g+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 ac_save_c_werror_flag=$ac_c_werror_flag
3276 ac_c_werror_flag=yes
3277 ac_cv_prog_cc_g=no
3278 CFLAGS="-g"
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3287 main ()
3291 return 0;
3293 _ACEOF
3294 rm -f conftest.$ac_objext
3295 if { (ac_try="$ac_compile"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compile") 2>conftest.er1
3302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } && {
3308 test -z "$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3310 } && test -s conftest.$ac_objext; then
3311 ac_cv_prog_cc_g=yes
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 CFLAGS=""
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3325 main ()
3329 return 0;
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (ac_try="$ac_compile"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_compile") 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } && {
3346 test -z "$ac_c_werror_flag" ||
3347 test ! -s conftest.err
3348 } && test -s conftest.$ac_objext; then
3350 else
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 ac_c_werror_flag=$ac_save_c_werror_flag
3355 CFLAGS="-g"
3356 cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h. */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3364 main ()
3368 return 0;
3370 _ACEOF
3371 rm -f conftest.$ac_objext
3372 if { (ac_try="$ac_compile"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_compile") 2>conftest.er1
3379 ac_status=$?
3380 grep -v '^ *+' conftest.er1 >conftest.err
3381 rm -f conftest.er1
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } && {
3385 test -z "$ac_c_werror_flag" ||
3386 test ! -s conftest.err
3387 } && test -s conftest.$ac_objext; then
3388 ac_cv_prog_cc_g=yes
3389 else
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 ac_c_werror_flag=$ac_save_c_werror_flag
3405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3406 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3407 if test "$ac_test_CFLAGS" = set; then
3408 CFLAGS=$ac_save_CFLAGS
3409 elif test $ac_cv_prog_cc_g = yes; then
3410 if test "$GCC" = yes; then
3411 CFLAGS="-g -O2"
3412 else
3413 CFLAGS="-g"
3415 else
3416 if test "$GCC" = yes; then
3417 CFLAGS="-O2"
3418 else
3419 CFLAGS=
3422 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3423 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_cc_c89+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 ac_cv_prog_cc_c89=no
3428 ac_save_CC=$CC
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #include <stdarg.h>
3436 #include <stdio.h>
3437 #include <sys/types.h>
3438 #include <sys/stat.h>
3439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3440 struct buf { int x; };
3441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3442 static char *e (p, i)
3443 char **p;
3444 int i;
3446 return p[i];
3448 static char *f (char * (*g) (char **, int), char **p, ...)
3450 char *s;
3451 va_list v;
3452 va_start (v,p);
3453 s = g (p, va_arg (v,int));
3454 va_end (v);
3455 return s;
3458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3459 function prototypes and stuff, but not '\xHH' hex character constants.
3460 These don't provoke an error unfortunately, instead are silently treated
3461 as 'x'. The following induces an error, until -std is added to get
3462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3463 array size at least. It's necessary to write '\x00'==0 to get something
3464 that's true only with -std. */
3465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3467 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3468 inside strings and character constants. */
3469 #define FOO(x) 'x'
3470 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3472 int test (int i, double x);
3473 struct s1 {int (*f) (int a);};
3474 struct s2 {int (*f) (double a);};
3475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3476 int argc;
3477 char **argv;
3479 main ()
3481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3483 return 0;
3485 _ACEOF
3486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3489 CC="$ac_save_CC $ac_arg"
3490 rm -f conftest.$ac_objext
3491 if { (ac_try="$ac_compile"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_compile") 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } && {
3504 test -z "$ac_c_werror_flag" ||
3505 test ! -s conftest.err
3506 } && test -s conftest.$ac_objext; then
3507 ac_cv_prog_cc_c89=$ac_arg
3508 else
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3515 rm -f core conftest.err conftest.$ac_objext
3516 test "x$ac_cv_prog_cc_c89" != "xno" && break
3517 done
3518 rm -f conftest.$ac_ext
3519 CC=$ac_save_CC
3522 # AC_CACHE_VAL
3523 case "x$ac_cv_prog_cc_c89" in
3525 { echo "$as_me:$LINENO: result: none needed" >&5
3526 echo "${ECHO_T}none needed" >&6; } ;;
3527 xno)
3528 { echo "$as_me:$LINENO: result: unsupported" >&5
3529 echo "${ECHO_T}unsupported" >&6; } ;;
3531 CC="$CC $ac_cv_prog_cc_c89"
3532 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3533 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3534 esac
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 DEPDIR="${am__leading_dot}deps"
3544 ac_config_commands="$ac_config_commands depfiles"
3547 am_make=${MAKE-make}
3548 cat > confinc << 'END'
3549 am__doit:
3550 @echo done
3551 .PHONY: am__doit
3553 # If we don't find an include directive, just comment out the code.
3554 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3555 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3556 am__include="#"
3557 am__quote=
3558 _am_result=none
3559 # First try GNU make style include.
3560 echo "include confinc" > confmf
3561 # We grep out `Entering directory' and `Leaving directory'
3562 # messages which can occur if `w' ends up in MAKEFLAGS.
3563 # In particular we don't look at `^make:' because GNU make might
3564 # be invoked under some other name (usually "gmake"), in which
3565 # case it prints its new name instead of `make'.
3566 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3567 am__include=include
3568 am__quote=
3569 _am_result=GNU
3571 # Now try BSD make style include.
3572 if test "$am__include" = "#"; then
3573 echo '.include "confinc"' > confmf
3574 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3575 am__include=.include
3576 am__quote="\""
3577 _am_result=BSD
3582 { echo "$as_me:$LINENO: result: $_am_result" >&5
3583 echo "${ECHO_T}$_am_result" >&6; }
3584 rm -f confinc confmf
3586 # Check whether --enable-dependency-tracking was given.
3587 if test "${enable_dependency_tracking+set}" = set; then
3588 enableval=$enable_dependency_tracking;
3591 if test "x$enable_dependency_tracking" != xno; then
3592 am_depcomp="$ac_aux_dir/depcomp"
3593 AMDEPBACKSLASH='\'
3595 if test "x$enable_dependency_tracking" != xno; then
3596 AMDEP_TRUE=
3597 AMDEP_FALSE='#'
3598 else
3599 AMDEP_TRUE='#'
3600 AMDEP_FALSE=
3605 depcc="$CC" am_compiler_list=
3607 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3608 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3609 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3613 # We make a subdir and do the tests there. Otherwise we can end up
3614 # making bogus files that we don't know about and never remove. For
3615 # instance it was reported that on HP-UX the gcc test will end up
3616 # making a dummy file named `D' -- because `-MD' means `put the output
3617 # in D'.
3618 mkdir conftest.dir
3619 # Copy depcomp to subdir because otherwise we won't find it if we're
3620 # using a relative directory.
3621 cp "$am_depcomp" conftest.dir
3622 cd conftest.dir
3623 # We will build objects and dependencies in a subdirectory because
3624 # it helps to detect inapplicable dependency modes. For instance
3625 # both Tru64's cc and ICC support -MD to output dependencies as a
3626 # side effect of compilation, but ICC will put the dependencies in
3627 # the current directory while Tru64 will put them in the object
3628 # directory.
3629 mkdir sub
3631 am_cv_CC_dependencies_compiler_type=none
3632 if test "$am_compiler_list" = ""; then
3633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3635 for depmode in $am_compiler_list; do
3636 # Setup a source with many dependencies, because some compilers
3637 # like to wrap large dependency lists on column 80 (with \), and
3638 # we should not choose a depcomp mode which is confused by this.
3640 # We need to recreate these files for each test, as the compiler may
3641 # overwrite some of them when testing with obscure command lines.
3642 # This happens at least with the AIX C compiler.
3643 : > sub/conftest.c
3644 for i in 1 2 3 4 5 6; do
3645 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3646 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3647 # Solaris 8's {/usr,}/bin/sh.
3648 touch sub/conftst$i.h
3649 done
3650 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3652 case $depmode in
3653 nosideeffect)
3654 # after this tag, mechanisms are not by side-effect, so they'll
3655 # only be used when explicitly requested
3656 if test "x$enable_dependency_tracking" = xyes; then
3657 continue
3658 else
3659 break
3662 none) break ;;
3663 esac
3664 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3665 # mode. It turns out that the SunPro C++ compiler does not properly
3666 # handle `-M -o', and we need to detect this.
3667 if depmode=$depmode \
3668 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3670 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3671 >/dev/null 2>conftest.err &&
3672 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3674 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3675 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3676 # icc doesn't choke on unknown options, it will just issue warnings
3677 # or remarks (even with -Werror). So we grep stderr for any message
3678 # that says an option was ignored or not supported.
3679 # When given -MP, icc 7.0 and 7.1 complain thusly:
3680 # icc: Command line warning: ignoring option '-M'; no argument required
3681 # The diagnosis changed in icc 8.0:
3682 # icc: Command line remark: option '-MP' not supported
3683 if (grep 'ignoring option' conftest.err ||
3684 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3685 am_cv_CC_dependencies_compiler_type=$depmode
3686 break
3689 done
3691 cd ..
3692 rm -rf conftest.dir
3693 else
3694 am_cv_CC_dependencies_compiler_type=none
3698 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3699 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3700 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3703 test "x$enable_dependency_tracking" != xno \
3704 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3705 am__fastdepCC_TRUE=
3706 am__fastdepCC_FALSE='#'
3707 else
3708 am__fastdepCC_TRUE='#'
3709 am__fastdepCC_FALSE=
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3719 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3720 # On Suns, sometimes $CPP names a directory.
3721 if test -n "$CPP" && test -d "$CPP"; then
3722 CPP=
3724 if test -z "$CPP"; then
3725 if test "${ac_cv_prog_CPP+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 # Double quotes because CPP needs to be expanded
3729 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3731 ac_preproc_ok=false
3732 for ac_c_preproc_warn_flag in '' yes
3734 # Use a header file that comes with gcc, so configuring glibc
3735 # with a fresh cross-compiler works.
3736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3737 # <limits.h> exists even on freestanding compilers.
3738 # On the NeXT, cc -E runs the code through the compiler's parser,
3739 # not just through cpp. "Syntax error" is here to catch this case.
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #ifdef __STDC__
3747 # include <limits.h>
3748 #else
3749 # include <assert.h>
3750 #endif
3751 Syntax error
3752 _ACEOF
3753 if { (ac_try="$ac_cpp conftest.$ac_ext"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } >/dev/null && {
3766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 }; then
3770 else
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 # Broken: fails on valid input.
3775 continue
3778 rm -f conftest.err conftest.$ac_ext
3780 # OK, works on sane cases. Now check whether nonexistent headers
3781 # can be detected and how.
3782 cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h. */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788 #include <ac_nonexistent.h>
3789 _ACEOF
3790 if { (ac_try="$ac_cpp conftest.$ac_ext"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3797 ac_status=$?
3798 grep -v '^ *+' conftest.er1 >conftest.err
3799 rm -f conftest.er1
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } >/dev/null && {
3803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 }; then
3806 # Broken: success on invalid input.
3807 continue
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 # Passes both tests.
3813 ac_preproc_ok=:
3814 break
3817 rm -f conftest.err conftest.$ac_ext
3819 done
3820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3821 rm -f conftest.err conftest.$ac_ext
3822 if $ac_preproc_ok; then
3823 break
3826 done
3827 ac_cv_prog_CPP=$CPP
3830 CPP=$ac_cv_prog_CPP
3831 else
3832 ac_cv_prog_CPP=$CPP
3834 { echo "$as_me:$LINENO: result: $CPP" >&5
3835 echo "${ECHO_T}$CPP" >&6; }
3836 ac_preproc_ok=false
3837 for ac_c_preproc_warn_flag in '' yes
3839 # Use a header file that comes with gcc, so configuring glibc
3840 # with a fresh cross-compiler works.
3841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3842 # <limits.h> exists even on freestanding compilers.
3843 # On the NeXT, cc -E runs the code through the compiler's parser,
3844 # not just through cpp. "Syntax error" is here to catch this case.
3845 cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 #ifdef __STDC__
3852 # include <limits.h>
3853 #else
3854 # include <assert.h>
3855 #endif
3856 Syntax error
3857 _ACEOF
3858 if { (ac_try="$ac_cpp conftest.$ac_ext"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } >/dev/null && {
3871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 }; then
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 # Broken: fails on valid input.
3880 continue
3883 rm -f conftest.err conftest.$ac_ext
3885 # OK, works on sane cases. Now check whether nonexistent headers
3886 # can be detected and how.
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 #include <ac_nonexistent.h>
3894 _ACEOF
3895 if { (ac_try="$ac_cpp conftest.$ac_ext"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } >/dev/null && {
3908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 }; then
3911 # Broken: success on invalid input.
3912 continue
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 # Passes both tests.
3918 ac_preproc_ok=:
3919 break
3922 rm -f conftest.err conftest.$ac_ext
3924 done
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.$ac_ext
3927 if $ac_preproc_ok; then
3929 else
3930 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3931 See \`config.log' for more details." >&5
3932 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3933 See \`config.log' for more details." >&2;}
3934 { (exit 1); exit 1; }; }
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 CFLAGS="$cflags_save"
3946 { echo "$as_me:$LINENO: checking for inline" >&5
3947 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3948 if test "${ac_cv_c_inline+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 ac_cv_c_inline=no
3952 for ac_kw in inline __inline__ __inline; do
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #ifndef __cplusplus
3960 typedef int foo_t;
3961 static $ac_kw foo_t static_foo () {return 0; }
3962 $ac_kw foo_t foo () {return 0; }
3963 #endif
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_compile") 2>conftest.er1
3974 ac_status=$?
3975 grep -v '^ *+' conftest.er1 >conftest.err
3976 rm -f conftest.er1
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } && {
3980 test -z "$ac_c_werror_flag" ||
3981 test ! -s conftest.err
3982 } && test -s conftest.$ac_objext; then
3983 ac_cv_c_inline=$ac_kw
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 test "$ac_cv_c_inline" != no && break
3993 done
3996 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3997 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4000 case $ac_cv_c_inline in
4001 inline | yes) ;;
4003 case $ac_cv_c_inline in
4004 no) ac_val=;;
4005 *) ac_val=$ac_cv_c_inline;;
4006 esac
4007 cat >>confdefs.h <<_ACEOF
4008 #ifndef __cplusplus
4009 #define inline $ac_val
4010 #endif
4011 _ACEOF
4013 esac
4018 # Check whether --enable-shared was given.
4019 if test "${enable_shared+set}" = set; then
4020 enableval=$enable_shared; p=${PACKAGE-default}
4021 case $enableval in
4022 yes) enable_shared=yes ;;
4023 no) enable_shared=no ;;
4025 enable_shared=no
4026 # Look at the argument we got. We use all the common list separators.
4027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4028 for pkg in $enableval; do
4029 IFS="$lt_save_ifs"
4030 if test "X$pkg" = "X$p"; then
4031 enable_shared=yes
4033 done
4034 IFS="$lt_save_ifs"
4036 esac
4037 else
4038 enable_shared=yes
4042 # Check whether --enable-static was given.
4043 if test "${enable_static+set}" = set; then
4044 enableval=$enable_static; p=${PACKAGE-default}
4045 case $enableval in
4046 yes) enable_static=yes ;;
4047 no) enable_static=no ;;
4049 enable_static=no
4050 # Look at the argument we got. We use all the common list separators.
4051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4052 for pkg in $enableval; do
4053 IFS="$lt_save_ifs"
4054 if test "X$pkg" = "X$p"; then
4055 enable_static=yes
4057 done
4058 IFS="$lt_save_ifs"
4060 esac
4061 else
4062 enable_static=yes
4066 # Check whether --enable-fast-install was given.
4067 if test "${enable_fast_install+set}" = set; then
4068 enableval=$enable_fast_install; p=${PACKAGE-default}
4069 case $enableval in
4070 yes) enable_fast_install=yes ;;
4071 no) enable_fast_install=no ;;
4073 enable_fast_install=no
4074 # Look at the argument we got. We use all the common list separators.
4075 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4076 for pkg in $enableval; do
4077 IFS="$lt_save_ifs"
4078 if test "X$pkg" = "X$p"; then
4079 enable_fast_install=yes
4081 done
4082 IFS="$lt_save_ifs"
4084 esac
4085 else
4086 enable_fast_install=yes
4090 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4091 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4092 if test "${lt_cv_path_SED+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 # Loop through the user's path and test for sed and gsed.
4096 # Then use that list of sed's as ones to test for truncation.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for lt_ac_prog in sed gsed; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4105 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4107 done
4108 done
4109 done
4110 IFS=$as_save_IFS
4111 lt_ac_max=0
4112 lt_ac_count=0
4113 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4114 # along with /bin/sed that truncates output.
4115 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4116 test ! -f $lt_ac_sed && continue
4117 cat /dev/null > conftest.in
4118 lt_ac_count=0
4119 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4120 # Check for GNU sed and select it if it is found.
4121 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4122 lt_cv_path_SED=$lt_ac_sed
4123 break
4125 while true; do
4126 cat conftest.in conftest.in >conftest.tmp
4127 mv conftest.tmp conftest.in
4128 cp conftest.in conftest.nl
4129 echo >>conftest.nl
4130 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4131 cmp -s conftest.out conftest.nl || break
4132 # 10000 chars as input seems more than enough
4133 test $lt_ac_count -gt 10 && break
4134 lt_ac_count=`expr $lt_ac_count + 1`
4135 if test $lt_ac_count -gt $lt_ac_max; then
4136 lt_ac_max=$lt_ac_count
4137 lt_cv_path_SED=$lt_ac_sed
4139 done
4140 done
4144 SED=$lt_cv_path_SED
4146 { echo "$as_me:$LINENO: result: $SED" >&5
4147 echo "${ECHO_T}$SED" >&6; }
4149 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4150 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4151 if test "${ac_cv_path_GREP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 # Extract the first word of "grep ggrep" to use in msg output
4155 if test -z "$GREP"; then
4156 set dummy grep ggrep; ac_prog_name=$2
4157 if test "${ac_cv_path_GREP+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 ac_path_GREP_found=false
4161 # Loop through the user's path and test for each of PROGNAME-LIST
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_prog in grep ggrep; do
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4171 # Check for GNU ac_path_GREP and select it if it is found.
4172 # Check for GNU $ac_path_GREP
4173 case `"$ac_path_GREP" --version 2>&1` in
4174 *GNU*)
4175 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4177 ac_count=0
4178 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4179 while :
4181 cat "conftest.in" "conftest.in" >"conftest.tmp"
4182 mv "conftest.tmp" "conftest.in"
4183 cp "conftest.in" "conftest.nl"
4184 echo 'GREP' >> "conftest.nl"
4185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187 ac_count=`expr $ac_count + 1`
4188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189 # Best one so far, save it but keep looking for a better one
4190 ac_cv_path_GREP="$ac_path_GREP"
4191 ac_path_GREP_max=$ac_count
4193 # 10*(2^10) chars as input seems more than enough
4194 test $ac_count -gt 10 && break
4195 done
4196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197 esac
4200 $ac_path_GREP_found && break 3
4201 done
4202 done
4204 done
4205 IFS=$as_save_IFS
4210 GREP="$ac_cv_path_GREP"
4211 if test -z "$GREP"; then
4212 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4213 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4214 { (exit 1); exit 1; }; }
4217 else
4218 ac_cv_path_GREP=$GREP
4223 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4224 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4225 GREP="$ac_cv_path_GREP"
4228 { echo "$as_me:$LINENO: checking for egrep" >&5
4229 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4230 if test "${ac_cv_path_EGREP+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4234 then ac_cv_path_EGREP="$GREP -E"
4235 else
4236 # Extract the first word of "egrep" to use in msg output
4237 if test -z "$EGREP"; then
4238 set dummy egrep; ac_prog_name=$2
4239 if test "${ac_cv_path_EGREP+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 ac_path_EGREP_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in egrep; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4252 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4253 # Check for GNU ac_path_EGREP and select it if it is found.
4254 # Check for GNU $ac_path_EGREP
4255 case `"$ac_path_EGREP" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4259 ac_count=0
4260 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4261 while :
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 echo 'EGREP' >> "conftest.nl"
4267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 ac_count=`expr $ac_count + 1`
4270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_EGREP="$ac_path_EGREP"
4273 ac_path_EGREP_max=$ac_count
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4282 $ac_path_EGREP_found && break 3
4283 done
4284 done
4286 done
4287 IFS=$as_save_IFS
4292 EGREP="$ac_cv_path_EGREP"
4293 if test -z "$EGREP"; then
4294 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4295 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4296 { (exit 1); exit 1; }; }
4299 else
4300 ac_cv_path_EGREP=$EGREP
4306 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4307 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4308 EGREP="$ac_cv_path_EGREP"
4312 # Check whether --with-gnu-ld was given.
4313 if test "${with_gnu_ld+set}" = set; then
4314 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4315 else
4316 with_gnu_ld=no
4319 ac_prog=ld
4320 if test "$GCC" = yes; then
4321 # Check if gcc -print-prog-name=ld gives a path.
4322 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4323 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4324 case $host in
4325 *-*-mingw*)
4326 # gcc leaves a trailing carriage return which upsets mingw
4327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4330 esac
4331 case $ac_prog in
4332 # Accept absolute paths.
4333 [\\/]* | ?:[\\/]*)
4334 re_direlt='/[^/][^/]*/\.\./'
4335 # Canonicalize the pathname of ld
4336 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4337 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4338 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4339 done
4340 test -z "$LD" && LD="$ac_prog"
4343 # If it fails, then pretend we aren't using GCC.
4344 ac_prog=ld
4347 # If it is relative, then search for the first ld in PATH.
4348 with_gnu_ld=unknown
4350 esac
4351 elif test "$with_gnu_ld" = yes; then
4352 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4353 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4354 else
4355 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4356 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4358 if test "${lt_cv_path_LD+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 if test -z "$LD"; then
4362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4363 for ac_dir in $PATH; do
4364 IFS="$lt_save_ifs"
4365 test -z "$ac_dir" && ac_dir=.
4366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4367 lt_cv_path_LD="$ac_dir/$ac_prog"
4368 # Check to see if the program is GNU ld. I'd rather use --version,
4369 # but apparently some variants of GNU ld only accept -v.
4370 # Break only if it was the GNU/non-GNU ld that we prefer.
4371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4372 *GNU* | *'with BFD'*)
4373 test "$with_gnu_ld" != no && break
4376 test "$with_gnu_ld" != yes && break
4378 esac
4380 done
4381 IFS="$lt_save_ifs"
4382 else
4383 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4387 LD="$lt_cv_path_LD"
4388 if test -n "$LD"; then
4389 { echo "$as_me:$LINENO: result: $LD" >&5
4390 echo "${ECHO_T}$LD" >&6; }
4391 else
4392 { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4395 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4396 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4397 { (exit 1); exit 1; }; }
4398 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4399 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4400 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4404 case `$LD -v 2>&1 </dev/null` in
4405 *GNU* | *'with BFD'*)
4406 lt_cv_prog_gnu_ld=yes
4409 lt_cv_prog_gnu_ld=no
4411 esac
4413 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4414 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4415 with_gnu_ld=$lt_cv_prog_gnu_ld
4418 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4419 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4420 if test "${lt_cv_ld_reload_flag+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 lt_cv_ld_reload_flag='-r'
4425 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4426 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4427 reload_flag=$lt_cv_ld_reload_flag
4428 case $reload_flag in
4429 "" | " "*) ;;
4430 *) reload_flag=" $reload_flag" ;;
4431 esac
4432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4433 case $host_os in
4434 darwin*)
4435 if test "$GCC" = yes; then
4436 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4437 else
4438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4441 esac
4443 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4444 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4445 if test "${lt_cv_path_NM+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 if test -n "$NM"; then
4449 # Let the user override the test.
4450 lt_cv_path_NM="$NM"
4451 else
4452 lt_nm_to_check="${ac_tool_prefix}nm"
4453 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4454 lt_nm_to_check="$lt_nm_to_check nm"
4456 for lt_tmp_nm in $lt_nm_to_check; do
4457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4458 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4459 IFS="$lt_save_ifs"
4460 test -z "$ac_dir" && ac_dir=.
4461 tmp_nm="$ac_dir/$lt_tmp_nm"
4462 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4463 # Check to see if the nm accepts a BSD-compat flag.
4464 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4465 # nm: unknown option "B" ignored
4466 # Tru64's nm complains that /dev/null is an invalid object file
4467 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4468 */dev/null* | *'Invalid file or object type'*)
4469 lt_cv_path_NM="$tmp_nm -B"
4470 break
4473 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4474 */dev/null*)
4475 lt_cv_path_NM="$tmp_nm -p"
4476 break
4479 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4480 continue # so that we can try to find one that supports BSD flags
4482 esac
4484 esac
4486 done
4487 IFS="$lt_save_ifs"
4488 done
4489 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4492 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4493 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4494 NM="$lt_cv_path_NM"
4496 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4497 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4498 LN_S=$as_ln_s
4499 if test "$LN_S" = "ln -s"; then
4500 { echo "$as_me:$LINENO: result: yes" >&5
4501 echo "${ECHO_T}yes" >&6; }
4502 else
4503 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4504 echo "${ECHO_T}no, using $LN_S" >&6; }
4507 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4508 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4509 if test "${lt_cv_deplibs_check_method+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 lt_cv_file_magic_cmd='$MAGIC_CMD'
4513 lt_cv_file_magic_test_file=
4514 lt_cv_deplibs_check_method='unknown'
4515 # Need to set the preceding variable on all platforms that support
4516 # interlibrary dependencies.
4517 # 'none' -- dependencies not supported.
4518 # `unknown' -- same as none, but documents that we really don't know.
4519 # 'pass_all' -- all dependencies passed with no checks.
4520 # 'test_compile' -- check by making test program.
4521 # 'file_magic [[regex]]' -- check by looking for files in library path
4522 # which responds to the $file_magic_cmd with a given extended regex.
4523 # If you have `file' or equivalent on your system and you're not sure
4524 # whether `pass_all' will *always* work, you probably want this one.
4526 case $host_os in
4527 aix[4-9]*)
4528 lt_cv_deplibs_check_method=pass_all
4531 beos*)
4532 lt_cv_deplibs_check_method=pass_all
4535 bsdi[45]*)
4536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4537 lt_cv_file_magic_cmd='/usr/bin/file -L'
4538 lt_cv_file_magic_test_file=/shlib/libc.so
4541 cygwin*)
4542 # func_win32_libid is a shell function defined in ltmain.sh
4543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4544 lt_cv_file_magic_cmd='func_win32_libid'
4547 mingw* | pw32*)
4548 # Base MSYS/MinGW do not provide the 'file' command needed by
4549 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4550 # unless we find 'file', for example because we are cross-compiling.
4551 if ( file / ) >/dev/null 2>&1; then
4552 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4553 lt_cv_file_magic_cmd='func_win32_libid'
4554 else
4555 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4556 lt_cv_file_magic_cmd='$OBJDUMP -f'
4560 darwin* | rhapsody*)
4561 lt_cv_deplibs_check_method=pass_all
4564 freebsd* | dragonfly*)
4565 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4566 case $host_cpu in
4567 i*86 )
4568 # Not sure whether the presence of OpenBSD here was a mistake.
4569 # Let's accept both of them until this is cleared up.
4570 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4571 lt_cv_file_magic_cmd=/usr/bin/file
4572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4574 esac
4575 else
4576 lt_cv_deplibs_check_method=pass_all
4580 gnu*)
4581 lt_cv_deplibs_check_method=pass_all
4584 hpux10.20* | hpux11*)
4585 lt_cv_file_magic_cmd=/usr/bin/file
4586 case $host_cpu in
4587 ia64*)
4588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4589 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4591 hppa*64*)
4592 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]'
4593 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4597 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4599 esac
4602 interix[3-9]*)
4603 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4607 irix5* | irix6* | nonstopux*)
4608 case $LD in
4609 *-32|*"-32 ") libmagic=32-bit;;
4610 *-n32|*"-n32 ") libmagic=N32;;
4611 *-64|*"-64 ") libmagic=64-bit;;
4612 *) libmagic=never-match;;
4613 esac
4614 lt_cv_deplibs_check_method=pass_all
4617 # This must be Linux ELF.
4618 linux* | k*bsd*-gnu)
4619 lt_cv_deplibs_check_method=pass_all
4622 netbsd* | netbsdelf*-gnu)
4623 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4625 else
4626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4630 newos6*)
4631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4632 lt_cv_file_magic_cmd=/usr/bin/file
4633 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4636 nto-qnx*)
4637 lt_cv_deplibs_check_method=unknown
4640 openbsd*)
4641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4643 else
4644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4648 osf3* | osf4* | osf5*)
4649 lt_cv_deplibs_check_method=pass_all
4652 rdos*)
4653 lt_cv_deplibs_check_method=pass_all
4656 solaris*)
4657 lt_cv_deplibs_check_method=pass_all
4660 sysv4 | sysv4.3*)
4661 case $host_vendor in
4662 motorola)
4663 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]'
4664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4666 ncr)
4667 lt_cv_deplibs_check_method=pass_all
4669 sequent)
4670 lt_cv_file_magic_cmd='/bin/file'
4671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4673 sni)
4674 lt_cv_file_magic_cmd='/bin/file'
4675 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4676 lt_cv_file_magic_test_file=/lib/libc.so
4678 siemens)
4679 lt_cv_deplibs_check_method=pass_all
4682 lt_cv_deplibs_check_method=pass_all
4684 esac
4687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4688 lt_cv_deplibs_check_method=pass_all
4690 esac
4693 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4694 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4695 file_magic_cmd=$lt_cv_file_magic_cmd
4696 deplibs_check_method=$lt_cv_deplibs_check_method
4697 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4702 # If no C compiler was specified, use CC.
4703 LTCC=${LTCC-"$CC"}
4705 # If no C compiler flags were specified, use CFLAGS.
4706 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4708 # Allow CC to be a program name with arguments.
4709 compiler=$CC
4711 # Check whether --enable-libtool-lock was given.
4712 if test "${enable_libtool_lock+set}" = set; then
4713 enableval=$enable_libtool_lock;
4716 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4718 # Some flags need to be propagated to the compiler or linker for good
4719 # libtool support.
4720 case $host in
4721 ia64-*-hpux*)
4722 # Find out which ABI we are using.
4723 echo 'int i;' > conftest.$ac_ext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725 (eval $ac_compile) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; then
4729 case `/usr/bin/file conftest.$ac_objext` in
4730 *ELF-32*)
4731 HPUX_IA64_MODE="32"
4733 *ELF-64*)
4734 HPUX_IA64_MODE="64"
4736 esac
4738 rm -rf conftest*
4740 *-*-irix6*)
4741 # Find out which ABI we are using.
4742 echo '#line 4742 "configure"' > conftest.$ac_ext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744 (eval $ac_compile) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; then
4748 if test "$lt_cv_prog_gnu_ld" = yes; then
4749 case `/usr/bin/file conftest.$ac_objext` in
4750 *32-bit*)
4751 LD="${LD-ld} -melf32bsmip"
4753 *N32*)
4754 LD="${LD-ld} -melf32bmipn32"
4756 *64-bit*)
4757 LD="${LD-ld} -melf64bmip"
4759 esac
4760 else
4761 case `/usr/bin/file conftest.$ac_objext` in
4762 *32-bit*)
4763 LD="${LD-ld} -32"
4765 *N32*)
4766 LD="${LD-ld} -n32"
4768 *64-bit*)
4769 LD="${LD-ld} -64"
4771 esac
4774 rm -rf conftest*
4777 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4778 s390*-*linux*|sparc*-*linux*)
4779 # Find out which ABI we are using.
4780 echo 'int i;' > conftest.$ac_ext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; then
4786 case `/usr/bin/file conftest.o` in
4787 *32-bit*)
4788 case $host in
4789 x86_64-*kfreebsd*-gnu)
4790 LD="${LD-ld} -m elf_i386_fbsd"
4792 x86_64-*linux*)
4793 LD="${LD-ld} -m elf_i386"
4795 ppc64-*linux*|powerpc64-*linux*)
4796 LD="${LD-ld} -m elf32ppclinux"
4798 s390x-*linux*)
4799 LD="${LD-ld} -m elf_s390"
4801 sparc64-*linux*)
4802 LD="${LD-ld} -m elf32_sparc"
4804 esac
4806 *64-bit*)
4807 case $host in
4808 x86_64-*kfreebsd*-gnu)
4809 LD="${LD-ld} -m elf_x86_64_fbsd"
4811 x86_64-*linux*)
4812 LD="${LD-ld} -m elf_x86_64"
4814 ppc*-*linux*|powerpc*-*linux*)
4815 LD="${LD-ld} -m elf64ppc"
4817 s390*-*linux*)
4818 LD="${LD-ld} -m elf64_s390"
4820 sparc*-*linux*)
4821 LD="${LD-ld} -m elf64_sparc"
4823 esac
4825 esac
4827 rm -rf conftest*
4830 *-*-sco3.2v5*)
4831 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4832 SAVE_CFLAGS="$CFLAGS"
4833 CFLAGS="$CFLAGS -belf"
4834 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4835 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4836 if test "${lt_cv_cc_needs_belf+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 ac_ext=c
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4853 main ()
4857 return 0;
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (ac_try="$ac_link"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_link") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest$ac_exeext &&
4877 $as_test_x conftest$ac_exeext; then
4878 lt_cv_cc_needs_belf=yes
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 lt_cv_cc_needs_belf=no
4886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4887 conftest$ac_exeext conftest.$ac_ext
4888 ac_ext=c
4889 ac_cpp='$CPP $CPPFLAGS'
4890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4896 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4899 CFLAGS="$SAVE_CFLAGS"
4902 sparc*-*solaris*)
4903 # Find out which ABI we are using.
4904 echo 'int i;' > conftest.$ac_ext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906 (eval $ac_compile) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; then
4910 case `/usr/bin/file conftest.o` in
4911 *64-bit*)
4912 case $lt_cv_prog_gnu_ld in
4913 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4915 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4916 LD="${LD-ld} -64"
4919 esac
4921 esac
4923 rm -rf conftest*
4926 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4927 if test -n "$ac_tool_prefix"; then
4928 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4929 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4932 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 if test -n "$DLLTOOL"; then
4936 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4949 done
4950 done
4951 IFS=$as_save_IFS
4955 DLLTOOL=$ac_cv_prog_DLLTOOL
4956 if test -n "$DLLTOOL"; then
4957 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4958 echo "${ECHO_T}$DLLTOOL" >&6; }
4959 else
4960 { echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6; }
4966 if test -z "$ac_cv_prog_DLLTOOL"; then
4967 ac_ct_DLLTOOL=$DLLTOOL
4968 # Extract the first word of "dlltool", so it can be a program name with args.
4969 set dummy dlltool; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 if test -n "$ac_ct_DLLTOOL"; then
4976 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4989 done
4990 done
4991 IFS=$as_save_IFS
4995 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4996 if test -n "$ac_ct_DLLTOOL"; then
4997 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4998 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4999 else
5000 { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5004 if test "x$ac_ct_DLLTOOL" = x; then
5005 DLLTOOL="false"
5006 else
5007 case $cross_compiling:$ac_tool_warned in
5008 yes:)
5009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5010 whose name does not start with the host triplet. If you think this
5011 configuration is useful to you, please write to autoconf@gnu.org." >&5
5012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5013 whose name does not start with the host triplet. If you think this
5014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5015 ac_tool_warned=yes ;;
5016 esac
5017 DLLTOOL=$ac_ct_DLLTOOL
5019 else
5020 DLLTOOL="$ac_cv_prog_DLLTOOL"
5023 if test -n "$ac_tool_prefix"; then
5024 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5025 set dummy ${ac_tool_prefix}as; ac_word=$2
5026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028 if test "${ac_cv_prog_AS+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 if test -n "$AS"; then
5032 ac_cv_prog_AS="$AS" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_AS="${ac_tool_prefix}as"
5042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5045 done
5046 done
5047 IFS=$as_save_IFS
5051 AS=$ac_cv_prog_AS
5052 if test -n "$AS"; then
5053 { echo "$as_me:$LINENO: result: $AS" >&5
5054 echo "${ECHO_T}$AS" >&6; }
5055 else
5056 { echo "$as_me:$LINENO: result: no" >&5
5057 echo "${ECHO_T}no" >&6; }
5062 if test -z "$ac_cv_prog_AS"; then
5063 ac_ct_AS=$AS
5064 # Extract the first word of "as", so it can be a program name with args.
5065 set dummy as; ac_word=$2
5066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 if test -n "$ac_ct_AS"; then
5072 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_ac_ct_AS="as"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5085 done
5086 done
5087 IFS=$as_save_IFS
5091 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5092 if test -n "$ac_ct_AS"; then
5093 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5094 echo "${ECHO_T}$ac_ct_AS" >&6; }
5095 else
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5100 if test "x$ac_ct_AS" = x; then
5101 AS="false"
5102 else
5103 case $cross_compiling:$ac_tool_warned in
5104 yes:)
5105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5106 whose name does not start with the host triplet. If you think this
5107 configuration is useful to you, please write to autoconf@gnu.org." >&5
5108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet. If you think this
5110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5111 ac_tool_warned=yes ;;
5112 esac
5113 AS=$ac_ct_AS
5115 else
5116 AS="$ac_cv_prog_AS"
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5124 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 if test -n "$OBJDUMP"; then
5128 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5143 IFS=$as_save_IFS
5147 OBJDUMP=$ac_cv_prog_OBJDUMP
5148 if test -n "$OBJDUMP"; then
5149 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5150 echo "${ECHO_T}$OBJDUMP" >&6; }
5151 else
5152 { echo "$as_me:$LINENO: result: no" >&5
5153 echo "${ECHO_T}no" >&6; }
5158 if test -z "$ac_cv_prog_OBJDUMP"; then
5159 ac_ct_OBJDUMP=$OBJDUMP
5160 # Extract the first word of "objdump", so it can be a program name with args.
5161 set dummy objdump; ac_word=$2
5162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5164 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167 if test -n "$ac_ct_OBJDUMP"; then
5168 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5181 done
5182 done
5183 IFS=$as_save_IFS
5187 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5188 if test -n "$ac_ct_OBJDUMP"; then
5189 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5190 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5191 else
5192 { echo "$as_me:$LINENO: result: no" >&5
5193 echo "${ECHO_T}no" >&6; }
5196 if test "x$ac_ct_OBJDUMP" = x; then
5197 OBJDUMP="false"
5198 else
5199 case $cross_compiling:$ac_tool_warned in
5200 yes:)
5201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5202 whose name does not start with the host triplet. If you think this
5203 configuration is useful to you, please write to autoconf@gnu.org." >&5
5204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5205 whose name does not start with the host triplet. If you think this
5206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5207 ac_tool_warned=yes ;;
5208 esac
5209 OBJDUMP=$ac_ct_OBJDUMP
5211 else
5212 OBJDUMP="$ac_cv_prog_OBJDUMP"
5217 esac
5219 need_locks="$enable_libtool_lock"
5223 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5224 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5225 if test "${ac_cv_header_stdc+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h. */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 #include <stdlib.h>
5235 #include <stdarg.h>
5236 #include <string.h>
5237 #include <float.h>
5240 main ()
5244 return 0;
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5249 case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252 esac
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_compile") 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest.$ac_objext; then
5264 ac_cv_header_stdc=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 ac_cv_header_stdc=no
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 if test $ac_cv_header_stdc = yes; then
5275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h. */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 #include <string.h>
5284 _ACEOF
5285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5286 $EGREP "memchr" >/dev/null 2>&1; then
5288 else
5289 ac_cv_header_stdc=no
5291 rm -f conftest*
5295 if test $ac_cv_header_stdc = yes; then
5296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5297 cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h. */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 #include <stdlib.h>
5305 _ACEOF
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307 $EGREP "free" >/dev/null 2>&1; then
5309 else
5310 ac_cv_header_stdc=no
5312 rm -f conftest*
5316 if test $ac_cv_header_stdc = yes; then
5317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318 if test "$cross_compiling" = yes; then
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <ctype.h>
5328 #include <stdlib.h>
5329 #if ((' ' & 0x0FF) == 0x020)
5330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5332 #else
5333 # define ISLOWER(c) \
5334 (('a' <= (c) && (c) <= 'i') \
5335 || ('j' <= (c) && (c) <= 'r') \
5336 || ('s' <= (c) && (c) <= 'z'))
5337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5338 #endif
5340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5342 main ()
5344 int i;
5345 for (i = 0; i < 256; i++)
5346 if (XOR (islower (i), ISLOWER (i))
5347 || toupper (i) != TOUPPER (i))
5348 return 2;
5349 return 0;
5351 _ACEOF
5352 rm -f conftest$ac_exeext
5353 if { (ac_try="$ac_link"
5354 case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5357 esac
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_link") 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5363 { (case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366 esac
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_try") 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5373 else
5374 echo "$as_me: program exited with status $ac_status" >&5
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 ( exit $ac_status )
5379 ac_cv_header_stdc=no
5381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5387 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5388 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5389 if test $ac_cv_header_stdc = yes; then
5391 cat >>confdefs.h <<\_ACEOF
5392 #define STDC_HEADERS 1
5393 _ACEOF
5397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5408 inttypes.h stdint.h unistd.h
5410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 $ac_includes_default
5424 #include <$ac_header>
5425 _ACEOF
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5428 case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5443 eval "$as_ac_Header=yes"
5444 else
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 eval "$as_ac_Header=no"
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 ac_res=`eval echo '${'$as_ac_Header'}'`
5454 { echo "$as_me:$LINENO: result: $ac_res" >&5
5455 echo "${ECHO_T}$ac_res" >&6; }
5456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5457 cat >>confdefs.h <<_ACEOF
5458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5459 _ACEOF
5463 done
5467 for ac_header in dlfcn.h
5469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 ac_res=`eval echo '${'$as_ac_Header'}'`
5477 { echo "$as_me:$LINENO: result: $ac_res" >&5
5478 echo "${ECHO_T}$ac_res" >&6; }
5479 else
5480 # Is the header compilable?
5481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5490 #include <$ac_header>
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_compile") 2>conftest.er1
5500 ac_status=$?
5501 grep -v '^ *+' conftest.er1 >conftest.err
5502 rm -f conftest.er1
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } && {
5506 test -z "$ac_c_werror_flag" ||
5507 test ! -s conftest.err
5508 } && test -s conftest.$ac_objext; then
5509 ac_header_compiler=yes
5510 else
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5514 ac_header_compiler=no
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5519 echo "${ECHO_T}$ac_header_compiler" >&6; }
5521 # Is the header present?
5522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5524 cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h. */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 #include <$ac_header>
5531 _ACEOF
5532 if { (ac_try="$ac_cpp conftest.$ac_ext"
5533 case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } >/dev/null && {
5545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 }; then
5548 ac_header_preproc=yes
5549 else
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5553 ac_header_preproc=no
5556 rm -f conftest.err conftest.$ac_ext
5557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5558 echo "${ECHO_T}$ac_header_preproc" >&6; }
5560 # So? What about this header?
5561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5562 yes:no: )
5563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5567 ac_header_preproc=yes
5569 no:yes:* )
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5582 ( cat <<\_ASBOX
5583 ## ---------------------------------- ##
5584 ## Report this to vorbis-dev@xiph.org ##
5585 ## ---------------------------------- ##
5586 _ASBOX
5587 ) | sed "s/^/$as_me: WARNING: /" >&2
5589 esac
5590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 eval "$as_ac_Header=\$ac_header_preproc"
5597 ac_res=`eval echo '${'$as_ac_Header'}'`
5598 { echo "$as_me:$LINENO: result: $ac_res" >&5
5599 echo "${ECHO_T}$ac_res" >&6; }
5602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5603 cat >>confdefs.h <<_ACEOF
5604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5605 _ACEOF
5609 done
5611 ac_ext=cpp
5612 ac_cpp='$CXXCPP $CPPFLAGS'
5613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5616 if test -z "$CXX"; then
5617 if test -n "$CCC"; then
5618 CXX=$CCC
5619 else
5620 if test -n "$ac_tool_prefix"; then
5621 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5627 if test "${ac_cv_prog_CXX+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 if test -n "$CXX"; then
5631 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5650 CXX=$ac_cv_prog_CXX
5651 if test -n "$CXX"; then
5652 { echo "$as_me:$LINENO: result: $CXX" >&5
5653 echo "${ECHO_T}$CXX" >&6; }
5654 else
5655 { echo "$as_me:$LINENO: result: no" >&5
5656 echo "${ECHO_T}no" >&6; }
5660 test -n "$CXX" && break
5661 done
5663 if test -z "$CXX"; then
5664 ac_ct_CXX=$CXX
5665 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5667 # Extract the first word of "$ac_prog", so it can be a program name with args.
5668 set dummy $ac_prog; ac_word=$2
5669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5671 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 if test -n "$ac_ct_CXX"; then
5675 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_ac_ct_CXX="$ac_prog"
5685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5688 done
5689 done
5690 IFS=$as_save_IFS
5694 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5695 if test -n "$ac_ct_CXX"; then
5696 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5697 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5698 else
5699 { echo "$as_me:$LINENO: result: no" >&5
5700 echo "${ECHO_T}no" >&6; }
5704 test -n "$ac_ct_CXX" && break
5705 done
5707 if test "x$ac_ct_CXX" = x; then
5708 CXX="g++"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5713 whose name does not start with the host triplet. If you think this
5714 configuration is useful to you, please write to autoconf@gnu.org." >&5
5715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5716 whose name does not start with the host triplet. If you think this
5717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5718 ac_tool_warned=yes ;;
5719 esac
5720 CXX=$ac_ct_CXX
5726 # Provide some information about the compiler.
5727 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5728 ac_compiler=`set X $ac_compile; echo $2`
5729 { (ac_try="$ac_compiler --version >&5"
5730 case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_compiler --version >&5") 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }
5739 { (ac_try="$ac_compiler -v >&5"
5740 case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_compiler -v >&5") 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }
5749 { (ac_try="$ac_compiler -V >&5"
5750 case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compiler -V >&5") 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }
5760 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5761 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5762 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h. */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5773 main ()
5775 #ifndef __GNUC__
5776 choke me
5777 #endif
5780 return 0;
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5785 case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_cxx_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest.$ac_objext; then
5800 ac_compiler_gnu=yes
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_compiler_gnu=no
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5812 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5813 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5814 GXX=`test $ac_compiler_gnu = yes && echo yes`
5815 ac_test_CXXFLAGS=${CXXFLAGS+set}
5816 ac_save_CXXFLAGS=$CXXFLAGS
5817 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5818 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5819 if test "${ac_cv_prog_cxx_g+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5823 ac_cxx_werror_flag=yes
5824 ac_cv_prog_cxx_g=no
5825 CXXFLAGS="-g"
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5834 main ()
5838 return 0;
5840 _ACEOF
5841 rm -f conftest.$ac_objext
5842 if { (ac_try="$ac_compile"
5843 case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_compile") 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } && {
5855 test -z "$ac_cxx_werror_flag" ||
5856 test ! -s conftest.err
5857 } && test -s conftest.$ac_objext; then
5858 ac_cv_prog_cxx_g=yes
5859 else
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 CXXFLAGS=""
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5872 main ()
5876 return 0;
5878 _ACEOF
5879 rm -f conftest.$ac_objext
5880 if { (ac_try="$ac_compile"
5881 case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_compile") 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_cxx_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest.$ac_objext; then
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5901 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5902 CXXFLAGS="-g"
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h. */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5911 main ()
5915 return 0;
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (ac_try="$ac_compile"
5920 case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923 esac
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_compile") 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && {
5932 test -z "$ac_cxx_werror_flag" ||
5933 test ! -s conftest.err
5934 } && test -s conftest.$ac_objext; then
5935 ac_cv_prog_cxx_g=yes
5936 else
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5952 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5953 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5954 if test "$ac_test_CXXFLAGS" = set; then
5955 CXXFLAGS=$ac_save_CXXFLAGS
5956 elif test $ac_cv_prog_cxx_g = yes; then
5957 if test "$GXX" = yes; then
5958 CXXFLAGS="-g -O2"
5959 else
5960 CXXFLAGS="-g"
5962 else
5963 if test "$GXX" = yes; then
5964 CXXFLAGS="-O2"
5965 else
5966 CXXFLAGS=
5969 ac_ext=cpp
5970 ac_cpp='$CXXCPP $CPPFLAGS'
5971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5975 depcc="$CXX" am_compiler_list=
5977 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5978 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5979 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5983 # We make a subdir and do the tests there. Otherwise we can end up
5984 # making bogus files that we don't know about and never remove. For
5985 # instance it was reported that on HP-UX the gcc test will end up
5986 # making a dummy file named `D' -- because `-MD' means `put the output
5987 # in D'.
5988 mkdir conftest.dir
5989 # Copy depcomp to subdir because otherwise we won't find it if we're
5990 # using a relative directory.
5991 cp "$am_depcomp" conftest.dir
5992 cd conftest.dir
5993 # We will build objects and dependencies in a subdirectory because
5994 # it helps to detect inapplicable dependency modes. For instance
5995 # both Tru64's cc and ICC support -MD to output dependencies as a
5996 # side effect of compilation, but ICC will put the dependencies in
5997 # the current directory while Tru64 will put them in the object
5998 # directory.
5999 mkdir sub
6001 am_cv_CXX_dependencies_compiler_type=none
6002 if test "$am_compiler_list" = ""; then
6003 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6005 for depmode in $am_compiler_list; do
6006 # Setup a source with many dependencies, because some compilers
6007 # like to wrap large dependency lists on column 80 (with \), and
6008 # we should not choose a depcomp mode which is confused by this.
6010 # We need to recreate these files for each test, as the compiler may
6011 # overwrite some of them when testing with obscure command lines.
6012 # This happens at least with the AIX C compiler.
6013 : > sub/conftest.c
6014 for i in 1 2 3 4 5 6; do
6015 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6016 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6017 # Solaris 8's {/usr,}/bin/sh.
6018 touch sub/conftst$i.h
6019 done
6020 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6022 case $depmode in
6023 nosideeffect)
6024 # after this tag, mechanisms are not by side-effect, so they'll
6025 # only be used when explicitly requested
6026 if test "x$enable_dependency_tracking" = xyes; then
6027 continue
6028 else
6029 break
6032 none) break ;;
6033 esac
6034 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6035 # mode. It turns out that the SunPro C++ compiler does not properly
6036 # handle `-M -o', and we need to detect this.
6037 if depmode=$depmode \
6038 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6040 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6041 >/dev/null 2>conftest.err &&
6042 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6043 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6044 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6046 # icc doesn't choke on unknown options, it will just issue warnings
6047 # or remarks (even with -Werror). So we grep stderr for any message
6048 # that says an option was ignored or not supported.
6049 # When given -MP, icc 7.0 and 7.1 complain thusly:
6050 # icc: Command line warning: ignoring option '-M'; no argument required
6051 # The diagnosis changed in icc 8.0:
6052 # icc: Command line remark: option '-MP' not supported
6053 if (grep 'ignoring option' conftest.err ||
6054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6055 am_cv_CXX_dependencies_compiler_type=$depmode
6056 break
6059 done
6061 cd ..
6062 rm -rf conftest.dir
6063 else
6064 am_cv_CXX_dependencies_compiler_type=none
6068 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6069 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6070 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6073 test "x$enable_dependency_tracking" != xno \
6074 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6075 am__fastdepCXX_TRUE=
6076 am__fastdepCXX_FALSE='#'
6077 else
6078 am__fastdepCXX_TRUE='#'
6079 am__fastdepCXX_FALSE=
6085 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6086 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6087 (test "X$CXX" != "Xg++"))) ; then
6088 ac_ext=cpp
6089 ac_cpp='$CXXCPP $CPPFLAGS'
6090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6093 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6094 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6095 if test -z "$CXXCPP"; then
6096 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099 # Double quotes because CXXCPP needs to be expanded
6100 for CXXCPP in "$CXX -E" "/lib/cpp"
6102 ac_preproc_ok=false
6103 for ac_cxx_preproc_warn_flag in '' yes
6105 # Use a header file that comes with gcc, so configuring glibc
6106 # with a fresh cross-compiler works.
6107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6108 # <limits.h> exists even on freestanding compilers.
6109 # On the NeXT, cc -E runs the code through the compiler's parser,
6110 # not just through cpp. "Syntax error" is here to catch this case.
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h. */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 #ifdef __STDC__
6118 # include <limits.h>
6119 #else
6120 # include <assert.h>
6121 #endif
6122 Syntax error
6123 _ACEOF
6124 if { (ac_try="$ac_cpp conftest.$ac_ext"
6125 case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128 esac
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6131 ac_status=$?
6132 grep -v '^ *+' conftest.er1 >conftest.err
6133 rm -f conftest.er1
6134 cat conftest.err >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } >/dev/null && {
6137 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6138 test ! -s conftest.err
6139 }; then
6141 else
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 # Broken: fails on valid input.
6146 continue
6149 rm -f conftest.err conftest.$ac_ext
6151 # OK, works on sane cases. Now check whether nonexistent headers
6152 # can be detected and how.
6153 cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h. */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 #include <ac_nonexistent.h>
6160 _ACEOF
6161 if { (ac_try="$ac_cpp conftest.$ac_ext"
6162 case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } >/dev/null && {
6174 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6175 test ! -s conftest.err
6176 }; then
6177 # Broken: success on invalid input.
6178 continue
6179 else
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 # Passes both tests.
6184 ac_preproc_ok=:
6185 break
6188 rm -f conftest.err conftest.$ac_ext
6190 done
6191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6192 rm -f conftest.err conftest.$ac_ext
6193 if $ac_preproc_ok; then
6194 break
6197 done
6198 ac_cv_prog_CXXCPP=$CXXCPP
6201 CXXCPP=$ac_cv_prog_CXXCPP
6202 else
6203 ac_cv_prog_CXXCPP=$CXXCPP
6205 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6206 echo "${ECHO_T}$CXXCPP" >&6; }
6207 ac_preproc_ok=false
6208 for ac_cxx_preproc_warn_flag in '' yes
6210 # Use a header file that comes with gcc, so configuring glibc
6211 # with a fresh cross-compiler works.
6212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6213 # <limits.h> exists even on freestanding compilers.
6214 # On the NeXT, cc -E runs the code through the compiler's parser,
6215 # not just through cpp. "Syntax error" is here to catch this case.
6216 cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h. */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 #ifdef __STDC__
6223 # include <limits.h>
6224 #else
6225 # include <assert.h>
6226 #endif
6227 Syntax error
6228 _ACEOF
6229 if { (ac_try="$ac_cpp conftest.$ac_ext"
6230 case "(($ac_try" in
6231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6233 esac
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6236 ac_status=$?
6237 grep -v '^ *+' conftest.er1 >conftest.err
6238 rm -f conftest.er1
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } >/dev/null && {
6242 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6243 test ! -s conftest.err
6244 }; then
6246 else
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 # Broken: fails on valid input.
6251 continue
6254 rm -f conftest.err conftest.$ac_ext
6256 # OK, works on sane cases. Now check whether nonexistent headers
6257 # can be detected and how.
6258 cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h. */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6264 #include <ac_nonexistent.h>
6265 _ACEOF
6266 if { (ac_try="$ac_cpp conftest.$ac_ext"
6267 case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } >/dev/null && {
6279 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6280 test ! -s conftest.err
6281 }; then
6282 # Broken: success on invalid input.
6283 continue
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 # Passes both tests.
6289 ac_preproc_ok=:
6290 break
6293 rm -f conftest.err conftest.$ac_ext
6295 done
6296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6297 rm -f conftest.err conftest.$ac_ext
6298 if $ac_preproc_ok; then
6300 else
6301 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6302 See \`config.log' for more details." >&5
6303 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6304 See \`config.log' for more details." >&2;}
6305 { (exit 1); exit 1; }; }
6308 ac_ext=cpp
6309 ac_cpp='$CXXCPP $CPPFLAGS'
6310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6317 ac_ext=f
6318 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6319 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6320 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6321 if test -n "$ac_tool_prefix"; then
6322 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6328 if test "${ac_cv_prog_F77+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331 if test -n "$F77"; then
6332 ac_cv_prog_F77="$F77" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6345 done
6346 done
6347 IFS=$as_save_IFS
6351 F77=$ac_cv_prog_F77
6352 if test -n "$F77"; then
6353 { echo "$as_me:$LINENO: result: $F77" >&5
6354 echo "${ECHO_T}$F77" >&6; }
6355 else
6356 { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6361 test -n "$F77" && break
6362 done
6364 if test -z "$F77"; then
6365 ac_ct_F77=$F77
6366 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6368 # Extract the first word of "$ac_prog", so it can be a program name with args.
6369 set dummy $ac_prog; ac_word=$2
6370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6372 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375 if test -n "$ac_ct_F77"; then
6376 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_ac_ct_F77="$ac_prog"
6386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6389 done
6390 done
6391 IFS=$as_save_IFS
6395 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6396 if test -n "$ac_ct_F77"; then
6397 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6398 echo "${ECHO_T}$ac_ct_F77" >&6; }
6399 else
6400 { echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6; }
6405 test -n "$ac_ct_F77" && break
6406 done
6408 if test "x$ac_ct_F77" = x; then
6409 F77=""
6410 else
6411 case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6414 whose name does not start with the host triplet. If you think this
6415 configuration is useful to you, please write to autoconf@gnu.org." >&5
6416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6417 whose name does not start with the host triplet. If you think this
6418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421 F77=$ac_ct_F77
6426 # Provide some information about the compiler.
6427 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6428 ac_compiler=`set X $ac_compile; echo $2`
6429 { (ac_try="$ac_compiler --version >&5"
6430 case "(($ac_try" in
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6433 esac
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435 (eval "$ac_compiler --version >&5") 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }
6439 { (ac_try="$ac_compiler -v >&5"
6440 case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_compiler -v >&5") 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }
6449 { (ac_try="$ac_compiler -V >&5"
6450 case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453 esac
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_compiler -V >&5") 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }
6459 rm -f a.out
6461 # If we don't use `.F' as extension, the preprocessor is not run on the
6462 # input file. (Note that this only needs to work for GNU compilers.)
6463 ac_save_ext=$ac_ext
6464 ac_ext=F
6465 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6466 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6467 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470 cat >conftest.$ac_ext <<_ACEOF
6471 program main
6472 #ifndef __GNUC__
6473 choke me
6474 #endif
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6480 case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_f77_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.$ac_objext; then
6495 ac_compiler_gnu=yes
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 ac_compiler_gnu=no
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6507 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6508 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6509 ac_ext=$ac_save_ext
6510 ac_test_FFLAGS=${FFLAGS+set}
6511 ac_save_FFLAGS=$FFLAGS
6512 FFLAGS=
6513 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6514 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_f77_g+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518 FFLAGS=-g
6519 cat >conftest.$ac_ext <<_ACEOF
6520 program main
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (ac_try="$ac_compile"
6526 case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529 esac
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_f77_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 ac_cv_prog_f77_g=yes
6542 else
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 ac_cv_prog_f77_g=no
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6553 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6554 if test "$ac_test_FFLAGS" = set; then
6555 FFLAGS=$ac_save_FFLAGS
6556 elif test $ac_cv_prog_f77_g = yes; then
6557 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6558 FFLAGS="-g -O2"
6559 else
6560 FFLAGS="-g"
6562 else
6563 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6564 FFLAGS="-O2"
6565 else
6566 FFLAGS=
6570 G77=`test $ac_compiler_gnu = yes && echo yes`
6571 ac_ext=c
6572 ac_cpp='$CPP $CPPFLAGS'
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6580 # find the maximum length of command line arguments
6581 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6582 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6583 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6587 teststring="ABCD"
6589 case $build_os in
6590 msdosdjgpp*)
6591 # On DJGPP, this test can blow up pretty badly due to problems in libc
6592 # (any single argument exceeding 2000 bytes causes a buffer overrun
6593 # during glob expansion). Even if it were fixed, the result of this
6594 # check would be larger than it should be.
6595 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6598 gnu*)
6599 # Under GNU Hurd, this test is not required because there is
6600 # no limit to the length of command line arguments.
6601 # Libtool will interpret -1 as no limit whatsoever
6602 lt_cv_sys_max_cmd_len=-1;
6605 cygwin* | mingw*)
6606 # On Win9x/ME, this test blows up -- it succeeds, but takes
6607 # about 5 minutes as the teststring grows exponentially.
6608 # Worse, since 9x/ME are not pre-emptively multitasking,
6609 # you end up with a "frozen" computer, even though with patience
6610 # the test eventually succeeds (with a max line length of 256k).
6611 # Instead, let's just punt: use the minimum linelength reported by
6612 # all of the supported platforms: 8192 (on NT/2K/XP).
6613 lt_cv_sys_max_cmd_len=8192;
6616 amigaos*)
6617 # On AmigaOS with pdksh, this test takes hours, literally.
6618 # So we just punt and use a minimum line length of 8192.
6619 lt_cv_sys_max_cmd_len=8192;
6622 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6623 # This has been around since 386BSD, at least. Likely further.
6624 if test -x /sbin/sysctl; then
6625 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6626 elif test -x /usr/sbin/sysctl; then
6627 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6628 else
6629 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6631 # And add a safety zone
6632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6636 interix*)
6637 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6638 lt_cv_sys_max_cmd_len=196608
6641 osf*)
6642 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6643 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6644 # nice to cause kernel panics so lets avoid the loop below.
6645 # First set a reasonable default.
6646 lt_cv_sys_max_cmd_len=16384
6648 if test -x /sbin/sysconfig; then
6649 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6650 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6651 esac
6654 sco3.2v5*)
6655 lt_cv_sys_max_cmd_len=102400
6657 sysv5* | sco5v6* | sysv4.2uw2*)
6658 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6659 if test -n "$kargmax"; then
6660 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6661 else
6662 lt_cv_sys_max_cmd_len=32768
6666 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6667 if test -n "$lt_cv_sys_max_cmd_len"; then
6668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6670 else
6671 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6672 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6673 = "XX$teststring") >/dev/null 2>&1 &&
6674 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6675 lt_cv_sys_max_cmd_len=$new_result &&
6676 test $i != 17 # 1/2 MB should be enough
6678 i=`expr $i + 1`
6679 teststring=$teststring$teststring
6680 done
6681 teststring=
6682 # Add a significant safety factor because C++ compilers can tack on massive
6683 # amounts of additional arguments before passing them to the linker.
6684 # It appears as though 1/2 is a usable value.
6685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6688 esac
6692 if test -n $lt_cv_sys_max_cmd_len ; then
6693 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6694 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6695 else
6696 { echo "$as_me:$LINENO: result: none" >&5
6697 echo "${ECHO_T}none" >&6; }
6704 # Check for command to grab the raw symbol name followed by C symbol from nm.
6705 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6706 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6707 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6711 # These are sane defaults that work on at least a few old systems.
6712 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6714 # Character class describing NM global symbol codes.
6715 symcode='[BCDEGRST]'
6717 # Regexp to match symbols that can be accessed directly from C.
6718 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6720 # Transform an extracted symbol line into a proper C declaration
6721 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6723 # Transform an extracted symbol line into symbol name and symbol address
6724 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'"
6726 # Define system-specific variables.
6727 case $host_os in
6728 aix*)
6729 symcode='[BCDT]'
6731 cygwin* | mingw* | pw32*)
6732 symcode='[ABCDGISTW]'
6734 hpux*) # Its linker distinguishes data from code symbols
6735 if test "$host_cpu" = ia64; then
6736 symcode='[ABCDEGRST]'
6738 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6739 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'"
6741 linux* | k*bsd*-gnu)
6742 if test "$host_cpu" = ia64; then
6743 symcode='[ABCDGIRSTW]'
6744 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6745 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'"
6748 irix* | nonstopux*)
6749 symcode='[BCDEGRST]'
6751 osf*)
6752 symcode='[BCDEGQRST]'
6754 solaris*)
6755 symcode='[BDRT]'
6757 sco3.2v5*)
6758 symcode='[DT]'
6760 sysv4.2uw2*)
6761 symcode='[DT]'
6763 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6764 symcode='[ABDT]'
6766 sysv4)
6767 symcode='[DFNSTU]'
6769 esac
6771 # Handle CRLF in mingw tool chain
6772 opt_cr=
6773 case $build_os in
6774 mingw*)
6775 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6777 esac
6779 # If we're using GNU nm, then use its standard symbol codes.
6780 case `$NM -V 2>&1` in
6781 *GNU* | *'with BFD'*)
6782 symcode='[ABCDGIRSTW]' ;;
6783 esac
6785 # Try without a prefix undercore, then with it.
6786 for ac_symprfx in "" "_"; do
6788 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6789 symxfrm="\\1 $ac_symprfx\\2 \\2"
6791 # Write the raw and C identifiers.
6792 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6794 # Check to see that the pipe works correctly.
6795 pipe_works=no
6797 rm -f conftest*
6798 cat > conftest.$ac_ext <<EOF
6799 #ifdef __cplusplus
6800 extern "C" {
6801 #endif
6802 char nm_test_var;
6803 void nm_test_func(){}
6804 #ifdef __cplusplus
6806 #endif
6807 int main(){nm_test_var='a';nm_test_func();return(0);}
6810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811 (eval $ac_compile) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; then
6815 # Now try to grab the symbols.
6816 nlist=conftest.nm
6817 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6818 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && test -s "$nlist"; then
6822 # Try sorting and uniquifying the output.
6823 if sort "$nlist" | uniq > "$nlist"T; then
6824 mv -f "$nlist"T "$nlist"
6825 else
6826 rm -f "$nlist"T
6829 # Make sure that we snagged all the symbols we need.
6830 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6831 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6832 cat <<EOF > conftest.$ac_ext
6833 #ifdef __cplusplus
6834 extern "C" {
6835 #endif
6838 # Now generate the symbol file.
6839 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6841 cat <<EOF >> conftest.$ac_ext
6842 #if defined (__STDC__) && __STDC__
6843 # define lt_ptr_t void *
6844 #else
6845 # define lt_ptr_t char *
6846 # define const
6847 #endif
6849 /* The mapping between symbol names and symbols. */
6850 const struct {
6851 const char *name;
6852 lt_ptr_t address;
6854 lt_preloaded_symbols[] =
6857 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6858 cat <<\EOF >> conftest.$ac_ext
6859 {0, (lt_ptr_t) 0}
6862 #ifdef __cplusplus
6864 #endif
6866 # Now try linking the two files.
6867 mv conftest.$ac_objext conftstm.$ac_objext
6868 lt_save_LIBS="$LIBS"
6869 lt_save_CFLAGS="$CFLAGS"
6870 LIBS="conftstm.$ac_objext"
6871 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6873 (eval $ac_link) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6877 pipe_works=yes
6879 LIBS="$lt_save_LIBS"
6880 CFLAGS="$lt_save_CFLAGS"
6881 else
6882 echo "cannot find nm_test_func in $nlist" >&5
6884 else
6885 echo "cannot find nm_test_var in $nlist" >&5
6887 else
6888 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6890 else
6891 echo "$progname: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6894 rm -rf conftest* conftst*
6896 # Do not use the global_symbol_pipe unless it works.
6897 if test "$pipe_works" = yes; then
6898 break
6899 else
6900 lt_cv_sys_global_symbol_pipe=
6902 done
6906 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6907 lt_cv_sys_global_symbol_to_cdecl=
6909 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6910 { echo "$as_me:$LINENO: result: failed" >&5
6911 echo "${ECHO_T}failed" >&6; }
6912 else
6913 { echo "$as_me:$LINENO: result: ok" >&5
6914 echo "${ECHO_T}ok" >&6; }
6917 { echo "$as_me:$LINENO: checking for objdir" >&5
6918 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6919 if test "${lt_cv_objdir+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922 rm -f .libs 2>/dev/null
6923 mkdir .libs 2>/dev/null
6924 if test -d .libs; then
6925 lt_cv_objdir=.libs
6926 else
6927 # MS-DOS does not allow filenames that begin with a dot.
6928 lt_cv_objdir=_libs
6930 rmdir .libs 2>/dev/null
6932 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6933 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6934 objdir=$lt_cv_objdir
6940 case $host_os in
6941 aix3*)
6942 # AIX sometimes has problems with the GCC collect2 program. For some
6943 # reason, if we set the COLLECT_NAMES environment variable, the problems
6944 # vanish in a puff of smoke.
6945 if test "X${COLLECT_NAMES+set}" != Xset; then
6946 COLLECT_NAMES=
6947 export COLLECT_NAMES
6950 esac
6952 # Sed substitution that helps us do robust quoting. It backslashifies
6953 # metacharacters that are still active within double-quoted strings.
6954 Xsed='sed -e 1s/^X//'
6955 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6957 # Same as above, but do not quote variable references.
6958 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6960 # Sed substitution to delay expansion of an escaped shell variable in a
6961 # double_quote_subst'ed string.
6962 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6964 # Sed substitution to avoid accidental globbing in evaled expressions
6965 no_glob_subst='s/\*/\\\*/g'
6967 # Constants:
6968 rm="rm -f"
6970 # Global variables:
6971 default_ofile=libtool
6972 can_build_shared=yes
6974 # All known linkers require a `.a' archive for static linking (except MSVC,
6975 # which needs '.lib').
6976 libext=a
6977 ltmain="$ac_aux_dir/ltmain.sh"
6978 ofile="$default_ofile"
6979 with_gnu_ld="$lt_cv_prog_gnu_ld"
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}ar; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_prog_AR+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 if test -n "$AR"; then
6990 ac_cv_prog_AR="$AR" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_prog_AR="${ac_tool_prefix}ar"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7003 done
7004 done
7005 IFS=$as_save_IFS
7009 AR=$ac_cv_prog_AR
7010 if test -n "$AR"; then
7011 { echo "$as_me:$LINENO: result: $AR" >&5
7012 echo "${ECHO_T}$AR" >&6; }
7013 else
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7020 if test -z "$ac_cv_prog_AR"; then
7021 ac_ct_AR=$AR
7022 # Extract the first word of "ar", so it can be a program name with args.
7023 set dummy ar; ac_word=$2
7024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 if test -n "$ac_ct_AR"; then
7030 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 ac_cv_prog_ac_ct_AR="ar"
7040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7043 done
7044 done
7045 IFS=$as_save_IFS
7049 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7050 if test -n "$ac_ct_AR"; then
7051 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7052 echo "${ECHO_T}$ac_ct_AR" >&6; }
7053 else
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7058 if test "x$ac_ct_AR" = x; then
7059 AR="false"
7060 else
7061 case $cross_compiling:$ac_tool_warned in
7062 yes:)
7063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7064 whose name does not start with the host triplet. If you think this
7065 configuration is useful to you, please write to autoconf@gnu.org." >&5
7066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7067 whose name does not start with the host triplet. If you think this
7068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7069 ac_tool_warned=yes ;;
7070 esac
7071 AR=$ac_ct_AR
7073 else
7074 AR="$ac_cv_prog_AR"
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_prog_RANLIB+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 if test -n "$RANLIB"; then
7086 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7101 IFS=$as_save_IFS
7105 RANLIB=$ac_cv_prog_RANLIB
7106 if test -n "$RANLIB"; then
7107 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7108 echo "${ECHO_T}$RANLIB" >&6; }
7109 else
7110 { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7116 if test -z "$ac_cv_prog_RANLIB"; then
7117 ac_ct_RANLIB=$RANLIB
7118 # Extract the first word of "ranlib", so it can be a program name with args.
7119 set dummy ranlib; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 if test -n "$ac_ct_RANLIB"; then
7126 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_ac_ct_RANLIB="ranlib"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7139 done
7140 done
7141 IFS=$as_save_IFS
7145 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7146 if test -n "$ac_ct_RANLIB"; then
7147 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7148 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7149 else
7150 { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7154 if test "x$ac_ct_RANLIB" = x; then
7155 RANLIB=":"
7156 else
7157 case $cross_compiling:$ac_tool_warned in
7158 yes:)
7159 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7160 whose name does not start with the host triplet. If you think this
7161 configuration is useful to you, please write to autoconf@gnu.org." >&5
7162 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7163 whose name does not start with the host triplet. If you think this
7164 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7165 ac_tool_warned=yes ;;
7166 esac
7167 RANLIB=$ac_ct_RANLIB
7169 else
7170 RANLIB="$ac_cv_prog_RANLIB"
7173 if test -n "$ac_tool_prefix"; then
7174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7175 set dummy ${ac_tool_prefix}strip; ac_word=$2
7176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178 if test "${ac_cv_prog_STRIP+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181 if test -n "$STRIP"; then
7182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7195 done
7196 done
7197 IFS=$as_save_IFS
7201 STRIP=$ac_cv_prog_STRIP
7202 if test -n "$STRIP"; then
7203 { echo "$as_me:$LINENO: result: $STRIP" >&5
7204 echo "${ECHO_T}$STRIP" >&6; }
7205 else
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7212 if test -z "$ac_cv_prog_STRIP"; then
7213 ac_ct_STRIP=$STRIP
7214 # Extract the first word of "strip", so it can be a program name with args.
7215 set dummy strip; ac_word=$2
7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221 if test -n "$ac_ct_STRIP"; then
7222 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7223 else
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7227 IFS=$as_save_IFS
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_prog_ac_ct_STRIP="strip"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 break 2
7235 done
7236 done
7237 IFS=$as_save_IFS
7241 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7242 if test -n "$ac_ct_STRIP"; then
7243 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7244 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7245 else
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7250 if test "x$ac_ct_STRIP" = x; then
7251 STRIP=":"
7252 else
7253 case $cross_compiling:$ac_tool_warned in
7254 yes:)
7255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7256 whose name does not start with the host triplet. If you think this
7257 configuration is useful to you, please write to autoconf@gnu.org." >&5
7258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7259 whose name does not start with the host triplet. If you think this
7260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7261 ac_tool_warned=yes ;;
7262 esac
7263 STRIP=$ac_ct_STRIP
7265 else
7266 STRIP="$ac_cv_prog_STRIP"
7270 old_CC="$CC"
7271 old_CFLAGS="$CFLAGS"
7273 # Set sane defaults for various variables
7274 test -z "$AR" && AR=ar
7275 test -z "$AR_FLAGS" && AR_FLAGS=cru
7276 test -z "$AS" && AS=as
7277 test -z "$CC" && CC=cc
7278 test -z "$LTCC" && LTCC=$CC
7279 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7280 test -z "$DLLTOOL" && DLLTOOL=dlltool
7281 test -z "$LD" && LD=ld
7282 test -z "$LN_S" && LN_S="ln -s"
7283 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7284 test -z "$NM" && NM=nm
7285 test -z "$SED" && SED=sed
7286 test -z "$OBJDUMP" && OBJDUMP=objdump
7287 test -z "$RANLIB" && RANLIB=:
7288 test -z "$STRIP" && STRIP=:
7289 test -z "$ac_objext" && ac_objext=o
7291 # Determine commands to create old-style static archives.
7292 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7293 old_postinstall_cmds='chmod 644 $oldlib'
7294 old_postuninstall_cmds=
7296 if test -n "$RANLIB"; then
7297 case $host_os in
7298 openbsd*)
7299 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7302 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7304 esac
7305 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7308 for cc_temp in $compiler""; do
7309 case $cc_temp in
7310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7312 \-*) ;;
7313 *) break;;
7314 esac
7315 done
7316 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7319 # Only perform the check for file, if the check method requires it
7320 case $deplibs_check_method in
7321 file_magic*)
7322 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7323 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7324 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7325 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328 case $MAGIC_CMD in
7329 [\\/*] | ?:[\\/]*)
7330 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7333 lt_save_MAGIC_CMD="$MAGIC_CMD"
7334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336 for ac_dir in $ac_dummy; do
7337 IFS="$lt_save_ifs"
7338 test -z "$ac_dir" && ac_dir=.
7339 if test -f $ac_dir/${ac_tool_prefix}file; then
7340 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7341 if test -n "$file_magic_test_file"; then
7342 case $deplibs_check_method in
7343 "file_magic "*)
7344 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347 $EGREP "$file_magic_regex" > /dev/null; then
7349 else
7350 cat <<EOF 1>&2
7352 *** Warning: the command libtool uses to detect shared libraries,
7353 *** $file_magic_cmd, produces output that libtool cannot recognize.
7354 *** The result is that libtool may fail to recognize shared libraries
7355 *** as such. This will affect the creation of libtool libraries that
7356 *** depend on shared libraries, but programs linked with such libtool
7357 *** libraries will work regardless of this problem. Nevertheless, you
7358 *** may want to report the problem to your system manager and/or to
7359 *** bug-libtool@gnu.org
7362 fi ;;
7363 esac
7365 break
7367 done
7368 IFS="$lt_save_ifs"
7369 MAGIC_CMD="$lt_save_MAGIC_CMD"
7371 esac
7374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375 if test -n "$MAGIC_CMD"; then
7376 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7377 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7378 else
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7383 if test -z "$lt_cv_path_MAGIC_CMD"; then
7384 if test -n "$ac_tool_prefix"; then
7385 { echo "$as_me:$LINENO: checking for file" >&5
7386 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7387 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 case $MAGIC_CMD in
7391 [\\/*] | ?:[\\/]*)
7392 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7395 lt_save_MAGIC_CMD="$MAGIC_CMD"
7396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7398 for ac_dir in $ac_dummy; do
7399 IFS="$lt_save_ifs"
7400 test -z "$ac_dir" && ac_dir=.
7401 if test -f $ac_dir/file; then
7402 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7403 if test -n "$file_magic_test_file"; then
7404 case $deplibs_check_method in
7405 "file_magic "*)
7406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7409 $EGREP "$file_magic_regex" > /dev/null; then
7411 else
7412 cat <<EOF 1>&2
7414 *** Warning: the command libtool uses to detect shared libraries,
7415 *** $file_magic_cmd, produces output that libtool cannot recognize.
7416 *** The result is that libtool may fail to recognize shared libraries
7417 *** as such. This will affect the creation of libtool libraries that
7418 *** depend on shared libraries, but programs linked with such libtool
7419 *** libraries will work regardless of this problem. Nevertheless, you
7420 *** may want to report the problem to your system manager and/or to
7421 *** bug-libtool@gnu.org
7424 fi ;;
7425 esac
7427 break
7429 done
7430 IFS="$lt_save_ifs"
7431 MAGIC_CMD="$lt_save_MAGIC_CMD"
7433 esac
7436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7437 if test -n "$MAGIC_CMD"; then
7438 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7439 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7440 else
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7445 else
7446 MAGIC_CMD=:
7452 esac
7455 case $host_os in
7456 rhapsody* | darwin*)
7457 if test -n "$ac_tool_prefix"; then
7458 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7462 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 if test -n "$DSYMUTIL"; then
7466 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7471 IFS=$as_save_IFS
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7475 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 break 2
7479 done
7480 done
7481 IFS=$as_save_IFS
7485 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7486 if test -n "$DSYMUTIL"; then
7487 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7488 echo "${ECHO_T}$DSYMUTIL" >&6; }
7489 else
7490 { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7496 if test -z "$ac_cv_prog_DSYMUTIL"; then
7497 ac_ct_DSYMUTIL=$DSYMUTIL
7498 # Extract the first word of "dsymutil", so it can be a program name with args.
7499 set dummy dsymutil; ac_word=$2
7500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505 if test -n "$ac_ct_DSYMUTIL"; then
7506 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 break 2
7519 done
7520 done
7521 IFS=$as_save_IFS
7525 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7526 if test -n "$ac_ct_DSYMUTIL"; then
7527 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7528 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7529 else
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7534 if test "x$ac_ct_DSYMUTIL" = x; then
7535 DSYMUTIL=":"
7536 else
7537 case $cross_compiling:$ac_tool_warned in
7538 yes:)
7539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7540 whose name does not start with the host triplet. If you think this
7541 configuration is useful to you, please write to autoconf@gnu.org." >&5
7542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7543 whose name does not start with the host triplet. If you think this
7544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7545 ac_tool_warned=yes ;;
7546 esac
7547 DSYMUTIL=$ac_ct_DSYMUTIL
7549 else
7550 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7553 if test -n "$ac_tool_prefix"; then
7554 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7555 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7558 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561 if test -n "$NMEDIT"; then
7562 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7581 NMEDIT=$ac_cv_prog_NMEDIT
7582 if test -n "$NMEDIT"; then
7583 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7584 echo "${ECHO_T}$NMEDIT" >&6; }
7585 else
7586 { echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6; }
7592 if test -z "$ac_cv_prog_NMEDIT"; then
7593 ac_ct_NMEDIT=$NMEDIT
7594 # Extract the first word of "nmedit", so it can be a program name with args.
7595 set dummy nmedit; ac_word=$2
7596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7598 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 if test -n "$ac_ct_NMEDIT"; then
7602 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7615 done
7616 done
7617 IFS=$as_save_IFS
7621 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7622 if test -n "$ac_ct_NMEDIT"; then
7623 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7624 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7625 else
7626 { echo "$as_me:$LINENO: result: no" >&5
7627 echo "${ECHO_T}no" >&6; }
7630 if test "x$ac_ct_NMEDIT" = x; then
7631 NMEDIT=":"
7632 else
7633 case $cross_compiling:$ac_tool_warned in
7634 yes:)
7635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7636 whose name does not start with the host triplet. If you think this
7637 configuration is useful to you, please write to autoconf@gnu.org." >&5
7638 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7639 whose name does not start with the host triplet. If you think this
7640 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7641 ac_tool_warned=yes ;;
7642 esac
7643 NMEDIT=$ac_ct_NMEDIT
7645 else
7646 NMEDIT="$ac_cv_prog_NMEDIT"
7650 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7651 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7652 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655 lt_cv_apple_cc_single_mod=no
7656 if test -z "${LT_MULTI_MODULE}"; then
7657 # By default we will add the -single_module flag. You can override
7658 # by either setting the environment variable LT_MULTI_MODULE
7659 # non-empty at configure time, or by adding -multi_module to the
7660 # link flags.
7661 echo "int foo(void){return 1;}" > conftest.c
7662 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7663 -dynamiclib ${wl}-single_module conftest.c
7664 if test -f libconftest.dylib; then
7665 lt_cv_apple_cc_single_mod=yes
7666 rm -rf libconftest.dylib*
7668 rm conftest.c
7671 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7672 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7673 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7674 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7675 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678 lt_cv_ld_exported_symbols_list=no
7679 save_LDFLAGS=$LDFLAGS
7680 echo "_main" > conftest.sym
7681 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7690 main ()
7694 return 0;
7696 _ACEOF
7697 rm -f conftest.$ac_objext conftest$ac_exeext
7698 if { (ac_try="$ac_link"
7699 case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702 esac
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_link") 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } && {
7711 test -z "$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 } && test -s conftest$ac_exeext &&
7714 $as_test_x conftest$ac_exeext; then
7715 lt_cv_ld_exported_symbols_list=yes
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 lt_cv_ld_exported_symbols_list=no
7723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7724 conftest$ac_exeext conftest.$ac_ext
7725 LDFLAGS="$save_LDFLAGS"
7728 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7729 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7730 case $host_os in
7731 rhapsody* | darwin1.[0123])
7732 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7733 darwin1.*)
7734 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7735 darwin*)
7736 # if running on 10.5 or later, the deployment target defaults
7737 # to the OS version, if on x86, and 10.4, the deployment
7738 # target defaults to 10.4. Don't you love it?
7739 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7740 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7741 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7742 10.[012]*)
7743 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7744 10.*)
7745 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7746 esac
7748 esac
7749 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7750 _lt_dar_single_mod='$single_module'
7752 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7753 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7754 else
7755 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7757 if test "$DSYMUTIL" != ":"; then
7758 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7759 else
7760 _lt_dsymutil=
7763 esac
7766 enable_dlopen=no
7767 enable_win32_dll=yes
7769 # Check whether --enable-libtool-lock was given.
7770 if test "${enable_libtool_lock+set}" = set; then
7771 enableval=$enable_libtool_lock;
7774 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7777 # Check whether --with-pic was given.
7778 if test "${with_pic+set}" = set; then
7779 withval=$with_pic; pic_mode="$withval"
7780 else
7781 pic_mode=default
7784 test -z "$pic_mode" && pic_mode=default
7786 # Use C for the default configuration in the libtool script
7787 tagname=
7788 lt_save_CC="$CC"
7789 ac_ext=c
7790 ac_cpp='$CPP $CPPFLAGS'
7791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7796 # Source file extension for C test sources.
7797 ac_ext=c
7799 # Object file extension for compiled C test sources.
7800 objext=o
7801 objext=$objext
7803 # Code to be used in simple compile tests
7804 lt_simple_compile_test_code="int some_variable = 0;"
7806 # Code to be used in simple link tests
7807 lt_simple_link_test_code='int main(){return(0);}'
7810 # If no C compiler was specified, use CC.
7811 LTCC=${LTCC-"$CC"}
7813 # If no C compiler flags were specified, use CFLAGS.
7814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7816 # Allow CC to be a program name with arguments.
7817 compiler=$CC
7820 # save warnings/boilerplate of simple test code
7821 ac_outfile=conftest.$ac_objext
7822 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7823 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7824 _lt_compiler_boilerplate=`cat conftest.err`
7825 $rm conftest*
7827 ac_outfile=conftest.$ac_objext
7828 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7829 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7830 _lt_linker_boilerplate=`cat conftest.err`
7831 $rm -r conftest*
7835 lt_prog_compiler_no_builtin_flag=
7837 if test "$GCC" = yes; then
7838 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7841 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7842 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7843 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846 lt_cv_prog_compiler_rtti_exceptions=no
7847 ac_outfile=conftest.$ac_objext
7848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7849 lt_compiler_flag="-fno-rtti -fno-exceptions"
7850 # Insert the option either (1) after the last *FLAGS variable, or
7851 # (2) before a word containing "conftest.", or (3) at the end.
7852 # Note that $ac_compile itself does not contain backslashes and begins
7853 # with a dollar sign (not a hyphen), so the echo should work correctly.
7854 # The option is referenced via a variable to avoid confusing sed.
7855 lt_compile=`echo "$ac_compile" | $SED \
7856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7858 -e 's:$: $lt_compiler_flag:'`
7859 (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
7860 (eval "$lt_compile" 2>conftest.err)
7861 ac_status=$?
7862 cat conftest.err >&5
7863 echo "$as_me:7863: \$? = $ac_status" >&5
7864 if (exit $ac_status) && test -s "$ac_outfile"; then
7865 # The compiler can only warn and ignore the option if not recognized
7866 # So say no if there are warnings other than the usual output.
7867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7870 lt_cv_prog_compiler_rtti_exceptions=yes
7873 $rm conftest*
7876 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7877 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7879 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7880 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7881 else
7887 lt_prog_compiler_wl=
7888 lt_prog_compiler_pic=
7889 lt_prog_compiler_static=
7891 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7892 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7894 if test "$GCC" = yes; then
7895 lt_prog_compiler_wl='-Wl,'
7896 lt_prog_compiler_static='-static'
7898 case $host_os in
7899 aix*)
7900 # All AIX code is PIC.
7901 if test "$host_cpu" = ia64; then
7902 # AIX 5 now supports IA64 processor
7903 lt_prog_compiler_static='-Bstatic'
7907 amigaos*)
7908 # FIXME: we need at least 68020 code to build shared libraries, but
7909 # adding the `-m68020' flag to GCC prevents building anything better,
7910 # like `-m68040'.
7911 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7914 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7915 # PIC is the default for these OSes.
7918 mingw* | cygwin* | pw32* | os2*)
7919 # This hack is so that the source file can tell whether it is being
7920 # built for inclusion in a dll (and should export symbols for example).
7921 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7922 # (--disable-auto-import) libraries
7923 lt_prog_compiler_pic='-DDLL_EXPORT'
7926 darwin* | rhapsody*)
7927 # PIC is the default on this platform
7928 # Common symbols not allowed in MH_DYLIB files
7929 lt_prog_compiler_pic='-fno-common'
7932 interix[3-9]*)
7933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7934 # Instead, we relocate shared libraries at runtime.
7937 msdosdjgpp*)
7938 # Just because we use GCC doesn't mean we suddenly get shared libraries
7939 # on systems that don't support them.
7940 lt_prog_compiler_can_build_shared=no
7941 enable_shared=no
7944 sysv4*MP*)
7945 if test -d /usr/nec; then
7946 lt_prog_compiler_pic=-Kconform_pic
7950 hpux*)
7951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7952 # not for PA HP-UX.
7953 case $host_cpu in
7954 hppa*64*|ia64*)
7955 # +Z the default
7958 lt_prog_compiler_pic='-fPIC'
7960 esac
7964 lt_prog_compiler_pic='-fPIC'
7966 esac
7967 else
7968 # PORTME Check for flag to pass linker flags through the system compiler.
7969 case $host_os in
7970 aix*)
7971 lt_prog_compiler_wl='-Wl,'
7972 if test "$host_cpu" = ia64; then
7973 # AIX 5 now supports IA64 processor
7974 lt_prog_compiler_static='-Bstatic'
7975 else
7976 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7979 darwin*)
7980 # PIC is the default on this platform
7981 # Common symbols not allowed in MH_DYLIB files
7982 case $cc_basename in
7983 xlc*)
7984 lt_prog_compiler_pic='-qnocommon'
7985 lt_prog_compiler_wl='-Wl,'
7987 esac
7990 mingw* | cygwin* | pw32* | os2*)
7991 # This hack is so that the source file can tell whether it is being
7992 # built for inclusion in a dll (and should export symbols for example).
7993 lt_prog_compiler_pic='-DDLL_EXPORT'
7996 hpux9* | hpux10* | hpux11*)
7997 lt_prog_compiler_wl='-Wl,'
7998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7999 # not for PA HP-UX.
8000 case $host_cpu in
8001 hppa*64*|ia64*)
8002 # +Z the default
8005 lt_prog_compiler_pic='+Z'
8007 esac
8008 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8009 lt_prog_compiler_static='${wl}-a ${wl}archive'
8012 irix5* | irix6* | nonstopux*)
8013 lt_prog_compiler_wl='-Wl,'
8014 # PIC (with -KPIC) is the default.
8015 lt_prog_compiler_static='-non_shared'
8018 newsos6)
8019 lt_prog_compiler_pic='-KPIC'
8020 lt_prog_compiler_static='-Bstatic'
8023 linux* | k*bsd*-gnu)
8024 case $cc_basename in
8025 icc* | ecc*)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-KPIC'
8028 lt_prog_compiler_static='-static'
8030 pgcc* | pgf77* | pgf90* | pgf95*)
8031 # Portland Group compilers (*not* the Pentium gcc compiler,
8032 # which looks to be a dead project)
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-fpic'
8035 lt_prog_compiler_static='-Bstatic'
8037 ccc*)
8038 lt_prog_compiler_wl='-Wl,'
8039 # All Alpha code is PIC.
8040 lt_prog_compiler_static='-non_shared'
8043 case `$CC -V 2>&1 | sed 5q` in
8044 *Sun\ C*)
8045 # Sun C 5.9
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-Bstatic'
8048 lt_prog_compiler_wl='-Wl,'
8050 *Sun\ F*)
8051 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8052 lt_prog_compiler_pic='-KPIC'
8053 lt_prog_compiler_static='-Bstatic'
8054 lt_prog_compiler_wl=''
8056 esac
8058 esac
8061 osf3* | osf4* | osf5*)
8062 lt_prog_compiler_wl='-Wl,'
8063 # All OSF/1 code is PIC.
8064 lt_prog_compiler_static='-non_shared'
8067 rdos*)
8068 lt_prog_compiler_static='-non_shared'
8071 solaris*)
8072 lt_prog_compiler_pic='-KPIC'
8073 lt_prog_compiler_static='-Bstatic'
8074 case $cc_basename in
8075 f77* | f90* | f95*)
8076 lt_prog_compiler_wl='-Qoption ld ';;
8078 lt_prog_compiler_wl='-Wl,';;
8079 esac
8082 sunos4*)
8083 lt_prog_compiler_wl='-Qoption ld '
8084 lt_prog_compiler_pic='-PIC'
8085 lt_prog_compiler_static='-Bstatic'
8088 sysv4 | sysv4.2uw2* | sysv4.3*)
8089 lt_prog_compiler_wl='-Wl,'
8090 lt_prog_compiler_pic='-KPIC'
8091 lt_prog_compiler_static='-Bstatic'
8094 sysv4*MP*)
8095 if test -d /usr/nec ;then
8096 lt_prog_compiler_pic='-Kconform_pic'
8097 lt_prog_compiler_static='-Bstatic'
8101 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8102 lt_prog_compiler_wl='-Wl,'
8103 lt_prog_compiler_pic='-KPIC'
8104 lt_prog_compiler_static='-Bstatic'
8107 unicos*)
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_can_build_shared=no
8112 uts4*)
8113 lt_prog_compiler_pic='-pic'
8114 lt_prog_compiler_static='-Bstatic'
8118 lt_prog_compiler_can_build_shared=no
8120 esac
8123 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8124 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8127 # Check to make sure the PIC flag actually works.
8129 if test -n "$lt_prog_compiler_pic"; then
8131 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8132 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8133 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136 lt_cv_prog_compiler_pic_works=no
8137 ac_outfile=conftest.$ac_objext
8138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8139 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8140 # Insert the option either (1) after the last *FLAGS variable, or
8141 # (2) before a word containing "conftest.", or (3) at the end.
8142 # Note that $ac_compile itself does not contain backslashes and begins
8143 # with a dollar sign (not a hyphen), so the echo should work correctly.
8144 # The option is referenced via a variable to avoid confusing sed.
8145 lt_compile=`echo "$ac_compile" | $SED \
8146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8148 -e 's:$: $lt_compiler_flag:'`
8149 (eval echo "\"\$as_me:8149: $lt_compile\"" >&5)
8150 (eval "$lt_compile" 2>conftest.err)
8151 ac_status=$?
8152 cat conftest.err >&5
8153 echo "$as_me:8153: \$? = $ac_status" >&5
8154 if (exit $ac_status) && test -s "$ac_outfile"; then
8155 # The compiler can only warn and ignore the option if not recognized
8156 # So say no if there are warnings other than the usual output.
8157 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8160 lt_cv_prog_compiler_pic_works=yes
8163 $rm conftest*
8166 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8167 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8169 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8170 case $lt_prog_compiler_pic in
8171 "" | " "*) ;;
8172 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8173 esac
8174 else
8175 lt_prog_compiler_pic=
8176 lt_prog_compiler_can_build_shared=no
8180 case $host_os in
8181 # For platforms which do not support PIC, -DPIC is meaningless:
8182 *djgpp*)
8183 lt_prog_compiler_pic=
8186 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8188 esac
8191 # Check to make sure the static flag actually works.
8193 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8194 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8195 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8196 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199 lt_cv_prog_compiler_static_works=no
8200 save_LDFLAGS="$LDFLAGS"
8201 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8202 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8203 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8204 # The linker can only warn and ignore the option if not recognized
8205 # So say no if there are warnings
8206 if test -s conftest.err; then
8207 # Append any errors to the config.log.
8208 cat conftest.err 1>&5
8209 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8211 if diff conftest.exp conftest.er2 >/dev/null; then
8212 lt_cv_prog_compiler_static_works=yes
8214 else
8215 lt_cv_prog_compiler_static_works=yes
8218 $rm -r conftest*
8219 LDFLAGS="$save_LDFLAGS"
8222 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8223 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8225 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8227 else
8228 lt_prog_compiler_static=
8232 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8233 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8234 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237 lt_cv_prog_compiler_c_o=no
8238 $rm -r conftest 2>/dev/null
8239 mkdir conftest
8240 cd conftest
8241 mkdir out
8242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8244 lt_compiler_flag="-o out/conftest2.$ac_objext"
8245 # Insert the option either (1) after the last *FLAGS variable, or
8246 # (2) before a word containing "conftest.", or (3) at the end.
8247 # Note that $ac_compile itself does not contain backslashes and begins
8248 # with a dollar sign (not a hyphen), so the echo should work correctly.
8249 lt_compile=`echo "$ac_compile" | $SED \
8250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8252 -e 's:$: $lt_compiler_flag:'`
8253 (eval echo "\"\$as_me:8253: $lt_compile\"" >&5)
8254 (eval "$lt_compile" 2>out/conftest.err)
8255 ac_status=$?
8256 cat out/conftest.err >&5
8257 echo "$as_me:8257: \$? = $ac_status" >&5
8258 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8259 then
8260 # The compiler can only warn and ignore the option if not recognized
8261 # So say no if there are warnings
8262 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8263 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8264 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8265 lt_cv_prog_compiler_c_o=yes
8268 chmod u+w . 2>&5
8269 $rm conftest*
8270 # SGI C++ compiler will create directory out/ii_files/ for
8271 # template instantiation
8272 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8273 $rm out/* && rmdir out
8274 cd ..
8275 rmdir conftest
8276 $rm conftest*
8279 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8280 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8283 hard_links="nottested"
8284 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8285 # do not overwrite the value of need_locks provided by the user
8286 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8287 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8288 hard_links=yes
8289 $rm conftest*
8290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8291 touch conftest.a
8292 ln conftest.a conftest.b 2>&5 || hard_links=no
8293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8294 { echo "$as_me:$LINENO: result: $hard_links" >&5
8295 echo "${ECHO_T}$hard_links" >&6; }
8296 if test "$hard_links" = no; then
8297 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8298 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8299 need_locks=warn
8301 else
8302 need_locks=no
8305 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8306 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8308 runpath_var=
8309 allow_undefined_flag=
8310 enable_shared_with_static_runtimes=no
8311 archive_cmds=
8312 archive_expsym_cmds=
8313 old_archive_From_new_cmds=
8314 old_archive_from_expsyms_cmds=
8315 export_dynamic_flag_spec=
8316 whole_archive_flag_spec=
8317 thread_safe_flag_spec=
8318 hardcode_libdir_flag_spec=
8319 hardcode_libdir_flag_spec_ld=
8320 hardcode_libdir_separator=
8321 hardcode_direct=no
8322 hardcode_minus_L=no
8323 hardcode_shlibpath_var=unsupported
8324 link_all_deplibs=unknown
8325 hardcode_automatic=no
8326 module_cmds=
8327 module_expsym_cmds=
8328 always_export_symbols=no
8329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8330 # include_expsyms should be a list of space-separated symbols to be *always*
8331 # included in the symbol list
8332 include_expsyms=
8333 # exclude_expsyms can be an extended regexp of symbols to exclude
8334 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8335 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8336 # as well as any symbol that contains `d'.
8337 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8338 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8339 # platforms (ab)use it in PIC code, but their linkers get confused if
8340 # the symbol is explicitly referenced. Since portable code cannot
8341 # rely on this symbol name, it's probably fine to never include it in
8342 # preloaded symbol tables.
8343 # Exclude shared library initialization/finalization symbols.
8344 extract_expsyms_cmds=
8345 # Just being paranoid about ensuring that cc_basename is set.
8346 for cc_temp in $compiler""; do
8347 case $cc_temp in
8348 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8349 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8350 \-*) ;;
8351 *) break;;
8352 esac
8353 done
8354 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8356 case $host_os in
8357 cygwin* | mingw* | pw32*)
8358 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8359 # When not using gcc, we currently assume that we are using
8360 # Microsoft Visual C++.
8361 if test "$GCC" != yes; then
8362 with_gnu_ld=no
8365 interix*)
8366 # we just hope/assume this is gcc and not c89 (= MSVC++)
8367 with_gnu_ld=yes
8369 openbsd*)
8370 with_gnu_ld=no
8372 esac
8374 ld_shlibs=yes
8375 if test "$with_gnu_ld" = yes; then
8376 # If archive_cmds runs LD, not CC, wlarc should be empty
8377 wlarc='${wl}'
8379 # Set some defaults for GNU ld with shared library support. These
8380 # are reset later if shared libraries are not supported. Putting them
8381 # here allows them to be overridden if necessary.
8382 runpath_var=LD_RUN_PATH
8383 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8384 export_dynamic_flag_spec='${wl}--export-dynamic'
8385 # ancient GNU ld didn't support --whole-archive et. al.
8386 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8387 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8388 else
8389 whole_archive_flag_spec=
8391 supports_anon_versioning=no
8392 case `$LD -v 2>/dev/null` in
8393 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8394 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8395 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8396 *\ 2.11.*) ;; # other 2.11 versions
8397 *) supports_anon_versioning=yes ;;
8398 esac
8400 # See if GNU ld supports shared libraries.
8401 case $host_os in
8402 aix[3-9]*)
8403 # On AIX/PPC, the GNU linker is very broken
8404 if test "$host_cpu" != ia64; then
8405 ld_shlibs=no
8406 cat <<EOF 1>&2
8408 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8409 *** to be unable to reliably create shared libraries on AIX.
8410 *** Therefore, libtool is disabling shared libraries support. If you
8411 *** really care for shared libraries, you may want to modify your PATH
8412 *** so that a non-GNU linker is found, and then restart.
8418 amigaos*)
8419 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)'
8420 hardcode_libdir_flag_spec='-L$libdir'
8421 hardcode_minus_L=yes
8423 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8424 # that the semantics of dynamic libraries on AmigaOS, at least up
8425 # to version 4, is to share data among multiple programs linked
8426 # with the same dynamic library. Since this doesn't match the
8427 # behavior of shared libraries on other platforms, we can't use
8428 # them.
8429 ld_shlibs=no
8432 beos*)
8433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8434 allow_undefined_flag=unsupported
8435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8436 # support --undefined. This deserves some investigation. FIXME
8437 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438 else
8439 ld_shlibs=no
8443 cygwin* | mingw* | pw32*)
8444 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8445 # as there is no search path for DLLs.
8446 hardcode_libdir_flag_spec='-L$libdir'
8447 allow_undefined_flag=unsupported
8448 always_export_symbols=no
8449 enable_shared_with_static_runtimes=yes
8450 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8452 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8454 # If the export-symbols file already is a .def file (1st line
8455 # is EXPORTS), use it as is; otherwise, prepend...
8456 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8457 cp $export_symbols $output_objdir/$soname.def;
8458 else
8459 echo EXPORTS > $output_objdir/$soname.def;
8460 cat $export_symbols >> $output_objdir/$soname.def;
8462 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8463 else
8464 ld_shlibs=no
8468 interix[3-9]*)
8469 hardcode_direct=no
8470 hardcode_shlibpath_var=no
8471 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8472 export_dynamic_flag_spec='${wl}-E'
8473 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8474 # Instead, shared libraries are loaded at an image base (0x10000000 by
8475 # default) and relocated if they conflict, which is a slow very memory
8476 # consuming and fragmenting process. To avoid this, we pick a random,
8477 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8478 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8480 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'
8483 gnu* | linux* | k*bsd*-gnu)
8484 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8485 tmp_addflag=
8486 case $cc_basename,$host_cpu in
8487 pgcc*) # Portland Group C compiler
8488 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'
8489 tmp_addflag=' $pic_flag'
8491 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8492 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'
8493 tmp_addflag=' $pic_flag -Mnomain' ;;
8494 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8495 tmp_addflag=' -i_dynamic' ;;
8496 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8497 tmp_addflag=' -i_dynamic -nofor_main' ;;
8498 ifc* | ifort*) # Intel Fortran compiler
8499 tmp_addflag=' -nofor_main' ;;
8500 esac
8501 case `$CC -V 2>&1 | sed 5q` in
8502 *Sun\ C*) # Sun C 5.9
8503 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8504 tmp_sharedflag='-G' ;;
8505 *Sun\ F*) # Sun Fortran 8.3
8506 tmp_sharedflag='-G' ;;
8508 tmp_sharedflag='-shared' ;;
8509 esac
8510 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8512 if test $supports_anon_versioning = yes; then
8513 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8515 $echo "local: *; };" >> $output_objdir/$libname.ver~
8516 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8518 link_all_deplibs=no
8519 else
8520 ld_shlibs=no
8524 netbsd* | netbsdelf*-gnu)
8525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8526 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8527 wlarc=
8528 else
8529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8534 solaris*)
8535 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8536 ld_shlibs=no
8537 cat <<EOF 1>&2
8539 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8540 *** create shared libraries on Solaris systems. Therefore, libtool
8541 *** is disabling shared libraries support. We urge you to upgrade GNU
8542 *** binutils to release 2.9.1 or newer. Another option is to modify
8543 *** your PATH or compiler configuration so that the native linker is
8544 *** used, and then restart.
8547 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8550 else
8551 ld_shlibs=no
8555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8556 case `$LD -v 2>&1` in
8557 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8558 ld_shlibs=no
8559 cat <<_LT_EOF 1>&2
8561 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8562 *** reliably create shared libraries on SCO systems. Therefore, libtool
8563 *** is disabling shared libraries support. We urge you to upgrade GNU
8564 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8565 *** your PATH or compiler configuration so that the native linker is
8566 *** used, and then restart.
8568 _LT_EOF
8571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8572 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8574 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8575 else
8576 ld_shlibs=no
8579 esac
8582 sunos4*)
8583 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8584 wlarc=
8585 hardcode_direct=yes
8586 hardcode_shlibpath_var=no
8590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8593 else
8594 ld_shlibs=no
8597 esac
8599 if test "$ld_shlibs" = no; then
8600 runpath_var=
8601 hardcode_libdir_flag_spec=
8602 export_dynamic_flag_spec=
8603 whole_archive_flag_spec=
8605 else
8606 # PORTME fill in a description of your system's linker (not GNU ld)
8607 case $host_os in
8608 aix3*)
8609 allow_undefined_flag=unsupported
8610 always_export_symbols=yes
8611 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'
8612 # Note: this linker hardcodes the directories in LIBPATH if there
8613 # are no directories specified by -L.
8614 hardcode_minus_L=yes
8615 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8616 # Neither direct hardcoding nor static linking is supported with a
8617 # broken collect2.
8618 hardcode_direct=unsupported
8622 aix[4-9]*)
8623 if test "$host_cpu" = ia64; then
8624 # On IA64, the linker does run time linking by default, so we don't
8625 # have to do anything special.
8626 aix_use_runtimelinking=no
8627 exp_sym_flag='-Bexport'
8628 no_entry_flag=""
8629 else
8630 # If we're using GNU nm, then we don't want the "-C" option.
8631 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8632 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8633 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'
8634 else
8635 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'
8637 aix_use_runtimelinking=no
8639 # Test if we are trying to use run time linking or normal
8640 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8641 # need to do runtime linking.
8642 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8643 for ld_flag in $LDFLAGS; do
8644 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8645 aix_use_runtimelinking=yes
8646 break
8648 done
8650 esac
8652 exp_sym_flag='-bexport'
8653 no_entry_flag='-bnoentry'
8656 # When large executables or shared objects are built, AIX ld can
8657 # have problems creating the table of contents. If linking a library
8658 # or program results in "error TOC overflow" add -mminimal-toc to
8659 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8660 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8662 archive_cmds=''
8663 hardcode_direct=yes
8664 hardcode_libdir_separator=':'
8665 link_all_deplibs=yes
8667 if test "$GCC" = yes; then
8668 case $host_os in aix4.[012]|aix4.[012].*)
8669 # We only want to do this on AIX 4.2 and lower, the check
8670 # below for broken collect2 doesn't work under 4.3+
8671 collect2name=`${CC} -print-prog-name=collect2`
8672 if test -f "$collect2name" && \
8673 strings "$collect2name" | grep resolve_lib_name >/dev/null
8674 then
8675 # We have reworked collect2
8677 else
8678 # We have old collect2
8679 hardcode_direct=unsupported
8680 # It fails to find uninstalled libraries when the uninstalled
8681 # path is not listed in the libpath. Setting hardcode_minus_L
8682 # to unsupported forces relinking
8683 hardcode_minus_L=yes
8684 hardcode_libdir_flag_spec='-L$libdir'
8685 hardcode_libdir_separator=
8688 esac
8689 shared_flag='-shared'
8690 if test "$aix_use_runtimelinking" = yes; then
8691 shared_flag="$shared_flag "'${wl}-G'
8693 else
8694 # not using gcc
8695 if test "$host_cpu" = ia64; then
8696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8697 # chokes on -Wl,-G. The following line is correct:
8698 shared_flag='-G'
8699 else
8700 if test "$aix_use_runtimelinking" = yes; then
8701 shared_flag='${wl}-G'
8702 else
8703 shared_flag='${wl}-bM:SRE'
8708 # It seems that -bexpall does not export symbols beginning with
8709 # underscore (_), so it is better to generate a list of symbols to export.
8710 always_export_symbols=yes
8711 if test "$aix_use_runtimelinking" = yes; then
8712 # Warning - without using the other runtime loading flags (-brtl),
8713 # -berok will link without error, but may produce a broken library.
8714 allow_undefined_flag='-berok'
8715 # Determine the default libpath from the value encoded in an empty executable.
8716 cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h. */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8724 main ()
8728 return 0;
8730 _ACEOF
8731 rm -f conftest.$ac_objext conftest$ac_exeext
8732 if { (ac_try="$ac_link"
8733 case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8736 esac
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_link") 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_c_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest$ac_exeext &&
8748 $as_test_x conftest$ac_exeext; then
8750 lt_aix_libpath_sed='
8751 /Import File Strings/,/^$/ {
8752 /^0/ {
8753 s/^0 *\(.*\)$/\1/
8757 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8758 # Check for a 64-bit object if we didn't find anything.
8759 if test -z "$aix_libpath"; then
8760 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8762 else
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8770 conftest$ac_exeext conftest.$ac_ext
8771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8773 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8774 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"
8775 else
8776 if test "$host_cpu" = ia64; then
8777 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8778 allow_undefined_flag="-z nodefs"
8779 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"
8780 else
8781 # Determine the default libpath from the value encoded in an empty executable.
8782 cat >conftest.$ac_ext <<_ACEOF
8783 /* confdefs.h. */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8790 main ()
8794 return 0;
8796 _ACEOF
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (ac_try="$ac_link"
8799 case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802 esac
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_link") 2>conftest.er1
8805 ac_status=$?
8806 grep -v '^ *+' conftest.er1 >conftest.err
8807 rm -f conftest.er1
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } && {
8811 test -z "$ac_c_werror_flag" ||
8812 test ! -s conftest.err
8813 } && test -s conftest$ac_exeext &&
8814 $as_test_x conftest$ac_exeext; then
8816 lt_aix_libpath_sed='
8817 /Import File Strings/,/^$/ {
8818 /^0/ {
8819 s/^0 *\(.*\)$/\1/
8823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8824 # Check for a 64-bit object if we didn't find anything.
8825 if test -z "$aix_libpath"; then
8826 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828 else
8829 echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8836 conftest$ac_exeext conftest.$ac_ext
8837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8839 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8840 # Warning - without using the other run time loading flags,
8841 # -berok will link without error, but may produce a broken library.
8842 no_undefined_flag=' ${wl}-bernotok'
8843 allow_undefined_flag=' ${wl}-berok'
8844 # Exported symbols can be pulled into shared objects from archives
8845 whole_archive_flag_spec='$convenience'
8846 archive_cmds_need_lc=yes
8847 # This is similar to how AIX traditionally builds its shared libraries.
8848 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'
8853 amigaos*)
8854 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)'
8855 hardcode_libdir_flag_spec='-L$libdir'
8856 hardcode_minus_L=yes
8857 # see comment about different semantics on the GNU ld section
8858 ld_shlibs=no
8861 bsdi[45]*)
8862 export_dynamic_flag_spec=-rdynamic
8865 cygwin* | mingw* | pw32*)
8866 # When not using gcc, we currently assume that we are using
8867 # Microsoft Visual C++.
8868 # hardcode_libdir_flag_spec is actually meaningless, as there is
8869 # no search path for DLLs.
8870 hardcode_libdir_flag_spec=' '
8871 allow_undefined_flag=unsupported
8872 # Tell ltmain to make .lib files, not .a files.
8873 libext=lib
8874 # Tell ltmain to make .dll files, not .so files.
8875 shrext_cmds=".dll"
8876 # FIXME: Setting linknames here is a bad hack.
8877 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8878 # The linker will automatically build a .lib file if we build a DLL.
8879 old_archive_From_new_cmds='true'
8880 # FIXME: Should let the user specify the lib program.
8881 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8882 fix_srcfile_path='`cygpath -w "$srcfile"`'
8883 enable_shared_with_static_runtimes=yes
8886 darwin* | rhapsody*)
8887 case $host_os in
8888 rhapsody* | darwin1.[012])
8889 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8891 *) # Darwin 1.3 on
8892 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8893 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8894 else
8895 case ${MACOSX_DEPLOYMENT_TARGET} in
8896 10.[012])
8897 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8899 10.*)
8900 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8902 esac
8905 esac
8906 archive_cmds_need_lc=no
8907 hardcode_direct=no
8908 hardcode_automatic=yes
8909 hardcode_shlibpath_var=unsupported
8910 whole_archive_flag_spec=''
8911 link_all_deplibs=yes
8912 if test "$GCC" = yes ; then
8913 output_verbose_link_cmd='echo'
8914 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8915 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8916 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8917 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8918 else
8919 case $cc_basename in
8920 xlc*)
8921 output_verbose_link_cmd='echo'
8922 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8923 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8924 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8925 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8926 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}'
8929 ld_shlibs=no
8931 esac
8935 dgux*)
8936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937 hardcode_libdir_flag_spec='-L$libdir'
8938 hardcode_shlibpath_var=no
8941 freebsd1*)
8942 ld_shlibs=no
8945 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8946 # support. Future versions do this automatically, but an explicit c++rt0.o
8947 # does not break anything, and helps significantly (at the cost of a little
8948 # extra space).
8949 freebsd2.2*)
8950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8951 hardcode_libdir_flag_spec='-R$libdir'
8952 hardcode_direct=yes
8953 hardcode_shlibpath_var=no
8956 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8957 freebsd2*)
8958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8959 hardcode_direct=yes
8960 hardcode_minus_L=yes
8961 hardcode_shlibpath_var=no
8964 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8965 freebsd* | dragonfly*)
8966 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8967 hardcode_libdir_flag_spec='-R$libdir'
8968 hardcode_direct=yes
8969 hardcode_shlibpath_var=no
8972 hpux9*)
8973 if test "$GCC" = yes; then
8974 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'
8975 else
8976 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'
8978 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8979 hardcode_libdir_separator=:
8980 hardcode_direct=yes
8982 # hardcode_minus_L: Not really in the search PATH,
8983 # but as the default location of the library.
8984 hardcode_minus_L=yes
8985 export_dynamic_flag_spec='${wl}-E'
8988 hpux10*)
8989 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8990 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8991 else
8992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8994 if test "$with_gnu_ld" = no; then
8995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8996 hardcode_libdir_separator=:
8998 hardcode_direct=yes
8999 export_dynamic_flag_spec='${wl}-E'
9001 # hardcode_minus_L: Not really in the search PATH,
9002 # but as the default location of the library.
9003 hardcode_minus_L=yes
9007 hpux11*)
9008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9009 case $host_cpu in
9010 hppa*64*)
9011 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9013 ia64*)
9014 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9019 esac
9020 else
9021 case $host_cpu in
9022 hppa*64*)
9023 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9025 ia64*)
9026 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9031 esac
9033 if test "$with_gnu_ld" = no; then
9034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9035 hardcode_libdir_separator=:
9037 case $host_cpu in
9038 hppa*64*|ia64*)
9039 hardcode_libdir_flag_spec_ld='+b $libdir'
9040 hardcode_direct=no
9041 hardcode_shlibpath_var=no
9044 hardcode_direct=yes
9045 export_dynamic_flag_spec='${wl}-E'
9047 # hardcode_minus_L: Not really in the search PATH,
9048 # but as the default location of the library.
9049 hardcode_minus_L=yes
9051 esac
9055 irix5* | irix6* | nonstopux*)
9056 if test "$GCC" = yes; then
9057 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'
9058 else
9059 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'
9060 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9063 hardcode_libdir_separator=:
9064 link_all_deplibs=yes
9067 netbsd* | netbsdelf*-gnu)
9068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9070 else
9071 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9073 hardcode_libdir_flag_spec='-R$libdir'
9074 hardcode_direct=yes
9075 hardcode_shlibpath_var=no
9078 newsos6)
9079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_direct=yes
9081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9082 hardcode_libdir_separator=:
9083 hardcode_shlibpath_var=no
9086 openbsd*)
9087 if test -f /usr/libexec/ld.so; then
9088 hardcode_direct=yes
9089 hardcode_shlibpath_var=no
9090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9091 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9092 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9094 export_dynamic_flag_spec='${wl}-E'
9095 else
9096 case $host_os in
9097 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9099 hardcode_libdir_flag_spec='-R$libdir'
9102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9103 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9105 esac
9107 else
9108 ld_shlibs=no
9112 os2*)
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 hardcode_minus_L=yes
9115 allow_undefined_flag=unsupported
9116 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'
9117 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9120 osf3*)
9121 if test "$GCC" = yes; then
9122 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9123 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'
9124 else
9125 allow_undefined_flag=' -expect_unresolved \*'
9126 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'
9128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9129 hardcode_libdir_separator=:
9132 osf4* | osf5*) # as osf3* with the addition of -msym flag
9133 if test "$GCC" = yes; then
9134 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9135 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'
9136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9137 else
9138 allow_undefined_flag=' -expect_unresolved \*'
9139 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'
9140 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9141 $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'
9143 # Both c and cxx compiler support -rpath directly
9144 hardcode_libdir_flag_spec='-rpath $libdir'
9146 hardcode_libdir_separator=:
9149 solaris*)
9150 no_undefined_flag=' -z text'
9151 if test "$GCC" = yes; then
9152 wlarc='${wl}'
9153 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9155 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9156 else
9157 wlarc=''
9158 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9159 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9160 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9162 hardcode_libdir_flag_spec='-R$libdir'
9163 hardcode_shlibpath_var=no
9164 case $host_os in
9165 solaris2.[0-5] | solaris2.[0-5].*) ;;
9167 # The compiler driver will combine and reorder linker options,
9168 # but understands `-z linker_flag'. GCC discards it without `$wl',
9169 # but is careful enough not to reorder.
9170 # Supported since Solaris 2.6 (maybe 2.5.1?)
9171 if test "$GCC" = yes; then
9172 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9173 else
9174 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9177 esac
9178 link_all_deplibs=yes
9181 sunos4*)
9182 if test "x$host_vendor" = xsequent; then
9183 # Use $CC to link under sequent, because it throws in some extra .o
9184 # files that make .init and .fini sections work.
9185 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9186 else
9187 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9189 hardcode_libdir_flag_spec='-L$libdir'
9190 hardcode_direct=yes
9191 hardcode_minus_L=yes
9192 hardcode_shlibpath_var=no
9195 sysv4)
9196 case $host_vendor in
9197 sni)
9198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9199 hardcode_direct=yes # is this really true???
9201 siemens)
9202 ## LD is ld it makes a PLAMLIB
9203 ## CC just makes a GrossModule.
9204 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9205 reload_cmds='$CC -r -o $output$reload_objs'
9206 hardcode_direct=no
9208 motorola)
9209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9212 esac
9213 runpath_var='LD_RUN_PATH'
9214 hardcode_shlibpath_var=no
9217 sysv4.3*)
9218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9219 hardcode_shlibpath_var=no
9220 export_dynamic_flag_spec='-Bexport'
9223 sysv4*MP*)
9224 if test -d /usr/nec; then
9225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9226 hardcode_shlibpath_var=no
9227 runpath_var=LD_RUN_PATH
9228 hardcode_runpath_var=yes
9229 ld_shlibs=yes
9233 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9234 no_undefined_flag='${wl}-z,text'
9235 archive_cmds_need_lc=no
9236 hardcode_shlibpath_var=no
9237 runpath_var='LD_RUN_PATH'
9239 if test "$GCC" = yes; then
9240 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9242 else
9243 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9244 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9248 sysv5* | sco3.2v5* | sco5v6*)
9249 # Note: We can NOT use -z defs as we might desire, because we do not
9250 # link with -lc, and that would cause any symbols used from libc to
9251 # always be unresolved, which means just about no library would
9252 # ever link correctly. If we're not using GNU ld we use -z text
9253 # though, which does catch some bad symbols but isn't as heavy-handed
9254 # as -z defs.
9255 no_undefined_flag='${wl}-z,text'
9256 allow_undefined_flag='${wl}-z,nodefs'
9257 archive_cmds_need_lc=no
9258 hardcode_shlibpath_var=no
9259 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9260 hardcode_libdir_separator=':'
9261 link_all_deplibs=yes
9262 export_dynamic_flag_spec='${wl}-Bexport'
9263 runpath_var='LD_RUN_PATH'
9265 if test "$GCC" = yes; then
9266 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9268 else
9269 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9270 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9274 uts4*)
9275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_shlibpath_var=no
9281 ld_shlibs=no
9283 esac
9286 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9287 echo "${ECHO_T}$ld_shlibs" >&6; }
9288 test "$ld_shlibs" = no && can_build_shared=no
9291 # Do we need to explicitly link libc?
9293 case "x$archive_cmds_need_lc" in
9294 x|xyes)
9295 # Assume -lc should be added
9296 archive_cmds_need_lc=yes
9298 if test "$enable_shared" = yes && test "$GCC" = yes; then
9299 case $archive_cmds in
9300 *'~'*)
9301 # FIXME: we may have to deal with multi-command sequences.
9303 '$CC '*)
9304 # Test whether the compiler implicitly links with -lc since on some
9305 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9306 # to ld, don't add -lc before -lgcc.
9307 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9308 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9309 $rm conftest*
9310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313 (eval $ac_compile) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } 2>conftest.err; then
9317 soname=conftest
9318 lib=conftest
9319 libobjs=conftest.$ac_objext
9320 deplibs=
9321 wl=$lt_prog_compiler_wl
9322 pic_flag=$lt_prog_compiler_pic
9323 compiler_flags=-v
9324 linker_flags=-v
9325 verstring=
9326 output_objdir=.
9327 libname=conftest
9328 lt_save_allow_undefined_flag=$allow_undefined_flag
9329 allow_undefined_flag=
9330 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9331 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }
9335 then
9336 archive_cmds_need_lc=no
9337 else
9338 archive_cmds_need_lc=yes
9340 allow_undefined_flag=$lt_save_allow_undefined_flag
9341 else
9342 cat conftest.err 1>&5
9344 $rm conftest*
9345 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9346 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9348 esac
9351 esac
9353 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9354 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9355 library_names_spec=
9356 libname_spec='lib$name'
9357 soname_spec=
9358 shrext_cmds=".so"
9359 postinstall_cmds=
9360 postuninstall_cmds=
9361 finish_cmds=
9362 finish_eval=
9363 shlibpath_var=
9364 shlibpath_overrides_runpath=unknown
9365 version_type=none
9366 dynamic_linker="$host_os ld.so"
9367 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9369 if test "$GCC" = yes; then
9370 case $host_os in
9371 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9372 *) lt_awk_arg="/^libraries:/" ;;
9373 esac
9374 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9375 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9376 # if the path contains ";" then we assume it to be the separator
9377 # otherwise default to the standard path separator (i.e. ":") - it is
9378 # assumed that no part of a normal pathname contains ";" but that should
9379 # okay in the real world where ";" in dirpaths is itself problematic.
9380 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9381 else
9382 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9384 # Ok, now we have the path, separated by spaces, we can step through it
9385 # and add multilib dir if necessary.
9386 lt_tmp_lt_search_path_spec=
9387 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9388 for lt_sys_path in $lt_search_path_spec; do
9389 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9391 else
9392 test -d "$lt_sys_path" && \
9393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9395 done
9396 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9397 BEGIN {RS=" "; FS="/|\n";} {
9398 lt_foo="";
9399 lt_count=0;
9400 for (lt_i = NF; lt_i > 0; lt_i--) {
9401 if ($lt_i != "" && $lt_i != ".") {
9402 if ($lt_i == "..") {
9403 lt_count++;
9404 } else {
9405 if (lt_count == 0) {
9406 lt_foo="/" $lt_i lt_foo;
9407 } else {
9408 lt_count--;
9413 if (lt_foo != "") { lt_freq[lt_foo]++; }
9414 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9416 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9417 else
9418 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9420 need_lib_prefix=unknown
9421 hardcode_into_libs=no
9423 # when you set need_version to no, make sure it does not cause -set_version
9424 # flags to be left without arguments
9425 need_version=unknown
9427 case $host_os in
9428 aix3*)
9429 version_type=linux
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9431 shlibpath_var=LIBPATH
9433 # AIX 3 has no versioning support, so we append a major version to the name.
9434 soname_spec='${libname}${release}${shared_ext}$major'
9437 aix[4-9]*)
9438 version_type=linux
9439 need_lib_prefix=no
9440 need_version=no
9441 hardcode_into_libs=yes
9442 if test "$host_cpu" = ia64; then
9443 # AIX 5 supports IA64
9444 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9445 shlibpath_var=LD_LIBRARY_PATH
9446 else
9447 # With GCC up to 2.95.x, collect2 would create an import file
9448 # for dependence libraries. The import file would start with
9449 # the line `#! .'. This would cause the generated library to
9450 # depend on `.', always an invalid library. This was fixed in
9451 # development snapshots of GCC prior to 3.0.
9452 case $host_os in
9453 aix4 | aix4.[01] | aix4.[01].*)
9454 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9455 echo ' yes '
9456 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9458 else
9459 can_build_shared=no
9462 esac
9463 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9464 # soname into executable. Probably we can add versioning support to
9465 # collect2, so additional links can be useful in future.
9466 if test "$aix_use_runtimelinking" = yes; then
9467 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9468 # instead of lib<name>.a to let people know that these are not
9469 # typical AIX shared libraries.
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471 else
9472 # We preserve .a as extension for shared libraries through AIX4.2
9473 # and later when we are not doing run time linking.
9474 library_names_spec='${libname}${release}.a $libname.a'
9475 soname_spec='${libname}${release}${shared_ext}$major'
9477 shlibpath_var=LIBPATH
9481 amigaos*)
9482 library_names_spec='$libname.ixlibrary $libname.a'
9483 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9484 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'
9487 beos*)
9488 library_names_spec='${libname}${shared_ext}'
9489 dynamic_linker="$host_os ld.so"
9490 shlibpath_var=LIBRARY_PATH
9493 bsdi[45]*)
9494 version_type=linux
9495 need_version=no
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9501 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9502 # the default ld.so.conf also contains /usr/contrib/lib and
9503 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9504 # libtool to hard-code these into programs
9507 cygwin* | mingw* | pw32*)
9508 version_type=windows
9509 shrext_cmds=".dll"
9510 need_version=no
9511 need_lib_prefix=no
9513 case $GCC,$host_os in
9514 yes,cygwin* | yes,mingw* | yes,pw32*)
9515 library_names_spec='$libname.dll.a'
9516 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9517 postinstall_cmds='base_file=`basename \${file}`~
9518 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9519 dldir=$destdir/`dirname \$dlpath`~
9520 test -d \$dldir || mkdir -p \$dldir~
9521 $install_prog $dir/$dlname \$dldir/$dlname~
9522 chmod a+x \$dldir/$dlname'
9523 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9524 dlpath=$dir/\$dldll~
9525 $rm \$dlpath'
9526 shlibpath_overrides_runpath=yes
9528 case $host_os in
9529 cygwin*)
9530 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9531 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9532 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9534 mingw*)
9535 # MinGW DLLs use traditional 'lib' prefix
9536 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9537 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9538 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9539 # It is most probably a Windows format PATH printed by
9540 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9541 # path with ; separators, and with drive letters. We can handle the
9542 # drive letters (cygwin fileutils understands them), so leave them,
9543 # especially as we might pass files found there to a mingw objdump,
9544 # which wouldn't understand a cygwinified path. Ahh.
9545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9546 else
9547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9550 pw32*)
9551 # pw32 DLLs use 'pw' prefix rather than 'lib'
9552 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9554 esac
9558 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9560 esac
9561 dynamic_linker='Win32 ld.exe'
9562 # FIXME: first we should search . and the directory the executable is in
9563 shlibpath_var=PATH
9566 darwin* | rhapsody*)
9567 dynamic_linker="$host_os dyld"
9568 version_type=darwin
9569 need_lib_prefix=no
9570 need_version=no
9571 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9572 soname_spec='${libname}${release}${major}$shared_ext'
9573 shlibpath_overrides_runpath=yes
9574 shlibpath_var=DYLD_LIBRARY_PATH
9575 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9581 dgux*)
9582 version_type=linux
9583 need_lib_prefix=no
9584 need_version=no
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 shlibpath_var=LD_LIBRARY_PATH
9590 freebsd1*)
9591 dynamic_linker=no
9594 freebsd* | dragonfly*)
9595 # DragonFly does not have aout. When/if they implement a new
9596 # versioning mechanism, adjust this.
9597 if test -x /usr/bin/objformat; then
9598 objformat=`/usr/bin/objformat`
9599 else
9600 case $host_os in
9601 freebsd[123]*) objformat=aout ;;
9602 *) objformat=elf ;;
9603 esac
9605 version_type=freebsd-$objformat
9606 case $version_type in
9607 freebsd-elf*)
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9609 need_version=no
9610 need_lib_prefix=no
9612 freebsd-*)
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9614 need_version=yes
9616 esac
9617 shlibpath_var=LD_LIBRARY_PATH
9618 case $host_os in
9619 freebsd2*)
9620 shlibpath_overrides_runpath=yes
9622 freebsd3.[01]* | freebsdelf3.[01]*)
9623 shlibpath_overrides_runpath=yes
9624 hardcode_into_libs=yes
9626 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9627 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9628 shlibpath_overrides_runpath=no
9629 hardcode_into_libs=yes
9631 *) # from 4.6 on, and DragonFly
9632 shlibpath_overrides_runpath=yes
9633 hardcode_into_libs=yes
9635 esac
9638 gnu*)
9639 version_type=linux
9640 need_lib_prefix=no
9641 need_version=no
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9643 soname_spec='${libname}${release}${shared_ext}$major'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 hardcode_into_libs=yes
9648 hpux9* | hpux10* | hpux11*)
9649 # Give a soname corresponding to the major version so that dld.sl refuses to
9650 # link against other versions.
9651 version_type=sunos
9652 need_lib_prefix=no
9653 need_version=no
9654 case $host_cpu in
9655 ia64*)
9656 shrext_cmds='.so'
9657 hardcode_into_libs=yes
9658 dynamic_linker="$host_os dld.so"
9659 shlibpath_var=LD_LIBRARY_PATH
9660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 if test "X$HPUX_IA64_MODE" = X32; then
9664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9665 else
9666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9670 hppa*64*)
9671 shrext_cmds='.sl'
9672 hardcode_into_libs=yes
9673 dynamic_linker="$host_os dld.sl"
9674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9682 shrext_cmds='.sl'
9683 dynamic_linker="$host_os dld.sl"
9684 shlibpath_var=SHLIB_PATH
9685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9689 esac
9690 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9691 postinstall_cmds='chmod 555 $lib'
9694 interix[3-9]*)
9695 version_type=linux
9696 need_lib_prefix=no
9697 need_version=no
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9699 soname_spec='${libname}${release}${shared_ext}$major'
9700 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 shlibpath_overrides_runpath=no
9703 hardcode_into_libs=yes
9706 irix5* | irix6* | nonstopux*)
9707 case $host_os in
9708 nonstopux*) version_type=nonstopux ;;
9710 if test "$lt_cv_prog_gnu_ld" = yes; then
9711 version_type=linux
9712 else
9713 version_type=irix
9714 fi ;;
9715 esac
9716 need_lib_prefix=no
9717 need_version=no
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9720 case $host_os in
9721 irix5* | nonstopux*)
9722 libsuff= shlibsuff=
9725 case $LD in # libtool.m4 will add one of these switches to LD
9726 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9727 libsuff= shlibsuff= libmagic=32-bit;;
9728 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9729 libsuff=32 shlibsuff=N32 libmagic=N32;;
9730 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9731 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9732 *) libsuff= shlibsuff= libmagic=never-match;;
9733 esac
9735 esac
9736 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9737 shlibpath_overrides_runpath=no
9738 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9739 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9740 hardcode_into_libs=yes
9743 # No shared lib support for Linux oldld, aout, or coff.
9744 linux*oldld* | linux*aout* | linux*coff*)
9745 dynamic_linker=no
9748 # This must be Linux ELF.
9749 linux* | k*bsd*-gnu)
9750 version_type=linux
9751 need_lib_prefix=no
9752 need_version=no
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9756 shlibpath_var=LD_LIBRARY_PATH
9757 shlibpath_overrides_runpath=no
9758 # This implies no fast_install, which is unacceptable.
9759 # Some rework will be needed to allow for fast_install
9760 # before this can be enabled.
9761 hardcode_into_libs=yes
9763 # Append ld.so.conf contents to the search path
9764 if test -f /etc/ld.so.conf; then
9765 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9766 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9769 # We used to test for /lib/ld.so.1 and disable shared libraries on
9770 # powerpc, because MkLinux only supported shared libraries with the
9771 # GNU dynamic linker. Since this was broken with cross compilers,
9772 # most powerpc-linux boxes support dynamic linking these days and
9773 # people can always --disable-shared, the test was removed, and we
9774 # assume the GNU/Linux dynamic linker is in use.
9775 dynamic_linker='GNU/Linux ld.so'
9778 netbsdelf*-gnu)
9779 version_type=linux
9780 need_lib_prefix=no
9781 need_version=no
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 shlibpath_var=LD_LIBRARY_PATH
9785 shlibpath_overrides_runpath=no
9786 hardcode_into_libs=yes
9787 dynamic_linker='NetBSD ld.elf_so'
9790 netbsd*)
9791 version_type=sunos
9792 need_lib_prefix=no
9793 need_version=no
9794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9797 dynamic_linker='NetBSD (a.out) ld.so'
9798 else
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 dynamic_linker='NetBSD ld.elf_so'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 shlibpath_overrides_runpath=yes
9805 hardcode_into_libs=yes
9808 newsos6)
9809 version_type=linux
9810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811 shlibpath_var=LD_LIBRARY_PATH
9812 shlibpath_overrides_runpath=yes
9815 nto-qnx*)
9816 version_type=linux
9817 need_lib_prefix=no
9818 need_version=no
9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820 soname_spec='${libname}${release}${shared_ext}$major'
9821 shlibpath_var=LD_LIBRARY_PATH
9822 shlibpath_overrides_runpath=yes
9825 openbsd*)
9826 version_type=sunos
9827 sys_lib_dlsearch_path_spec="/usr/lib"
9828 need_lib_prefix=no
9829 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9830 case $host_os in
9831 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9832 *) need_version=no ;;
9833 esac
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9838 case $host_os in
9839 openbsd2.[89] | openbsd2.[89].*)
9840 shlibpath_overrides_runpath=no
9843 shlibpath_overrides_runpath=yes
9845 esac
9846 else
9847 shlibpath_overrides_runpath=yes
9851 os2*)
9852 libname_spec='$name'
9853 shrext_cmds=".dll"
9854 need_lib_prefix=no
9855 library_names_spec='$libname${shared_ext} $libname.a'
9856 dynamic_linker='OS/2 ld.exe'
9857 shlibpath_var=LIBPATH
9860 osf3* | osf4* | osf5*)
9861 version_type=osf
9862 need_lib_prefix=no
9863 need_version=no
9864 soname_spec='${libname}${release}${shared_ext}$major'
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9868 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9871 rdos*)
9872 dynamic_linker=no
9875 solaris*)
9876 version_type=linux
9877 need_lib_prefix=no
9878 need_version=no
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 shlibpath_overrides_runpath=yes
9883 hardcode_into_libs=yes
9884 # ldd complains unless libraries are executable
9885 postinstall_cmds='chmod +x $lib'
9888 sunos4*)
9889 version_type=sunos
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9891 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 shlibpath_overrides_runpath=yes
9894 if test "$with_gnu_ld" = yes; then
9895 need_lib_prefix=no
9897 need_version=yes
9900 sysv4 | sysv4.3*)
9901 version_type=linux
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 case $host_vendor in
9906 sni)
9907 shlibpath_overrides_runpath=no
9908 need_lib_prefix=no
9909 export_dynamic_flag_spec='${wl}-Blargedynsym'
9910 runpath_var=LD_RUN_PATH
9912 siemens)
9913 need_lib_prefix=no
9915 motorola)
9916 need_lib_prefix=no
9917 need_version=no
9918 shlibpath_overrides_runpath=no
9919 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9921 esac
9924 sysv4*MP*)
9925 if test -d /usr/nec ;then
9926 version_type=linux
9927 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9928 soname_spec='$libname${shared_ext}.$major'
9929 shlibpath_var=LD_LIBRARY_PATH
9933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9934 version_type=freebsd-elf
9935 need_lib_prefix=no
9936 need_version=no
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9938 soname_spec='${libname}${release}${shared_ext}$major'
9939 shlibpath_var=LD_LIBRARY_PATH
9940 hardcode_into_libs=yes
9941 if test "$with_gnu_ld" = yes; then
9942 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9943 shlibpath_overrides_runpath=no
9944 else
9945 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9946 shlibpath_overrides_runpath=yes
9947 case $host_os in
9948 sco3.2v5*)
9949 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9951 esac
9953 sys_lib_dlsearch_path_spec='/usr/lib'
9956 uts4*)
9957 version_type=linux
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 soname_spec='${libname}${release}${shared_ext}$major'
9960 shlibpath_var=LD_LIBRARY_PATH
9964 dynamic_linker=no
9966 esac
9967 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9968 echo "${ECHO_T}$dynamic_linker" >&6; }
9969 test "$dynamic_linker" = no && can_build_shared=no
9971 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9977 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9978 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9984 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9987 if test "$GCC" = yes; then
9988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9991 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9992 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9993 hardcode_action=
9994 if test -n "$hardcode_libdir_flag_spec" || \
9995 test -n "$runpath_var" || \
9996 test "X$hardcode_automatic" = "Xyes" ; then
9998 # We can hardcode non-existant directories.
9999 if test "$hardcode_direct" != no &&
10000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10001 # have to relink, otherwise we might link with an installed library
10002 # when we should be linking with a yet-to-be-installed one
10003 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10004 test "$hardcode_minus_L" != no; then
10005 # Linking always hardcodes the temporary library directory.
10006 hardcode_action=relink
10007 else
10008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10009 hardcode_action=immediate
10011 else
10012 # We cannot hardcode anything, or else we can only hardcode existing
10013 # directories.
10014 hardcode_action=unsupported
10016 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10017 echo "${ECHO_T}$hardcode_action" >&6; }
10019 if test "$hardcode_action" = relink; then
10020 # Fast installation is not supported
10021 enable_fast_install=no
10022 elif test "$shlibpath_overrides_runpath" = yes ||
10023 test "$enable_shared" = no; then
10024 # Fast installation is not necessary
10025 enable_fast_install=needless
10028 striplib=
10029 old_striplib=
10030 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10031 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10032 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10033 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10034 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10035 { echo "$as_me:$LINENO: result: yes" >&5
10036 echo "${ECHO_T}yes" >&6; }
10037 else
10038 # FIXME - insert some real tests, host_os isn't really good enough
10039 case $host_os in
10040 darwin*)
10041 if test -n "$STRIP" ; then
10042 striplib="$STRIP -x"
10043 old_striplib="$STRIP -S"
10044 { echo "$as_me:$LINENO: result: yes" >&5
10045 echo "${ECHO_T}yes" >&6; }
10046 else
10047 { echo "$as_me:$LINENO: result: no" >&5
10048 echo "${ECHO_T}no" >&6; }
10052 { echo "$as_me:$LINENO: result: no" >&5
10053 echo "${ECHO_T}no" >&6; }
10055 esac
10058 if test "x$enable_dlopen" != xyes; then
10059 enable_dlopen=unknown
10060 enable_dlopen_self=unknown
10061 enable_dlopen_self_static=unknown
10062 else
10063 lt_cv_dlopen=no
10064 lt_cv_dlopen_libs=
10066 case $host_os in
10067 beos*)
10068 lt_cv_dlopen="load_add_on"
10069 lt_cv_dlopen_libs=
10070 lt_cv_dlopen_self=yes
10073 mingw* | pw32*)
10074 lt_cv_dlopen="LoadLibrary"
10075 lt_cv_dlopen_libs=
10078 cygwin*)
10079 lt_cv_dlopen="dlopen"
10080 lt_cv_dlopen_libs=
10083 darwin*)
10084 # if libdl is installed we need to link against it
10085 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090 ac_check_lib_save_LIBS=$LIBS
10091 LIBS="-ldl $LIBS"
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10099 /* Override any GCC internal prototype to avoid an error.
10100 Use char because int might match the return type of a GCC
10101 builtin and then its argument prototype would still apply. */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 char dlopen ();
10107 main ()
10109 return dlopen ();
10111 return 0;
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10122 ac_status=$?
10123 grep -v '^ *+' conftest.er1 >conftest.err
10124 rm -f conftest.er1
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && {
10128 test -z "$ac_c_werror_flag" ||
10129 test ! -s conftest.err
10130 } && test -s conftest$ac_exeext &&
10131 $as_test_x conftest$ac_exeext; then
10132 ac_cv_lib_dl_dlopen=yes
10133 else
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_lib_dl_dlopen=no
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10145 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10146 if test $ac_cv_lib_dl_dlopen = yes; then
10147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10148 else
10150 lt_cv_dlopen="dyld"
10151 lt_cv_dlopen_libs=
10152 lt_cv_dlopen_self=yes
10159 { echo "$as_me:$LINENO: checking for shl_load" >&5
10160 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10161 if test "${ac_cv_func_shl_load+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164 cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h. */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10172 #define shl_load innocuous_shl_load
10174 /* System header to define __stub macros and hopefully few prototypes,
10175 which can conflict with char shl_load (); below.
10176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10177 <limits.h> exists even on freestanding compilers. */
10179 #ifdef __STDC__
10180 # include <limits.h>
10181 #else
10182 # include <assert.h>
10183 #endif
10185 #undef shl_load
10187 /* Override any GCC internal prototype to avoid an error.
10188 Use char because int might match the return type of a GCC
10189 builtin and then its argument prototype would still apply. */
10190 #ifdef __cplusplus
10191 extern "C"
10192 #endif
10193 char shl_load ();
10194 /* The GNU C library defines this for functions which it implements
10195 to always fail with ENOSYS. Some functions are actually named
10196 something starting with __ and the normal name is an alias. */
10197 #if defined __stub_shl_load || defined __stub___shl_load
10198 choke me
10199 #endif
10202 main ()
10204 return shl_load ();
10206 return 0;
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (ac_try="$ac_link"
10211 case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_link") 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && {
10223 test -z "$ac_c_werror_flag" ||
10224 test ! -s conftest.err
10225 } && test -s conftest$ac_exeext &&
10226 $as_test_x conftest$ac_exeext; then
10227 ac_cv_func_shl_load=yes
10228 else
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10232 ac_cv_func_shl_load=no
10235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10236 conftest$ac_exeext conftest.$ac_ext
10238 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10239 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10240 if test $ac_cv_func_shl_load = yes; then
10241 lt_cv_dlopen="shl_load"
10242 else
10243 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10244 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10245 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248 ac_check_lib_save_LIBS=$LIBS
10249 LIBS="-ldld $LIBS"
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h. */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char shl_load ();
10265 main ()
10267 return shl_load ();
10269 return 0;
10271 _ACEOF
10272 rm -f conftest.$ac_objext conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10277 esac
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_link") 2>conftest.er1
10280 ac_status=$?
10281 grep -v '^ *+' conftest.er1 >conftest.err
10282 rm -f conftest.er1
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && {
10286 test -z "$ac_c_werror_flag" ||
10287 test ! -s conftest.err
10288 } && test -s conftest$ac_exeext &&
10289 $as_test_x conftest$ac_exeext; then
10290 ac_cv_lib_dld_shl_load=yes
10291 else
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 ac_cv_lib_dld_shl_load=no
10298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299 conftest$ac_exeext conftest.$ac_ext
10300 LIBS=$ac_check_lib_save_LIBS
10302 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10303 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10304 if test $ac_cv_lib_dld_shl_load = yes; then
10305 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10306 else
10307 { echo "$as_me:$LINENO: checking for dlopen" >&5
10308 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10309 if test "${ac_cv_func_dlopen+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 cat >conftest.$ac_ext <<_ACEOF
10313 /* confdefs.h. */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10318 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10320 #define dlopen innocuous_dlopen
10322 /* System header to define __stub macros and hopefully few prototypes,
10323 which can conflict with char dlopen (); below.
10324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10325 <limits.h> exists even on freestanding compilers. */
10327 #ifdef __STDC__
10328 # include <limits.h>
10329 #else
10330 # include <assert.h>
10331 #endif
10333 #undef dlopen
10335 /* Override any GCC internal prototype to avoid an error.
10336 Use char because int might match the return type of a GCC
10337 builtin and then its argument prototype would still apply. */
10338 #ifdef __cplusplus
10339 extern "C"
10340 #endif
10341 char dlopen ();
10342 /* The GNU C library defines this for functions which it implements
10343 to always fail with ENOSYS. Some functions are actually named
10344 something starting with __ and the normal name is an alias. */
10345 #if defined __stub_dlopen || defined __stub___dlopen
10346 choke me
10347 #endif
10350 main ()
10352 return dlopen ();
10354 return 0;
10356 _ACEOF
10357 rm -f conftest.$ac_objext conftest$ac_exeext
10358 if { (ac_try="$ac_link"
10359 case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_link") 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && {
10371 test -z "$ac_c_werror_flag" ||
10372 test ! -s conftest.err
10373 } && test -s conftest$ac_exeext &&
10374 $as_test_x conftest$ac_exeext; then
10375 ac_cv_func_dlopen=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_cv_func_dlopen=no
10383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384 conftest$ac_exeext conftest.$ac_ext
10386 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10387 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10388 if test $ac_cv_func_dlopen = yes; then
10389 lt_cv_dlopen="dlopen"
10390 else
10391 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10392 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10393 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396 ac_check_lib_save_LIBS=$LIBS
10397 LIBS="-ldl $LIBS"
10398 cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h. */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10405 /* Override any GCC internal prototype to avoid an error.
10406 Use char because int might match the return type of a GCC
10407 builtin and then its argument prototype would still apply. */
10408 #ifdef __cplusplus
10409 extern "C"
10410 #endif
10411 char dlopen ();
10413 main ()
10415 return dlopen ();
10417 return 0;
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_link") 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } && {
10434 test -z "$ac_c_werror_flag" ||
10435 test ! -s conftest.err
10436 } && test -s conftest$ac_exeext &&
10437 $as_test_x conftest$ac_exeext; then
10438 ac_cv_lib_dl_dlopen=yes
10439 else
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_cv_lib_dl_dlopen=no
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10450 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10452 if test $ac_cv_lib_dl_dlopen = yes; then
10453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10454 else
10455 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10456 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10457 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460 ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-lsvld $LIBS"
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10469 /* Override any GCC internal prototype to avoid an error.
10470 Use char because int might match the return type of a GCC
10471 builtin and then its argument prototype would still apply. */
10472 #ifdef __cplusplus
10473 extern "C"
10474 #endif
10475 char dlopen ();
10477 main ()
10479 return dlopen ();
10481 return 0;
10483 _ACEOF
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (ac_try="$ac_link"
10486 case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_link") 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && {
10498 test -z "$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 } && test -s conftest$ac_exeext &&
10501 $as_test_x conftest$ac_exeext; then
10502 ac_cv_lib_svld_dlopen=yes
10503 else
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 ac_cv_lib_svld_dlopen=no
10510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511 conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10514 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10515 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10516 if test $ac_cv_lib_svld_dlopen = yes; then
10517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10518 else
10519 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10520 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10521 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524 ac_check_lib_save_LIBS=$LIBS
10525 LIBS="-ldld $LIBS"
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10533 /* Override any GCC internal prototype to avoid an error.
10534 Use char because int might match the return type of a GCC
10535 builtin and then its argument prototype would still apply. */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 char dld_link ();
10541 main ()
10543 return dld_link ();
10545 return 0;
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (ac_try="$ac_link"
10550 case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_link") 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest$ac_exeext &&
10565 $as_test_x conftest$ac_exeext; then
10566 ac_cv_lib_dld_dld_link=yes
10567 else
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_cv_lib_dld_dld_link=no
10574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LIBS=$ac_check_lib_save_LIBS
10578 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10579 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10580 if test $ac_cv_lib_dld_dld_link = yes; then
10581 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10600 esac
10602 if test "x$lt_cv_dlopen" != xno; then
10603 enable_dlopen=yes
10604 else
10605 enable_dlopen=no
10608 case $lt_cv_dlopen in
10609 dlopen)
10610 save_CPPFLAGS="$CPPFLAGS"
10611 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10613 save_LDFLAGS="$LDFLAGS"
10614 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10616 save_LIBS="$LIBS"
10617 LIBS="$lt_cv_dlopen_libs $LIBS"
10619 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10620 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10621 if test "${lt_cv_dlopen_self+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 else
10624 if test "$cross_compiling" = yes; then :
10625 lt_cv_dlopen_self=cross
10626 else
10627 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10628 lt_status=$lt_dlunknown
10629 cat > conftest.$ac_ext <<EOF
10630 #line 10630 "configure"
10631 #include "confdefs.h"
10633 #if HAVE_DLFCN_H
10634 #include <dlfcn.h>
10635 #endif
10637 #include <stdio.h>
10639 #ifdef RTLD_GLOBAL
10640 # define LT_DLGLOBAL RTLD_GLOBAL
10641 #else
10642 # ifdef DL_GLOBAL
10643 # define LT_DLGLOBAL DL_GLOBAL
10644 # else
10645 # define LT_DLGLOBAL 0
10646 # endif
10647 #endif
10649 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10650 find out it does not work in some platform. */
10651 #ifndef LT_DLLAZY_OR_NOW
10652 # ifdef RTLD_LAZY
10653 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10654 # else
10655 # ifdef DL_LAZY
10656 # define LT_DLLAZY_OR_NOW DL_LAZY
10657 # else
10658 # ifdef RTLD_NOW
10659 # define LT_DLLAZY_OR_NOW RTLD_NOW
10660 # else
10661 # ifdef DL_NOW
10662 # define LT_DLLAZY_OR_NOW DL_NOW
10663 # else
10664 # define LT_DLLAZY_OR_NOW 0
10665 # endif
10666 # endif
10667 # endif
10668 # endif
10669 #endif
10671 #ifdef __cplusplus
10672 extern "C" void exit (int);
10673 #endif
10675 void fnord() { int i=42;}
10676 int main ()
10678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10679 int status = $lt_dlunknown;
10681 if (self)
10683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10684 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10685 /* dlclose (self); */
10687 else
10688 puts (dlerror ());
10690 exit (status);
10693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694 (eval $ac_link) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10698 (./conftest; exit; ) >&5 2>/dev/null
10699 lt_status=$?
10700 case x$lt_status in
10701 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10702 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10703 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10704 esac
10705 else :
10706 # compilation failed
10707 lt_cv_dlopen_self=no
10710 rm -fr conftest*
10714 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10715 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10717 if test "x$lt_cv_dlopen_self" = xyes; then
10718 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10719 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10720 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10721 if test "${lt_cv_dlopen_self_static+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724 if test "$cross_compiling" = yes; then :
10725 lt_cv_dlopen_self_static=cross
10726 else
10727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10728 lt_status=$lt_dlunknown
10729 cat > conftest.$ac_ext <<EOF
10730 #line 10730 "configure"
10731 #include "confdefs.h"
10733 #if HAVE_DLFCN_H
10734 #include <dlfcn.h>
10735 #endif
10737 #include <stdio.h>
10739 #ifdef RTLD_GLOBAL
10740 # define LT_DLGLOBAL RTLD_GLOBAL
10741 #else
10742 # ifdef DL_GLOBAL
10743 # define LT_DLGLOBAL DL_GLOBAL
10744 # else
10745 # define LT_DLGLOBAL 0
10746 # endif
10747 #endif
10749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10750 find out it does not work in some platform. */
10751 #ifndef LT_DLLAZY_OR_NOW
10752 # ifdef RTLD_LAZY
10753 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10754 # else
10755 # ifdef DL_LAZY
10756 # define LT_DLLAZY_OR_NOW DL_LAZY
10757 # else
10758 # ifdef RTLD_NOW
10759 # define LT_DLLAZY_OR_NOW RTLD_NOW
10760 # else
10761 # ifdef DL_NOW
10762 # define LT_DLLAZY_OR_NOW DL_NOW
10763 # else
10764 # define LT_DLLAZY_OR_NOW 0
10765 # endif
10766 # endif
10767 # endif
10768 # endif
10769 #endif
10771 #ifdef __cplusplus
10772 extern "C" void exit (int);
10773 #endif
10775 void fnord() { int i=42;}
10776 int main ()
10778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10779 int status = $lt_dlunknown;
10781 if (self)
10783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10784 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10785 /* dlclose (self); */
10787 else
10788 puts (dlerror ());
10790 exit (status);
10793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10794 (eval $ac_link) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10798 (./conftest; exit; ) >&5 2>/dev/null
10799 lt_status=$?
10800 case x$lt_status in
10801 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10802 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10803 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10804 esac
10805 else :
10806 # compilation failed
10807 lt_cv_dlopen_self_static=no
10810 rm -fr conftest*
10814 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10815 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10818 CPPFLAGS="$save_CPPFLAGS"
10819 LDFLAGS="$save_LDFLAGS"
10820 LIBS="$save_LIBS"
10822 esac
10824 case $lt_cv_dlopen_self in
10825 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10826 *) enable_dlopen_self=unknown ;;
10827 esac
10829 case $lt_cv_dlopen_self_static in
10830 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10831 *) enable_dlopen_self_static=unknown ;;
10832 esac
10836 # Report which library types will actually be built
10837 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10838 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10839 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10840 echo "${ECHO_T}$can_build_shared" >&6; }
10842 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10843 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10844 test "$can_build_shared" = "no" && enable_shared=no
10846 # On AIX, shared libraries and static libraries use the same namespace, and
10847 # are all built from PIC.
10848 case $host_os in
10849 aix3*)
10850 test "$enable_shared" = yes && enable_static=no
10851 if test -n "$RANLIB"; then
10852 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10853 postinstall_cmds='$RANLIB $lib'
10857 aix[4-9]*)
10858 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10859 test "$enable_shared" = yes && enable_static=no
10862 esac
10863 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10864 echo "${ECHO_T}$enable_shared" >&6; }
10866 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10867 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10868 # Make sure either enable_shared or enable_static is yes.
10869 test "$enable_shared" = yes || enable_static=yes
10870 { echo "$as_me:$LINENO: result: $enable_static" >&5
10871 echo "${ECHO_T}$enable_static" >&6; }
10873 # The else clause should only fire when bootstrapping the
10874 # libtool distribution, otherwise you forgot to ship ltmain.sh
10875 # with your package, and you will get complaints that there are
10876 # no rules to generate ltmain.sh.
10877 if test -f "$ltmain"; then
10878 # See if we are running on zsh, and set the options which allow our commands through
10879 # without removal of \ escapes.
10880 if test -n "${ZSH_VERSION+set}" ; then
10881 setopt NO_GLOB_SUBST
10883 # Now quote all the things that may contain metacharacters while being
10884 # careful not to overquote the AC_SUBSTed values. We take copies of the
10885 # variables and quote the copies for generation of the libtool script.
10886 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10887 SED SHELL STRIP \
10888 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10889 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10890 deplibs_check_method reload_flag reload_cmds need_locks \
10891 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10892 lt_cv_sys_global_symbol_to_c_name_address \
10893 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10894 old_postinstall_cmds old_postuninstall_cmds \
10895 compiler \
10896 CC \
10897 LD \
10898 lt_prog_compiler_wl \
10899 lt_prog_compiler_pic \
10900 lt_prog_compiler_static \
10901 lt_prog_compiler_no_builtin_flag \
10902 export_dynamic_flag_spec \
10903 thread_safe_flag_spec \
10904 whole_archive_flag_spec \
10905 enable_shared_with_static_runtimes \
10906 old_archive_cmds \
10907 old_archive_from_new_cmds \
10908 predep_objects \
10909 postdep_objects \
10910 predeps \
10911 postdeps \
10912 compiler_lib_search_path \
10913 compiler_lib_search_dirs \
10914 archive_cmds \
10915 archive_expsym_cmds \
10916 postinstall_cmds \
10917 postuninstall_cmds \
10918 old_archive_from_expsyms_cmds \
10919 allow_undefined_flag \
10920 no_undefined_flag \
10921 export_symbols_cmds \
10922 hardcode_libdir_flag_spec \
10923 hardcode_libdir_flag_spec_ld \
10924 hardcode_libdir_separator \
10925 hardcode_automatic \
10926 module_cmds \
10927 module_expsym_cmds \
10928 lt_cv_prog_compiler_c_o \
10929 fix_srcfile_path \
10930 exclude_expsyms \
10931 include_expsyms; do
10933 case $var in
10934 old_archive_cmds | \
10935 old_archive_from_new_cmds | \
10936 archive_cmds | \
10937 archive_expsym_cmds | \
10938 module_cmds | \
10939 module_expsym_cmds | \
10940 old_archive_from_expsyms_cmds | \
10941 export_symbols_cmds | \
10942 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10943 postinstall_cmds | postuninstall_cmds | \
10944 old_postinstall_cmds | old_postuninstall_cmds | \
10945 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10946 # Double-quote double-evaled strings.
10947 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10950 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10952 esac
10953 done
10955 case $lt_echo in
10956 *'\$0 --fallback-echo"')
10957 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10959 esac
10961 cfgfile="${ofile}T"
10962 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10963 $rm -f "$cfgfile"
10964 { echo "$as_me:$LINENO: creating $ofile" >&5
10965 echo "$as_me: creating $ofile" >&6;}
10967 cat <<__EOF__ >> "$cfgfile"
10968 #! $SHELL
10970 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10971 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10972 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10974 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10975 # Free Software Foundation, Inc.
10977 # This file is part of GNU Libtool:
10978 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10980 # This program is free software; you can redistribute it and/or modify
10981 # it under the terms of the GNU General Public License as published by
10982 # the Free Software Foundation; either version 2 of the License, or
10983 # (at your option) any later version.
10985 # This program is distributed in the hope that it will be useful, but
10986 # WITHOUT ANY WARRANTY; without even the implied warranty of
10987 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10988 # General Public License for more details.
10990 # You should have received a copy of the GNU General Public License
10991 # along with this program; if not, write to the Free Software
10992 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10994 # As a special exception to the GNU General Public License, if you
10995 # distribute this file as part of a program that contains a
10996 # configuration script generated by Autoconf, you may include it under
10997 # the same distribution terms that you use for the rest of that program.
10999 # A sed program that does not truncate output.
11000 SED=$lt_SED
11002 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11003 Xsed="$SED -e 1s/^X//"
11005 # The HP-UX ksh and POSIX shell print the target directory to stdout
11006 # if CDPATH is set.
11007 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11009 # The names of the tagged configurations supported by this script.
11010 available_tags=
11012 # ### BEGIN LIBTOOL CONFIG
11014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11016 # Shell to use when invoking shell scripts.
11017 SHELL=$lt_SHELL
11019 # Whether or not to build shared libraries.
11020 build_libtool_libs=$enable_shared
11022 # Whether or not to build static libraries.
11023 build_old_libs=$enable_static
11025 # Whether or not to add -lc for building shared libraries.
11026 build_libtool_need_lc=$archive_cmds_need_lc
11028 # Whether or not to disallow shared libs when runtime libs are static
11029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11031 # Whether or not to optimize for fast installation.
11032 fast_install=$enable_fast_install
11034 # The host system.
11035 host_alias=$host_alias
11036 host=$host
11037 host_os=$host_os
11039 # The build system.
11040 build_alias=$build_alias
11041 build=$build
11042 build_os=$build_os
11044 # An echo program that does not interpret backslashes.
11045 echo=$lt_echo
11047 # The archiver.
11048 AR=$lt_AR
11049 AR_FLAGS=$lt_AR_FLAGS
11051 # A C compiler.
11052 LTCC=$lt_LTCC
11054 # LTCC compiler flags.
11055 LTCFLAGS=$lt_LTCFLAGS
11057 # A language-specific compiler.
11058 CC=$lt_compiler
11060 # Is the compiler the GNU C compiler?
11061 with_gcc=$GCC
11063 # An ERE matcher.
11064 EGREP=$lt_EGREP
11066 # The linker used to build libraries.
11067 LD=$lt_LD
11069 # Whether we need hard or soft links.
11070 LN_S=$lt_LN_S
11072 # A BSD-compatible nm program.
11073 NM=$lt_NM
11075 # A symbol stripping program
11076 STRIP=$lt_STRIP
11078 # Used to examine libraries when file_magic_cmd begins "file"
11079 MAGIC_CMD=$MAGIC_CMD
11081 # Used on cygwin: DLL creation program.
11082 DLLTOOL="$DLLTOOL"
11084 # Used on cygwin: object dumper.
11085 OBJDUMP="$OBJDUMP"
11087 # Used on cygwin: assembler.
11088 AS="$AS"
11090 # The name of the directory that contains temporary libtool files.
11091 objdir=$objdir
11093 # How to create reloadable object files.
11094 reload_flag=$lt_reload_flag
11095 reload_cmds=$lt_reload_cmds
11097 # How to pass a linker flag through the compiler.
11098 wl=$lt_lt_prog_compiler_wl
11100 # Object file suffix (normally "o").
11101 objext="$ac_objext"
11103 # Old archive suffix (normally "a").
11104 libext="$libext"
11106 # Shared library suffix (normally ".so").
11107 shrext_cmds='$shrext_cmds'
11109 # Executable file suffix (normally "").
11110 exeext="$exeext"
11112 # Additional compiler flags for building library objects.
11113 pic_flag=$lt_lt_prog_compiler_pic
11114 pic_mode=$pic_mode
11116 # What is the maximum length of a command?
11117 max_cmd_len=$lt_cv_sys_max_cmd_len
11119 # Does compiler simultaneously support -c and -o options?
11120 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11122 # Must we lock files when doing compilation?
11123 need_locks=$lt_need_locks
11125 # Do we need the lib prefix for modules?
11126 need_lib_prefix=$need_lib_prefix
11128 # Do we need a version for libraries?
11129 need_version=$need_version
11131 # Whether dlopen is supported.
11132 dlopen_support=$enable_dlopen
11134 # Whether dlopen of programs is supported.
11135 dlopen_self=$enable_dlopen_self
11137 # Whether dlopen of statically linked programs is supported.
11138 dlopen_self_static=$enable_dlopen_self_static
11140 # Compiler flag to prevent dynamic linking.
11141 link_static_flag=$lt_lt_prog_compiler_static
11143 # Compiler flag to turn off builtin functions.
11144 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11146 # Compiler flag to allow reflexive dlopens.
11147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11149 # Compiler flag to generate shared objects directly from archives.
11150 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11152 # Compiler flag to generate thread-safe objects.
11153 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11155 # Library versioning type.
11156 version_type=$version_type
11158 # Format of library name prefix.
11159 libname_spec=$lt_libname_spec
11161 # List of archive names. First name is the real one, the rest are links.
11162 # The last name is the one that the linker finds with -lNAME.
11163 library_names_spec=$lt_library_names_spec
11165 # The coded name of the library, if different from the real name.
11166 soname_spec=$lt_soname_spec
11168 # Commands used to build and install an old-style archive.
11169 RANLIB=$lt_RANLIB
11170 old_archive_cmds=$lt_old_archive_cmds
11171 old_postinstall_cmds=$lt_old_postinstall_cmds
11172 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11174 # Create an old-style archive from a shared archive.
11175 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11177 # Create a temporary old-style archive to link instead of a shared archive.
11178 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11180 # Commands used to build and install a shared archive.
11181 archive_cmds=$lt_archive_cmds
11182 archive_expsym_cmds=$lt_archive_expsym_cmds
11183 postinstall_cmds=$lt_postinstall_cmds
11184 postuninstall_cmds=$lt_postuninstall_cmds
11186 # Commands used to build a loadable module (assumed same as above if empty)
11187 module_cmds=$lt_module_cmds
11188 module_expsym_cmds=$lt_module_expsym_cmds
11190 # Commands to strip libraries.
11191 old_striplib=$lt_old_striplib
11192 striplib=$lt_striplib
11194 # Dependencies to place before the objects being linked to create a
11195 # shared library.
11196 predep_objects=$lt_predep_objects
11198 # Dependencies to place after the objects being linked to create a
11199 # shared library.
11200 postdep_objects=$lt_postdep_objects
11202 # Dependencies to place before the objects being linked to create a
11203 # shared library.
11204 predeps=$lt_predeps
11206 # Dependencies to place after the objects being linked to create a
11207 # shared library.
11208 postdeps=$lt_postdeps
11210 # The directories searched by this compiler when creating a shared
11211 # library
11212 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11214 # The library search path used internally by the compiler when linking
11215 # a shared library.
11216 compiler_lib_search_path=$lt_compiler_lib_search_path
11218 # Method to check whether dependent libraries are shared objects.
11219 deplibs_check_method=$lt_deplibs_check_method
11221 # Command to use when deplibs_check_method == file_magic.
11222 file_magic_cmd=$lt_file_magic_cmd
11224 # Flag that allows shared libraries with undefined symbols to be built.
11225 allow_undefined_flag=$lt_allow_undefined_flag
11227 # Flag that forces no undefined symbols.
11228 no_undefined_flag=$lt_no_undefined_flag
11230 # Commands used to finish a libtool library installation in a directory.
11231 finish_cmds=$lt_finish_cmds
11233 # Same as above, but a single script fragment to be evaled but not shown.
11234 finish_eval=$lt_finish_eval
11236 # Take the output of nm and produce a listing of raw symbols and C names.
11237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11239 # Transform the output of nm in a proper C declaration
11240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11242 # Transform the output of nm in a C name address pair
11243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11245 # This is the shared library runtime path variable.
11246 runpath_var=$runpath_var
11248 # This is the shared library path variable.
11249 shlibpath_var=$shlibpath_var
11251 # Is shlibpath searched before the hard-coded library search path?
11252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11254 # How to hardcode a shared library path into an executable.
11255 hardcode_action=$hardcode_action
11257 # Whether we should hardcode library paths into libraries.
11258 hardcode_into_libs=$hardcode_into_libs
11260 # Flag to hardcode \$libdir into a binary during linking.
11261 # This must work even if \$libdir does not exist.
11262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11264 # If ld is used when linking, flag to hardcode \$libdir into
11265 # a binary during linking. This must work even if \$libdir does
11266 # not exist.
11267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11269 # Whether we need a single -rpath flag with a separated argument.
11270 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11273 # resulting binary.
11274 hardcode_direct=$hardcode_direct
11276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11277 # resulting binary.
11278 hardcode_minus_L=$hardcode_minus_L
11280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11281 # the resulting binary.
11282 hardcode_shlibpath_var=$hardcode_shlibpath_var
11284 # Set to yes if building a shared library automatically hardcodes DIR into the library
11285 # and all subsequent libraries and executables linked against it.
11286 hardcode_automatic=$hardcode_automatic
11288 # Variables whose values should be saved in libtool wrapper scripts and
11289 # restored at relink time.
11290 variables_saved_for_relink="$variables_saved_for_relink"
11292 # Whether libtool must link a program against all its dependency libraries.
11293 link_all_deplibs=$link_all_deplibs
11295 # Compile-time system search path for libraries
11296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11298 # Run-time system search path for libraries
11299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11301 # Fix the shell variable \$srcfile for the compiler.
11302 fix_srcfile_path=$lt_fix_srcfile_path
11304 # Set to yes if exported symbols are required.
11305 always_export_symbols=$always_export_symbols
11307 # The commands to list exported symbols.
11308 export_symbols_cmds=$lt_export_symbols_cmds
11310 # The commands to extract the exported symbol list from a shared archive.
11311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11313 # Symbols that should not be listed in the preloaded symbols.
11314 exclude_expsyms=$lt_exclude_expsyms
11316 # Symbols that must always be exported.
11317 include_expsyms=$lt_include_expsyms
11319 # ### END LIBTOOL CONFIG
11321 __EOF__
11324 case $host_os in
11325 aix3*)
11326 cat <<\EOF >> "$cfgfile"
11328 # AIX sometimes has problems with the GCC collect2 program. For some
11329 # reason, if we set the COLLECT_NAMES environment variable, the problems
11330 # vanish in a puff of smoke.
11331 if test "X${COLLECT_NAMES+set}" != Xset; then
11332 COLLECT_NAMES=
11333 export COLLECT_NAMES
11337 esac
11339 # We use sed instead of cat because bash on DJGPP gets confused if
11340 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11341 # text mode, it properly converts lines to CR/LF. This bash problem
11342 # is reportedly fixed, but why not run on old versions too?
11343 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11345 mv -f "$cfgfile" "$ofile" || \
11346 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11347 chmod +x "$ofile"
11349 else
11350 # If there is no Makefile yet, we rely on a make rule to execute
11351 # `config.status --recheck' to rerun these tests and create the
11352 # libtool script then.
11353 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11354 if test -f "$ltmain_in"; then
11355 test -f Makefile && make "$ltmain"
11360 ac_ext=c
11361 ac_cpp='$CPP $CPPFLAGS'
11362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11366 CC="$lt_save_CC"
11369 # Check whether --with-tags was given.
11370 if test "${with_tags+set}" = set; then
11371 withval=$with_tags; tagnames="$withval"
11375 if test -f "$ltmain" && test -n "$tagnames"; then
11376 if test ! -f "${ofile}"; then
11377 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11378 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11381 if test -z "$LTCC"; then
11382 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11383 if test -z "$LTCC"; then
11384 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11385 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11386 else
11387 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11388 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11391 if test -z "$LTCFLAGS"; then
11392 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11395 # Extract list of available tagged configurations in $ofile.
11396 # Note that this assumes the entire list is on one line.
11397 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11399 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11400 for tagname in $tagnames; do
11401 IFS="$lt_save_ifs"
11402 # Check whether tagname contains only valid characters
11403 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11404 "") ;;
11405 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11406 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11407 { (exit 1); exit 1; }; }
11409 esac
11411 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11412 then
11413 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11414 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11415 { (exit 1); exit 1; }; }
11418 # Update the list of available tags.
11419 if test -n "$tagname"; then
11420 echo appending configuration tag \"$tagname\" to $ofile
11422 case $tagname in
11423 CXX)
11424 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11425 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11426 (test "X$CXX" != "Xg++"))) ; then
11427 ac_ext=cpp
11428 ac_cpp='$CXXCPP $CPPFLAGS'
11429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11436 archive_cmds_need_lc_CXX=no
11437 allow_undefined_flag_CXX=
11438 always_export_symbols_CXX=no
11439 archive_expsym_cmds_CXX=
11440 export_dynamic_flag_spec_CXX=
11441 hardcode_direct_CXX=no
11442 hardcode_libdir_flag_spec_CXX=
11443 hardcode_libdir_flag_spec_ld_CXX=
11444 hardcode_libdir_separator_CXX=
11445 hardcode_minus_L_CXX=no
11446 hardcode_shlibpath_var_CXX=unsupported
11447 hardcode_automatic_CXX=no
11448 module_cmds_CXX=
11449 module_expsym_cmds_CXX=
11450 link_all_deplibs_CXX=unknown
11451 old_archive_cmds_CXX=$old_archive_cmds
11452 no_undefined_flag_CXX=
11453 whole_archive_flag_spec_CXX=
11454 enable_shared_with_static_runtimes_CXX=no
11456 # Dependencies to place before and after the object being linked:
11457 predep_objects_CXX=
11458 postdep_objects_CXX=
11459 predeps_CXX=
11460 postdeps_CXX=
11461 compiler_lib_search_path_CXX=
11462 compiler_lib_search_dirs_CXX=
11464 # Source file extension for C++ test sources.
11465 ac_ext=cpp
11467 # Object file extension for compiled C++ test sources.
11468 objext=o
11469 objext_CXX=$objext
11471 # Code to be used in simple compile tests
11472 lt_simple_compile_test_code="int some_variable = 0;"
11474 # Code to be used in simple link tests
11475 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11477 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11479 # If no C compiler was specified, use CC.
11480 LTCC=${LTCC-"$CC"}
11482 # If no C compiler flags were specified, use CFLAGS.
11483 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11485 # Allow CC to be a program name with arguments.
11486 compiler=$CC
11489 # save warnings/boilerplate of simple test code
11490 ac_outfile=conftest.$ac_objext
11491 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11492 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11493 _lt_compiler_boilerplate=`cat conftest.err`
11494 $rm conftest*
11496 ac_outfile=conftest.$ac_objext
11497 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11498 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11499 _lt_linker_boilerplate=`cat conftest.err`
11500 $rm -r conftest*
11503 # Allow CC to be a program name with arguments.
11504 lt_save_CC=$CC
11505 lt_save_LD=$LD
11506 lt_save_GCC=$GCC
11507 GCC=$GXX
11508 lt_save_with_gnu_ld=$with_gnu_ld
11509 lt_save_path_LD=$lt_cv_path_LD
11510 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11511 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11512 else
11513 $as_unset lt_cv_prog_gnu_ld
11515 if test -n "${lt_cv_path_LDCXX+set}"; then
11516 lt_cv_path_LD=$lt_cv_path_LDCXX
11517 else
11518 $as_unset lt_cv_path_LD
11520 test -z "${LDCXX+set}" || LD=$LDCXX
11521 CC=${CXX-"c++"}
11522 compiler=$CC
11523 compiler_CXX=$CC
11524 for cc_temp in $compiler""; do
11525 case $cc_temp in
11526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11528 \-*) ;;
11529 *) break;;
11530 esac
11531 done
11532 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11535 # We don't want -fno-exception wen compiling C++ code, so set the
11536 # no_builtin_flag separately
11537 if test "$GXX" = yes; then
11538 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11539 else
11540 lt_prog_compiler_no_builtin_flag_CXX=
11543 if test "$GXX" = yes; then
11544 # Set up default GNU C++ configuration
11547 # Check whether --with-gnu-ld was given.
11548 if test "${with_gnu_ld+set}" = set; then
11549 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11550 else
11551 with_gnu_ld=no
11554 ac_prog=ld
11555 if test "$GCC" = yes; then
11556 # Check if gcc -print-prog-name=ld gives a path.
11557 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11558 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11559 case $host in
11560 *-*-mingw*)
11561 # gcc leaves a trailing carriage return which upsets mingw
11562 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11564 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11565 esac
11566 case $ac_prog in
11567 # Accept absolute paths.
11568 [\\/]* | ?:[\\/]*)
11569 re_direlt='/[^/][^/]*/\.\./'
11570 # Canonicalize the pathname of ld
11571 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11572 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11573 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11574 done
11575 test -z "$LD" && LD="$ac_prog"
11578 # If it fails, then pretend we aren't using GCC.
11579 ac_prog=ld
11582 # If it is relative, then search for the first ld in PATH.
11583 with_gnu_ld=unknown
11585 esac
11586 elif test "$with_gnu_ld" = yes; then
11587 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11588 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11589 else
11590 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11591 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11593 if test "${lt_cv_path_LD+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596 if test -z "$LD"; then
11597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11598 for ac_dir in $PATH; do
11599 IFS="$lt_save_ifs"
11600 test -z "$ac_dir" && ac_dir=.
11601 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11602 lt_cv_path_LD="$ac_dir/$ac_prog"
11603 # Check to see if the program is GNU ld. I'd rather use --version,
11604 # but apparently some variants of GNU ld only accept -v.
11605 # Break only if it was the GNU/non-GNU ld that we prefer.
11606 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11607 *GNU* | *'with BFD'*)
11608 test "$with_gnu_ld" != no && break
11611 test "$with_gnu_ld" != yes && break
11613 esac
11615 done
11616 IFS="$lt_save_ifs"
11617 else
11618 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11622 LD="$lt_cv_path_LD"
11623 if test -n "$LD"; then
11624 { echo "$as_me:$LINENO: result: $LD" >&5
11625 echo "${ECHO_T}$LD" >&6; }
11626 else
11627 { echo "$as_me:$LINENO: result: no" >&5
11628 echo "${ECHO_T}no" >&6; }
11630 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11631 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11632 { (exit 1); exit 1; }; }
11633 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11634 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11635 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11639 case `$LD -v 2>&1 </dev/null` in
11640 *GNU* | *'with BFD'*)
11641 lt_cv_prog_gnu_ld=yes
11644 lt_cv_prog_gnu_ld=no
11646 esac
11648 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11649 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11650 with_gnu_ld=$lt_cv_prog_gnu_ld
11654 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11655 # archiving commands below assume that GNU ld is being used.
11656 if test "$with_gnu_ld" = yes; then
11657 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11658 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'
11660 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11661 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11663 # If archive_cmds runs LD, not CC, wlarc should be empty
11664 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11665 # investigate it a little bit more. (MM)
11666 wlarc='${wl}'
11668 # ancient GNU ld didn't support --whole-archive et. al.
11669 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11670 grep 'no-whole-archive' > /dev/null; then
11671 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11672 else
11673 whole_archive_flag_spec_CXX=
11675 else
11676 with_gnu_ld=no
11677 wlarc=
11679 # A generic and very simple default shared library creation
11680 # command for GNU C++ for the case where it uses the native
11681 # linker, instead of GNU ld. If possible, this setting should
11682 # overridden to take advantage of the native linker features on
11683 # the platform it is being used on.
11684 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11687 # Commands to make compiler produce verbose output that lists
11688 # what "hidden" libraries, object files and flags are used when
11689 # linking a shared library.
11690 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11692 else
11693 GXX=no
11694 with_gnu_ld=no
11695 wlarc=
11698 # PORTME: fill in a description of your system's C++ link characteristics
11699 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11700 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11701 ld_shlibs_CXX=yes
11702 case $host_os in
11703 aix3*)
11704 # FIXME: insert proper C++ library support
11705 ld_shlibs_CXX=no
11707 aix[4-9]*)
11708 if test "$host_cpu" = ia64; then
11709 # On IA64, the linker does run time linking by default, so we don't
11710 # have to do anything special.
11711 aix_use_runtimelinking=no
11712 exp_sym_flag='-Bexport'
11713 no_entry_flag=""
11714 else
11715 aix_use_runtimelinking=no
11717 # Test if we are trying to use run time linking or normal
11718 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11719 # need to do runtime linking.
11720 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11721 for ld_flag in $LDFLAGS; do
11722 case $ld_flag in
11723 *-brtl*)
11724 aix_use_runtimelinking=yes
11725 break
11727 esac
11728 done
11730 esac
11732 exp_sym_flag='-bexport'
11733 no_entry_flag='-bnoentry'
11736 # When large executables or shared objects are built, AIX ld can
11737 # have problems creating the table of contents. If linking a library
11738 # or program results in "error TOC overflow" add -mminimal-toc to
11739 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11740 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11742 archive_cmds_CXX=''
11743 hardcode_direct_CXX=yes
11744 hardcode_libdir_separator_CXX=':'
11745 link_all_deplibs_CXX=yes
11747 if test "$GXX" = yes; then
11748 case $host_os in aix4.[012]|aix4.[012].*)
11749 # We only want to do this on AIX 4.2 and lower, the check
11750 # below for broken collect2 doesn't work under 4.3+
11751 collect2name=`${CC} -print-prog-name=collect2`
11752 if test -f "$collect2name" && \
11753 strings "$collect2name" | grep resolve_lib_name >/dev/null
11754 then
11755 # We have reworked collect2
11757 else
11758 # We have old collect2
11759 hardcode_direct_CXX=unsupported
11760 # It fails to find uninstalled libraries when the uninstalled
11761 # path is not listed in the libpath. Setting hardcode_minus_L
11762 # to unsupported forces relinking
11763 hardcode_minus_L_CXX=yes
11764 hardcode_libdir_flag_spec_CXX='-L$libdir'
11765 hardcode_libdir_separator_CXX=
11768 esac
11769 shared_flag='-shared'
11770 if test "$aix_use_runtimelinking" = yes; then
11771 shared_flag="$shared_flag "'${wl}-G'
11773 else
11774 # not using gcc
11775 if test "$host_cpu" = ia64; then
11776 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11777 # chokes on -Wl,-G. The following line is correct:
11778 shared_flag='-G'
11779 else
11780 if test "$aix_use_runtimelinking" = yes; then
11781 shared_flag='${wl}-G'
11782 else
11783 shared_flag='${wl}-bM:SRE'
11788 # It seems that -bexpall does not export symbols beginning with
11789 # underscore (_), so it is better to generate a list of symbols to export.
11790 always_export_symbols_CXX=yes
11791 if test "$aix_use_runtimelinking" = yes; then
11792 # Warning - without using the other runtime loading flags (-brtl),
11793 # -berok will link without error, but may produce a broken library.
11794 allow_undefined_flag_CXX='-berok'
11795 # Determine the default libpath from the value encoded in an empty executable.
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h. */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11804 main ()
11808 return 0;
11810 _ACEOF
11811 rm -f conftest.$ac_objext conftest$ac_exeext
11812 if { (ac_try="$ac_link"
11813 case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_link") 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } && {
11825 test -z "$ac_cxx_werror_flag" ||
11826 test ! -s conftest.err
11827 } && test -s conftest$ac_exeext &&
11828 $as_test_x conftest$ac_exeext; then
11830 lt_aix_libpath_sed='
11831 /Import File Strings/,/^$/ {
11832 /^0/ {
11833 s/^0 *\(.*\)$/\1/
11837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11838 # Check for a 64-bit object if we didn't find anything.
11839 if test -z "$aix_libpath"; then
11840 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11842 else
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11850 conftest$ac_exeext conftest.$ac_ext
11851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11853 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11855 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"
11856 else
11857 if test "$host_cpu" = ia64; then
11858 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11859 allow_undefined_flag_CXX="-z nodefs"
11860 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"
11861 else
11862 # Determine the default libpath from the value encoded in an empty executable.
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11871 main ()
11875 return 0;
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (ac_try="$ac_link"
11880 case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11883 esac
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885 (eval "$ac_link") 2>conftest.er1
11886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } && {
11892 test -z "$ac_cxx_werror_flag" ||
11893 test ! -s conftest.err
11894 } && test -s conftest$ac_exeext &&
11895 $as_test_x conftest$ac_exeext; then
11897 lt_aix_libpath_sed='
11898 /Import File Strings/,/^$/ {
11899 /^0/ {
11900 s/^0 *\(.*\)$/\1/
11904 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11905 # Check for a 64-bit object if we didn't find anything.
11906 if test -z "$aix_libpath"; then
11907 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11909 else
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11917 conftest$ac_exeext conftest.$ac_ext
11918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11920 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11921 # Warning - without using the other run time loading flags,
11922 # -berok will link without error, but may produce a broken library.
11923 no_undefined_flag_CXX=' ${wl}-bernotok'
11924 allow_undefined_flag_CXX=' ${wl}-berok'
11925 # Exported symbols can be pulled into shared objects from archives
11926 whole_archive_flag_spec_CXX='$convenience'
11927 archive_cmds_need_lc_CXX=yes
11928 # This is similar to how AIX traditionally builds its shared libraries.
11929 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'
11934 beos*)
11935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11936 allow_undefined_flag_CXX=unsupported
11937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11938 # support --undefined. This deserves some investigation. FIXME
11939 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11940 else
11941 ld_shlibs_CXX=no
11945 chorus*)
11946 case $cc_basename in
11948 # FIXME: insert proper C++ library support
11949 ld_shlibs_CXX=no
11951 esac
11954 cygwin* | mingw* | pw32*)
11955 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11956 # as there is no search path for DLLs.
11957 hardcode_libdir_flag_spec_CXX='-L$libdir'
11958 allow_undefined_flag_CXX=unsupported
11959 always_export_symbols_CXX=no
11960 enable_shared_with_static_runtimes_CXX=yes
11962 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11963 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'
11964 # If the export-symbols file already is a .def file (1st line
11965 # is EXPORTS), use it as is; otherwise, prepend...
11966 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11967 cp $export_symbols $output_objdir/$soname.def;
11968 else
11969 echo EXPORTS > $output_objdir/$soname.def;
11970 cat $export_symbols >> $output_objdir/$soname.def;
11972 $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'
11973 else
11974 ld_shlibs_CXX=no
11977 darwin* | rhapsody*)
11978 archive_cmds_need_lc_CXX=no
11979 hardcode_direct_CXX=no
11980 hardcode_automatic_CXX=yes
11981 hardcode_shlibpath_var_CXX=unsupported
11982 whole_archive_flag_spec_CXX=''
11983 link_all_deplibs_CXX=yes
11984 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11985 if test "$GXX" = yes ; then
11986 output_verbose_link_cmd='echo'
11987 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11988 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11989 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11990 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11991 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11992 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${_lt_dsymutil}"
11993 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11995 else
11996 case $cc_basename in
11997 xlc*)
11998 output_verbose_link_cmd='echo'
11999 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12000 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12001 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12002 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12003 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}'
12006 ld_shlibs_CXX=no
12008 esac
12012 dgux*)
12013 case $cc_basename in
12014 ec++*)
12015 # FIXME: insert proper C++ library support
12016 ld_shlibs_CXX=no
12018 ghcx*)
12019 # Green Hills C++ Compiler
12020 # FIXME: insert proper C++ library support
12021 ld_shlibs_CXX=no
12024 # FIXME: insert proper C++ library support
12025 ld_shlibs_CXX=no
12027 esac
12029 freebsd[12]*)
12030 # C++ shared libraries reported to be fairly broken before switch to ELF
12031 ld_shlibs_CXX=no
12033 freebsd-elf*)
12034 archive_cmds_need_lc_CXX=no
12036 freebsd* | dragonfly*)
12037 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12038 # conventions
12039 ld_shlibs_CXX=yes
12041 gnu*)
12043 hpux9*)
12044 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12045 hardcode_libdir_separator_CXX=:
12046 export_dynamic_flag_spec_CXX='${wl}-E'
12047 hardcode_direct_CXX=yes
12048 hardcode_minus_L_CXX=yes # Not in the search PATH,
12049 # but as the default
12050 # location of the library.
12052 case $cc_basename in
12053 CC*)
12054 # FIXME: insert proper C++ library support
12055 ld_shlibs_CXX=no
12057 aCC*)
12058 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'
12059 # Commands to make compiler produce verbose output that lists
12060 # what "hidden" libraries, object files and flags are used when
12061 # linking a shared library.
12063 # There doesn't appear to be a way to prevent this compiler from
12064 # explicitly linking system object files so we need to strip them
12065 # from the output so that they don't get included in the library
12066 # dependencies.
12067 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'
12070 if test "$GXX" = yes; then
12071 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'
12072 else
12073 # FIXME: insert proper C++ library support
12074 ld_shlibs_CXX=no
12077 esac
12079 hpux10*|hpux11*)
12080 if test $with_gnu_ld = no; then
12081 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12082 hardcode_libdir_separator_CXX=:
12084 case $host_cpu in
12085 hppa*64*|ia64*) ;;
12087 export_dynamic_flag_spec_CXX='${wl}-E'
12089 esac
12091 case $host_cpu in
12092 hppa*64*|ia64*)
12093 hardcode_direct_CXX=no
12094 hardcode_shlibpath_var_CXX=no
12097 hardcode_direct_CXX=yes
12098 hardcode_minus_L_CXX=yes # Not in the search PATH,
12099 # but as the default
12100 # location of the library.
12102 esac
12104 case $cc_basename in
12105 CC*)
12106 # FIXME: insert proper C++ library support
12107 ld_shlibs_CXX=no
12109 aCC*)
12110 case $host_cpu in
12111 hppa*64*)
12112 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12114 ia64*)
12115 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12118 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12120 esac
12121 # Commands to make compiler produce verbose output that lists
12122 # what "hidden" libraries, object files and flags are used when
12123 # linking a shared library.
12125 # There doesn't appear to be a way to prevent this compiler from
12126 # explicitly linking system object files so we need to strip them
12127 # from the output so that they don't get included in the library
12128 # dependencies.
12129 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'
12132 if test "$GXX" = yes; then
12133 if test $with_gnu_ld = no; then
12134 case $host_cpu in
12135 hppa*64*)
12136 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12138 ia64*)
12139 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12142 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'
12144 esac
12146 else
12147 # FIXME: insert proper C++ library support
12148 ld_shlibs_CXX=no
12151 esac
12153 interix[3-9]*)
12154 hardcode_direct_CXX=no
12155 hardcode_shlibpath_var_CXX=no
12156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12157 export_dynamic_flag_spec_CXX='${wl}-E'
12158 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12159 # Instead, shared libraries are loaded at an image base (0x10000000 by
12160 # default) and relocated if they conflict, which is a slow very memory
12161 # consuming and fragmenting process. To avoid this, we pick a random,
12162 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12163 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12164 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'
12165 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'
12167 irix5* | irix6*)
12168 case $cc_basename in
12169 CC*)
12170 # SGI C++
12171 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'
12173 # Archives containing C++ object files must be created using
12174 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12175 # necessary to make sure instantiated templates are included
12176 # in the archive.
12177 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12180 if test "$GXX" = yes; then
12181 if test "$with_gnu_ld" = no; then
12182 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'
12183 else
12184 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'
12187 link_all_deplibs_CXX=yes
12189 esac
12190 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12191 hardcode_libdir_separator_CXX=:
12193 linux* | k*bsd*-gnu)
12194 case $cc_basename in
12195 KCC*)
12196 # Kuck and Associates, Inc. (KAI) C++ Compiler
12198 # KCC will only create a shared library if the output file
12199 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12200 # to its proper name (with version) after linking.
12201 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'
12202 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'
12203 # Commands to make compiler produce verbose output that lists
12204 # what "hidden" libraries, object files and flags are used when
12205 # linking a shared library.
12207 # There doesn't appear to be a way to prevent this compiler from
12208 # explicitly linking system object files so we need to strip them
12209 # from the output so that they don't get included in the library
12210 # dependencies.
12211 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'
12213 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12216 # Archives containing C++ object files must be created using
12217 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12218 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12220 icpc*)
12221 # Intel C++
12222 with_gnu_ld=yes
12223 # version 8.0 and above of icpc choke on multiply defined symbols
12224 # if we add $predep_objects and $postdep_objects, however 7.1 and
12225 # earlier do not add the objects themselves.
12226 case `$CC -V 2>&1` in
12227 *"Version 7."*)
12228 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12229 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'
12231 *) # Version 8.0 or newer
12232 tmp_idyn=
12233 case $host_cpu in
12234 ia64*) tmp_idyn=' -i_dynamic';;
12235 esac
12236 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 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'
12239 esac
12240 archive_cmds_need_lc_CXX=no
12241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12243 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12245 pgCC* | pgcpp*)
12246 # Portland Group C++ compiler
12247 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12248 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'
12250 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12251 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12252 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'
12254 cxx*)
12255 # Compaq C++
12256 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257 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'
12259 runpath_var=LD_RUN_PATH
12260 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12261 hardcode_libdir_separator_CXX=:
12263 # Commands to make compiler produce verbose output that lists
12264 # what "hidden" libraries, object files and flags are used when
12265 # linking a shared library.
12267 # There doesn't appear to be a way to prevent this compiler from
12268 # explicitly linking system object files so we need to strip them
12269 # from the output so that they don't get included in the library
12270 # dependencies.
12271 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'
12274 case `$CC -V 2>&1 | sed 5q` in
12275 *Sun\ C*)
12276 # Sun C++ 5.9
12277 no_undefined_flag_CXX=' -zdefs'
12278 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12279 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12280 hardcode_libdir_flag_spec_CXX='-R$libdir'
12281 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12283 # Not sure whether something based on
12284 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12285 # would be better.
12286 output_verbose_link_cmd='echo'
12288 # Archives containing C++ object files must be created using
12289 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12290 # necessary to make sure instantiated templates are included
12291 # in the archive.
12292 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12294 esac
12296 esac
12298 lynxos*)
12299 # FIXME: insert proper C++ library support
12300 ld_shlibs_CXX=no
12302 m88k*)
12303 # FIXME: insert proper C++ library support
12304 ld_shlibs_CXX=no
12306 mvs*)
12307 case $cc_basename in
12308 cxx*)
12309 # FIXME: insert proper C++ library support
12310 ld_shlibs_CXX=no
12313 # FIXME: insert proper C++ library support
12314 ld_shlibs_CXX=no
12316 esac
12318 netbsd* | netbsdelf*-gnu)
12319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12320 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12321 wlarc=
12322 hardcode_libdir_flag_spec_CXX='-R$libdir'
12323 hardcode_direct_CXX=yes
12324 hardcode_shlibpath_var_CXX=no
12326 # Workaround some broken pre-1.5 toolchains
12327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12329 openbsd2*)
12330 # C++ shared libraries are fairly broken
12331 ld_shlibs_CXX=no
12333 openbsd*)
12334 if test -f /usr/libexec/ld.so; then
12335 hardcode_direct_CXX=yes
12336 hardcode_shlibpath_var_CXX=no
12337 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12338 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12340 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12341 export_dynamic_flag_spec_CXX='${wl}-E'
12342 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12344 output_verbose_link_cmd='echo'
12345 else
12346 ld_shlibs_CXX=no
12349 osf3*)
12350 case $cc_basename in
12351 KCC*)
12352 # Kuck and Associates, Inc. (KAI) C++ Compiler
12354 # KCC will only create a shared library if the output file
12355 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12356 # to its proper name (with version) after linking.
12357 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'
12359 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12360 hardcode_libdir_separator_CXX=:
12362 # Archives containing C++ object files must be created using
12363 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12364 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12367 RCC*)
12368 # Rational C++ 2.4.1
12369 # FIXME: insert proper C++ library support
12370 ld_shlibs_CXX=no
12372 cxx*)
12373 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12374 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'
12376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12377 hardcode_libdir_separator_CXX=:
12379 # Commands to make compiler produce verbose output that lists
12380 # what "hidden" libraries, object files and flags are used when
12381 # linking a shared library.
12383 # There doesn't appear to be a way to prevent this compiler from
12384 # explicitly linking system object files so we need to strip them
12385 # from the output so that they don't get included in the library
12386 # dependencies.
12387 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'
12390 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12391 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12392 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'
12394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12395 hardcode_libdir_separator_CXX=:
12397 # Commands to make compiler produce verbose output that lists
12398 # what "hidden" libraries, object files and flags are used when
12399 # linking a shared library.
12400 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12402 else
12403 # FIXME: insert proper C++ library support
12404 ld_shlibs_CXX=no
12407 esac
12409 osf4* | osf5*)
12410 case $cc_basename in
12411 KCC*)
12412 # Kuck and Associates, Inc. (KAI) C++ Compiler
12414 # KCC will only create a shared library if the output file
12415 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12416 # to its proper name (with version) after linking.
12417 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'
12419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12420 hardcode_libdir_separator_CXX=:
12422 # Archives containing C++ object files must be created using
12423 # the KAI C++ compiler.
12424 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12426 RCC*)
12427 # Rational C++ 2.4.1
12428 # FIXME: insert proper C++ library support
12429 ld_shlibs_CXX=no
12431 cxx*)
12432 allow_undefined_flag_CXX=' -expect_unresolved \*'
12433 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'
12434 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12435 echo "-hidden">> $lib.exp~
12436 $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~
12437 $rm $lib.exp'
12439 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12440 hardcode_libdir_separator_CXX=:
12442 # Commands to make compiler produce verbose output that lists
12443 # what "hidden" libraries, object files and flags are used when
12444 # linking a shared library.
12446 # There doesn't appear to be a way to prevent this compiler from
12447 # explicitly linking system object files so we need to strip them
12448 # from the output so that they don't get included in the library
12449 # dependencies.
12450 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'
12453 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12454 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12455 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'
12457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12458 hardcode_libdir_separator_CXX=:
12460 # Commands to make compiler produce verbose output that lists
12461 # what "hidden" libraries, object files and flags are used when
12462 # linking a shared library.
12463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12465 else
12466 # FIXME: insert proper C++ library support
12467 ld_shlibs_CXX=no
12470 esac
12472 psos*)
12473 # FIXME: insert proper C++ library support
12474 ld_shlibs_CXX=no
12476 sunos4*)
12477 case $cc_basename in
12478 CC*)
12479 # Sun C++ 4.x
12480 # FIXME: insert proper C++ library support
12481 ld_shlibs_CXX=no
12483 lcc*)
12484 # Lucid
12485 # FIXME: insert proper C++ library support
12486 ld_shlibs_CXX=no
12489 # FIXME: insert proper C++ library support
12490 ld_shlibs_CXX=no
12492 esac
12494 solaris*)
12495 case $cc_basename in
12496 CC*)
12497 # Sun C++ 4.2, 5.x and Centerline C++
12498 archive_cmds_need_lc_CXX=yes
12499 no_undefined_flag_CXX=' -zdefs'
12500 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12501 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12502 $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'
12504 hardcode_libdir_flag_spec_CXX='-R$libdir'
12505 hardcode_shlibpath_var_CXX=no
12506 case $host_os in
12507 solaris2.[0-5] | solaris2.[0-5].*) ;;
12509 # The compiler driver will combine and reorder linker options,
12510 # but understands `-z linker_flag'.
12511 # Supported since Solaris 2.6 (maybe 2.5.1?)
12512 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12514 esac
12515 link_all_deplibs_CXX=yes
12517 output_verbose_link_cmd='echo'
12519 # Archives containing C++ object files must be created using
12520 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12521 # necessary to make sure instantiated templates are included
12522 # in the archive.
12523 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12525 gcx*)
12526 # Green Hills C++ Compiler
12527 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12529 # The C++ compiler must be used to create the archive.
12530 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12533 # GNU C++ compiler with Solaris linker
12534 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12535 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12536 if $CC --version | grep -v '^2\.7' > /dev/null; then
12537 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12538 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12539 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12541 # Commands to make compiler produce verbose output that lists
12542 # what "hidden" libraries, object files and flags are used when
12543 # linking a shared library.
12544 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12545 else
12546 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12547 # platform.
12548 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12549 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12550 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12552 # Commands to make compiler produce verbose output that lists
12553 # what "hidden" libraries, object files and flags are used when
12554 # linking a shared library.
12555 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12558 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12559 case $host_os in
12560 solaris2.[0-5] | solaris2.[0-5].*) ;;
12562 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12564 esac
12567 esac
12569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12570 no_undefined_flag_CXX='${wl}-z,text'
12571 archive_cmds_need_lc_CXX=no
12572 hardcode_shlibpath_var_CXX=no
12573 runpath_var='LD_RUN_PATH'
12575 case $cc_basename in
12576 CC*)
12577 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12578 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12581 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12584 esac
12586 sysv5* | sco3.2v5* | sco5v6*)
12587 # Note: We can NOT use -z defs as we might desire, because we do not
12588 # link with -lc, and that would cause any symbols used from libc to
12589 # always be unresolved, which means just about no library would
12590 # ever link correctly. If we're not using GNU ld we use -z text
12591 # though, which does catch some bad symbols but isn't as heavy-handed
12592 # as -z defs.
12593 # For security reasons, it is highly recommended that you always
12594 # use absolute paths for naming shared libraries, and exclude the
12595 # DT_RUNPATH tag from executables and libraries. But doing so
12596 # requires that you compile everything twice, which is a pain.
12597 # So that behaviour is only enabled if SCOABSPATH is set to a
12598 # non-empty value in the environment. Most likely only useful for
12599 # creating official distributions of packages.
12600 # This is a hack until libtool officially supports absolute path
12601 # names for shared libraries.
12602 no_undefined_flag_CXX='${wl}-z,text'
12603 allow_undefined_flag_CXX='${wl}-z,nodefs'
12604 archive_cmds_need_lc_CXX=no
12605 hardcode_shlibpath_var_CXX=no
12606 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12607 hardcode_libdir_separator_CXX=':'
12608 link_all_deplibs_CXX=yes
12609 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12610 runpath_var='LD_RUN_PATH'
12612 case $cc_basename in
12613 CC*)
12614 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12615 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12618 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12619 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12621 esac
12623 tandem*)
12624 case $cc_basename in
12625 NCC*)
12626 # NonStop-UX NCC 3.20
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12631 # FIXME: insert proper C++ library support
12632 ld_shlibs_CXX=no
12634 esac
12636 vxworks*)
12637 # FIXME: insert proper C++ library support
12638 ld_shlibs_CXX=no
12641 # FIXME: insert proper C++ library support
12642 ld_shlibs_CXX=no
12644 esac
12645 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12646 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12647 test "$ld_shlibs_CXX" = no && can_build_shared=no
12649 GCC_CXX="$GXX"
12650 LD_CXX="$LD"
12652 cat > conftest.$ac_ext <<EOF
12653 class Foo
12655 public:
12656 Foo (void) { a = 0; }
12657 private:
12658 int a;
12662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; then
12667 # Parse the compiler output and extract the necessary
12668 # objects, libraries and library flags.
12670 # Sentinel used to keep track of whether or not we are before
12671 # the conftest object file.
12672 pre_test_object_deps_done=no
12674 # The `*' in the case matches for architectures that use `case' in
12675 # $output_verbose_cmd can trigger glob expansion during the loop
12676 # eval without this substitution.
12677 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12679 for p in `eval $output_verbose_link_cmd`; do
12680 case $p in
12682 -L* | -R* | -l*)
12683 # Some compilers place space between "-{L,R}" and the path.
12684 # Remove the space.
12685 if test $p = "-L" \
12686 || test $p = "-R"; then
12687 prev=$p
12688 continue
12689 else
12690 prev=
12693 if test "$pre_test_object_deps_done" = no; then
12694 case $p in
12695 -L* | -R*)
12696 # Internal compiler library paths should come after those
12697 # provided the user. The postdeps already come after the
12698 # user supplied libs so there is no need to process them.
12699 if test -z "$compiler_lib_search_path_CXX"; then
12700 compiler_lib_search_path_CXX="${prev}${p}"
12701 else
12702 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12705 # The "-l" case would never come before the object being
12706 # linked, so don't bother handling this case.
12707 esac
12708 else
12709 if test -z "$postdeps_CXX"; then
12710 postdeps_CXX="${prev}${p}"
12711 else
12712 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12717 *.$objext)
12718 # This assumes that the test object file only shows up
12719 # once in the compiler output.
12720 if test "$p" = "conftest.$objext"; then
12721 pre_test_object_deps_done=yes
12722 continue
12725 if test "$pre_test_object_deps_done" = no; then
12726 if test -z "$predep_objects_CXX"; then
12727 predep_objects_CXX="$p"
12728 else
12729 predep_objects_CXX="$predep_objects_CXX $p"
12731 else
12732 if test -z "$postdep_objects_CXX"; then
12733 postdep_objects_CXX="$p"
12734 else
12735 postdep_objects_CXX="$postdep_objects_CXX $p"
12740 *) ;; # Ignore the rest.
12742 esac
12743 done
12745 # Clean up.
12746 rm -f a.out a.exe
12747 else
12748 echo "libtool.m4: error: problem compiling CXX test program"
12751 $rm -f confest.$objext
12753 compiler_lib_search_dirs_CXX=
12754 if test -n "$compiler_lib_search_path_CXX"; then
12755 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12758 # PORTME: override above test on systems where it is broken
12759 case $host_os in
12760 interix[3-9]*)
12761 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12762 # hack all around it, let's just trust "g++" to DTRT.
12763 predep_objects_CXX=
12764 postdep_objects_CXX=
12765 postdeps_CXX=
12768 linux*)
12769 case `$CC -V 2>&1 | sed 5q` in
12770 *Sun\ C*)
12771 # Sun C++ 5.9
12773 # The more standards-conforming stlport4 library is
12774 # incompatible with the Cstd library. Avoid specifying
12775 # it if it's in CXXFLAGS. Ignore libCrun as
12776 # -library=stlport4 depends on it.
12777 case " $CXX $CXXFLAGS " in
12778 *" -library=stlport4 "*)
12779 solaris_use_stlport4=yes
12781 esac
12782 if test "$solaris_use_stlport4" != yes; then
12783 postdeps_CXX='-library=Cstd -library=Crun'
12786 esac
12789 solaris*)
12790 case $cc_basename in
12791 CC*)
12792 # The more standards-conforming stlport4 library is
12793 # incompatible with the Cstd library. Avoid specifying
12794 # it if it's in CXXFLAGS. Ignore libCrun as
12795 # -library=stlport4 depends on it.
12796 case " $CXX $CXXFLAGS " in
12797 *" -library=stlport4 "*)
12798 solaris_use_stlport4=yes
12800 esac
12802 # Adding this requires a known-good setup of shared libraries for
12803 # Sun compiler versions before 5.6, else PIC objects from an old
12804 # archive will be linked into the output, leading to subtle bugs.
12805 if test "$solaris_use_stlport4" != yes; then
12806 postdeps_CXX='-library=Cstd -library=Crun'
12809 esac
12811 esac
12813 case " $postdeps_CXX " in
12814 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12815 esac
12817 lt_prog_compiler_wl_CXX=
12818 lt_prog_compiler_pic_CXX=
12819 lt_prog_compiler_static_CXX=
12821 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12822 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12824 # C++ specific cases for pic, static, wl, etc.
12825 if test "$GXX" = yes; then
12826 lt_prog_compiler_wl_CXX='-Wl,'
12827 lt_prog_compiler_static_CXX='-static'
12829 case $host_os in
12830 aix*)
12831 # All AIX code is PIC.
12832 if test "$host_cpu" = ia64; then
12833 # AIX 5 now supports IA64 processor
12834 lt_prog_compiler_static_CXX='-Bstatic'
12837 amigaos*)
12838 # FIXME: we need at least 68020 code to build shared libraries, but
12839 # adding the `-m68020' flag to GCC prevents building anything better,
12840 # like `-m68040'.
12841 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12843 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12844 # PIC is the default for these OSes.
12846 mingw* | cygwin* | os2* | pw32*)
12847 # This hack is so that the source file can tell whether it is being
12848 # built for inclusion in a dll (and should export symbols for example).
12849 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12850 # (--disable-auto-import) libraries
12851 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12853 darwin* | rhapsody*)
12854 # PIC is the default on this platform
12855 # Common symbols not allowed in MH_DYLIB files
12856 lt_prog_compiler_pic_CXX='-fno-common'
12858 *djgpp*)
12859 # DJGPP does not support shared libraries at all
12860 lt_prog_compiler_pic_CXX=
12862 interix[3-9]*)
12863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12864 # Instead, we relocate shared libraries at runtime.
12866 sysv4*MP*)
12867 if test -d /usr/nec; then
12868 lt_prog_compiler_pic_CXX=-Kconform_pic
12871 hpux*)
12872 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12873 # not for PA HP-UX.
12874 case $host_cpu in
12875 hppa*64*|ia64*)
12878 lt_prog_compiler_pic_CXX='-fPIC'
12880 esac
12883 lt_prog_compiler_pic_CXX='-fPIC'
12885 esac
12886 else
12887 case $host_os in
12888 aix[4-9]*)
12889 # All AIX code is PIC.
12890 if test "$host_cpu" = ia64; then
12891 # AIX 5 now supports IA64 processor
12892 lt_prog_compiler_static_CXX='-Bstatic'
12893 else
12894 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12897 chorus*)
12898 case $cc_basename in
12899 cxch68*)
12900 # Green Hills C++ Compiler
12901 # _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"
12903 esac
12905 darwin*)
12906 # PIC is the default on this platform
12907 # Common symbols not allowed in MH_DYLIB files
12908 case $cc_basename in
12909 xlc*)
12910 lt_prog_compiler_pic_CXX='-qnocommon'
12911 lt_prog_compiler_wl_CXX='-Wl,'
12913 esac
12915 dgux*)
12916 case $cc_basename in
12917 ec++*)
12918 lt_prog_compiler_pic_CXX='-KPIC'
12920 ghcx*)
12921 # Green Hills C++ Compiler
12922 lt_prog_compiler_pic_CXX='-pic'
12926 esac
12928 freebsd* | dragonfly*)
12929 # FreeBSD uses GNU C++
12931 hpux9* | hpux10* | hpux11*)
12932 case $cc_basename in
12933 CC*)
12934 lt_prog_compiler_wl_CXX='-Wl,'
12935 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12936 if test "$host_cpu" != ia64; then
12937 lt_prog_compiler_pic_CXX='+Z'
12940 aCC*)
12941 lt_prog_compiler_wl_CXX='-Wl,'
12942 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12943 case $host_cpu in
12944 hppa*64*|ia64*)
12945 # +Z the default
12948 lt_prog_compiler_pic_CXX='+Z'
12950 esac
12954 esac
12956 interix*)
12957 # This is c89, which is MS Visual C++ (no shared libs)
12958 # Anyone wants to do a port?
12960 irix5* | irix6* | nonstopux*)
12961 case $cc_basename in
12962 CC*)
12963 lt_prog_compiler_wl_CXX='-Wl,'
12964 lt_prog_compiler_static_CXX='-non_shared'
12965 # CC pic flag -KPIC is the default.
12969 esac
12971 linux* | k*bsd*-gnu)
12972 case $cc_basename in
12973 KCC*)
12974 # KAI C++ Compiler
12975 lt_prog_compiler_wl_CXX='--backend -Wl,'
12976 lt_prog_compiler_pic_CXX='-fPIC'
12978 icpc* | ecpc*)
12979 # Intel C++
12980 lt_prog_compiler_wl_CXX='-Wl,'
12981 lt_prog_compiler_pic_CXX='-KPIC'
12982 lt_prog_compiler_static_CXX='-static'
12984 pgCC* | pgcpp*)
12985 # Portland Group C++ compiler.
12986 lt_prog_compiler_wl_CXX='-Wl,'
12987 lt_prog_compiler_pic_CXX='-fpic'
12988 lt_prog_compiler_static_CXX='-Bstatic'
12990 cxx*)
12991 # Compaq C++
12992 # Make sure the PIC flag is empty. It appears that all Alpha
12993 # Linux and Compaq Tru64 Unix objects are PIC.
12994 lt_prog_compiler_pic_CXX=
12995 lt_prog_compiler_static_CXX='-non_shared'
12998 case `$CC -V 2>&1 | sed 5q` in
12999 *Sun\ C*)
13000 # Sun C++ 5.9
13001 lt_prog_compiler_pic_CXX='-KPIC'
13002 lt_prog_compiler_static_CXX='-Bstatic'
13003 lt_prog_compiler_wl_CXX='-Qoption ld '
13005 esac
13007 esac
13009 lynxos*)
13011 m88k*)
13013 mvs*)
13014 case $cc_basename in
13015 cxx*)
13016 lt_prog_compiler_pic_CXX='-W c,exportall'
13020 esac
13022 netbsd* | netbsdelf*-gnu)
13024 osf3* | osf4* | osf5*)
13025 case $cc_basename in
13026 KCC*)
13027 lt_prog_compiler_wl_CXX='--backend -Wl,'
13029 RCC*)
13030 # Rational C++ 2.4.1
13031 lt_prog_compiler_pic_CXX='-pic'
13033 cxx*)
13034 # Digital/Compaq C++
13035 lt_prog_compiler_wl_CXX='-Wl,'
13036 # Make sure the PIC flag is empty. It appears that all Alpha
13037 # Linux and Compaq Tru64 Unix objects are PIC.
13038 lt_prog_compiler_pic_CXX=
13039 lt_prog_compiler_static_CXX='-non_shared'
13043 esac
13045 psos*)
13047 solaris*)
13048 case $cc_basename in
13049 CC*)
13050 # Sun C++ 4.2, 5.x and Centerline C++
13051 lt_prog_compiler_pic_CXX='-KPIC'
13052 lt_prog_compiler_static_CXX='-Bstatic'
13053 lt_prog_compiler_wl_CXX='-Qoption ld '
13055 gcx*)
13056 # Green Hills C++ Compiler
13057 lt_prog_compiler_pic_CXX='-PIC'
13061 esac
13063 sunos4*)
13064 case $cc_basename in
13065 CC*)
13066 # Sun C++ 4.x
13067 lt_prog_compiler_pic_CXX='-pic'
13068 lt_prog_compiler_static_CXX='-Bstatic'
13070 lcc*)
13071 # Lucid
13072 lt_prog_compiler_pic_CXX='-pic'
13076 esac
13078 tandem*)
13079 case $cc_basename in
13080 NCC*)
13081 # NonStop-UX NCC 3.20
13082 lt_prog_compiler_pic_CXX='-KPIC'
13086 esac
13088 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13089 case $cc_basename in
13090 CC*)
13091 lt_prog_compiler_wl_CXX='-Wl,'
13092 lt_prog_compiler_pic_CXX='-KPIC'
13093 lt_prog_compiler_static_CXX='-Bstatic'
13095 esac
13097 vxworks*)
13100 lt_prog_compiler_can_build_shared_CXX=no
13102 esac
13105 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13106 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13109 # Check to make sure the PIC flag actually works.
13111 if test -n "$lt_prog_compiler_pic_CXX"; then
13113 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13114 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13115 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118 lt_cv_prog_compiler_pic_works_CXX=no
13119 ac_outfile=conftest.$ac_objext
13120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13121 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13122 # Insert the option either (1) after the last *FLAGS variable, or
13123 # (2) before a word containing "conftest.", or (3) at the end.
13124 # Note that $ac_compile itself does not contain backslashes and begins
13125 # with a dollar sign (not a hyphen), so the echo should work correctly.
13126 # The option is referenced via a variable to avoid confusing sed.
13127 lt_compile=`echo "$ac_compile" | $SED \
13128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13130 -e 's:$: $lt_compiler_flag:'`
13131 (eval echo "\"\$as_me:13131: $lt_compile\"" >&5)
13132 (eval "$lt_compile" 2>conftest.err)
13133 ac_status=$?
13134 cat conftest.err >&5
13135 echo "$as_me:13135: \$? = $ac_status" >&5
13136 if (exit $ac_status) && test -s "$ac_outfile"; then
13137 # The compiler can only warn and ignore the option if not recognized
13138 # So say no if there are warnings other than the usual output.
13139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13142 lt_cv_prog_compiler_pic_works_CXX=yes
13145 $rm conftest*
13148 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13149 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13151 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13152 case $lt_prog_compiler_pic_CXX in
13153 "" | " "*) ;;
13154 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13155 esac
13156 else
13157 lt_prog_compiler_pic_CXX=
13158 lt_prog_compiler_can_build_shared_CXX=no
13162 case $host_os in
13163 # For platforms which do not support PIC, -DPIC is meaningless:
13164 *djgpp*)
13165 lt_prog_compiler_pic_CXX=
13168 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13170 esac
13173 # Check to make sure the static flag actually works.
13175 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13176 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13177 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13178 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181 lt_cv_prog_compiler_static_works_CXX=no
13182 save_LDFLAGS="$LDFLAGS"
13183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13184 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13186 # The linker can only warn and ignore the option if not recognized
13187 # So say no if there are warnings
13188 if test -s conftest.err; then
13189 # Append any errors to the config.log.
13190 cat conftest.err 1>&5
13191 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13193 if diff conftest.exp conftest.er2 >/dev/null; then
13194 lt_cv_prog_compiler_static_works_CXX=yes
13196 else
13197 lt_cv_prog_compiler_static_works_CXX=yes
13200 $rm -r conftest*
13201 LDFLAGS="$save_LDFLAGS"
13204 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13205 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13207 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13209 else
13210 lt_prog_compiler_static_CXX=
13214 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13216 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219 lt_cv_prog_compiler_c_o_CXX=no
13220 $rm -r conftest 2>/dev/null
13221 mkdir conftest
13222 cd conftest
13223 mkdir out
13224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13226 lt_compiler_flag="-o out/conftest2.$ac_objext"
13227 # Insert the option either (1) after the last *FLAGS variable, or
13228 # (2) before a word containing "conftest.", or (3) at the end.
13229 # Note that $ac_compile itself does not contain backslashes and begins
13230 # with a dollar sign (not a hyphen), so the echo should work correctly.
13231 lt_compile=`echo "$ac_compile" | $SED \
13232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13234 -e 's:$: $lt_compiler_flag:'`
13235 (eval echo "\"\$as_me:13235: $lt_compile\"" >&5)
13236 (eval "$lt_compile" 2>out/conftest.err)
13237 ac_status=$?
13238 cat out/conftest.err >&5
13239 echo "$as_me:13239: \$? = $ac_status" >&5
13240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13241 then
13242 # The compiler can only warn and ignore the option if not recognized
13243 # So say no if there are warnings
13244 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13247 lt_cv_prog_compiler_c_o_CXX=yes
13250 chmod u+w . 2>&5
13251 $rm conftest*
13252 # SGI C++ compiler will create directory out/ii_files/ for
13253 # template instantiation
13254 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13255 $rm out/* && rmdir out
13256 cd ..
13257 rmdir conftest
13258 $rm conftest*
13261 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13262 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13265 hard_links="nottested"
13266 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13267 # do not overwrite the value of need_locks provided by the user
13268 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13269 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13270 hard_links=yes
13271 $rm conftest*
13272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13273 touch conftest.a
13274 ln conftest.a conftest.b 2>&5 || hard_links=no
13275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13276 { echo "$as_me:$LINENO: result: $hard_links" >&5
13277 echo "${ECHO_T}$hard_links" >&6; }
13278 if test "$hard_links" = no; then
13279 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13280 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13281 need_locks=warn
13283 else
13284 need_locks=no
13287 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13288 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13290 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13291 case $host_os in
13292 aix[4-9]*)
13293 # If we're using GNU nm, then we don't want the "-C" option.
13294 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13295 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13296 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'
13297 else
13298 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'
13301 pw32*)
13302 export_symbols_cmds_CXX="$ltdll_cmds"
13304 cygwin* | mingw*)
13305 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'
13307 linux* | k*bsd*-gnu)
13308 link_all_deplibs_CXX=no
13311 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13313 esac
13314 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13316 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13317 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13318 test "$ld_shlibs_CXX" = no && can_build_shared=no
13321 # Do we need to explicitly link libc?
13323 case "x$archive_cmds_need_lc_CXX" in
13324 x|xyes)
13325 # Assume -lc should be added
13326 archive_cmds_need_lc_CXX=yes
13328 if test "$enable_shared" = yes && test "$GCC" = yes; then
13329 case $archive_cmds_CXX in
13330 *'~'*)
13331 # FIXME: we may have to deal with multi-command sequences.
13333 '$CC '*)
13334 # Test whether the compiler implicitly links with -lc since on some
13335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13336 # to ld, don't add -lc before -lgcc.
13337 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13339 $rm conftest*
13340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13343 (eval $ac_compile) 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } 2>conftest.err; then
13347 soname=conftest
13348 lib=conftest
13349 libobjs=conftest.$ac_objext
13350 deplibs=
13351 wl=$lt_prog_compiler_wl_CXX
13352 pic_flag=$lt_prog_compiler_pic_CXX
13353 compiler_flags=-v
13354 linker_flags=-v
13355 verstring=
13356 output_objdir=.
13357 libname=conftest
13358 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13359 allow_undefined_flag_CXX=
13360 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13361 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }
13365 then
13366 archive_cmds_need_lc_CXX=no
13367 else
13368 archive_cmds_need_lc_CXX=yes
13370 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13371 else
13372 cat conftest.err 1>&5
13374 $rm conftest*
13375 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13376 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13378 esac
13381 esac
13383 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13384 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13385 library_names_spec=
13386 libname_spec='lib$name'
13387 soname_spec=
13388 shrext_cmds=".so"
13389 postinstall_cmds=
13390 postuninstall_cmds=
13391 finish_cmds=
13392 finish_eval=
13393 shlibpath_var=
13394 shlibpath_overrides_runpath=unknown
13395 version_type=none
13396 dynamic_linker="$host_os ld.so"
13397 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13399 need_lib_prefix=unknown
13400 hardcode_into_libs=no
13402 # when you set need_version to no, make sure it does not cause -set_version
13403 # flags to be left without arguments
13404 need_version=unknown
13406 case $host_os in
13407 aix3*)
13408 version_type=linux
13409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13410 shlibpath_var=LIBPATH
13412 # AIX 3 has no versioning support, so we append a major version to the name.
13413 soname_spec='${libname}${release}${shared_ext}$major'
13416 aix[4-9]*)
13417 version_type=linux
13418 need_lib_prefix=no
13419 need_version=no
13420 hardcode_into_libs=yes
13421 if test "$host_cpu" = ia64; then
13422 # AIX 5 supports IA64
13423 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13424 shlibpath_var=LD_LIBRARY_PATH
13425 else
13426 # With GCC up to 2.95.x, collect2 would create an import file
13427 # for dependence libraries. The import file would start with
13428 # the line `#! .'. This would cause the generated library to
13429 # depend on `.', always an invalid library. This was fixed in
13430 # development snapshots of GCC prior to 3.0.
13431 case $host_os in
13432 aix4 | aix4.[01] | aix4.[01].*)
13433 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13434 echo ' yes '
13435 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13437 else
13438 can_build_shared=no
13441 esac
13442 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13443 # soname into executable. Probably we can add versioning support to
13444 # collect2, so additional links can be useful in future.
13445 if test "$aix_use_runtimelinking" = yes; then
13446 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13447 # instead of lib<name>.a to let people know that these are not
13448 # typical AIX shared libraries.
13449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13450 else
13451 # We preserve .a as extension for shared libraries through AIX4.2
13452 # and later when we are not doing run time linking.
13453 library_names_spec='${libname}${release}.a $libname.a'
13454 soname_spec='${libname}${release}${shared_ext}$major'
13456 shlibpath_var=LIBPATH
13460 amigaos*)
13461 library_names_spec='$libname.ixlibrary $libname.a'
13462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13463 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'
13466 beos*)
13467 library_names_spec='${libname}${shared_ext}'
13468 dynamic_linker="$host_os ld.so"
13469 shlibpath_var=LIBRARY_PATH
13472 bsdi[45]*)
13473 version_type=linux
13474 need_version=no
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476 soname_spec='${libname}${release}${shared_ext}$major'
13477 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13480 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13481 # the default ld.so.conf also contains /usr/contrib/lib and
13482 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13483 # libtool to hard-code these into programs
13486 cygwin* | mingw* | pw32*)
13487 version_type=windows
13488 shrext_cmds=".dll"
13489 need_version=no
13490 need_lib_prefix=no
13492 case $GCC,$host_os in
13493 yes,cygwin* | yes,mingw* | yes,pw32*)
13494 library_names_spec='$libname.dll.a'
13495 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13496 postinstall_cmds='base_file=`basename \${file}`~
13497 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13498 dldir=$destdir/`dirname \$dlpath`~
13499 test -d \$dldir || mkdir -p \$dldir~
13500 $install_prog $dir/$dlname \$dldir/$dlname~
13501 chmod a+x \$dldir/$dlname'
13502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13503 dlpath=$dir/\$dldll~
13504 $rm \$dlpath'
13505 shlibpath_overrides_runpath=yes
13507 case $host_os in
13508 cygwin*)
13509 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13510 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13511 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13513 mingw*)
13514 # MinGW DLLs use traditional 'lib' prefix
13515 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13517 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13518 # It is most probably a Windows format PATH printed by
13519 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13520 # path with ; separators, and with drive letters. We can handle the
13521 # drive letters (cygwin fileutils understands them), so leave them,
13522 # especially as we might pass files found there to a mingw objdump,
13523 # which wouldn't understand a cygwinified path. Ahh.
13524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13525 else
13526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13529 pw32*)
13530 # pw32 DLLs use 'pw' prefix rather than 'lib'
13531 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13533 esac
13537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13539 esac
13540 dynamic_linker='Win32 ld.exe'
13541 # FIXME: first we should search . and the directory the executable is in
13542 shlibpath_var=PATH
13545 darwin* | rhapsody*)
13546 dynamic_linker="$host_os dyld"
13547 version_type=darwin
13548 need_lib_prefix=no
13549 need_version=no
13550 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13551 soname_spec='${libname}${release}${major}$shared_ext'
13552 shlibpath_overrides_runpath=yes
13553 shlibpath_var=DYLD_LIBRARY_PATH
13554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13559 dgux*)
13560 version_type=linux
13561 need_lib_prefix=no
13562 need_version=no
13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13564 soname_spec='${libname}${release}${shared_ext}$major'
13565 shlibpath_var=LD_LIBRARY_PATH
13568 freebsd1*)
13569 dynamic_linker=no
13572 freebsd* | dragonfly*)
13573 # DragonFly does not have aout. When/if they implement a new
13574 # versioning mechanism, adjust this.
13575 if test -x /usr/bin/objformat; then
13576 objformat=`/usr/bin/objformat`
13577 else
13578 case $host_os in
13579 freebsd[123]*) objformat=aout ;;
13580 *) objformat=elf ;;
13581 esac
13583 version_type=freebsd-$objformat
13584 case $version_type in
13585 freebsd-elf*)
13586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13587 need_version=no
13588 need_lib_prefix=no
13590 freebsd-*)
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13592 need_version=yes
13594 esac
13595 shlibpath_var=LD_LIBRARY_PATH
13596 case $host_os in
13597 freebsd2*)
13598 shlibpath_overrides_runpath=yes
13600 freebsd3.[01]* | freebsdelf3.[01]*)
13601 shlibpath_overrides_runpath=yes
13602 hardcode_into_libs=yes
13604 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13605 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13606 shlibpath_overrides_runpath=no
13607 hardcode_into_libs=yes
13609 *) # from 4.6 on, and DragonFly
13610 shlibpath_overrides_runpath=yes
13611 hardcode_into_libs=yes
13613 esac
13616 gnu*)
13617 version_type=linux
13618 need_lib_prefix=no
13619 need_version=no
13620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13621 soname_spec='${libname}${release}${shared_ext}$major'
13622 shlibpath_var=LD_LIBRARY_PATH
13623 hardcode_into_libs=yes
13626 hpux9* | hpux10* | hpux11*)
13627 # Give a soname corresponding to the major version so that dld.sl refuses to
13628 # link against other versions.
13629 version_type=sunos
13630 need_lib_prefix=no
13631 need_version=no
13632 case $host_cpu in
13633 ia64*)
13634 shrext_cmds='.so'
13635 hardcode_into_libs=yes
13636 dynamic_linker="$host_os dld.so"
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13640 soname_spec='${libname}${release}${shared_ext}$major'
13641 if test "X$HPUX_IA64_MODE" = X32; then
13642 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13643 else
13644 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13648 hppa*64*)
13649 shrext_cmds='.sl'
13650 hardcode_into_libs=yes
13651 dynamic_linker="$host_os dld.sl"
13652 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13655 soname_spec='${libname}${release}${shared_ext}$major'
13656 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13660 shrext_cmds='.sl'
13661 dynamic_linker="$host_os dld.sl"
13662 shlibpath_var=SHLIB_PATH
13663 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13665 soname_spec='${libname}${release}${shared_ext}$major'
13667 esac
13668 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13669 postinstall_cmds='chmod 555 $lib'
13672 interix[3-9]*)
13673 version_type=linux
13674 need_lib_prefix=no
13675 need_version=no
13676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13677 soname_spec='${libname}${release}${shared_ext}$major'
13678 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13679 shlibpath_var=LD_LIBRARY_PATH
13680 shlibpath_overrides_runpath=no
13681 hardcode_into_libs=yes
13684 irix5* | irix6* | nonstopux*)
13685 case $host_os in
13686 nonstopux*) version_type=nonstopux ;;
13688 if test "$lt_cv_prog_gnu_ld" = yes; then
13689 version_type=linux
13690 else
13691 version_type=irix
13692 fi ;;
13693 esac
13694 need_lib_prefix=no
13695 need_version=no
13696 soname_spec='${libname}${release}${shared_ext}$major'
13697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13698 case $host_os in
13699 irix5* | nonstopux*)
13700 libsuff= shlibsuff=
13703 case $LD in # libtool.m4 will add one of these switches to LD
13704 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13705 libsuff= shlibsuff= libmagic=32-bit;;
13706 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13707 libsuff=32 shlibsuff=N32 libmagic=N32;;
13708 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13709 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13710 *) libsuff= shlibsuff= libmagic=never-match;;
13711 esac
13713 esac
13714 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13715 shlibpath_overrides_runpath=no
13716 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13717 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13718 hardcode_into_libs=yes
13721 # No shared lib support for Linux oldld, aout, or coff.
13722 linux*oldld* | linux*aout* | linux*coff*)
13723 dynamic_linker=no
13726 # This must be Linux ELF.
13727 linux* | k*bsd*-gnu)
13728 version_type=linux
13729 need_lib_prefix=no
13730 need_version=no
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732 soname_spec='${libname}${release}${shared_ext}$major'
13733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13734 shlibpath_var=LD_LIBRARY_PATH
13735 shlibpath_overrides_runpath=no
13736 # This implies no fast_install, which is unacceptable.
13737 # Some rework will be needed to allow for fast_install
13738 # before this can be enabled.
13739 hardcode_into_libs=yes
13741 # Append ld.so.conf contents to the search path
13742 if test -f /etc/ld.so.conf; then
13743 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13747 # We used to test for /lib/ld.so.1 and disable shared libraries on
13748 # powerpc, because MkLinux only supported shared libraries with the
13749 # GNU dynamic linker. Since this was broken with cross compilers,
13750 # most powerpc-linux boxes support dynamic linking these days and
13751 # people can always --disable-shared, the test was removed, and we
13752 # assume the GNU/Linux dynamic linker is in use.
13753 dynamic_linker='GNU/Linux ld.so'
13756 netbsdelf*-gnu)
13757 version_type=linux
13758 need_lib_prefix=no
13759 need_version=no
13760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13761 soname_spec='${libname}${release}${shared_ext}$major'
13762 shlibpath_var=LD_LIBRARY_PATH
13763 shlibpath_overrides_runpath=no
13764 hardcode_into_libs=yes
13765 dynamic_linker='NetBSD ld.elf_so'
13768 netbsd*)
13769 version_type=sunos
13770 need_lib_prefix=no
13771 need_version=no
13772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13775 dynamic_linker='NetBSD (a.out) ld.so'
13776 else
13777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13778 soname_spec='${libname}${release}${shared_ext}$major'
13779 dynamic_linker='NetBSD ld.elf_so'
13781 shlibpath_var=LD_LIBRARY_PATH
13782 shlibpath_overrides_runpath=yes
13783 hardcode_into_libs=yes
13786 newsos6)
13787 version_type=linux
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 shlibpath_var=LD_LIBRARY_PATH
13790 shlibpath_overrides_runpath=yes
13793 nto-qnx*)
13794 version_type=linux
13795 need_lib_prefix=no
13796 need_version=no
13797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 shlibpath_var=LD_LIBRARY_PATH
13800 shlibpath_overrides_runpath=yes
13803 openbsd*)
13804 version_type=sunos
13805 sys_lib_dlsearch_path_spec="/usr/lib"
13806 need_lib_prefix=no
13807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13808 case $host_os in
13809 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13810 *) need_version=no ;;
13811 esac
13812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13814 shlibpath_var=LD_LIBRARY_PATH
13815 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13816 case $host_os in
13817 openbsd2.[89] | openbsd2.[89].*)
13818 shlibpath_overrides_runpath=no
13821 shlibpath_overrides_runpath=yes
13823 esac
13824 else
13825 shlibpath_overrides_runpath=yes
13829 os2*)
13830 libname_spec='$name'
13831 shrext_cmds=".dll"
13832 need_lib_prefix=no
13833 library_names_spec='$libname${shared_ext} $libname.a'
13834 dynamic_linker='OS/2 ld.exe'
13835 shlibpath_var=LIBPATH
13838 osf3* | osf4* | osf5*)
13839 version_type=osf
13840 need_lib_prefix=no
13841 need_version=no
13842 soname_spec='${libname}${release}${shared_ext}$major'
13843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13844 shlibpath_var=LD_LIBRARY_PATH
13845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13849 rdos*)
13850 dynamic_linker=no
13853 solaris*)
13854 version_type=linux
13855 need_lib_prefix=no
13856 need_version=no
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 shlibpath_var=LD_LIBRARY_PATH
13860 shlibpath_overrides_runpath=yes
13861 hardcode_into_libs=yes
13862 # ldd complains unless libraries are executable
13863 postinstall_cmds='chmod +x $lib'
13866 sunos4*)
13867 version_type=sunos
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13870 shlibpath_var=LD_LIBRARY_PATH
13871 shlibpath_overrides_runpath=yes
13872 if test "$with_gnu_ld" = yes; then
13873 need_lib_prefix=no
13875 need_version=yes
13878 sysv4 | sysv4.3*)
13879 version_type=linux
13880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13881 soname_spec='${libname}${release}${shared_ext}$major'
13882 shlibpath_var=LD_LIBRARY_PATH
13883 case $host_vendor in
13884 sni)
13885 shlibpath_overrides_runpath=no
13886 need_lib_prefix=no
13887 export_dynamic_flag_spec='${wl}-Blargedynsym'
13888 runpath_var=LD_RUN_PATH
13890 siemens)
13891 need_lib_prefix=no
13893 motorola)
13894 need_lib_prefix=no
13895 need_version=no
13896 shlibpath_overrides_runpath=no
13897 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13899 esac
13902 sysv4*MP*)
13903 if test -d /usr/nec ;then
13904 version_type=linux
13905 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13906 soname_spec='$libname${shared_ext}.$major'
13907 shlibpath_var=LD_LIBRARY_PATH
13911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13912 version_type=freebsd-elf
13913 need_lib_prefix=no
13914 need_version=no
13915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13916 soname_spec='${libname}${release}${shared_ext}$major'
13917 shlibpath_var=LD_LIBRARY_PATH
13918 hardcode_into_libs=yes
13919 if test "$with_gnu_ld" = yes; then
13920 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13921 shlibpath_overrides_runpath=no
13922 else
13923 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13924 shlibpath_overrides_runpath=yes
13925 case $host_os in
13926 sco3.2v5*)
13927 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13929 esac
13931 sys_lib_dlsearch_path_spec='/usr/lib'
13934 uts4*)
13935 version_type=linux
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 shlibpath_var=LD_LIBRARY_PATH
13942 dynamic_linker=no
13944 esac
13945 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13946 echo "${ECHO_T}$dynamic_linker" >&6; }
13947 test "$dynamic_linker" = no && can_build_shared=no
13949 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13955 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13956 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13962 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13965 if test "$GCC" = yes; then
13966 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13969 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13970 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13971 hardcode_action_CXX=
13972 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13973 test -n "$runpath_var_CXX" || \
13974 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13976 # We can hardcode non-existant directories.
13977 if test "$hardcode_direct_CXX" != no &&
13978 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13979 # have to relink, otherwise we might link with an installed library
13980 # when we should be linking with a yet-to-be-installed one
13981 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13982 test "$hardcode_minus_L_CXX" != no; then
13983 # Linking always hardcodes the temporary library directory.
13984 hardcode_action_CXX=relink
13985 else
13986 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13987 hardcode_action_CXX=immediate
13989 else
13990 # We cannot hardcode anything, or else we can only hardcode existing
13991 # directories.
13992 hardcode_action_CXX=unsupported
13994 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13995 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13997 if test "$hardcode_action_CXX" = relink; then
13998 # Fast installation is not supported
13999 enable_fast_install=no
14000 elif test "$shlibpath_overrides_runpath" = yes ||
14001 test "$enable_shared" = no; then
14002 # Fast installation is not necessary
14003 enable_fast_install=needless
14007 # The else clause should only fire when bootstrapping the
14008 # libtool distribution, otherwise you forgot to ship ltmain.sh
14009 # with your package, and you will get complaints that there are
14010 # no rules to generate ltmain.sh.
14011 if test -f "$ltmain"; then
14012 # See if we are running on zsh, and set the options which allow our commands through
14013 # without removal of \ escapes.
14014 if test -n "${ZSH_VERSION+set}" ; then
14015 setopt NO_GLOB_SUBST
14017 # Now quote all the things that may contain metacharacters while being
14018 # careful not to overquote the AC_SUBSTed values. We take copies of the
14019 # variables and quote the copies for generation of the libtool script.
14020 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14021 SED SHELL STRIP \
14022 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14023 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14024 deplibs_check_method reload_flag reload_cmds need_locks \
14025 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14026 lt_cv_sys_global_symbol_to_c_name_address \
14027 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14028 old_postinstall_cmds old_postuninstall_cmds \
14029 compiler_CXX \
14030 CC_CXX \
14031 LD_CXX \
14032 lt_prog_compiler_wl_CXX \
14033 lt_prog_compiler_pic_CXX \
14034 lt_prog_compiler_static_CXX \
14035 lt_prog_compiler_no_builtin_flag_CXX \
14036 export_dynamic_flag_spec_CXX \
14037 thread_safe_flag_spec_CXX \
14038 whole_archive_flag_spec_CXX \
14039 enable_shared_with_static_runtimes_CXX \
14040 old_archive_cmds_CXX \
14041 old_archive_from_new_cmds_CXX \
14042 predep_objects_CXX \
14043 postdep_objects_CXX \
14044 predeps_CXX \
14045 postdeps_CXX \
14046 compiler_lib_search_path_CXX \
14047 compiler_lib_search_dirs_CXX \
14048 archive_cmds_CXX \
14049 archive_expsym_cmds_CXX \
14050 postinstall_cmds_CXX \
14051 postuninstall_cmds_CXX \
14052 old_archive_from_expsyms_cmds_CXX \
14053 allow_undefined_flag_CXX \
14054 no_undefined_flag_CXX \
14055 export_symbols_cmds_CXX \
14056 hardcode_libdir_flag_spec_CXX \
14057 hardcode_libdir_flag_spec_ld_CXX \
14058 hardcode_libdir_separator_CXX \
14059 hardcode_automatic_CXX \
14060 module_cmds_CXX \
14061 module_expsym_cmds_CXX \
14062 lt_cv_prog_compiler_c_o_CXX \
14063 fix_srcfile_path_CXX \
14064 exclude_expsyms_CXX \
14065 include_expsyms_CXX; do
14067 case $var in
14068 old_archive_cmds_CXX | \
14069 old_archive_from_new_cmds_CXX | \
14070 archive_cmds_CXX | \
14071 archive_expsym_cmds_CXX | \
14072 module_cmds_CXX | \
14073 module_expsym_cmds_CXX | \
14074 old_archive_from_expsyms_cmds_CXX | \
14075 export_symbols_cmds_CXX | \
14076 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14077 postinstall_cmds | postuninstall_cmds | \
14078 old_postinstall_cmds | old_postuninstall_cmds | \
14079 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14080 # Double-quote double-evaled strings.
14081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14086 esac
14087 done
14089 case $lt_echo in
14090 *'\$0 --fallback-echo"')
14091 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14093 esac
14095 cfgfile="$ofile"
14097 cat <<__EOF__ >> "$cfgfile"
14098 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14100 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14102 # Shell to use when invoking shell scripts.
14103 SHELL=$lt_SHELL
14105 # Whether or not to build shared libraries.
14106 build_libtool_libs=$enable_shared
14108 # Whether or not to build static libraries.
14109 build_old_libs=$enable_static
14111 # Whether or not to add -lc for building shared libraries.
14112 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14114 # Whether or not to disallow shared libs when runtime libs are static
14115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14117 # Whether or not to optimize for fast installation.
14118 fast_install=$enable_fast_install
14120 # The host system.
14121 host_alias=$host_alias
14122 host=$host
14123 host_os=$host_os
14125 # The build system.
14126 build_alias=$build_alias
14127 build=$build
14128 build_os=$build_os
14130 # An echo program that does not interpret backslashes.
14131 echo=$lt_echo
14133 # The archiver.
14134 AR=$lt_AR
14135 AR_FLAGS=$lt_AR_FLAGS
14137 # A C compiler.
14138 LTCC=$lt_LTCC
14140 # LTCC compiler flags.
14141 LTCFLAGS=$lt_LTCFLAGS
14143 # A language-specific compiler.
14144 CC=$lt_compiler_CXX
14146 # Is the compiler the GNU C compiler?
14147 with_gcc=$GCC_CXX
14149 # An ERE matcher.
14150 EGREP=$lt_EGREP
14152 # The linker used to build libraries.
14153 LD=$lt_LD_CXX
14155 # Whether we need hard or soft links.
14156 LN_S=$lt_LN_S
14158 # A BSD-compatible nm program.
14159 NM=$lt_NM
14161 # A symbol stripping program
14162 STRIP=$lt_STRIP
14164 # Used to examine libraries when file_magic_cmd begins "file"
14165 MAGIC_CMD=$MAGIC_CMD
14167 # Used on cygwin: DLL creation program.
14168 DLLTOOL="$DLLTOOL"
14170 # Used on cygwin: object dumper.
14171 OBJDUMP="$OBJDUMP"
14173 # Used on cygwin: assembler.
14174 AS="$AS"
14176 # The name of the directory that contains temporary libtool files.
14177 objdir=$objdir
14179 # How to create reloadable object files.
14180 reload_flag=$lt_reload_flag
14181 reload_cmds=$lt_reload_cmds
14183 # How to pass a linker flag through the compiler.
14184 wl=$lt_lt_prog_compiler_wl_CXX
14186 # Object file suffix (normally "o").
14187 objext="$ac_objext"
14189 # Old archive suffix (normally "a").
14190 libext="$libext"
14192 # Shared library suffix (normally ".so").
14193 shrext_cmds='$shrext_cmds'
14195 # Executable file suffix (normally "").
14196 exeext="$exeext"
14198 # Additional compiler flags for building library objects.
14199 pic_flag=$lt_lt_prog_compiler_pic_CXX
14200 pic_mode=$pic_mode
14202 # What is the maximum length of a command?
14203 max_cmd_len=$lt_cv_sys_max_cmd_len
14205 # Does compiler simultaneously support -c and -o options?
14206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14208 # Must we lock files when doing compilation?
14209 need_locks=$lt_need_locks
14211 # Do we need the lib prefix for modules?
14212 need_lib_prefix=$need_lib_prefix
14214 # Do we need a version for libraries?
14215 need_version=$need_version
14217 # Whether dlopen is supported.
14218 dlopen_support=$enable_dlopen
14220 # Whether dlopen of programs is supported.
14221 dlopen_self=$enable_dlopen_self
14223 # Whether dlopen of statically linked programs is supported.
14224 dlopen_self_static=$enable_dlopen_self_static
14226 # Compiler flag to prevent dynamic linking.
14227 link_static_flag=$lt_lt_prog_compiler_static_CXX
14229 # Compiler flag to turn off builtin functions.
14230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14232 # Compiler flag to allow reflexive dlopens.
14233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14235 # Compiler flag to generate shared objects directly from archives.
14236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14238 # Compiler flag to generate thread-safe objects.
14239 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14241 # Library versioning type.
14242 version_type=$version_type
14244 # Format of library name prefix.
14245 libname_spec=$lt_libname_spec
14247 # List of archive names. First name is the real one, the rest are links.
14248 # The last name is the one that the linker finds with -lNAME.
14249 library_names_spec=$lt_library_names_spec
14251 # The coded name of the library, if different from the real name.
14252 soname_spec=$lt_soname_spec
14254 # Commands used to build and install an old-style archive.
14255 RANLIB=$lt_RANLIB
14256 old_archive_cmds=$lt_old_archive_cmds_CXX
14257 old_postinstall_cmds=$lt_old_postinstall_cmds
14258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14260 # Create an old-style archive from a shared archive.
14261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14263 # Create a temporary old-style archive to link instead of a shared archive.
14264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14266 # Commands used to build and install a shared archive.
14267 archive_cmds=$lt_archive_cmds_CXX
14268 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14269 postinstall_cmds=$lt_postinstall_cmds
14270 postuninstall_cmds=$lt_postuninstall_cmds
14272 # Commands used to build a loadable module (assumed same as above if empty)
14273 module_cmds=$lt_module_cmds_CXX
14274 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14276 # Commands to strip libraries.
14277 old_striplib=$lt_old_striplib
14278 striplib=$lt_striplib
14280 # Dependencies to place before the objects being linked to create a
14281 # shared library.
14282 predep_objects=$lt_predep_objects_CXX
14284 # Dependencies to place after the objects being linked to create a
14285 # shared library.
14286 postdep_objects=$lt_postdep_objects_CXX
14288 # Dependencies to place before the objects being linked to create a
14289 # shared library.
14290 predeps=$lt_predeps_CXX
14292 # Dependencies to place after the objects being linked to create a
14293 # shared library.
14294 postdeps=$lt_postdeps_CXX
14296 # The directories searched by this compiler when creating a shared
14297 # library
14298 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14300 # The library search path used internally by the compiler when linking
14301 # a shared library.
14302 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14304 # Method to check whether dependent libraries are shared objects.
14305 deplibs_check_method=$lt_deplibs_check_method
14307 # Command to use when deplibs_check_method == file_magic.
14308 file_magic_cmd=$lt_file_magic_cmd
14310 # Flag that allows shared libraries with undefined symbols to be built.
14311 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14313 # Flag that forces no undefined symbols.
14314 no_undefined_flag=$lt_no_undefined_flag_CXX
14316 # Commands used to finish a libtool library installation in a directory.
14317 finish_cmds=$lt_finish_cmds
14319 # Same as above, but a single script fragment to be evaled but not shown.
14320 finish_eval=$lt_finish_eval
14322 # Take the output of nm and produce a listing of raw symbols and C names.
14323 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14325 # Transform the output of nm in a proper C declaration
14326 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14328 # Transform the output of nm in a C name address pair
14329 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14331 # This is the shared library runtime path variable.
14332 runpath_var=$runpath_var
14334 # This is the shared library path variable.
14335 shlibpath_var=$shlibpath_var
14337 # Is shlibpath searched before the hard-coded library search path?
14338 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14340 # How to hardcode a shared library path into an executable.
14341 hardcode_action=$hardcode_action_CXX
14343 # Whether we should hardcode library paths into libraries.
14344 hardcode_into_libs=$hardcode_into_libs
14346 # Flag to hardcode \$libdir into a binary during linking.
14347 # This must work even if \$libdir does not exist.
14348 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14350 # If ld is used when linking, flag to hardcode \$libdir into
14351 # a binary during linking. This must work even if \$libdir does
14352 # not exist.
14353 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14355 # Whether we need a single -rpath flag with a separated argument.
14356 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14358 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14359 # resulting binary.
14360 hardcode_direct=$hardcode_direct_CXX
14362 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14363 # resulting binary.
14364 hardcode_minus_L=$hardcode_minus_L_CXX
14366 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14367 # the resulting binary.
14368 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14370 # Set to yes if building a shared library automatically hardcodes DIR into the library
14371 # and all subsequent libraries and executables linked against it.
14372 hardcode_automatic=$hardcode_automatic_CXX
14374 # Variables whose values should be saved in libtool wrapper scripts and
14375 # restored at relink time.
14376 variables_saved_for_relink="$variables_saved_for_relink"
14378 # Whether libtool must link a program against all its dependency libraries.
14379 link_all_deplibs=$link_all_deplibs_CXX
14381 # Compile-time system search path for libraries
14382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14384 # Run-time system search path for libraries
14385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14387 # Fix the shell variable \$srcfile for the compiler.
14388 fix_srcfile_path=$lt_fix_srcfile_path
14390 # Set to yes if exported symbols are required.
14391 always_export_symbols=$always_export_symbols_CXX
14393 # The commands to list exported symbols.
14394 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14396 # The commands to extract the exported symbol list from a shared archive.
14397 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14399 # Symbols that should not be listed in the preloaded symbols.
14400 exclude_expsyms=$lt_exclude_expsyms_CXX
14402 # Symbols that must always be exported.
14403 include_expsyms=$lt_include_expsyms_CXX
14405 # ### END LIBTOOL TAG CONFIG: $tagname
14407 __EOF__
14410 else
14411 # If there is no Makefile yet, we rely on a make rule to execute
14412 # `config.status --recheck' to rerun these tests and create the
14413 # libtool script then.
14414 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14415 if test -f "$ltmain_in"; then
14416 test -f Makefile && make "$ltmain"
14421 ac_ext=c
14422 ac_cpp='$CPP $CPPFLAGS'
14423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14427 CC=$lt_save_CC
14428 LDCXX=$LD
14429 LD=$lt_save_LD
14430 GCC=$lt_save_GCC
14431 with_gnu_ldcxx=$with_gnu_ld
14432 with_gnu_ld=$lt_save_with_gnu_ld
14433 lt_cv_path_LDCXX=$lt_cv_path_LD
14434 lt_cv_path_LD=$lt_save_path_LD
14435 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14436 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14438 else
14439 tagname=""
14443 F77)
14444 if test -n "$F77" && test "X$F77" != "Xno"; then
14446 ac_ext=f
14447 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14448 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14449 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14452 archive_cmds_need_lc_F77=no
14453 allow_undefined_flag_F77=
14454 always_export_symbols_F77=no
14455 archive_expsym_cmds_F77=
14456 export_dynamic_flag_spec_F77=
14457 hardcode_direct_F77=no
14458 hardcode_libdir_flag_spec_F77=
14459 hardcode_libdir_flag_spec_ld_F77=
14460 hardcode_libdir_separator_F77=
14461 hardcode_minus_L_F77=no
14462 hardcode_automatic_F77=no
14463 module_cmds_F77=
14464 module_expsym_cmds_F77=
14465 link_all_deplibs_F77=unknown
14466 old_archive_cmds_F77=$old_archive_cmds
14467 no_undefined_flag_F77=
14468 whole_archive_flag_spec_F77=
14469 enable_shared_with_static_runtimes_F77=no
14471 # Source file extension for f77 test sources.
14472 ac_ext=f
14474 # Object file extension for compiled f77 test sources.
14475 objext=o
14476 objext_F77=$objext
14478 # Code to be used in simple compile tests
14479 lt_simple_compile_test_code="\
14480 subroutine t
14481 return
14485 # Code to be used in simple link tests
14486 lt_simple_link_test_code="\
14487 program t
14491 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14493 # If no C compiler was specified, use CC.
14494 LTCC=${LTCC-"$CC"}
14496 # If no C compiler flags were specified, use CFLAGS.
14497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14499 # Allow CC to be a program name with arguments.
14500 compiler=$CC
14503 # save warnings/boilerplate of simple test code
14504 ac_outfile=conftest.$ac_objext
14505 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14506 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14507 _lt_compiler_boilerplate=`cat conftest.err`
14508 $rm conftest*
14510 ac_outfile=conftest.$ac_objext
14511 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14512 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14513 _lt_linker_boilerplate=`cat conftest.err`
14514 $rm -r conftest*
14517 # Allow CC to be a program name with arguments.
14518 lt_save_CC="$CC"
14519 CC=${F77-"f77"}
14520 compiler=$CC
14521 compiler_F77=$CC
14522 for cc_temp in $compiler""; do
14523 case $cc_temp in
14524 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14525 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14526 \-*) ;;
14527 *) break;;
14528 esac
14529 done
14530 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14533 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14534 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14535 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14536 echo "${ECHO_T}$can_build_shared" >&6; }
14538 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14539 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14540 test "$can_build_shared" = "no" && enable_shared=no
14542 # On AIX, shared libraries and static libraries use the same namespace, and
14543 # are all built from PIC.
14544 case $host_os in
14545 aix3*)
14546 test "$enable_shared" = yes && enable_static=no
14547 if test -n "$RANLIB"; then
14548 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14549 postinstall_cmds='$RANLIB $lib'
14552 aix[4-9]*)
14553 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14554 test "$enable_shared" = yes && enable_static=no
14557 esac
14558 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14559 echo "${ECHO_T}$enable_shared" >&6; }
14561 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14562 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14563 # Make sure either enable_shared or enable_static is yes.
14564 test "$enable_shared" = yes || enable_static=yes
14565 { echo "$as_me:$LINENO: result: $enable_static" >&5
14566 echo "${ECHO_T}$enable_static" >&6; }
14568 GCC_F77="$G77"
14569 LD_F77="$LD"
14571 lt_prog_compiler_wl_F77=
14572 lt_prog_compiler_pic_F77=
14573 lt_prog_compiler_static_F77=
14575 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14576 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14578 if test "$GCC" = yes; then
14579 lt_prog_compiler_wl_F77='-Wl,'
14580 lt_prog_compiler_static_F77='-static'
14582 case $host_os in
14583 aix*)
14584 # All AIX code is PIC.
14585 if test "$host_cpu" = ia64; then
14586 # AIX 5 now supports IA64 processor
14587 lt_prog_compiler_static_F77='-Bstatic'
14591 amigaos*)
14592 # FIXME: we need at least 68020 code to build shared libraries, but
14593 # adding the `-m68020' flag to GCC prevents building anything better,
14594 # like `-m68040'.
14595 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14598 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14599 # PIC is the default for these OSes.
14602 mingw* | cygwin* | pw32* | os2*)
14603 # This hack is so that the source file can tell whether it is being
14604 # built for inclusion in a dll (and should export symbols for example).
14605 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14606 # (--disable-auto-import) libraries
14607 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14610 darwin* | rhapsody*)
14611 # PIC is the default on this platform
14612 # Common symbols not allowed in MH_DYLIB files
14613 lt_prog_compiler_pic_F77='-fno-common'
14616 interix[3-9]*)
14617 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14618 # Instead, we relocate shared libraries at runtime.
14621 msdosdjgpp*)
14622 # Just because we use GCC doesn't mean we suddenly get shared libraries
14623 # on systems that don't support them.
14624 lt_prog_compiler_can_build_shared_F77=no
14625 enable_shared=no
14628 sysv4*MP*)
14629 if test -d /usr/nec; then
14630 lt_prog_compiler_pic_F77=-Kconform_pic
14634 hpux*)
14635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14636 # not for PA HP-UX.
14637 case $host_cpu in
14638 hppa*64*|ia64*)
14639 # +Z the default
14642 lt_prog_compiler_pic_F77='-fPIC'
14644 esac
14648 lt_prog_compiler_pic_F77='-fPIC'
14650 esac
14651 else
14652 # PORTME Check for flag to pass linker flags through the system compiler.
14653 case $host_os in
14654 aix*)
14655 lt_prog_compiler_wl_F77='-Wl,'
14656 if test "$host_cpu" = ia64; then
14657 # AIX 5 now supports IA64 processor
14658 lt_prog_compiler_static_F77='-Bstatic'
14659 else
14660 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14663 darwin*)
14664 # PIC is the default on this platform
14665 # Common symbols not allowed in MH_DYLIB files
14666 case $cc_basename in
14667 xlc*)
14668 lt_prog_compiler_pic_F77='-qnocommon'
14669 lt_prog_compiler_wl_F77='-Wl,'
14671 esac
14674 mingw* | cygwin* | pw32* | os2*)
14675 # This hack is so that the source file can tell whether it is being
14676 # built for inclusion in a dll (and should export symbols for example).
14677 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14680 hpux9* | hpux10* | hpux11*)
14681 lt_prog_compiler_wl_F77='-Wl,'
14682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14683 # not for PA HP-UX.
14684 case $host_cpu in
14685 hppa*64*|ia64*)
14686 # +Z the default
14689 lt_prog_compiler_pic_F77='+Z'
14691 esac
14692 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14693 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14696 irix5* | irix6* | nonstopux*)
14697 lt_prog_compiler_wl_F77='-Wl,'
14698 # PIC (with -KPIC) is the default.
14699 lt_prog_compiler_static_F77='-non_shared'
14702 newsos6)
14703 lt_prog_compiler_pic_F77='-KPIC'
14704 lt_prog_compiler_static_F77='-Bstatic'
14707 linux* | k*bsd*-gnu)
14708 case $cc_basename in
14709 icc* | ecc*)
14710 lt_prog_compiler_wl_F77='-Wl,'
14711 lt_prog_compiler_pic_F77='-KPIC'
14712 lt_prog_compiler_static_F77='-static'
14714 pgcc* | pgf77* | pgf90* | pgf95*)
14715 # Portland Group compilers (*not* the Pentium gcc compiler,
14716 # which looks to be a dead project)
14717 lt_prog_compiler_wl_F77='-Wl,'
14718 lt_prog_compiler_pic_F77='-fpic'
14719 lt_prog_compiler_static_F77='-Bstatic'
14721 ccc*)
14722 lt_prog_compiler_wl_F77='-Wl,'
14723 # All Alpha code is PIC.
14724 lt_prog_compiler_static_F77='-non_shared'
14727 case `$CC -V 2>&1 | sed 5q` in
14728 *Sun\ C*)
14729 # Sun C 5.9
14730 lt_prog_compiler_pic_F77='-KPIC'
14731 lt_prog_compiler_static_F77='-Bstatic'
14732 lt_prog_compiler_wl_F77='-Wl,'
14734 *Sun\ F*)
14735 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14736 lt_prog_compiler_pic_F77='-KPIC'
14737 lt_prog_compiler_static_F77='-Bstatic'
14738 lt_prog_compiler_wl_F77=''
14740 esac
14742 esac
14745 osf3* | osf4* | osf5*)
14746 lt_prog_compiler_wl_F77='-Wl,'
14747 # All OSF/1 code is PIC.
14748 lt_prog_compiler_static_F77='-non_shared'
14751 rdos*)
14752 lt_prog_compiler_static_F77='-non_shared'
14755 solaris*)
14756 lt_prog_compiler_pic_F77='-KPIC'
14757 lt_prog_compiler_static_F77='-Bstatic'
14758 case $cc_basename in
14759 f77* | f90* | f95*)
14760 lt_prog_compiler_wl_F77='-Qoption ld ';;
14762 lt_prog_compiler_wl_F77='-Wl,';;
14763 esac
14766 sunos4*)
14767 lt_prog_compiler_wl_F77='-Qoption ld '
14768 lt_prog_compiler_pic_F77='-PIC'
14769 lt_prog_compiler_static_F77='-Bstatic'
14772 sysv4 | sysv4.2uw2* | sysv4.3*)
14773 lt_prog_compiler_wl_F77='-Wl,'
14774 lt_prog_compiler_pic_F77='-KPIC'
14775 lt_prog_compiler_static_F77='-Bstatic'
14778 sysv4*MP*)
14779 if test -d /usr/nec ;then
14780 lt_prog_compiler_pic_F77='-Kconform_pic'
14781 lt_prog_compiler_static_F77='-Bstatic'
14785 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14786 lt_prog_compiler_wl_F77='-Wl,'
14787 lt_prog_compiler_pic_F77='-KPIC'
14788 lt_prog_compiler_static_F77='-Bstatic'
14791 unicos*)
14792 lt_prog_compiler_wl_F77='-Wl,'
14793 lt_prog_compiler_can_build_shared_F77=no
14796 uts4*)
14797 lt_prog_compiler_pic_F77='-pic'
14798 lt_prog_compiler_static_F77='-Bstatic'
14802 lt_prog_compiler_can_build_shared_F77=no
14804 esac
14807 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14808 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14811 # Check to make sure the PIC flag actually works.
14813 if test -n "$lt_prog_compiler_pic_F77"; then
14815 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14816 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14817 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820 lt_cv_prog_compiler_pic_works_F77=no
14821 ac_outfile=conftest.$ac_objext
14822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14823 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14824 # Insert the option either (1) after the last *FLAGS variable, or
14825 # (2) before a word containing "conftest.", or (3) at the end.
14826 # Note that $ac_compile itself does not contain backslashes and begins
14827 # with a dollar sign (not a hyphen), so the echo should work correctly.
14828 # The option is referenced via a variable to avoid confusing sed.
14829 lt_compile=`echo "$ac_compile" | $SED \
14830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14832 -e 's:$: $lt_compiler_flag:'`
14833 (eval echo "\"\$as_me:14833: $lt_compile\"" >&5)
14834 (eval "$lt_compile" 2>conftest.err)
14835 ac_status=$?
14836 cat conftest.err >&5
14837 echo "$as_me:14837: \$? = $ac_status" >&5
14838 if (exit $ac_status) && test -s "$ac_outfile"; then
14839 # The compiler can only warn and ignore the option if not recognized
14840 # So say no if there are warnings other than the usual output.
14841 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14844 lt_cv_prog_compiler_pic_works_F77=yes
14847 $rm conftest*
14850 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14851 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14853 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14854 case $lt_prog_compiler_pic_F77 in
14855 "" | " "*) ;;
14856 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14857 esac
14858 else
14859 lt_prog_compiler_pic_F77=
14860 lt_prog_compiler_can_build_shared_F77=no
14864 case $host_os in
14865 # For platforms which do not support PIC, -DPIC is meaningless:
14866 *djgpp*)
14867 lt_prog_compiler_pic_F77=
14870 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14872 esac
14875 # Check to make sure the static flag actually works.
14877 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14878 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14879 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14880 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883 lt_cv_prog_compiler_static_works_F77=no
14884 save_LDFLAGS="$LDFLAGS"
14885 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14886 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14887 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14888 # The linker can only warn and ignore the option if not recognized
14889 # So say no if there are warnings
14890 if test -s conftest.err; then
14891 # Append any errors to the config.log.
14892 cat conftest.err 1>&5
14893 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14895 if diff conftest.exp conftest.er2 >/dev/null; then
14896 lt_cv_prog_compiler_static_works_F77=yes
14898 else
14899 lt_cv_prog_compiler_static_works_F77=yes
14902 $rm -r conftest*
14903 LDFLAGS="$save_LDFLAGS"
14906 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14907 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14909 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14911 else
14912 lt_prog_compiler_static_F77=
14916 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14917 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14918 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921 lt_cv_prog_compiler_c_o_F77=no
14922 $rm -r conftest 2>/dev/null
14923 mkdir conftest
14924 cd conftest
14925 mkdir out
14926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14928 lt_compiler_flag="-o out/conftest2.$ac_objext"
14929 # Insert the option either (1) after the last *FLAGS variable, or
14930 # (2) before a word containing "conftest.", or (3) at the end.
14931 # Note that $ac_compile itself does not contain backslashes and begins
14932 # with a dollar sign (not a hyphen), so the echo should work correctly.
14933 lt_compile=`echo "$ac_compile" | $SED \
14934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14936 -e 's:$: $lt_compiler_flag:'`
14937 (eval echo "\"\$as_me:14937: $lt_compile\"" >&5)
14938 (eval "$lt_compile" 2>out/conftest.err)
14939 ac_status=$?
14940 cat out/conftest.err >&5
14941 echo "$as_me:14941: \$? = $ac_status" >&5
14942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14943 then
14944 # The compiler can only warn and ignore the option if not recognized
14945 # So say no if there are warnings
14946 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14949 lt_cv_prog_compiler_c_o_F77=yes
14952 chmod u+w . 2>&5
14953 $rm conftest*
14954 # SGI C++ compiler will create directory out/ii_files/ for
14955 # template instantiation
14956 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14957 $rm out/* && rmdir out
14958 cd ..
14959 rmdir conftest
14960 $rm conftest*
14963 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14964 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14967 hard_links="nottested"
14968 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14969 # do not overwrite the value of need_locks provided by the user
14970 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14971 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14972 hard_links=yes
14973 $rm conftest*
14974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14975 touch conftest.a
14976 ln conftest.a conftest.b 2>&5 || hard_links=no
14977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14978 { echo "$as_me:$LINENO: result: $hard_links" >&5
14979 echo "${ECHO_T}$hard_links" >&6; }
14980 if test "$hard_links" = no; then
14981 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14982 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14983 need_locks=warn
14985 else
14986 need_locks=no
14989 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14990 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14992 runpath_var=
14993 allow_undefined_flag_F77=
14994 enable_shared_with_static_runtimes_F77=no
14995 archive_cmds_F77=
14996 archive_expsym_cmds_F77=
14997 old_archive_From_new_cmds_F77=
14998 old_archive_from_expsyms_cmds_F77=
14999 export_dynamic_flag_spec_F77=
15000 whole_archive_flag_spec_F77=
15001 thread_safe_flag_spec_F77=
15002 hardcode_libdir_flag_spec_F77=
15003 hardcode_libdir_flag_spec_ld_F77=
15004 hardcode_libdir_separator_F77=
15005 hardcode_direct_F77=no
15006 hardcode_minus_L_F77=no
15007 hardcode_shlibpath_var_F77=unsupported
15008 link_all_deplibs_F77=unknown
15009 hardcode_automatic_F77=no
15010 module_cmds_F77=
15011 module_expsym_cmds_F77=
15012 always_export_symbols_F77=no
15013 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15014 # include_expsyms should be a list of space-separated symbols to be *always*
15015 # included in the symbol list
15016 include_expsyms_F77=
15017 # exclude_expsyms can be an extended regexp of symbols to exclude
15018 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15020 # as well as any symbol that contains `d'.
15021 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15023 # platforms (ab)use it in PIC code, but their linkers get confused if
15024 # the symbol is explicitly referenced. Since portable code cannot
15025 # rely on this symbol name, it's probably fine to never include it in
15026 # preloaded symbol tables.
15027 # Exclude shared library initialization/finalization symbols.
15028 extract_expsyms_cmds=
15029 # Just being paranoid about ensuring that cc_basename is set.
15030 for cc_temp in $compiler""; do
15031 case $cc_temp in
15032 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15033 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15034 \-*) ;;
15035 *) break;;
15036 esac
15037 done
15038 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15040 case $host_os in
15041 cygwin* | mingw* | pw32*)
15042 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15043 # When not using gcc, we currently assume that we are using
15044 # Microsoft Visual C++.
15045 if test "$GCC" != yes; then
15046 with_gnu_ld=no
15049 interix*)
15050 # we just hope/assume this is gcc and not c89 (= MSVC++)
15051 with_gnu_ld=yes
15053 openbsd*)
15054 with_gnu_ld=no
15056 esac
15058 ld_shlibs_F77=yes
15059 if test "$with_gnu_ld" = yes; then
15060 # If archive_cmds runs LD, not CC, wlarc should be empty
15061 wlarc='${wl}'
15063 # Set some defaults for GNU ld with shared library support. These
15064 # are reset later if shared libraries are not supported. Putting them
15065 # here allows them to be overridden if necessary.
15066 runpath_var=LD_RUN_PATH
15067 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15068 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15069 # ancient GNU ld didn't support --whole-archive et. al.
15070 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15071 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15072 else
15073 whole_archive_flag_spec_F77=
15075 supports_anon_versioning=no
15076 case `$LD -v 2>/dev/null` in
15077 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15078 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15079 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15080 *\ 2.11.*) ;; # other 2.11 versions
15081 *) supports_anon_versioning=yes ;;
15082 esac
15084 # See if GNU ld supports shared libraries.
15085 case $host_os in
15086 aix[3-9]*)
15087 # On AIX/PPC, the GNU linker is very broken
15088 if test "$host_cpu" != ia64; then
15089 ld_shlibs_F77=no
15090 cat <<EOF 1>&2
15092 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15093 *** to be unable to reliably create shared libraries on AIX.
15094 *** Therefore, libtool is disabling shared libraries support. If you
15095 *** really care for shared libraries, you may want to modify your PATH
15096 *** so that a non-GNU linker is found, and then restart.
15102 amigaos*)
15103 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)'
15104 hardcode_libdir_flag_spec_F77='-L$libdir'
15105 hardcode_minus_L_F77=yes
15107 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15108 # that the semantics of dynamic libraries on AmigaOS, at least up
15109 # to version 4, is to share data among multiple programs linked
15110 # with the same dynamic library. Since this doesn't match the
15111 # behavior of shared libraries on other platforms, we can't use
15112 # them.
15113 ld_shlibs_F77=no
15116 beos*)
15117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15118 allow_undefined_flag_F77=unsupported
15119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15120 # support --undefined. This deserves some investigation. FIXME
15121 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15122 else
15123 ld_shlibs_F77=no
15127 cygwin* | mingw* | pw32*)
15128 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15129 # as there is no search path for DLLs.
15130 hardcode_libdir_flag_spec_F77='-L$libdir'
15131 allow_undefined_flag_F77=unsupported
15132 always_export_symbols_F77=no
15133 enable_shared_with_static_runtimes_F77=yes
15134 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15136 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15137 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15138 # If the export-symbols file already is a .def file (1st line
15139 # is EXPORTS), use it as is; otherwise, prepend...
15140 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15141 cp $export_symbols $output_objdir/$soname.def;
15142 else
15143 echo EXPORTS > $output_objdir/$soname.def;
15144 cat $export_symbols >> $output_objdir/$soname.def;
15146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15147 else
15148 ld_shlibs_F77=no
15152 interix[3-9]*)
15153 hardcode_direct_F77=no
15154 hardcode_shlibpath_var_F77=no
15155 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15156 export_dynamic_flag_spec_F77='${wl}-E'
15157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15158 # Instead, shared libraries are loaded at an image base (0x10000000 by
15159 # default) and relocated if they conflict, which is a slow very memory
15160 # consuming and fragmenting process. To avoid this, we pick a random,
15161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15163 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'
15164 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'
15167 gnu* | linux* | k*bsd*-gnu)
15168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15169 tmp_addflag=
15170 case $cc_basename,$host_cpu in
15171 pgcc*) # Portland Group C compiler
15172 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'
15173 tmp_addflag=' $pic_flag'
15175 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15176 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'
15177 tmp_addflag=' $pic_flag -Mnomain' ;;
15178 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15179 tmp_addflag=' -i_dynamic' ;;
15180 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15181 tmp_addflag=' -i_dynamic -nofor_main' ;;
15182 ifc* | ifort*) # Intel Fortran compiler
15183 tmp_addflag=' -nofor_main' ;;
15184 esac
15185 case `$CC -V 2>&1 | sed 5q` in
15186 *Sun\ C*) # Sun C 5.9
15187 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15188 tmp_sharedflag='-G' ;;
15189 *Sun\ F*) # Sun Fortran 8.3
15190 tmp_sharedflag='-G' ;;
15192 tmp_sharedflag='-shared' ;;
15193 esac
15194 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15196 if test $supports_anon_versioning = yes; then
15197 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15198 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15199 $echo "local: *; };" >> $output_objdir/$libname.ver~
15200 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15202 link_all_deplibs_F77=no
15203 else
15204 ld_shlibs_F77=no
15208 netbsd* | netbsdelf*-gnu)
15209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15210 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15211 wlarc=
15212 else
15213 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15214 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15218 solaris*)
15219 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15220 ld_shlibs_F77=no
15221 cat <<EOF 1>&2
15223 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15224 *** create shared libraries on Solaris systems. Therefore, libtool
15225 *** is disabling shared libraries support. We urge you to upgrade GNU
15226 *** binutils to release 2.9.1 or newer. Another option is to modify
15227 *** your PATH or compiler configuration so that the native linker is
15228 *** used, and then restart.
15231 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15232 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15233 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15234 else
15235 ld_shlibs_F77=no
15239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15240 case `$LD -v 2>&1` in
15241 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15242 ld_shlibs_F77=no
15243 cat <<_LT_EOF 1>&2
15245 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15246 *** reliably create shared libraries on SCO systems. Therefore, libtool
15247 *** is disabling shared libraries support. We urge you to upgrade GNU
15248 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15249 *** your PATH or compiler configuration so that the native linker is
15250 *** used, and then restart.
15252 _LT_EOF
15255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15256 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15257 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15258 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15259 else
15260 ld_shlibs_F77=no
15263 esac
15266 sunos4*)
15267 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15268 wlarc=
15269 hardcode_direct_F77=yes
15270 hardcode_shlibpath_var_F77=no
15274 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15275 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15276 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15277 else
15278 ld_shlibs_F77=no
15281 esac
15283 if test "$ld_shlibs_F77" = no; then
15284 runpath_var=
15285 hardcode_libdir_flag_spec_F77=
15286 export_dynamic_flag_spec_F77=
15287 whole_archive_flag_spec_F77=
15289 else
15290 # PORTME fill in a description of your system's linker (not GNU ld)
15291 case $host_os in
15292 aix3*)
15293 allow_undefined_flag_F77=unsupported
15294 always_export_symbols_F77=yes
15295 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'
15296 # Note: this linker hardcodes the directories in LIBPATH if there
15297 # are no directories specified by -L.
15298 hardcode_minus_L_F77=yes
15299 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15300 # Neither direct hardcoding nor static linking is supported with a
15301 # broken collect2.
15302 hardcode_direct_F77=unsupported
15306 aix[4-9]*)
15307 if test "$host_cpu" = ia64; then
15308 # On IA64, the linker does run time linking by default, so we don't
15309 # have to do anything special.
15310 aix_use_runtimelinking=no
15311 exp_sym_flag='-Bexport'
15312 no_entry_flag=""
15313 else
15314 # If we're using GNU nm, then we don't want the "-C" option.
15315 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15316 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15317 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'
15318 else
15319 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'
15321 aix_use_runtimelinking=no
15323 # Test if we are trying to use run time linking or normal
15324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15325 # need to do runtime linking.
15326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15327 for ld_flag in $LDFLAGS; do
15328 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15329 aix_use_runtimelinking=yes
15330 break
15332 done
15334 esac
15336 exp_sym_flag='-bexport'
15337 no_entry_flag='-bnoentry'
15340 # When large executables or shared objects are built, AIX ld can
15341 # have problems creating the table of contents. If linking a library
15342 # or program results in "error TOC overflow" add -mminimal-toc to
15343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15346 archive_cmds_F77=''
15347 hardcode_direct_F77=yes
15348 hardcode_libdir_separator_F77=':'
15349 link_all_deplibs_F77=yes
15351 if test "$GCC" = yes; then
15352 case $host_os in aix4.[012]|aix4.[012].*)
15353 # We only want to do this on AIX 4.2 and lower, the check
15354 # below for broken collect2 doesn't work under 4.3+
15355 collect2name=`${CC} -print-prog-name=collect2`
15356 if test -f "$collect2name" && \
15357 strings "$collect2name" | grep resolve_lib_name >/dev/null
15358 then
15359 # We have reworked collect2
15361 else
15362 # We have old collect2
15363 hardcode_direct_F77=unsupported
15364 # It fails to find uninstalled libraries when the uninstalled
15365 # path is not listed in the libpath. Setting hardcode_minus_L
15366 # to unsupported forces relinking
15367 hardcode_minus_L_F77=yes
15368 hardcode_libdir_flag_spec_F77='-L$libdir'
15369 hardcode_libdir_separator_F77=
15372 esac
15373 shared_flag='-shared'
15374 if test "$aix_use_runtimelinking" = yes; then
15375 shared_flag="$shared_flag "'${wl}-G'
15377 else
15378 # not using gcc
15379 if test "$host_cpu" = ia64; then
15380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15381 # chokes on -Wl,-G. The following line is correct:
15382 shared_flag='-G'
15383 else
15384 if test "$aix_use_runtimelinking" = yes; then
15385 shared_flag='${wl}-G'
15386 else
15387 shared_flag='${wl}-bM:SRE'
15392 # It seems that -bexpall does not export symbols beginning with
15393 # underscore (_), so it is better to generate a list of symbols to export.
15394 always_export_symbols_F77=yes
15395 if test "$aix_use_runtimelinking" = yes; then
15396 # Warning - without using the other runtime loading flags (-brtl),
15397 # -berok will link without error, but may produce a broken library.
15398 allow_undefined_flag_F77='-berok'
15399 # Determine the default libpath from the value encoded in an empty executable.
15400 cat >conftest.$ac_ext <<_ACEOF
15401 program main
15404 _ACEOF
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_link") 2>conftest.er1
15413 ac_status=$?
15414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } && {
15419 test -z "$ac_f77_werror_flag" ||
15420 test ! -s conftest.err
15421 } && test -s conftest$ac_exeext &&
15422 $as_test_x conftest$ac_exeext; then
15424 lt_aix_libpath_sed='
15425 /Import File Strings/,/^$/ {
15426 /^0/ {
15427 s/^0 *\(.*\)$/\1/
15431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15432 # Check for a 64-bit object if we didn't find anything.
15433 if test -z "$aix_libpath"; then
15434 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15436 else
15437 echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15444 conftest$ac_exeext conftest.$ac_ext
15445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15447 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15448 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"
15449 else
15450 if test "$host_cpu" = ia64; then
15451 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15452 allow_undefined_flag_F77="-z nodefs"
15453 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"
15454 else
15455 # Determine the default libpath from the value encoded in an empty executable.
15456 cat >conftest.$ac_ext <<_ACEOF
15457 program main
15460 _ACEOF
15461 rm -f conftest.$ac_objext conftest$ac_exeext
15462 if { (ac_try="$ac_link"
15463 case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15466 esac
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_link") 2>conftest.er1
15469 ac_status=$?
15470 grep -v '^ *+' conftest.er1 >conftest.err
15471 rm -f conftest.er1
15472 cat conftest.err >&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } && {
15475 test -z "$ac_f77_werror_flag" ||
15476 test ! -s conftest.err
15477 } && test -s conftest$ac_exeext &&
15478 $as_test_x conftest$ac_exeext; then
15480 lt_aix_libpath_sed='
15481 /Import File Strings/,/^$/ {
15482 /^0/ {
15483 s/^0 *\(.*\)$/\1/
15487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15488 # Check for a 64-bit object if we didn't find anything.
15489 if test -z "$aix_libpath"; then
15490 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15492 else
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15500 conftest$ac_exeext conftest.$ac_ext
15501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15503 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15504 # Warning - without using the other run time loading flags,
15505 # -berok will link without error, but may produce a broken library.
15506 no_undefined_flag_F77=' ${wl}-bernotok'
15507 allow_undefined_flag_F77=' ${wl}-berok'
15508 # Exported symbols can be pulled into shared objects from archives
15509 whole_archive_flag_spec_F77='$convenience'
15510 archive_cmds_need_lc_F77=yes
15511 # This is similar to how AIX traditionally builds its shared libraries.
15512 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'
15517 amigaos*)
15518 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)'
15519 hardcode_libdir_flag_spec_F77='-L$libdir'
15520 hardcode_minus_L_F77=yes
15521 # see comment about different semantics on the GNU ld section
15522 ld_shlibs_F77=no
15525 bsdi[45]*)
15526 export_dynamic_flag_spec_F77=-rdynamic
15529 cygwin* | mingw* | pw32*)
15530 # When not using gcc, we currently assume that we are using
15531 # Microsoft Visual C++.
15532 # hardcode_libdir_flag_spec is actually meaningless, as there is
15533 # no search path for DLLs.
15534 hardcode_libdir_flag_spec_F77=' '
15535 allow_undefined_flag_F77=unsupported
15536 # Tell ltmain to make .lib files, not .a files.
15537 libext=lib
15538 # Tell ltmain to make .dll files, not .so files.
15539 shrext_cmds=".dll"
15540 # FIXME: Setting linknames here is a bad hack.
15541 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15542 # The linker will automatically build a .lib file if we build a DLL.
15543 old_archive_From_new_cmds_F77='true'
15544 # FIXME: Should let the user specify the lib program.
15545 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15546 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15547 enable_shared_with_static_runtimes_F77=yes
15550 darwin* | rhapsody*)
15551 case $host_os in
15552 rhapsody* | darwin1.[012])
15553 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15555 *) # Darwin 1.3 on
15556 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15557 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15558 else
15559 case ${MACOSX_DEPLOYMENT_TARGET} in
15560 10.[012])
15561 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15563 10.*)
15564 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15566 esac
15569 esac
15570 archive_cmds_need_lc_F77=no
15571 hardcode_direct_F77=no
15572 hardcode_automatic_F77=yes
15573 hardcode_shlibpath_var_F77=unsupported
15574 whole_archive_flag_spec_F77=''
15575 link_all_deplibs_F77=yes
15576 if test "$GCC" = yes ; then
15577 output_verbose_link_cmd='echo'
15578 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15579 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15580 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15581 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15582 else
15583 case $cc_basename in
15584 xlc*)
15585 output_verbose_link_cmd='echo'
15586 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15587 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15588 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15589 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15590 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}'
15593 ld_shlibs_F77=no
15595 esac
15599 dgux*)
15600 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15601 hardcode_libdir_flag_spec_F77='-L$libdir'
15602 hardcode_shlibpath_var_F77=no
15605 freebsd1*)
15606 ld_shlibs_F77=no
15609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15610 # support. Future versions do this automatically, but an explicit c++rt0.o
15611 # does not break anything, and helps significantly (at the cost of a little
15612 # extra space).
15613 freebsd2.2*)
15614 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15615 hardcode_libdir_flag_spec_F77='-R$libdir'
15616 hardcode_direct_F77=yes
15617 hardcode_shlibpath_var_F77=no
15620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15621 freebsd2*)
15622 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15623 hardcode_direct_F77=yes
15624 hardcode_minus_L_F77=yes
15625 hardcode_shlibpath_var_F77=no
15628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15629 freebsd* | dragonfly*)
15630 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15631 hardcode_libdir_flag_spec_F77='-R$libdir'
15632 hardcode_direct_F77=yes
15633 hardcode_shlibpath_var_F77=no
15636 hpux9*)
15637 if test "$GCC" = yes; then
15638 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'
15639 else
15640 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'
15642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15643 hardcode_libdir_separator_F77=:
15644 hardcode_direct_F77=yes
15646 # hardcode_minus_L: Not really in the search PATH,
15647 # but as the default location of the library.
15648 hardcode_minus_L_F77=yes
15649 export_dynamic_flag_spec_F77='${wl}-E'
15652 hpux10*)
15653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15654 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15655 else
15656 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15658 if test "$with_gnu_ld" = no; then
15659 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15660 hardcode_libdir_separator_F77=:
15662 hardcode_direct_F77=yes
15663 export_dynamic_flag_spec_F77='${wl}-E'
15665 # hardcode_minus_L: Not really in the search PATH,
15666 # but as the default location of the library.
15667 hardcode_minus_L_F77=yes
15671 hpux11*)
15672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15673 case $host_cpu in
15674 hppa*64*)
15675 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15677 ia64*)
15678 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15681 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15683 esac
15684 else
15685 case $host_cpu in
15686 hppa*64*)
15687 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15689 ia64*)
15690 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15693 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15695 esac
15697 if test "$with_gnu_ld" = no; then
15698 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15699 hardcode_libdir_separator_F77=:
15701 case $host_cpu in
15702 hppa*64*|ia64*)
15703 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15704 hardcode_direct_F77=no
15705 hardcode_shlibpath_var_F77=no
15708 hardcode_direct_F77=yes
15709 export_dynamic_flag_spec_F77='${wl}-E'
15711 # hardcode_minus_L: Not really in the search PATH,
15712 # but as the default location of the library.
15713 hardcode_minus_L_F77=yes
15715 esac
15719 irix5* | irix6* | nonstopux*)
15720 if test "$GCC" = yes; then
15721 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'
15722 else
15723 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'
15724 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15726 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15727 hardcode_libdir_separator_F77=:
15728 link_all_deplibs_F77=yes
15731 netbsd* | netbsdelf*-gnu)
15732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15733 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15734 else
15735 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15737 hardcode_libdir_flag_spec_F77='-R$libdir'
15738 hardcode_direct_F77=yes
15739 hardcode_shlibpath_var_F77=no
15742 newsos6)
15743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15744 hardcode_direct_F77=yes
15745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15746 hardcode_libdir_separator_F77=:
15747 hardcode_shlibpath_var_F77=no
15750 openbsd*)
15751 if test -f /usr/libexec/ld.so; then
15752 hardcode_direct_F77=yes
15753 hardcode_shlibpath_var_F77=no
15754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15755 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15757 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15758 export_dynamic_flag_spec_F77='${wl}-E'
15759 else
15760 case $host_os in
15761 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15762 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15763 hardcode_libdir_flag_spec_F77='-R$libdir'
15766 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15767 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15769 esac
15771 else
15772 ld_shlibs_F77=no
15776 os2*)
15777 hardcode_libdir_flag_spec_F77='-L$libdir'
15778 hardcode_minus_L_F77=yes
15779 allow_undefined_flag_F77=unsupported
15780 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'
15781 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15784 osf3*)
15785 if test "$GCC" = yes; then
15786 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15787 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'
15788 else
15789 allow_undefined_flag_F77=' -expect_unresolved \*'
15790 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'
15792 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15793 hardcode_libdir_separator_F77=:
15796 osf4* | osf5*) # as osf3* with the addition of -msym flag
15797 if test "$GCC" = yes; then
15798 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15799 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'
15800 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15801 else
15802 allow_undefined_flag_F77=' -expect_unresolved \*'
15803 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'
15804 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~
15805 $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'
15807 # Both c and cxx compiler support -rpath directly
15808 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15810 hardcode_libdir_separator_F77=:
15813 solaris*)
15814 no_undefined_flag_F77=' -z text'
15815 if test "$GCC" = yes; then
15816 wlarc='${wl}'
15817 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15818 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15819 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15820 else
15821 wlarc=''
15822 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15826 hardcode_libdir_flag_spec_F77='-R$libdir'
15827 hardcode_shlibpath_var_F77=no
15828 case $host_os in
15829 solaris2.[0-5] | solaris2.[0-5].*) ;;
15831 # The compiler driver will combine and reorder linker options,
15832 # but understands `-z linker_flag'. GCC discards it without `$wl',
15833 # but is careful enough not to reorder.
15834 # Supported since Solaris 2.6 (maybe 2.5.1?)
15835 if test "$GCC" = yes; then
15836 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15837 else
15838 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15841 esac
15842 link_all_deplibs_F77=yes
15845 sunos4*)
15846 if test "x$host_vendor" = xsequent; then
15847 # Use $CC to link under sequent, because it throws in some extra .o
15848 # files that make .init and .fini sections work.
15849 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15850 else
15851 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15853 hardcode_libdir_flag_spec_F77='-L$libdir'
15854 hardcode_direct_F77=yes
15855 hardcode_minus_L_F77=yes
15856 hardcode_shlibpath_var_F77=no
15859 sysv4)
15860 case $host_vendor in
15861 sni)
15862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15863 hardcode_direct_F77=yes # is this really true???
15865 siemens)
15866 ## LD is ld it makes a PLAMLIB
15867 ## CC just makes a GrossModule.
15868 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15869 reload_cmds_F77='$CC -r -o $output$reload_objs'
15870 hardcode_direct_F77=no
15872 motorola)
15873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15874 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15876 esac
15877 runpath_var='LD_RUN_PATH'
15878 hardcode_shlibpath_var_F77=no
15881 sysv4.3*)
15882 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15883 hardcode_shlibpath_var_F77=no
15884 export_dynamic_flag_spec_F77='-Bexport'
15887 sysv4*MP*)
15888 if test -d /usr/nec; then
15889 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15890 hardcode_shlibpath_var_F77=no
15891 runpath_var=LD_RUN_PATH
15892 hardcode_runpath_var=yes
15893 ld_shlibs_F77=yes
15897 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15898 no_undefined_flag_F77='${wl}-z,text'
15899 archive_cmds_need_lc_F77=no
15900 hardcode_shlibpath_var_F77=no
15901 runpath_var='LD_RUN_PATH'
15903 if test "$GCC" = yes; then
15904 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15905 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15906 else
15907 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15912 sysv5* | sco3.2v5* | sco5v6*)
15913 # Note: We can NOT use -z defs as we might desire, because we do not
15914 # link with -lc, and that would cause any symbols used from libc to
15915 # always be unresolved, which means just about no library would
15916 # ever link correctly. If we're not using GNU ld we use -z text
15917 # though, which does catch some bad symbols but isn't as heavy-handed
15918 # as -z defs.
15919 no_undefined_flag_F77='${wl}-z,text'
15920 allow_undefined_flag_F77='${wl}-z,nodefs'
15921 archive_cmds_need_lc_F77=no
15922 hardcode_shlibpath_var_F77=no
15923 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15924 hardcode_libdir_separator_F77=':'
15925 link_all_deplibs_F77=yes
15926 export_dynamic_flag_spec_F77='${wl}-Bexport'
15927 runpath_var='LD_RUN_PATH'
15929 if test "$GCC" = yes; then
15930 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15931 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15932 else
15933 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15934 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15938 uts4*)
15939 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15940 hardcode_libdir_flag_spec_F77='-L$libdir'
15941 hardcode_shlibpath_var_F77=no
15945 ld_shlibs_F77=no
15947 esac
15950 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15951 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15952 test "$ld_shlibs_F77" = no && can_build_shared=no
15955 # Do we need to explicitly link libc?
15957 case "x$archive_cmds_need_lc_F77" in
15958 x|xyes)
15959 # Assume -lc should be added
15960 archive_cmds_need_lc_F77=yes
15962 if test "$enable_shared" = yes && test "$GCC" = yes; then
15963 case $archive_cmds_F77 in
15964 *'~'*)
15965 # FIXME: we may have to deal with multi-command sequences.
15967 '$CC '*)
15968 # Test whether the compiler implicitly links with -lc since on some
15969 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15970 # to ld, don't add -lc before -lgcc.
15971 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15972 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15973 $rm conftest*
15974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); } 2>conftest.err; then
15981 soname=conftest
15982 lib=conftest
15983 libobjs=conftest.$ac_objext
15984 deplibs=
15985 wl=$lt_prog_compiler_wl_F77
15986 pic_flag=$lt_prog_compiler_pic_F77
15987 compiler_flags=-v
15988 linker_flags=-v
15989 verstring=
15990 output_objdir=.
15991 libname=conftest
15992 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15993 allow_undefined_flag_F77=
15994 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15995 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }
15999 then
16000 archive_cmds_need_lc_F77=no
16001 else
16002 archive_cmds_need_lc_F77=yes
16004 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16005 else
16006 cat conftest.err 1>&5
16008 $rm conftest*
16009 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16010 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16012 esac
16015 esac
16017 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16018 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16019 library_names_spec=
16020 libname_spec='lib$name'
16021 soname_spec=
16022 shrext_cmds=".so"
16023 postinstall_cmds=
16024 postuninstall_cmds=
16025 finish_cmds=
16026 finish_eval=
16027 shlibpath_var=
16028 shlibpath_overrides_runpath=unknown
16029 version_type=none
16030 dynamic_linker="$host_os ld.so"
16031 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16033 need_lib_prefix=unknown
16034 hardcode_into_libs=no
16036 # when you set need_version to no, make sure it does not cause -set_version
16037 # flags to be left without arguments
16038 need_version=unknown
16040 case $host_os in
16041 aix3*)
16042 version_type=linux
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16044 shlibpath_var=LIBPATH
16046 # AIX 3 has no versioning support, so we append a major version to the name.
16047 soname_spec='${libname}${release}${shared_ext}$major'
16050 aix[4-9]*)
16051 version_type=linux
16052 need_lib_prefix=no
16053 need_version=no
16054 hardcode_into_libs=yes
16055 if test "$host_cpu" = ia64; then
16056 # AIX 5 supports IA64
16057 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 else
16060 # With GCC up to 2.95.x, collect2 would create an import file
16061 # for dependence libraries. The import file would start with
16062 # the line `#! .'. This would cause the generated library to
16063 # depend on `.', always an invalid library. This was fixed in
16064 # development snapshots of GCC prior to 3.0.
16065 case $host_os in
16066 aix4 | aix4.[01] | aix4.[01].*)
16067 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16068 echo ' yes '
16069 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16071 else
16072 can_build_shared=no
16075 esac
16076 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16077 # soname into executable. Probably we can add versioning support to
16078 # collect2, so additional links can be useful in future.
16079 if test "$aix_use_runtimelinking" = yes; then
16080 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16081 # instead of lib<name>.a to let people know that these are not
16082 # typical AIX shared libraries.
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 else
16085 # We preserve .a as extension for shared libraries through AIX4.2
16086 # and later when we are not doing run time linking.
16087 library_names_spec='${libname}${release}.a $libname.a'
16088 soname_spec='${libname}${release}${shared_ext}$major'
16090 shlibpath_var=LIBPATH
16094 amigaos*)
16095 library_names_spec='$libname.ixlibrary $libname.a'
16096 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16097 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'
16100 beos*)
16101 library_names_spec='${libname}${shared_ext}'
16102 dynamic_linker="$host_os ld.so"
16103 shlibpath_var=LIBRARY_PATH
16106 bsdi[45]*)
16107 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16114 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16115 # the default ld.so.conf also contains /usr/contrib/lib and
16116 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16117 # libtool to hard-code these into programs
16120 cygwin* | mingw* | pw32*)
16121 version_type=windows
16122 shrext_cmds=".dll"
16123 need_version=no
16124 need_lib_prefix=no
16126 case $GCC,$host_os in
16127 yes,cygwin* | yes,mingw* | yes,pw32*)
16128 library_names_spec='$libname.dll.a'
16129 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16130 postinstall_cmds='base_file=`basename \${file}`~
16131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16132 dldir=$destdir/`dirname \$dlpath`~
16133 test -d \$dldir || mkdir -p \$dldir~
16134 $install_prog $dir/$dlname \$dldir/$dlname~
16135 chmod a+x \$dldir/$dlname'
16136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16137 dlpath=$dir/\$dldll~
16138 $rm \$dlpath'
16139 shlibpath_overrides_runpath=yes
16141 case $host_os in
16142 cygwin*)
16143 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16144 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16145 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16147 mingw*)
16148 # MinGW DLLs use traditional 'lib' prefix
16149 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16150 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16151 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16152 # It is most probably a Windows format PATH printed by
16153 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16154 # path with ; separators, and with drive letters. We can handle the
16155 # drive letters (cygwin fileutils understands them), so leave them,
16156 # especially as we might pass files found there to a mingw objdump,
16157 # which wouldn't understand a cygwinified path. Ahh.
16158 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16159 else
16160 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16163 pw32*)
16164 # pw32 DLLs use 'pw' prefix rather than 'lib'
16165 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16167 esac
16171 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16173 esac
16174 dynamic_linker='Win32 ld.exe'
16175 # FIXME: first we should search . and the directory the executable is in
16176 shlibpath_var=PATH
16179 darwin* | rhapsody*)
16180 dynamic_linker="$host_os dyld"
16181 version_type=darwin
16182 need_lib_prefix=no
16183 need_version=no
16184 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16185 soname_spec='${libname}${release}${major}$shared_ext'
16186 shlibpath_overrides_runpath=yes
16187 shlibpath_var=DYLD_LIBRARY_PATH
16188 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16193 dgux*)
16194 version_type=linux
16195 need_lib_prefix=no
16196 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
16202 freebsd1*)
16203 dynamic_linker=no
16206 freebsd* | dragonfly*)
16207 # DragonFly does not have aout. When/if they implement a new
16208 # versioning mechanism, adjust this.
16209 if test -x /usr/bin/objformat; then
16210 objformat=`/usr/bin/objformat`
16211 else
16212 case $host_os in
16213 freebsd[123]*) objformat=aout ;;
16214 *) objformat=elf ;;
16215 esac
16217 version_type=freebsd-$objformat
16218 case $version_type in
16219 freebsd-elf*)
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16221 need_version=no
16222 need_lib_prefix=no
16224 freebsd-*)
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16226 need_version=yes
16228 esac
16229 shlibpath_var=LD_LIBRARY_PATH
16230 case $host_os in
16231 freebsd2*)
16232 shlibpath_overrides_runpath=yes
16234 freebsd3.[01]* | freebsdelf3.[01]*)
16235 shlibpath_overrides_runpath=yes
16236 hardcode_into_libs=yes
16238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16240 shlibpath_overrides_runpath=no
16241 hardcode_into_libs=yes
16243 *) # from 4.6 on, and DragonFly
16244 shlibpath_overrides_runpath=yes
16245 hardcode_into_libs=yes
16247 esac
16250 gnu*)
16251 version_type=linux
16252 need_lib_prefix=no
16253 need_version=no
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16255 soname_spec='${libname}${release}${shared_ext}$major'
16256 shlibpath_var=LD_LIBRARY_PATH
16257 hardcode_into_libs=yes
16260 hpux9* | hpux10* | hpux11*)
16261 # Give a soname corresponding to the major version so that dld.sl refuses to
16262 # link against other versions.
16263 version_type=sunos
16264 need_lib_prefix=no
16265 need_version=no
16266 case $host_cpu in
16267 ia64*)
16268 shrext_cmds='.so'
16269 hardcode_into_libs=yes
16270 dynamic_linker="$host_os dld.so"
16271 shlibpath_var=LD_LIBRARY_PATH
16272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 soname_spec='${libname}${release}${shared_ext}$major'
16275 if test "X$HPUX_IA64_MODE" = X32; then
16276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16277 else
16278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16282 hppa*64*)
16283 shrext_cmds='.sl'
16284 hardcode_into_libs=yes
16285 dynamic_linker="$host_os dld.sl"
16286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16294 shrext_cmds='.sl'
16295 dynamic_linker="$host_os dld.sl"
16296 shlibpath_var=SHLIB_PATH
16297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16301 esac
16302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16303 postinstall_cmds='chmod 555 $lib'
16306 interix[3-9]*)
16307 version_type=linux
16308 need_lib_prefix=no
16309 need_version=no
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16313 shlibpath_var=LD_LIBRARY_PATH
16314 shlibpath_overrides_runpath=no
16315 hardcode_into_libs=yes
16318 irix5* | irix6* | nonstopux*)
16319 case $host_os in
16320 nonstopux*) version_type=nonstopux ;;
16322 if test "$lt_cv_prog_gnu_ld" = yes; then
16323 version_type=linux
16324 else
16325 version_type=irix
16326 fi ;;
16327 esac
16328 need_lib_prefix=no
16329 need_version=no
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16332 case $host_os in
16333 irix5* | nonstopux*)
16334 libsuff= shlibsuff=
16337 case $LD in # libtool.m4 will add one of these switches to LD
16338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16339 libsuff= shlibsuff= libmagic=32-bit;;
16340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16341 libsuff=32 shlibsuff=N32 libmagic=N32;;
16342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16344 *) libsuff= shlibsuff= libmagic=never-match;;
16345 esac
16347 esac
16348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16349 shlibpath_overrides_runpath=no
16350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16352 hardcode_into_libs=yes
16355 # No shared lib support for Linux oldld, aout, or coff.
16356 linux*oldld* | linux*aout* | linux*coff*)
16357 dynamic_linker=no
16360 # This must be Linux ELF.
16361 linux* | k*bsd*-gnu)
16362 version_type=linux
16363 need_lib_prefix=no
16364 need_version=no
16365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16368 shlibpath_var=LD_LIBRARY_PATH
16369 shlibpath_overrides_runpath=no
16370 # This implies no fast_install, which is unacceptable.
16371 # Some rework will be needed to allow for fast_install
16372 # before this can be enabled.
16373 hardcode_into_libs=yes
16375 # Append ld.so.conf contents to the search path
16376 if test -f /etc/ld.so.conf; then
16377 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16381 # We used to test for /lib/ld.so.1 and disable shared libraries on
16382 # powerpc, because MkLinux only supported shared libraries with the
16383 # GNU dynamic linker. Since this was broken with cross compilers,
16384 # most powerpc-linux boxes support dynamic linking these days and
16385 # people can always --disable-shared, the test was removed, and we
16386 # assume the GNU/Linux dynamic linker is in use.
16387 dynamic_linker='GNU/Linux ld.so'
16390 netbsdelf*-gnu)
16391 version_type=linux
16392 need_lib_prefix=no
16393 need_version=no
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16395 soname_spec='${libname}${release}${shared_ext}$major'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 shlibpath_overrides_runpath=no
16398 hardcode_into_libs=yes
16399 dynamic_linker='NetBSD ld.elf_so'
16402 netbsd*)
16403 version_type=sunos
16404 need_lib_prefix=no
16405 need_version=no
16406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16409 dynamic_linker='NetBSD (a.out) ld.so'
16410 else
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16412 soname_spec='${libname}${release}${shared_ext}$major'
16413 dynamic_linker='NetBSD ld.elf_so'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=yes
16417 hardcode_into_libs=yes
16420 newsos6)
16421 version_type=linux
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423 shlibpath_var=LD_LIBRARY_PATH
16424 shlibpath_overrides_runpath=yes
16427 nto-qnx*)
16428 version_type=linux
16429 need_lib_prefix=no
16430 need_version=no
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 soname_spec='${libname}${release}${shared_ext}$major'
16433 shlibpath_var=LD_LIBRARY_PATH
16434 shlibpath_overrides_runpath=yes
16437 openbsd*)
16438 version_type=sunos
16439 sys_lib_dlsearch_path_spec="/usr/lib"
16440 need_lib_prefix=no
16441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16442 case $host_os in
16443 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16444 *) need_version=no ;;
16445 esac
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16450 case $host_os in
16451 openbsd2.[89] | openbsd2.[89].*)
16452 shlibpath_overrides_runpath=no
16455 shlibpath_overrides_runpath=yes
16457 esac
16458 else
16459 shlibpath_overrides_runpath=yes
16463 os2*)
16464 libname_spec='$name'
16465 shrext_cmds=".dll"
16466 need_lib_prefix=no
16467 library_names_spec='$libname${shared_ext} $libname.a'
16468 dynamic_linker='OS/2 ld.exe'
16469 shlibpath_var=LIBPATH
16472 osf3* | osf4* | osf5*)
16473 version_type=osf
16474 need_lib_prefix=no
16475 need_version=no
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16478 shlibpath_var=LD_LIBRARY_PATH
16479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16483 rdos*)
16484 dynamic_linker=no
16487 solaris*)
16488 version_type=linux
16489 need_lib_prefix=no
16490 need_version=no
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 shlibpath_var=LD_LIBRARY_PATH
16494 shlibpath_overrides_runpath=yes
16495 hardcode_into_libs=yes
16496 # ldd complains unless libraries are executable
16497 postinstall_cmds='chmod +x $lib'
16500 sunos4*)
16501 version_type=sunos
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 shlibpath_overrides_runpath=yes
16506 if test "$with_gnu_ld" = yes; then
16507 need_lib_prefix=no
16509 need_version=yes
16512 sysv4 | sysv4.3*)
16513 version_type=linux
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515 soname_spec='${libname}${release}${shared_ext}$major'
16516 shlibpath_var=LD_LIBRARY_PATH
16517 case $host_vendor in
16518 sni)
16519 shlibpath_overrides_runpath=no
16520 need_lib_prefix=no
16521 export_dynamic_flag_spec='${wl}-Blargedynsym'
16522 runpath_var=LD_RUN_PATH
16524 siemens)
16525 need_lib_prefix=no
16527 motorola)
16528 need_lib_prefix=no
16529 need_version=no
16530 shlibpath_overrides_runpath=no
16531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16533 esac
16536 sysv4*MP*)
16537 if test -d /usr/nec ;then
16538 version_type=linux
16539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16540 soname_spec='$libname${shared_ext}.$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16546 version_type=freebsd-elf
16547 need_lib_prefix=no
16548 need_version=no
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 hardcode_into_libs=yes
16553 if test "$with_gnu_ld" = yes; then
16554 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16555 shlibpath_overrides_runpath=no
16556 else
16557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16558 shlibpath_overrides_runpath=yes
16559 case $host_os in
16560 sco3.2v5*)
16561 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16563 esac
16565 sys_lib_dlsearch_path_spec='/usr/lib'
16568 uts4*)
16569 version_type=linux
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571 soname_spec='${libname}${release}${shared_ext}$major'
16572 shlibpath_var=LD_LIBRARY_PATH
16576 dynamic_linker=no
16578 esac
16579 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16580 echo "${ECHO_T}$dynamic_linker" >&6; }
16581 test "$dynamic_linker" = no && can_build_shared=no
16583 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16589 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16590 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16596 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16598 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16599 if test "$GCC" = yes; then
16600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16603 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16604 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16605 hardcode_action_F77=
16606 if test -n "$hardcode_libdir_flag_spec_F77" || \
16607 test -n "$runpath_var_F77" || \
16608 test "X$hardcode_automatic_F77" = "Xyes" ; then
16610 # We can hardcode non-existant directories.
16611 if test "$hardcode_direct_F77" != no &&
16612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16613 # have to relink, otherwise we might link with an installed library
16614 # when we should be linking with a yet-to-be-installed one
16615 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16616 test "$hardcode_minus_L_F77" != no; then
16617 # Linking always hardcodes the temporary library directory.
16618 hardcode_action_F77=relink
16619 else
16620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16621 hardcode_action_F77=immediate
16623 else
16624 # We cannot hardcode anything, or else we can only hardcode existing
16625 # directories.
16626 hardcode_action_F77=unsupported
16628 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16629 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16631 if test "$hardcode_action_F77" = relink; then
16632 # Fast installation is not supported
16633 enable_fast_install=no
16634 elif test "$shlibpath_overrides_runpath" = yes ||
16635 test "$enable_shared" = no; then
16636 # Fast installation is not necessary
16637 enable_fast_install=needless
16641 # The else clause should only fire when bootstrapping the
16642 # libtool distribution, otherwise you forgot to ship ltmain.sh
16643 # with your package, and you will get complaints that there are
16644 # no rules to generate ltmain.sh.
16645 if test -f "$ltmain"; then
16646 # See if we are running on zsh, and set the options which allow our commands through
16647 # without removal of \ escapes.
16648 if test -n "${ZSH_VERSION+set}" ; then
16649 setopt NO_GLOB_SUBST
16651 # Now quote all the things that may contain metacharacters while being
16652 # careful not to overquote the AC_SUBSTed values. We take copies of the
16653 # variables and quote the copies for generation of the libtool script.
16654 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16655 SED SHELL STRIP \
16656 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16657 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16658 deplibs_check_method reload_flag reload_cmds need_locks \
16659 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16660 lt_cv_sys_global_symbol_to_c_name_address \
16661 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16662 old_postinstall_cmds old_postuninstall_cmds \
16663 compiler_F77 \
16664 CC_F77 \
16665 LD_F77 \
16666 lt_prog_compiler_wl_F77 \
16667 lt_prog_compiler_pic_F77 \
16668 lt_prog_compiler_static_F77 \
16669 lt_prog_compiler_no_builtin_flag_F77 \
16670 export_dynamic_flag_spec_F77 \
16671 thread_safe_flag_spec_F77 \
16672 whole_archive_flag_spec_F77 \
16673 enable_shared_with_static_runtimes_F77 \
16674 old_archive_cmds_F77 \
16675 old_archive_from_new_cmds_F77 \
16676 predep_objects_F77 \
16677 postdep_objects_F77 \
16678 predeps_F77 \
16679 postdeps_F77 \
16680 compiler_lib_search_path_F77 \
16681 compiler_lib_search_dirs_F77 \
16682 archive_cmds_F77 \
16683 archive_expsym_cmds_F77 \
16684 postinstall_cmds_F77 \
16685 postuninstall_cmds_F77 \
16686 old_archive_from_expsyms_cmds_F77 \
16687 allow_undefined_flag_F77 \
16688 no_undefined_flag_F77 \
16689 export_symbols_cmds_F77 \
16690 hardcode_libdir_flag_spec_F77 \
16691 hardcode_libdir_flag_spec_ld_F77 \
16692 hardcode_libdir_separator_F77 \
16693 hardcode_automatic_F77 \
16694 module_cmds_F77 \
16695 module_expsym_cmds_F77 \
16696 lt_cv_prog_compiler_c_o_F77 \
16697 fix_srcfile_path_F77 \
16698 exclude_expsyms_F77 \
16699 include_expsyms_F77; do
16701 case $var in
16702 old_archive_cmds_F77 | \
16703 old_archive_from_new_cmds_F77 | \
16704 archive_cmds_F77 | \
16705 archive_expsym_cmds_F77 | \
16706 module_cmds_F77 | \
16707 module_expsym_cmds_F77 | \
16708 old_archive_from_expsyms_cmds_F77 | \
16709 export_symbols_cmds_F77 | \
16710 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16711 postinstall_cmds | postuninstall_cmds | \
16712 old_postinstall_cmds | old_postuninstall_cmds | \
16713 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16714 # Double-quote double-evaled strings.
16715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16720 esac
16721 done
16723 case $lt_echo in
16724 *'\$0 --fallback-echo"')
16725 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16727 esac
16729 cfgfile="$ofile"
16731 cat <<__EOF__ >> "$cfgfile"
16732 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16736 # Shell to use when invoking shell scripts.
16737 SHELL=$lt_SHELL
16739 # Whether or not to build shared libraries.
16740 build_libtool_libs=$enable_shared
16742 # Whether or not to build static libraries.
16743 build_old_libs=$enable_static
16745 # Whether or not to add -lc for building shared libraries.
16746 build_libtool_need_lc=$archive_cmds_need_lc_F77
16748 # Whether or not to disallow shared libs when runtime libs are static
16749 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16751 # Whether or not to optimize for fast installation.
16752 fast_install=$enable_fast_install
16754 # The host system.
16755 host_alias=$host_alias
16756 host=$host
16757 host_os=$host_os
16759 # The build system.
16760 build_alias=$build_alias
16761 build=$build
16762 build_os=$build_os
16764 # An echo program that does not interpret backslashes.
16765 echo=$lt_echo
16767 # The archiver.
16768 AR=$lt_AR
16769 AR_FLAGS=$lt_AR_FLAGS
16771 # A C compiler.
16772 LTCC=$lt_LTCC
16774 # LTCC compiler flags.
16775 LTCFLAGS=$lt_LTCFLAGS
16777 # A language-specific compiler.
16778 CC=$lt_compiler_F77
16780 # Is the compiler the GNU C compiler?
16781 with_gcc=$GCC_F77
16783 # An ERE matcher.
16784 EGREP=$lt_EGREP
16786 # The linker used to build libraries.
16787 LD=$lt_LD_F77
16789 # Whether we need hard or soft links.
16790 LN_S=$lt_LN_S
16792 # A BSD-compatible nm program.
16793 NM=$lt_NM
16795 # A symbol stripping program
16796 STRIP=$lt_STRIP
16798 # Used to examine libraries when file_magic_cmd begins "file"
16799 MAGIC_CMD=$MAGIC_CMD
16801 # Used on cygwin: DLL creation program.
16802 DLLTOOL="$DLLTOOL"
16804 # Used on cygwin: object dumper.
16805 OBJDUMP="$OBJDUMP"
16807 # Used on cygwin: assembler.
16808 AS="$AS"
16810 # The name of the directory that contains temporary libtool files.
16811 objdir=$objdir
16813 # How to create reloadable object files.
16814 reload_flag=$lt_reload_flag
16815 reload_cmds=$lt_reload_cmds
16817 # How to pass a linker flag through the compiler.
16818 wl=$lt_lt_prog_compiler_wl_F77
16820 # Object file suffix (normally "o").
16821 objext="$ac_objext"
16823 # Old archive suffix (normally "a").
16824 libext="$libext"
16826 # Shared library suffix (normally ".so").
16827 shrext_cmds='$shrext_cmds'
16829 # Executable file suffix (normally "").
16830 exeext="$exeext"
16832 # Additional compiler flags for building library objects.
16833 pic_flag=$lt_lt_prog_compiler_pic_F77
16834 pic_mode=$pic_mode
16836 # What is the maximum length of a command?
16837 max_cmd_len=$lt_cv_sys_max_cmd_len
16839 # Does compiler simultaneously support -c and -o options?
16840 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16842 # Must we lock files when doing compilation?
16843 need_locks=$lt_need_locks
16845 # Do we need the lib prefix for modules?
16846 need_lib_prefix=$need_lib_prefix
16848 # Do we need a version for libraries?
16849 need_version=$need_version
16851 # Whether dlopen is supported.
16852 dlopen_support=$enable_dlopen
16854 # Whether dlopen of programs is supported.
16855 dlopen_self=$enable_dlopen_self
16857 # Whether dlopen of statically linked programs is supported.
16858 dlopen_self_static=$enable_dlopen_self_static
16860 # Compiler flag to prevent dynamic linking.
16861 link_static_flag=$lt_lt_prog_compiler_static_F77
16863 # Compiler flag to turn off builtin functions.
16864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16866 # Compiler flag to allow reflexive dlopens.
16867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16869 # Compiler flag to generate shared objects directly from archives.
16870 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16872 # Compiler flag to generate thread-safe objects.
16873 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16875 # Library versioning type.
16876 version_type=$version_type
16878 # Format of library name prefix.
16879 libname_spec=$lt_libname_spec
16881 # List of archive names. First name is the real one, the rest are links.
16882 # The last name is the one that the linker finds with -lNAME.
16883 library_names_spec=$lt_library_names_spec
16885 # The coded name of the library, if different from the real name.
16886 soname_spec=$lt_soname_spec
16888 # Commands used to build and install an old-style archive.
16889 RANLIB=$lt_RANLIB
16890 old_archive_cmds=$lt_old_archive_cmds_F77
16891 old_postinstall_cmds=$lt_old_postinstall_cmds
16892 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16894 # Create an old-style archive from a shared archive.
16895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16897 # Create a temporary old-style archive to link instead of a shared archive.
16898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16900 # Commands used to build and install a shared archive.
16901 archive_cmds=$lt_archive_cmds_F77
16902 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16903 postinstall_cmds=$lt_postinstall_cmds
16904 postuninstall_cmds=$lt_postuninstall_cmds
16906 # Commands used to build a loadable module (assumed same as above if empty)
16907 module_cmds=$lt_module_cmds_F77
16908 module_expsym_cmds=$lt_module_expsym_cmds_F77
16910 # Commands to strip libraries.
16911 old_striplib=$lt_old_striplib
16912 striplib=$lt_striplib
16914 # Dependencies to place before the objects being linked to create a
16915 # shared library.
16916 predep_objects=$lt_predep_objects_F77
16918 # Dependencies to place after the objects being linked to create a
16919 # shared library.
16920 postdep_objects=$lt_postdep_objects_F77
16922 # Dependencies to place before the objects being linked to create a
16923 # shared library.
16924 predeps=$lt_predeps_F77
16926 # Dependencies to place after the objects being linked to create a
16927 # shared library.
16928 postdeps=$lt_postdeps_F77
16930 # The directories searched by this compiler when creating a shared
16931 # library
16932 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16934 # The library search path used internally by the compiler when linking
16935 # a shared library.
16936 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16938 # Method to check whether dependent libraries are shared objects.
16939 deplibs_check_method=$lt_deplibs_check_method
16941 # Command to use when deplibs_check_method == file_magic.
16942 file_magic_cmd=$lt_file_magic_cmd
16944 # Flag that allows shared libraries with undefined symbols to be built.
16945 allow_undefined_flag=$lt_allow_undefined_flag_F77
16947 # Flag that forces no undefined symbols.
16948 no_undefined_flag=$lt_no_undefined_flag_F77
16950 # Commands used to finish a libtool library installation in a directory.
16951 finish_cmds=$lt_finish_cmds
16953 # Same as above, but a single script fragment to be evaled but not shown.
16954 finish_eval=$lt_finish_eval
16956 # Take the output of nm and produce a listing of raw symbols and C names.
16957 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16959 # Transform the output of nm in a proper C declaration
16960 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16962 # Transform the output of nm in a C name address pair
16963 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16965 # This is the shared library runtime path variable.
16966 runpath_var=$runpath_var
16968 # This is the shared library path variable.
16969 shlibpath_var=$shlibpath_var
16971 # Is shlibpath searched before the hard-coded library search path?
16972 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16974 # How to hardcode a shared library path into an executable.
16975 hardcode_action=$hardcode_action_F77
16977 # Whether we should hardcode library paths into libraries.
16978 hardcode_into_libs=$hardcode_into_libs
16980 # Flag to hardcode \$libdir into a binary during linking.
16981 # This must work even if \$libdir does not exist.
16982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16984 # If ld is used when linking, flag to hardcode \$libdir into
16985 # a binary during linking. This must work even if \$libdir does
16986 # not exist.
16987 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16989 # Whether we need a single -rpath flag with a separated argument.
16990 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16992 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16993 # resulting binary.
16994 hardcode_direct=$hardcode_direct_F77
16996 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16997 # resulting binary.
16998 hardcode_minus_L=$hardcode_minus_L_F77
17000 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17001 # the resulting binary.
17002 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17004 # Set to yes if building a shared library automatically hardcodes DIR into the library
17005 # and all subsequent libraries and executables linked against it.
17006 hardcode_automatic=$hardcode_automatic_F77
17008 # Variables whose values should be saved in libtool wrapper scripts and
17009 # restored at relink time.
17010 variables_saved_for_relink="$variables_saved_for_relink"
17012 # Whether libtool must link a program against all its dependency libraries.
17013 link_all_deplibs=$link_all_deplibs_F77
17015 # Compile-time system search path for libraries
17016 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17018 # Run-time system search path for libraries
17019 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17021 # Fix the shell variable \$srcfile for the compiler.
17022 fix_srcfile_path=$lt_fix_srcfile_path
17024 # Set to yes if exported symbols are required.
17025 always_export_symbols=$always_export_symbols_F77
17027 # The commands to list exported symbols.
17028 export_symbols_cmds=$lt_export_symbols_cmds_F77
17030 # The commands to extract the exported symbol list from a shared archive.
17031 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17033 # Symbols that should not be listed in the preloaded symbols.
17034 exclude_expsyms=$lt_exclude_expsyms_F77
17036 # Symbols that must always be exported.
17037 include_expsyms=$lt_include_expsyms_F77
17039 # ### END LIBTOOL TAG CONFIG: $tagname
17041 __EOF__
17044 else
17045 # If there is no Makefile yet, we rely on a make rule to execute
17046 # `config.status --recheck' to rerun these tests and create the
17047 # libtool script then.
17048 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17049 if test -f "$ltmain_in"; then
17050 test -f Makefile && make "$ltmain"
17055 ac_ext=c
17056 ac_cpp='$CPP $CPPFLAGS'
17057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17061 CC="$lt_save_CC"
17063 else
17064 tagname=""
17068 GCJ)
17069 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17072 # Source file extension for Java test sources.
17073 ac_ext=java
17075 # Object file extension for compiled Java test sources.
17076 objext=o
17077 objext_GCJ=$objext
17079 # Code to be used in simple compile tests
17080 lt_simple_compile_test_code="class foo {}"
17082 # Code to be used in simple link tests
17083 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17085 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17087 # If no C compiler was specified, use CC.
17088 LTCC=${LTCC-"$CC"}
17090 # If no C compiler flags were specified, use CFLAGS.
17091 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17093 # Allow CC to be a program name with arguments.
17094 compiler=$CC
17097 # save warnings/boilerplate of simple test code
17098 ac_outfile=conftest.$ac_objext
17099 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17101 _lt_compiler_boilerplate=`cat conftest.err`
17102 $rm conftest*
17104 ac_outfile=conftest.$ac_objext
17105 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17107 _lt_linker_boilerplate=`cat conftest.err`
17108 $rm -r conftest*
17111 # Allow CC to be a program name with arguments.
17112 lt_save_CC="$CC"
17113 CC=${GCJ-"gcj"}
17114 compiler=$CC
17115 compiler_GCJ=$CC
17116 for cc_temp in $compiler""; do
17117 case $cc_temp in
17118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17120 \-*) ;;
17121 *) break;;
17122 esac
17123 done
17124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17127 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17128 archive_cmds_need_lc_GCJ=no
17130 old_archive_cmds_GCJ=$old_archive_cmds
17133 lt_prog_compiler_no_builtin_flag_GCJ=
17135 if test "$GCC" = yes; then
17136 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17139 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17140 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17141 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 else
17144 lt_cv_prog_compiler_rtti_exceptions=no
17145 ac_outfile=conftest.$ac_objext
17146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17147 lt_compiler_flag="-fno-rtti -fno-exceptions"
17148 # Insert the option either (1) after the last *FLAGS variable, or
17149 # (2) before a word containing "conftest.", or (3) at the end.
17150 # Note that $ac_compile itself does not contain backslashes and begins
17151 # with a dollar sign (not a hyphen), so the echo should work correctly.
17152 # The option is referenced via a variable to avoid confusing sed.
17153 lt_compile=`echo "$ac_compile" | $SED \
17154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17156 -e 's:$: $lt_compiler_flag:'`
17157 (eval echo "\"\$as_me:17157: $lt_compile\"" >&5)
17158 (eval "$lt_compile" 2>conftest.err)
17159 ac_status=$?
17160 cat conftest.err >&5
17161 echo "$as_me:17161: \$? = $ac_status" >&5
17162 if (exit $ac_status) && test -s "$ac_outfile"; then
17163 # The compiler can only warn and ignore the option if not recognized
17164 # So say no if there are warnings other than the usual output.
17165 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17168 lt_cv_prog_compiler_rtti_exceptions=yes
17171 $rm conftest*
17174 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17175 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17177 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17178 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17179 else
17185 lt_prog_compiler_wl_GCJ=
17186 lt_prog_compiler_pic_GCJ=
17187 lt_prog_compiler_static_GCJ=
17189 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17190 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17192 if test "$GCC" = yes; then
17193 lt_prog_compiler_wl_GCJ='-Wl,'
17194 lt_prog_compiler_static_GCJ='-static'
17196 case $host_os in
17197 aix*)
17198 # All AIX code is PIC.
17199 if test "$host_cpu" = ia64; then
17200 # AIX 5 now supports IA64 processor
17201 lt_prog_compiler_static_GCJ='-Bstatic'
17205 amigaos*)
17206 # FIXME: we need at least 68020 code to build shared libraries, but
17207 # adding the `-m68020' flag to GCC prevents building anything better,
17208 # like `-m68040'.
17209 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17212 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17213 # PIC is the default for these OSes.
17216 mingw* | cygwin* | pw32* | os2*)
17217 # This hack is so that the source file can tell whether it is being
17218 # built for inclusion in a dll (and should export symbols for example).
17219 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17220 # (--disable-auto-import) libraries
17224 darwin* | rhapsody*)
17225 # PIC is the default on this platform
17226 # Common symbols not allowed in MH_DYLIB files
17227 lt_prog_compiler_pic_GCJ='-fno-common'
17230 interix[3-9]*)
17231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17232 # Instead, we relocate shared libraries at runtime.
17235 msdosdjgpp*)
17236 # Just because we use GCC doesn't mean we suddenly get shared libraries
17237 # on systems that don't support them.
17238 lt_prog_compiler_can_build_shared_GCJ=no
17239 enable_shared=no
17242 sysv4*MP*)
17243 if test -d /usr/nec; then
17244 lt_prog_compiler_pic_GCJ=-Kconform_pic
17248 hpux*)
17249 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17250 # not for PA HP-UX.
17251 case $host_cpu in
17252 hppa*64*|ia64*)
17253 # +Z the default
17256 lt_prog_compiler_pic_GCJ='-fPIC'
17258 esac
17262 lt_prog_compiler_pic_GCJ='-fPIC'
17264 esac
17265 else
17266 # PORTME Check for flag to pass linker flags through the system compiler.
17267 case $host_os in
17268 aix*)
17269 lt_prog_compiler_wl_GCJ='-Wl,'
17270 if test "$host_cpu" = ia64; then
17271 # AIX 5 now supports IA64 processor
17272 lt_prog_compiler_static_GCJ='-Bstatic'
17273 else
17274 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17277 darwin*)
17278 # PIC is the default on this platform
17279 # Common symbols not allowed in MH_DYLIB files
17280 case $cc_basename in
17281 xlc*)
17282 lt_prog_compiler_pic_GCJ='-qnocommon'
17283 lt_prog_compiler_wl_GCJ='-Wl,'
17285 esac
17288 mingw* | cygwin* | pw32* | os2*)
17289 # This hack is so that the source file can tell whether it is being
17290 # built for inclusion in a dll (and should export symbols for example).
17294 hpux9* | hpux10* | hpux11*)
17295 lt_prog_compiler_wl_GCJ='-Wl,'
17296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17297 # not for PA HP-UX.
17298 case $host_cpu in
17299 hppa*64*|ia64*)
17300 # +Z the default
17303 lt_prog_compiler_pic_GCJ='+Z'
17305 esac
17306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17307 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17310 irix5* | irix6* | nonstopux*)
17311 lt_prog_compiler_wl_GCJ='-Wl,'
17312 # PIC (with -KPIC) is the default.
17313 lt_prog_compiler_static_GCJ='-non_shared'
17316 newsos6)
17317 lt_prog_compiler_pic_GCJ='-KPIC'
17318 lt_prog_compiler_static_GCJ='-Bstatic'
17321 linux* | k*bsd*-gnu)
17322 case $cc_basename in
17323 icc* | ecc*)
17324 lt_prog_compiler_wl_GCJ='-Wl,'
17325 lt_prog_compiler_pic_GCJ='-KPIC'
17326 lt_prog_compiler_static_GCJ='-static'
17328 pgcc* | pgf77* | pgf90* | pgf95*)
17329 # Portland Group compilers (*not* the Pentium gcc compiler,
17330 # which looks to be a dead project)
17331 lt_prog_compiler_wl_GCJ='-Wl,'
17332 lt_prog_compiler_pic_GCJ='-fpic'
17333 lt_prog_compiler_static_GCJ='-Bstatic'
17335 ccc*)
17336 lt_prog_compiler_wl_GCJ='-Wl,'
17337 # All Alpha code is PIC.
17338 lt_prog_compiler_static_GCJ='-non_shared'
17341 case `$CC -V 2>&1 | sed 5q` in
17342 *Sun\ C*)
17343 # Sun C 5.9
17344 lt_prog_compiler_pic_GCJ='-KPIC'
17345 lt_prog_compiler_static_GCJ='-Bstatic'
17346 lt_prog_compiler_wl_GCJ='-Wl,'
17348 *Sun\ F*)
17349 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17350 lt_prog_compiler_pic_GCJ='-KPIC'
17351 lt_prog_compiler_static_GCJ='-Bstatic'
17352 lt_prog_compiler_wl_GCJ=''
17354 esac
17356 esac
17359 osf3* | osf4* | osf5*)
17360 lt_prog_compiler_wl_GCJ='-Wl,'
17361 # All OSF/1 code is PIC.
17362 lt_prog_compiler_static_GCJ='-non_shared'
17365 rdos*)
17366 lt_prog_compiler_static_GCJ='-non_shared'
17369 solaris*)
17370 lt_prog_compiler_pic_GCJ='-KPIC'
17371 lt_prog_compiler_static_GCJ='-Bstatic'
17372 case $cc_basename in
17373 f77* | f90* | f95*)
17374 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17376 lt_prog_compiler_wl_GCJ='-Wl,';;
17377 esac
17380 sunos4*)
17381 lt_prog_compiler_wl_GCJ='-Qoption ld '
17382 lt_prog_compiler_pic_GCJ='-PIC'
17383 lt_prog_compiler_static_GCJ='-Bstatic'
17386 sysv4 | sysv4.2uw2* | sysv4.3*)
17387 lt_prog_compiler_wl_GCJ='-Wl,'
17388 lt_prog_compiler_pic_GCJ='-KPIC'
17389 lt_prog_compiler_static_GCJ='-Bstatic'
17392 sysv4*MP*)
17393 if test -d /usr/nec ;then
17394 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17395 lt_prog_compiler_static_GCJ='-Bstatic'
17399 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17400 lt_prog_compiler_wl_GCJ='-Wl,'
17401 lt_prog_compiler_pic_GCJ='-KPIC'
17402 lt_prog_compiler_static_GCJ='-Bstatic'
17405 unicos*)
17406 lt_prog_compiler_wl_GCJ='-Wl,'
17407 lt_prog_compiler_can_build_shared_GCJ=no
17410 uts4*)
17411 lt_prog_compiler_pic_GCJ='-pic'
17412 lt_prog_compiler_static_GCJ='-Bstatic'
17416 lt_prog_compiler_can_build_shared_GCJ=no
17418 esac
17421 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17422 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17425 # Check to make sure the PIC flag actually works.
17427 if test -n "$lt_prog_compiler_pic_GCJ"; then
17429 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17430 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17431 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 else
17434 lt_cv_prog_compiler_pic_works_GCJ=no
17435 ac_outfile=conftest.$ac_objext
17436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17437 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17438 # Insert the option either (1) after the last *FLAGS variable, or
17439 # (2) before a word containing "conftest.", or (3) at the end.
17440 # Note that $ac_compile itself does not contain backslashes and begins
17441 # with a dollar sign (not a hyphen), so the echo should work correctly.
17442 # The option is referenced via a variable to avoid confusing sed.
17443 lt_compile=`echo "$ac_compile" | $SED \
17444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17446 -e 's:$: $lt_compiler_flag:'`
17447 (eval echo "\"\$as_me:17447: $lt_compile\"" >&5)
17448 (eval "$lt_compile" 2>conftest.err)
17449 ac_status=$?
17450 cat conftest.err >&5
17451 echo "$as_me:17451: \$? = $ac_status" >&5
17452 if (exit $ac_status) && test -s "$ac_outfile"; then
17453 # The compiler can only warn and ignore the option if not recognized
17454 # So say no if there are warnings other than the usual output.
17455 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17458 lt_cv_prog_compiler_pic_works_GCJ=yes
17461 $rm conftest*
17464 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17465 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17467 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17468 case $lt_prog_compiler_pic_GCJ in
17469 "" | " "*) ;;
17470 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17471 esac
17472 else
17473 lt_prog_compiler_pic_GCJ=
17474 lt_prog_compiler_can_build_shared_GCJ=no
17478 case $host_os in
17479 # For platforms which do not support PIC, -DPIC is meaningless:
17480 *djgpp*)
17481 lt_prog_compiler_pic_GCJ=
17484 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17486 esac
17489 # Check to make sure the static flag actually works.
17491 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17492 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17493 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17494 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497 lt_cv_prog_compiler_static_works_GCJ=no
17498 save_LDFLAGS="$LDFLAGS"
17499 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17500 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17501 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17502 # The linker can only warn and ignore the option if not recognized
17503 # So say no if there are warnings
17504 if test -s conftest.err; then
17505 # Append any errors to the config.log.
17506 cat conftest.err 1>&5
17507 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17509 if diff conftest.exp conftest.er2 >/dev/null; then
17510 lt_cv_prog_compiler_static_works_GCJ=yes
17512 else
17513 lt_cv_prog_compiler_static_works_GCJ=yes
17516 $rm -r conftest*
17517 LDFLAGS="$save_LDFLAGS"
17520 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17521 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17523 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17525 else
17526 lt_prog_compiler_static_GCJ=
17530 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17531 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17532 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 lt_cv_prog_compiler_c_o_GCJ=no
17536 $rm -r conftest 2>/dev/null
17537 mkdir conftest
17538 cd conftest
17539 mkdir out
17540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17542 lt_compiler_flag="-o out/conftest2.$ac_objext"
17543 # Insert the option either (1) after the last *FLAGS variable, or
17544 # (2) before a word containing "conftest.", or (3) at the end.
17545 # Note that $ac_compile itself does not contain backslashes and begins
17546 # with a dollar sign (not a hyphen), so the echo should work correctly.
17547 lt_compile=`echo "$ac_compile" | $SED \
17548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17550 -e 's:$: $lt_compiler_flag:'`
17551 (eval echo "\"\$as_me:17551: $lt_compile\"" >&5)
17552 (eval "$lt_compile" 2>out/conftest.err)
17553 ac_status=$?
17554 cat out/conftest.err >&5
17555 echo "$as_me:17555: \$? = $ac_status" >&5
17556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17557 then
17558 # The compiler can only warn and ignore the option if not recognized
17559 # So say no if there are warnings
17560 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17563 lt_cv_prog_compiler_c_o_GCJ=yes
17566 chmod u+w . 2>&5
17567 $rm conftest*
17568 # SGI C++ compiler will create directory out/ii_files/ for
17569 # template instantiation
17570 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17571 $rm out/* && rmdir out
17572 cd ..
17573 rmdir conftest
17574 $rm conftest*
17577 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17578 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17581 hard_links="nottested"
17582 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17583 # do not overwrite the value of need_locks provided by the user
17584 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17585 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17586 hard_links=yes
17587 $rm conftest*
17588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17589 touch conftest.a
17590 ln conftest.a conftest.b 2>&5 || hard_links=no
17591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17592 { echo "$as_me:$LINENO: result: $hard_links" >&5
17593 echo "${ECHO_T}$hard_links" >&6; }
17594 if test "$hard_links" = no; then
17595 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17596 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17597 need_locks=warn
17599 else
17600 need_locks=no
17603 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17606 runpath_var=
17607 allow_undefined_flag_GCJ=
17608 enable_shared_with_static_runtimes_GCJ=no
17609 archive_cmds_GCJ=
17610 archive_expsym_cmds_GCJ=
17611 old_archive_From_new_cmds_GCJ=
17612 old_archive_from_expsyms_cmds_GCJ=
17613 export_dynamic_flag_spec_GCJ=
17614 whole_archive_flag_spec_GCJ=
17615 thread_safe_flag_spec_GCJ=
17616 hardcode_libdir_flag_spec_GCJ=
17617 hardcode_libdir_flag_spec_ld_GCJ=
17618 hardcode_libdir_separator_GCJ=
17619 hardcode_direct_GCJ=no
17620 hardcode_minus_L_GCJ=no
17621 hardcode_shlibpath_var_GCJ=unsupported
17622 link_all_deplibs_GCJ=unknown
17623 hardcode_automatic_GCJ=no
17624 module_cmds_GCJ=
17625 module_expsym_cmds_GCJ=
17626 always_export_symbols_GCJ=no
17627 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17628 # include_expsyms should be a list of space-separated symbols to be *always*
17629 # included in the symbol list
17630 include_expsyms_GCJ=
17631 # exclude_expsyms can be an extended regexp of symbols to exclude
17632 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17633 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17634 # as well as any symbol that contains `d'.
17635 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17636 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17637 # platforms (ab)use it in PIC code, but their linkers get confused if
17638 # the symbol is explicitly referenced. Since portable code cannot
17639 # rely on this symbol name, it's probably fine to never include it in
17640 # preloaded symbol tables.
17641 # Exclude shared library initialization/finalization symbols.
17642 extract_expsyms_cmds=
17643 # Just being paranoid about ensuring that cc_basename is set.
17644 for cc_temp in $compiler""; do
17645 case $cc_temp in
17646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17648 \-*) ;;
17649 *) break;;
17650 esac
17651 done
17652 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17654 case $host_os in
17655 cygwin* | mingw* | pw32*)
17656 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17657 # When not using gcc, we currently assume that we are using
17658 # Microsoft Visual C++.
17659 if test "$GCC" != yes; then
17660 with_gnu_ld=no
17663 interix*)
17664 # we just hope/assume this is gcc and not c89 (= MSVC++)
17665 with_gnu_ld=yes
17667 openbsd*)
17668 with_gnu_ld=no
17670 esac
17672 ld_shlibs_GCJ=yes
17673 if test "$with_gnu_ld" = yes; then
17674 # If archive_cmds runs LD, not CC, wlarc should be empty
17675 wlarc='${wl}'
17677 # Set some defaults for GNU ld with shared library support. These
17678 # are reset later if shared libraries are not supported. Putting them
17679 # here allows them to be overridden if necessary.
17680 runpath_var=LD_RUN_PATH
17681 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17682 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17683 # ancient GNU ld didn't support --whole-archive et. al.
17684 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17685 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17686 else
17687 whole_archive_flag_spec_GCJ=
17689 supports_anon_versioning=no
17690 case `$LD -v 2>/dev/null` in
17691 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17692 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17693 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17694 *\ 2.11.*) ;; # other 2.11 versions
17695 *) supports_anon_versioning=yes ;;
17696 esac
17698 # See if GNU ld supports shared libraries.
17699 case $host_os in
17700 aix[3-9]*)
17701 # On AIX/PPC, the GNU linker is very broken
17702 if test "$host_cpu" != ia64; then
17703 ld_shlibs_GCJ=no
17704 cat <<EOF 1>&2
17706 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17707 *** to be unable to reliably create shared libraries on AIX.
17708 *** Therefore, libtool is disabling shared libraries support. If you
17709 *** really care for shared libraries, you may want to modify your PATH
17710 *** so that a non-GNU linker is found, and then restart.
17716 amigaos*)
17717 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)'
17718 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17719 hardcode_minus_L_GCJ=yes
17721 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17722 # that the semantics of dynamic libraries on AmigaOS, at least up
17723 # to version 4, is to share data among multiple programs linked
17724 # with the same dynamic library. Since this doesn't match the
17725 # behavior of shared libraries on other platforms, we can't use
17726 # them.
17727 ld_shlibs_GCJ=no
17730 beos*)
17731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17732 allow_undefined_flag_GCJ=unsupported
17733 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17734 # support --undefined. This deserves some investigation. FIXME
17735 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17736 else
17737 ld_shlibs_GCJ=no
17741 cygwin* | mingw* | pw32*)
17742 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17743 # as there is no search path for DLLs.
17744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17745 allow_undefined_flag_GCJ=unsupported
17746 always_export_symbols_GCJ=no
17747 enable_shared_with_static_runtimes_GCJ=yes
17748 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17750 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17751 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17752 # If the export-symbols file already is a .def file (1st line
17753 # is EXPORTS), use it as is; otherwise, prepend...
17754 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17755 cp $export_symbols $output_objdir/$soname.def;
17756 else
17757 echo EXPORTS > $output_objdir/$soname.def;
17758 cat $export_symbols >> $output_objdir/$soname.def;
17760 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17761 else
17762 ld_shlibs_GCJ=no
17766 interix[3-9]*)
17767 hardcode_direct_GCJ=no
17768 hardcode_shlibpath_var_GCJ=no
17769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17770 export_dynamic_flag_spec_GCJ='${wl}-E'
17771 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17772 # Instead, shared libraries are loaded at an image base (0x10000000 by
17773 # default) and relocated if they conflict, which is a slow very memory
17774 # consuming and fragmenting process. To avoid this, we pick a random,
17775 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17776 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17777 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'
17778 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'
17781 gnu* | linux* | k*bsd*-gnu)
17782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17783 tmp_addflag=
17784 case $cc_basename,$host_cpu in
17785 pgcc*) # Portland Group C compiler
17786 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'
17787 tmp_addflag=' $pic_flag'
17789 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17790 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'
17791 tmp_addflag=' $pic_flag -Mnomain' ;;
17792 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17793 tmp_addflag=' -i_dynamic' ;;
17794 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17795 tmp_addflag=' -i_dynamic -nofor_main' ;;
17796 ifc* | ifort*) # Intel Fortran compiler
17797 tmp_addflag=' -nofor_main' ;;
17798 esac
17799 case `$CC -V 2>&1 | sed 5q` in
17800 *Sun\ C*) # Sun C 5.9
17801 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17802 tmp_sharedflag='-G' ;;
17803 *Sun\ F*) # Sun Fortran 8.3
17804 tmp_sharedflag='-G' ;;
17806 tmp_sharedflag='-shared' ;;
17807 esac
17808 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17810 if test $supports_anon_versioning = yes; then
17811 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17812 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17813 $echo "local: *; };" >> $output_objdir/$libname.ver~
17814 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17816 link_all_deplibs_GCJ=no
17817 else
17818 ld_shlibs_GCJ=no
17822 netbsd* | netbsdelf*-gnu)
17823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17824 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17825 wlarc=
17826 else
17827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17828 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17832 solaris*)
17833 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17834 ld_shlibs_GCJ=no
17835 cat <<EOF 1>&2
17837 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17838 *** create shared libraries on Solaris systems. Therefore, libtool
17839 *** is disabling shared libraries support. We urge you to upgrade GNU
17840 *** binutils to release 2.9.1 or newer. Another option is to modify
17841 *** your PATH or compiler configuration so that the native linker is
17842 *** used, and then restart.
17845 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17846 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17847 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17848 else
17849 ld_shlibs_GCJ=no
17853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17854 case `$LD -v 2>&1` in
17855 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17856 ld_shlibs_GCJ=no
17857 cat <<_LT_EOF 1>&2
17859 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17860 *** reliably create shared libraries on SCO systems. Therefore, libtool
17861 *** is disabling shared libraries support. We urge you to upgrade GNU
17862 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17863 *** your PATH or compiler configuration so that the native linker is
17864 *** used, and then restart.
17866 _LT_EOF
17869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17870 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17871 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17872 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17873 else
17874 ld_shlibs_GCJ=no
17877 esac
17880 sunos4*)
17881 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17882 wlarc=
17883 hardcode_direct_GCJ=yes
17884 hardcode_shlibpath_var_GCJ=no
17888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17889 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17890 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17891 else
17892 ld_shlibs_GCJ=no
17895 esac
17897 if test "$ld_shlibs_GCJ" = no; then
17898 runpath_var=
17899 hardcode_libdir_flag_spec_GCJ=
17900 export_dynamic_flag_spec_GCJ=
17901 whole_archive_flag_spec_GCJ=
17903 else
17904 # PORTME fill in a description of your system's linker (not GNU ld)
17905 case $host_os in
17906 aix3*)
17907 allow_undefined_flag_GCJ=unsupported
17908 always_export_symbols_GCJ=yes
17909 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'
17910 # Note: this linker hardcodes the directories in LIBPATH if there
17911 # are no directories specified by -L.
17912 hardcode_minus_L_GCJ=yes
17913 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17914 # Neither direct hardcoding nor static linking is supported with a
17915 # broken collect2.
17916 hardcode_direct_GCJ=unsupported
17920 aix[4-9]*)
17921 if test "$host_cpu" = ia64; then
17922 # On IA64, the linker does run time linking by default, so we don't
17923 # have to do anything special.
17924 aix_use_runtimelinking=no
17925 exp_sym_flag='-Bexport'
17926 no_entry_flag=""
17927 else
17928 # If we're using GNU nm, then we don't want the "-C" option.
17929 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17930 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17931 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'
17932 else
17933 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'
17935 aix_use_runtimelinking=no
17937 # Test if we are trying to use run time linking or normal
17938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17939 # need to do runtime linking.
17940 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17941 for ld_flag in $LDFLAGS; do
17942 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17943 aix_use_runtimelinking=yes
17944 break
17946 done
17948 esac
17950 exp_sym_flag='-bexport'
17951 no_entry_flag='-bnoentry'
17954 # When large executables or shared objects are built, AIX ld can
17955 # have problems creating the table of contents. If linking a library
17956 # or program results in "error TOC overflow" add -mminimal-toc to
17957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17960 archive_cmds_GCJ=''
17961 hardcode_direct_GCJ=yes
17962 hardcode_libdir_separator_GCJ=':'
17963 link_all_deplibs_GCJ=yes
17965 if test "$GCC" = yes; then
17966 case $host_os in aix4.[012]|aix4.[012].*)
17967 # We only want to do this on AIX 4.2 and lower, the check
17968 # below for broken collect2 doesn't work under 4.3+
17969 collect2name=`${CC} -print-prog-name=collect2`
17970 if test -f "$collect2name" && \
17971 strings "$collect2name" | grep resolve_lib_name >/dev/null
17972 then
17973 # We have reworked collect2
17975 else
17976 # We have old collect2
17977 hardcode_direct_GCJ=unsupported
17978 # It fails to find uninstalled libraries when the uninstalled
17979 # path is not listed in the libpath. Setting hardcode_minus_L
17980 # to unsupported forces relinking
17981 hardcode_minus_L_GCJ=yes
17982 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17983 hardcode_libdir_separator_GCJ=
17986 esac
17987 shared_flag='-shared'
17988 if test "$aix_use_runtimelinking" = yes; then
17989 shared_flag="$shared_flag "'${wl}-G'
17991 else
17992 # not using gcc
17993 if test "$host_cpu" = ia64; then
17994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17995 # chokes on -Wl,-G. The following line is correct:
17996 shared_flag='-G'
17997 else
17998 if test "$aix_use_runtimelinking" = yes; then
17999 shared_flag='${wl}-G'
18000 else
18001 shared_flag='${wl}-bM:SRE'
18006 # It seems that -bexpall does not export symbols beginning with
18007 # underscore (_), so it is better to generate a list of symbols to export.
18008 always_export_symbols_GCJ=yes
18009 if test "$aix_use_runtimelinking" = yes; then
18010 # Warning - without using the other runtime loading flags (-brtl),
18011 # -berok will link without error, but may produce a broken library.
18012 allow_undefined_flag_GCJ='-berok'
18013 # Determine the default libpath from the value encoded in an empty executable.
18014 cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h. */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18022 main ()
18026 return 0;
18028 _ACEOF
18029 rm -f conftest.$ac_objext conftest$ac_exeext
18030 if { (ac_try="$ac_link"
18031 case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_link") 2>conftest.er1
18037 ac_status=$?
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } && {
18043 test -z "$ac_c_werror_flag" ||
18044 test ! -s conftest.err
18045 } && test -s conftest$ac_exeext &&
18046 $as_test_x conftest$ac_exeext; then
18048 lt_aix_libpath_sed='
18049 /Import File Strings/,/^$/ {
18050 /^0/ {
18051 s/^0 *\(.*\)$/\1/
18055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18056 # Check for a 64-bit object if we didn't find anything.
18057 if test -z "$aix_libpath"; then
18058 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18060 else
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18068 conftest$ac_exeext conftest.$ac_ext
18069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18071 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18072 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"
18073 else
18074 if test "$host_cpu" = ia64; then
18075 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18076 allow_undefined_flag_GCJ="-z nodefs"
18077 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"
18078 else
18079 # Determine the default libpath from the value encoded in an empty executable.
18080 cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h. */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18088 main ()
18092 return 0;
18094 _ACEOF
18095 rm -f conftest.$ac_objext conftest$ac_exeext
18096 if { (ac_try="$ac_link"
18097 case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18100 esac
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_link") 2>conftest.er1
18103 ac_status=$?
18104 grep -v '^ *+' conftest.er1 >conftest.err
18105 rm -f conftest.er1
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } && {
18109 test -z "$ac_c_werror_flag" ||
18110 test ! -s conftest.err
18111 } && test -s conftest$ac_exeext &&
18112 $as_test_x conftest$ac_exeext; then
18114 lt_aix_libpath_sed='
18115 /Import File Strings/,/^$/ {
18116 /^0/ {
18117 s/^0 *\(.*\)$/\1/
18121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18122 # Check for a 64-bit object if we didn't find anything.
18123 if test -z "$aix_libpath"; then
18124 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18126 else
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18134 conftest$ac_exeext conftest.$ac_ext
18135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18137 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18138 # Warning - without using the other run time loading flags,
18139 # -berok will link without error, but may produce a broken library.
18140 no_undefined_flag_GCJ=' ${wl}-bernotok'
18141 allow_undefined_flag_GCJ=' ${wl}-berok'
18142 # Exported symbols can be pulled into shared objects from archives
18143 whole_archive_flag_spec_GCJ='$convenience'
18144 archive_cmds_need_lc_GCJ=yes
18145 # This is similar to how AIX traditionally builds its shared libraries.
18146 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'
18151 amigaos*)
18152 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)'
18153 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18154 hardcode_minus_L_GCJ=yes
18155 # see comment about different semantics on the GNU ld section
18156 ld_shlibs_GCJ=no
18159 bsdi[45]*)
18160 export_dynamic_flag_spec_GCJ=-rdynamic
18163 cygwin* | mingw* | pw32*)
18164 # When not using gcc, we currently assume that we are using
18165 # Microsoft Visual C++.
18166 # hardcode_libdir_flag_spec is actually meaningless, as there is
18167 # no search path for DLLs.
18168 hardcode_libdir_flag_spec_GCJ=' '
18169 allow_undefined_flag_GCJ=unsupported
18170 # Tell ltmain to make .lib files, not .a files.
18171 libext=lib
18172 # Tell ltmain to make .dll files, not .so files.
18173 shrext_cmds=".dll"
18174 # FIXME: Setting linknames here is a bad hack.
18175 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18176 # The linker will automatically build a .lib file if we build a DLL.
18177 old_archive_From_new_cmds_GCJ='true'
18178 # FIXME: Should let the user specify the lib program.
18179 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18180 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18181 enable_shared_with_static_runtimes_GCJ=yes
18184 darwin* | rhapsody*)
18185 case $host_os in
18186 rhapsody* | darwin1.[012])
18187 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18189 *) # Darwin 1.3 on
18190 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18191 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18192 else
18193 case ${MACOSX_DEPLOYMENT_TARGET} in
18194 10.[012])
18195 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18197 10.*)
18198 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18200 esac
18203 esac
18204 archive_cmds_need_lc_GCJ=no
18205 hardcode_direct_GCJ=no
18206 hardcode_automatic_GCJ=yes
18207 hardcode_shlibpath_var_GCJ=unsupported
18208 whole_archive_flag_spec_GCJ=''
18209 link_all_deplibs_GCJ=yes
18210 if test "$GCC" = yes ; then
18211 output_verbose_link_cmd='echo'
18212 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18213 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18214 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18215 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18216 else
18217 case $cc_basename in
18218 xlc*)
18219 output_verbose_link_cmd='echo'
18220 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18221 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18223 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18224 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}'
18227 ld_shlibs_GCJ=no
18229 esac
18233 dgux*)
18234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18236 hardcode_shlibpath_var_GCJ=no
18239 freebsd1*)
18240 ld_shlibs_GCJ=no
18243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18244 # support. Future versions do this automatically, but an explicit c++rt0.o
18245 # does not break anything, and helps significantly (at the cost of a little
18246 # extra space).
18247 freebsd2.2*)
18248 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18249 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18250 hardcode_direct_GCJ=yes
18251 hardcode_shlibpath_var_GCJ=no
18254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18255 freebsd2*)
18256 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18257 hardcode_direct_GCJ=yes
18258 hardcode_minus_L_GCJ=yes
18259 hardcode_shlibpath_var_GCJ=no
18262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18263 freebsd* | dragonfly*)
18264 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18265 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18266 hardcode_direct_GCJ=yes
18267 hardcode_shlibpath_var_GCJ=no
18270 hpux9*)
18271 if test "$GCC" = yes; then
18272 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'
18273 else
18274 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'
18276 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18277 hardcode_libdir_separator_GCJ=:
18278 hardcode_direct_GCJ=yes
18280 # hardcode_minus_L: Not really in the search PATH,
18281 # but as the default location of the library.
18282 hardcode_minus_L_GCJ=yes
18283 export_dynamic_flag_spec_GCJ='${wl}-E'
18286 hpux10*)
18287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18288 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18289 else
18290 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18292 if test "$with_gnu_ld" = no; then
18293 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18294 hardcode_libdir_separator_GCJ=:
18296 hardcode_direct_GCJ=yes
18297 export_dynamic_flag_spec_GCJ='${wl}-E'
18299 # hardcode_minus_L: Not really in the search PATH,
18300 # but as the default location of the library.
18301 hardcode_minus_L_GCJ=yes
18305 hpux11*)
18306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18307 case $host_cpu in
18308 hppa*64*)
18309 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18311 ia64*)
18312 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18315 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18317 esac
18318 else
18319 case $host_cpu in
18320 hppa*64*)
18321 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18323 ia64*)
18324 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18327 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18329 esac
18331 if test "$with_gnu_ld" = no; then
18332 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18333 hardcode_libdir_separator_GCJ=:
18335 case $host_cpu in
18336 hppa*64*|ia64*)
18337 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18338 hardcode_direct_GCJ=no
18339 hardcode_shlibpath_var_GCJ=no
18342 hardcode_direct_GCJ=yes
18343 export_dynamic_flag_spec_GCJ='${wl}-E'
18345 # hardcode_minus_L: Not really in the search PATH,
18346 # but as the default location of the library.
18347 hardcode_minus_L_GCJ=yes
18349 esac
18353 irix5* | irix6* | nonstopux*)
18354 if test "$GCC" = yes; then
18355 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'
18356 else
18357 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'
18358 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18360 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18361 hardcode_libdir_separator_GCJ=:
18362 link_all_deplibs_GCJ=yes
18365 netbsd* | netbsdelf*-gnu)
18366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18367 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18368 else
18369 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18371 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18372 hardcode_direct_GCJ=yes
18373 hardcode_shlibpath_var_GCJ=no
18376 newsos6)
18377 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18378 hardcode_direct_GCJ=yes
18379 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18380 hardcode_libdir_separator_GCJ=:
18381 hardcode_shlibpath_var_GCJ=no
18384 openbsd*)
18385 if test -f /usr/libexec/ld.so; then
18386 hardcode_direct_GCJ=yes
18387 hardcode_shlibpath_var_GCJ=no
18388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18389 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18390 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18392 export_dynamic_flag_spec_GCJ='${wl}-E'
18393 else
18394 case $host_os in
18395 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18396 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18397 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18400 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18401 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18403 esac
18405 else
18406 ld_shlibs_GCJ=no
18410 os2*)
18411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18412 hardcode_minus_L_GCJ=yes
18413 allow_undefined_flag_GCJ=unsupported
18414 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'
18415 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18418 osf3*)
18419 if test "$GCC" = yes; then
18420 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18421 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'
18422 else
18423 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18424 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'
18426 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18427 hardcode_libdir_separator_GCJ=:
18430 osf4* | osf5*) # as osf3* with the addition of -msym flag
18431 if test "$GCC" = yes; then
18432 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18433 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'
18434 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18435 else
18436 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18437 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'
18438 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~
18439 $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'
18441 # Both c and cxx compiler support -rpath directly
18442 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18444 hardcode_libdir_separator_GCJ=:
18447 solaris*)
18448 no_undefined_flag_GCJ=' -z text'
18449 if test "$GCC" = yes; then
18450 wlarc='${wl}'
18451 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18452 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18453 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18454 else
18455 wlarc=''
18456 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18457 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18458 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18460 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18461 hardcode_shlibpath_var_GCJ=no
18462 case $host_os in
18463 solaris2.[0-5] | solaris2.[0-5].*) ;;
18465 # The compiler driver will combine and reorder linker options,
18466 # but understands `-z linker_flag'. GCC discards it without `$wl',
18467 # but is careful enough not to reorder.
18468 # Supported since Solaris 2.6 (maybe 2.5.1?)
18469 if test "$GCC" = yes; then
18470 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18471 else
18472 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18475 esac
18476 link_all_deplibs_GCJ=yes
18479 sunos4*)
18480 if test "x$host_vendor" = xsequent; then
18481 # Use $CC to link under sequent, because it throws in some extra .o
18482 # files that make .init and .fini sections work.
18483 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18484 else
18485 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18487 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18488 hardcode_direct_GCJ=yes
18489 hardcode_minus_L_GCJ=yes
18490 hardcode_shlibpath_var_GCJ=no
18493 sysv4)
18494 case $host_vendor in
18495 sni)
18496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18497 hardcode_direct_GCJ=yes # is this really true???
18499 siemens)
18500 ## LD is ld it makes a PLAMLIB
18501 ## CC just makes a GrossModule.
18502 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18503 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18504 hardcode_direct_GCJ=no
18506 motorola)
18507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18508 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18510 esac
18511 runpath_var='LD_RUN_PATH'
18512 hardcode_shlibpath_var_GCJ=no
18515 sysv4.3*)
18516 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18517 hardcode_shlibpath_var_GCJ=no
18518 export_dynamic_flag_spec_GCJ='-Bexport'
18521 sysv4*MP*)
18522 if test -d /usr/nec; then
18523 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18524 hardcode_shlibpath_var_GCJ=no
18525 runpath_var=LD_RUN_PATH
18526 hardcode_runpath_var=yes
18527 ld_shlibs_GCJ=yes
18531 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18532 no_undefined_flag_GCJ='${wl}-z,text'
18533 archive_cmds_need_lc_GCJ=no
18534 hardcode_shlibpath_var_GCJ=no
18535 runpath_var='LD_RUN_PATH'
18537 if test "$GCC" = yes; then
18538 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18539 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18540 else
18541 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18542 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18546 sysv5* | sco3.2v5* | sco5v6*)
18547 # Note: We can NOT use -z defs as we might desire, because we do not
18548 # link with -lc, and that would cause any symbols used from libc to
18549 # always be unresolved, which means just about no library would
18550 # ever link correctly. If we're not using GNU ld we use -z text
18551 # though, which does catch some bad symbols but isn't as heavy-handed
18552 # as -z defs.
18553 no_undefined_flag_GCJ='${wl}-z,text'
18554 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18555 archive_cmds_need_lc_GCJ=no
18556 hardcode_shlibpath_var_GCJ=no
18557 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18558 hardcode_libdir_separator_GCJ=':'
18559 link_all_deplibs_GCJ=yes
18560 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18561 runpath_var='LD_RUN_PATH'
18563 if test "$GCC" = yes; then
18564 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18565 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18566 else
18567 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18568 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18572 uts4*)
18573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18575 hardcode_shlibpath_var_GCJ=no
18579 ld_shlibs_GCJ=no
18581 esac
18584 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18585 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18586 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18589 # Do we need to explicitly link libc?
18591 case "x$archive_cmds_need_lc_GCJ" in
18592 x|xyes)
18593 # Assume -lc should be added
18594 archive_cmds_need_lc_GCJ=yes
18596 if test "$enable_shared" = yes && test "$GCC" = yes; then
18597 case $archive_cmds_GCJ in
18598 *'~'*)
18599 # FIXME: we may have to deal with multi-command sequences.
18601 '$CC '*)
18602 # Test whether the compiler implicitly links with -lc since on some
18603 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18604 # to ld, don't add -lc before -lgcc.
18605 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18606 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18607 $rm conftest*
18608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611 (eval $ac_compile) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } 2>conftest.err; then
18615 soname=conftest
18616 lib=conftest
18617 libobjs=conftest.$ac_objext
18618 deplibs=
18619 wl=$lt_prog_compiler_wl_GCJ
18620 pic_flag=$lt_prog_compiler_pic_GCJ
18621 compiler_flags=-v
18622 linker_flags=-v
18623 verstring=
18624 output_objdir=.
18625 libname=conftest
18626 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18627 allow_undefined_flag_GCJ=
18628 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18629 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }
18633 then
18634 archive_cmds_need_lc_GCJ=no
18635 else
18636 archive_cmds_need_lc_GCJ=yes
18638 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18639 else
18640 cat conftest.err 1>&5
18642 $rm conftest*
18643 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18644 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18646 esac
18649 esac
18651 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18652 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18653 library_names_spec=
18654 libname_spec='lib$name'
18655 soname_spec=
18656 shrext_cmds=".so"
18657 postinstall_cmds=
18658 postuninstall_cmds=
18659 finish_cmds=
18660 finish_eval=
18661 shlibpath_var=
18662 shlibpath_overrides_runpath=unknown
18663 version_type=none
18664 dynamic_linker="$host_os ld.so"
18665 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18667 need_lib_prefix=unknown
18668 hardcode_into_libs=no
18670 # when you set need_version to no, make sure it does not cause -set_version
18671 # flags to be left without arguments
18672 need_version=unknown
18674 case $host_os in
18675 aix3*)
18676 version_type=linux
18677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18678 shlibpath_var=LIBPATH
18680 # AIX 3 has no versioning support, so we append a major version to the name.
18681 soname_spec='${libname}${release}${shared_ext}$major'
18684 aix[4-9]*)
18685 version_type=linux
18686 need_lib_prefix=no
18687 need_version=no
18688 hardcode_into_libs=yes
18689 if test "$host_cpu" = ia64; then
18690 # AIX 5 supports IA64
18691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 else
18694 # With GCC up to 2.95.x, collect2 would create an import file
18695 # for dependence libraries. The import file would start with
18696 # the line `#! .'. This would cause the generated library to
18697 # depend on `.', always an invalid library. This was fixed in
18698 # development snapshots of GCC prior to 3.0.
18699 case $host_os in
18700 aix4 | aix4.[01] | aix4.[01].*)
18701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18702 echo ' yes '
18703 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18705 else
18706 can_build_shared=no
18709 esac
18710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18711 # soname into executable. Probably we can add versioning support to
18712 # collect2, so additional links can be useful in future.
18713 if test "$aix_use_runtimelinking" = yes; then
18714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18715 # instead of lib<name>.a to let people know that these are not
18716 # typical AIX shared libraries.
18717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18718 else
18719 # We preserve .a as extension for shared libraries through AIX4.2
18720 # and later when we are not doing run time linking.
18721 library_names_spec='${libname}${release}.a $libname.a'
18722 soname_spec='${libname}${release}${shared_ext}$major'
18724 shlibpath_var=LIBPATH
18728 amigaos*)
18729 library_names_spec='$libname.ixlibrary $libname.a'
18730 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18731 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'
18734 beos*)
18735 library_names_spec='${libname}${shared_ext}'
18736 dynamic_linker="$host_os ld.so"
18737 shlibpath_var=LIBRARY_PATH
18740 bsdi[45]*)
18741 version_type=linux
18742 need_version=no
18743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18744 soname_spec='${libname}${release}${shared_ext}$major'
18745 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18748 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18749 # the default ld.so.conf also contains /usr/contrib/lib and
18750 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18751 # libtool to hard-code these into programs
18754 cygwin* | mingw* | pw32*)
18755 version_type=windows
18756 shrext_cmds=".dll"
18757 need_version=no
18758 need_lib_prefix=no
18760 case $GCC,$host_os in
18761 yes,cygwin* | yes,mingw* | yes,pw32*)
18762 library_names_spec='$libname.dll.a'
18763 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18764 postinstall_cmds='base_file=`basename \${file}`~
18765 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18766 dldir=$destdir/`dirname \$dlpath`~
18767 test -d \$dldir || mkdir -p \$dldir~
18768 $install_prog $dir/$dlname \$dldir/$dlname~
18769 chmod a+x \$dldir/$dlname'
18770 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18771 dlpath=$dir/\$dldll~
18772 $rm \$dlpath'
18773 shlibpath_overrides_runpath=yes
18775 case $host_os in
18776 cygwin*)
18777 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18778 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18779 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18781 mingw*)
18782 # MinGW DLLs use traditional 'lib' prefix
18783 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18785 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18786 # It is most probably a Windows format PATH printed by
18787 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18788 # path with ; separators, and with drive letters. We can handle the
18789 # drive letters (cygwin fileutils understands them), so leave them,
18790 # especially as we might pass files found there to a mingw objdump,
18791 # which wouldn't understand a cygwinified path. Ahh.
18792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18793 else
18794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18797 pw32*)
18798 # pw32 DLLs use 'pw' prefix rather than 'lib'
18799 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18801 esac
18805 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18807 esac
18808 dynamic_linker='Win32 ld.exe'
18809 # FIXME: first we should search . and the directory the executable is in
18810 shlibpath_var=PATH
18813 darwin* | rhapsody*)
18814 dynamic_linker="$host_os dyld"
18815 version_type=darwin
18816 need_lib_prefix=no
18817 need_version=no
18818 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18819 soname_spec='${libname}${release}${major}$shared_ext'
18820 shlibpath_overrides_runpath=yes
18821 shlibpath_var=DYLD_LIBRARY_PATH
18822 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18827 dgux*)
18828 version_type=linux
18829 need_lib_prefix=no
18830 need_version=no
18831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18832 soname_spec='${libname}${release}${shared_ext}$major'
18833 shlibpath_var=LD_LIBRARY_PATH
18836 freebsd1*)
18837 dynamic_linker=no
18840 freebsd* | dragonfly*)
18841 # DragonFly does not have aout. When/if they implement a new
18842 # versioning mechanism, adjust this.
18843 if test -x /usr/bin/objformat; then
18844 objformat=`/usr/bin/objformat`
18845 else
18846 case $host_os in
18847 freebsd[123]*) objformat=aout ;;
18848 *) objformat=elf ;;
18849 esac
18851 version_type=freebsd-$objformat
18852 case $version_type in
18853 freebsd-elf*)
18854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18855 need_version=no
18856 need_lib_prefix=no
18858 freebsd-*)
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18860 need_version=yes
18862 esac
18863 shlibpath_var=LD_LIBRARY_PATH
18864 case $host_os in
18865 freebsd2*)
18866 shlibpath_overrides_runpath=yes
18868 freebsd3.[01]* | freebsdelf3.[01]*)
18869 shlibpath_overrides_runpath=yes
18870 hardcode_into_libs=yes
18872 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18873 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18874 shlibpath_overrides_runpath=no
18875 hardcode_into_libs=yes
18877 *) # from 4.6 on, and DragonFly
18878 shlibpath_overrides_runpath=yes
18879 hardcode_into_libs=yes
18881 esac
18884 gnu*)
18885 version_type=linux
18886 need_lib_prefix=no
18887 need_version=no
18888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18889 soname_spec='${libname}${release}${shared_ext}$major'
18890 shlibpath_var=LD_LIBRARY_PATH
18891 hardcode_into_libs=yes
18894 hpux9* | hpux10* | hpux11*)
18895 # Give a soname corresponding to the major version so that dld.sl refuses to
18896 # link against other versions.
18897 version_type=sunos
18898 need_lib_prefix=no
18899 need_version=no
18900 case $host_cpu in
18901 ia64*)
18902 shrext_cmds='.so'
18903 hardcode_into_libs=yes
18904 dynamic_linker="$host_os dld.so"
18905 shlibpath_var=LD_LIBRARY_PATH
18906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18908 soname_spec='${libname}${release}${shared_ext}$major'
18909 if test "X$HPUX_IA64_MODE" = X32; then
18910 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18911 else
18912 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18916 hppa*64*)
18917 shrext_cmds='.sl'
18918 hardcode_into_libs=yes
18919 dynamic_linker="$host_os dld.sl"
18920 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18923 soname_spec='${libname}${release}${shared_ext}$major'
18924 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18928 shrext_cmds='.sl'
18929 dynamic_linker="$host_os dld.sl"
18930 shlibpath_var=SHLIB_PATH
18931 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933 soname_spec='${libname}${release}${shared_ext}$major'
18935 esac
18936 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18937 postinstall_cmds='chmod 555 $lib'
18940 interix[3-9]*)
18941 version_type=linux
18942 need_lib_prefix=no
18943 need_version=no
18944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18945 soname_spec='${libname}${release}${shared_ext}$major'
18946 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18947 shlibpath_var=LD_LIBRARY_PATH
18948 shlibpath_overrides_runpath=no
18949 hardcode_into_libs=yes
18952 irix5* | irix6* | nonstopux*)
18953 case $host_os in
18954 nonstopux*) version_type=nonstopux ;;
18956 if test "$lt_cv_prog_gnu_ld" = yes; then
18957 version_type=linux
18958 else
18959 version_type=irix
18960 fi ;;
18961 esac
18962 need_lib_prefix=no
18963 need_version=no
18964 soname_spec='${libname}${release}${shared_ext}$major'
18965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18966 case $host_os in
18967 irix5* | nonstopux*)
18968 libsuff= shlibsuff=
18971 case $LD in # libtool.m4 will add one of these switches to LD
18972 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18973 libsuff= shlibsuff= libmagic=32-bit;;
18974 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18975 libsuff=32 shlibsuff=N32 libmagic=N32;;
18976 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18977 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18978 *) libsuff= shlibsuff= libmagic=never-match;;
18979 esac
18981 esac
18982 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18983 shlibpath_overrides_runpath=no
18984 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18985 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18986 hardcode_into_libs=yes
18989 # No shared lib support for Linux oldld, aout, or coff.
18990 linux*oldld* | linux*aout* | linux*coff*)
18991 dynamic_linker=no
18994 # This must be Linux ELF.
18995 linux* | k*bsd*-gnu)
18996 version_type=linux
18997 need_lib_prefix=no
18998 need_version=no
18999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19000 soname_spec='${libname}${release}${shared_ext}$major'
19001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19002 shlibpath_var=LD_LIBRARY_PATH
19003 shlibpath_overrides_runpath=no
19004 # This implies no fast_install, which is unacceptable.
19005 # Some rework will be needed to allow for fast_install
19006 # before this can be enabled.
19007 hardcode_into_libs=yes
19009 # Append ld.so.conf contents to the search path
19010 if test -f /etc/ld.so.conf; then
19011 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19012 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19015 # We used to test for /lib/ld.so.1 and disable shared libraries on
19016 # powerpc, because MkLinux only supported shared libraries with the
19017 # GNU dynamic linker. Since this was broken with cross compilers,
19018 # most powerpc-linux boxes support dynamic linking these days and
19019 # people can always --disable-shared, the test was removed, and we
19020 # assume the GNU/Linux dynamic linker is in use.
19021 dynamic_linker='GNU/Linux ld.so'
19024 netbsdelf*-gnu)
19025 version_type=linux
19026 need_lib_prefix=no
19027 need_version=no
19028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19029 soname_spec='${libname}${release}${shared_ext}$major'
19030 shlibpath_var=LD_LIBRARY_PATH
19031 shlibpath_overrides_runpath=no
19032 hardcode_into_libs=yes
19033 dynamic_linker='NetBSD ld.elf_so'
19036 netbsd*)
19037 version_type=sunos
19038 need_lib_prefix=no
19039 need_version=no
19040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19043 dynamic_linker='NetBSD (a.out) ld.so'
19044 else
19045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19046 soname_spec='${libname}${release}${shared_ext}$major'
19047 dynamic_linker='NetBSD ld.elf_so'
19049 shlibpath_var=LD_LIBRARY_PATH
19050 shlibpath_overrides_runpath=yes
19051 hardcode_into_libs=yes
19054 newsos6)
19055 version_type=linux
19056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19057 shlibpath_var=LD_LIBRARY_PATH
19058 shlibpath_overrides_runpath=yes
19061 nto-qnx*)
19062 version_type=linux
19063 need_lib_prefix=no
19064 need_version=no
19065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19066 soname_spec='${libname}${release}${shared_ext}$major'
19067 shlibpath_var=LD_LIBRARY_PATH
19068 shlibpath_overrides_runpath=yes
19071 openbsd*)
19072 version_type=sunos
19073 sys_lib_dlsearch_path_spec="/usr/lib"
19074 need_lib_prefix=no
19075 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19076 case $host_os in
19077 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19078 *) need_version=no ;;
19079 esac
19080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19082 shlibpath_var=LD_LIBRARY_PATH
19083 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19084 case $host_os in
19085 openbsd2.[89] | openbsd2.[89].*)
19086 shlibpath_overrides_runpath=no
19089 shlibpath_overrides_runpath=yes
19091 esac
19092 else
19093 shlibpath_overrides_runpath=yes
19097 os2*)
19098 libname_spec='$name'
19099 shrext_cmds=".dll"
19100 need_lib_prefix=no
19101 library_names_spec='$libname${shared_ext} $libname.a'
19102 dynamic_linker='OS/2 ld.exe'
19103 shlibpath_var=LIBPATH
19106 osf3* | osf4* | osf5*)
19107 version_type=osf
19108 need_lib_prefix=no
19109 need_version=no
19110 soname_spec='${libname}${release}${shared_ext}$major'
19111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19112 shlibpath_var=LD_LIBRARY_PATH
19113 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19114 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19117 rdos*)
19118 dynamic_linker=no
19121 solaris*)
19122 version_type=linux
19123 need_lib_prefix=no
19124 need_version=no
19125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126 soname_spec='${libname}${release}${shared_ext}$major'
19127 shlibpath_var=LD_LIBRARY_PATH
19128 shlibpath_overrides_runpath=yes
19129 hardcode_into_libs=yes
19130 # ldd complains unless libraries are executable
19131 postinstall_cmds='chmod +x $lib'
19134 sunos4*)
19135 version_type=sunos
19136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19138 shlibpath_var=LD_LIBRARY_PATH
19139 shlibpath_overrides_runpath=yes
19140 if test "$with_gnu_ld" = yes; then
19141 need_lib_prefix=no
19143 need_version=yes
19146 sysv4 | sysv4.3*)
19147 version_type=linux
19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149 soname_spec='${libname}${release}${shared_ext}$major'
19150 shlibpath_var=LD_LIBRARY_PATH
19151 case $host_vendor in
19152 sni)
19153 shlibpath_overrides_runpath=no
19154 need_lib_prefix=no
19155 export_dynamic_flag_spec='${wl}-Blargedynsym'
19156 runpath_var=LD_RUN_PATH
19158 siemens)
19159 need_lib_prefix=no
19161 motorola)
19162 need_lib_prefix=no
19163 need_version=no
19164 shlibpath_overrides_runpath=no
19165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19167 esac
19170 sysv4*MP*)
19171 if test -d /usr/nec ;then
19172 version_type=linux
19173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19174 soname_spec='$libname${shared_ext}.$major'
19175 shlibpath_var=LD_LIBRARY_PATH
19179 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19180 version_type=freebsd-elf
19181 need_lib_prefix=no
19182 need_version=no
19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19184 soname_spec='${libname}${release}${shared_ext}$major'
19185 shlibpath_var=LD_LIBRARY_PATH
19186 hardcode_into_libs=yes
19187 if test "$with_gnu_ld" = yes; then
19188 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19189 shlibpath_overrides_runpath=no
19190 else
19191 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19192 shlibpath_overrides_runpath=yes
19193 case $host_os in
19194 sco3.2v5*)
19195 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19197 esac
19199 sys_lib_dlsearch_path_spec='/usr/lib'
19202 uts4*)
19203 version_type=linux
19204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19205 soname_spec='${libname}${release}${shared_ext}$major'
19206 shlibpath_var=LD_LIBRARY_PATH
19210 dynamic_linker=no
19212 esac
19213 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19214 echo "${ECHO_T}$dynamic_linker" >&6; }
19215 test "$dynamic_linker" = no && can_build_shared=no
19217 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 else
19220 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19223 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19224 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19225 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 else
19227 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19230 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19233 if test "$GCC" = yes; then
19234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19237 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19238 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19239 hardcode_action_GCJ=
19240 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19241 test -n "$runpath_var_GCJ" || \
19242 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19244 # We can hardcode non-existant directories.
19245 if test "$hardcode_direct_GCJ" != no &&
19246 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19247 # have to relink, otherwise we might link with an installed library
19248 # when we should be linking with a yet-to-be-installed one
19249 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19250 test "$hardcode_minus_L_GCJ" != no; then
19251 # Linking always hardcodes the temporary library directory.
19252 hardcode_action_GCJ=relink
19253 else
19254 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19255 hardcode_action_GCJ=immediate
19257 else
19258 # We cannot hardcode anything, or else we can only hardcode existing
19259 # directories.
19260 hardcode_action_GCJ=unsupported
19262 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19263 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19265 if test "$hardcode_action_GCJ" = relink; then
19266 # Fast installation is not supported
19267 enable_fast_install=no
19268 elif test "$shlibpath_overrides_runpath" = yes ||
19269 test "$enable_shared" = no; then
19270 # Fast installation is not necessary
19271 enable_fast_install=needless
19275 # The else clause should only fire when bootstrapping the
19276 # libtool distribution, otherwise you forgot to ship ltmain.sh
19277 # with your package, and you will get complaints that there are
19278 # no rules to generate ltmain.sh.
19279 if test -f "$ltmain"; then
19280 # See if we are running on zsh, and set the options which allow our commands through
19281 # without removal of \ escapes.
19282 if test -n "${ZSH_VERSION+set}" ; then
19283 setopt NO_GLOB_SUBST
19285 # Now quote all the things that may contain metacharacters while being
19286 # careful not to overquote the AC_SUBSTed values. We take copies of the
19287 # variables and quote the copies for generation of the libtool script.
19288 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19289 SED SHELL STRIP \
19290 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19291 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19292 deplibs_check_method reload_flag reload_cmds need_locks \
19293 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19294 lt_cv_sys_global_symbol_to_c_name_address \
19295 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19296 old_postinstall_cmds old_postuninstall_cmds \
19297 compiler_GCJ \
19298 CC_GCJ \
19299 LD_GCJ \
19300 lt_prog_compiler_wl_GCJ \
19301 lt_prog_compiler_pic_GCJ \
19302 lt_prog_compiler_static_GCJ \
19303 lt_prog_compiler_no_builtin_flag_GCJ \
19304 export_dynamic_flag_spec_GCJ \
19305 thread_safe_flag_spec_GCJ \
19306 whole_archive_flag_spec_GCJ \
19307 enable_shared_with_static_runtimes_GCJ \
19308 old_archive_cmds_GCJ \
19309 old_archive_from_new_cmds_GCJ \
19310 predep_objects_GCJ \
19311 postdep_objects_GCJ \
19312 predeps_GCJ \
19313 postdeps_GCJ \
19314 compiler_lib_search_path_GCJ \
19315 compiler_lib_search_dirs_GCJ \
19316 archive_cmds_GCJ \
19317 archive_expsym_cmds_GCJ \
19318 postinstall_cmds_GCJ \
19319 postuninstall_cmds_GCJ \
19320 old_archive_from_expsyms_cmds_GCJ \
19321 allow_undefined_flag_GCJ \
19322 no_undefined_flag_GCJ \
19323 export_symbols_cmds_GCJ \
19324 hardcode_libdir_flag_spec_GCJ \
19325 hardcode_libdir_flag_spec_ld_GCJ \
19326 hardcode_libdir_separator_GCJ \
19327 hardcode_automatic_GCJ \
19328 module_cmds_GCJ \
19329 module_expsym_cmds_GCJ \
19330 lt_cv_prog_compiler_c_o_GCJ \
19331 fix_srcfile_path_GCJ \
19332 exclude_expsyms_GCJ \
19333 include_expsyms_GCJ; do
19335 case $var in
19336 old_archive_cmds_GCJ | \
19337 old_archive_from_new_cmds_GCJ | \
19338 archive_cmds_GCJ | \
19339 archive_expsym_cmds_GCJ | \
19340 module_cmds_GCJ | \
19341 module_expsym_cmds_GCJ | \
19342 old_archive_from_expsyms_cmds_GCJ | \
19343 export_symbols_cmds_GCJ | \
19344 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19345 postinstall_cmds | postuninstall_cmds | \
19346 old_postinstall_cmds | old_postuninstall_cmds | \
19347 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19348 # Double-quote double-evaled strings.
19349 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19354 esac
19355 done
19357 case $lt_echo in
19358 *'\$0 --fallback-echo"')
19359 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19361 esac
19363 cfgfile="$ofile"
19365 cat <<__EOF__ >> "$cfgfile"
19366 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19368 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19370 # Shell to use when invoking shell scripts.
19371 SHELL=$lt_SHELL
19373 # Whether or not to build shared libraries.
19374 build_libtool_libs=$enable_shared
19376 # Whether or not to build static libraries.
19377 build_old_libs=$enable_static
19379 # Whether or not to add -lc for building shared libraries.
19380 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19382 # Whether or not to disallow shared libs when runtime libs are static
19383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19385 # Whether or not to optimize for fast installation.
19386 fast_install=$enable_fast_install
19388 # The host system.
19389 host_alias=$host_alias
19390 host=$host
19391 host_os=$host_os
19393 # The build system.
19394 build_alias=$build_alias
19395 build=$build
19396 build_os=$build_os
19398 # An echo program that does not interpret backslashes.
19399 echo=$lt_echo
19401 # The archiver.
19402 AR=$lt_AR
19403 AR_FLAGS=$lt_AR_FLAGS
19405 # A C compiler.
19406 LTCC=$lt_LTCC
19408 # LTCC compiler flags.
19409 LTCFLAGS=$lt_LTCFLAGS
19411 # A language-specific compiler.
19412 CC=$lt_compiler_GCJ
19414 # Is the compiler the GNU C compiler?
19415 with_gcc=$GCC_GCJ
19417 # An ERE matcher.
19418 EGREP=$lt_EGREP
19420 # The linker used to build libraries.
19421 LD=$lt_LD_GCJ
19423 # Whether we need hard or soft links.
19424 LN_S=$lt_LN_S
19426 # A BSD-compatible nm program.
19427 NM=$lt_NM
19429 # A symbol stripping program
19430 STRIP=$lt_STRIP
19432 # Used to examine libraries when file_magic_cmd begins "file"
19433 MAGIC_CMD=$MAGIC_CMD
19435 # Used on cygwin: DLL creation program.
19436 DLLTOOL="$DLLTOOL"
19438 # Used on cygwin: object dumper.
19439 OBJDUMP="$OBJDUMP"
19441 # Used on cygwin: assembler.
19442 AS="$AS"
19444 # The name of the directory that contains temporary libtool files.
19445 objdir=$objdir
19447 # How to create reloadable object files.
19448 reload_flag=$lt_reload_flag
19449 reload_cmds=$lt_reload_cmds
19451 # How to pass a linker flag through the compiler.
19452 wl=$lt_lt_prog_compiler_wl_GCJ
19454 # Object file suffix (normally "o").
19455 objext="$ac_objext"
19457 # Old archive suffix (normally "a").
19458 libext="$libext"
19460 # Shared library suffix (normally ".so").
19461 shrext_cmds='$shrext_cmds'
19463 # Executable file suffix (normally "").
19464 exeext="$exeext"
19466 # Additional compiler flags for building library objects.
19467 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19468 pic_mode=$pic_mode
19470 # What is the maximum length of a command?
19471 max_cmd_len=$lt_cv_sys_max_cmd_len
19473 # Does compiler simultaneously support -c and -o options?
19474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19476 # Must we lock files when doing compilation?
19477 need_locks=$lt_need_locks
19479 # Do we need the lib prefix for modules?
19480 need_lib_prefix=$need_lib_prefix
19482 # Do we need a version for libraries?
19483 need_version=$need_version
19485 # Whether dlopen is supported.
19486 dlopen_support=$enable_dlopen
19488 # Whether dlopen of programs is supported.
19489 dlopen_self=$enable_dlopen_self
19491 # Whether dlopen of statically linked programs is supported.
19492 dlopen_self_static=$enable_dlopen_self_static
19494 # Compiler flag to prevent dynamic linking.
19495 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19497 # Compiler flag to turn off builtin functions.
19498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19500 # Compiler flag to allow reflexive dlopens.
19501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19503 # Compiler flag to generate shared objects directly from archives.
19504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19506 # Compiler flag to generate thread-safe objects.
19507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19509 # Library versioning type.
19510 version_type=$version_type
19512 # Format of library name prefix.
19513 libname_spec=$lt_libname_spec
19515 # List of archive names. First name is the real one, the rest are links.
19516 # The last name is the one that the linker finds with -lNAME.
19517 library_names_spec=$lt_library_names_spec
19519 # The coded name of the library, if different from the real name.
19520 soname_spec=$lt_soname_spec
19522 # Commands used to build and install an old-style archive.
19523 RANLIB=$lt_RANLIB
19524 old_archive_cmds=$lt_old_archive_cmds_GCJ
19525 old_postinstall_cmds=$lt_old_postinstall_cmds
19526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19528 # Create an old-style archive from a shared archive.
19529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19531 # Create a temporary old-style archive to link instead of a shared archive.
19532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19534 # Commands used to build and install a shared archive.
19535 archive_cmds=$lt_archive_cmds_GCJ
19536 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19537 postinstall_cmds=$lt_postinstall_cmds
19538 postuninstall_cmds=$lt_postuninstall_cmds
19540 # Commands used to build a loadable module (assumed same as above if empty)
19541 module_cmds=$lt_module_cmds_GCJ
19542 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19544 # Commands to strip libraries.
19545 old_striplib=$lt_old_striplib
19546 striplib=$lt_striplib
19548 # Dependencies to place before the objects being linked to create a
19549 # shared library.
19550 predep_objects=$lt_predep_objects_GCJ
19552 # Dependencies to place after the objects being linked to create a
19553 # shared library.
19554 postdep_objects=$lt_postdep_objects_GCJ
19556 # Dependencies to place before the objects being linked to create a
19557 # shared library.
19558 predeps=$lt_predeps_GCJ
19560 # Dependencies to place after the objects being linked to create a
19561 # shared library.
19562 postdeps=$lt_postdeps_GCJ
19564 # The directories searched by this compiler when creating a shared
19565 # library
19566 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19568 # The library search path used internally by the compiler when linking
19569 # a shared library.
19570 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19572 # Method to check whether dependent libraries are shared objects.
19573 deplibs_check_method=$lt_deplibs_check_method
19575 # Command to use when deplibs_check_method == file_magic.
19576 file_magic_cmd=$lt_file_magic_cmd
19578 # Flag that allows shared libraries with undefined symbols to be built.
19579 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19581 # Flag that forces no undefined symbols.
19582 no_undefined_flag=$lt_no_undefined_flag_GCJ
19584 # Commands used to finish a libtool library installation in a directory.
19585 finish_cmds=$lt_finish_cmds
19587 # Same as above, but a single script fragment to be evaled but not shown.
19588 finish_eval=$lt_finish_eval
19590 # Take the output of nm and produce a listing of raw symbols and C names.
19591 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19593 # Transform the output of nm in a proper C declaration
19594 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19596 # Transform the output of nm in a C name address pair
19597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19599 # This is the shared library runtime path variable.
19600 runpath_var=$runpath_var
19602 # This is the shared library path variable.
19603 shlibpath_var=$shlibpath_var
19605 # Is shlibpath searched before the hard-coded library search path?
19606 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19608 # How to hardcode a shared library path into an executable.
19609 hardcode_action=$hardcode_action_GCJ
19611 # Whether we should hardcode library paths into libraries.
19612 hardcode_into_libs=$hardcode_into_libs
19614 # Flag to hardcode \$libdir into a binary during linking.
19615 # This must work even if \$libdir does not exist.
19616 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19618 # If ld is used when linking, flag to hardcode \$libdir into
19619 # a binary during linking. This must work even if \$libdir does
19620 # not exist.
19621 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19623 # Whether we need a single -rpath flag with a separated argument.
19624 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19626 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19627 # resulting binary.
19628 hardcode_direct=$hardcode_direct_GCJ
19630 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19631 # resulting binary.
19632 hardcode_minus_L=$hardcode_minus_L_GCJ
19634 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19635 # the resulting binary.
19636 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19638 # Set to yes if building a shared library automatically hardcodes DIR into the library
19639 # and all subsequent libraries and executables linked against it.
19640 hardcode_automatic=$hardcode_automatic_GCJ
19642 # Variables whose values should be saved in libtool wrapper scripts and
19643 # restored at relink time.
19644 variables_saved_for_relink="$variables_saved_for_relink"
19646 # Whether libtool must link a program against all its dependency libraries.
19647 link_all_deplibs=$link_all_deplibs_GCJ
19649 # Compile-time system search path for libraries
19650 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19652 # Run-time system search path for libraries
19653 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19655 # Fix the shell variable \$srcfile for the compiler.
19656 fix_srcfile_path=$lt_fix_srcfile_path
19658 # Set to yes if exported symbols are required.
19659 always_export_symbols=$always_export_symbols_GCJ
19661 # The commands to list exported symbols.
19662 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19664 # The commands to extract the exported symbol list from a shared archive.
19665 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19667 # Symbols that should not be listed in the preloaded symbols.
19668 exclude_expsyms=$lt_exclude_expsyms_GCJ
19670 # Symbols that must always be exported.
19671 include_expsyms=$lt_include_expsyms_GCJ
19673 # ### END LIBTOOL TAG CONFIG: $tagname
19675 __EOF__
19678 else
19679 # If there is no Makefile yet, we rely on a make rule to execute
19680 # `config.status --recheck' to rerun these tests and create the
19681 # libtool script then.
19682 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19683 if test -f "$ltmain_in"; then
19684 test -f Makefile && make "$ltmain"
19689 ac_ext=c
19690 ac_cpp='$CPP $CPPFLAGS'
19691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19695 CC="$lt_save_CC"
19697 else
19698 tagname=""
19705 # Source file extension for RC test sources.
19706 ac_ext=rc
19708 # Object file extension for compiled RC test sources.
19709 objext=o
19710 objext_RC=$objext
19712 # Code to be used in simple compile tests
19713 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19715 # Code to be used in simple link tests
19716 lt_simple_link_test_code="$lt_simple_compile_test_code"
19718 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19720 # If no C compiler was specified, use CC.
19721 LTCC=${LTCC-"$CC"}
19723 # If no C compiler flags were specified, use CFLAGS.
19724 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19726 # Allow CC to be a program name with arguments.
19727 compiler=$CC
19730 # save warnings/boilerplate of simple test code
19731 ac_outfile=conftest.$ac_objext
19732 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19733 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19734 _lt_compiler_boilerplate=`cat conftest.err`
19735 $rm conftest*
19737 ac_outfile=conftest.$ac_objext
19738 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19739 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19740 _lt_linker_boilerplate=`cat conftest.err`
19741 $rm -r conftest*
19744 # Allow CC to be a program name with arguments.
19745 lt_save_CC="$CC"
19746 CC=${RC-"windres"}
19747 compiler=$CC
19748 compiler_RC=$CC
19749 for cc_temp in $compiler""; do
19750 case $cc_temp in
19751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19753 \-*) ;;
19754 *) break;;
19755 esac
19756 done
19757 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19759 lt_cv_prog_compiler_c_o_RC=yes
19761 # The else clause should only fire when bootstrapping the
19762 # libtool distribution, otherwise you forgot to ship ltmain.sh
19763 # with your package, and you will get complaints that there are
19764 # no rules to generate ltmain.sh.
19765 if test -f "$ltmain"; then
19766 # See if we are running on zsh, and set the options which allow our commands through
19767 # without removal of \ escapes.
19768 if test -n "${ZSH_VERSION+set}" ; then
19769 setopt NO_GLOB_SUBST
19771 # Now quote all the things that may contain metacharacters while being
19772 # careful not to overquote the AC_SUBSTed values. We take copies of the
19773 # variables and quote the copies for generation of the libtool script.
19774 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19775 SED SHELL STRIP \
19776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19778 deplibs_check_method reload_flag reload_cmds need_locks \
19779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19780 lt_cv_sys_global_symbol_to_c_name_address \
19781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19782 old_postinstall_cmds old_postuninstall_cmds \
19783 compiler_RC \
19784 CC_RC \
19785 LD_RC \
19786 lt_prog_compiler_wl_RC \
19787 lt_prog_compiler_pic_RC \
19788 lt_prog_compiler_static_RC \
19789 lt_prog_compiler_no_builtin_flag_RC \
19790 export_dynamic_flag_spec_RC \
19791 thread_safe_flag_spec_RC \
19792 whole_archive_flag_spec_RC \
19793 enable_shared_with_static_runtimes_RC \
19794 old_archive_cmds_RC \
19795 old_archive_from_new_cmds_RC \
19796 predep_objects_RC \
19797 postdep_objects_RC \
19798 predeps_RC \
19799 postdeps_RC \
19800 compiler_lib_search_path_RC \
19801 compiler_lib_search_dirs_RC \
19802 archive_cmds_RC \
19803 archive_expsym_cmds_RC \
19804 postinstall_cmds_RC \
19805 postuninstall_cmds_RC \
19806 old_archive_from_expsyms_cmds_RC \
19807 allow_undefined_flag_RC \
19808 no_undefined_flag_RC \
19809 export_symbols_cmds_RC \
19810 hardcode_libdir_flag_spec_RC \
19811 hardcode_libdir_flag_spec_ld_RC \
19812 hardcode_libdir_separator_RC \
19813 hardcode_automatic_RC \
19814 module_cmds_RC \
19815 module_expsym_cmds_RC \
19816 lt_cv_prog_compiler_c_o_RC \
19817 fix_srcfile_path_RC \
19818 exclude_expsyms_RC \
19819 include_expsyms_RC; do
19821 case $var in
19822 old_archive_cmds_RC | \
19823 old_archive_from_new_cmds_RC | \
19824 archive_cmds_RC | \
19825 archive_expsym_cmds_RC | \
19826 module_cmds_RC | \
19827 module_expsym_cmds_RC | \
19828 old_archive_from_expsyms_cmds_RC | \
19829 export_symbols_cmds_RC | \
19830 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19831 postinstall_cmds | postuninstall_cmds | \
19832 old_postinstall_cmds | old_postuninstall_cmds | \
19833 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19834 # Double-quote double-evaled strings.
19835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19838 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19840 esac
19841 done
19843 case $lt_echo in
19844 *'\$0 --fallback-echo"')
19845 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19847 esac
19849 cfgfile="$ofile"
19851 cat <<__EOF__ >> "$cfgfile"
19852 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19856 # Shell to use when invoking shell scripts.
19857 SHELL=$lt_SHELL
19859 # Whether or not to build shared libraries.
19860 build_libtool_libs=$enable_shared
19862 # Whether or not to build static libraries.
19863 build_old_libs=$enable_static
19865 # Whether or not to add -lc for building shared libraries.
19866 build_libtool_need_lc=$archive_cmds_need_lc_RC
19868 # Whether or not to disallow shared libs when runtime libs are static
19869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19871 # Whether or not to optimize for fast installation.
19872 fast_install=$enable_fast_install
19874 # The host system.
19875 host_alias=$host_alias
19876 host=$host
19877 host_os=$host_os
19879 # The build system.
19880 build_alias=$build_alias
19881 build=$build
19882 build_os=$build_os
19884 # An echo program that does not interpret backslashes.
19885 echo=$lt_echo
19887 # The archiver.
19888 AR=$lt_AR
19889 AR_FLAGS=$lt_AR_FLAGS
19891 # A C compiler.
19892 LTCC=$lt_LTCC
19894 # LTCC compiler flags.
19895 LTCFLAGS=$lt_LTCFLAGS
19897 # A language-specific compiler.
19898 CC=$lt_compiler_RC
19900 # Is the compiler the GNU C compiler?
19901 with_gcc=$GCC_RC
19903 # An ERE matcher.
19904 EGREP=$lt_EGREP
19906 # The linker used to build libraries.
19907 LD=$lt_LD_RC
19909 # Whether we need hard or soft links.
19910 LN_S=$lt_LN_S
19912 # A BSD-compatible nm program.
19913 NM=$lt_NM
19915 # A symbol stripping program
19916 STRIP=$lt_STRIP
19918 # Used to examine libraries when file_magic_cmd begins "file"
19919 MAGIC_CMD=$MAGIC_CMD
19921 # Used on cygwin: DLL creation program.
19922 DLLTOOL="$DLLTOOL"
19924 # Used on cygwin: object dumper.
19925 OBJDUMP="$OBJDUMP"
19927 # Used on cygwin: assembler.
19928 AS="$AS"
19930 # The name of the directory that contains temporary libtool files.
19931 objdir=$objdir
19933 # How to create reloadable object files.
19934 reload_flag=$lt_reload_flag
19935 reload_cmds=$lt_reload_cmds
19937 # How to pass a linker flag through the compiler.
19938 wl=$lt_lt_prog_compiler_wl_RC
19940 # Object file suffix (normally "o").
19941 objext="$ac_objext"
19943 # Old archive suffix (normally "a").
19944 libext="$libext"
19946 # Shared library suffix (normally ".so").
19947 shrext_cmds='$shrext_cmds'
19949 # Executable file suffix (normally "").
19950 exeext="$exeext"
19952 # Additional compiler flags for building library objects.
19953 pic_flag=$lt_lt_prog_compiler_pic_RC
19954 pic_mode=$pic_mode
19956 # What is the maximum length of a command?
19957 max_cmd_len=$lt_cv_sys_max_cmd_len
19959 # Does compiler simultaneously support -c and -o options?
19960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19962 # Must we lock files when doing compilation?
19963 need_locks=$lt_need_locks
19965 # Do we need the lib prefix for modules?
19966 need_lib_prefix=$need_lib_prefix
19968 # Do we need a version for libraries?
19969 need_version=$need_version
19971 # Whether dlopen is supported.
19972 dlopen_support=$enable_dlopen
19974 # Whether dlopen of programs is supported.
19975 dlopen_self=$enable_dlopen_self
19977 # Whether dlopen of statically linked programs is supported.
19978 dlopen_self_static=$enable_dlopen_self_static
19980 # Compiler flag to prevent dynamic linking.
19981 link_static_flag=$lt_lt_prog_compiler_static_RC
19983 # Compiler flag to turn off builtin functions.
19984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19986 # Compiler flag to allow reflexive dlopens.
19987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19989 # Compiler flag to generate shared objects directly from archives.
19990 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19992 # Compiler flag to generate thread-safe objects.
19993 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19995 # Library versioning type.
19996 version_type=$version_type
19998 # Format of library name prefix.
19999 libname_spec=$lt_libname_spec
20001 # List of archive names. First name is the real one, the rest are links.
20002 # The last name is the one that the linker finds with -lNAME.
20003 library_names_spec=$lt_library_names_spec
20005 # The coded name of the library, if different from the real name.
20006 soname_spec=$lt_soname_spec
20008 # Commands used to build and install an old-style archive.
20009 RANLIB=$lt_RANLIB
20010 old_archive_cmds=$lt_old_archive_cmds_RC
20011 old_postinstall_cmds=$lt_old_postinstall_cmds
20012 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20014 # Create an old-style archive from a shared archive.
20015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20017 # Create a temporary old-style archive to link instead of a shared archive.
20018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20020 # Commands used to build and install a shared archive.
20021 archive_cmds=$lt_archive_cmds_RC
20022 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20023 postinstall_cmds=$lt_postinstall_cmds
20024 postuninstall_cmds=$lt_postuninstall_cmds
20026 # Commands used to build a loadable module (assumed same as above if empty)
20027 module_cmds=$lt_module_cmds_RC
20028 module_expsym_cmds=$lt_module_expsym_cmds_RC
20030 # Commands to strip libraries.
20031 old_striplib=$lt_old_striplib
20032 striplib=$lt_striplib
20034 # Dependencies to place before the objects being linked to create a
20035 # shared library.
20036 predep_objects=$lt_predep_objects_RC
20038 # Dependencies to place after the objects being linked to create a
20039 # shared library.
20040 postdep_objects=$lt_postdep_objects_RC
20042 # Dependencies to place before the objects being linked to create a
20043 # shared library.
20044 predeps=$lt_predeps_RC
20046 # Dependencies to place after the objects being linked to create a
20047 # shared library.
20048 postdeps=$lt_postdeps_RC
20050 # The directories searched by this compiler when creating a shared
20051 # library
20052 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20054 # The library search path used internally by the compiler when linking
20055 # a shared library.
20056 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20058 # Method to check whether dependent libraries are shared objects.
20059 deplibs_check_method=$lt_deplibs_check_method
20061 # Command to use when deplibs_check_method == file_magic.
20062 file_magic_cmd=$lt_file_magic_cmd
20064 # Flag that allows shared libraries with undefined symbols to be built.
20065 allow_undefined_flag=$lt_allow_undefined_flag_RC
20067 # Flag that forces no undefined symbols.
20068 no_undefined_flag=$lt_no_undefined_flag_RC
20070 # Commands used to finish a libtool library installation in a directory.
20071 finish_cmds=$lt_finish_cmds
20073 # Same as above, but a single script fragment to be evaled but not shown.
20074 finish_eval=$lt_finish_eval
20076 # Take the output of nm and produce a listing of raw symbols and C names.
20077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20079 # Transform the output of nm in a proper C declaration
20080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20082 # Transform the output of nm in a C name address pair
20083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20085 # This is the shared library runtime path variable.
20086 runpath_var=$runpath_var
20088 # This is the shared library path variable.
20089 shlibpath_var=$shlibpath_var
20091 # Is shlibpath searched before the hard-coded library search path?
20092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20094 # How to hardcode a shared library path into an executable.
20095 hardcode_action=$hardcode_action_RC
20097 # Whether we should hardcode library paths into libraries.
20098 hardcode_into_libs=$hardcode_into_libs
20100 # Flag to hardcode \$libdir into a binary during linking.
20101 # This must work even if \$libdir does not exist.
20102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20104 # If ld is used when linking, flag to hardcode \$libdir into
20105 # a binary during linking. This must work even if \$libdir does
20106 # not exist.
20107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20109 # Whether we need a single -rpath flag with a separated argument.
20110 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20112 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20113 # resulting binary.
20114 hardcode_direct=$hardcode_direct_RC
20116 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20117 # resulting binary.
20118 hardcode_minus_L=$hardcode_minus_L_RC
20120 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20121 # the resulting binary.
20122 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20124 # Set to yes if building a shared library automatically hardcodes DIR into the library
20125 # and all subsequent libraries and executables linked against it.
20126 hardcode_automatic=$hardcode_automatic_RC
20128 # Variables whose values should be saved in libtool wrapper scripts and
20129 # restored at relink time.
20130 variables_saved_for_relink="$variables_saved_for_relink"
20132 # Whether libtool must link a program against all its dependency libraries.
20133 link_all_deplibs=$link_all_deplibs_RC
20135 # Compile-time system search path for libraries
20136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20138 # Run-time system search path for libraries
20139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20141 # Fix the shell variable \$srcfile for the compiler.
20142 fix_srcfile_path=$lt_fix_srcfile_path
20144 # Set to yes if exported symbols are required.
20145 always_export_symbols=$always_export_symbols_RC
20147 # The commands to list exported symbols.
20148 export_symbols_cmds=$lt_export_symbols_cmds_RC
20150 # The commands to extract the exported symbol list from a shared archive.
20151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20153 # Symbols that should not be listed in the preloaded symbols.
20154 exclude_expsyms=$lt_exclude_expsyms_RC
20156 # Symbols that must always be exported.
20157 include_expsyms=$lt_include_expsyms_RC
20159 # ### END LIBTOOL TAG CONFIG: $tagname
20161 __EOF__
20164 else
20165 # If there is no Makefile yet, we rely on a make rule to execute
20166 # `config.status --recheck' to rerun these tests and create the
20167 # libtool script then.
20168 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20169 if test -f "$ltmain_in"; then
20170 test -f Makefile && make "$ltmain"
20175 ac_ext=c
20176 ac_cpp='$CPP $CPPFLAGS'
20177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20181 CC="$lt_save_CC"
20186 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20187 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20188 { (exit 1); exit 1; }; }
20190 esac
20192 # Append the new tag name to the list of available tags.
20193 if test -n "$tagname" ; then
20194 available_tags="$available_tags $tagname"
20197 done
20198 IFS="$lt_save_ifs"
20200 # Now substitute the updated list of available tags.
20201 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20202 mv "${ofile}T" "$ofile"
20203 chmod +x "$ofile"
20204 else
20205 rm -f "${ofile}T"
20206 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20207 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20208 { (exit 1); exit 1; }; }
20214 # This can be used to rebuild libtool when needed
20215 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20217 # Always use our own libtool.
20218 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20220 # Prevent multiple expansion
20241 if test "x$CC" != xcc; then
20242 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20243 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20244 else
20245 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20246 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20248 set dummy $CC; ac_cc=`echo $2 |
20249 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20250 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253 cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h. */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20261 main ()
20265 return 0;
20267 _ACEOF
20268 # Make sure it works both with $CC and with simple cc.
20269 # We do the test twice because some compilers refuse to overwrite an
20270 # existing .o file with -o, though they will create one.
20271 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20272 rm -f conftest2.*
20273 if { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } &&
20282 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_try") 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); };
20291 then
20292 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20293 if test "x$CC" != xcc; then
20294 # Test first that cc exists at all.
20295 if { ac_try='cc -c conftest.$ac_ext >&5'
20296 { (case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_try") 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }; then
20305 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20306 rm -f conftest2.*
20307 if { (case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_try") 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_try") 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); };
20325 then
20326 # cc works too.
20328 else
20329 # cc exists but doesn't like -o.
20330 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20334 else
20335 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20337 rm -f core conftest*
20340 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20341 { echo "$as_me:$LINENO: result: yes" >&5
20342 echo "${ECHO_T}yes" >&6; }
20343 else
20344 { echo "$as_me:$LINENO: result: no" >&5
20345 echo "${ECHO_T}no" >&6; }
20347 cat >>confdefs.h <<\_ACEOF
20348 #define NO_MINUS_C_MINUS_O 1
20349 _ACEOF
20353 # FIXME: we rely on the cache variable name because
20354 # there is no other way.
20355 set dummy $CC
20356 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20357 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20358 # Losing compiler, so override with the script.
20359 # FIXME: It is wrong to rewrite CC.
20360 # But if we don't then we get into trouble of one sort or another.
20361 # A longer-term fix would be to have automake use am__CC in this case,
20362 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20363 CC="$am_aux_dir/compile $CC"
20368 # Check whether --enable-docs was given.
20369 if test "${enable_docs+set}" = set; then
20370 enableval=$enable_docs;
20374 if test "x$enable_docs" = xyes; then
20375 for ac_prog in pdflatex
20377 # Extract the first word of "$ac_prog", so it can be a program name with args.
20378 set dummy $ac_prog; ac_word=$2
20379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20381 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 else
20384 if test -n "$PDFLATEX"; then
20385 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
20386 else
20387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20388 for as_dir in $PATH
20390 IFS=$as_save_IFS
20391 test -z "$as_dir" && as_dir=.
20392 for ac_exec_ext in '' $ac_executable_extensions; do
20393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20394 ac_cv_prog_PDFLATEX="$ac_prog"
20395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20396 break 2
20398 done
20399 done
20400 IFS=$as_save_IFS
20404 PDFLATEX=$ac_cv_prog_PDFLATEX
20405 if test -n "$PDFLATEX"; then
20406 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
20407 echo "${ECHO_T}$PDFLATEX" >&6; }
20408 else
20409 { echo "$as_me:$LINENO: result: no" >&5
20410 echo "${ECHO_T}no" >&6; }
20414 test -n "$PDFLATEX" && break
20415 done
20416 test -n "$PDFLATEX" || PDFLATEX="/bin/false"
20418 for ac_prog in htlatex
20420 # Extract the first word of "$ac_prog", so it can be a program name with args.
20421 set dummy $ac_prog; ac_word=$2
20422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20424 if test "${ac_cv_prog_HTLATEX+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 else
20427 if test -n "$HTLATEX"; then
20428 ac_cv_prog_HTLATEX="$HTLATEX" # Let the user override the test.
20429 else
20430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20431 for as_dir in $PATH
20433 IFS=$as_save_IFS
20434 test -z "$as_dir" && as_dir=.
20435 for ac_exec_ext in '' $ac_executable_extensions; do
20436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20437 ac_cv_prog_HTLATEX="$ac_prog"
20438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20439 break 2
20441 done
20442 done
20443 IFS=$as_save_IFS
20447 HTLATEX=$ac_cv_prog_HTLATEX
20448 if test -n "$HTLATEX"; then
20449 { echo "$as_me:$LINENO: result: $HTLATEX" >&5
20450 echo "${ECHO_T}$HTLATEX" >&6; }
20451 else
20452 { echo "$as_me:$LINENO: result: no" >&5
20453 echo "${ECHO_T}no" >&6; }
20457 test -n "$HTLATEX" && break
20458 done
20459 test -n "$HTLATEX" || HTLATEX="/bin/false"
20461 if test "x$PDFLATEX" = x/bin/false || test "x$HTLATEX" = x/bin/false; then
20462 enable_docs=no
20463 { echo "$as_me:$LINENO: WARNING: Documentation will not be built!" >&5
20464 echo "$as_me: WARNING: Documentation will not be built!" >&2;}
20468 if test "x$enable_docs" = xyes; then
20469 BUILD_DOCS_TRUE=
20470 BUILD_DOCS_FALSE='#'
20471 else
20472 BUILD_DOCS_TRUE='#'
20473 BUILD_DOCS_FALSE=
20479 cflags_save="$CFLAGS"
20480 if test -z "$GCC"; then
20481 case $host in
20482 *-*-irix*)
20483 if test -z "$CC"; then
20484 CC=cc
20486 DEBUG="-g -signed"
20487 CFLAGS="-O2 -w -signed"
20488 PROFILE="-p -g3 -O2 -signed" ;;
20489 sparc-sun-solaris*)
20490 DEBUG="-v -g"
20491 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
20492 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
20494 DEBUG="-g"
20495 CFLAGS="-O"
20496 PROFILE="-g -p" ;;
20497 esac
20498 else
20500 { echo "$as_me:$LINENO: checking GCC version" >&5
20501 echo $ECHO_N "checking GCC version... $ECHO_C" >&6; }
20502 GCC_VERSION=`$CC -dumpversion`
20503 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
20504 echo "${ECHO_T}$GCC_VERSION" >&6; }
20505 case $host in
20506 *86-*-linux*)
20507 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
20508 CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
20509 # PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
20510 PROFILE="-Wall -Wextra -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
20512 # glibc < 2.1.3 has a serious FP bug in the math inline header
20513 # that will cripple Vorbis. Look to see if the magic FP stack
20514 # clobber is missing in the mathinline header, thus indicating
20515 # the buggy version
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20524 #define __LIBC_INTERNAL_MATH_INLINES 1
20525 #define __OPTIMIZE__
20526 #include <math.h>
20528 _ACEOF
20529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20530 $EGREP "log10.*fldlg2.*fxch" >/dev/null 2>&1; then
20531 bad=maybe
20532 else
20533 bad=no
20535 rm -f conftest*
20537 if test ${bad} = "maybe" ;then
20538 cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h. */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20545 #define __LIBC_INTERNAL_MATH_INLINES 1
20546 #define __OPTIMIZE__
20547 #include <math.h>
20549 _ACEOF
20550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20551 $EGREP "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then
20552 bad=no
20553 else
20554 bad=yes
20556 rm -f conftest*
20559 if test ${bad} = "yes" ;then
20560 { echo "$as_me:$LINENO: WARNING: " >&5
20561 echo "$as_me: WARNING: " >&2;}
20562 { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
20563 echo "$as_me: WARNING: ********************************************************" >&2;}
20564 { echo "$as_me:$LINENO: WARNING: * The glibc headers on this machine have a serious bug *" >&5
20565 echo "$as_me: WARNING: * The glibc headers on this machine have a serious bug *" >&2;}
20566 { echo "$as_me:$LINENO: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&5
20567 echo "$as_me: WARNING: * in /usr/include/bits/mathinline.h This bug affects *" >&2;}
20568 { echo "$as_me:$LINENO: WARNING: * all floating point code, not just Ogg, built on this *" >&5
20569 echo "$as_me: WARNING: * all floating point code, not just Ogg, built on this *" >&2;}
20570 { echo "$as_me:$LINENO: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&5
20571 echo "$as_me: WARNING: * machine. Upgrading to glibc 2.1.3 is strongly urged *" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: * to correct the problem. Note that upgrading glibc *" >&5
20573 echo "$as_me: WARNING: * to correct the problem. Note that upgrading glibc *" >&2;}
20574 { echo "$as_me:$LINENO: WARNING: * will not fix any previously built programs; this is *" >&5
20575 echo "$as_me: WARNING: * will not fix any previously built programs; this is *" >&2;}
20576 { echo "$as_me:$LINENO: WARNING: * a compile-time time bug. *" >&5
20577 echo "$as_me: WARNING: * a compile-time time bug. *" >&2;}
20578 { echo "$as_me:$LINENO: WARNING: * To work around the problem for this build of Ogg, *" >&5
20579 echo "$as_me: WARNING: * To work around the problem for this build of Ogg, *" >&2;}
20580 { echo "$as_me:$LINENO: WARNING: * autoconf is disabling all math inlining. This will *" >&5
20581 echo "$as_me: WARNING: * autoconf is disabling all math inlining. This will *" >&2;}
20582 { echo "$as_me:$LINENO: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&5
20583 echo "$as_me: WARNING: * hurt Ogg performace but is necessary for an Ogg that *" >&2;}
20584 { echo "$as_me:$LINENO: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&5
20585 echo "$as_me: WARNING: * will actually work. Once glibc is upgraded, rerun *" >&2;}
20586 { echo "$as_me:$LINENO: WARNING: * configure and make to build with inlining. *" >&5
20587 echo "$as_me: WARNING: * configure and make to build with inlining. *" >&2;}
20588 { echo "$as_me:$LINENO: WARNING: ********************************************************" >&5
20589 echo "$as_me: WARNING: ********************************************************" >&2;}
20590 { echo "$as_me:$LINENO: WARNING: " >&5
20591 echo "$as_me: WARNING: " >&2;}
20593 CFLAGS=${OPT}" -D__NO_MATH_INLINES"
20594 PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
20595 fi;;
20596 powerpc-*-linux*)
20597 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
20598 CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"
20599 PROFILE="-pg -g -O3 -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT";;
20600 *-*-linux*)
20601 DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
20602 CFLAGS="-O20 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char"
20603 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
20604 sparc-sun-*)
20605 sparc_cpu=""
20606 { echo "$as_me:$LINENO: checking if gcc supports -mv8" >&5
20607 echo $ECHO_N "checking if gcc supports -mv8... $ECHO_C" >&6; }
20608 old_cflags="$CFLAGS"
20609 CFLAGS="$CFLAGS -mv8"
20610 cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h. */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20618 main ()
20620 return 0;
20622 return 0;
20624 _ACEOF
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_compile") 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest.$ac_objext; then
20643 { echo "$as_me:$LINENO: result: yes" >&5
20644 echo "${ECHO_T}yes" >&6; }
20645 sparc_cpu="-mv8"
20647 else
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655 CFLAGS="$old_cflags"
20656 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
20657 CFLAGS="-O20 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
20658 PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
20659 *-*-darwin*)
20660 DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
20661 CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
20662 PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
20663 *-*-os2*)
20664 # Use -W instead of -Wextra because gcc on OS/2 is an old version.
20665 DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
20666 CFLAGS="-O20 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
20667 PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
20669 DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
20670 CFLAGS="-O20 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
20671 PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
20672 esac
20674 { echo "$as_me:$LINENO: checking if $CC accepts -Wdeclaration-after-statement" >&5
20675 echo $ECHO_N "checking if $CC accepts -Wdeclaration-after-statement... $ECHO_C" >&6; }
20676 ac_add_cflags__old_cflags="$CFLAGS"
20677 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 #include <stdio.h>
20686 main ()
20688 puts("Hello, World!"); return 0;
20690 return 0;
20692 _ACEOF
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (ac_try="$ac_link"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_link") 2>conftest.er1
20701 ac_status=$?
20702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } && {
20707 test -z "$ac_c_werror_flag" ||
20708 test ! -s conftest.err
20709 } && test -s conftest$ac_exeext &&
20710 $as_test_x conftest$ac_exeext; then
20711 { echo "$as_me:$LINENO: result: yes" >&5
20712 echo "${ECHO_T}yes" >&6; }
20713 else
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20717 { echo "$as_me:$LINENO: result: no" >&5
20718 echo "${ECHO_T}no" >&6; }
20719 CFLAGS="$ac_add_cflags__old_cflags"
20722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20723 conftest$ac_exeext conftest.$ac_ext
20726 CFLAGS="$CFLAGS $cflags_save"
20729 if test "${ac_cv_header_memory_h+set}" = set; then
20730 { echo "$as_me:$LINENO: checking for memory.h" >&5
20731 echo $ECHO_N "checking for memory.h... $ECHO_C" >&6; }
20732 if test "${ac_cv_header_memory_h+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 { echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
20736 echo "${ECHO_T}$ac_cv_header_memory_h" >&6; }
20737 else
20738 # Is the header compilable?
20739 { echo "$as_me:$LINENO: checking memory.h usability" >&5
20740 echo $ECHO_N "checking memory.h usability... $ECHO_C" >&6; }
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h. */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 $ac_includes_default
20748 #include <memory.h>
20749 _ACEOF
20750 rm -f conftest.$ac_objext
20751 if { (ac_try="$ac_compile"
20752 case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_compile") 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } && {
20764 test -z "$ac_c_werror_flag" ||
20765 test ! -s conftest.err
20766 } && test -s conftest.$ac_objext; then
20767 ac_header_compiler=yes
20768 else
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20772 ac_header_compiler=no
20775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777 echo "${ECHO_T}$ac_header_compiler" >&6; }
20779 # Is the header present?
20780 { echo "$as_me:$LINENO: checking memory.h presence" >&5
20781 echo $ECHO_N "checking memory.h presence... $ECHO_C" >&6; }
20782 cat >conftest.$ac_ext <<_ACEOF
20783 /* confdefs.h. */
20784 _ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 #include <memory.h>
20789 _ACEOF
20790 if { (ac_try="$ac_cpp conftest.$ac_ext"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20794 esac
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } >/dev/null && {
20803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 }; then
20806 ac_header_preproc=yes
20807 else
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_header_preproc=no
20814 rm -f conftest.err conftest.$ac_ext
20815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20816 echo "${ECHO_T}$ac_header_preproc" >&6; }
20818 # So? What about this header?
20819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20820 yes:no: )
20821 { echo "$as_me:$LINENO: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&5
20822 echo "$as_me: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the compiler's result" >&5
20824 echo "$as_me: WARNING: memory.h: proceeding with the compiler's result" >&2;}
20825 ac_header_preproc=yes
20827 no:yes:* )
20828 { echo "$as_me:$LINENO: WARNING: memory.h: present but cannot be compiled" >&5
20829 echo "$as_me: WARNING: memory.h: present but cannot be compiled" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: memory.h: check for missing prerequisite headers?" >&5
20831 echo "$as_me: WARNING: memory.h: check for missing prerequisite headers?" >&2;}
20832 { echo "$as_me:$LINENO: WARNING: memory.h: see the Autoconf documentation" >&5
20833 echo "$as_me: WARNING: memory.h: see the Autoconf documentation" >&2;}
20834 { echo "$as_me:$LINENO: WARNING: memory.h: section \"Present But Cannot Be Compiled\"" >&5
20835 echo "$as_me: WARNING: memory.h: section \"Present But Cannot Be Compiled\"" >&2;}
20836 { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the preprocessor's result" >&5
20837 echo "$as_me: WARNING: memory.h: proceeding with the preprocessor's result" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: memory.h: in the future, the compiler will take precedence" >&5
20839 echo "$as_me: WARNING: memory.h: in the future, the compiler will take precedence" >&2;}
20840 ( cat <<\_ASBOX
20841 ## ---------------------------------- ##
20842 ## Report this to vorbis-dev@xiph.org ##
20843 ## ---------------------------------- ##
20844 _ASBOX
20845 ) | sed "s/^/$as_me: WARNING: /" >&2
20847 esac
20848 { echo "$as_me:$LINENO: checking for memory.h" >&5
20849 echo $ECHO_N "checking for memory.h... $ECHO_C" >&6; }
20850 if test "${ac_cv_header_memory_h+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853 ac_cv_header_memory_h=$ac_header_preproc
20855 { echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5
20856 echo "${ECHO_T}$ac_cv_header_memory_h" >&6; }
20859 if test $ac_cv_header_memory_h = yes; then
20860 CFLAGS="$CFLAGS -DUSE_MEMORY_H"
20861 else
20870 { echo "$as_me:$LINENO: checking for cos in -lm" >&5
20871 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
20872 if test "${ac_cv_lib_m_cos+set}" = set; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
20874 else
20875 ac_check_lib_save_LIBS=$LIBS
20876 LIBS="-lm $LIBS"
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h. */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20884 /* Override any GCC internal prototype to avoid an error.
20885 Use char because int might match the return type of a GCC
20886 builtin and then its argument prototype would still apply. */
20887 #ifdef __cplusplus
20888 extern "C"
20889 #endif
20890 char cos ();
20892 main ()
20894 return cos ();
20896 return 0;
20898 _ACEOF
20899 rm -f conftest.$ac_objext conftest$ac_exeext
20900 if { (ac_try="$ac_link"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_link") 2>conftest.er1
20907 ac_status=$?
20908 grep -v '^ *+' conftest.er1 >conftest.err
20909 rm -f conftest.er1
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } && {
20913 test -z "$ac_c_werror_flag" ||
20914 test ! -s conftest.err
20915 } && test -s conftest$ac_exeext &&
20916 $as_test_x conftest$ac_exeext; then
20917 ac_cv_lib_m_cos=yes
20918 else
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 ac_cv_lib_m_cos=no
20925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20926 conftest$ac_exeext conftest.$ac_ext
20927 LIBS=$ac_check_lib_save_LIBS
20929 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20930 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
20931 if test $ac_cv_lib_m_cos = yes; then
20932 VORBIS_LIBS="-lm"
20933 else
20934 VORBIS_LIBS=""
20937 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20938 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20939 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942 ac_check_lib_save_LIBS=$LIBS
20943 LIBS="-lpthread $LIBS"
20944 cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h. */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20951 /* Override any GCC internal prototype to avoid an error.
20952 Use char because int might match the return type of a GCC
20953 builtin and then its argument prototype would still apply. */
20954 #ifdef __cplusplus
20955 extern "C"
20956 #endif
20957 char pthread_create ();
20959 main ()
20961 return pthread_create ();
20963 return 0;
20965 _ACEOF
20966 rm -f conftest.$ac_objext conftest$ac_exeext
20967 if { (ac_try="$ac_link"
20968 case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_link") 2>conftest.er1
20974 ac_status=$?
20975 grep -v '^ *+' conftest.er1 >conftest.err
20976 rm -f conftest.er1
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } && {
20980 test -z "$ac_c_werror_flag" ||
20981 test ! -s conftest.err
20982 } && test -s conftest$ac_exeext &&
20983 $as_test_x conftest$ac_exeext; then
20984 ac_cv_lib_pthread_pthread_create=yes
20985 else
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_cv_lib_pthread_pthread_create=no
20992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20993 conftest$ac_exeext conftest.$ac_ext
20994 LIBS=$ac_check_lib_save_LIBS
20996 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20997 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20998 if test $ac_cv_lib_pthread_pthread_create = yes; then
20999 pthread_lib="-lpthread"
21000 else
21007 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21008 if test -n "$ac_tool_prefix"; then
21009 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21010 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21013 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 else
21016 case $PKG_CONFIG in
21017 [\\/]* | ?:[\\/]*)
21018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21022 for as_dir in $PATH
21024 IFS=$as_save_IFS
21025 test -z "$as_dir" && as_dir=.
21026 for ac_exec_ext in '' $ac_executable_extensions; do
21027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21028 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21030 break 2
21032 done
21033 done
21034 IFS=$as_save_IFS
21037 esac
21039 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21040 if test -n "$PKG_CONFIG"; then
21041 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21042 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21043 else
21044 { echo "$as_me:$LINENO: result: no" >&5
21045 echo "${ECHO_T}no" >&6; }
21050 if test -z "$ac_cv_path_PKG_CONFIG"; then
21051 ac_pt_PKG_CONFIG=$PKG_CONFIG
21052 # Extract the first word of "pkg-config", so it can be a program name with args.
21053 set dummy pkg-config; ac_word=$2
21054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21056 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059 case $ac_pt_PKG_CONFIG in
21060 [\\/]* | ?:[\\/]*)
21061 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21065 for as_dir in $PATH
21067 IFS=$as_save_IFS
21068 test -z "$as_dir" && as_dir=.
21069 for ac_exec_ext in '' $ac_executable_extensions; do
21070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21071 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21073 break 2
21075 done
21076 done
21077 IFS=$as_save_IFS
21080 esac
21082 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21083 if test -n "$ac_pt_PKG_CONFIG"; then
21084 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21085 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21086 else
21087 { echo "$as_me:$LINENO: result: no" >&5
21088 echo "${ECHO_T}no" >&6; }
21091 if test "x$ac_pt_PKG_CONFIG" = x; then
21092 PKG_CONFIG=""
21093 else
21094 case $cross_compiling:$ac_tool_warned in
21095 yes:)
21096 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21097 whose name does not start with the host triplet. If you think this
21098 configuration is useful to you, please write to autoconf@gnu.org." >&5
21099 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21100 whose name does not start with the host triplet. If you think this
21101 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21102 ac_tool_warned=yes ;;
21103 esac
21104 PKG_CONFIG=$ac_pt_PKG_CONFIG
21106 else
21107 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21111 if test -n "$PKG_CONFIG"; then
21112 _pkg_min_version=0.9.0
21113 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21114 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21115 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21116 { echo "$as_me:$LINENO: result: yes" >&5
21117 echo "${ECHO_T}yes" >&6; }
21118 else
21119 { echo "$as_me:$LINENO: result: no" >&5
21120 echo "${ECHO_T}no" >&6; }
21121 PKG_CONFIG=""
21126 HAVE_OGG=no
21127 if test "x$PKG_CONFIG" != "x"
21128 then
21130 pkg_failed=no
21131 { echo "$as_me:$LINENO: checking for OGG" >&5
21132 echo $ECHO_N "checking for OGG... $ECHO_C" >&6; }
21134 if test -n "$PKG_CONFIG"; then
21135 if test -n "$OGG_CFLAGS"; then
21136 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
21137 else
21138 if test -n "$PKG_CONFIG" && \
21139 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\"") >&5
21140 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; then
21144 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0" 2>/dev/null`
21145 else
21146 pkg_failed=yes
21149 else
21150 pkg_failed=untried
21152 if test -n "$PKG_CONFIG"; then
21153 if test -n "$OGG_LIBS"; then
21154 pkg_cv_OGG_LIBS="$OGG_LIBS"
21155 else
21156 if test -n "$PKG_CONFIG" && \
21157 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0\"") >&5
21158 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0") 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; then
21162 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0" 2>/dev/null`
21163 else
21164 pkg_failed=yes
21167 else
21168 pkg_failed=untried
21173 if test $pkg_failed = yes; then
21175 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21176 _pkg_short_errors_supported=yes
21177 else
21178 _pkg_short_errors_supported=no
21180 if test $_pkg_short_errors_supported = yes; then
21181 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.0"`
21182 else
21183 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.0"`
21185 # Put the nasty error message in config.log where it belongs
21186 echo "$OGG_PKG_ERRORS" >&5
21188 { echo "$as_me:$LINENO: result: no" >&5
21189 echo "${ECHO_T}no" >&6; }
21190 HAVE_OGG=no
21191 elif test $pkg_failed = untried; then
21192 HAVE_OGG=no
21193 else
21194 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
21195 OGG_LIBS=$pkg_cv_OGG_LIBS
21196 { echo "$as_me:$LINENO: result: yes" >&5
21197 echo "${ECHO_T}yes" >&6; }
21198 HAVE_OGG=yes
21201 if test "x$HAVE_OGG" = "xno"
21202 then
21204 # Check whether --with-ogg was given.
21205 if test "${with_ogg+set}" = set; then
21206 withval=$with_ogg; ogg_prefix="$withval"
21207 else
21208 ogg_prefix=""
21212 # Check whether --with-ogg-libraries was given.
21213 if test "${with_ogg_libraries+set}" = set; then
21214 withval=$with_ogg_libraries; ogg_libraries="$withval"
21215 else
21216 ogg_libraries=""
21220 # Check whether --with-ogg-includes was given.
21221 if test "${with_ogg_includes+set}" = set; then
21222 withval=$with_ogg_includes; ogg_includes="$withval"
21223 else
21224 ogg_includes=""
21227 # Check whether --enable-oggtest was given.
21228 if test "${enable_oggtest+set}" = set; then
21229 enableval=$enable_oggtest;
21230 else
21231 enable_oggtest=yes
21235 if test "x$ogg_libraries" != "x" ; then
21236 OGG_LIBS="-L$ogg_libraries"
21237 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
21238 OGG_LIBS=""
21239 elif test "x$ogg_prefix" != "x" ; then
21240 OGG_LIBS="-L$ogg_prefix/lib"
21241 elif test "x$prefix" != "xNONE" ; then
21242 OGG_LIBS="-L$prefix/lib"
21245 if test "x$ogg_prefix" != "xno" ; then
21246 OGG_LIBS="$OGG_LIBS -logg"
21249 if test "x$ogg_includes" != "x" ; then
21250 OGG_CFLAGS="-I$ogg_includes"
21251 elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
21252 OGG_CFLAGS=""
21253 elif test "x$ogg_prefix" != "x" ; then
21254 OGG_CFLAGS="-I$ogg_prefix/include"
21255 elif test "x$prefix" != "xNONE"; then
21256 OGG_CFLAGS="-I$prefix/include"
21259 { echo "$as_me:$LINENO: checking for Ogg" >&5
21260 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
21261 if test "x$ogg_prefix" = "xno" ; then
21262 no_ogg="disabled"
21263 enable_oggtest="no"
21264 else
21265 no_ogg=""
21269 if test "x$enable_oggtest" = "xyes" ; then
21270 ac_save_CFLAGS="$CFLAGS"
21271 ac_save_LIBS="$LIBS"
21272 CFLAGS="$CFLAGS $OGG_CFLAGS"
21273 LIBS="$LIBS $OGG_LIBS"
21274 rm -f conf.oggtest
21275 if test "$cross_compiling" = yes; then
21276 echo $ac_n "cross compiling; assumed OK... $ac_c"
21277 else
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21285 #include <stdio.h>
21286 #include <stdlib.h>
21287 #include <string.h>
21288 #include <ogg/ogg.h>
21290 int main ()
21292 system("touch conf.oggtest");
21293 return 0;
21297 _ACEOF
21298 rm -f conftest$ac_exeext
21299 if { (ac_try="$ac_link"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_link") 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21309 { (case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21312 esac
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314 (eval "$ac_try") 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; }; then
21319 else
21320 echo "$as_me: program exited with status $ac_status" >&5
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ( exit $ac_status )
21325 no_ogg=yes
21327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21331 CFLAGS="$ac_save_CFLAGS"
21332 LIBS="$ac_save_LIBS"
21335 if test "x$no_ogg" = "xdisabled" ; then
21336 { echo "$as_me:$LINENO: result: no" >&5
21337 echo "${ECHO_T}no" >&6; }
21338 { { echo "$as_me:$LINENO: error: must have Ogg installed!" >&5
21339 echo "$as_me: error: must have Ogg installed!" >&2;}
21340 { (exit 1); exit 1; }; }
21341 elif test "x$no_ogg" = "x" ; then
21342 { echo "$as_me:$LINENO: result: yes" >&5
21343 echo "${ECHO_T}yes" >&6; }
21345 else
21346 { echo "$as_me:$LINENO: result: no" >&5
21347 echo "${ECHO_T}no" >&6; }
21348 if test -f conf.oggtest ; then
21350 else
21351 echo "*** Could not run Ogg test program, checking why..."
21352 CFLAGS="$CFLAGS $OGG_CFLAGS"
21353 LIBS="$LIBS $OGG_LIBS"
21354 cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h. */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21361 #include <stdio.h>
21362 #include <ogg/ogg.h>
21365 main ()
21367 return 0;
21369 return 0;
21371 _ACEOF
21372 rm -f conftest.$ac_objext conftest$ac_exeext
21373 if { (ac_try="$ac_link"
21374 case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21377 esac
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_link") 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest$ac_exeext &&
21389 $as_test_x conftest$ac_exeext; then
21390 echo "*** The test program compiled, but did not run. This usually means"
21391 echo "*** that the run-time linker is not finding Ogg or finding the wrong"
21392 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
21393 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21394 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21395 echo "*** is required on your system"
21396 echo "***"
21397 echo "*** If you have an old version installed, it is best to remove it, although"
21398 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21399 else
21400 echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21403 echo "*** The test program failed to compile or link. See the file config.log for the"
21404 echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
21405 echo "*** or that you have moved Ogg since it was installed."
21408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21409 conftest$ac_exeext conftest.$ac_ext
21410 CFLAGS="$ac_save_CFLAGS"
21411 LIBS="$ac_save_LIBS"
21413 OGG_CFLAGS=""
21414 OGG_LIBS=""
21415 { { echo "$as_me:$LINENO: error: must have Ogg installed!" >&5
21416 echo "$as_me: error: must have Ogg installed!" >&2;}
21417 { (exit 1); exit 1; }; }
21421 rm -f conf.oggtest
21423 libs_save=$LIBS
21424 LIBS="$OGG_LIBS $VORBIS_LIBS"
21425 { echo "$as_me:$LINENO: checking for oggpack_writealign" >&5
21426 echo $ECHO_N "checking for oggpack_writealign... $ECHO_C" >&6; }
21427 if test "${ac_cv_func_oggpack_writealign+set}" = set; then
21428 echo $ECHO_N "(cached) $ECHO_C" >&6
21429 else
21430 cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h. */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21436 /* Define oggpack_writealign to an innocuous variant, in case <limits.h> declares oggpack_writealign.
21437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21438 #define oggpack_writealign innocuous_oggpack_writealign
21440 /* System header to define __stub macros and hopefully few prototypes,
21441 which can conflict with char oggpack_writealign (); below.
21442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21443 <limits.h> exists even on freestanding compilers. */
21445 #ifdef __STDC__
21446 # include <limits.h>
21447 #else
21448 # include <assert.h>
21449 #endif
21451 #undef oggpack_writealign
21453 /* Override any GCC internal prototype to avoid an error.
21454 Use char because int might match the return type of a GCC
21455 builtin and then its argument prototype would still apply. */
21456 #ifdef __cplusplus
21457 extern "C"
21458 #endif
21459 char oggpack_writealign ();
21460 /* The GNU C library defines this for functions which it implements
21461 to always fail with ENOSYS. Some functions are actually named
21462 something starting with __ and the normal name is an alias. */
21463 #if defined __stub_oggpack_writealign || defined __stub___oggpack_writealign
21464 choke me
21465 #endif
21468 main ()
21470 return oggpack_writealign ();
21472 return 0;
21474 _ACEOF
21475 rm -f conftest.$ac_objext conftest$ac_exeext
21476 if { (ac_try="$ac_link"
21477 case "(($ac_try" in
21478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479 *) ac_try_echo=$ac_try;;
21480 esac
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482 (eval "$ac_link") 2>conftest.er1
21483 ac_status=$?
21484 grep -v '^ *+' conftest.er1 >conftest.err
21485 rm -f conftest.er1
21486 cat conftest.err >&5
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); } && {
21489 test -z "$ac_c_werror_flag" ||
21490 test ! -s conftest.err
21491 } && test -s conftest$ac_exeext &&
21492 $as_test_x conftest$ac_exeext; then
21493 ac_cv_func_oggpack_writealign=yes
21494 else
21495 echo "$as_me: failed program was:" >&5
21496 sed 's/^/| /' conftest.$ac_ext >&5
21498 ac_cv_func_oggpack_writealign=no
21501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21502 conftest$ac_exeext conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $ac_cv_func_oggpack_writealign" >&5
21505 echo "${ECHO_T}$ac_cv_func_oggpack_writealign" >&6; }
21506 if test $ac_cv_func_oggpack_writealign = yes; then
21508 else
21509 { { echo "$as_me:$LINENO: error: Ogg >= 1.0 required !" >&5
21510 echo "$as_me: error: Ogg >= 1.0 required !" >&2;}
21511 { (exit 1); exit 1; }; }
21514 LIBS=$libs_save
21518 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21519 # for constant arguments. Useless!
21520 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
21521 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21522 if test "${ac_cv_working_alloca_h+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21524 else
21525 cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h. */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21531 #include <alloca.h>
21533 main ()
21535 char *p = (char *) alloca (2 * sizeof (int));
21536 if (p) return 0;
21538 return 0;
21540 _ACEOF
21541 rm -f conftest.$ac_objext conftest$ac_exeext
21542 if { (ac_try="$ac_link"
21543 case "(($ac_try" in
21544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545 *) ac_try_echo=$ac_try;;
21546 esac
21547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548 (eval "$ac_link") 2>conftest.er1
21549 ac_status=$?
21550 grep -v '^ *+' conftest.er1 >conftest.err
21551 rm -f conftest.er1
21552 cat conftest.err >&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } && {
21555 test -z "$ac_c_werror_flag" ||
21556 test ! -s conftest.err
21557 } && test -s conftest$ac_exeext &&
21558 $as_test_x conftest$ac_exeext; then
21559 ac_cv_working_alloca_h=yes
21560 else
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 ac_cv_working_alloca_h=no
21567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21568 conftest$ac_exeext conftest.$ac_ext
21570 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21571 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
21572 if test $ac_cv_working_alloca_h = yes; then
21574 cat >>confdefs.h <<\_ACEOF
21575 #define HAVE_ALLOCA_H 1
21576 _ACEOF
21580 { echo "$as_me:$LINENO: checking for alloca" >&5
21581 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21582 if test "${ac_cv_func_alloca_works+set}" = set; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21584 else
21585 cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h. */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 #ifdef __GNUC__
21592 # define alloca __builtin_alloca
21593 #else
21594 # ifdef _MSC_VER
21595 # include <malloc.h>
21596 # define alloca _alloca
21597 # else
21598 # ifdef HAVE_ALLOCA_H
21599 # include <alloca.h>
21600 # else
21601 # ifdef _AIX
21602 #pragma alloca
21603 # else
21604 # ifndef alloca /* predefined by HP cc +Olibcalls */
21605 char *alloca ();
21606 # endif
21607 # endif
21608 # endif
21609 # endif
21610 #endif
21613 main ()
21615 char *p = (char *) alloca (1);
21616 if (p) return 0;
21618 return 0;
21620 _ACEOF
21621 rm -f conftest.$ac_objext conftest$ac_exeext
21622 if { (ac_try="$ac_link"
21623 case "(($ac_try" in
21624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21625 *) ac_try_echo=$ac_try;;
21626 esac
21627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21628 (eval "$ac_link") 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } && {
21635 test -z "$ac_c_werror_flag" ||
21636 test ! -s conftest.err
21637 } && test -s conftest$ac_exeext &&
21638 $as_test_x conftest$ac_exeext; then
21639 ac_cv_func_alloca_works=yes
21640 else
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ac_cv_func_alloca_works=no
21647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21648 conftest$ac_exeext conftest.$ac_ext
21650 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21651 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
21653 if test $ac_cv_func_alloca_works = yes; then
21655 cat >>confdefs.h <<\_ACEOF
21656 #define HAVE_ALLOCA 1
21657 _ACEOF
21659 else
21660 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21661 # that cause trouble. Some versions do not even contain alloca or
21662 # contain a buggy version. If you still want to use their alloca,
21663 # use ar to extract alloca.o from them instead of compiling alloca.c.
21665 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21667 cat >>confdefs.h <<\_ACEOF
21668 #define C_ALLOCA 1
21669 _ACEOF
21672 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21673 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
21674 if test "${ac_cv_os_cray+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 else
21677 cat >conftest.$ac_ext <<_ACEOF
21678 /* confdefs.h. */
21679 _ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h. */
21683 #if defined CRAY && ! defined CRAY2
21684 webecray
21685 #else
21686 wenotbecray
21687 #endif
21689 _ACEOF
21690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21691 $EGREP "webecray" >/dev/null 2>&1; then
21692 ac_cv_os_cray=yes
21693 else
21694 ac_cv_os_cray=no
21696 rm -f conftest*
21699 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21700 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
21701 if test $ac_cv_os_cray = yes; then
21702 for ac_func in _getb67 GETB67 getb67; do
21703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21708 else
21709 cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h. */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21717 #define $ac_func innocuous_$ac_func
21719 /* System header to define __stub macros and hopefully few prototypes,
21720 which can conflict with char $ac_func (); below.
21721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21722 <limits.h> exists even on freestanding compilers. */
21724 #ifdef __STDC__
21725 # include <limits.h>
21726 #else
21727 # include <assert.h>
21728 #endif
21730 #undef $ac_func
21732 /* Override any GCC internal prototype to avoid an error.
21733 Use char because int might match the return type of a GCC
21734 builtin and then its argument prototype would still apply. */
21735 #ifdef __cplusplus
21736 extern "C"
21737 #endif
21738 char $ac_func ();
21739 /* The GNU C library defines this for functions which it implements
21740 to always fail with ENOSYS. Some functions are actually named
21741 something starting with __ and the normal name is an alias. */
21742 #if defined __stub_$ac_func || defined __stub___$ac_func
21743 choke me
21744 #endif
21747 main ()
21749 return $ac_func ();
21751 return 0;
21753 _ACEOF
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (ac_try="$ac_link"
21756 case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21759 esac
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_link") 2>conftest.er1
21762 ac_status=$?
21763 grep -v '^ *+' conftest.er1 >conftest.err
21764 rm -f conftest.er1
21765 cat conftest.err >&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } && {
21768 test -z "$ac_c_werror_flag" ||
21769 test ! -s conftest.err
21770 } && test -s conftest$ac_exeext &&
21771 $as_test_x conftest$ac_exeext; then
21772 eval "$as_ac_var=yes"
21773 else
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 eval "$as_ac_var=no"
21780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21781 conftest$ac_exeext conftest.$ac_ext
21783 ac_res=`eval echo '${'$as_ac_var'}'`
21784 { echo "$as_me:$LINENO: result: $ac_res" >&5
21785 echo "${ECHO_T}$ac_res" >&6; }
21786 if test `eval echo '${'$as_ac_var'}'` = yes; then
21788 cat >>confdefs.h <<_ACEOF
21789 #define CRAY_STACKSEG_END $ac_func
21790 _ACEOF
21792 break
21795 done
21798 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21799 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
21800 if test "${ac_cv_c_stack_direction+set}" = set; then
21801 echo $ECHO_N "(cached) $ECHO_C" >&6
21802 else
21803 if test "$cross_compiling" = yes; then
21804 ac_cv_c_stack_direction=0
21805 else
21806 cat >conftest.$ac_ext <<_ACEOF
21807 /* confdefs.h. */
21808 _ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h. */
21812 $ac_includes_default
21814 find_stack_direction ()
21816 static char *addr = 0;
21817 auto char dummy;
21818 if (addr == 0)
21820 addr = &dummy;
21821 return find_stack_direction ();
21823 else
21824 return (&dummy > addr) ? 1 : -1;
21828 main ()
21830 return find_stack_direction () < 0;
21832 _ACEOF
21833 rm -f conftest$ac_exeext
21834 if { (ac_try="$ac_link"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_link") 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844 { (case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_try") 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 ac_cv_c_stack_direction=1
21854 else
21855 echo "$as_me: program exited with status $ac_status" >&5
21856 echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21859 ( exit $ac_status )
21860 ac_cv_c_stack_direction=-1
21862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21867 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21868 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
21870 cat >>confdefs.h <<_ACEOF
21871 #define STACK_DIRECTION $ac_cv_c_stack_direction
21872 _ACEOF
21877 { echo "$as_me:$LINENO: checking for working memcmp" >&5
21878 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
21879 if test "${ac_cv_func_memcmp_working+set}" = set; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882 if test "$cross_compiling" = yes; then
21883 ac_cv_func_memcmp_working=no
21884 else
21885 cat >conftest.$ac_ext <<_ACEOF
21886 /* confdefs.h. */
21887 _ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21891 $ac_includes_default
21893 main ()
21896 /* Some versions of memcmp are not 8-bit clean. */
21897 char c0 = '\100', c1 = '\200', c2 = '\201';
21898 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21899 return 1;
21901 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21902 or more and with at least one buffer not starting on a 4-byte boundary.
21903 William Lewis provided this test program. */
21905 char foo[21];
21906 char bar[21];
21907 int i;
21908 for (i = 0; i < 4; i++)
21910 char *a = foo + i;
21911 char *b = bar + i;
21912 strcpy (a, "--------01111111");
21913 strcpy (b, "--------10000000");
21914 if (memcmp (a, b, 16) >= 0)
21915 return 1;
21917 return 0;
21921 return 0;
21923 _ACEOF
21924 rm -f conftest$ac_exeext
21925 if { (ac_try="$ac_link"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21929 esac
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931 (eval "$ac_link") 2>&5
21932 ac_status=$?
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21935 { (case "(($ac_try" in
21936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937 *) ac_try_echo=$ac_try;;
21938 esac
21939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21940 (eval "$ac_try") 2>&5
21941 ac_status=$?
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; }; then
21944 ac_cv_func_memcmp_working=yes
21945 else
21946 echo "$as_me: program exited with status $ac_status" >&5
21947 echo "$as_me: failed program was:" >&5
21948 sed 's/^/| /' conftest.$ac_ext >&5
21950 ( exit $ac_status )
21951 ac_cv_func_memcmp_working=no
21953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21958 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21959 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21960 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21961 *" memcmp.$ac_objext "* ) ;;
21962 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21964 esac
21976 ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile test/Makefile vq/Makefile libvorbis.spec vorbis.pc vorbisenc.pc vorbisfile.pc vorbis-uninstalled.pc vorbisenc-uninstalled.pc vorbisfile-uninstalled.pc"
21978 cat >confcache <<\_ACEOF
21979 # This file is a shell script that caches the results of configure
21980 # tests run on this system so they can be shared between configure
21981 # scripts and configure runs, see configure's option --config-cache.
21982 # It is not useful on other systems. If it contains results you don't
21983 # want to keep, you may remove or edit it.
21985 # config.status only pays attention to the cache file if you give it
21986 # the --recheck option to rerun configure.
21988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21990 # following values.
21992 _ACEOF
21994 # The following way of writing the cache mishandles newlines in values,
21995 # but we know of no workaround that is simple, portable, and efficient.
21996 # So, we kill variables containing newlines.
21997 # Ultrix sh set writes to stderr and can't be redirected directly,
21998 # and sets the high bit in the cache file unless we assign to the vars.
22000 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22001 eval ac_val=\$$ac_var
22002 case $ac_val in #(
22003 *${as_nl}*)
22004 case $ac_var in #(
22005 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22006 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22007 esac
22008 case $ac_var in #(
22009 _ | IFS | as_nl) ;; #(
22010 *) $as_unset $ac_var ;;
22011 esac ;;
22012 esac
22013 done
22015 (set) 2>&1 |
22016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22017 *${as_nl}ac_space=\ *)
22018 # `set' does not quote correctly, so add quotes (double-quote
22019 # substitution turns \\\\ into \\, and sed turns \\ into \).
22020 sed -n \
22021 "s/'/'\\\\''/g;
22022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22023 ;; #(
22025 # `set' quotes correctly as required by POSIX, so do not add quotes.
22026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22028 esac |
22029 sort
22031 sed '
22032 /^ac_cv_env_/b end
22033 t clear
22034 :clear
22035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22036 t end
22037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22038 :end' >>confcache
22039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22040 if test -w "$cache_file"; then
22041 test "x$cache_file" != "x/dev/null" &&
22042 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22043 echo "$as_me: updating cache $cache_file" >&6;}
22044 cat confcache >$cache_file
22045 else
22046 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22047 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22050 rm -f confcache
22052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22053 # Let make expand exec_prefix.
22054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22056 DEFS=-DHAVE_CONFIG_H
22058 ac_libobjs=
22059 ac_ltlibobjs=
22060 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22061 # 1. Remove the extension, and $U if already installed.
22062 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22063 ac_i=`echo "$ac_i" | sed "$ac_script"`
22064 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22065 # will be set to the directory where LIBOBJS objects are built.
22066 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22067 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22068 done
22069 LIBOBJS=$ac_libobjs
22071 LTLIBOBJS=$ac_ltlibobjs
22074 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22075 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22076 Usually this means the macro was only invoked conditionally." >&5
22077 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22078 Usually this means the macro was only invoked conditionally." >&2;}
22079 { (exit 1); exit 1; }; }
22081 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22082 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22083 Usually this means the macro was only invoked conditionally." >&5
22084 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22085 Usually this means the macro was only invoked conditionally." >&2;}
22086 { (exit 1); exit 1; }; }
22088 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22089 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22090 Usually this means the macro was only invoked conditionally." >&5
22091 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22092 Usually this means the macro was only invoked conditionally." >&2;}
22093 { (exit 1); exit 1; }; }
22095 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
22096 { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
22097 Usually this means the macro was only invoked conditionally." >&5
22098 echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
22099 Usually this means the macro was only invoked conditionally." >&2;}
22100 { (exit 1); exit 1; }; }
22103 : ${CONFIG_STATUS=./config.status}
22104 ac_clean_files_save=$ac_clean_files
22105 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22106 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22107 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22108 cat >$CONFIG_STATUS <<_ACEOF
22109 #! $SHELL
22110 # Generated by $as_me.
22111 # Run this file to recreate the current configuration.
22112 # Compiler output produced by configure, useful for debugging
22113 # configure, is in config.log if it exists.
22115 debug=false
22116 ac_cs_recheck=false
22117 ac_cs_silent=false
22118 SHELL=\${CONFIG_SHELL-$SHELL}
22119 _ACEOF
22121 cat >>$CONFIG_STATUS <<\_ACEOF
22122 ## --------------------- ##
22123 ## M4sh Initialization. ##
22124 ## --------------------- ##
22126 # Be more Bourne compatible
22127 DUALCASE=1; export DUALCASE # for MKS sh
22128 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22129 emulate sh
22130 NULLCMD=:
22131 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22132 # is contrary to our usage. Disable this feature.
22133 alias -g '${1+"$@"}'='"$@"'
22134 setopt NO_GLOB_SUBST
22135 else
22136 case `(set -o) 2>/dev/null` in
22137 *posix*) set -o posix ;;
22138 esac
22145 # PATH needs CR
22146 # Avoid depending upon Character Ranges.
22147 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22148 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22149 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22150 as_cr_digits='0123456789'
22151 as_cr_alnum=$as_cr_Letters$as_cr_digits
22153 # The user is always right.
22154 if test "${PATH_SEPARATOR+set}" != set; then
22155 echo "#! /bin/sh" >conf$$.sh
22156 echo "exit 0" >>conf$$.sh
22157 chmod +x conf$$.sh
22158 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22159 PATH_SEPARATOR=';'
22160 else
22161 PATH_SEPARATOR=:
22163 rm -f conf$$.sh
22166 # Support unset when possible.
22167 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22168 as_unset=unset
22169 else
22170 as_unset=false
22174 # IFS
22175 # We need space, tab and new line, in precisely that order. Quoting is
22176 # there to prevent editors from complaining about space-tab.
22177 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22178 # splitting by setting IFS to empty value.)
22179 as_nl='
22181 IFS=" "" $as_nl"
22183 # Find who we are. Look in the path if we contain no directory separator.
22184 case $0 in
22185 *[\\/]* ) as_myself=$0 ;;
22186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22187 for as_dir in $PATH
22189 IFS=$as_save_IFS
22190 test -z "$as_dir" && as_dir=.
22191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22192 done
22193 IFS=$as_save_IFS
22196 esac
22197 # We did not find ourselves, most probably we were run as `sh COMMAND'
22198 # in which case we are not to be found in the path.
22199 if test "x$as_myself" = x; then
22200 as_myself=$0
22202 if test ! -f "$as_myself"; then
22203 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22204 { (exit 1); exit 1; }
22207 # Work around bugs in pre-3.0 UWIN ksh.
22208 for as_var in ENV MAIL MAILPATH
22209 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22210 done
22211 PS1='$ '
22212 PS2='> '
22213 PS4='+ '
22215 # NLS nuisances.
22216 for as_var in \
22217 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22218 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22219 LC_TELEPHONE LC_TIME
22221 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22222 eval $as_var=C; export $as_var
22223 else
22224 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22226 done
22228 # Required to use basename.
22229 if expr a : '\(a\)' >/dev/null 2>&1 &&
22230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22231 as_expr=expr
22232 else
22233 as_expr=false
22236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22237 as_basename=basename
22238 else
22239 as_basename=false
22243 # Name of the executable.
22244 as_me=`$as_basename -- "$0" ||
22245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22246 X"$0" : 'X\(//\)$' \| \
22247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22248 echo X/"$0" |
22249 sed '/^.*\/\([^/][^/]*\)\/*$/{
22250 s//\1/
22253 /^X\/\(\/\/\)$/{
22254 s//\1/
22257 /^X\/\(\/\).*/{
22258 s//\1/
22261 s/.*/./; q'`
22263 # CDPATH.
22264 $as_unset CDPATH
22268 as_lineno_1=$LINENO
22269 as_lineno_2=$LINENO
22270 test "x$as_lineno_1" != "x$as_lineno_2" &&
22271 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22273 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22274 # uniformly replaced by the line number. The first 'sed' inserts a
22275 # line-number line after each line using $LINENO; the second 'sed'
22276 # does the real work. The second script uses 'N' to pair each
22277 # line-number line with the line containing $LINENO, and appends
22278 # trailing '-' during substitution so that $LINENO is not a special
22279 # case at line end.
22280 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22281 # scripts with optimization help from Paolo Bonzini. Blame Lee
22282 # E. McMahon (1931-1989) for sed's syntax. :-)
22283 sed -n '
22285 /[$]LINENO/=
22286 ' <$as_myself |
22287 sed '
22288 s/[$]LINENO.*/&-/
22289 t lineno
22291 :lineno
22293 :loop
22294 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22295 t loop
22296 s/-\n.*//
22297 ' >$as_me.lineno &&
22298 chmod +x "$as_me.lineno" ||
22299 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22300 { (exit 1); exit 1; }; }
22302 # Don't try to exec as it changes $[0], causing all sort of problems
22303 # (the dirname of $[0] is not the place where we might find the
22304 # original and so on. Autoconf is especially sensitive to this).
22305 . "./$as_me.lineno"
22306 # Exit status is that of the last command.
22307 exit
22311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22312 as_dirname=dirname
22313 else
22314 as_dirname=false
22317 ECHO_C= ECHO_N= ECHO_T=
22318 case `echo -n x` in
22319 -n*)
22320 case `echo 'x\c'` in
22321 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22322 *) ECHO_C='\c';;
22323 esac;;
22325 ECHO_N='-n';;
22326 esac
22328 if expr a : '\(a\)' >/dev/null 2>&1 &&
22329 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22330 as_expr=expr
22331 else
22332 as_expr=false
22335 rm -f conf$$ conf$$.exe conf$$.file
22336 if test -d conf$$.dir; then
22337 rm -f conf$$.dir/conf$$.file
22338 else
22339 rm -f conf$$.dir
22340 mkdir conf$$.dir
22342 echo >conf$$.file
22343 if ln -s conf$$.file conf$$ 2>/dev/null; then
22344 as_ln_s='ln -s'
22345 # ... but there are two gotchas:
22346 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22347 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22348 # In both cases, we have to default to `cp -p'.
22349 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22350 as_ln_s='cp -p'
22351 elif ln conf$$.file conf$$ 2>/dev/null; then
22352 as_ln_s=ln
22353 else
22354 as_ln_s='cp -p'
22356 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22357 rmdir conf$$.dir 2>/dev/null
22359 if mkdir -p . 2>/dev/null; then
22360 as_mkdir_p=:
22361 else
22362 test -d ./-p && rmdir ./-p
22363 as_mkdir_p=false
22366 if test -x / >/dev/null 2>&1; then
22367 as_test_x='test -x'
22368 else
22369 if ls -dL / >/dev/null 2>&1; then
22370 as_ls_L_option=L
22371 else
22372 as_ls_L_option=
22374 as_test_x='
22375 eval sh -c '\''
22376 if test -d "$1"; then
22377 test -d "$1/.";
22378 else
22379 case $1 in
22380 -*)set "./$1";;
22381 esac;
22382 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22383 ???[sx]*):;;*)false;;esac;fi
22384 '\'' sh
22387 as_executable_p=$as_test_x
22389 # Sed expression to map a string onto a valid CPP name.
22390 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22392 # Sed expression to map a string onto a valid variable name.
22393 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22396 exec 6>&1
22398 # Save the log message, to keep $[0] and so on meaningful, and to
22399 # report actual input values of CONFIG_FILES etc. instead of their
22400 # values after options handling.
22401 ac_log="
22402 This file was extended by libvorbis $as_me 1.2.3, which was
22403 generated by GNU Autoconf 2.61. Invocation command line was
22405 CONFIG_FILES = $CONFIG_FILES
22406 CONFIG_HEADERS = $CONFIG_HEADERS
22407 CONFIG_LINKS = $CONFIG_LINKS
22408 CONFIG_COMMANDS = $CONFIG_COMMANDS
22409 $ $0 $@
22411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22414 _ACEOF
22416 cat >>$CONFIG_STATUS <<_ACEOF
22417 # Files that config.status was made for.
22418 config_files="$ac_config_files"
22419 config_headers="$ac_config_headers"
22420 config_commands="$ac_config_commands"
22422 _ACEOF
22424 cat >>$CONFIG_STATUS <<\_ACEOF
22425 ac_cs_usage="\
22426 \`$as_me' instantiates files from templates according to the
22427 current configuration.
22429 Usage: $0 [OPTIONS] [FILE]...
22431 -h, --help print this help, then exit
22432 -V, --version print version number and configuration settings, then exit
22433 -q, --quiet do not print progress messages
22434 -d, --debug don't remove temporary files
22435 --recheck update $as_me by reconfiguring in the same conditions
22436 --file=FILE[:TEMPLATE]
22437 instantiate the configuration file FILE
22438 --header=FILE[:TEMPLATE]
22439 instantiate the configuration header FILE
22441 Configuration files:
22442 $config_files
22444 Configuration headers:
22445 $config_headers
22447 Configuration commands:
22448 $config_commands
22450 Report bugs to <bug-autoconf@gnu.org>."
22452 _ACEOF
22453 cat >>$CONFIG_STATUS <<_ACEOF
22454 ac_cs_version="\\
22455 libvorbis config.status 1.2.3
22456 configured by $0, generated by GNU Autoconf 2.61,
22457 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22459 Copyright (C) 2006 Free Software Foundation, Inc.
22460 This config.status script is free software; the Free Software Foundation
22461 gives unlimited permission to copy, distribute and modify it."
22463 ac_pwd='$ac_pwd'
22464 srcdir='$srcdir'
22465 INSTALL='$INSTALL'
22466 MKDIR_P='$MKDIR_P'
22467 _ACEOF
22469 cat >>$CONFIG_STATUS <<\_ACEOF
22470 # If no file are specified by the user, then we need to provide default
22471 # value. By we need to know if files were specified by the user.
22472 ac_need_defaults=:
22473 while test $# != 0
22475 case $1 in
22476 --*=*)
22477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22478 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22479 ac_shift=:
22482 ac_option=$1
22483 ac_optarg=$2
22484 ac_shift=shift
22486 esac
22488 case $ac_option in
22489 # Handling of the options.
22490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22491 ac_cs_recheck=: ;;
22492 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22493 echo "$ac_cs_version"; exit ;;
22494 --debug | --debu | --deb | --de | --d | -d )
22495 debug=: ;;
22496 --file | --fil | --fi | --f )
22497 $ac_shift
22498 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22499 ac_need_defaults=false;;
22500 --header | --heade | --head | --hea )
22501 $ac_shift
22502 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22503 ac_need_defaults=false;;
22504 --he | --h)
22505 # Conflict between --help and --header
22506 { echo "$as_me: error: ambiguous option: $1
22507 Try \`$0 --help' for more information." >&2
22508 { (exit 1); exit 1; }; };;
22509 --help | --hel | -h )
22510 echo "$ac_cs_usage"; exit ;;
22511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22512 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22513 ac_cs_silent=: ;;
22515 # This is an error.
22516 -*) { echo "$as_me: error: unrecognized option: $1
22517 Try \`$0 --help' for more information." >&2
22518 { (exit 1); exit 1; }; } ;;
22520 *) ac_config_targets="$ac_config_targets $1"
22521 ac_need_defaults=false ;;
22523 esac
22524 shift
22525 done
22527 ac_configure_extra_args=
22529 if $ac_cs_silent; then
22530 exec 6>/dev/null
22531 ac_configure_extra_args="$ac_configure_extra_args --silent"
22534 _ACEOF
22535 cat >>$CONFIG_STATUS <<_ACEOF
22536 if \$ac_cs_recheck; then
22537 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22538 CONFIG_SHELL=$SHELL
22539 export CONFIG_SHELL
22540 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22543 _ACEOF
22544 cat >>$CONFIG_STATUS <<\_ACEOF
22545 exec 5>>config.log
22547 echo
22548 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22549 ## Running $as_me. ##
22550 _ASBOX
22551 echo "$ac_log"
22552 } >&5
22554 _ACEOF
22555 cat >>$CONFIG_STATUS <<_ACEOF
22557 # INIT-COMMANDS
22559 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22561 _ACEOF
22563 cat >>$CONFIG_STATUS <<\_ACEOF
22565 # Handling of arguments.
22566 for ac_config_target in $ac_config_targets
22568 case $ac_config_target in
22569 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22570 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22571 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22572 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22573 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22574 "lib/modes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/modes/Makefile" ;;
22575 "lib/books/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/Makefile" ;;
22576 "lib/books/coupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/coupled/Makefile" ;;
22577 "lib/books/uncoupled/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/uncoupled/Makefile" ;;
22578 "lib/books/floor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/books/floor/Makefile" ;;
22579 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22580 "doc/vorbisfile/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisfile/Makefile" ;;
22581 "doc/vorbisenc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/vorbisenc/Makefile" ;;
22582 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22583 "include/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES include/vorbis/Makefile" ;;
22584 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
22585 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22586 "vq/Makefile") CONFIG_FILES="$CONFIG_FILES vq/Makefile" ;;
22587 "libvorbis.spec") CONFIG_FILES="$CONFIG_FILES libvorbis.spec" ;;
22588 "vorbis.pc") CONFIG_FILES="$CONFIG_FILES vorbis.pc" ;;
22589 "vorbisenc.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc.pc" ;;
22590 "vorbisfile.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile.pc" ;;
22591 "vorbis-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbis-uninstalled.pc" ;;
22592 "vorbisenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisenc-uninstalled.pc" ;;
22593 "vorbisfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vorbisfile-uninstalled.pc" ;;
22595 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22596 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22597 { (exit 1); exit 1; }; };;
22598 esac
22599 done
22602 # If the user did not use the arguments to specify the items to instantiate,
22603 # then the envvar interface is used. Set only those that are not.
22604 # We use the long form for the default assignment because of an extremely
22605 # bizarre bug on SunOS 4.1.3.
22606 if $ac_need_defaults; then
22607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22608 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22609 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22612 # Have a temporary directory for convenience. Make it in the build tree
22613 # simply because there is no reason against having it here, and in addition,
22614 # creating and moving files from /tmp can sometimes cause problems.
22615 # Hook for its removal unless debugging.
22616 # Note that there is a small window in which the directory will not be cleaned:
22617 # after its creation but before its name has been assigned to `$tmp'.
22618 $debug ||
22620 tmp=
22621 trap 'exit_status=$?
22622 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22624 trap '{ (exit 1); exit 1; }' 1 2 13 15
22626 # Create a (secure) tmp directory for tmp files.
22629 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22630 test -n "$tmp" && test -d "$tmp"
22631 } ||
22633 tmp=./conf$$-$RANDOM
22634 (umask 077 && mkdir "$tmp")
22635 } ||
22637 echo "$me: cannot create a temporary directory in ." >&2
22638 { (exit 1); exit 1; }
22642 # Set up the sed scripts for CONFIG_FILES section.
22645 # No need to generate the scripts if there are no CONFIG_FILES.
22646 # This happens for instance when ./config.status config.h
22647 if test -n "$CONFIG_FILES"; then
22649 _ACEOF
22653 ac_delim='%!_!# '
22654 for ac_last_try in false false false false false :; do
22655 cat >conf$$subs.sed <<_ACEOF
22656 SHELL!$SHELL$ac_delim
22657 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22658 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22659 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22660 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22661 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22662 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22663 exec_prefix!$exec_prefix$ac_delim
22664 prefix!$prefix$ac_delim
22665 program_transform_name!$program_transform_name$ac_delim
22666 bindir!$bindir$ac_delim
22667 sbindir!$sbindir$ac_delim
22668 libexecdir!$libexecdir$ac_delim
22669 datarootdir!$datarootdir$ac_delim
22670 datadir!$datadir$ac_delim
22671 sysconfdir!$sysconfdir$ac_delim
22672 sharedstatedir!$sharedstatedir$ac_delim
22673 localstatedir!$localstatedir$ac_delim
22674 includedir!$includedir$ac_delim
22675 oldincludedir!$oldincludedir$ac_delim
22676 docdir!$docdir$ac_delim
22677 infodir!$infodir$ac_delim
22678 htmldir!$htmldir$ac_delim
22679 dvidir!$dvidir$ac_delim
22680 pdfdir!$pdfdir$ac_delim
22681 psdir!$psdir$ac_delim
22682 libdir!$libdir$ac_delim
22683 localedir!$localedir$ac_delim
22684 mandir!$mandir$ac_delim
22685 DEFS!$DEFS$ac_delim
22686 ECHO_C!$ECHO_C$ac_delim
22687 ECHO_N!$ECHO_N$ac_delim
22688 ECHO_T!$ECHO_T$ac_delim
22689 LIBS!$LIBS$ac_delim
22690 build_alias!$build_alias$ac_delim
22691 host_alias!$host_alias$ac_delim
22692 target_alias!$target_alias$ac_delim
22693 build!$build$ac_delim
22694 build_cpu!$build_cpu$ac_delim
22695 build_vendor!$build_vendor$ac_delim
22696 build_os!$build_os$ac_delim
22697 host!$host$ac_delim
22698 host_cpu!$host_cpu$ac_delim
22699 host_vendor!$host_vendor$ac_delim
22700 host_os!$host_os$ac_delim
22701 target!$target$ac_delim
22702 target_cpu!$target_cpu$ac_delim
22703 target_vendor!$target_vendor$ac_delim
22704 target_os!$target_os$ac_delim
22705 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22706 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22707 INSTALL_DATA!$INSTALL_DATA$ac_delim
22708 am__isrc!$am__isrc$ac_delim
22709 CYGPATH_W!$CYGPATH_W$ac_delim
22710 PACKAGE!$PACKAGE$ac_delim
22711 VERSION!$VERSION$ac_delim
22712 ACLOCAL!$ACLOCAL$ac_delim
22713 AUTOCONF!$AUTOCONF$ac_delim
22714 AUTOMAKE!$AUTOMAKE$ac_delim
22715 AUTOHEADER!$AUTOHEADER$ac_delim
22716 MAKEINFO!$MAKEINFO$ac_delim
22717 install_sh!$install_sh$ac_delim
22718 STRIP!$STRIP$ac_delim
22719 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22720 mkdir_p!$mkdir_p$ac_delim
22721 AWK!$AWK$ac_delim
22722 SET_MAKE!$SET_MAKE$ac_delim
22723 am__leading_dot!$am__leading_dot$ac_delim
22724 AMTAR!$AMTAR$ac_delim
22725 am__tar!$am__tar$ac_delim
22726 am__untar!$am__untar$ac_delim
22727 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
22728 V_LIB_CURRENT!$V_LIB_CURRENT$ac_delim
22729 V_LIB_REVISION!$V_LIB_REVISION$ac_delim
22730 V_LIB_AGE!$V_LIB_AGE$ac_delim
22731 VF_LIB_CURRENT!$VF_LIB_CURRENT$ac_delim
22732 VF_LIB_REVISION!$VF_LIB_REVISION$ac_delim
22733 VF_LIB_AGE!$VF_LIB_AGE$ac_delim
22734 VE_LIB_CURRENT!$VE_LIB_CURRENT$ac_delim
22735 VE_LIB_REVISION!$VE_LIB_REVISION$ac_delim
22736 VE_LIB_AGE!$VE_LIB_AGE$ac_delim
22737 CC!$CC$ac_delim
22738 CFLAGS!$CFLAGS$ac_delim
22739 LDFLAGS!$LDFLAGS$ac_delim
22740 CPPFLAGS!$CPPFLAGS$ac_delim
22741 ac_ct_CC!$ac_ct_CC$ac_delim
22742 EXEEXT!$EXEEXT$ac_delim
22743 OBJEXT!$OBJEXT$ac_delim
22744 DEPDIR!$DEPDIR$ac_delim
22745 am__include!$am__include$ac_delim
22746 am__quote!$am__quote$ac_delim
22747 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22748 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22749 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22750 CCDEPMODE!$CCDEPMODE$ac_delim
22751 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22752 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22753 _ACEOF
22755 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22756 break
22757 elif $ac_last_try; then
22758 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22759 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22760 { (exit 1); exit 1; }; }
22761 else
22762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22764 done
22766 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22767 if test -n "$ac_eof"; then
22768 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22769 ac_eof=`expr $ac_eof + 1`
22772 cat >>$CONFIG_STATUS <<_ACEOF
22773 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22775 _ACEOF
22776 sed '
22777 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22778 s/^/s,@/; s/!/@,|#_!!_#|/
22781 s/'"$ac_delim"'$/,g/; t
22782 s/$/\\/; p
22783 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22784 ' >>$CONFIG_STATUS <conf$$subs.sed
22785 rm -f conf$$subs.sed
22786 cat >>$CONFIG_STATUS <<_ACEOF
22787 CEOF$ac_eof
22788 _ACEOF
22791 ac_delim='%!_!# '
22792 for ac_last_try in false false false false false :; do
22793 cat >conf$$subs.sed <<_ACEOF
22794 CPP!$CPP$ac_delim
22795 SED!$SED$ac_delim
22796 GREP!$GREP$ac_delim
22797 EGREP!$EGREP$ac_delim
22798 LN_S!$LN_S$ac_delim
22799 ECHO!$ECHO$ac_delim
22800 AR!$AR$ac_delim
22801 RANLIB!$RANLIB$ac_delim
22802 DSYMUTIL!$DSYMUTIL$ac_delim
22803 NMEDIT!$NMEDIT$ac_delim
22804 DLLTOOL!$DLLTOOL$ac_delim
22805 AS!$AS$ac_delim
22806 OBJDUMP!$OBJDUMP$ac_delim
22807 CXX!$CXX$ac_delim
22808 CXXFLAGS!$CXXFLAGS$ac_delim
22809 ac_ct_CXX!$ac_ct_CXX$ac_delim
22810 CXXDEPMODE!$CXXDEPMODE$ac_delim
22811 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22812 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22813 CXXCPP!$CXXCPP$ac_delim
22814 F77!$F77$ac_delim
22815 FFLAGS!$FFLAGS$ac_delim
22816 ac_ct_F77!$ac_ct_F77$ac_delim
22817 LIBTOOL!$LIBTOOL$ac_delim
22818 PDFLATEX!$PDFLATEX$ac_delim
22819 HTLATEX!$HTLATEX$ac_delim
22820 BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim
22821 BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim
22822 PKG_CONFIG!$PKG_CONFIG$ac_delim
22823 OGG_CFLAGS!$OGG_CFLAGS$ac_delim
22824 OGG_LIBS!$OGG_LIBS$ac_delim
22825 ALLOCA!$ALLOCA$ac_delim
22826 LIBOBJS!$LIBOBJS$ac_delim
22827 VORBIS_LIBS!$VORBIS_LIBS$ac_delim
22828 DEBUG!$DEBUG$ac_delim
22829 PROFILE!$PROFILE$ac_delim
22830 pthread_lib!$pthread_lib$ac_delim
22831 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22832 LTLIBOBJS!$LTLIBOBJS$ac_delim
22833 _ACEOF
22835 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
22836 break
22837 elif $ac_last_try; then
22838 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22839 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22840 { (exit 1); exit 1; }; }
22841 else
22842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22844 done
22846 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22847 if test -n "$ac_eof"; then
22848 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22849 ac_eof=`expr $ac_eof + 1`
22852 cat >>$CONFIG_STATUS <<_ACEOF
22853 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22854 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22855 _ACEOF
22856 sed '
22857 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22858 s/^/s,@/; s/!/@,|#_!!_#|/
22861 s/'"$ac_delim"'$/,g/; t
22862 s/$/\\/; p
22863 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22864 ' >>$CONFIG_STATUS <conf$$subs.sed
22865 rm -f conf$$subs.sed
22866 cat >>$CONFIG_STATUS <<_ACEOF
22867 :end
22868 s/|#_!!_#|//g
22869 CEOF$ac_eof
22870 _ACEOF
22873 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22874 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22875 # trailing colons and then remove the whole line if VPATH becomes empty
22876 # (actually we leave an empty line to preserve line numbers).
22877 if test "x$srcdir" = x.; then
22878 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22879 s/:*\$(srcdir):*/:/
22880 s/:*\${srcdir}:*/:/
22881 s/:*@srcdir@:*/:/
22882 s/^\([^=]*=[ ]*\):*/\1/
22883 s/:*$//
22884 s/^[^=]*=[ ]*$//
22888 cat >>$CONFIG_STATUS <<\_ACEOF
22889 fi # test -n "$CONFIG_FILES"
22892 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22894 case $ac_tag in
22895 :[FHLC]) ac_mode=$ac_tag; continue;;
22896 esac
22897 case $ac_mode$ac_tag in
22898 :[FHL]*:*);;
22899 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22900 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22901 { (exit 1); exit 1; }; };;
22902 :[FH]-) ac_tag=-:-;;
22903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22904 esac
22905 ac_save_IFS=$IFS
22906 IFS=:
22907 set x $ac_tag
22908 IFS=$ac_save_IFS
22909 shift
22910 ac_file=$1
22911 shift
22913 case $ac_mode in
22914 :L) ac_source=$1;;
22915 :[FH])
22916 ac_file_inputs=
22917 for ac_f
22919 case $ac_f in
22920 -) ac_f="$tmp/stdin";;
22921 *) # Look for the file first in the build tree, then in the source tree
22922 # (if the path is not absolute). The absolute path cannot be DOS-style,
22923 # because $ac_f cannot contain `:'.
22924 test -f "$ac_f" ||
22925 case $ac_f in
22926 [\\/$]*) false;;
22927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22928 esac ||
22929 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22930 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22931 { (exit 1); exit 1; }; };;
22932 esac
22933 ac_file_inputs="$ac_file_inputs $ac_f"
22934 done
22936 # Let's still pretend it is `configure' which instantiates (i.e., don't
22937 # use $as_me), people would be surprised to read:
22938 # /* config.h. Generated by config.status. */
22939 configure_input="Generated from "`IFS=:
22940 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22941 if test x"$ac_file" != x-; then
22942 configure_input="$ac_file. $configure_input"
22943 { echo "$as_me:$LINENO: creating $ac_file" >&5
22944 echo "$as_me: creating $ac_file" >&6;}
22947 case $ac_tag in
22948 *:-:* | *:-) cat >"$tmp/stdin";;
22949 esac
22951 esac
22953 ac_dir=`$as_dirname -- "$ac_file" ||
22954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22955 X"$ac_file" : 'X\(//\)[^/]' \| \
22956 X"$ac_file" : 'X\(//\)$' \| \
22957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22958 echo X"$ac_file" |
22959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22960 s//\1/
22963 /^X\(\/\/\)[^/].*/{
22964 s//\1/
22967 /^X\(\/\/\)$/{
22968 s//\1/
22971 /^X\(\/\).*/{
22972 s//\1/
22975 s/.*/./; q'`
22976 { as_dir="$ac_dir"
22977 case $as_dir in #(
22978 -*) as_dir=./$as_dir;;
22979 esac
22980 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22981 as_dirs=
22982 while :; do
22983 case $as_dir in #(
22984 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22985 *) as_qdir=$as_dir;;
22986 esac
22987 as_dirs="'$as_qdir' $as_dirs"
22988 as_dir=`$as_dirname -- "$as_dir" ||
22989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22990 X"$as_dir" : 'X\(//\)[^/]' \| \
22991 X"$as_dir" : 'X\(//\)$' \| \
22992 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22993 echo X"$as_dir" |
22994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22995 s//\1/
22998 /^X\(\/\/\)[^/].*/{
22999 s//\1/
23002 /^X\(\/\/\)$/{
23003 s//\1/
23006 /^X\(\/\).*/{
23007 s//\1/
23010 s/.*/./; q'`
23011 test -d "$as_dir" && break
23012 done
23013 test -z "$as_dirs" || eval "mkdir $as_dirs"
23014 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23015 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23016 { (exit 1); exit 1; }; }; }
23017 ac_builddir=.
23019 case "$ac_dir" in
23020 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23022 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23023 # A ".." for each directory in $ac_dir_suffix.
23024 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23025 case $ac_top_builddir_sub in
23026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23028 esac ;;
23029 esac
23030 ac_abs_top_builddir=$ac_pwd
23031 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23032 # for backward compatibility:
23033 ac_top_builddir=$ac_top_build_prefix
23035 case $srcdir in
23036 .) # We are building in place.
23037 ac_srcdir=.
23038 ac_top_srcdir=$ac_top_builddir_sub
23039 ac_abs_top_srcdir=$ac_pwd ;;
23040 [\\/]* | ?:[\\/]* ) # Absolute name.
23041 ac_srcdir=$srcdir$ac_dir_suffix;
23042 ac_top_srcdir=$srcdir
23043 ac_abs_top_srcdir=$srcdir ;;
23044 *) # Relative name.
23045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23046 ac_top_srcdir=$ac_top_build_prefix$srcdir
23047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23048 esac
23049 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23052 case $ac_mode in
23055 # CONFIG_FILE
23058 case $INSTALL in
23059 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23060 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23061 esac
23062 ac_MKDIR_P=$MKDIR_P
23063 case $MKDIR_P in
23064 [\\/$]* | ?:[\\/]* ) ;;
23065 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23066 esac
23067 _ACEOF
23069 cat >>$CONFIG_STATUS <<\_ACEOF
23070 # If the template does not know about datarootdir, expand it.
23071 # FIXME: This hack should be removed a few years after 2.60.
23072 ac_datarootdir_hack=; ac_datarootdir_seen=
23074 case `sed -n '/datarootdir/ {
23078 /@datadir@/p
23079 /@docdir@/p
23080 /@infodir@/p
23081 /@localedir@/p
23082 /@mandir@/p
23083 ' $ac_file_inputs` in
23084 *datarootdir*) ac_datarootdir_seen=yes;;
23085 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23086 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23087 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23088 _ACEOF
23089 cat >>$CONFIG_STATUS <<_ACEOF
23090 ac_datarootdir_hack='
23091 s&@datadir@&$datadir&g
23092 s&@docdir@&$docdir&g
23093 s&@infodir@&$infodir&g
23094 s&@localedir@&$localedir&g
23095 s&@mandir@&$mandir&g
23096 s&\\\${datarootdir}&$datarootdir&g' ;;
23097 esac
23098 _ACEOF
23100 # Neutralize VPATH when `$srcdir' = `.'.
23101 # Shell code in configure.ac might set extrasub.
23102 # FIXME: do we really want to maintain this feature?
23103 cat >>$CONFIG_STATUS <<_ACEOF
23104 sed "$ac_vpsub
23105 $extrasub
23106 _ACEOF
23107 cat >>$CONFIG_STATUS <<\_ACEOF
23109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23110 s&@configure_input@&$configure_input&;t t
23111 s&@top_builddir@&$ac_top_builddir_sub&;t t
23112 s&@srcdir@&$ac_srcdir&;t t
23113 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23114 s&@top_srcdir@&$ac_top_srcdir&;t t
23115 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23116 s&@builddir@&$ac_builddir&;t t
23117 s&@abs_builddir@&$ac_abs_builddir&;t t
23118 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23119 s&@INSTALL@&$ac_INSTALL&;t t
23120 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23121 $ac_datarootdir_hack
23122 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23125 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23127 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23128 which seems to be undefined. Please make sure it is defined." >&5
23129 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23130 which seems to be undefined. Please make sure it is defined." >&2;}
23132 rm -f "$tmp/stdin"
23133 case $ac_file in
23134 -) cat "$tmp/out"; rm -f "$tmp/out";;
23135 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23136 esac
23140 # CONFIG_HEADER
23142 _ACEOF
23144 # Transform confdefs.h into a sed script `conftest.defines', that
23145 # substitutes the proper values into config.h.in to produce config.h.
23146 rm -f conftest.defines conftest.tail
23147 # First, append a space to every undef/define line, to ease matching.
23148 echo 's/$/ /' >conftest.defines
23149 # Then, protect against being on the right side of a sed subst, or in
23150 # an unquoted here document, in config.status. If some macros were
23151 # called several times there might be several #defines for the same
23152 # symbol, which is useless. But do not sort them, since the last
23153 # AC_DEFINE must be honored.
23154 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23155 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23156 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23157 # PARAMS is the parameter list in the macro definition--in most cases, it's
23158 # just an empty string.
23159 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23160 ac_dB='\\)[ (].*,\\1define\\2'
23161 ac_dC=' '
23162 ac_dD=' ,'
23164 uniq confdefs.h |
23165 sed -n '
23166 t rset
23167 :rset
23168 s/^[ ]*#[ ]*define[ ][ ]*//
23169 t ok
23172 s/[\\&,]/\\&/g
23173 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23174 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23175 ' >>conftest.defines
23177 # Remove the space that was appended to ease matching.
23178 # Then replace #undef with comments. This is necessary, for
23179 # example, in the case of _POSIX_SOURCE, which is predefined and required
23180 # on some systems where configure will not decide to define it.
23181 # (The regexp can be short, since the line contains either #define or #undef.)
23182 echo 's/ $//
23183 s,^[ #]*u.*,/* & */,' >>conftest.defines
23185 # Break up conftest.defines:
23186 ac_max_sed_lines=50
23188 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23189 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23190 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23191 # et cetera.
23192 ac_in='$ac_file_inputs'
23193 ac_out='"$tmp/out1"'
23194 ac_nxt='"$tmp/out2"'
23196 while :
23198 # Write a here document:
23199 cat >>$CONFIG_STATUS <<_ACEOF
23200 # First, check the format of the line:
23201 cat >"\$tmp/defines.sed" <<\\CEOF
23202 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23203 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23205 :def
23206 _ACEOF
23207 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23208 echo 'CEOF
23209 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23210 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23211 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23212 grep . conftest.tail >/dev/null || break
23213 rm -f conftest.defines
23214 mv conftest.tail conftest.defines
23215 done
23216 rm -f conftest.defines conftest.tail
23218 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23219 cat >>$CONFIG_STATUS <<\_ACEOF
23220 if test x"$ac_file" != x-; then
23221 echo "/* $configure_input */" >"$tmp/config.h"
23222 cat "$ac_result" >>"$tmp/config.h"
23223 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23224 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23225 echo "$as_me: $ac_file is unchanged" >&6;}
23226 else
23227 rm -f $ac_file
23228 mv "$tmp/config.h" $ac_file
23230 else
23231 echo "/* $configure_input */"
23232 cat "$ac_result"
23234 rm -f "$tmp/out12"
23235 # Compute $ac_file's index in $config_headers.
23236 _am_arg=$ac_file
23237 _am_stamp_count=1
23238 for _am_header in $config_headers :; do
23239 case $_am_header in
23240 $_am_arg | $_am_arg:* )
23241 break ;;
23243 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23244 esac
23245 done
23246 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23247 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23248 X"$_am_arg" : 'X\(//\)[^/]' \| \
23249 X"$_am_arg" : 'X\(//\)$' \| \
23250 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23251 echo X"$_am_arg" |
23252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23253 s//\1/
23256 /^X\(\/\/\)[^/].*/{
23257 s//\1/
23260 /^X\(\/\/\)$/{
23261 s//\1/
23264 /^X\(\/\).*/{
23265 s//\1/
23268 s/.*/./; q'`/stamp-h$_am_stamp_count
23271 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23272 echo "$as_me: executing $ac_file commands" >&6;}
23274 esac
23277 case $ac_file$ac_mode in
23278 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23279 # Strip MF so we end up with the name of the file.
23280 mf=`echo "$mf" | sed -e 's/:.*$//'`
23281 # Check whether this is an Automake generated Makefile or not.
23282 # We used to match only the files named `Makefile.in', but
23283 # some people rename them; so instead we look at the file content.
23284 # Grep'ing the first line is not enough: some people post-process
23285 # each Makefile.in and add a new line on top of each file to say so.
23286 # Grep'ing the whole file is not good either: AIX grep has a line
23287 # limit of 2048, but all sed's we know have understand at least 4000.
23288 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23289 dirpart=`$as_dirname -- "$mf" ||
23290 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23291 X"$mf" : 'X\(//\)[^/]' \| \
23292 X"$mf" : 'X\(//\)$' \| \
23293 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23294 echo X"$mf" |
23295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23296 s//\1/
23299 /^X\(\/\/\)[^/].*/{
23300 s//\1/
23303 /^X\(\/\/\)$/{
23304 s//\1/
23307 /^X\(\/\).*/{
23308 s//\1/
23311 s/.*/./; q'`
23312 else
23313 continue
23315 # Extract the definition of DEPDIR, am__include, and am__quote
23316 # from the Makefile without running `make'.
23317 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23318 test -z "$DEPDIR" && continue
23319 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23320 test -z "am__include" && continue
23321 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23322 # When using ansi2knr, U may be empty or an underscore; expand it
23323 U=`sed -n 's/^U = //p' < "$mf"`
23324 # Find all dependency output files, they are included files with
23325 # $(DEPDIR) in their names. We invoke sed twice because it is the
23326 # simplest approach to changing $(DEPDIR) to its actual value in the
23327 # expansion.
23328 for file in `sed -n "
23329 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23330 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23331 # Make sure the directory exists.
23332 test -f "$dirpart/$file" && continue
23333 fdir=`$as_dirname -- "$file" ||
23334 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23335 X"$file" : 'X\(//\)[^/]' \| \
23336 X"$file" : 'X\(//\)$' \| \
23337 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23338 echo X"$file" |
23339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23340 s//\1/
23343 /^X\(\/\/\)[^/].*/{
23344 s//\1/
23347 /^X\(\/\/\)$/{
23348 s//\1/
23351 /^X\(\/\).*/{
23352 s//\1/
23355 s/.*/./; q'`
23356 { as_dir=$dirpart/$fdir
23357 case $as_dir in #(
23358 -*) as_dir=./$as_dir;;
23359 esac
23360 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23361 as_dirs=
23362 while :; do
23363 case $as_dir in #(
23364 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23365 *) as_qdir=$as_dir;;
23366 esac
23367 as_dirs="'$as_qdir' $as_dirs"
23368 as_dir=`$as_dirname -- "$as_dir" ||
23369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23370 X"$as_dir" : 'X\(//\)[^/]' \| \
23371 X"$as_dir" : 'X\(//\)$' \| \
23372 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23373 echo X"$as_dir" |
23374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23375 s//\1/
23378 /^X\(\/\/\)[^/].*/{
23379 s//\1/
23382 /^X\(\/\/\)$/{
23383 s//\1/
23386 /^X\(\/\).*/{
23387 s//\1/
23390 s/.*/./; q'`
23391 test -d "$as_dir" && break
23392 done
23393 test -z "$as_dirs" || eval "mkdir $as_dirs"
23394 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23395 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23396 { (exit 1); exit 1; }; }; }
23397 # echo "creating $dirpart/$file"
23398 echo '# dummy' > "$dirpart/$file"
23399 done
23400 done
23403 esac
23404 done # for ac_tag
23407 { (exit 0); exit 0; }
23408 _ACEOF
23409 chmod +x $CONFIG_STATUS
23410 ac_clean_files=$ac_clean_files_save
23413 # configure is writing to config.log, and then calls config.status.
23414 # config.status does its own redirection, appending to config.log.
23415 # Unfortunately, on DOS this fails, as config.log is still kept open
23416 # by configure, so config.status won't be able to write to it; its
23417 # output is simply discarded. So we exec the FD to /dev/null,
23418 # effectively closing config.log, so it can be properly (re)opened and
23419 # appended to by config.status. When coming back to configure, we
23420 # need to make the FD available again.
23421 if test "$no_create" != yes; then
23422 ac_cs_success=:
23423 ac_config_status_args=
23424 test "$silent" = yes &&
23425 ac_config_status_args="$ac_config_status_args --quiet"
23426 exec 5>/dev/null
23427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23428 exec 5>>config.log
23429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23430 # would make configure fail if this is the last instruction.
23431 $ac_cs_success || { (exit 1); exit 1; }