Mercurial > freewnn
comparison aclocal.m4 @ 17:a3fdd8ad75dc
2ch dictionary has been added
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Mon, 14 Apr 2008 17:01:14 +0900 |
parents | bbc77ca4def5 |
children | e1aadb6dcbd4 |
comparison
equal
deleted
inserted
replaced
16:b0deba88e223 | 17:a3fdd8ad75dc |
---|---|
1 # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*- | 1 # generated automatically by aclocal 1.10 -*- Autoconf -*- |
2 | 2 |
3 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 | 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
4 # Free Software Foundation, Inc. | 4 # 2005, 2006 Free Software Foundation, Inc. |
5 # This file is free software; the Free Software Foundation | 5 # This file is free software; the Free Software Foundation |
6 # gives unlimited permission to copy and/or distribute it, | 6 # gives unlimited permission to copy and/or distribute it, |
7 # with or without modifications, as long as this notice is preserved. | 7 # with or without modifications, as long as this notice is preserved. |
8 | 8 |
9 # This program is distributed in the hope that it will be useful, | 9 # This program is distributed in the hope that it will be useful, |
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
12 # PARTICULAR PURPOSE. | 12 # PARTICULAR PURPOSE. |
13 | 13 |
14 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | 14 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
15 | 15 |
16 # serial 47 AC_PROG_LIBTOOL | 16 # serial 48 AC_PROG_LIBTOOL |
17 | 17 |
18 | 18 |
19 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | 19 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
20 # ----------------------------------------------------------- | 20 # ----------------------------------------------------------- |
21 # If this macro is not defined by Autoconf, define it here. | 21 # If this macro is not defined by Autoconf, define it here. |
121 ;; | 121 ;; |
122 esac | 122 esac |
123 | 123 |
124 # Sed substitution that helps us do robust quoting. It backslashifies | 124 # Sed substitution that helps us do robust quoting. It backslashifies |
125 # metacharacters that are still active within double-quoted strings. | 125 # metacharacters that are still active within double-quoted strings. |
126 Xsed='sed -e s/^X//' | 126 Xsed='sed -e 1s/^X//' |
127 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | 127 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
128 | 128 |
129 # Same as above, but do not quote variable references. | 129 # Same as above, but do not quote variable references. |
130 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] | 130 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
131 | 131 |
141 | 141 |
142 # Global variables: | 142 # Global variables: |
143 default_ofile=libtool | 143 default_ofile=libtool |
144 can_build_shared=yes | 144 can_build_shared=yes |
145 | 145 |
146 # All known linkers require a `.a' archive for static linking (except M$VC, | 146 # All known linkers require a `.a' archive for static linking (except MSVC, |
147 # which needs '.lib'). | 147 # which needs '.lib'). |
148 libext=a | 148 libext=a |
149 ltmain="$ac_aux_dir/ltmain.sh" | 149 ltmain="$ac_aux_dir/ltmain.sh" |
150 ofile="$default_ofile" | 150 ofile="$default_ofile" |
151 with_gnu_ld="$lt_cv_prog_gnu_ld" | 151 with_gnu_ld="$lt_cv_prog_gnu_ld" |
161 test -z "$AR" && AR=ar | 161 test -z "$AR" && AR=ar |
162 test -z "$AR_FLAGS" && AR_FLAGS=cru | 162 test -z "$AR_FLAGS" && AR_FLAGS=cru |
163 test -z "$AS" && AS=as | 163 test -z "$AS" && AS=as |
164 test -z "$CC" && CC=cc | 164 test -z "$CC" && CC=cc |
165 test -z "$LTCC" && LTCC=$CC | 165 test -z "$LTCC" && LTCC=$CC |
166 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
166 test -z "$DLLTOOL" && DLLTOOL=dlltool | 167 test -z "$DLLTOOL" && DLLTOOL=dlltool |
167 test -z "$LD" && LD=ld | 168 test -z "$LD" && LD=ld |
168 test -z "$LN_S" && LN_S="ln -s" | 169 test -z "$LN_S" && LN_S="ln -s" |
169 test -z "$MAGIC_CMD" && MAGIC_CMD=file | 170 test -z "$MAGIC_CMD" && MAGIC_CMD=file |
170 test -z "$NM" && NM=nm | 171 test -z "$NM" && NM=nm |
180 old_postuninstall_cmds= | 181 old_postuninstall_cmds= |
181 | 182 |
182 if test -n "$RANLIB"; then | 183 if test -n "$RANLIB"; then |
183 case $host_os in | 184 case $host_os in |
184 openbsd*) | 185 openbsd*) |
185 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
186 ;; | 187 ;; |
187 *) | 188 *) |
188 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
189 ;; | 190 ;; |
190 esac | 191 esac |
191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
192 fi | 193 fi |
194 | |
195 _LT_CC_BASENAME([$compiler]) | |
193 | 196 |
194 # Only perform the check for file, if the check method requires it | 197 # Only perform the check for file, if the check method requires it |
195 case $deplibs_check_method in | 198 case $deplibs_check_method in |
196 file_magic*) | 199 file_magic*) |
197 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 200 if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
229 [AC_REQUIRE([AC_PROG_CC])dnl | 232 [AC_REQUIRE([AC_PROG_CC])dnl |
230 | 233 |
231 # If no C compiler was specified, use CC. | 234 # If no C compiler was specified, use CC. |
232 LTCC=${LTCC-"$CC"} | 235 LTCC=${LTCC-"$CC"} |
233 | 236 |
237 # If no C compiler flags were specified, use CFLAGS. | |
238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
239 | |
234 # Allow CC to be a program name with arguments. | 240 # Allow CC to be a program name with arguments. |
235 compiler=$CC | 241 compiler=$CC |
236 ])# _LT_AC_SYS_COMPILER | 242 ])# _LT_AC_SYS_COMPILER |
243 | |
244 | |
245 # _LT_CC_BASENAME(CC) | |
246 # ------------------- | |
247 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
248 AC_DEFUN([_LT_CC_BASENAME], | |
249 [for cc_temp in $1""; do | |
250 case $cc_temp in | |
251 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | |
252 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | |
253 \-*) ;; | |
254 *) break;; | |
255 esac | |
256 done | |
257 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
258 ]) | |
259 | |
260 | |
261 # _LT_COMPILER_BOILERPLATE | |
262 # ------------------------ | |
263 # Check for compiler boilerplate output or warnings with | |
264 # the simple compiler test code. | |
265 AC_DEFUN([_LT_COMPILER_BOILERPLATE], | |
266 [ac_outfile=conftest.$ac_objext | |
267 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
268 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
269 _lt_compiler_boilerplate=`cat conftest.err` | |
270 $rm conftest* | |
271 ])# _LT_COMPILER_BOILERPLATE | |
272 | |
273 | |
274 # _LT_LINKER_BOILERPLATE | |
275 # ---------------------- | |
276 # Check for linker boilerplate output or warnings with | |
277 # the simple link test code. | |
278 AC_DEFUN([_LT_LINKER_BOILERPLATE], | |
279 [ac_outfile=conftest.$ac_objext | |
280 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
281 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
282 _lt_linker_boilerplate=`cat conftest.err` | |
283 $rm conftest* | |
284 ])# _LT_LINKER_BOILERPLATE | |
237 | 285 |
238 | 286 |
239 # _LT_AC_SYS_LIBPATH_AIX | 287 # _LT_AC_SYS_LIBPATH_AIX |
240 # ---------------------- | 288 # ---------------------- |
241 # Links a minimal program and checks the executable | 289 # Links a minimal program and checks the executable |
306 exit 0 | 354 exit 0 |
307 fi | 355 fi |
308 | 356 |
309 # The HP-UX ksh and POSIX shell print the target directory to stdout | 357 # The HP-UX ksh and POSIX shell print the target directory to stdout |
310 # if CDPATH is set. | 358 # if CDPATH is set. |
311 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 359 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
312 | 360 |
313 if test -z "$ECHO"; then | 361 if test -z "$ECHO"; then |
314 if test "X${echo_test_string+set}" != Xset; then | 362 if test "X${echo_test_string+set}" != Xset; then |
315 # find a string as large as possible, as long as the shell can cope with it | 363 # find a string as large as possible, as long as the shell can cope with it |
316 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | 364 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
317 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 365 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
318 if (echo_test_string="`eval $cmd`") 2>/dev/null && | 366 if (echo_test_string=`eval $cmd`) 2>/dev/null && |
319 echo_test_string="`eval $cmd`" && | 367 echo_test_string=`eval $cmd` && |
320 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 368 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
321 then | 369 then |
322 break | 370 break |
323 fi | 371 fi |
324 done | 372 done |
483 | 531 |
484 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | 532 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
485 # Find out which ABI we are using. | 533 # Find out which ABI we are using. |
486 echo 'int i;' > conftest.$ac_ext | 534 echo 'int i;' > conftest.$ac_ext |
487 if AC_TRY_EVAL(ac_compile); then | 535 if AC_TRY_EVAL(ac_compile); then |
488 case "`/usr/bin/file conftest.o`" in | 536 case `/usr/bin/file conftest.o` in |
489 *32-bit*) | 537 *32-bit*) |
490 case $host in | 538 case $host in |
491 x86_64-*linux*) | 539 x86_64-*linux*) |
492 LD="${LD-ld} -m elf_i386" | 540 LD="${LD-ld} -m elf_i386" |
493 ;; | 541 ;; |
494 ppc64-*linux*) | 542 ppc64-*linux*|powerpc64-*linux*) |
495 LD="${LD-ld} -m elf32ppclinux" | 543 LD="${LD-ld} -m elf32ppclinux" |
496 ;; | 544 ;; |
497 s390x-*linux*) | 545 s390x-*linux*) |
498 LD="${LD-ld} -m elf_s390" | 546 LD="${LD-ld} -m elf_s390" |
499 ;; | 547 ;; |
534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 582 if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 583 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
536 CFLAGS="$SAVE_CFLAGS" | 584 CFLAGS="$SAVE_CFLAGS" |
537 fi | 585 fi |
538 ;; | 586 ;; |
587 sparc*-*solaris*) | |
588 # Find out which ABI we are using. | |
589 echo 'int i;' > conftest.$ac_ext | |
590 if AC_TRY_EVAL(ac_compile); then | |
591 case `/usr/bin/file conftest.o` in | |
592 *64-bit*) | |
593 case $lt_cv_prog_gnu_ld in | |
594 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
595 *) LD="${LD-ld} -64" ;; | |
596 esac | |
597 ;; | |
598 esac | |
599 fi | |
600 rm -rf conftest* | |
601 ;; | |
602 | |
539 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | 603 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
540 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) | 604 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
541 AC_CHECK_TOOL(DLLTOOL, dlltool, false) | 605 AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
542 AC_CHECK_TOOL(AS, as, false) | 606 AC_CHECK_TOOL(AS, as, false) |
543 AC_CHECK_TOOL(OBJDUMP, objdump, false) | 607 AC_CHECK_TOOL(OBJDUMP, objdump, false) |
553 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | 617 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
554 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | 618 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
555 # ---------------------------------------------------------------- | 619 # ---------------------------------------------------------------- |
556 # Check whether the given compiler option works | 620 # Check whether the given compiler option works |
557 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], | 621 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
558 [AC_CACHE_CHECK([$1], [$2], | 622 [AC_REQUIRE([LT_AC_PROG_SED]) |
623 AC_CACHE_CHECK([$1], [$2], | |
559 [$2=no | 624 [$2=no |
560 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | 625 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
561 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
562 lt_compiler_flag="$3" | 627 lt_compiler_flag="$3" |
563 # Insert the option either (1) after the last *FLAGS variable, or | 628 # Insert the option either (1) after the last *FLAGS variable, or |
564 # (2) before a word containing "conftest.", or (3) at the end. | 629 # (2) before a word containing "conftest.", or (3) at the end. |
565 # Note that $ac_compile itself does not contain backslashes and begins | 630 # Note that $ac_compile itself does not contain backslashes and begins |
566 # with a dollar sign (not a hyphen), so the echo should work correctly. | 631 # with a dollar sign (not a hyphen), so the echo should work correctly. |
567 # The option is referenced via a variable to avoid confusing sed. | 632 # The option is referenced via a variable to avoid confusing sed. |
568 lt_compile=`echo "$ac_compile" | $SED \ | 633 lt_compile=`echo "$ac_compile" | $SED \ |
569 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
570 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 635 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
571 -e 's:$: $lt_compiler_flag:'` | 636 -e 's:$: $lt_compiler_flag:'` |
572 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 637 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
573 (eval "$lt_compile" 2>conftest.err) | 638 (eval "$lt_compile" 2>conftest.err) |
574 ac_status=$? | 639 ac_status=$? |
575 cat conftest.err >&AS_MESSAGE_LOG_FD | 640 cat conftest.err >&AS_MESSAGE_LOG_FD |
576 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 641 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
577 if (exit $ac_status) && test -s "$ac_outfile"; then | 642 if (exit $ac_status) && test -s "$ac_outfile"; then |
578 # The compiler can only warn and ignore the option if not recognized | 643 # The compiler can only warn and ignore the option if not recognized |
579 # So say no if there are warnings | 644 # So say no if there are warnings other than the usual output. |
580 if test ! -s conftest.err; then | 645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
581 $2=yes | 648 $2=yes |
582 fi | 649 fi |
583 fi | 650 fi |
584 $rm conftest* | 651 $rm conftest* |
585 ]) | 652 ]) |
601 [$2=no | 668 [$2=no |
602 save_LDFLAGS="$LDFLAGS" | 669 save_LDFLAGS="$LDFLAGS" |
603 LDFLAGS="$LDFLAGS $3" | 670 LDFLAGS="$LDFLAGS $3" |
604 printf "$lt_simple_link_test_code" > conftest.$ac_ext | 671 printf "$lt_simple_link_test_code" > conftest.$ac_ext |
605 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 672 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
606 # The compiler can only warn and ignore the option if not recognized | 673 # The linker can only warn and ignore the option if not recognized |
607 # So say no if there are warnings | 674 # So say no if there are warnings |
608 if test -s conftest.err; then | 675 if test -s conftest.err; then |
609 # Append any errors to the config.log. | 676 # Append any errors to the config.log. |
610 cat conftest.err 1>&AS_MESSAGE_LOG_FD | 677 cat conftest.err 1>&AS_MESSAGE_LOG_FD |
678 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
680 if diff conftest.exp conftest.er2 >/dev/null; then | |
681 $2=yes | |
682 fi | |
611 else | 683 else |
612 $2=yes | 684 $2=yes |
613 fi | 685 fi |
614 fi | 686 fi |
615 $rm conftest* | 687 $rm conftest* |
629 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], | 701 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
630 [# find the maximum length of command line arguments | 702 [# find the maximum length of command line arguments |
631 AC_MSG_CHECKING([the maximum length of command line arguments]) | 703 AC_MSG_CHECKING([the maximum length of command line arguments]) |
632 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | 704 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
633 i=0 | 705 i=0 |
634 testring="ABCD" | 706 teststring="ABCD" |
635 | 707 |
636 case $build_os in | 708 case $build_os in |
637 msdosdjgpp*) | 709 msdosdjgpp*) |
638 # On DJGPP, this test can blow up pretty badly due to problems in libc | 710 # On DJGPP, this test can blow up pretty badly due to problems in libc |
639 # (any single argument exceeding 2000 bytes causes a buffer overrun | 711 # (any single argument exceeding 2000 bytes causes a buffer overrun |
658 # Instead, let's just punt: use the minimum linelength reported by | 730 # Instead, let's just punt: use the minimum linelength reported by |
659 # all of the supported platforms: 8192 (on NT/2K/XP). | 731 # all of the supported platforms: 8192 (on NT/2K/XP). |
660 lt_cv_sys_max_cmd_len=8192; | 732 lt_cv_sys_max_cmd_len=8192; |
661 ;; | 733 ;; |
662 | 734 |
663 *) | 735 amigaos*) |
736 # On AmigaOS with pdksh, this test takes hours, literally. | |
737 # So we just punt and use a minimum line length of 8192. | |
738 lt_cv_sys_max_cmd_len=8192; | |
739 ;; | |
740 | |
741 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
742 # This has been around since 386BSD, at least. Likely further. | |
743 if test -x /sbin/sysctl; then | |
744 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
745 elif test -x /usr/sbin/sysctl; then | |
746 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
747 else | |
748 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
749 fi | |
750 # And add a safety zone | |
751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
753 ;; | |
754 | |
755 interix*) | |
756 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
757 lt_cv_sys_max_cmd_len=196608 | |
758 ;; | |
759 | |
760 osf*) | |
761 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
762 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
763 # nice to cause kernel panics so lets avoid the loop below. | |
764 # First set a reasonable default. | |
765 lt_cv_sys_max_cmd_len=16384 | |
766 # | |
767 if test -x /sbin/sysconfig; then | |
768 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
769 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
770 esac | |
771 fi | |
772 ;; | |
773 sco3.2v5*) | |
774 lt_cv_sys_max_cmd_len=102400 | |
775 ;; | |
776 sysv5* | sco5v6* | sysv4.2uw2*) | |
777 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
778 if test -n "$kargmax"; then | |
779 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | |
780 else | |
781 lt_cv_sys_max_cmd_len=32768 | |
782 fi | |
783 ;; | |
784 *) | |
664 # If test is not a shell built-in, we'll probably end up computing a | 785 # If test is not a shell built-in, we'll probably end up computing a |
665 # maximum length that is only half of the actual maximum length, but | 786 # maximum length that is only half of the actual maximum length, but |
666 # we can't tell. | 787 # we can't tell. |
667 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ | 788 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
668 = "XX$testring") >/dev/null 2>&1 && | 789 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
669 new_result=`expr "X$testring" : ".*" 2>&1` && | 790 = "XX$teststring") >/dev/null 2>&1 && |
791 new_result=`expr "X$teststring" : ".*" 2>&1` && | |
670 lt_cv_sys_max_cmd_len=$new_result && | 792 lt_cv_sys_max_cmd_len=$new_result && |
671 test $i != 17 # 1/2 MB should be enough | 793 test $i != 17 # 1/2 MB should be enough |
672 do | 794 do |
673 i=`expr $i + 1` | 795 i=`expr $i + 1` |
674 testring=$testring$testring | 796 teststring=$teststring$teststring |
675 done | 797 done |
676 testring= | 798 teststring= |
677 # Add a significant safety factor because C++ compilers can tack on massive | 799 # Add a significant safety factor because C++ compilers can tack on massive |
678 # amounts of additional arguments before passing them to the linker. | 800 # amounts of additional arguments before passing them to the linker. |
679 # It appears as though 1/2 is a usable value. | 801 # It appears as though 1/2 is a usable value. |
680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
681 ;; | 803 ;; |
688 fi | 810 fi |
689 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN | 811 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
690 | 812 |
691 | 813 |
692 # _LT_AC_CHECK_DLFCN | 814 # _LT_AC_CHECK_DLFCN |
693 # -------------------- | 815 # ------------------ |
694 AC_DEFUN([_LT_AC_CHECK_DLFCN], | 816 AC_DEFUN([_LT_AC_CHECK_DLFCN], |
695 [AC_CHECK_HEADERS(dlfcn.h)dnl | 817 [AC_CHECK_HEADERS(dlfcn.h)dnl |
696 ])# _LT_AC_CHECK_DLFCN | 818 ])# _LT_AC_CHECK_DLFCN |
697 | 819 |
698 | 820 |
699 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | 821 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
700 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | 822 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
701 # ------------------------------------------------------------------ | 823 # --------------------------------------------------------------------- |
702 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | 824 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
703 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 825 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
704 if test "$cross_compiling" = yes; then : | 826 if test "$cross_compiling" = yes; then : |
705 [$4] | 827 [$4] |
706 else | 828 else |
762 { | 884 { |
763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | 885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
764 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 886 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
765 /* dlclose (self); */ | 887 /* dlclose (self); */ |
766 } | 888 } |
889 else | |
890 puts (dlerror ()); | |
767 | 891 |
768 exit (status); | 892 exit (status); |
769 }] | 893 }] |
770 EOF | 894 EOF |
771 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | 895 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
772 (./conftest; exit; ) 2>/dev/null | 896 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
773 lt_status=$? | 897 lt_status=$? |
774 case x$lt_status in | 898 case x$lt_status in |
775 x$lt_dlno_uscore) $1 ;; | 899 x$lt_dlno_uscore) $1 ;; |
776 x$lt_dlneed_uscore) $2 ;; | 900 x$lt_dlneed_uscore) $2 ;; |
777 x$lt_unknown|x*) $3 ;; | 901 x$lt_dlunknown|x*) $3 ;; |
778 esac | 902 esac |
779 else : | 903 else : |
780 # compilation failed | 904 # compilation failed |
781 $3 | 905 $3 |
782 fi | 906 fi |
784 rm -fr conftest* | 908 rm -fr conftest* |
785 ])# _LT_AC_TRY_DLOPEN_SELF | 909 ])# _LT_AC_TRY_DLOPEN_SELF |
786 | 910 |
787 | 911 |
788 # AC_LIBTOOL_DLOPEN_SELF | 912 # AC_LIBTOOL_DLOPEN_SELF |
789 # ------------------- | 913 # ---------------------- |
790 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | 914 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
791 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 915 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
792 if test "x$enable_dlopen" != xyes; then | 916 if test "x$enable_dlopen" != xyes; then |
793 enable_dlopen=unknown | 917 enable_dlopen=unknown |
794 enable_dlopen_self=unknown | 918 enable_dlopen_self=unknown |
821 lt_cv_dlopen="dyld" | 945 lt_cv_dlopen="dyld" |
822 lt_cv_dlopen_libs= | 946 lt_cv_dlopen_libs= |
823 lt_cv_dlopen_self=yes | 947 lt_cv_dlopen_self=yes |
824 ]) | 948 ]) |
825 ;; | 949 ;; |
826 | 950 |
827 *) | 951 *) |
828 AC_CHECK_FUNC([shl_load], | 952 AC_CHECK_FUNC([shl_load], |
829 [lt_cv_dlopen="shl_load"], | 953 [lt_cv_dlopen="shl_load"], |
830 [AC_CHECK_LIB([dld], [shl_load], | 954 [AC_CHECK_LIB([dld], [shl_load], |
831 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], | 955 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
855 dlopen) | 979 dlopen) |
856 save_CPPFLAGS="$CPPFLAGS" | 980 save_CPPFLAGS="$CPPFLAGS" |
857 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 981 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
858 | 982 |
859 save_LDFLAGS="$LDFLAGS" | 983 save_LDFLAGS="$LDFLAGS" |
860 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 984 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
861 | 985 |
862 save_LIBS="$LIBS" | 986 save_LIBS="$LIBS" |
863 LIBS="$lt_cv_dlopen_libs $LIBS" | 987 LIBS="$lt_cv_dlopen_libs $LIBS" |
864 | 988 |
865 AC_CACHE_CHECK([whether a program can dlopen itself], | 989 AC_CACHE_CHECK([whether a program can dlopen itself], |
868 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | 992 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
869 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | 993 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
870 ]) | 994 ]) |
871 | 995 |
872 if test "x$lt_cv_dlopen_self" = xyes; then | 996 if test "x$lt_cv_dlopen_self" = xyes; then |
873 LDFLAGS="$LDFLAGS $link_static_flag" | 997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
874 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | 998 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
875 lt_cv_dlopen_self_static, [dnl | 999 lt_cv_dlopen_self_static, [dnl |
876 _LT_AC_TRY_DLOPEN_SELF( | 1000 _LT_AC_TRY_DLOPEN_SELF( |
877 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | 1001 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
878 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | 1002 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
910 mkdir conftest | 1034 mkdir conftest |
911 cd conftest | 1035 cd conftest |
912 mkdir out | 1036 mkdir out |
913 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 1037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
914 | 1038 |
915 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
916 # that will create temporary files in the current directory regardless of | |
917 # the output directory. Thus, making CWD read-only will cause this test | |
918 # to fail, enabling locking or at least warning the user not to do parallel | |
919 # builds. | |
920 chmod -w . | |
921 | |
922 lt_compiler_flag="-o out/conftest2.$ac_objext" | 1039 lt_compiler_flag="-o out/conftest2.$ac_objext" |
923 # Insert the option either (1) after the last *FLAGS variable, or | 1040 # Insert the option either (1) after the last *FLAGS variable, or |
924 # (2) before a word containing "conftest.", or (3) at the end. | 1041 # (2) before a word containing "conftest.", or (3) at the end. |
925 # Note that $ac_compile itself does not contain backslashes and begins | 1042 # Note that $ac_compile itself does not contain backslashes and begins |
926 # with a dollar sign (not a hyphen), so the echo should work correctly. | 1043 # with a dollar sign (not a hyphen), so the echo should work correctly. |
927 lt_compile=`echo "$ac_compile" | $SED \ | 1044 lt_compile=`echo "$ac_compile" | $SED \ |
928 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | 1045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
929 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 1046 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
930 -e 's:$: $lt_compiler_flag:'` | 1047 -e 's:$: $lt_compiler_flag:'` |
931 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 1048 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
932 (eval "$lt_compile" 2>out/conftest.err) | 1049 (eval "$lt_compile" 2>out/conftest.err) |
933 ac_status=$? | 1050 ac_status=$? |
935 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 1052 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
936 if (exit $ac_status) && test -s out/conftest2.$ac_objext | 1053 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
937 then | 1054 then |
938 # The compiler can only warn and ignore the option if not recognized | 1055 # The compiler can only warn and ignore the option if not recognized |
939 # So say no if there are warnings | 1056 # So say no if there are warnings |
940 if test ! -s out/conftest.err; then | 1057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
1058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
1059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
941 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 1060 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
942 fi | 1061 fi |
943 fi | 1062 fi |
944 chmod u+w . | 1063 chmod u+w . 2>&AS_MESSAGE_LOG_FD |
945 $rm conftest* out/* | 1064 $rm conftest* |
946 rmdir out | 1065 # SGI C++ compiler will create directory out/ii_files/ for |
1066 # template instantiation | |
1067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
1068 $rm out/* && rmdir out | |
947 cd .. | 1069 cd .. |
948 rmdir conftest | 1070 rmdir conftest |
949 $rm conftest* | 1071 $rm conftest* |
950 ]) | 1072 ]) |
951 ])# AC_LIBTOOL_PROG_CC_C_O | 1073 ])# AC_LIBTOOL_PROG_CC_C_O |
1000 # Check hardcoding attributes. | 1122 # Check hardcoding attributes. |
1001 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], | 1123 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
1002 [AC_MSG_CHECKING([how to hardcode library paths into programs]) | 1124 [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
1003 _LT_AC_TAGVAR(hardcode_action, $1)= | 1125 _LT_AC_TAGVAR(hardcode_action, $1)= |
1004 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | 1126 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
1005 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ | 1127 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
1006 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then | 1128 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
1007 | 1129 |
1008 # We can hardcode non-existant directories. | 1130 # We can hardcode non-existant directories. |
1009 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | 1131 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
1010 # If the only mechanism to avoid hardcoding is shlibpath_var, we | 1132 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
1011 # have to relink, otherwise we might link with an installed library | 1133 # have to relink, otherwise we might link with an installed library |
1058 fi | 1180 fi |
1059 ;; | 1181 ;; |
1060 *) | 1182 *) |
1061 AC_MSG_RESULT([no]) | 1183 AC_MSG_RESULT([no]) |
1062 ;; | 1184 ;; |
1063 esac | 1185 esac |
1064 fi | 1186 fi |
1065 ])# AC_LIBTOOL_SYS_LIB_STRIP | 1187 ])# AC_LIBTOOL_SYS_LIB_STRIP |
1066 | 1188 |
1067 | 1189 |
1068 # AC_LIBTOOL_SYS_DYNAMIC_LINKER | 1190 # AC_LIBTOOL_SYS_DYNAMIC_LINKER |
1071 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], | 1193 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
1072 [AC_MSG_CHECKING([dynamic linker characteristics]) | 1194 [AC_MSG_CHECKING([dynamic linker characteristics]) |
1073 library_names_spec= | 1195 library_names_spec= |
1074 libname_spec='lib$name' | 1196 libname_spec='lib$name' |
1075 soname_spec= | 1197 soname_spec= |
1076 shrext=".so" | 1198 shrext_cmds=".so" |
1077 postinstall_cmds= | 1199 postinstall_cmds= |
1078 postuninstall_cmds= | 1200 postuninstall_cmds= |
1079 finish_cmds= | 1201 finish_cmds= |
1080 finish_eval= | 1202 finish_eval= |
1081 shlibpath_var= | 1203 shlibpath_var= |
1159 ;; | 1281 ;; |
1160 | 1282 |
1161 amigaos*) | 1283 amigaos*) |
1162 library_names_spec='$libname.ixlibrary $libname.a' | 1284 library_names_spec='$libname.ixlibrary $libname.a' |
1163 # Create ${libname}_ixlibrary.a entries in /sys/libs. | 1285 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
1164 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' | 1286 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' |
1165 ;; | 1287 ;; |
1166 | 1288 |
1167 beos*) | 1289 beos*) |
1168 library_names_spec='${libname}${shared_ext}' | 1290 library_names_spec='${libname}${shared_ext}' |
1169 dynamic_linker="$host_os ld.so" | 1291 dynamic_linker="$host_os ld.so" |
1170 shlibpath_var=LIBRARY_PATH | 1292 shlibpath_var=LIBRARY_PATH |
1171 ;; | 1293 ;; |
1172 | 1294 |
1173 bsdi4*) | 1295 bsdi[[45]]*) |
1174 version_type=linux | 1296 version_type=linux |
1175 need_version=no | 1297 need_version=no |
1176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1177 soname_spec='${libname}${release}${shared_ext}$major' | 1299 soname_spec='${libname}${release}${shared_ext}$major' |
1178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 1300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
1184 # libtool to hard-code these into programs | 1306 # libtool to hard-code these into programs |
1185 ;; | 1307 ;; |
1186 | 1308 |
1187 cygwin* | mingw* | pw32*) | 1309 cygwin* | mingw* | pw32*) |
1188 version_type=windows | 1310 version_type=windows |
1189 shrext=".dll" | 1311 shrext_cmds=".dll" |
1190 need_version=no | 1312 need_version=no |
1191 need_lib_prefix=no | 1313 need_lib_prefix=no |
1192 | 1314 |
1193 case $GCC,$host_os in | 1315 case $GCC,$host_os in |
1194 yes,cygwin* | yes,mingw* | yes,pw32*) | 1316 yes,cygwin* | yes,mingw* | yes,pw32*) |
1196 # DLL is installed to $(libdir)/../bin by postinstall_cmds | 1318 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
1197 postinstall_cmds='base_file=`basename \${file}`~ | 1319 postinstall_cmds='base_file=`basename \${file}`~ |
1198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 1320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
1199 dldir=$destdir/`dirname \$dlpath`~ | 1321 dldir=$destdir/`dirname \$dlpath`~ |
1200 test -d \$dldir || mkdir -p \$dldir~ | 1322 test -d \$dldir || mkdir -p \$dldir~ |
1201 $install_prog $dir/$dlname \$dldir/$dlname' | 1323 $install_prog $dir/$dlname \$dldir/$dlname~ |
1324 chmod a+x \$dldir/$dlname' | |
1202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 1325 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
1203 dlpath=$dir/\$dldll~ | 1326 dlpath=$dir/\$dldll~ |
1204 $rm \$dlpath' | 1327 $rm \$dlpath' |
1205 shlibpath_overrides_runpath=yes | 1328 shlibpath_overrides_runpath=yes |
1206 | 1329 |
1207 case $host_os in | 1330 case $host_os in |
1208 cygwin*) | 1331 cygwin*) |
1209 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 1332 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
1210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 1333 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1211 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | 1334 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
1212 ;; | 1335 ;; |
1213 mingw*) | 1336 mingw*) |
1214 # MinGW DLLs use traditional 'lib' prefix | 1337 # MinGW DLLs use traditional 'lib' prefix |
1215 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 1338 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1216 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 1339 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
1226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 1349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
1227 fi | 1350 fi |
1228 ;; | 1351 ;; |
1229 pw32*) | 1352 pw32*) |
1230 # pw32 DLLs use 'pw' prefix rather than 'lib' | 1353 # pw32 DLLs use 'pw' prefix rather than 'lib' |
1231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 1354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
1232 ;; | 1355 ;; |
1233 esac | 1356 esac |
1234 ;; | 1357 ;; |
1235 | 1358 |
1236 *) | 1359 *) |
1245 darwin* | rhapsody*) | 1368 darwin* | rhapsody*) |
1246 dynamic_linker="$host_os dyld" | 1369 dynamic_linker="$host_os dyld" |
1247 version_type=darwin | 1370 version_type=darwin |
1248 need_lib_prefix=no | 1371 need_lib_prefix=no |
1249 need_version=no | 1372 need_version=no |
1250 # FIXME: Relying on posixy $() will cause problems for | |
1251 # cross-compilation, but unfortunately the echo tests do not | |
1252 # yet detect zsh echo's removal of \ escapes. | |
1253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 1373 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
1254 soname_spec='${libname}${release}${major}$shared_ext' | 1374 soname_spec='${libname}${release}${major}$shared_ext' |
1255 shlibpath_overrides_runpath=yes | 1375 shlibpath_overrides_runpath=yes |
1256 shlibpath_var=DYLD_LIBRARY_PATH | 1376 shlibpath_var=DYLD_LIBRARY_PATH |
1257 shrext='$(test .$module = .yes && echo .so || echo .dylib)' | 1377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
1258 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 1378 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
1259 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 1379 if test "$GCC" = yes; then |
1260 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | 1380 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
1381 else | |
1382 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
1261 fi | 1383 fi |
1262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 1384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
1263 ;; | 1385 ;; |
1264 | 1386 |
1265 dgux*) | 1387 dgux*) |
1273 | 1395 |
1274 freebsd1*) | 1396 freebsd1*) |
1275 dynamic_linker=no | 1397 dynamic_linker=no |
1276 ;; | 1398 ;; |
1277 | 1399 |
1278 freebsd*) | 1400 kfreebsd*-gnu) |
1279 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | 1401 version_type=linux |
1402 need_lib_prefix=no | |
1403 need_version=no | |
1404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
1405 soname_spec='${libname}${release}${shared_ext}$major' | |
1406 shlibpath_var=LD_LIBRARY_PATH | |
1407 shlibpath_overrides_runpath=no | |
1408 hardcode_into_libs=yes | |
1409 dynamic_linker='GNU ld.so' | |
1410 ;; | |
1411 | |
1412 freebsd* | dragonfly*) | |
1413 # DragonFly does not have aout. When/if they implement a new | |
1414 # versioning mechanism, adjust this. | |
1415 if test -x /usr/bin/objformat; then | |
1416 objformat=`/usr/bin/objformat` | |
1417 else | |
1418 case $host_os in | |
1419 freebsd[[123]]*) objformat=aout ;; | |
1420 *) objformat=elf ;; | |
1421 esac | |
1422 fi | |
1280 version_type=freebsd-$objformat | 1423 version_type=freebsd-$objformat |
1281 case $version_type in | 1424 case $version_type in |
1282 freebsd-elf*) | 1425 freebsd-elf*) |
1283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 1426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
1284 need_version=no | 1427 need_version=no |
1292 shlibpath_var=LD_LIBRARY_PATH | 1435 shlibpath_var=LD_LIBRARY_PATH |
1293 case $host_os in | 1436 case $host_os in |
1294 freebsd2*) | 1437 freebsd2*) |
1295 shlibpath_overrides_runpath=yes | 1438 shlibpath_overrides_runpath=yes |
1296 ;; | 1439 ;; |
1297 freebsd3.[01]* | freebsdelf3.[01]*) | 1440 freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
1298 shlibpath_overrides_runpath=yes | 1441 shlibpath_overrides_runpath=yes |
1299 hardcode_into_libs=yes | 1442 hardcode_into_libs=yes |
1300 ;; | 1443 ;; |
1301 *) # from 3.2 on | 1444 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
1445 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | |
1302 shlibpath_overrides_runpath=no | 1446 shlibpath_overrides_runpath=no |
1447 hardcode_into_libs=yes | |
1448 ;; | |
1449 freebsd*) # from 4.6 on | |
1450 shlibpath_overrides_runpath=yes | |
1303 hardcode_into_libs=yes | 1451 hardcode_into_libs=yes |
1304 ;; | 1452 ;; |
1305 esac | 1453 esac |
1306 ;; | 1454 ;; |
1307 | 1455 |
1319 # Give a soname corresponding to the major version so that dld.sl refuses to | 1467 # Give a soname corresponding to the major version so that dld.sl refuses to |
1320 # link against other versions. | 1468 # link against other versions. |
1321 version_type=sunos | 1469 version_type=sunos |
1322 need_lib_prefix=no | 1470 need_lib_prefix=no |
1323 need_version=no | 1471 need_version=no |
1324 case "$host_cpu" in | 1472 case $host_cpu in |
1325 ia64*) | 1473 ia64*) |
1326 shrext='.so' | 1474 shrext_cmds='.so' |
1327 hardcode_into_libs=yes | 1475 hardcode_into_libs=yes |
1328 dynamic_linker="$host_os dld.so" | 1476 dynamic_linker="$host_os dld.so" |
1329 shlibpath_var=LD_LIBRARY_PATH | 1477 shlibpath_var=LD_LIBRARY_PATH |
1330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 1478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
1331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 1484 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
1337 fi | 1485 fi |
1338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 1486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
1339 ;; | 1487 ;; |
1340 hppa*64*) | 1488 hppa*64*) |
1341 shrext='.sl' | 1489 shrext_cmds='.sl' |
1342 hardcode_into_libs=yes | 1490 hardcode_into_libs=yes |
1343 dynamic_linker="$host_os dld.sl" | 1491 dynamic_linker="$host_os dld.sl" |
1344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 1492 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
1345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 1493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
1346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1347 soname_spec='${libname}${release}${shared_ext}$major' | 1495 soname_spec='${libname}${release}${shared_ext}$major' |
1348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 1496 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
1349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 1497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
1350 ;; | 1498 ;; |
1351 *) | 1499 *) |
1352 shrext='.sl' | 1500 shrext_cmds='.sl' |
1353 dynamic_linker="$host_os dld.sl" | 1501 dynamic_linker="$host_os dld.sl" |
1354 shlibpath_var=SHLIB_PATH | 1502 shlibpath_var=SHLIB_PATH |
1355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 1503 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
1356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1357 soname_spec='${libname}${release}${shared_ext}$major' | 1505 soname_spec='${libname}${release}${shared_ext}$major' |
1358 ;; | 1506 ;; |
1359 esac | 1507 esac |
1360 # HP-UX runs *really* slowly unless shared libraries are mode 555. | 1508 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
1361 postinstall_cmds='chmod 555 $lib' | 1509 postinstall_cmds='chmod 555 $lib' |
1510 ;; | |
1511 | |
1512 interix3*) | |
1513 version_type=linux | |
1514 need_lib_prefix=no | |
1515 need_version=no | |
1516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
1517 soname_spec='${libname}${release}${shared_ext}$major' | |
1518 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
1519 shlibpath_var=LD_LIBRARY_PATH | |
1520 shlibpath_overrides_runpath=no | |
1521 hardcode_into_libs=yes | |
1362 ;; | 1522 ;; |
1363 | 1523 |
1364 irix5* | irix6* | nonstopux*) | 1524 irix5* | irix6* | nonstopux*) |
1365 case $host_os in | 1525 case $host_os in |
1366 nonstopux*) version_type=nonstopux ;; | 1526 nonstopux*) version_type=nonstopux ;; |
1416 # This implies no fast_install, which is unacceptable. | 1576 # This implies no fast_install, which is unacceptable. |
1417 # Some rework will be needed to allow for fast_install | 1577 # Some rework will be needed to allow for fast_install |
1418 # before this can be enabled. | 1578 # before this can be enabled. |
1419 hardcode_into_libs=yes | 1579 hardcode_into_libs=yes |
1420 | 1580 |
1581 # Append ld.so.conf contents to the search path | |
1582 if test -f /etc/ld.so.conf; then | |
1583 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
1584 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
1585 fi | |
1586 | |
1421 # We used to test for /lib/ld.so.1 and disable shared libraries on | 1587 # We used to test for /lib/ld.so.1 and disable shared libraries on |
1422 # powerpc, because MkLinux only supported shared libraries with the | 1588 # powerpc, because MkLinux only supported shared libraries with the |
1423 # GNU dynamic linker. Since this was broken with cross compilers, | 1589 # GNU dynamic linker. Since this was broken with cross compilers, |
1424 # most powerpc-linux boxes support dynamic linking these days and | 1590 # most powerpc-linux boxes support dynamic linking these days and |
1425 # people can always --disable-shared, the test was removed, and we | 1591 # people can always --disable-shared, the test was removed, and we |
1426 # assume the GNU/Linux dynamic linker is in use. | 1592 # assume the GNU/Linux dynamic linker is in use. |
1427 dynamic_linker='GNU/Linux ld.so' | 1593 dynamic_linker='GNU/Linux ld.so' |
1594 ;; | |
1595 | |
1596 knetbsd*-gnu) | |
1597 version_type=linux | |
1598 need_lib_prefix=no | |
1599 need_version=no | |
1600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
1601 soname_spec='${libname}${release}${shared_ext}$major' | |
1602 shlibpath_var=LD_LIBRARY_PATH | |
1603 shlibpath_overrides_runpath=no | |
1604 hardcode_into_libs=yes | |
1605 dynamic_linker='GNU ld.so' | |
1428 ;; | 1606 ;; |
1429 | 1607 |
1430 netbsd*) | 1608 netbsd*) |
1431 version_type=sunos | 1609 version_type=sunos |
1432 need_lib_prefix=no | 1610 need_lib_prefix=no |
1434 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 1612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
1435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 1613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
1436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 1614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1437 dynamic_linker='NetBSD (a.out) ld.so' | 1615 dynamic_linker='NetBSD (a.out) ld.so' |
1438 else | 1616 else |
1439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | 1617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
1440 soname_spec='${libname}${release}${shared_ext}$major' | 1618 soname_spec='${libname}${release}${shared_ext}$major' |
1441 dynamic_linker='NetBSD ld.elf_so' | 1619 dynamic_linker='NetBSD ld.elf_so' |
1442 fi | 1620 fi |
1443 shlibpath_var=LD_LIBRARY_PATH | 1621 shlibpath_var=LD_LIBRARY_PATH |
1444 shlibpath_overrides_runpath=yes | 1622 shlibpath_overrides_runpath=yes |
1450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1451 shlibpath_var=LD_LIBRARY_PATH | 1629 shlibpath_var=LD_LIBRARY_PATH |
1452 shlibpath_overrides_runpath=yes | 1630 shlibpath_overrides_runpath=yes |
1453 ;; | 1631 ;; |
1454 | 1632 |
1455 nto-qnx) | 1633 nto-qnx*) |
1456 version_type=linux | 1634 version_type=linux |
1457 need_lib_prefix=no | 1635 need_lib_prefix=no |
1458 need_version=no | 1636 need_version=no |
1459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1460 soname_spec='${libname}${release}${shared_ext}$major' | 1638 soname_spec='${libname}${release}${shared_ext}$major' |
1462 shlibpath_overrides_runpath=yes | 1640 shlibpath_overrides_runpath=yes |
1463 ;; | 1641 ;; |
1464 | 1642 |
1465 openbsd*) | 1643 openbsd*) |
1466 version_type=sunos | 1644 version_type=sunos |
1645 sys_lib_dlsearch_path_spec="/usr/lib" | |
1467 need_lib_prefix=no | 1646 need_lib_prefix=no |
1468 need_version=no | 1647 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
1648 case $host_os in | |
1649 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
1650 *) need_version=no ;; | |
1651 esac | |
1469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 1652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
1470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 1653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1471 shlibpath_var=LD_LIBRARY_PATH | 1654 shlibpath_var=LD_LIBRARY_PATH |
1472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 1655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
1473 case $host_os in | 1656 case $host_os in |
1483 fi | 1666 fi |
1484 ;; | 1667 ;; |
1485 | 1668 |
1486 os2*) | 1669 os2*) |
1487 libname_spec='$name' | 1670 libname_spec='$name' |
1488 shrext=".dll" | 1671 shrext_cmds=".dll" |
1489 need_lib_prefix=no | 1672 need_lib_prefix=no |
1490 library_names_spec='$libname${shared_ext} $libname.a' | 1673 library_names_spec='$libname${shared_ext} $libname.a' |
1491 dynamic_linker='OS/2 ld.exe' | 1674 dynamic_linker='OS/2 ld.exe' |
1492 shlibpath_var=LIBPATH | 1675 shlibpath_var=LIBPATH |
1493 ;; | 1676 ;; |
1499 soname_spec='${libname}${release}${shared_ext}$major' | 1682 soname_spec='${libname}${release}${shared_ext}$major' |
1500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1501 shlibpath_var=LD_LIBRARY_PATH | 1684 shlibpath_var=LD_LIBRARY_PATH |
1502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 1685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
1503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 1686 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
1504 ;; | |
1505 | |
1506 sco3.2v5*) | |
1507 version_type=osf | |
1508 soname_spec='${libname}${release}${shared_ext}$major' | |
1509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
1510 shlibpath_var=LD_LIBRARY_PATH | |
1511 ;; | 1687 ;; |
1512 | 1688 |
1513 solaris*) | 1689 solaris*) |
1514 version_type=linux | 1690 version_type=linux |
1515 need_lib_prefix=no | 1691 need_lib_prefix=no |
1533 need_lib_prefix=no | 1709 need_lib_prefix=no |
1534 fi | 1710 fi |
1535 need_version=yes | 1711 need_version=yes |
1536 ;; | 1712 ;; |
1537 | 1713 |
1538 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 1714 sysv4 | sysv4.3*) |
1539 version_type=linux | 1715 version_type=linux |
1540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1541 soname_spec='${libname}${release}${shared_ext}$major' | 1717 soname_spec='${libname}${release}${shared_ext}$major' |
1542 shlibpath_var=LD_LIBRARY_PATH | 1718 shlibpath_var=LD_LIBRARY_PATH |
1543 case $host_vendor in | 1719 case $host_vendor in |
1566 soname_spec='$libname${shared_ext}.$major' | 1742 soname_spec='$libname${shared_ext}.$major' |
1567 shlibpath_var=LD_LIBRARY_PATH | 1743 shlibpath_var=LD_LIBRARY_PATH |
1568 fi | 1744 fi |
1569 ;; | 1745 ;; |
1570 | 1746 |
1747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
1748 version_type=freebsd-elf | |
1749 need_lib_prefix=no | |
1750 need_version=no | |
1751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
1752 soname_spec='${libname}${release}${shared_ext}$major' | |
1753 shlibpath_var=LD_LIBRARY_PATH | |
1754 hardcode_into_libs=yes | |
1755 if test "$with_gnu_ld" = yes; then | |
1756 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
1757 shlibpath_overrides_runpath=no | |
1758 else | |
1759 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
1760 shlibpath_overrides_runpath=yes | |
1761 case $host_os in | |
1762 sco3.2v5*) | |
1763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
1764 ;; | |
1765 esac | |
1766 fi | |
1767 sys_lib_dlsearch_path_spec='/usr/lib' | |
1768 ;; | |
1769 | |
1571 uts4*) | 1770 uts4*) |
1572 version_type=linux | 1771 version_type=linux |
1573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1574 soname_spec='${libname}${release}${shared_ext}$major' | 1773 soname_spec='${libname}${release}${shared_ext}$major' |
1575 shlibpath_var=LD_LIBRARY_PATH | 1774 shlibpath_var=LD_LIBRARY_PATH |
1579 dynamic_linker=no | 1778 dynamic_linker=no |
1580 ;; | 1779 ;; |
1581 esac | 1780 esac |
1582 AC_MSG_RESULT([$dynamic_linker]) | 1781 AC_MSG_RESULT([$dynamic_linker]) |
1583 test "$dynamic_linker" = no && can_build_shared=no | 1782 test "$dynamic_linker" = no && can_build_shared=no |
1783 | |
1784 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
1785 if test "$GCC" = yes; then | |
1786 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
1787 fi | |
1584 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | 1788 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
1585 | 1789 |
1586 | 1790 |
1587 # _LT_AC_TAGCONFIG | 1791 # _LT_AC_TAGCONFIG |
1588 # ---------------- | 1792 # ---------------- |
1603 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) | 1807 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
1604 else | 1808 else |
1605 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | 1809 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
1606 fi | 1810 fi |
1607 fi | 1811 fi |
1812 if test -z "$LTCFLAGS"; then | |
1813 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
1814 fi | |
1608 | 1815 |
1609 # Extract list of available tagged configurations in $ofile. | 1816 # Extract list of available tagged configurations in $ofile. |
1610 # Note that this assumes the entire list is on one line. | 1817 # Note that this assumes the entire list is on one line. |
1611 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | 1818 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
1612 | 1819 |
1629 if test -n "$tagname"; then | 1836 if test -n "$tagname"; then |
1630 echo appending configuration tag \"$tagname\" to $ofile | 1837 echo appending configuration tag \"$tagname\" to $ofile |
1631 | 1838 |
1632 case $tagname in | 1839 case $tagname in |
1633 CXX) | 1840 CXX) |
1634 if test -n "$CXX" && test "X$CXX" != "Xno"; then | 1841 if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
1842 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
1843 (test "X$CXX" != "Xg++"))) ; then | |
1635 AC_LIBTOOL_LANG_CXX_CONFIG | 1844 AC_LIBTOOL_LANG_CXX_CONFIG |
1636 else | 1845 else |
1637 tagname="" | 1846 tagname="" |
1638 fi | 1847 fi |
1639 ;; | 1848 ;; |
1691 ])# AC_LIBTOOL_DLOPEN | 1900 ])# AC_LIBTOOL_DLOPEN |
1692 | 1901 |
1693 | 1902 |
1694 # AC_LIBTOOL_WIN32_DLL | 1903 # AC_LIBTOOL_WIN32_DLL |
1695 # -------------------- | 1904 # -------------------- |
1696 # declare package support for building win32 dll's | 1905 # declare package support for building win32 DLLs |
1697 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | 1906 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
1698 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | 1907 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
1699 ])# AC_LIBTOOL_WIN32_DLL | 1908 ])# AC_LIBTOOL_WIN32_DLL |
1700 | 1909 |
1701 | 1910 |
1729 ])# AC_ENABLE_SHARED | 1938 ])# AC_ENABLE_SHARED |
1730 | 1939 |
1731 | 1940 |
1732 # AC_DISABLE_SHARED | 1941 # AC_DISABLE_SHARED |
1733 # ----------------- | 1942 # ----------------- |
1734 #- set the default shared flag to --disable-shared | 1943 # set the default shared flag to --disable-shared |
1735 AC_DEFUN([AC_DISABLE_SHARED], | 1944 AC_DEFUN([AC_DISABLE_SHARED], |
1736 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 1945 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
1737 AC_ENABLE_SHARED(no) | 1946 AC_ENABLE_SHARED(no) |
1738 ])# AC_DISABLE_SHARED | 1947 ])# AC_DISABLE_SHARED |
1739 | 1948 |
1865 if test -f $ac_dir/$1; then | 2074 if test -f $ac_dir/$1; then |
1866 lt_cv_path_MAGIC_CMD="$ac_dir/$1" | 2075 lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
1867 if test -n "$file_magic_test_file"; then | 2076 if test -n "$file_magic_test_file"; then |
1868 case $deplibs_check_method in | 2077 case $deplibs_check_method in |
1869 "file_magic "*) | 2078 "file_magic "*) |
1870 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | 2079 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
1871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 2080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
1872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 2081 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
1873 $EGREP "$file_magic_regex" > /dev/null; then | 2082 $EGREP "$file_magic_regex" > /dev/null; then |
1874 : | 2083 : |
1875 else | 2084 else |
1919 ])# AC_PATH_MAGIC | 2128 ])# AC_PATH_MAGIC |
1920 | 2129 |
1921 | 2130 |
1922 # AC_PROG_LD | 2131 # AC_PROG_LD |
1923 # ---------- | 2132 # ---------- |
1924 # find the path to the GNU or non-GNU linker | 2133 # find the pathname to the GNU or non-GNU linker |
1925 AC_DEFUN([AC_PROG_LD], | 2134 AC_DEFUN([AC_PROG_LD], |
1926 [AC_ARG_WITH([gnu-ld], | 2135 [AC_ARG_WITH([gnu-ld], |
1927 [AC_HELP_STRING([--with-gnu-ld], | 2136 [AC_HELP_STRING([--with-gnu-ld], |
1928 [assume the C compiler uses GNU ld @<:@default=no@:>@])], | 2137 [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
1929 [test "$withval" = no || with_gnu_ld=yes], | 2138 [test "$withval" = no || with_gnu_ld=yes], |
1945 esac | 2154 esac |
1946 case $ac_prog in | 2155 case $ac_prog in |
1947 # Accept absolute paths. | 2156 # Accept absolute paths. |
1948 [[\\/]]* | ?:[[\\/]]*) | 2157 [[\\/]]* | ?:[[\\/]]*) |
1949 re_direlt='/[[^/]][[^/]]*/\.\./' | 2158 re_direlt='/[[^/]][[^/]]*/\.\./' |
1950 # Canonicalize the path of ld | 2159 # Canonicalize the pathname of ld |
1951 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 2160 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
1952 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 2161 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
1953 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 2162 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
1954 done | 2163 done |
1955 test -z "$LD" && LD="$ac_prog" | 2164 test -z "$LD" && LD="$ac_prog" |
1975 IFS="$lt_save_ifs" | 2184 IFS="$lt_save_ifs" |
1976 test -z "$ac_dir" && ac_dir=. | 2185 test -z "$ac_dir" && ac_dir=. |
1977 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 2186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
1978 lt_cv_path_LD="$ac_dir/$ac_prog" | 2187 lt_cv_path_LD="$ac_dir/$ac_prog" |
1979 # Check to see if the program is GNU ld. I'd rather use --version, | 2188 # Check to see if the program is GNU ld. I'd rather use --version, |
1980 # but apparently some GNU ld's only accept -v. | 2189 # but apparently some variants of GNU ld only accept -v. |
1981 # Break only if it was the GNU/non-GNU ld that we prefer. | 2190 # Break only if it was the GNU/non-GNU ld that we prefer. |
1982 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 2191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
1983 *GNU* | *'with BFD'*) | 2192 *GNU* | *'with BFD'*) |
1984 test "$with_gnu_ld" != no && break | 2193 test "$with_gnu_ld" != no && break |
1985 ;; | 2194 ;; |
2007 # AC_PROG_LD_GNU | 2216 # AC_PROG_LD_GNU |
2008 # -------------- | 2217 # -------------- |
2009 AC_DEFUN([AC_PROG_LD_GNU], | 2218 AC_DEFUN([AC_PROG_LD_GNU], |
2010 [AC_REQUIRE([AC_PROG_EGREP])dnl | 2219 [AC_REQUIRE([AC_PROG_EGREP])dnl |
2011 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | 2220 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
2012 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | 2221 [# I'd rather use --version here, but apparently some GNU lds only accept -v. |
2013 case `"$LD" -v 2>&1 </dev/null` in | 2222 case `$LD -v 2>&1 </dev/null` in |
2014 *GNU* | *'with BFD'*) | 2223 *GNU* | *'with BFD'*) |
2015 lt_cv_prog_gnu_ld=yes | 2224 lt_cv_prog_gnu_ld=yes |
2016 ;; | 2225 ;; |
2017 *) | 2226 *) |
2018 lt_cv_prog_gnu_ld=no | 2227 lt_cv_prog_gnu_ld=no |
2034 case $reload_flag in | 2243 case $reload_flag in |
2035 "" | " "*) ;; | 2244 "" | " "*) ;; |
2036 *) reload_flag=" $reload_flag" ;; | 2245 *) reload_flag=" $reload_flag" ;; |
2037 esac | 2246 esac |
2038 reload_cmds='$LD$reload_flag -o $output$reload_objs' | 2247 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
2248 case $host_os in | |
2249 darwin*) | |
2250 if test "$GCC" = yes; then | |
2251 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
2252 else | |
2253 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
2254 fi | |
2255 ;; | |
2256 esac | |
2039 ])# AC_PROG_LD_RELOAD_FLAG | 2257 ])# AC_PROG_LD_RELOAD_FLAG |
2040 | 2258 |
2041 | 2259 |
2042 # AC_DEPLIBS_CHECK_METHOD | 2260 # AC_DEPLIBS_CHECK_METHOD |
2043 # ----------------------- | 2261 # ----------------------- |
2067 | 2285 |
2068 beos*) | 2286 beos*) |
2069 lt_cv_deplibs_check_method=pass_all | 2287 lt_cv_deplibs_check_method=pass_all |
2070 ;; | 2288 ;; |
2071 | 2289 |
2072 bsdi4*) | 2290 bsdi[[45]]*) |
2073 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | 2291 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
2074 lt_cv_file_magic_cmd='/usr/bin/file -L' | 2292 lt_cv_file_magic_cmd='/usr/bin/file -L' |
2075 lt_cv_file_magic_test_file=/shlib/libc.so | 2293 lt_cv_file_magic_test_file=/shlib/libc.so |
2076 ;; | 2294 ;; |
2077 | 2295 |
2078 cygwin* | mingw* | pw32*) | 2296 cygwin*) |
2079 # win32_libid is a shell function defined in ltmain.sh | 2297 # func_win32_libid is a shell function defined in ltmain.sh |
2080 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 2298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
2081 lt_cv_file_magic_cmd='win32_libid' | 2299 lt_cv_file_magic_cmd='func_win32_libid' |
2300 ;; | |
2301 | |
2302 mingw* | pw32*) | |
2303 # Base MSYS/MinGW do not provide the 'file' command needed by | |
2304 # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
2305 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
2306 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
2082 ;; | 2307 ;; |
2083 | 2308 |
2084 darwin* | rhapsody*) | 2309 darwin* | rhapsody*) |
2085 # this will be overwritten by pass_all, but leave it in just in case | |
2086 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
2087 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
2088 case "$host_os" in | |
2089 rhapsody* | darwin1.[[012]]) | |
2090 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` | |
2091 ;; | |
2092 *) # Darwin 1.3 on | |
2093 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
2094 ;; | |
2095 esac | |
2096 lt_cv_deplibs_check_method=pass_all | 2310 lt_cv_deplibs_check_method=pass_all |
2097 ;; | 2311 ;; |
2098 | 2312 |
2099 freebsd*) | 2313 freebsd* | kfreebsd*-gnu | dragonfly*) |
2100 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 2314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2101 case $host_cpu in | 2315 case $host_cpu in |
2102 i*86 ) | 2316 i*86 ) |
2103 # Not sure whether the presence of OpenBSD here was a mistake. | 2317 # Not sure whether the presence of OpenBSD here was a mistake. |
2104 # Let's accept both of them until this is cleared up. | 2318 # Let's accept both of them until this is cleared up. |
2105 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' | 2319 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
2106 lt_cv_file_magic_cmd=/usr/bin/file | 2320 lt_cv_file_magic_cmd=/usr/bin/file |
2107 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 2321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
2108 ;; | 2322 ;; |
2109 esac | 2323 esac |
2110 else | 2324 else |
2116 lt_cv_deplibs_check_method=pass_all | 2330 lt_cv_deplibs_check_method=pass_all |
2117 ;; | 2331 ;; |
2118 | 2332 |
2119 hpux10.20* | hpux11*) | 2333 hpux10.20* | hpux11*) |
2120 lt_cv_file_magic_cmd=/usr/bin/file | 2334 lt_cv_file_magic_cmd=/usr/bin/file |
2121 case "$host_cpu" in | 2335 case $host_cpu in |
2122 ia64*) | 2336 ia64*) |
2123 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | 2337 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
2124 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 2338 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
2125 ;; | 2339 ;; |
2126 hppa*64*) | 2340 hppa*64*) |
2132 lt_cv_file_magic_test_file=/usr/lib/libc.sl | 2346 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
2133 ;; | 2347 ;; |
2134 esac | 2348 esac |
2135 ;; | 2349 ;; |
2136 | 2350 |
2351 interix3*) | |
2352 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
2353 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | |
2354 ;; | |
2355 | |
2137 irix5* | irix6* | nonstopux*) | 2356 irix5* | irix6* | nonstopux*) |
2138 case $host_os in | 2357 case $LD in |
2139 irix5* | nonstopux*) | 2358 *-32|*"-32 ") libmagic=32-bit;; |
2140 # this will be overridden with pass_all, but let us keep it just in case | 2359 *-n32|*"-n32 ") libmagic=N32;; |
2141 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | 2360 *-64|*"-64 ") libmagic=64-bit;; |
2142 ;; | 2361 *) libmagic=never-match;; |
2143 *) | |
2144 case $LD in | |
2145 *-32|*"-32 ") libmagic=32-bit;; | |
2146 *-n32|*"-n32 ") libmagic=N32;; | |
2147 *-64|*"-64 ") libmagic=64-bit;; | |
2148 *) libmagic=never-match;; | |
2149 esac | |
2150 # this will be overridden with pass_all, but let us keep it just in case | |
2151 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" | |
2152 ;; | |
2153 esac | 2362 esac |
2154 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
2155 lt_cv_deplibs_check_method=pass_all | 2363 lt_cv_deplibs_check_method=pass_all |
2156 ;; | 2364 ;; |
2157 | 2365 |
2158 # This must be Linux ELF. | 2366 # This must be Linux ELF. |
2159 linux*) | 2367 linux*) |
2160 case $host_cpu in | 2368 lt_cv_deplibs_check_method=pass_all |
2161 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) | |
2162 lt_cv_deplibs_check_method=pass_all ;; | |
2163 *) | |
2164 # glibc up to 2.1.1 does not perform some relocations on ARM | |
2165 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; | |
2166 esac | |
2167 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
2168 ;; | 2369 ;; |
2169 | 2370 |
2170 netbsd*) | 2371 netbsd*) |
2171 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 2372 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2172 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | 2373 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2179 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | 2380 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
2180 lt_cv_file_magic_cmd=/usr/bin/file | 2381 lt_cv_file_magic_cmd=/usr/bin/file |
2181 lt_cv_file_magic_test_file=/usr/lib/libnls.so | 2382 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
2182 ;; | 2383 ;; |
2183 | 2384 |
2184 nto-qnx) | 2385 nto-qnx*) |
2185 lt_cv_deplibs_check_method=unknown | 2386 lt_cv_deplibs_check_method=unknown |
2186 ;; | 2387 ;; |
2187 | 2388 |
2188 openbsd*) | 2389 openbsd*) |
2189 lt_cv_file_magic_cmd=/usr/bin/file | |
2190 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
2191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 2390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2192 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' | 2391 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
2193 else | 2392 else |
2194 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | 2393 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2195 fi | 2394 fi |
2196 ;; | 2395 ;; |
2197 | 2396 |
2198 osf3* | osf4* | osf5*) | 2397 osf3* | osf4* | osf5*) |
2199 # this will be overridden with pass_all, but let us keep it just in case | |
2200 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
2201 lt_cv_file_magic_test_file=/shlib/libc.so | |
2202 lt_cv_deplibs_check_method=pass_all | |
2203 ;; | |
2204 | |
2205 sco3.2v5*) | |
2206 lt_cv_deplibs_check_method=pass_all | 2398 lt_cv_deplibs_check_method=pass_all |
2207 ;; | 2399 ;; |
2208 | 2400 |
2209 solaris*) | 2401 solaris*) |
2210 lt_cv_deplibs_check_method=pass_all | 2402 lt_cv_deplibs_check_method=pass_all |
2211 lt_cv_file_magic_test_file=/lib/libc.so | 2403 ;; |
2212 ;; | 2404 |
2213 | 2405 sysv4 | sysv4.3*) |
2214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
2215 case $host_vendor in | 2406 case $host_vendor in |
2216 motorola) | 2407 motorola) |
2217 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]]' | 2408 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]]' |
2218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 2409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
2219 ;; | 2410 ;; |
2230 lt_cv_file_magic_test_file=/lib/libc.so | 2421 lt_cv_file_magic_test_file=/lib/libc.so |
2231 ;; | 2422 ;; |
2232 siemens) | 2423 siemens) |
2233 lt_cv_deplibs_check_method=pass_all | 2424 lt_cv_deplibs_check_method=pass_all |
2234 ;; | 2425 ;; |
2426 pc) | |
2427 lt_cv_deplibs_check_method=pass_all | |
2428 ;; | |
2235 esac | 2429 esac |
2236 ;; | 2430 ;; |
2237 | 2431 |
2238 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) | 2432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
2239 lt_cv_deplibs_check_method=pass_all | 2433 lt_cv_deplibs_check_method=pass_all |
2240 ;; | 2434 ;; |
2241 esac | 2435 esac |
2242 ]) | 2436 ]) |
2243 file_magic_cmd=$lt_cv_file_magic_cmd | 2437 file_magic_cmd=$lt_cv_file_magic_cmd |
2246 ])# AC_DEPLIBS_CHECK_METHOD | 2440 ])# AC_DEPLIBS_CHECK_METHOD |
2247 | 2441 |
2248 | 2442 |
2249 # AC_PROG_NM | 2443 # AC_PROG_NM |
2250 # ---------- | 2444 # ---------- |
2251 # find the path to a BSD-compatible name lister | 2445 # find the pathname to a BSD-compatible name lister |
2252 AC_DEFUN([AC_PROG_NM], | 2446 AC_DEFUN([AC_PROG_NM], |
2253 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, | 2447 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
2254 [if test -n "$NM"; then | 2448 [if test -n "$NM"; then |
2255 # Let the user override the test. | 2449 # Let the user override the test. |
2256 lt_cv_path_NM="$NM" | 2450 lt_cv_path_NM="$NM" |
2257 else | 2451 else |
2258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 2452 lt_nm_to_check="${ac_tool_prefix}nm" |
2259 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 2453 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
2260 IFS="$lt_save_ifs" | 2454 lt_nm_to_check="$lt_nm_to_check nm" |
2261 test -z "$ac_dir" && ac_dir=. | 2455 fi |
2262 tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 2456 for lt_tmp_nm in $lt_nm_to_check; do |
2263 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 2457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2264 # Check to see if the nm accepts a BSD-compat flag. | 2458 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
2265 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 2459 IFS="$lt_save_ifs" |
2266 # nm: unknown option "B" ignored | 2460 test -z "$ac_dir" && ac_dir=. |
2267 # Tru64's nm complains that /dev/null is an invalid object file | 2461 tmp_nm="$ac_dir/$lt_tmp_nm" |
2268 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 2462 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
2269 */dev/null* | *'Invalid file or object type'*) | 2463 # Check to see if the nm accepts a BSD-compat flag. |
2270 lt_cv_path_NM="$tmp_nm -B" | 2464 # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
2271 break | 2465 # nm: unknown option "B" ignored |
2272 ;; | 2466 # Tru64's nm complains that /dev/null is an invalid object file |
2273 *) | 2467 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
2274 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 2468 */dev/null* | *'Invalid file or object type'*) |
2275 */dev/null*) | 2469 lt_cv_path_NM="$tmp_nm -B" |
2276 lt_cv_path_NM="$tmp_nm -p" | |
2277 break | 2470 break |
2278 ;; | 2471 ;; |
2279 *) | 2472 *) |
2280 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 2473 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
2281 continue # so that we can try to find one that supports BSD flags | 2474 */dev/null*) |
2475 lt_cv_path_NM="$tmp_nm -p" | |
2476 break | |
2477 ;; | |
2478 *) | |
2479 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
2480 continue # so that we can try to find one that supports BSD flags | |
2481 ;; | |
2482 esac | |
2282 ;; | 2483 ;; |
2283 esac | 2484 esac |
2284 esac | 2485 fi |
2285 fi | 2486 done |
2487 IFS="$lt_save_ifs" | |
2286 done | 2488 done |
2287 IFS="$lt_save_ifs" | |
2288 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 2489 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
2289 fi]) | 2490 fi]) |
2290 NM="$lt_cv_path_NM" | 2491 NM="$lt_cv_path_NM" |
2291 ])# AC_PROG_NM | 2492 ])# AC_PROG_NM |
2292 | 2493 |
2314 | 2515 |
2315 # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) | 2516 # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
2316 # ----------------------------------- | 2517 # ----------------------------------- |
2317 # sets LIBLTDL to the link flags for the libltdl convenience library and | 2518 # sets LIBLTDL to the link flags for the libltdl convenience library and |
2318 # LTDLINCL to the include flags for the libltdl header and adds | 2519 # LTDLINCL to the include flags for the libltdl header and adds |
2319 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL | 2520 # --enable-ltdl-convenience to the configure arguments. Note that |
2320 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If | 2521 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
2321 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will | 2522 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with |
2322 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with | 2523 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' |
2323 # '${top_srcdir}/' (note the single quotes!). If your package is not | 2524 # (note the single quotes!). If your package is not flat and you're not |
2324 # flat and you're not using automake, define top_builddir and | 2525 # using automake, define top_builddir and top_srcdir appropriately in |
2325 # top_srcdir appropriately in the Makefiles. | 2526 # the Makefiles. |
2326 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | 2527 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
2327 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 2528 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2328 case $enable_ltdl_convenience in | 2529 case $enable_ltdl_convenience in |
2329 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | 2530 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
2330 "") enable_ltdl_convenience=yes | 2531 "") enable_ltdl_convenience=yes |
2339 | 2540 |
2340 # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) | 2541 # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
2341 # ----------------------------------- | 2542 # ----------------------------------- |
2342 # sets LIBLTDL to the link flags for the libltdl installable library and | 2543 # sets LIBLTDL to the link flags for the libltdl installable library and |
2343 # LTDLINCL to the include flags for the libltdl header and adds | 2544 # LTDLINCL to the include flags for the libltdl header and adds |
2344 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL | 2545 # --enable-ltdl-install to the configure arguments. Note that |
2345 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If | 2546 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
2346 # DIRECTORY is not provided and an installed libltdl is not found, it is | 2547 # and an installed libltdl is not found, it is assumed to be `libltdl'. |
2347 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' | 2548 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with |
2348 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single | 2549 # '${top_srcdir}/' (note the single quotes!). If your package is not |
2349 # quotes!). If your package is not flat and you're not using automake, | 2550 # flat and you're not using automake, define top_builddir and top_srcdir |
2350 # define top_builddir and top_srcdir appropriately in the Makefiles. | 2551 # appropriately in the Makefiles. |
2351 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | 2552 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
2352 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | 2553 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
2353 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 2554 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2354 AC_CHECK_LIB(ltdl, lt_dlinit, | 2555 AC_CHECK_LIB(ltdl, lt_dlinit, |
2355 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | 2556 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
2383 | 2584 |
2384 # _LT_AC_LANG_CXX | 2585 # _LT_AC_LANG_CXX |
2385 # --------------- | 2586 # --------------- |
2386 AC_DEFUN([_LT_AC_LANG_CXX], | 2587 AC_DEFUN([_LT_AC_LANG_CXX], |
2387 [AC_REQUIRE([AC_PROG_CXX]) | 2588 [AC_REQUIRE([AC_PROG_CXX]) |
2388 AC_REQUIRE([AC_PROG_CXXCPP]) | 2589 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
2389 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`]) | 2590 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
2390 ])# _LT_AC_LANG_CXX | 2591 ])# _LT_AC_LANG_CXX |
2391 | 2592 |
2593 # _LT_AC_PROG_CXXCPP | |
2594 # ------------------ | |
2595 AC_DEFUN([_LT_AC_PROG_CXXCPP], | |
2596 [ | |
2597 AC_REQUIRE([AC_PROG_CXX]) | |
2598 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
2599 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
2600 (test "X$CXX" != "Xg++"))) ; then | |
2601 AC_PROG_CXXCPP | |
2602 fi | |
2603 ])# _LT_AC_PROG_CXXCPP | |
2392 | 2604 |
2393 # AC_LIBTOOL_F77 | 2605 # AC_LIBTOOL_F77 |
2394 # -------------- | 2606 # -------------- |
2395 # enable support for Fortran 77 libraries | 2607 # enable support for Fortran 77 libraries |
2396 AC_DEFUN([AC_LIBTOOL_F77], | 2608 AC_DEFUN([AC_LIBTOOL_F77], |
2400 | 2612 |
2401 # _LT_AC_LANG_F77 | 2613 # _LT_AC_LANG_F77 |
2402 # --------------- | 2614 # --------------- |
2403 AC_DEFUN([_LT_AC_LANG_F77], | 2615 AC_DEFUN([_LT_AC_LANG_F77], |
2404 [AC_REQUIRE([AC_PROG_F77]) | 2616 [AC_REQUIRE([AC_PROG_F77]) |
2405 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`]) | 2617 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) |
2406 ])# _LT_AC_LANG_F77 | 2618 ])# _LT_AC_LANG_F77 |
2407 | 2619 |
2408 | 2620 |
2409 # AC_LIBTOOL_GCJ | 2621 # AC_LIBTOOL_GCJ |
2410 # -------------- | 2622 # -------------- |
2421 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], | 2633 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
2422 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], | 2634 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
2423 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], | 2635 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
2424 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], | 2636 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
2425 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) | 2637 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
2426 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`]) | 2638 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
2427 ])# _LT_AC_LANG_GCJ | 2639 ])# _LT_AC_LANG_GCJ |
2428 | 2640 |
2429 | 2641 |
2430 # AC_LIBTOOL_RC | 2642 # AC_LIBTOOL_RC |
2431 # -------------- | 2643 # ------------- |
2432 # enable support for Windows resource files | 2644 # enable support for Windows resource files |
2433 AC_DEFUN([AC_LIBTOOL_RC], | 2645 AC_DEFUN([AC_LIBTOOL_RC], |
2434 [AC_REQUIRE([LT_AC_PROG_RC]) | 2646 [AC_REQUIRE([LT_AC_PROG_RC]) |
2435 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`]) | 2647 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
2436 ])# AC_LIBTOOL_RC | 2648 ])# AC_LIBTOOL_RC |
2437 | 2649 |
2438 | 2650 |
2439 # AC_LIBTOOL_LANG_C_CONFIG | 2651 # AC_LIBTOOL_LANG_C_CONFIG |
2440 # ------------------------ | 2652 # ------------------------ |
2459 # Code to be used in simple link tests | 2671 # Code to be used in simple link tests |
2460 lt_simple_link_test_code='int main(){return(0);}\n' | 2672 lt_simple_link_test_code='int main(){return(0);}\n' |
2461 | 2673 |
2462 _LT_AC_SYS_COMPILER | 2674 _LT_AC_SYS_COMPILER |
2463 | 2675 |
2464 # | 2676 # save warnings/boilerplate of simple test code |
2465 # Check for any special shared library compilation flags. | 2677 _LT_COMPILER_BOILERPLATE |
2466 # | 2678 _LT_LINKER_BOILERPLATE |
2467 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= | |
2468 if test "$GCC" = no; then | |
2469 case $host_os in | |
2470 sco3.2v5*) | |
2471 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' | |
2472 ;; | |
2473 esac | |
2474 fi | |
2475 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then | |
2476 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) | |
2477 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : | |
2478 else | |
2479 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) | |
2480 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no | |
2481 fi | |
2482 fi | |
2483 | |
2484 | |
2485 # | |
2486 # Check to make sure the static flag actually works. | |
2487 # | |
2488 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], | |
2489 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | |
2490 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), | |
2491 [], | |
2492 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | |
2493 | |
2494 | 2679 |
2495 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | 2680 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
2496 AC_LIBTOOL_PROG_COMPILER_PIC($1) | 2681 AC_LIBTOOL_PROG_COMPILER_PIC($1) |
2497 AC_LIBTOOL_PROG_CC_C_O($1) | 2682 AC_LIBTOOL_PROG_CC_C_O($1) |
2498 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | 2683 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
2499 AC_LIBTOOL_PROG_LD_SHLIBS($1) | 2684 AC_LIBTOOL_PROG_LD_SHLIBS($1) |
2685 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
2500 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 2686 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
2501 AC_LIBTOOL_SYS_LIB_STRIP | 2687 AC_LIBTOOL_SYS_LIB_STRIP |
2502 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 2688 AC_LIBTOOL_DLOPEN_SELF |
2503 AC_LIBTOOL_DLOPEN_SELF($1) | 2689 |
2504 | 2690 # Report which library types will actually be built |
2505 # Report which librarie types wil actually be built | |
2506 AC_MSG_CHECKING([if libtool supports shared libraries]) | 2691 AC_MSG_CHECKING([if libtool supports shared libraries]) |
2507 AC_MSG_RESULT([$can_build_shared]) | 2692 AC_MSG_RESULT([$can_build_shared]) |
2508 | 2693 |
2509 AC_MSG_CHECKING([whether to build shared libraries]) | 2694 AC_MSG_CHECKING([whether to build shared libraries]) |
2510 test "$can_build_shared" = "no" && enable_shared=no | 2695 test "$can_build_shared" = "no" && enable_shared=no |
2511 | 2696 |
2512 # On AIX, shared libraries and static libraries use the same namespace, and | 2697 # On AIX, shared libraries and static libraries use the same namespace, and |
2513 # are all built from PIC. | 2698 # are all built from PIC. |
2514 case "$host_os" in | 2699 case $host_os in |
2515 aix3*) | 2700 aix3*) |
2516 test "$enable_shared" = yes && enable_static=no | 2701 test "$enable_shared" = yes && enable_static=no |
2517 if test -n "$RANLIB"; then | 2702 if test -n "$RANLIB"; then |
2518 archive_cmds="$archive_cmds~\$RANLIB \$lib" | 2703 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
2519 postinstall_cmds='$RANLIB $lib' | 2704 postinstall_cmds='$RANLIB $lib' |
2520 fi | 2705 fi |
2521 ;; | 2706 ;; |
2522 | 2707 |
2523 aix4*) | 2708 aix4* | aix5*) |
2524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 2709 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
2525 test "$enable_shared" = yes && enable_static=no | 2710 test "$enable_shared" = yes && enable_static=no |
2526 fi | 2711 fi |
2527 ;; | 2712 ;; |
2528 darwin* | rhapsody*) | |
2529 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | |
2530 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
2531 case "$host_os" in | |
2532 rhapsody* | darwin1.[[012]]) | |
2533 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' | |
2534 ;; | |
2535 *) # Darwin 1.3 on | |
2536 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' | |
2537 ;; | |
2538 esac | |
2539 # FIXME: Relying on posixy $() will cause problems for | |
2540 # cross-compilation, but unfortunately the echo tests do not | |
2541 # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
2542 # `"' quotes if we put them in here... so don't! | |
2543 output_verbose_link_cmd='echo' | |
2544 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' | |
2545 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | |
2546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
2547 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
2548 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
2549 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
2550 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | |
2551 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
2552 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' | |
2553 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
2554 fi | |
2555 ;; | |
2556 esac | 2713 esac |
2557 AC_MSG_RESULT([$enable_shared]) | 2714 AC_MSG_RESULT([$enable_shared]) |
2558 | 2715 |
2559 AC_MSG_CHECKING([whether to build static libraries]) | 2716 AC_MSG_CHECKING([whether to build static libraries]) |
2560 # Make sure either enable_shared or enable_static is yes. | 2717 # Make sure either enable_shared or enable_static is yes. |
2575 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 2732 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
2576 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | 2733 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
2577 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | 2734 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
2578 [AC_LANG_PUSH(C++) | 2735 [AC_LANG_PUSH(C++) |
2579 AC_REQUIRE([AC_PROG_CXX]) | 2736 AC_REQUIRE([AC_PROG_CXX]) |
2580 AC_REQUIRE([AC_PROG_CXXCPP]) | 2737 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
2581 | 2738 |
2582 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 2739 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
2583 _LT_AC_TAGVAR(allow_undefined_flag, $1)= | 2740 _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
2584 _LT_AC_TAGVAR(always_export_symbols, $1)=no | 2741 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
2585 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | 2742 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
2587 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 2744 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
2588 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | 2745 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
2589 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | 2746 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
2590 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 2747 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2591 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | 2748 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
2749 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
2592 _LT_AC_TAGVAR(hardcode_automatic, $1)=no | 2750 _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
2593 _LT_AC_TAGVAR(module_cmds, $1)= | 2751 _LT_AC_TAGVAR(module_cmds, $1)= |
2594 _LT_AC_TAGVAR(module_expsym_cmds, $1)= | 2752 _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
2595 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | 2753 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
2596 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | 2754 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
2604 _LT_AC_TAGVAR(predeps, $1)= | 2762 _LT_AC_TAGVAR(predeps, $1)= |
2605 _LT_AC_TAGVAR(postdeps, $1)= | 2763 _LT_AC_TAGVAR(postdeps, $1)= |
2606 _LT_AC_TAGVAR(compiler_lib_search_path, $1)= | 2764 _LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
2607 | 2765 |
2608 # Source file extension for C++ test sources. | 2766 # Source file extension for C++ test sources. |
2609 ac_ext=cc | 2767 ac_ext=cpp |
2610 | 2768 |
2611 # Object file extension for compiled C++ test sources. | 2769 # Object file extension for compiled C++ test sources. |
2612 objext=o | 2770 objext=o |
2613 _LT_AC_TAGVAR(objext, $1)=$objext | 2771 _LT_AC_TAGVAR(objext, $1)=$objext |
2614 | 2772 |
2615 # Code to be used in simple compile tests | 2773 # Code to be used in simple compile tests |
2616 lt_simple_compile_test_code="int some_variable = 0;\n" | 2774 lt_simple_compile_test_code="int some_variable = 0;\n" |
2617 | 2775 |
2618 # Code to be used in simple link tests | 2776 # Code to be used in simple link tests |
2619 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | 2777 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' |
2620 | 2778 |
2621 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 2779 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
2622 _LT_AC_SYS_COMPILER | 2780 _LT_AC_SYS_COMPILER |
2781 | |
2782 # save warnings/boilerplate of simple test code | |
2783 _LT_COMPILER_BOILERPLATE | |
2784 _LT_LINKER_BOILERPLATE | |
2623 | 2785 |
2624 # Allow CC to be a program name with arguments. | 2786 # Allow CC to be a program name with arguments. |
2625 lt_save_CC=$CC | 2787 lt_save_CC=$CC |
2626 lt_save_LD=$LD | 2788 lt_save_LD=$LD |
2627 lt_save_GCC=$GCC | 2789 lt_save_GCC=$GCC |
2629 lt_save_with_gnu_ld=$with_gnu_ld | 2791 lt_save_with_gnu_ld=$with_gnu_ld |
2630 lt_save_path_LD=$lt_cv_path_LD | 2792 lt_save_path_LD=$lt_cv_path_LD |
2631 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 2793 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
2632 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 2794 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
2633 else | 2795 else |
2634 unset lt_cv_prog_gnu_ld | 2796 $as_unset lt_cv_prog_gnu_ld |
2635 fi | 2797 fi |
2636 if test -n "${lt_cv_path_LDCXX+set}"; then | 2798 if test -n "${lt_cv_path_LDCXX+set}"; then |
2637 lt_cv_path_LD=$lt_cv_path_LDCXX | 2799 lt_cv_path_LD=$lt_cv_path_LDCXX |
2638 else | 2800 else |
2639 unset lt_cv_path_LD | 2801 $as_unset lt_cv_path_LD |
2640 fi | 2802 fi |
2641 test -z "${LDCXX+set}" || LD=$LDCXX | 2803 test -z "${LDCXX+set}" || LD=$LDCXX |
2642 CC=${CXX-"c++"} | 2804 CC=${CXX-"c++"} |
2643 compiler=$CC | 2805 compiler=$CC |
2644 _LT_AC_TAGVAR(compiler, $1)=$CC | 2806 _LT_AC_TAGVAR(compiler, $1)=$CC |
2645 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 2807 _LT_CC_BASENAME([$compiler]) |
2646 | 2808 |
2647 # We don't want -fno-exception wen compiling C++ code, so set the | 2809 # We don't want -fno-exception wen compiling C++ code, so set the |
2648 # no_builtin_flag separately | 2810 # no_builtin_flag separately |
2649 if test "$GXX" = yes; then | 2811 if test "$GXX" = yes; then |
2650 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | 2812 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
2685 # A generic and very simple default shared library creation | 2847 # A generic and very simple default shared library creation |
2686 # command for GNU C++ for the case where it uses the native | 2848 # command for GNU C++ for the case where it uses the native |
2687 # linker, instead of GNU ld. If possible, this setting should | 2849 # linker, instead of GNU ld. If possible, this setting should |
2688 # overridden to take advantage of the native linker features on | 2850 # overridden to take advantage of the native linker features on |
2689 # the platform it is being used on. | 2851 # the platform it is being used on. |
2690 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 2852 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
2691 fi | 2853 fi |
2692 | 2854 |
2693 # Commands to make compiler produce verbose output that lists | 2855 # Commands to make compiler produce verbose output that lists |
2694 # what "hidden" libraries, object files and flags are used when | 2856 # what "hidden" libraries, object files and flags are used when |
2695 # linking a shared library. | 2857 # linking a shared library. |
2729 aix_use_runtimelinking=yes | 2891 aix_use_runtimelinking=yes |
2730 break | 2892 break |
2731 ;; | 2893 ;; |
2732 esac | 2894 esac |
2733 done | 2895 done |
2896 ;; | |
2734 esac | 2897 esac |
2735 | 2898 |
2736 exp_sym_flag='-bexport' | 2899 exp_sym_flag='-bexport' |
2737 no_entry_flag='-bnoentry' | 2900 no_entry_flag='-bnoentry' |
2738 fi | 2901 fi |
2747 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 2910 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
2748 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | 2911 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
2749 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 2912 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
2750 | 2913 |
2751 if test "$GXX" = yes; then | 2914 if test "$GXX" = yes; then |
2752 case $host_os in aix4.[012]|aix4.[012].*) | 2915 case $host_os in aix4.[[012]]|aix4.[[012]].*) |
2753 # We only want to do this on AIX 4.2 and lower, the check | 2916 # We only want to do this on AIX 4.2 and lower, the check |
2754 # below for broken collect2 doesn't work under 4.3+ | 2917 # below for broken collect2 doesn't work under 4.3+ |
2755 collect2name=`${CC} -print-prog-name=collect2` | 2918 collect2name=`${CC} -print-prog-name=collect2` |
2756 if test -f "$collect2name" && \ | 2919 if test -f "$collect2name" && \ |
2757 strings "$collect2name" | grep resolve_lib_name >/dev/null | 2920 strings "$collect2name" | grep resolve_lib_name >/dev/null |
2766 # to unsupported forces relinking | 2929 # to unsupported forces relinking |
2767 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 2930 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
2768 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 2931 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2769 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 2932 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2770 fi | 2933 fi |
2934 ;; | |
2771 esac | 2935 esac |
2772 shared_flag='-shared' | 2936 shared_flag='-shared' |
2937 if test "$aix_use_runtimelinking" = yes; then | |
2938 shared_flag="$shared_flag "'${wl}-G' | |
2939 fi | |
2773 else | 2940 else |
2774 # not using gcc | 2941 # not using gcc |
2775 if test "$host_cpu" = ia64; then | 2942 if test "$host_cpu" = ia64; then |
2776 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 2943 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
2777 # chokes on -Wl,-G. The following line is correct: | 2944 # chokes on -Wl,-G. The following line is correct: |
2794 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | 2961 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
2795 # Determine the default libpath from the value encoded in an empty executable. | 2962 # Determine the default libpath from the value encoded in an empty executable. |
2796 _LT_AC_SYS_LIBPATH_AIX | 2963 _LT_AC_SYS_LIBPATH_AIX |
2797 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 2964 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
2798 | 2965 |
2799 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 2966 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" |
2800 else | 2967 else |
2801 if test "$host_cpu" = ia64; then | 2968 if test "$host_cpu" = ia64; then |
2802 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 2969 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
2803 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 2970 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
2804 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 2971 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" |
2805 else | 2972 else |
2806 # Determine the default libpath from the value encoded in an empty executable. | 2973 # Determine the default libpath from the value encoded in an empty executable. |
2807 _LT_AC_SYS_LIBPATH_AIX | 2974 _LT_AC_SYS_LIBPATH_AIX |
2808 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 2975 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
2809 # Warning - without using the other run time loading flags, | 2976 # Warning - without using the other run time loading flags, |
2810 # -berok will link without error, but may produce a broken library. | 2977 # -berok will link without error, but may produce a broken library. |
2811 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 2978 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
2812 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 2979 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
2813 # -bexpall does not export symbols beginning with underscore (_) | |
2814 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | |
2815 # Exported symbols can be pulled into shared objects from archives | 2980 # Exported symbols can be pulled into shared objects from archives |
2816 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' | 2981 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
2817 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 2982 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
2818 # This is similar to how AIX traditionally builds it's shared libraries. | 2983 # This is similar to how AIX traditionally builds its shared libraries. |
2819 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 2984 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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' |
2820 fi | 2985 fi |
2821 fi | 2986 fi |
2822 ;; | 2987 ;; |
2988 | |
2989 beos*) | |
2990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
2991 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | |
2992 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
2993 # support --undefined. This deserves some investigation. FIXME | |
2994 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
2995 else | |
2996 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
2997 fi | |
2998 ;; | |
2999 | |
2823 chorus*) | 3000 chorus*) |
2824 case $cc_basename in | 3001 case $cc_basename in |
2825 *) | 3002 *) |
2826 # FIXME: insert proper C++ library support | 3003 # FIXME: insert proper C++ library support |
2827 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3004 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2836 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 3013 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
2837 _LT_AC_TAGVAR(always_export_symbols, $1)=no | 3014 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
2838 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 3015 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
2839 | 3016 |
2840 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 3017 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
2841 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 3018 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
2842 # If the export-symbols file already is a .def file (1st line | 3019 # If the export-symbols file already is a .def file (1st line |
2843 # is EXPORTS), use it as is; otherwise, prepend... | 3020 # is EXPORTS), use it as is; otherwise, prepend... |
2844 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 3021 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
2845 cp $export_symbols $output_objdir/$soname.def; | 3022 cp $export_symbols $output_objdir/$soname.def; |
2846 else | 3023 else |
2847 echo EXPORTS > $output_objdir/$soname.def; | 3024 echo EXPORTS > $output_objdir/$soname.def; |
2848 cat $export_symbols >> $output_objdir/$soname.def; | 3025 cat $export_symbols >> $output_objdir/$soname.def; |
2849 fi~ | 3026 fi~ |
2850 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 3027 $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' |
2851 else | 3028 else |
2852 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3029 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2853 fi | 3030 fi |
2854 ;; | 3031 ;; |
2855 | 3032 darwin* | rhapsody*) |
2856 darwin* | rhapsody*) | 3033 case $host_os in |
2857 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 3034 rhapsody* | darwin1.[[012]]) |
2858 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3035 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
2859 case "$host_os" in | 3036 ;; |
2860 rhapsody* | darwin1.[[012]]) | 3037 *) # Darwin 1.3 on |
2861 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' | 3038 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
2862 ;; | 3039 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
2863 *) # Darwin 1.3 on | 3040 else |
2864 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' | 3041 case ${MACOSX_DEPLOYMENT_TARGET} in |
2865 ;; | 3042 10.[[012]]) |
2866 esac | 3043 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
2867 lt_int_apple_cc_single_mod=no | 3044 ;; |
2868 output_verbose_link_cmd='echo' | 3045 10.*) |
2869 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | 3046 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
2870 lt_int_apple_cc_single_mod=yes | 3047 ;; |
2871 fi | 3048 esac |
2872 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 3049 fi |
2873 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 3050 ;; |
2874 else | 3051 esac |
2875 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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' | 3052 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3053 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
3054 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | |
3055 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
3056 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | |
3057 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
3058 | |
3059 if test "$GXX" = yes ; then | |
3060 lt_int_apple_cc_single_mod=no | |
3061 output_verbose_link_cmd='echo' | |
3062 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
3063 lt_int_apple_cc_single_mod=yes | |
2876 fi | 3064 fi |
2877 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | |
2878 | |
2879 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
2880 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 3065 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
2881 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 3066 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
2882 else | 3067 else |
2883 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 3068 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
3069 fi | |
3070 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
3071 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
3072 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
3073 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
3074 else | |
3075 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
3076 fi | |
3077 _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | |
3078 else | |
3079 case $cc_basename in | |
3080 xlc*) | |
3081 output_verbose_link_cmd='echo' | |
3082 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
3083 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
3084 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
3085 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
3086 _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | |
3087 ;; | |
3088 *) | |
3089 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3090 ;; | |
3091 esac | |
2884 fi | 3092 fi |
2885 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | 3093 ;; |
2886 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
2887 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | |
2888 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
2889 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' | |
2890 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
2891 fi | |
2892 ;; | |
2893 | 3094 |
2894 dgux*) | 3095 dgux*) |
2895 case $cc_basename in | 3096 case $cc_basename in |
2896 ec++) | 3097 ec++*) |
2897 # FIXME: insert proper C++ library support | 3098 # FIXME: insert proper C++ library support |
2898 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3099 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2899 ;; | 3100 ;; |
2900 ghcx) | 3101 ghcx*) |
2901 # Green Hills C++ Compiler | 3102 # Green Hills C++ Compiler |
2902 # FIXME: insert proper C++ library support | 3103 # FIXME: insert proper C++ library support |
2903 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3104 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2904 ;; | 3105 ;; |
2905 *) | 3106 *) |
2906 # FIXME: insert proper C++ library support | 3107 # FIXME: insert proper C++ library support |
2907 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3108 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2908 ;; | 3109 ;; |
2909 esac | 3110 esac |
2910 ;; | 3111 ;; |
2911 freebsd[12]*) | 3112 freebsd[[12]]*) |
2912 # C++ shared libraries reported to be fairly broken before switch to ELF | 3113 # C++ shared libraries reported to be fairly broken before switch to ELF |
2913 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3114 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2914 ;; | 3115 ;; |
2915 freebsd-elf*) | 3116 freebsd-elf*) |
2916 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3117 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
2917 ;; | 3118 ;; |
2918 freebsd*) | 3119 freebsd* | kfreebsd*-gnu | dragonfly*) |
2919 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 3120 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
2920 # conventions | 3121 # conventions |
2921 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | 3122 _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
2922 ;; | 3123 ;; |
2923 gnu*) | 3124 gnu*) |
2930 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | 3131 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
2931 # but as the default | 3132 # but as the default |
2932 # location of the library. | 3133 # location of the library. |
2933 | 3134 |
2934 case $cc_basename in | 3135 case $cc_basename in |
2935 CC) | 3136 CC*) |
2936 # FIXME: insert proper C++ library support | 3137 # FIXME: insert proper C++ library support |
2937 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3138 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
2938 ;; | 3139 ;; |
2939 aCC) | 3140 aCC*) |
2940 _LT_AC_TAGVAR(archive_cmds, $1)='$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' | 3141 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
2941 # Commands to make compiler produce verbose output that lists | 3142 # Commands to make compiler produce verbose output that lists |
2942 # what "hidden" libraries, object files and flags are used when | 3143 # what "hidden" libraries, object files and flags are used when |
2943 # linking a shared library. | 3144 # linking a shared library. |
2944 # | 3145 # |
2945 # There doesn't appear to be a way to prevent this compiler from | 3146 # There doesn't appear to be a way to prevent this compiler from |
2946 # explicitly linking system object files so we need to strip them | 3147 # explicitly linking system object files so we need to strip them |
2947 # from the output so that they don't get included in the library | 3148 # from the output so that they don't get included in the library |
2948 # dependencies. | 3149 # dependencies. |
2949 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | 3150 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' |
2950 ;; | 3151 ;; |
2951 *) | 3152 *) |
2952 if test "$GXX" = yes; then | 3153 if test "$GXX" = yes; then |
2953 _LT_AC_TAGVAR(archive_cmds, $1)='$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' | 3154 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
2954 else | 3155 else |
2958 ;; | 3159 ;; |
2959 esac | 3160 esac |
2960 ;; | 3161 ;; |
2961 hpux10*|hpux11*) | 3162 hpux10*|hpux11*) |
2962 if test $with_gnu_ld = no; then | 3163 if test $with_gnu_ld = no; then |
2963 case "$host_cpu" in | 3164 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
2964 hppa*64*) | 3165 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2965 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 3166 |
3167 case $host_cpu in | |
3168 hppa*64*|ia64*) | |
2966 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | 3169 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
2967 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
2968 ;; | |
2969 ia64*) | |
2970 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
2971 ;; | 3170 ;; |
2972 *) | 3171 *) |
2973 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
2974 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
2975 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 3172 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
2976 ;; | 3173 ;; |
2977 esac | 3174 esac |
2978 fi | 3175 fi |
2979 case "$host_cpu" in | 3176 case $host_cpu in |
2980 hppa*64*) | 3177 hppa*64*|ia64*) |
2981 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 3178 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
2982 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 3179 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
2983 ;; | |
2984 ia64*) | |
2985 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
2986 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
2987 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
2988 # but as the default | |
2989 # location of the library. | |
2990 ;; | 3180 ;; |
2991 *) | 3181 *) |
2992 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 3182 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
2993 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | 3183 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
2994 # but as the default | 3184 # but as the default |
2995 # location of the library. | 3185 # location of the library. |
2996 ;; | 3186 ;; |
2997 esac | 3187 esac |
2998 | 3188 |
2999 case $cc_basename in | 3189 case $cc_basename in |
3000 CC) | 3190 CC*) |
3001 # FIXME: insert proper C++ library support | 3191 # FIXME: insert proper C++ library support |
3002 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3192 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3003 ;; | 3193 ;; |
3004 aCC) | 3194 aCC*) |
3005 case "$host_cpu" in | 3195 case $host_cpu in |
3006 hppa*64*|ia64*) | 3196 hppa*64*) |
3007 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 3197 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3198 ;; | |
3199 ia64*) | |
3200 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
3008 ;; | 3201 ;; |
3009 *) | 3202 *) |
3010 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 3203 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3011 ;; | 3204 ;; |
3012 esac | 3205 esac |
3021 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' | 3214 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' |
3022 ;; | 3215 ;; |
3023 *) | 3216 *) |
3024 if test "$GXX" = yes; then | 3217 if test "$GXX" = yes; then |
3025 if test $with_gnu_ld = no; then | 3218 if test $with_gnu_ld = no; then |
3026 case "$host_cpu" in | 3219 case $host_cpu in |
3027 ia64*|hppa*64*) | 3220 hppa*64*) |
3028 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 3221 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3222 ;; | |
3223 ia64*) | |
3224 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
3029 ;; | 3225 ;; |
3030 *) | 3226 *) |
3031 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 3227 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3032 ;; | 3228 ;; |
3033 esac | 3229 esac |
3037 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3233 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3038 fi | 3234 fi |
3039 ;; | 3235 ;; |
3040 esac | 3236 esac |
3041 ;; | 3237 ;; |
3238 interix3*) | |
3239 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
3240 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3241 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
3242 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
3243 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
3244 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
3245 # default) and relocated if they conflict, which is a slow very memory | |
3246 # consuming and fragmenting process. To avoid this, we pick a random, | |
3247 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
3248 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
3249 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
3250 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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' | |
3251 ;; | |
3042 irix5* | irix6*) | 3252 irix5* | irix6*) |
3043 case $cc_basename in | 3253 case $cc_basename in |
3044 CC) | 3254 CC*) |
3045 # SGI C++ | 3255 # SGI C++ |
3046 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | 3256 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
3047 | 3257 |
3048 # Archives containing C++ object files must be created using | 3258 # Archives containing C++ object files must be created using |
3049 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | 3259 # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
3050 # necessary to make sure instantiated templates are included | 3260 # necessary to make sure instantiated templates are included |
3051 # in the archive. | 3261 # in the archive. |
3052 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | 3262 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
3053 ;; | 3263 ;; |
3054 *) | 3264 *) |
3055 if test "$GXX" = yes; then | 3265 if test "$GXX" = yes; then |
3056 if test "$with_gnu_ld" = no; then | 3266 if test "$with_gnu_ld" = no; then |
3057 _LT_AC_TAGVAR(archive_cmds, $1)='$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}${objdir}/so_locations -o $lib' | 3267 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
3058 else | 3268 else |
3059 _LT_AC_TAGVAR(archive_cmds, $1)='$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' | 3269 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
3060 fi | 3270 fi |
3061 fi | 3271 fi |
3062 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 3272 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
3065 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 3275 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3066 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3276 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3067 ;; | 3277 ;; |
3068 linux*) | 3278 linux*) |
3069 case $cc_basename in | 3279 case $cc_basename in |
3070 KCC) | 3280 KCC*) |
3071 # Kuck and Associates, Inc. (KAI) C++ Compiler | 3281 # Kuck and Associates, Inc. (KAI) C++ Compiler |
3072 | 3282 |
3073 # KCC will only create a shared library if the output file | 3283 # KCC will only create a shared library if the output file |
3074 # ends with ".so" (or ".sl" for HP-UX), so rename the library | 3284 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
3075 # to its proper name (with version) after linking. | 3285 # to its proper name (with version) after linking. |
3090 | 3300 |
3091 # Archives containing C++ object files must be created using | 3301 # Archives containing C++ object files must be created using |
3092 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 3302 # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
3093 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | 3303 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
3094 ;; | 3304 ;; |
3095 icpc) | 3305 icpc*) |
3096 # Intel C++ | 3306 # Intel C++ |
3097 with_gnu_ld=yes | 3307 with_gnu_ld=yes |
3308 # version 8.0 and above of icpc choke on multiply defined symbols | |
3309 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
3310 # earlier do not add the objects themselves. | |
3311 case `$CC -V 2>&1` in | |
3312 *"Version 7."*) | |
3313 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
3314 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
3315 ;; | |
3316 *) # Version 8.0 or newer | |
3317 tmp_idyn= | |
3318 case $host_cpu in | |
3319 ia64*) tmp_idyn=' -i_dynamic';; | |
3320 esac | |
3321 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
3322 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
3323 ;; | |
3324 esac | |
3098 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3325 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3099 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
3100 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
3101 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 3326 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3102 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 3327 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
3103 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 3328 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
3104 ;; | 3329 ;; |
3105 cxx) | 3330 pgCC*) |
3331 # Portland Group C++ compiler | |
3332 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
3333 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$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' | |
3334 | |
3335 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | |
3336 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
3337 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
3338 ;; | |
3339 cxx*) | |
3106 # Compaq C++ | 3340 # Compaq C++ |
3107 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 3341 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
3108 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | 3342 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
3109 | 3343 |
3110 runpath_var=LD_RUN_PATH | 3344 runpath_var=LD_RUN_PATH |
3131 # FIXME: insert proper C++ library support | 3365 # FIXME: insert proper C++ library support |
3132 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3366 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3133 ;; | 3367 ;; |
3134 mvs*) | 3368 mvs*) |
3135 case $cc_basename in | 3369 case $cc_basename in |
3136 cxx) | 3370 cxx*) |
3137 # FIXME: insert proper C++ library support | 3371 # FIXME: insert proper C++ library support |
3138 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3372 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3139 ;; | 3373 ;; |
3140 *) | 3374 *) |
3141 # FIXME: insert proper C++ library support | 3375 # FIXME: insert proper C++ library support |
3152 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 3386 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3153 fi | 3387 fi |
3154 # Workaround some broken pre-1.5 toolchains | 3388 # Workaround some broken pre-1.5 toolchains |
3155 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 3389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
3156 ;; | 3390 ;; |
3391 openbsd2*) | |
3392 # C++ shared libraries are fairly broken | |
3393 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3394 ;; | |
3395 openbsd*) | |
3396 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
3397 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3398 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
3399 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
3400 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3401 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
3402 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
3403 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
3404 fi | |
3405 output_verbose_link_cmd='echo' | |
3406 ;; | |
3157 osf3*) | 3407 osf3*) |
3158 case $cc_basename in | 3408 case $cc_basename in |
3159 KCC) | 3409 KCC*) |
3160 # Kuck and Associates, Inc. (KAI) C++ Compiler | 3410 # Kuck and Associates, Inc. (KAI) C++ Compiler |
3161 | 3411 |
3162 # KCC will only create a shared library if the output file | 3412 # KCC will only create a shared library if the output file |
3163 # ends with ".so" (or ".sl" for HP-UX), so rename the library | 3413 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
3164 # to its proper name (with version) after linking. | 3414 # to its proper name (with version) after linking. |
3170 # Archives containing C++ object files must be created using | 3420 # Archives containing C++ object files must be created using |
3171 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 3421 # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
3172 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | 3422 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
3173 | 3423 |
3174 ;; | 3424 ;; |
3175 RCC) | 3425 RCC*) |
3176 # Rational C++ 2.4.1 | 3426 # Rational C++ 2.4.1 |
3177 # FIXME: insert proper C++ library support | 3427 # FIXME: insert proper C++ library support |
3178 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3428 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3179 ;; | 3429 ;; |
3180 cxx) | 3430 cxx*) |
3181 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 3431 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
3182 _LT_AC_TAGVAR(archive_cmds, $1)='$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 ${objdir}/so_locations -o $lib' | 3432 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
3183 | 3433 |
3184 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 3434 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3185 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3435 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3186 | 3436 |
3187 # Commands to make compiler produce verbose output that lists | 3437 # Commands to make compiler produce verbose output that lists |
3195 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' | 3445 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' |
3196 ;; | 3446 ;; |
3197 *) | 3447 *) |
3198 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 3448 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
3199 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 3449 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
3200 _LT_AC_TAGVAR(archive_cmds, $1)='$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}${objdir}/so_locations -o $lib' | 3450 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
3201 | 3451 |
3202 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 3452 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3203 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3453 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3204 | 3454 |
3205 # Commands to make compiler produce verbose output that lists | 3455 # Commands to make compiler produce verbose output that lists |
3214 ;; | 3464 ;; |
3215 esac | 3465 esac |
3216 ;; | 3466 ;; |
3217 osf4* | osf5*) | 3467 osf4* | osf5*) |
3218 case $cc_basename in | 3468 case $cc_basename in |
3219 KCC) | 3469 KCC*) |
3220 # Kuck and Associates, Inc. (KAI) C++ Compiler | 3470 # Kuck and Associates, Inc. (KAI) C++ Compiler |
3221 | 3471 |
3222 # KCC will only create a shared library if the output file | 3472 # KCC will only create a shared library if the output file |
3223 # ends with ".so" (or ".sl" for HP-UX), so rename the library | 3473 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
3224 # to its proper name (with version) after linking. | 3474 # to its proper name (with version) after linking. |
3229 | 3479 |
3230 # Archives containing C++ object files must be created using | 3480 # Archives containing C++ object files must be created using |
3231 # the KAI C++ compiler. | 3481 # the KAI C++ compiler. |
3232 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | 3482 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
3233 ;; | 3483 ;; |
3234 RCC) | 3484 RCC*) |
3235 # Rational C++ 2.4.1 | 3485 # Rational C++ 2.4.1 |
3236 # FIXME: insert proper C++ library support | 3486 # FIXME: insert proper C++ library support |
3237 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3487 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3238 ;; | 3488 ;; |
3239 cxx) | 3489 cxx*) |
3240 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 3490 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
3241 _LT_AC_TAGVAR(archive_cmds, $1)='$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 ${objdir}/so_locations -o $lib' | 3491 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
3242 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 3492 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
3243 echo "-hidden">> $lib.exp~ | 3493 echo "-hidden">> $lib.exp~ |
3244 $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 $objdir/so_locations -o $lib~ | 3494 $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~ |
3245 $rm $lib.exp' | 3495 $rm $lib.exp' |
3246 | 3496 |
3247 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 3497 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
3248 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3498 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3249 | 3499 |
3258 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' | 3508 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' |
3259 ;; | 3509 ;; |
3260 *) | 3510 *) |
3261 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 3511 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
3262 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 3512 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
3263 _LT_AC_TAGVAR(archive_cmds, $1)='$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}${objdir}/so_locations -o $lib' | 3513 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
3264 | 3514 |
3265 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 3515 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3266 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3516 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3267 | 3517 |
3268 # Commands to make compiler produce verbose output that lists | 3518 # Commands to make compiler produce verbose output that lists |
3279 ;; | 3529 ;; |
3280 psos*) | 3530 psos*) |
3281 # FIXME: insert proper C++ library support | 3531 # FIXME: insert proper C++ library support |
3282 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3532 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3283 ;; | 3533 ;; |
3284 sco*) | 3534 sunos4*) |
3285 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
3286 case $cc_basename in | 3535 case $cc_basename in |
3287 CC) | 3536 CC*) |
3537 # Sun C++ 4.x | |
3538 # FIXME: insert proper C++ library support | |
3539 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3540 ;; | |
3541 lcc*) | |
3542 # Lucid | |
3288 # FIXME: insert proper C++ library support | 3543 # FIXME: insert proper C++ library support |
3289 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3544 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3290 ;; | 3545 ;; |
3291 *) | 3546 *) |
3292 # FIXME: insert proper C++ library support | 3547 # FIXME: insert proper C++ library support |
3293 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3548 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3294 ;; | 3549 ;; |
3295 esac | 3550 esac |
3296 ;; | 3551 ;; |
3297 sunos4*) | |
3298 case $cc_basename in | |
3299 CC) | |
3300 # Sun C++ 4.x | |
3301 # FIXME: insert proper C++ library support | |
3302 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3303 ;; | |
3304 lcc) | |
3305 # Lucid | |
3306 # FIXME: insert proper C++ library support | |
3307 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3308 ;; | |
3309 *) | |
3310 # FIXME: insert proper C++ library support | |
3311 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
3312 ;; | |
3313 esac | |
3314 ;; | |
3315 solaris*) | 3552 solaris*) |
3316 case $cc_basename in | 3553 case $cc_basename in |
3317 CC) | 3554 CC*) |
3318 # Sun C++ 4.2, 5.x and Centerline C++ | 3555 # Sun C++ 4.2, 5.x and Centerline C++ |
3556 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes | |
3319 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 3557 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
3320 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 3558 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3321 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 3559 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
3322 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | 3560 $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' |
3323 | 3561 |
3324 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 3562 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
3325 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 3563 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3326 case $host_os in | 3564 case $host_os in |
3327 solaris2.[0-5] | solaris2.[0-5].*) ;; | 3565 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
3328 *) | 3566 *) |
3329 # The C++ compiler is used as linker so we must use $wl | 3567 # The C++ compiler is used as linker so we must use $wl |
3330 # flag to pass the commands to the underlying system | 3568 # flag to pass the commands to the underlying system |
3331 # linker. | 3569 # linker. We must also pass each convience library through |
3570 # to the system linker between allextract/defaultextract. | |
3571 # The C++ compiler will combine linker options so we | |
3572 # cannot just pass the convience library names through | |
3573 # without $wl. | |
3332 # Supported since Solaris 2.6 (maybe 2.5.1?) | 3574 # Supported since Solaris 2.6 (maybe 2.5.1?) |
3333 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 3575 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
3334 ;; | 3576 ;; |
3335 esac | 3577 esac |
3336 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 3578 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
3337 | 3579 |
3338 # Commands to make compiler produce verbose output that lists | 3580 output_verbose_link_cmd='echo' |
3339 # what "hidden" libraries, object files and flags are used when | |
3340 # linking a shared library. | |
3341 # | |
3342 # There doesn't appear to be a way to prevent this compiler from | |
3343 # explicitly linking system object files so we need to strip them | |
3344 # from the output so that they don't get included in the library | |
3345 # dependencies. | |
3346 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
3347 | 3581 |
3348 # Archives containing C++ object files must be created using | 3582 # Archives containing C++ object files must be created using |
3349 # "CC -xar", where "CC" is the Sun C++ compiler. This is | 3583 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
3350 # necessary to make sure instantiated templates are included | 3584 # necessary to make sure instantiated templates are included |
3351 # in the archive. | 3585 # in the archive. |
3352 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | 3586 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
3353 ;; | 3587 ;; |
3354 gcx) | 3588 gcx*) |
3355 # Green Hills C++ Compiler | 3589 # Green Hills C++ Compiler |
3356 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 3590 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
3357 | 3591 |
3358 # The C++ compiler must be used to create the archive. | 3592 # The C++ compiler must be used to create the archive. |
3359 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 3593 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
3387 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | 3621 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
3388 fi | 3622 fi |
3389 ;; | 3623 ;; |
3390 esac | 3624 esac |
3391 ;; | 3625 ;; |
3392 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) | 3626 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
3627 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
3393 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3628 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3629 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3630 runpath_var='LD_RUN_PATH' | |
3631 | |
3632 case $cc_basename in | |
3633 CC*) | |
3634 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3635 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3636 ;; | |
3637 *) | |
3638 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3639 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3640 ;; | |
3641 esac | |
3642 ;; | |
3643 sysv5* | sco3.2v5* | sco5v6*) | |
3644 # Note: We can NOT use -z defs as we might desire, because we do not | |
3645 # link with -lc, and that would cause any symbols used from libc to | |
3646 # always be unresolved, which means just about no library would | |
3647 # ever link correctly. If we're not using GNU ld we use -z text | |
3648 # though, which does catch some bad symbols but isn't as heavy-handed | |
3649 # as -z defs. | |
3650 # For security reasons, it is highly recommended that you always | |
3651 # use absolute paths for naming shared libraries, and exclude the | |
3652 # DT_RUNPATH tag from executables and libraries. But doing so | |
3653 # requires that you compile everything twice, which is a pain. | |
3654 # So that behaviour is only enabled if SCOABSPATH is set to a | |
3655 # non-empty value in the environment. Most likely only useful for | |
3656 # creating official distributions of packages. | |
3657 # This is a hack until libtool officially supports absolute path | |
3658 # names for shared libraries. | |
3659 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
3660 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | |
3661 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
3662 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
3663 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
3664 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | |
3665 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
3666 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
3667 runpath_var='LD_RUN_PATH' | |
3668 | |
3669 case $cc_basename in | |
3670 CC*) | |
3671 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3672 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3673 ;; | |
3674 *) | |
3675 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3676 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
3677 ;; | |
3678 esac | |
3394 ;; | 3679 ;; |
3395 tandem*) | 3680 tandem*) |
3396 case $cc_basename in | 3681 case $cc_basename in |
3397 NCC) | 3682 NCC*) |
3398 # NonStop-UX NCC 3.20 | 3683 # NonStop-UX NCC 3.20 |
3399 # FIXME: insert proper C++ library support | 3684 # FIXME: insert proper C++ library support |
3400 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3685 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3401 ;; | 3686 ;; |
3402 *) | 3687 *) |
3423 AC_LIBTOOL_POSTDEP_PREDEP($1) | 3708 AC_LIBTOOL_POSTDEP_PREDEP($1) |
3424 AC_LIBTOOL_PROG_COMPILER_PIC($1) | 3709 AC_LIBTOOL_PROG_COMPILER_PIC($1) |
3425 AC_LIBTOOL_PROG_CC_C_O($1) | 3710 AC_LIBTOOL_PROG_CC_C_O($1) |
3426 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | 3711 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
3427 AC_LIBTOOL_PROG_LD_SHLIBS($1) | 3712 AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3713 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
3428 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 3714 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3429 AC_LIBTOOL_SYS_LIB_STRIP | |
3430 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
3431 AC_LIBTOOL_DLOPEN_SELF($1) | |
3432 | 3715 |
3433 AC_LIBTOOL_CONFIG($1) | 3716 AC_LIBTOOL_CONFIG($1) |
3434 | 3717 |
3435 AC_LANG_POP | 3718 AC_LANG_POP |
3436 CC=$lt_save_CC | 3719 CC=$lt_save_CC |
3444 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 3727 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
3445 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 3728 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
3446 ])# AC_LIBTOOL_LANG_CXX_CONFIG | 3729 ])# AC_LIBTOOL_LANG_CXX_CONFIG |
3447 | 3730 |
3448 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | 3731 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
3449 # ------------------------ | 3732 # ------------------------------------ |
3450 # Figure out "hidden" library dependencies from verbose | 3733 # Figure out "hidden" library dependencies from verbose |
3451 # compiler output when linking a shared library. | 3734 # compiler output when linking a shared library. |
3452 # Parse the compiler output and extract the necessary | 3735 # Parse the compiler output and extract the necessary |
3453 # objects, libraries and library flags. | 3736 # objects, libraries and library flags. |
3454 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ | 3737 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ |
3498 pre_test_object_deps_done=no | 3781 pre_test_object_deps_done=no |
3499 | 3782 |
3500 # The `*' in the case matches for architectures that use `case' in | 3783 # The `*' in the case matches for architectures that use `case' in |
3501 # $output_verbose_cmd can trigger glob expansion during the loop | 3784 # $output_verbose_cmd can trigger glob expansion during the loop |
3502 # eval without this substitution. | 3785 # eval without this substitution. |
3503 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | 3786 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
3504 | 3787 |
3505 for p in `eval $output_verbose_link_cmd`; do | 3788 for p in `eval $output_verbose_link_cmd`; do |
3506 case $p in | 3789 case $p in |
3507 | 3790 |
3508 -L* | -R* | -l*) | 3791 -L* | -R* | -l*) |
3574 echo "libtool.m4: error: problem compiling $1 test program" | 3857 echo "libtool.m4: error: problem compiling $1 test program" |
3575 fi | 3858 fi |
3576 | 3859 |
3577 $rm -f confest.$objext | 3860 $rm -f confest.$objext |
3578 | 3861 |
3862 # PORTME: override above test on systems where it is broken | |
3863 ifelse([$1],[CXX], | |
3864 [case $host_os in | |
3865 interix3*) | |
3866 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
3867 # hack all around it, let's just trust "g++" to DTRT. | |
3868 _LT_AC_TAGVAR(predep_objects,$1)= | |
3869 _LT_AC_TAGVAR(postdep_objects,$1)= | |
3870 _LT_AC_TAGVAR(postdeps,$1)= | |
3871 ;; | |
3872 | |
3873 solaris*) | |
3874 case $cc_basename in | |
3875 CC*) | |
3876 # Adding this requires a known-good setup of shared libraries for | |
3877 # Sun compiler versions before 5.6, else PIC objects from an old | |
3878 # archive will be linked into the output, leading to subtle bugs. | |
3879 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' | |
3880 ;; | |
3881 esac | |
3882 ;; | |
3883 esac | |
3884 ]) | |
3885 | |
3579 case " $_LT_AC_TAGVAR(postdeps, $1) " in | 3886 case " $_LT_AC_TAGVAR(postdeps, $1) " in |
3580 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | 3887 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
3581 esac | 3888 esac |
3582 ])# AC_LIBTOOL_POSTDEP_PREDEP | 3889 ])# AC_LIBTOOL_POSTDEP_PREDEP |
3583 | 3890 |
3584 # AC_LIBTOOL_LANG_F77_CONFIG | 3891 # AC_LIBTOOL_LANG_F77_CONFIG |
3585 # ------------------------ | 3892 # -------------------------- |
3586 # Ensure that the configuration vars for the C compiler are | 3893 # Ensure that the configuration vars for the C compiler are |
3587 # suitably defined. Those variables are subsequently used by | 3894 # suitably defined. Those variables are subsequently used by |
3588 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 3895 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
3589 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) | 3896 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) |
3590 AC_DEFUN([_LT_AC_LANG_F77_CONFIG], | 3897 AC_DEFUN([_LT_AC_LANG_F77_CONFIG], |
3624 lt_simple_link_test_code=" program t\n end\n" | 3931 lt_simple_link_test_code=" program t\n end\n" |
3625 | 3932 |
3626 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 3933 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3627 _LT_AC_SYS_COMPILER | 3934 _LT_AC_SYS_COMPILER |
3628 | 3935 |
3936 # save warnings/boilerplate of simple test code | |
3937 _LT_COMPILER_BOILERPLATE | |
3938 _LT_LINKER_BOILERPLATE | |
3939 | |
3629 # Allow CC to be a program name with arguments. | 3940 # Allow CC to be a program name with arguments. |
3630 lt_save_CC="$CC" | 3941 lt_save_CC="$CC" |
3631 CC=${F77-"f77"} | 3942 CC=${F77-"f77"} |
3632 compiler=$CC | 3943 compiler=$CC |
3633 _LT_AC_TAGVAR(compiler, $1)=$CC | 3944 _LT_AC_TAGVAR(compiler, $1)=$CC |
3634 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | 3945 _LT_CC_BASENAME([$compiler]) |
3635 | 3946 |
3636 AC_MSG_CHECKING([if libtool supports shared libraries]) | 3947 AC_MSG_CHECKING([if libtool supports shared libraries]) |
3637 AC_MSG_RESULT([$can_build_shared]) | 3948 AC_MSG_RESULT([$can_build_shared]) |
3638 | 3949 |
3639 AC_MSG_CHECKING([whether to build shared libraries]) | 3950 AC_MSG_CHECKING([whether to build shared libraries]) |
3640 test "$can_build_shared" = "no" && enable_shared=no | 3951 test "$can_build_shared" = "no" && enable_shared=no |
3641 | 3952 |
3642 # On AIX, shared libraries and static libraries use the same namespace, and | 3953 # On AIX, shared libraries and static libraries use the same namespace, and |
3643 # are all built from PIC. | 3954 # are all built from PIC. |
3644 case "$host_os" in | 3955 case $host_os in |
3645 aix3*) | 3956 aix3*) |
3646 test "$enable_shared" = yes && enable_static=no | 3957 test "$enable_shared" = yes && enable_static=no |
3647 if test -n "$RANLIB"; then | 3958 if test -n "$RANLIB"; then |
3648 archive_cmds="$archive_cmds~\$RANLIB \$lib" | 3959 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
3649 postinstall_cmds='$RANLIB $lib' | 3960 postinstall_cmds='$RANLIB $lib' |
3650 fi | 3961 fi |
3651 ;; | 3962 ;; |
3652 aix4*) | 3963 aix4* | aix5*) |
3653 test "$enable_shared" = yes && enable_static=no | 3964 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
3965 test "$enable_shared" = yes && enable_static=no | |
3966 fi | |
3654 ;; | 3967 ;; |
3655 esac | 3968 esac |
3656 AC_MSG_RESULT([$enable_shared]) | 3969 AC_MSG_RESULT([$enable_shared]) |
3657 | 3970 |
3658 AC_MSG_CHECKING([whether to build static libraries]) | 3971 AC_MSG_CHECKING([whether to build static libraries]) |
3659 # Make sure either enable_shared or enable_static is yes. | 3972 # Make sure either enable_shared or enable_static is yes. |
3660 test "$enable_shared" = yes || enable_static=yes | 3973 test "$enable_shared" = yes || enable_static=yes |
3661 AC_MSG_RESULT([$enable_static]) | 3974 AC_MSG_RESULT([$enable_static]) |
3662 | 3975 |
3663 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | |
3664 | |
3665 _LT_AC_TAGVAR(GCC, $1)="$G77" | 3976 _LT_AC_TAGVAR(GCC, $1)="$G77" |
3666 _LT_AC_TAGVAR(LD, $1)="$LD" | 3977 _LT_AC_TAGVAR(LD, $1)="$LD" |
3667 | 3978 |
3668 AC_LIBTOOL_PROG_COMPILER_PIC($1) | 3979 AC_LIBTOOL_PROG_COMPILER_PIC($1) |
3669 AC_LIBTOOL_PROG_CC_C_O($1) | 3980 AC_LIBTOOL_PROG_CC_C_O($1) |
3670 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | 3981 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
3671 AC_LIBTOOL_PROG_LD_SHLIBS($1) | 3982 AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3983 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
3672 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 3984 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3673 AC_LIBTOOL_SYS_LIB_STRIP | |
3674 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
3675 | 3985 |
3676 AC_LIBTOOL_CONFIG($1) | 3986 AC_LIBTOOL_CONFIG($1) |
3677 | 3987 |
3678 AC_LANG_POP | 3988 AC_LANG_POP |
3679 CC="$lt_save_CC" | 3989 CC="$lt_save_CC" |
3698 | 4008 |
3699 # Code to be used in simple compile tests | 4009 # Code to be used in simple compile tests |
3700 lt_simple_compile_test_code="class foo {}\n" | 4010 lt_simple_compile_test_code="class foo {}\n" |
3701 | 4011 |
3702 # Code to be used in simple link tests | 4012 # Code to be used in simple link tests |
3703 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | 4013 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' |
3704 | 4014 |
3705 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 4015 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3706 _LT_AC_SYS_COMPILER | 4016 _LT_AC_SYS_COMPILER |
4017 | |
4018 # save warnings/boilerplate of simple test code | |
4019 _LT_COMPILER_BOILERPLATE | |
4020 _LT_LINKER_BOILERPLATE | |
3707 | 4021 |
3708 # Allow CC to be a program name with arguments. | 4022 # Allow CC to be a program name with arguments. |
3709 lt_save_CC="$CC" | 4023 lt_save_CC="$CC" |
3710 CC=${GCJ-"gcj"} | 4024 CC=${GCJ-"gcj"} |
3711 compiler=$CC | 4025 compiler=$CC |
3712 _LT_AC_TAGVAR(compiler, $1)=$CC | 4026 _LT_AC_TAGVAR(compiler, $1)=$CC |
4027 _LT_CC_BASENAME([$compiler]) | |
3713 | 4028 |
3714 # GCJ did not exist at the time GCC didn't implicitly link libc in. | 4029 # GCJ did not exist at the time GCC didn't implicitly link libc in. |
3715 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 4030 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4031 | |
4032 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
3716 | 4033 |
3717 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | 4034 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
3718 AC_LIBTOOL_PROG_COMPILER_PIC($1) | 4035 AC_LIBTOOL_PROG_COMPILER_PIC($1) |
3719 AC_LIBTOOL_PROG_CC_C_O($1) | 4036 AC_LIBTOOL_PROG_CC_C_O($1) |
3720 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | 4037 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
3721 AC_LIBTOOL_PROG_LD_SHLIBS($1) | 4038 AC_LIBTOOL_PROG_LD_SHLIBS($1) |
4039 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
3722 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 4040 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3723 AC_LIBTOOL_SYS_LIB_STRIP | |
3724 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | |
3725 AC_LIBTOOL_DLOPEN_SELF($1) | |
3726 | 4041 |
3727 AC_LIBTOOL_CONFIG($1) | 4042 AC_LIBTOOL_CONFIG($1) |
3728 | 4043 |
3729 AC_LANG_RESTORE | 4044 AC_LANG_RESTORE |
3730 CC="$lt_save_CC" | 4045 CC="$lt_save_CC" |
3731 ])# AC_LIBTOOL_LANG_GCJ_CONFIG | 4046 ])# AC_LIBTOOL_LANG_GCJ_CONFIG |
3732 | 4047 |
3733 | 4048 |
3734 # AC_LIBTOOL_LANG_RC_CONFIG | 4049 # AC_LIBTOOL_LANG_RC_CONFIG |
3735 # -------------------------- | 4050 # ------------------------- |
3736 # Ensure that the configuration vars for the Windows resource compiler are | 4051 # Ensure that the configuration vars for the Windows resource compiler are |
3737 # suitably defined. Those variables are subsequently used by | 4052 # suitably defined. Those variables are subsequently used by |
3738 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 4053 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
3739 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) | 4054 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) |
3740 AC_DEFUN([_LT_AC_LANG_RC_CONFIG], | 4055 AC_DEFUN([_LT_AC_LANG_RC_CONFIG], |
3754 lt_simple_link_test_code="$lt_simple_compile_test_code" | 4069 lt_simple_link_test_code="$lt_simple_compile_test_code" |
3755 | 4070 |
3756 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 4071 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3757 _LT_AC_SYS_COMPILER | 4072 _LT_AC_SYS_COMPILER |
3758 | 4073 |
4074 # save warnings/boilerplate of simple test code | |
4075 _LT_COMPILER_BOILERPLATE | |
4076 _LT_LINKER_BOILERPLATE | |
4077 | |
3759 # Allow CC to be a program name with arguments. | 4078 # Allow CC to be a program name with arguments. |
3760 lt_save_CC="$CC" | 4079 lt_save_CC="$CC" |
3761 CC=${RC-"windres"} | 4080 CC=${RC-"windres"} |
3762 compiler=$CC | 4081 compiler=$CC |
3763 _LT_AC_TAGVAR(compiler, $1)=$CC | 4082 _LT_AC_TAGVAR(compiler, $1)=$CC |
4083 _LT_CC_BASENAME([$compiler]) | |
3764 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 4084 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
3765 | 4085 |
3766 AC_LIBTOOL_CONFIG($1) | 4086 AC_LIBTOOL_CONFIG($1) |
3767 | 4087 |
3768 AC_LANG_RESTORE | 4088 AC_LANG_RESTORE |
3784 if test -f "$ltmain"; then | 4104 if test -f "$ltmain"; then |
3785 # See if we are running on zsh, and set the options which allow our commands through | 4105 # See if we are running on zsh, and set the options which allow our commands through |
3786 # without removal of \ escapes. | 4106 # without removal of \ escapes. |
3787 if test -n "${ZSH_VERSION+set}" ; then | 4107 if test -n "${ZSH_VERSION+set}" ; then |
3788 setopt NO_GLOB_SUBST | 4108 setopt NO_GLOB_SUBST |
3789 fi | 4109 fi |
3790 # Now quote all the things that may contain metacharacters while being | 4110 # Now quote all the things that may contain metacharacters while being |
3791 # careful not to overquote the AC_SUBSTed values. We take copies of the | 4111 # careful not to overquote the AC_SUBSTed values. We take copies of the |
3792 # variables and quote the copies for generation of the libtool script. | 4112 # variables and quote the copies for generation of the libtool script. |
3793 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ | 4113 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
4114 SED SHELL STRIP \ | |
3794 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 4115 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
3795 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 4116 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
3796 deplibs_check_method reload_flag reload_cmds need_locks \ | 4117 deplibs_check_method reload_flag reload_cmds need_locks \ |
3797 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | 4118 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
3798 lt_cv_sys_global_symbol_to_c_name_address \ | 4119 lt_cv_sys_global_symbol_to_c_name_address \ |
3838 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ | 4159 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ |
3839 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ | 4160 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ |
3840 _LT_AC_TAGVAR(archive_cmds, $1) | \ | 4161 _LT_AC_TAGVAR(archive_cmds, $1) | \ |
3841 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ | 4162 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
3842 _LT_AC_TAGVAR(module_cmds, $1) | \ | 4163 _LT_AC_TAGVAR(module_cmds, $1) | \ |
3843 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ | 4164 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
3844 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ | 4165 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
3845 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ | 4166 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
3846 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | 4167 extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
3847 postinstall_cmds | postuninstall_cmds | \ | 4168 postinstall_cmds | postuninstall_cmds | \ |
3848 old_postinstall_cmds | old_postuninstall_cmds | \ | 4169 old_postinstall_cmds | old_postuninstall_cmds | \ |
3893 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 4214 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3894 # General Public License for more details. | 4215 # General Public License for more details. |
3895 # | 4216 # |
3896 # You should have received a copy of the GNU General Public License | 4217 # You should have received a copy of the GNU General Public License |
3897 # along with this program; if not, write to the Free Software | 4218 # along with this program; if not, write to the Free Software |
3898 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 4219 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
3899 # | 4220 # |
3900 # As a special exception to the GNU General Public License, if you | 4221 # As a special exception to the GNU General Public License, if you |
3901 # distribute this file as part of a program that contains a | 4222 # distribute this file as part of a program that contains a |
3902 # configuration script generated by Autoconf, you may include it under | 4223 # configuration script generated by Autoconf, you may include it under |
3903 # the same distribution terms that you use for the rest of that program. | 4224 # the same distribution terms that you use for the rest of that program. |
3904 | 4225 |
3905 # A sed program that does not truncate output. | 4226 # A sed program that does not truncate output. |
3906 SED=$lt_SED | 4227 SED=$lt_SED |
3907 | 4228 |
3908 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 4229 # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
3909 Xsed="$SED -e s/^X//" | 4230 Xsed="$SED -e 1s/^X//" |
3910 | 4231 |
3911 # The HP-UX ksh and POSIX shell print the target directory to stdout | 4232 # The HP-UX ksh and POSIX shell print the target directory to stdout |
3912 # if CDPATH is set. | 4233 # if CDPATH is set. |
3913 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | 4234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
3914 | 4235 |
3915 # The names of the tagged configurations supported by this script. | 4236 # The names of the tagged configurations supported by this script. |
3916 available_tags= | 4237 available_tags= |
3917 | 4238 |
3918 # ### BEGIN LIBTOOL CONFIG], | 4239 # ### BEGIN LIBTOOL CONFIG], |
3939 fast_install=$enable_fast_install | 4260 fast_install=$enable_fast_install |
3940 | 4261 |
3941 # The host system. | 4262 # The host system. |
3942 host_alias=$host_alias | 4263 host_alias=$host_alias |
3943 host=$host | 4264 host=$host |
4265 host_os=$host_os | |
4266 | |
4267 # The build system. | |
4268 build_alias=$build_alias | |
4269 build=$build | |
4270 build_os=$build_os | |
3944 | 4271 |
3945 # An echo program that does not interpret backslashes. | 4272 # An echo program that does not interpret backslashes. |
3946 echo=$lt_echo | 4273 echo=$lt_echo |
3947 | 4274 |
3948 # The archiver. | 4275 # The archiver. |
3950 AR_FLAGS=$lt_AR_FLAGS | 4277 AR_FLAGS=$lt_AR_FLAGS |
3951 | 4278 |
3952 # A C compiler. | 4279 # A C compiler. |
3953 LTCC=$lt_LTCC | 4280 LTCC=$lt_LTCC |
3954 | 4281 |
4282 # LTCC compiler flags. | |
4283 LTCFLAGS=$lt_LTCFLAGS | |
4284 | |
3955 # A language-specific compiler. | 4285 # A language-specific compiler. |
3956 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | 4286 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
3957 | 4287 |
3958 # Is the compiler the GNU C compiler? | 4288 # Is the compiler the GNU C compiler? |
3959 with_gcc=$_LT_AC_TAGVAR(GCC, $1) | 4289 with_gcc=$_LT_AC_TAGVAR(GCC, $1) |
3969 | 4299 |
3970 # A BSD-compatible nm program. | 4300 # A BSD-compatible nm program. |
3971 NM=$lt_NM | 4301 NM=$lt_NM |
3972 | 4302 |
3973 # A symbol stripping program | 4303 # A symbol stripping program |
3974 STRIP=$STRIP | 4304 STRIP=$lt_STRIP |
3975 | 4305 |
3976 # Used to examine libraries when file_magic_cmd begins "file" | 4306 # Used to examine libraries when file_magic_cmd begins "file" |
3977 MAGIC_CMD=$MAGIC_CMD | 4307 MAGIC_CMD=$MAGIC_CMD |
3978 | 4308 |
3979 # Used on cygwin: DLL creation program. | 4309 # Used on cygwin: DLL creation program. |
4000 | 4330 |
4001 # Old archive suffix (normally "a"). | 4331 # Old archive suffix (normally "a"). |
4002 libext="$libext" | 4332 libext="$libext" |
4003 | 4333 |
4004 # Shared library suffix (normally ".so"). | 4334 # Shared library suffix (normally ".so"). |
4005 shrext='$shrext' | 4335 shrext_cmds='$shrext_cmds' |
4006 | 4336 |
4007 # Executable file suffix (normally ""). | 4337 # Executable file suffix (normally ""). |
4008 exeext="$exeext" | 4338 exeext="$exeext" |
4009 | 4339 |
4010 # Additional compiler flags for building library objects. | 4340 # Additional compiler flags for building library objects. |
4015 max_cmd_len=$lt_cv_sys_max_cmd_len | 4345 max_cmd_len=$lt_cv_sys_max_cmd_len |
4016 | 4346 |
4017 # Does compiler simultaneously support -c and -o options? | 4347 # Does compiler simultaneously support -c and -o options? |
4018 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) | 4348 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) |
4019 | 4349 |
4020 # Must we lock files when doing compilation ? | 4350 # Must we lock files when doing compilation? |
4021 need_locks=$lt_need_locks | 4351 need_locks=$lt_need_locks |
4022 | 4352 |
4023 # Do we need the lib prefix for modules? | 4353 # Do we need the lib prefix for modules? |
4024 need_lib_prefix=$need_lib_prefix | 4354 need_lib_prefix=$need_lib_prefix |
4025 | 4355 |
4244 ]) | 4574 ]) |
4245 else | 4575 else |
4246 # If there is no Makefile yet, we rely on a make rule to execute | 4576 # If there is no Makefile yet, we rely on a make rule to execute |
4247 # `config.status --recheck' to rerun these tests and create the | 4577 # `config.status --recheck' to rerun these tests and create the |
4248 # libtool script then. | 4578 # libtool script then. |
4249 test -f Makefile && make "$ltmain" | 4579 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
4580 if test -f "$ltmain_in"; then | |
4581 test -f Makefile && make "$ltmain" | |
4582 fi | |
4250 fi | 4583 fi |
4251 ])# AC_LIBTOOL_CONFIG | 4584 ])# AC_LIBTOOL_CONFIG |
4252 | 4585 |
4253 | 4586 |
4254 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) | 4587 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) |
4286 symcode='[[BCDEGRST]]' | 4619 symcode='[[BCDEGRST]]' |
4287 | 4620 |
4288 # Regexp to match symbols that can be accessed directly from C. | 4621 # Regexp to match symbols that can be accessed directly from C. |
4289 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | 4622 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
4290 | 4623 |
4291 # Transform the above into a raw symbol and a C symbol. | |
4292 symxfrm='\1 \2\3 \3' | |
4293 | |
4294 # Transform an extracted symbol line into a proper C declaration | 4624 # Transform an extracted symbol line into a proper C declaration |
4295 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 4625 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
4296 | 4626 |
4297 # Transform an extracted symbol line into symbol name and symbol address | 4627 # Transform an extracted symbol line into symbol name and symbol address |
4298 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'" | 4628 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'" |
4310 symcode='[[ABCDEGRST]]' | 4640 symcode='[[ABCDEGRST]]' |
4311 fi | 4641 fi |
4312 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 4642 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
4313 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'" | 4643 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'" |
4314 ;; | 4644 ;; |
4645 linux*) | |
4646 if test "$host_cpu" = ia64; then | |
4647 symcode='[[ABCDGIRSTW]]' | |
4648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
4649 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'" | |
4650 fi | |
4651 ;; | |
4315 irix* | nonstopux*) | 4652 irix* | nonstopux*) |
4316 symcode='[[BCDEGRST]]' | 4653 symcode='[[BCDEGRST]]' |
4317 ;; | 4654 ;; |
4318 osf*) | 4655 osf*) |
4319 symcode='[[BCDEGQRST]]' | 4656 symcode='[[BCDEGQRST]]' |
4320 ;; | 4657 ;; |
4321 solaris* | sysv5*) | 4658 solaris*) |
4322 symcode='[[BDT]]' | 4659 symcode='[[BDRT]]' |
4660 ;; | |
4661 sco3.2v5*) | |
4662 symcode='[[DT]]' | |
4663 ;; | |
4664 sysv4.2uw2*) | |
4665 symcode='[[DT]]' | |
4666 ;; | |
4667 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
4668 symcode='[[ABDT]]' | |
4323 ;; | 4669 ;; |
4324 sysv4) | 4670 sysv4) |
4325 symcode='[[DFNSTU]]' | 4671 symcode='[[DFNSTU]]' |
4326 ;; | 4672 ;; |
4327 esac | 4673 esac |
4335 esac | 4681 esac |
4336 | 4682 |
4337 # If we're using GNU nm, then use its standard symbol codes. | 4683 # If we're using GNU nm, then use its standard symbol codes. |
4338 case `$NM -V 2>&1` in | 4684 case `$NM -V 2>&1` in |
4339 *GNU* | *'with BFD'*) | 4685 *GNU* | *'with BFD'*) |
4340 symcode='[[ABCDGISTW]]' ;; | 4686 symcode='[[ABCDGIRSTW]]' ;; |
4341 esac | 4687 esac |
4342 | 4688 |
4343 # Try without a prefix undercore, then with it. | 4689 # Try without a prefix undercore, then with it. |
4344 for ac_symprfx in "" "_"; do | 4690 for ac_symprfx in "" "_"; do |
4345 | 4691 |
4692 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
4693 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
4694 | |
4346 # Write the raw and C identifiers. | 4695 # Write the raw and C identifiers. |
4347 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | 4696 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
4348 | 4697 |
4349 # Check to see that the pipe works correctly. | 4698 # Check to see that the pipe works correctly. |
4350 pipe_works=no | 4699 pipe_works=no |
4351 | 4700 |
4352 rm -f conftest* | 4701 rm -f conftest* |
4498 ;; | 4847 ;; |
4499 *djgpp*) | 4848 *djgpp*) |
4500 # DJGPP does not support shared libraries at all | 4849 # DJGPP does not support shared libraries at all |
4501 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 4850 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4502 ;; | 4851 ;; |
4852 interix3*) | |
4853 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
4854 # Instead, we relocate shared libraries at runtime. | |
4855 ;; | |
4503 sysv4*MP*) | 4856 sysv4*MP*) |
4504 if test -d /usr/nec; then | 4857 if test -d /usr/nec; then |
4505 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 4858 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
4506 fi | 4859 fi |
4507 ;; | 4860 ;; |
4508 hpux*) | 4861 hpux*) |
4509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 4862 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
4510 # not for PA HP-UX. | 4863 # not for PA HP-UX. |
4511 case "$host_cpu" in | 4864 case $host_cpu in |
4512 hppa*64*|ia64*) | 4865 hppa*64*|ia64*) |
4513 ;; | 4866 ;; |
4514 *) | 4867 *) |
4515 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4868 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4516 ;; | 4869 ;; |
4531 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | 4884 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
4532 fi | 4885 fi |
4533 ;; | 4886 ;; |
4534 chorus*) | 4887 chorus*) |
4535 case $cc_basename in | 4888 case $cc_basename in |
4536 cxch68) | 4889 cxch68*) |
4537 # Green Hills C++ Compiler | 4890 # Green Hills C++ Compiler |
4538 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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" | 4891 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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" |
4539 ;; | 4892 ;; |
4540 esac | 4893 esac |
4541 ;; | 4894 ;; |
4895 darwin*) | |
4896 # PIC is the default on this platform | |
4897 # Common symbols not allowed in MH_DYLIB files | |
4898 case $cc_basename in | |
4899 xlc*) | |
4900 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | |
4901 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4902 ;; | |
4903 esac | |
4904 ;; | |
4542 dgux*) | 4905 dgux*) |
4543 case $cc_basename in | 4906 case $cc_basename in |
4544 ec++) | 4907 ec++*) |
4545 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4908 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4546 ;; | 4909 ;; |
4547 ghcx) | 4910 ghcx*) |
4548 # Green Hills C++ Compiler | 4911 # Green Hills C++ Compiler |
4549 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4912 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4550 ;; | 4913 ;; |
4551 *) | 4914 *) |
4552 ;; | 4915 ;; |
4553 esac | 4916 esac |
4554 ;; | 4917 ;; |
4555 freebsd*) | 4918 freebsd* | kfreebsd*-gnu | dragonfly*) |
4556 # FreeBSD uses GNU C++ | 4919 # FreeBSD uses GNU C++ |
4557 ;; | 4920 ;; |
4558 hpux9* | hpux10* | hpux11*) | 4921 hpux9* | hpux10* | hpux11*) |
4559 case $cc_basename in | 4922 case $cc_basename in |
4560 CC) | 4923 CC*) |
4561 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4924 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4562 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 4925 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4563 if test "$host_cpu" != ia64; then | 4926 if test "$host_cpu" != ia64; then |
4564 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 4927 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4565 fi | 4928 fi |
4566 ;; | 4929 ;; |
4567 aCC) | 4930 aCC*) |
4568 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4931 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4569 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 4932 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4570 case "$host_cpu" in | 4933 case $host_cpu in |
4571 hppa*64*|ia64*) | 4934 hppa*64*|ia64*) |
4572 # +Z the default | 4935 # +Z the default |
4573 ;; | 4936 ;; |
4574 *) | 4937 *) |
4575 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 4938 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4578 ;; | 4941 ;; |
4579 *) | 4942 *) |
4580 ;; | 4943 ;; |
4581 esac | 4944 esac |
4582 ;; | 4945 ;; |
4946 interix*) | |
4947 # This is c89, which is MS Visual C++ (no shared libs) | |
4948 # Anyone wants to do a port? | |
4949 ;; | |
4583 irix5* | irix6* | nonstopux*) | 4950 irix5* | irix6* | nonstopux*) |
4584 case $cc_basename in | 4951 case $cc_basename in |
4585 CC) | 4952 CC*) |
4586 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4953 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4587 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4954 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4588 # CC pic flag -KPIC is the default. | 4955 # CC pic flag -KPIC is the default. |
4589 ;; | 4956 ;; |
4590 *) | 4957 *) |
4591 ;; | 4958 ;; |
4592 esac | 4959 esac |
4593 ;; | 4960 ;; |
4594 linux*) | 4961 linux*) |
4595 case $cc_basename in | 4962 case $cc_basename in |
4596 KCC) | 4963 KCC*) |
4597 # KAI C++ Compiler | 4964 # KAI C++ Compiler |
4598 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 4965 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4599 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4966 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4600 ;; | 4967 ;; |
4601 icpc) | 4968 icpc* | ecpc*) |
4602 # Intel C++ | 4969 # Intel C++ |
4603 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4970 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4604 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4971 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4605 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4972 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4606 ;; | 4973 ;; |
4607 cxx) | 4974 pgCC*) |
4975 # Portland Group C++ compiler. | |
4976 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4977 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
4978 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4979 ;; | |
4980 cxx*) | |
4608 # Compaq C++ | 4981 # Compaq C++ |
4609 # Make sure the PIC flag is empty. It appears that all Alpha | 4982 # Make sure the PIC flag is empty. It appears that all Alpha |
4610 # Linux and Compaq Tru64 Unix objects are PIC. | 4983 # Linux and Compaq Tru64 Unix objects are PIC. |
4611 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 4984 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4612 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4985 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4619 ;; | 4992 ;; |
4620 m88k*) | 4993 m88k*) |
4621 ;; | 4994 ;; |
4622 mvs*) | 4995 mvs*) |
4623 case $cc_basename in | 4996 case $cc_basename in |
4624 cxx) | 4997 cxx*) |
4625 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | 4998 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
4626 ;; | 4999 ;; |
4627 *) | 5000 *) |
4628 ;; | 5001 ;; |
4629 esac | 5002 esac |
4630 ;; | 5003 ;; |
4631 netbsd*) | 5004 netbsd*) |
4632 ;; | 5005 ;; |
4633 osf3* | osf4* | osf5*) | 5006 osf3* | osf4* | osf5*) |
4634 case $cc_basename in | 5007 case $cc_basename in |
4635 KCC) | 5008 KCC*) |
4636 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 5009 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4637 ;; | 5010 ;; |
4638 RCC) | 5011 RCC*) |
4639 # Rational C++ 2.4.1 | 5012 # Rational C++ 2.4.1 |
4640 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 5013 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4641 ;; | 5014 ;; |
4642 cxx) | 5015 cxx*) |
4643 # Digital/Compaq C++ | 5016 # Digital/Compaq C++ |
4644 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5017 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4645 # Make sure the PIC flag is empty. It appears that all Alpha | 5018 # Make sure the PIC flag is empty. It appears that all Alpha |
4646 # Linux and Compaq Tru64 Unix objects are PIC. | 5019 # Linux and Compaq Tru64 Unix objects are PIC. |
4647 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 5020 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4651 ;; | 5024 ;; |
4652 esac | 5025 esac |
4653 ;; | 5026 ;; |
4654 psos*) | 5027 psos*) |
4655 ;; | 5028 ;; |
4656 sco*) | |
4657 case $cc_basename in | |
4658 CC) | |
4659 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4660 ;; | |
4661 *) | |
4662 ;; | |
4663 esac | |
4664 ;; | |
4665 solaris*) | 5029 solaris*) |
4666 case $cc_basename in | 5030 case $cc_basename in |
4667 CC) | 5031 CC*) |
4668 # Sun C++ 4.2, 5.x and Centerline C++ | 5032 # Sun C++ 4.2, 5.x and Centerline C++ |
4669 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5033 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4670 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5034 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4671 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 5035 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4672 ;; | 5036 ;; |
4673 gcx) | 5037 gcx*) |
4674 # Green Hills C++ Compiler | 5038 # Green Hills C++ Compiler |
4675 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 5039 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4676 ;; | 5040 ;; |
4677 *) | 5041 *) |
4678 ;; | 5042 ;; |
4679 esac | 5043 esac |
4680 ;; | 5044 ;; |
4681 sunos4*) | 5045 sunos4*) |
4682 case $cc_basename in | 5046 case $cc_basename in |
4683 CC) | 5047 CC*) |
4684 # Sun C++ 4.x | 5048 # Sun C++ 4.x |
4685 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 5049 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4686 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5050 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4687 ;; | 5051 ;; |
4688 lcc) | 5052 lcc*) |
4689 # Lucid | 5053 # Lucid |
4690 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 5054 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4691 ;; | 5055 ;; |
4692 *) | 5056 *) |
4693 ;; | 5057 ;; |
4694 esac | 5058 esac |
4695 ;; | 5059 ;; |
4696 tandem*) | 5060 tandem*) |
4697 case $cc_basename in | 5061 case $cc_basename in |
4698 NCC) | 5062 NCC*) |
4699 # NonStop-UX NCC 3.20 | 5063 # NonStop-UX NCC 3.20 |
4700 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5064 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4701 ;; | 5065 ;; |
4702 *) | 5066 *) |
4703 ;; | 5067 ;; |
4704 esac | 5068 esac |
4705 ;; | 5069 ;; |
4706 unixware*) | 5070 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
5071 case $cc_basename in | |
5072 CC*) | |
5073 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5074 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5075 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5076 ;; | |
5077 esac | |
4707 ;; | 5078 ;; |
4708 vxworks*) | 5079 vxworks*) |
4709 ;; | 5080 ;; |
4710 *) | 5081 *) |
4711 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 5082 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4748 # PIC is the default on this platform | 5119 # PIC is the default on this platform |
4749 # Common symbols not allowed in MH_DYLIB files | 5120 # Common symbols not allowed in MH_DYLIB files |
4750 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 5121 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4751 ;; | 5122 ;; |
4752 | 5123 |
5124 interix3*) | |
5125 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
5126 # Instead, we relocate shared libraries at runtime. | |
5127 ;; | |
5128 | |
4753 msdosdjgpp*) | 5129 msdosdjgpp*) |
4754 # Just because we use GCC doesn't mean we suddenly get shared libraries | 5130 # Just because we use GCC doesn't mean we suddenly get shared libraries |
4755 # on systems that don't support them. | 5131 # on systems that don't support them. |
4756 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | 5132 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4757 enable_shared=no | 5133 enable_shared=no |
4764 ;; | 5140 ;; |
4765 | 5141 |
4766 hpux*) | 5142 hpux*) |
4767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 5143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
4768 # not for PA HP-UX. | 5144 # not for PA HP-UX. |
4769 case "$host_cpu" in | 5145 case $host_cpu in |
4770 hppa*64*|ia64*) | 5146 hppa*64*|ia64*) |
4771 # +Z the default | 5147 # +Z the default |
4772 ;; | 5148 ;; |
4773 *) | 5149 *) |
4774 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 5150 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4790 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5166 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4791 else | 5167 else |
4792 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | 5168 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
4793 fi | 5169 fi |
4794 ;; | 5170 ;; |
5171 darwin*) | |
5172 # PIC is the default on this platform | |
5173 # Common symbols not allowed in MH_DYLIB files | |
5174 case $cc_basename in | |
5175 xlc*) | |
5176 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | |
5177 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5178 ;; | |
5179 esac | |
5180 ;; | |
4795 | 5181 |
4796 mingw* | pw32* | os2*) | 5182 mingw* | pw32* | os2*) |
4797 # This hack is so that the source file can tell whether it is being | 5183 # This hack is so that the source file can tell whether it is being |
4798 # built for inclusion in a dll (and should export symbols for example). | 5184 # built for inclusion in a dll (and should export symbols for example). |
4799 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | 5185 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
4801 | 5187 |
4802 hpux9* | hpux10* | hpux11*) | 5188 hpux9* | hpux10* | hpux11*) |
4803 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5189 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 5190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
4805 # not for PA HP-UX. | 5191 # not for PA HP-UX. |
4806 case "$host_cpu" in | 5192 case $host_cpu in |
4807 hppa*64*|ia64*) | 5193 hppa*64*|ia64*) |
4808 # +Z the default | 5194 # +Z the default |
4809 ;; | 5195 ;; |
4810 *) | 5196 *) |
4811 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 5197 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4825 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5211 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4826 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5212 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4827 ;; | 5213 ;; |
4828 | 5214 |
4829 linux*) | 5215 linux*) |
4830 case $CC in | 5216 case $cc_basename in |
4831 icc|ecc) | 5217 icc* | ecc*) |
4832 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5218 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4833 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5219 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4834 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | 5220 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4835 ;; | 5221 ;; |
4836 ccc) | 5222 pgcc* | pgf77* | pgf90* | pgf95*) |
5223 # Portland Group compilers (*not* the Pentium gcc compiler, | |
5224 # which looks to be a dead project) | |
5225 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5226 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
5227 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5228 ;; | |
5229 ccc*) | |
4837 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5230 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4838 # All Alpha code is PIC. | 5231 # All Alpha code is PIC. |
4839 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5232 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4840 ;; | 5233 ;; |
4841 esac | 5234 esac |
4845 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5238 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4846 # All OSF/1 code is PIC. | 5239 # All OSF/1 code is PIC. |
4847 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 5240 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4848 ;; | 5241 ;; |
4849 | 5242 |
4850 sco3.2v5*) | |
4851 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' | |
4852 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' | |
4853 ;; | |
4854 | |
4855 solaris*) | 5243 solaris*) |
4856 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4857 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5244 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4858 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5245 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5246 case $cc_basename in | |
5247 f77* | f90* | f95*) | |
5248 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | |
5249 *) | |
5250 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | |
5251 esac | |
4859 ;; | 5252 ;; |
4860 | 5253 |
4861 sunos4*) | 5254 sunos4*) |
4862 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 5255 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4863 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 5256 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4864 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5257 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4865 ;; | 5258 ;; |
4866 | 5259 |
4867 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 5260 sysv4 | sysv4.2uw2* | sysv4.3*) |
4868 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 5261 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4869 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 5262 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4870 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5263 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4871 ;; | 5264 ;; |
4872 | 5265 |
4873 sysv4*MP*) | 5266 sysv4*MP*) |
4874 if test -d /usr/nec ;then | 5267 if test -d /usr/nec ;then |
4875 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | 5268 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
4876 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5269 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4877 fi | 5270 fi |
5271 ;; | |
5272 | |
5273 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
5274 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5275 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5276 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5277 ;; | |
5278 | |
5279 unicos*) | |
5280 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5281 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
4878 ;; | 5282 ;; |
4879 | 5283 |
4880 uts4*) | 5284 uts4*) |
4881 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 5285 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4882 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 5286 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4902 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; | 5306 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
4903 esac], | 5307 esac], |
4904 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 5308 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4905 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | 5309 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
4906 fi | 5310 fi |
4907 case "$host_os" in | 5311 case $host_os in |
4908 # For platforms which do not support PIC, -DPIC is meaningless: | 5312 # For platforms which do not support PIC, -DPIC is meaningless: |
4909 *djgpp*) | 5313 *djgpp*) |
4910 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 5314 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4911 ;; | 5315 ;; |
4912 *) | 5316 *) |
4913 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" | 5317 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
4914 ;; | 5318 ;; |
4915 esac | 5319 esac |
5320 | |
5321 # | |
5322 # Check to make sure the static flag actually works. | |
5323 # | |
5324 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" | |
5325 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | |
5326 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | |
5327 $lt_tmp_static_flag, | |
5328 [], | |
5329 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | |
4916 ]) | 5330 ]) |
4917 | 5331 |
4918 | 5332 |
4919 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) | 5333 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) |
4920 # ------------------------------------ | 5334 # ------------------------------------ |
4935 ;; | 5349 ;; |
4936 pw32*) | 5350 pw32*) |
4937 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | 5351 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
4938 ;; | 5352 ;; |
4939 cygwin* | mingw*) | 5353 cygwin* | mingw*) |
4940 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | 5354 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$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' |
4941 ;; | 5355 ;; |
4942 *) | 5356 *) |
4943 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 5357 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4944 ;; | 5358 ;; |
4945 esac | 5359 esac |
4961 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | 5375 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
4962 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 5376 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4963 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | 5377 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
4964 _LT_AC_TAGVAR(hardcode_automatic, $1)=no | 5378 _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
4965 _LT_AC_TAGVAR(module_cmds, $1)= | 5379 _LT_AC_TAGVAR(module_cmds, $1)= |
4966 _LT_AC_TAGVAR(module_expsym_cmds, $1)= | 5380 _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
4967 _LT_AC_TAGVAR(always_export_symbols, $1)=no | 5381 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
4968 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 5382 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4969 # include_expsyms should be a list of space-separated symbols to be *always* | 5383 # include_expsyms should be a list of space-separated symbols to be *always* |
4970 # included in the symbol list | 5384 # included in the symbol list |
4971 _LT_AC_TAGVAR(include_expsyms, $1)= | 5385 _LT_AC_TAGVAR(include_expsyms, $1)= |
4978 # platforms (ab)use it in PIC code, but their linkers get confused if | 5392 # platforms (ab)use it in PIC code, but their linkers get confused if |
4979 # the symbol is explicitly referenced. Since portable code cannot | 5393 # the symbol is explicitly referenced. Since portable code cannot |
4980 # rely on this symbol name, it's probably fine to never include it in | 5394 # rely on this symbol name, it's probably fine to never include it in |
4981 # preloaded symbol tables. | 5395 # preloaded symbol tables. |
4982 extract_expsyms_cmds= | 5396 extract_expsyms_cmds= |
4983 | 5397 # Just being paranoid about ensuring that cc_basename is set. |
5398 _LT_CC_BASENAME([$compiler]) | |
4984 case $host_os in | 5399 case $host_os in |
4985 cygwin* | mingw* | pw32*) | 5400 cygwin* | mingw* | pw32*) |
4986 # FIXME: the MSVC++ port hasn't been tested in a loooong time | 5401 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
4987 # When not using gcc, we currently assume that we are using | 5402 # When not using gcc, we currently assume that we are using |
4988 # Microsoft Visual C++. | 5403 # Microsoft Visual C++. |
4989 if test "$GCC" != yes; then | 5404 if test "$GCC" != yes; then |
4990 with_gnu_ld=no | 5405 with_gnu_ld=no |
4991 fi | 5406 fi |
4992 ;; | 5407 ;; |
5408 interix*) | |
5409 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
5410 with_gnu_ld=yes | |
5411 ;; | |
4993 openbsd*) | 5412 openbsd*) |
4994 with_gnu_ld=no | 5413 with_gnu_ld=no |
4995 ;; | 5414 ;; |
4996 esac | 5415 esac |
4997 | 5416 |
4998 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | 5417 _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
4999 if test "$with_gnu_ld" = yes; then | 5418 if test "$with_gnu_ld" = yes; then |
5000 # If archive_cmds runs LD, not CC, wlarc should be empty | 5419 # If archive_cmds runs LD, not CC, wlarc should be empty |
5001 wlarc='${wl}' | 5420 wlarc='${wl}' |
5421 | |
5422 # Set some defaults for GNU ld with shared library support. These | |
5423 # are reset later if shared libraries are not supported. Putting them | |
5424 # here allows them to be overridden if necessary. | |
5425 runpath_var=LD_RUN_PATH | |
5426 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | |
5427 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
5428 # ancient GNU ld didn't support --whole-archive et. al. | |
5429 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
5430 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
5431 else | |
5432 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
5433 fi | |
5434 supports_anon_versioning=no | |
5435 case `$LD -v 2>/dev/null` in | |
5436 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
5437 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
5438 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
5439 *\ 2.11.*) ;; # other 2.11 versions | |
5440 *) supports_anon_versioning=yes ;; | |
5441 esac | |
5002 | 5442 |
5003 # See if GNU ld supports shared libraries. | 5443 # See if GNU ld supports shared libraries. |
5004 case $host_os in | 5444 case $host_os in |
5005 aix3* | aix4* | aix5*) | 5445 aix3* | aix4* | aix5*) |
5006 # On AIX/PPC, the GNU linker is very broken | 5446 # On AIX/PPC, the GNU linker is very broken |
5048 # as there is no search path for DLLs. | 5488 # as there is no search path for DLLs. |
5049 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5489 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5050 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 5490 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5051 _LT_AC_TAGVAR(always_export_symbols, $1)=no | 5491 _LT_AC_TAGVAR(always_export_symbols, $1)=no |
5052 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5492 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5053 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | 5493 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
5054 | 5494 |
5055 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 5495 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
5056 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 5496 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
5057 # If the export-symbols file already is a .def file (1st line | 5497 # If the export-symbols file already is a .def file (1st line |
5058 # is EXPORTS), use it as is; otherwise, prepend... | 5498 # is EXPORTS), use it as is; otherwise, prepend... |
5059 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 5499 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
5060 cp $export_symbols $output_objdir/$soname.def; | 5500 cp $export_symbols $output_objdir/$soname.def; |
5061 else | 5501 else |
5062 echo EXPORTS > $output_objdir/$soname.def; | 5502 echo EXPORTS > $output_objdir/$soname.def; |
5063 cat $export_symbols >> $output_objdir/$soname.def; | 5503 cat $export_symbols >> $output_objdir/$soname.def; |
5064 fi~ | 5504 fi~ |
5065 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 5505 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
5066 else | 5506 else |
5067 ld_shlibs=no | 5507 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5508 fi | |
5509 ;; | |
5510 | |
5511 interix3*) | |
5512 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
5513 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5514 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
5515 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
5516 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
5517 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
5518 # default) and relocated if they conflict, which is a slow very memory | |
5519 # consuming and fragmenting process. To avoid this, we pick a random, | |
5520 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
5521 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
5522 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
5523 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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' | |
5524 ;; | |
5525 | |
5526 linux*) | |
5527 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
5528 tmp_addflag= | |
5529 case $cc_basename,$host_cpu in | |
5530 pgcc*) # Portland Group C compiler | |
5531 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
5532 tmp_addflag=' $pic_flag' | |
5533 ;; | |
5534 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
5535 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
5536 tmp_addflag=' $pic_flag -Mnomain' ;; | |
5537 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
5538 tmp_addflag=' -i_dynamic' ;; | |
5539 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
5540 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
5541 ifc* | ifort*) # Intel Fortran compiler | |
5542 tmp_addflag=' -nofor_main' ;; | |
5543 esac | |
5544 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5545 | |
5546 if test $supports_anon_versioning = yes; then | |
5547 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ | |
5548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
5549 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
5550 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
5551 fi | |
5552 else | |
5553 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
5068 fi | 5554 fi |
5069 ;; | 5555 ;; |
5070 | 5556 |
5071 netbsd*) | 5557 netbsd*) |
5072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 5558 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
5076 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 5562 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5077 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 5563 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
5078 fi | 5564 fi |
5079 ;; | 5565 ;; |
5080 | 5566 |
5081 solaris* | sysv5*) | 5567 solaris*) |
5082 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 5568 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
5083 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5569 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5084 cat <<EOF 1>&2 | 5570 cat <<EOF 1>&2 |
5085 | 5571 |
5086 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 5572 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
5097 else | 5583 else |
5098 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5584 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5099 fi | 5585 fi |
5100 ;; | 5586 ;; |
5101 | 5587 |
5588 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
5589 case `$LD -v 2>&1` in | |
5590 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | |
5591 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
5592 cat <<_LT_EOF 1>&2 | |
5593 | |
5594 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
5595 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
5596 *** is disabling shared libraries support. We urge you to upgrade GNU | |
5597 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
5598 *** your PATH or compiler configuration so that the native linker is | |
5599 *** used, and then restart. | |
5600 | |
5601 _LT_EOF | |
5602 ;; | |
5603 *) | |
5604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
5605 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
5606 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
5607 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
5608 else | |
5609 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
5610 fi | |
5611 ;; | |
5612 esac | |
5613 ;; | |
5614 | |
5102 sunos4*) | 5615 sunos4*) |
5103 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 5616 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5104 wlarc= | 5617 wlarc= |
5105 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5618 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5106 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5619 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5114 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5627 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5115 fi | 5628 fi |
5116 ;; | 5629 ;; |
5117 esac | 5630 esac |
5118 | 5631 |
5119 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then | 5632 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then |
5120 runpath_var=LD_RUN_PATH | 5633 runpath_var= |
5121 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | 5634 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5122 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 5635 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
5123 # ancient GNU ld didn't support --whole-archive et. al. | 5636 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
5124 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
5125 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
5126 else | |
5127 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | |
5128 fi | |
5129 fi | 5637 fi |
5130 else | 5638 else |
5131 # PORTME fill in a description of your system's linker (not GNU ld) | 5639 # PORTME fill in a description of your system's linker (not GNU ld) |
5132 case $host_os in | 5640 case $host_os in |
5133 aix3*) | 5641 aix3*) |
5135 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | 5643 _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
5136 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | 5644 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
5137 # Note: this linker hardcodes the directories in LIBPATH if there | 5645 # Note: this linker hardcodes the directories in LIBPATH if there |
5138 # are no directories specified by -L. | 5646 # are no directories specified by -L. |
5139 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5647 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5140 if test "$GCC" = yes && test -z "$link_static_flag"; then | 5648 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
5141 # Neither direct hardcoding nor static linking is supported with a | 5649 # Neither direct hardcoding nor static linking is supported with a |
5142 # broken collect2. | 5650 # broken collect2. |
5143 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | 5651 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
5144 fi | 5652 fi |
5145 ;; | 5653 ;; |
5169 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 5677 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
5170 aix_use_runtimelinking=yes | 5678 aix_use_runtimelinking=yes |
5171 break | 5679 break |
5172 fi | 5680 fi |
5173 done | 5681 done |
5682 ;; | |
5174 esac | 5683 esac |
5175 | 5684 |
5176 exp_sym_flag='-bexport' | 5685 exp_sym_flag='-bexport' |
5177 no_entry_flag='-bnoentry' | 5686 no_entry_flag='-bnoentry' |
5178 fi | 5687 fi |
5187 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5696 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5188 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | 5697 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
5189 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 5698 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5190 | 5699 |
5191 if test "$GCC" = yes; then | 5700 if test "$GCC" = yes; then |
5192 case $host_os in aix4.[012]|aix4.[012].*) | 5701 case $host_os in aix4.[[012]]|aix4.[[012]].*) |
5193 # We only want to do this on AIX 4.2 and lower, the check | 5702 # We only want to do this on AIX 4.2 and lower, the check |
5194 # below for broken collect2 doesn't work under 4.3+ | 5703 # below for broken collect2 doesn't work under 4.3+ |
5195 collect2name=`${CC} -print-prog-name=collect2` | 5704 collect2name=`${CC} -print-prog-name=collect2` |
5196 if test -f "$collect2name" && \ | 5705 if test -f "$collect2name" && \ |
5197 strings "$collect2name" | grep resolve_lib_name >/dev/null | 5706 strings "$collect2name" | grep resolve_lib_name >/dev/null |
5206 # to unsupported forces relinking | 5715 # to unsupported forces relinking |
5207 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5716 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5208 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5717 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5209 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 5718 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
5210 fi | 5719 fi |
5720 ;; | |
5211 esac | 5721 esac |
5212 shared_flag='-shared' | 5722 shared_flag='-shared' |
5723 if test "$aix_use_runtimelinking" = yes; then | |
5724 shared_flag="$shared_flag "'${wl}-G' | |
5725 fi | |
5213 else | 5726 else |
5214 # not using gcc | 5727 # not using gcc |
5215 if test "$host_cpu" = ia64; then | 5728 if test "$host_cpu" = ia64; then |
5216 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 5729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
5217 # chokes on -Wl,-G. The following line is correct: | 5730 # chokes on -Wl,-G. The following line is correct: |
5218 shared_flag='-G' | 5731 shared_flag='-G' |
5219 else | 5732 else |
5220 if test "$aix_use_runtimelinking" = yes; then | 5733 if test "$aix_use_runtimelinking" = yes; then |
5221 shared_flag='${wl}-G' | 5734 shared_flag='${wl}-G' |
5222 else | 5735 else |
5223 shared_flag='${wl}-bM:SRE' | 5736 shared_flag='${wl}-bM:SRE' |
5224 fi | 5737 fi |
5225 fi | 5738 fi |
5226 fi | 5739 fi |
5227 | 5740 |
5228 # It seems that -bexpall does not export symbols beginning with | 5741 # It seems that -bexpall does not export symbols beginning with |
5229 # underscore (_), so it is better to generate a list of symbols to export. | 5742 # underscore (_), so it is better to generate a list of symbols to export. |
5233 # -berok will link without error, but may produce a broken library. | 5746 # -berok will link without error, but may produce a broken library. |
5234 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | 5747 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
5235 # Determine the default libpath from the value encoded in an empty executable. | 5748 # Determine the default libpath from the value encoded in an empty executable. |
5236 _LT_AC_SYS_LIBPATH_AIX | 5749 _LT_AC_SYS_LIBPATH_AIX |
5237 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 5750 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5238 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 5751 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" |
5239 else | 5752 else |
5240 if test "$host_cpu" = ia64; then | 5753 if test "$host_cpu" = ia64; then |
5241 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 5754 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5242 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 5755 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5243 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | 5756 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" |
5244 else | 5757 else |
5245 # Determine the default libpath from the value encoded in an empty executable. | 5758 # Determine the default libpath from the value encoded in an empty executable. |
5246 _LT_AC_SYS_LIBPATH_AIX | 5759 _LT_AC_SYS_LIBPATH_AIX |
5247 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 5760 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5248 # Warning - without using the other run time loading flags, | 5761 # Warning - without using the other run time loading flags, |
5249 # -berok will link without error, but may produce a broken library. | 5762 # -berok will link without error, but may produce a broken library. |
5250 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 5763 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5251 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 5764 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
5252 # -bexpall does not export symbols beginning with underscore (_) | |
5253 _LT_AC_TAGVAR(always_export_symbols, $1)=yes | |
5254 # Exported symbols can be pulled into shared objects from archives | 5765 # Exported symbols can be pulled into shared objects from archives |
5255 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' | 5766 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
5256 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 5767 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
5257 # This is similar to how AIX traditionally builds it's shared libraries. | 5768 # This is similar to how AIX traditionally builds its shared libraries. |
5258 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | 5769 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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' |
5259 fi | 5770 fi |
5260 fi | 5771 fi |
5261 ;; | 5772 ;; |
5262 | 5773 |
5263 amigaos*) | 5774 amigaos*) |
5266 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5777 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5267 # see comment about different semantics on the GNU ld section | 5778 # see comment about different semantics on the GNU ld section |
5268 _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5779 _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5269 ;; | 5780 ;; |
5270 | 5781 |
5271 bsdi4*) | 5782 bsdi[[45]]*) |
5272 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | 5783 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
5273 ;; | 5784 ;; |
5274 | 5785 |
5275 cygwin* | mingw* | pw32*) | 5786 cygwin* | mingw* | pw32*) |
5276 # When not using gcc, we currently assume that we are using | 5787 # When not using gcc, we currently assume that we are using |
5280 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | 5791 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
5281 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 5792 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5282 # Tell ltmain to make .lib files, not .a files. | 5793 # Tell ltmain to make .lib files, not .a files. |
5283 libext=lib | 5794 libext=lib |
5284 # Tell ltmain to make .dll files, not .so files. | 5795 # Tell ltmain to make .dll files, not .so files. |
5285 shrext=".dll" | 5796 shrext_cmds=".dll" |
5286 # FIXME: Setting linknames here is a bad hack. | 5797 # FIXME: Setting linknames here is a bad hack. |
5287 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 5798 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
5288 # The linker will automatically build a .lib file if we build a DLL. | 5799 # The linker will automatically build a .lib file if we build a DLL. |
5289 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' | 5800 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
5290 # FIXME: Should let the user specify the lib program. | 5801 # FIXME: Should let the user specify the lib program. |
5291 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' | 5802 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
5292 fix_srcfile_path='`cygpath -w "$srcfile"`' | 5803 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
5293 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5804 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5294 ;; | 5805 ;; |
5295 | 5806 |
5296 darwin* | rhapsody*) | 5807 darwin* | rhapsody*) |
5297 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | 5808 case $host_os in |
5809 rhapsody* | darwin1.[[012]]) | |
5810 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | |
5811 ;; | |
5812 *) # Darwin 1.3 on | |
5813 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
5814 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
5815 else | |
5816 case ${MACOSX_DEPLOYMENT_TARGET} in | |
5817 10.[[012]]) | |
5818 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
5819 ;; | |
5820 10.*) | |
5821 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | |
5822 ;; | |
5823 esac | |
5824 fi | |
5825 ;; | |
5826 esac | |
5298 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 5827 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5299 case "$host_os" in | |
5300 rhapsody* | darwin1.[[012]]) | |
5301 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' | |
5302 ;; | |
5303 *) # Darwin 1.3 on | |
5304 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' | |
5305 ;; | |
5306 esac | |
5307 # FIXME: Relying on posixy $() will cause problems for | |
5308 # cross-compilation, but unfortunately the echo tests do not | |
5309 # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
5310 # `"' quotes if we put them in here... so don't! | |
5311 lt_int_apple_cc_single_mod=no | |
5312 output_verbose_link_cmd='echo' | |
5313 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | |
5314 lt_int_apple_cc_single_mod=yes | |
5315 fi | |
5316 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
5317 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
5318 else | |
5319 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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' | |
5320 fi | |
5321 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' | |
5322 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | |
5323 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
5324 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
5325 else | |
5326 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
5327 fi | |
5328 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
5329 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 5828 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5330 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | 5829 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
5331 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 5830 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5332 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' | 5831 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
5333 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 5832 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5334 fi | 5833 if test "$GCC" = yes ; then |
5834 output_verbose_link_cmd='echo' | |
5835 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
5836 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
5837 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
5838 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
5839 _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | |
5840 else | |
5841 case $cc_basename in | |
5842 xlc*) | |
5843 output_verbose_link_cmd='echo' | |
5844 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
5845 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
5846 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
5847 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
5848 _LT_AC_TAGVAR(module_expsym_cmds, $1)='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}' | |
5849 ;; | |
5850 *) | |
5851 _LT_AC_TAGVAR(ld_shlibs, $1)=no | |
5852 ;; | |
5853 esac | |
5854 fi | |
5335 ;; | 5855 ;; |
5336 | 5856 |
5337 dgux*) | 5857 dgux*) |
5338 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5858 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5339 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5859 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5362 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5882 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5363 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5883 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5364 ;; | 5884 ;; |
5365 | 5885 |
5366 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 5886 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
5367 freebsd*) | 5887 freebsd* | kfreebsd*-gnu | dragonfly*) |
5368 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 5888 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
5369 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5889 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5370 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5890 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5371 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5891 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5372 ;; | 5892 ;; |
5385 # but as the default location of the library. | 5905 # but as the default location of the library. |
5386 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5906 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5387 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5907 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5388 ;; | 5908 ;; |
5389 | 5909 |
5390 hpux10* | hpux11*) | 5910 hpux10*) |
5391 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5911 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
5392 case "$host_cpu" in | 5912 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5393 hppa*64*|ia64*) | 5913 else |
5914 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
5915 fi | |
5916 if test "$with_gnu_ld" = no; then | |
5917 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
5918 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
5919 | |
5920 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | |
5921 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
5922 | |
5923 # hardcode_minus_L: Not really in the search PATH, | |
5924 # but as the default location of the library. | |
5925 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
5926 fi | |
5927 ;; | |
5928 | |
5929 hpux11*) | |
5930 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
5931 case $host_cpu in | |
5932 hppa*64*) | |
5394 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5933 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5934 ;; | |
5935 ia64*) | |
5936 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
5395 ;; | 5937 ;; |
5396 *) | 5938 *) |
5397 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5939 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5398 ;; | 5940 ;; |
5399 esac | 5941 esac |
5400 else | 5942 else |
5401 case "$host_cpu" in | 5943 case $host_cpu in |
5402 hppa*64*|ia64*) | 5944 hppa*64*) |
5403 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 5945 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5946 ;; | |
5947 ia64*) | |
5948 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
5404 ;; | 5949 ;; |
5405 *) | 5950 *) |
5406 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 5951 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5407 ;; | 5952 ;; |
5408 esac | 5953 esac |
5409 fi | 5954 fi |
5410 if test "$with_gnu_ld" = no; then | 5955 if test "$with_gnu_ld" = no; then |
5411 case "$host_cpu" in | 5956 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5412 hppa*64*) | 5957 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
5413 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5958 |
5959 case $host_cpu in | |
5960 hppa*64*|ia64*) | |
5414 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | 5961 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
5415 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
5416 _LT_AC_TAGVAR(hardcode_direct, $1)=no | 5962 _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5417 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5963 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5418 ;; | 5964 ;; |
5419 ia64*) | |
5420 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5421 _LT_AC_TAGVAR(hardcode_direct, $1)=no | |
5422 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5423 | |
5424 # hardcode_minus_L: Not really in the search PATH, | |
5425 # but as the default location of the library. | |
5426 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | |
5427 ;; | |
5428 *) | 5965 *) |
5429 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
5430 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | |
5431 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5966 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5432 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5967 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5433 | 5968 |
5434 # hardcode_minus_L: Not really in the search PATH, | 5969 # hardcode_minus_L: Not really in the search PATH, |
5435 # but as the default location of the library. | 5970 # but as the default location of the library. |
5473 openbsd*) | 6008 openbsd*) |
5474 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6009 _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5475 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6010 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 6011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
5477 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 6012 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6013 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
5478 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 6014 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5479 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 6015 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5480 else | 6016 else |
5481 case $host_os in | 6017 case $host_os in |
5482 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | 6018 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
5518 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 6054 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5519 else | 6055 else |
5520 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 6056 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
5521 _LT_AC_TAGVAR(archive_cmds, $1)='$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' | 6057 _LT_AC_TAGVAR(archive_cmds, $1)='$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' |
5522 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 6058 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
5523 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | 6059 $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' |
5524 | 6060 |
5525 # Both c and cxx compiler support -rpath directly | 6061 # Both c and cxx compiler support -rpath directly |
5526 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 6062 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
5527 fi | 6063 fi |
5528 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 6064 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
5529 ;; | 6065 ;; |
5530 | 6066 |
5531 sco3.2v5*) | |
5532 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5533 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5534 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
5535 runpath_var=LD_RUN_PATH | |
5536 hardcode_runpath_var=yes | |
5537 ;; | |
5538 | |
5539 solaris*) | 6067 solaris*) |
5540 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | 6068 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
5541 if test "$GCC" = yes; then | 6069 if test "$GCC" = yes; then |
6070 wlarc='${wl}' | |
5542 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 6071 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5543 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 6072 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
5544 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 6073 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
5545 else | 6074 else |
6075 wlarc='' | |
5546 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 6076 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5547 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 6077 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
5548 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 6078 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
5549 fi | 6079 fi |
5550 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 6080 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5551 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6081 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5552 case $host_os in | 6082 case $host_os in |
5553 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 6083 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
5554 *) # Supported since Solaris 2.6 (maybe 2.5.1?) | 6084 *) |
5555 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; | 6085 # The compiler driver will combine linker options so we |
6086 # cannot just pass the convience library names through | |
6087 # without $wl, iff we do not link with $LD. | |
6088 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
6089 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
6090 case $wlarc in | |
6091 '') | |
6092 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; | |
6093 *) | |
6094 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
6095 esac ;; | |
5556 esac | 6096 esac |
5557 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 6097 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5558 ;; | 6098 ;; |
5559 | 6099 |
5560 sunos4*) | 6100 sunos4*) |
5607 hardcode_runpath_var=yes | 6147 hardcode_runpath_var=yes |
5608 _LT_AC_TAGVAR(ld_shlibs, $1)=yes | 6148 _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
5609 fi | 6149 fi |
5610 ;; | 6150 ;; |
5611 | 6151 |
5612 sysv4.2uw2*) | 6152 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) |
5613 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 6153 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
5614 _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 6154 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5615 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | |
5616 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5617 hardcode_runpath_var=yes | |
5618 runpath_var=LD_RUN_PATH | |
5619 ;; | |
5620 | |
5621 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) | |
5622 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' | |
5623 if test "$GCC" = yes; then | |
5624 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5625 else | |
5626 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5627 fi | |
5628 runpath_var='LD_RUN_PATH' | |
5629 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5630 ;; | |
5631 | |
5632 sysv5*) | |
5633 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | |
5634 # $CC -shared without GNU ld will not create a library from C++ | |
5635 # object files and a static libstdc++, better avoid it by now | |
5636 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5637 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
5638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
5639 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
5640 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 6155 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5641 runpath_var='LD_RUN_PATH' | 6156 runpath_var='LD_RUN_PATH' |
6157 | |
6158 if test "$GCC" = yes; then | |
6159 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6160 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6161 else | |
6162 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6163 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6164 fi | |
6165 ;; | |
6166 | |
6167 sysv5* | sco3.2v5* | sco5v6*) | |
6168 # Note: We can NOT use -z defs as we might desire, because we do not | |
6169 # link with -lc, and that would cause any symbols used from libc to | |
6170 # always be unresolved, which means just about no library would | |
6171 # ever link correctly. If we're not using GNU ld we use -z text | |
6172 # though, which does catch some bad symbols but isn't as heavy-handed | |
6173 # as -z defs. | |
6174 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
6175 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | |
6176 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | |
6177 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6178 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
6179 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | |
6180 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | |
6181 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
6182 runpath_var='LD_RUN_PATH' | |
6183 | |
6184 if test "$GCC" = yes; then | |
6185 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6186 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6187 else | |
6188 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6189 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6190 fi | |
5642 ;; | 6191 ;; |
5643 | 6192 |
5644 uts4*) | 6193 uts4*) |
5645 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 6194 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
5646 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 6195 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5653 esac | 6202 esac |
5654 fi | 6203 fi |
5655 ]) | 6204 ]) |
5656 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | 6205 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
5657 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 6206 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
5658 | |
5659 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
5660 if test "$GCC" = yes; then | |
5661 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
5662 fi | |
5663 | 6207 |
5664 # | 6208 # |
5665 # Do we need to explicitly link libc? | 6209 # Do we need to explicitly link libc? |
5666 # | 6210 # |
5667 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in | 6211 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in |
5679 # systems, -lgcc has to come before -lc. If gcc already passes -lc | 6223 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
5680 # to ld, don't add -lc before -lgcc. | 6224 # to ld, don't add -lc before -lgcc. |
5681 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | 6225 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
5682 $rm conftest* | 6226 $rm conftest* |
5683 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 6227 printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
5684 | 6228 |
5685 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | 6229 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
5686 soname=conftest | 6230 soname=conftest |
5687 lib=conftest | 6231 lib=conftest |
5688 libobjs=conftest.$ac_objext | 6232 libobjs=conftest.$ac_objext |
5689 deplibs= | 6233 deplibs= |
5690 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | 6234 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
6235 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | |
5691 compiler_flags=-v | 6236 compiler_flags=-v |
5692 linker_flags=-v | 6237 linker_flags=-v |
5693 verstring= | 6238 verstring= |
5694 output_objdir=. | 6239 output_objdir=. |
5695 libname=conftest | 6240 libname=conftest |
5811 lt_ac_max=0 | 6356 lt_ac_max=0 |
5812 lt_ac_count=0 | 6357 lt_ac_count=0 |
5813 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 6358 # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
5814 # along with /bin/sed that truncates output. | 6359 # along with /bin/sed that truncates output. |
5815 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 6360 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
5816 test ! -f $lt_ac_sed && break | 6361 test ! -f $lt_ac_sed && continue |
5817 cat /dev/null > conftest.in | 6362 cat /dev/null > conftest.in |
5818 lt_ac_count=0 | 6363 lt_ac_count=0 |
5819 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 6364 echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
5820 # Check for GNU sed and select it if it is found. | 6365 # Check for GNU sed and select it if it is found. |
5821 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | 6366 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
5836 lt_ac_max=$lt_ac_count | 6381 lt_ac_max=$lt_ac_count |
5837 lt_cv_path_SED=$lt_ac_sed | 6382 lt_cv_path_SED=$lt_ac_sed |
5838 fi | 6383 fi |
5839 done | 6384 done |
5840 done | 6385 done |
6386 ]) | |
5841 SED=$lt_cv_path_SED | 6387 SED=$lt_cv_path_SED |
5842 ]) | |
5843 AC_MSG_RESULT([$SED]) | 6388 AC_MSG_RESULT([$SED]) |
5844 ]) | 6389 ]) |
5845 | 6390 |