diff options
author | Christian Grothoff <christian@grothoff.org> | 2006-10-12 20:51:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2006-10-12 20:51:47 +0000 |
commit | 827d8c30354e2d4febcafba1d94c8919c0d85fe5 (patch) | |
tree | a421940cb24de7f4ff69046cc3d05bac12046174 /libltdl/aclocal.m4 | |
parent | 2c188c94282971e74ff8d1e206d16492f10d7ec7 (diff) | |
download | gnunet-gtk-827d8c30354e2d4febcafba1d94c8919c0d85fe5.tar.gz gnunet-gtk-827d8c30354e2d4febcafba1d94c8919c0d85fe5.zip |
towards 0.7.1
Diffstat (limited to 'libltdl/aclocal.m4')
-rw-r--r-- | libltdl/aclocal.m4 | 1662 |
1 files changed, 602 insertions, 1060 deletions
diff --git a/libltdl/aclocal.m4 b/libltdl/aclocal.m4 index 4f3077ba..f83c9b74 100644 --- a/libltdl/aclocal.m4 +++ b/libltdl/aclocal.m4 | |||
@@ -13,7 +13,8 @@ | |||
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 48 Debian 1.5.22-4 AC_PROG_LIBTOOL | 16 | # serial 47 AC_PROG_LIBTOOL |
17 | # Debian $Rev: 214 $ | ||
17 | 18 | ||
18 | 19 | ||
19 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | 20 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
@@ -123,7 +124,7 @@ esac | |||
123 | 124 | ||
124 | # Sed substitution that helps us do robust quoting. It backslashifies | 125 | # Sed substitution that helps us do robust quoting. It backslashifies |
125 | # metacharacters that are still active within double-quoted strings. | 126 | # metacharacters that are still active within double-quoted strings. |
126 | Xsed='sed -e 1s/^X//' | 127 | Xsed='sed -e s/^X//' |
127 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | 128 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
128 | 129 | ||
129 | # Same as above, but do not quote variable references. | 130 | # Same as above, but do not quote variable references. |
@@ -143,7 +144,7 @@ rm="rm -f" | |||
143 | default_ofile=libtool | 144 | default_ofile=libtool |
144 | can_build_shared=yes | 145 | can_build_shared=yes |
145 | 146 | ||
146 | # All known linkers require a `.a' archive for static linking (except MSVC, | 147 | # All known linkers require a `.a' archive for static linking (except M$VC, |
147 | # which needs '.lib'). | 148 | # which needs '.lib'). |
148 | libext=a | 149 | libext=a |
149 | ltmain="$ac_aux_dir/ltmain.sh" | 150 | ltmain="$ac_aux_dir/ltmain.sh" |
@@ -163,7 +164,6 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | |||
163 | test -z "$AS" && AS=as | 164 | test -z "$AS" && AS=as |
164 | test -z "$CC" && CC=cc | 165 | test -z "$CC" && CC=cc |
165 | test -z "$LTCC" && LTCC=$CC | 166 | test -z "$LTCC" && LTCC=$CC |
166 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
167 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 167 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
168 | test -z "$LD" && LD=ld | 168 | test -z "$LD" && LD=ld |
169 | test -z "$LN_S" && LN_S="ln -s" | 169 | test -z "$LN_S" && LN_S="ln -s" |
@@ -183,17 +183,15 @@ old_postuninstall_cmds= | |||
183 | if test -n "$RANLIB"; then | 183 | if test -n "$RANLIB"; then |
184 | case $host_os in | 184 | case $host_os in |
185 | openbsd*) | 185 | openbsd*) |
186 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | 186 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
187 | ;; | 187 | ;; |
188 | *) | 188 | *) |
189 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 189 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
190 | ;; | 190 | ;; |
191 | esac | 191 | esac |
192 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 192 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
193 | fi | 193 | fi |
194 | 194 | ||
195 | _LT_CC_BASENAME([$compiler]) | ||
196 | |||
197 | # Only perform the check for file, if the check method requires it | 195 | # Only perform the check for file, if the check method requires it |
198 | case $deplibs_check_method in | 196 | case $deplibs_check_method in |
199 | file_magic*) | 197 | file_magic*) |
@@ -234,56 +232,11 @@ AC_DEFUN([_LT_AC_SYS_COMPILER], | |||
234 | # If no C compiler was specified, use CC. | 232 | # If no C compiler was specified, use CC. |
235 | LTCC=${LTCC-"$CC"} | 233 | LTCC=${LTCC-"$CC"} |
236 | 234 | ||
237 | # If no C compiler flags were specified, use CFLAGS. | ||
238 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
239 | |||
240 | # Allow CC to be a program name with arguments. | 235 | # Allow CC to be a program name with arguments. |
241 | compiler=$CC | 236 | compiler=$CC |
242 | ])# _LT_AC_SYS_COMPILER | 237 | ])# _LT_AC_SYS_COMPILER |
243 | 238 | ||
244 | 239 | ||
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 | ||
285 | |||
286 | |||
287 | # _LT_AC_SYS_LIBPATH_AIX | 240 | # _LT_AC_SYS_LIBPATH_AIX |
288 | # ---------------------- | 241 | # ---------------------- |
289 | # Links a minimal program and checks the executable | 242 | # Links a minimal program and checks the executable |
@@ -356,15 +309,15 @@ fi | |||
356 | 309 | ||
357 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 310 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
358 | # if CDPATH is set. | 311 | # if CDPATH is set. |
359 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 312 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
360 | 313 | ||
361 | if test -z "$ECHO"; then | 314 | if test -z "$ECHO"; then |
362 | if test "X${echo_test_string+set}" != Xset; then | 315 | if test "X${echo_test_string+set}" != Xset; then |
363 | # find a string as large as possible, as long as the shell can cope with it | 316 | # find a string as large as possible, as long as the shell can cope with it |
364 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | 317 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
365 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 318 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
366 | if (echo_test_string=`eval $cmd`) 2>/dev/null && | 319 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
367 | echo_test_string=`eval $cmd` && | 320 | echo_test_string="`eval $cmd`" && |
368 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 321 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
369 | then | 322 | then |
370 | break | 323 | break |
@@ -533,7 +486,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |||
533 | # Find out which ABI we are using. | 486 | # Find out which ABI we are using. |
534 | echo 'int i;' > conftest.$ac_ext | 487 | echo 'int i;' > conftest.$ac_ext |
535 | if AC_TRY_EVAL(ac_compile); then | 488 | if AC_TRY_EVAL(ac_compile); then |
536 | case `/usr/bin/file conftest.o` in | 489 | case "`/usr/bin/file conftest.o`" in |
537 | *32-bit*) | 490 | *32-bit*) |
538 | case $host in | 491 | case $host in |
539 | x86_64-*linux*) | 492 | x86_64-*linux*) |
@@ -584,22 +537,6 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |||
584 | CFLAGS="$SAVE_CFLAGS" | 537 | CFLAGS="$SAVE_CFLAGS" |
585 | fi | 538 | fi |
586 | ;; | 539 | ;; |
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 | |||
603 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | 540 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
604 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) | 541 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
605 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | 542 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
@@ -631,7 +568,7 @@ AC_CACHE_CHECK([$1], [$2], | |||
631 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 568 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
632 | # The option is referenced via a variable to avoid confusing sed. | 569 | # The option is referenced via a variable to avoid confusing sed. |
633 | lt_compile=`echo "$ac_compile" | $SED \ | 570 | lt_compile=`echo "$ac_compile" | $SED \ |
634 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 571 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
635 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 572 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
636 | -e 's:$: $lt_compiler_flag:'` | 573 | -e 's:$: $lt_compiler_flag:'` |
637 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 574 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
@@ -641,10 +578,8 @@ AC_CACHE_CHECK([$1], [$2], | |||
641 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | 578 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
642 | if (exit $ac_status) && test -s "$ac_outfile"; then | 579 | if (exit $ac_status) && test -s "$ac_outfile"; then |
643 | # The compiler can only warn and ignore the option if not recognized | 580 | # The compiler can only warn and ignore the option if not recognized |
644 | # So say no if there are warnings other than the usual output. | 581 | # So say no if there are warnings |
645 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 582 | if test ! -s conftest.err; then |
646 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
647 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
648 | $2=yes | 583 | $2=yes |
649 | fi | 584 | fi |
650 | fi | 585 | fi |
@@ -670,16 +605,11 @@ AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], | |||
670 | LDFLAGS="$LDFLAGS $3" | 605 | LDFLAGS="$LDFLAGS $3" |
671 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | 606 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
672 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 607 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
673 | # The linker can only warn and ignore the option if not recognized | 608 | # The compiler can only warn and ignore the option if not recognized |
674 | # So say no if there are warnings | 609 | # So say no if there are warnings |
675 | if test -s conftest.err; then | 610 | if test -s conftest.err; then |
676 | # Append any errors to the config.log. | 611 | # Append any errors to the config.log. |
677 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | 612 | 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 | ||
683 | else | 613 | else |
684 | $2=yes | 614 | $2=yes |
685 | fi | 615 | fi |
@@ -738,55 +668,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |||
738 | lt_cv_sys_max_cmd_len=8192; | 668 | lt_cv_sys_max_cmd_len=8192; |
739 | ;; | 669 | ;; |
740 | 670 | ||
741 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | 671 | *) |
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 | *) | ||
785 | # If test is not a shell built-in, we'll probably end up computing a | 672 | # If test is not a shell built-in, we'll probably end up computing a |
786 | # maximum length that is only half of the actual maximum length, but | 673 | # maximum length that is only half of the actual maximum length, but |
787 | # we can't tell. | 674 | # we can't tell. |
788 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 675 | while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
789 | while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ | ||
790 | = "XX$teststring") >/dev/null 2>&1 && | 676 | = "XX$teststring") >/dev/null 2>&1 && |
791 | new_result=`expr "X$teststring" : ".*" 2>&1` && | 677 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
792 | lt_cv_sys_max_cmd_len=$new_result && | 678 | lt_cv_sys_max_cmd_len=$new_result && |
@@ -812,7 +698,7 @@ fi | |||
812 | 698 | ||
813 | 699 | ||
814 | # _LT_AC_CHECK_DLFCN | 700 | # _LT_AC_CHECK_DLFCN |
815 | # ------------------ | 701 | # -------------------- |
816 | AC_DEFUN([_LT_AC_CHECK_DLFCN], | 702 | AC_DEFUN([_LT_AC_CHECK_DLFCN], |
817 | [AC_CHECK_HEADERS(dlfcn.h)dnl | 703 | [AC_CHECK_HEADERS(dlfcn.h)dnl |
818 | ])# _LT_AC_CHECK_DLFCN | 704 | ])# _LT_AC_CHECK_DLFCN |
@@ -820,7 +706,7 @@ AC_DEFUN([_LT_AC_CHECK_DLFCN], | |||
820 | 706 | ||
821 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | 707 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
822 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | 708 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
823 | # --------------------------------------------------------------------- | 709 | # ------------------------------------------------------------------ |
824 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | 710 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
825 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 711 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
826 | if test "$cross_compiling" = yes; then : | 712 | if test "$cross_compiling" = yes; then : |
@@ -886,19 +772,17 @@ int main () | |||
886 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 772 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
887 | /* dlclose (self); */ | 773 | /* dlclose (self); */ |
888 | } | 774 | } |
889 | else | ||
890 | puts (dlerror ()); | ||
891 | 775 | ||
892 | exit (status); | 776 | exit (status); |
893 | }] | 777 | }] |
894 | EOF | 778 | EOF |
895 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | 779 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
896 | (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | 780 | (./conftest; exit; ) 2>/dev/null |
897 | lt_status=$? | 781 | lt_status=$? |
898 | case x$lt_status in | 782 | case x$lt_status in |
899 | x$lt_dlno_uscore) $1 ;; | 783 | x$lt_dlno_uscore) $1 ;; |
900 | x$lt_dlneed_uscore) $2 ;; | 784 | x$lt_dlneed_uscore) $2 ;; |
901 | x$lt_dlunknown|x*) $3 ;; | 785 | x$lt_unknown|x*) $3 ;; |
902 | esac | 786 | esac |
903 | else : | 787 | else : |
904 | # compilation failed | 788 | # compilation failed |
@@ -910,7 +794,7 @@ rm -fr conftest* | |||
910 | 794 | ||
911 | 795 | ||
912 | # AC_LIBTOOL_DLOPEN_SELF | 796 | # AC_LIBTOOL_DLOPEN_SELF |
913 | # ---------------------- | 797 | # ------------------- |
914 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | 798 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
915 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | 799 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
916 | if test "x$enable_dlopen" != xyes; then | 800 | if test "x$enable_dlopen" != xyes; then |
@@ -981,7 +865,7 @@ else | |||
981 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 865 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
982 | 866 | ||
983 | save_LDFLAGS="$LDFLAGS" | 867 | save_LDFLAGS="$LDFLAGS" |
984 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 868 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
985 | 869 | ||
986 | save_LIBS="$LIBS" | 870 | save_LIBS="$LIBS" |
987 | LIBS="$lt_cv_dlopen_libs $LIBS" | 871 | LIBS="$lt_cv_dlopen_libs $LIBS" |
@@ -994,7 +878,7 @@ else | |||
994 | ]) | 878 | ]) |
995 | 879 | ||
996 | if test "x$lt_cv_dlopen_self" = xyes; then | 880 | if test "x$lt_cv_dlopen_self" = xyes; then |
997 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | 881 | LDFLAGS="$LDFLAGS $link_static_flag" |
998 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | 882 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
999 | lt_cv_dlopen_self_static, [dnl | 883 | lt_cv_dlopen_self_static, [dnl |
1000 | _LT_AC_TRY_DLOPEN_SELF( | 884 | _LT_AC_TRY_DLOPEN_SELF( |
@@ -1042,7 +926,7 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | |||
1042 | # Note that $ac_compile itself does not contain backslashes and begins | 926 | # Note that $ac_compile itself does not contain backslashes and begins |
1043 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 927 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
1044 | lt_compile=`echo "$ac_compile" | $SED \ | 928 | lt_compile=`echo "$ac_compile" | $SED \ |
1045 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 929 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
1046 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | 930 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1047 | -e 's:$: $lt_compiler_flag:'` | 931 | -e 's:$: $lt_compiler_flag:'` |
1048 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | 932 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
@@ -1054,13 +938,11 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | |||
1054 | then | 938 | then |
1055 | # The compiler can only warn and ignore the option if not recognized | 939 | # The compiler can only warn and ignore the option if not recognized |
1056 | # So say no if there are warnings | 940 | # So say no if there are warnings |
1057 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 941 | if test ! -s out/conftest.err; then |
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 | ||
1060 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 942 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
1061 | fi | 943 | fi |
1062 | fi | 944 | fi |
1063 | chmod u+w . 2>&AS_MESSAGE_LOG_FD | 945 | chmod u+w . |
1064 | $rm conftest* | 946 | $rm conftest* |
1065 | # SGI C++ compiler will create directory out/ii_files/ for | 947 | # SGI C++ compiler will create directory out/ii_files/ for |
1066 | # template instantiation | 948 | # template instantiation |
@@ -1124,8 +1006,8 @@ AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], | |||
1124 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | 1006 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
1125 | _LT_AC_TAGVAR(hardcode_action, $1)= | 1007 | _LT_AC_TAGVAR(hardcode_action, $1)= |
1126 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | 1008 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
1127 | test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | 1009 | test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ |
1128 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | 1010 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then |
1129 | 1011 | ||
1130 | # We can hardcode non-existant directories. | 1012 | # We can hardcode non-existant directories. |
1131 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | 1013 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
@@ -1292,7 +1174,7 @@ beos*) | |||
1292 | shlibpath_var=LIBRARY_PATH | 1174 | shlibpath_var=LIBRARY_PATH |
1293 | ;; | 1175 | ;; |
1294 | 1176 | ||
1295 | bsdi[[45]]*) | 1177 | bsdi4*) |
1296 | version_type=linux | 1178 | version_type=linux |
1297 | need_version=no | 1179 | need_version=no |
1298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
@@ -1320,8 +1202,7 @@ cygwin* | mingw* | pw32*) | |||
1320 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 1202 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
1321 | dldir=$destdir/`dirname \$dlpath`~ | 1203 | dldir=$destdir/`dirname \$dlpath`~ |
1322 | test -d \$dldir || mkdir -p \$dldir~ | 1204 | test -d \$dldir || mkdir -p \$dldir~ |
1323 | $install_prog $dir/$dlname \$dldir/$dlname~ | 1205 | $install_prog $dir/$dlname \$dldir/$dlname' |
1324 | chmod a+x \$dldir/$dlname' | ||
1325 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 1206 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
1326 | dlpath=$dir/\$dldll~ | 1207 | dlpath=$dir/\$dldll~ |
1327 | $rm \$dlpath' | 1208 | $rm \$dlpath' |
@@ -1351,7 +1232,7 @@ cygwin* | mingw* | pw32*) | |||
1351 | ;; | 1232 | ;; |
1352 | pw32*) | 1233 | pw32*) |
1353 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 1234 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
1354 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | 1235 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
1355 | ;; | 1236 | ;; |
1356 | esac | 1237 | esac |
1357 | ;; | 1238 | ;; |
@@ -1374,7 +1255,7 @@ darwin* | rhapsody*) | |||
1374 | soname_spec='${libname}${release}${major}$shared_ext' | 1255 | soname_spec='${libname}${release}${major}$shared_ext' |
1375 | shlibpath_overrides_runpath=yes | 1256 | shlibpath_overrides_runpath=yes |
1376 | shlibpath_var=DYLD_LIBRARY_PATH | 1257 | shlibpath_var=DYLD_LIBRARY_PATH |
1377 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 1258 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
1378 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 1259 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
1379 | if test "$GCC" = yes; then | 1260 | if test "$GCC" = yes; then |
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"` | 1261 | 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"` |
@@ -1397,17 +1278,20 @@ freebsd1*) | |||
1397 | dynamic_linker=no | 1278 | dynamic_linker=no |
1398 | ;; | 1279 | ;; |
1399 | 1280 | ||
1400 | freebsd* | dragonfly*) | 1281 | kfreebsd*-gnu) |
1401 | # DragonFly does not have aout. When/if they implement a new | 1282 | version_type=linux |
1402 | # versioning mechanism, adjust this. | 1283 | need_lib_prefix=no |
1403 | if test -x /usr/bin/objformat; then | 1284 | need_version=no |
1404 | objformat=`/usr/bin/objformat` | 1285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
1405 | else | 1286 | soname_spec='${libname}${release}${shared_ext}$major' |
1406 | case $host_os in | 1287 | shlibpath_var=LD_LIBRARY_PATH |
1407 | freebsd[[123]]*) objformat=aout ;; | 1288 | shlibpath_overrides_runpath=no |
1408 | *) objformat=elf ;; | 1289 | hardcode_into_libs=yes |
1409 | esac | 1290 | dynamic_linker='GNU ld.so' |
1410 | fi | 1291 | ;; |
1292 | |||
1293 | freebsd*) | ||
1294 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
1411 | version_type=freebsd-$objformat | 1295 | version_type=freebsd-$objformat |
1412 | case $version_type in | 1296 | case $version_type in |
1413 | freebsd-elf*) | 1297 | freebsd-elf*) |
@@ -1425,19 +1309,14 @@ freebsd* | dragonfly*) | |||
1425 | freebsd2*) | 1309 | freebsd2*) |
1426 | shlibpath_overrides_runpath=yes | 1310 | shlibpath_overrides_runpath=yes |
1427 | ;; | 1311 | ;; |
1428 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | 1312 | freebsd3.[01]* | freebsdelf3.[01]*) |
1429 | shlibpath_overrides_runpath=yes | 1313 | shlibpath_overrides_runpath=yes |
1430 | hardcode_into_libs=yes | 1314 | hardcode_into_libs=yes |
1431 | ;; | 1315 | ;; |
1432 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | 1316 | *) # from 3.2 on |
1433 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | ||
1434 | shlibpath_overrides_runpath=no | 1317 | shlibpath_overrides_runpath=no |
1435 | hardcode_into_libs=yes | 1318 | hardcode_into_libs=yes |
1436 | ;; | 1319 | ;; |
1437 | freebsd*) # from 4.6 on | ||
1438 | shlibpath_overrides_runpath=yes | ||
1439 | hardcode_into_libs=yes | ||
1440 | ;; | ||
1441 | esac | 1320 | esac |
1442 | ;; | 1321 | ;; |
1443 | 1322 | ||
@@ -1457,7 +1336,7 @@ hpux9* | hpux10* | hpux11*) | |||
1457 | version_type=sunos | 1336 | version_type=sunos |
1458 | need_lib_prefix=no | 1337 | need_lib_prefix=no |
1459 | need_version=no | 1338 | need_version=no |
1460 | case $host_cpu in | 1339 | case "$host_cpu" in |
1461 | ia64*) | 1340 | ia64*) |
1462 | shrext_cmds='.so' | 1341 | shrext_cmds='.so' |
1463 | hardcode_into_libs=yes | 1342 | hardcode_into_libs=yes |
@@ -1497,18 +1376,6 @@ hpux9* | hpux10* | hpux11*) | |||
1497 | postinstall_cmds='chmod 555 $lib' | 1376 | postinstall_cmds='chmod 555 $lib' |
1498 | ;; | 1377 | ;; |
1499 | 1378 | ||
1500 | interix3*) | ||
1501 | version_type=linux | ||
1502 | need_lib_prefix=no | ||
1503 | need_version=no | ||
1504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
1505 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1506 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
1507 | shlibpath_var=LD_LIBRARY_PATH | ||
1508 | shlibpath_overrides_runpath=no | ||
1509 | hardcode_into_libs=yes | ||
1510 | ;; | ||
1511 | |||
1512 | irix5* | irix6* | nonstopux*) | 1379 | irix5* | irix6* | nonstopux*) |
1513 | case $host_os in | 1380 | case $host_os in |
1514 | nonstopux*) version_type=nonstopux ;; | 1381 | nonstopux*) version_type=nonstopux ;; |
@@ -1552,7 +1419,7 @@ linux*oldld* | linux*aout* | linux*coff*) | |||
1552 | ;; | 1419 | ;; |
1553 | 1420 | ||
1554 | # This must be Linux ELF. | 1421 | # This must be Linux ELF. |
1555 | linux* | k*bsd*-gnu) | 1422 | linux*) |
1556 | version_type=linux | 1423 | version_type=linux |
1557 | need_lib_prefix=no | 1424 | need_lib_prefix=no |
1558 | need_version=no | 1425 | need_version=no |
@@ -1568,7 +1435,7 @@ linux* | k*bsd*-gnu) | |||
1568 | 1435 | ||
1569 | # Append ld.so.conf contents to the search path | 1436 | # Append ld.so.conf contents to the search path |
1570 | if test -f /etc/ld.so.conf; then | 1437 | if test -f /etc/ld.so.conf; then |
1571 | 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' ' '` | 1438 | lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` |
1572 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 1439 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
1573 | fi | 1440 | fi |
1574 | 1441 | ||
@@ -1593,6 +1460,18 @@ netbsdelf*-gnu) | |||
1593 | dynamic_linker='NetBSD ld.elf_so' | 1460 | dynamic_linker='NetBSD ld.elf_so' |
1594 | ;; | 1461 | ;; |
1595 | 1462 | ||
1463 | knetbsd*-gnu) | ||
1464 | version_type=linux | ||
1465 | need_lib_prefix=no | ||
1466 | need_version=no | ||
1467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
1468 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1469 | shlibpath_var=LD_LIBRARY_PATH | ||
1470 | shlibpath_overrides_runpath=no | ||
1471 | hardcode_into_libs=yes | ||
1472 | dynamic_linker='GNU ld.so' | ||
1473 | ;; | ||
1474 | |||
1596 | netbsd*) | 1475 | netbsd*) |
1597 | version_type=sunos | 1476 | version_type=sunos |
1598 | need_lib_prefix=no | 1477 | need_lib_prefix=no |
@@ -1630,13 +1509,8 @@ nto-qnx*) | |||
1630 | 1509 | ||
1631 | openbsd*) | 1510 | openbsd*) |
1632 | version_type=sunos | 1511 | version_type=sunos |
1633 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
1634 | need_lib_prefix=no | 1512 | need_lib_prefix=no |
1635 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 1513 | need_version=yes |
1636 | case $host_os in | ||
1637 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
1638 | *) need_version=no ;; | ||
1639 | esac | ||
1640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 1514 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
1641 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 1515 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
1642 | shlibpath_var=LD_LIBRARY_PATH | 1516 | shlibpath_var=LD_LIBRARY_PATH |
@@ -1674,6 +1548,13 @@ osf3* | osf4* | osf5*) | |||
1674 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 1548 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
1675 | ;; | 1549 | ;; |
1676 | 1550 | ||
1551 | sco3.2v5*) | ||
1552 | version_type=osf | ||
1553 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
1555 | shlibpath_var=LD_LIBRARY_PATH | ||
1556 | ;; | ||
1557 | |||
1677 | solaris*) | 1558 | solaris*) |
1678 | version_type=linux | 1559 | version_type=linux |
1679 | need_lib_prefix=no | 1560 | need_lib_prefix=no |
@@ -1699,7 +1580,7 @@ sunos4*) | |||
1699 | need_version=yes | 1580 | need_version=yes |
1700 | ;; | 1581 | ;; |
1701 | 1582 | ||
1702 | sysv4 | sysv4.3*) | 1583 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
1703 | version_type=linux | 1584 | version_type=linux |
1704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1705 | soname_spec='${libname}${release}${shared_ext}$major' | 1586 | soname_spec='${libname}${release}${shared_ext}$major' |
@@ -1732,29 +1613,6 @@ sysv4*MP*) | |||
1732 | fi | 1613 | fi |
1733 | ;; | 1614 | ;; |
1734 | 1615 | ||
1735 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
1736 | version_type=freebsd-elf | ||
1737 | need_lib_prefix=no | ||
1738 | need_version=no | ||
1739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
1740 | soname_spec='${libname}${release}${shared_ext}$major' | ||
1741 | shlibpath_var=LD_LIBRARY_PATH | ||
1742 | hardcode_into_libs=yes | ||
1743 | if test "$with_gnu_ld" = yes; then | ||
1744 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
1745 | shlibpath_overrides_runpath=no | ||
1746 | else | ||
1747 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
1748 | shlibpath_overrides_runpath=yes | ||
1749 | case $host_os in | ||
1750 | sco3.2v5*) | ||
1751 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
1752 | ;; | ||
1753 | esac | ||
1754 | fi | ||
1755 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
1756 | ;; | ||
1757 | |||
1758 | uts4*) | 1616 | uts4*) |
1759 | version_type=linux | 1617 | version_type=linux |
1760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 1618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
@@ -1768,11 +1626,6 @@ uts4*) | |||
1768 | esac | 1626 | esac |
1769 | AC_MSG_RESULT([$dynamic_linker]) | 1627 | AC_MSG_RESULT([$dynamic_linker]) |
1770 | test "$dynamic_linker" = no && can_build_shared=no | 1628 | test "$dynamic_linker" = no && can_build_shared=no |
1771 | |||
1772 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
1773 | if test "$GCC" = yes; then | ||
1774 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
1775 | fi | ||
1776 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | 1629 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
1777 | 1630 | ||
1778 | 1631 | ||
@@ -1797,9 +1650,6 @@ if test -f "$ltmain" && test -n "$tagnames"; then | |||
1797 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | 1650 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
1798 | fi | 1651 | fi |
1799 | fi | 1652 | fi |
1800 | if test -z "$LTCFLAGS"; then | ||
1801 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | ||
1802 | fi | ||
1803 | 1653 | ||
1804 | # Extract list of available tagged configurations in $ofile. | 1654 | # Extract list of available tagged configurations in $ofile. |
1805 | # Note that this assumes the entire list is on one line. | 1655 | # Note that this assumes the entire list is on one line. |
@@ -1826,9 +1676,7 @@ if test -f "$ltmain" && test -n "$tagnames"; then | |||
1826 | 1676 | ||
1827 | case $tagname in | 1677 | case $tagname in |
1828 | CXX) | 1678 | CXX) |
1829 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 1679 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
1830 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
1831 | (test "X$CXX" != "Xg++"))) ; then | ||
1832 | AC_LIBTOOL_LANG_CXX_CONFIG | 1680 | AC_LIBTOOL_LANG_CXX_CONFIG |
1833 | else | 1681 | else |
1834 | tagname="" | 1682 | tagname="" |
@@ -1890,7 +1738,7 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN], | |||
1890 | 1738 | ||
1891 | # AC_LIBTOOL_WIN32_DLL | 1739 | # AC_LIBTOOL_WIN32_DLL |
1892 | # -------------------- | 1740 | # -------------------- |
1893 | # declare package support for building win32 DLLs | 1741 | # declare package support for building win32 dll's |
1894 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | 1742 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
1895 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | 1743 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
1896 | ])# AC_LIBTOOL_WIN32_DLL | 1744 | ])# AC_LIBTOOL_WIN32_DLL |
@@ -1928,7 +1776,7 @@ AC_ARG_ENABLE([shared], | |||
1928 | 1776 | ||
1929 | # AC_DISABLE_SHARED | 1777 | # AC_DISABLE_SHARED |
1930 | # ----------------- | 1778 | # ----------------- |
1931 | # set the default shared flag to --disable-shared | 1779 | #- set the default shared flag to --disable-shared |
1932 | AC_DEFUN([AC_DISABLE_SHARED], | 1780 | AC_DEFUN([AC_DISABLE_SHARED], |
1933 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 1781 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
1934 | AC_ENABLE_SHARED(no) | 1782 | AC_ENABLE_SHARED(no) |
@@ -2064,7 +1912,7 @@ dnl not every word. This closes a longstanding sh security hole. | |||
2064 | if test -n "$file_magic_test_file"; then | 1912 | if test -n "$file_magic_test_file"; then |
2065 | case $deplibs_check_method in | 1913 | case $deplibs_check_method in |
2066 | "file_magic "*) | 1914 | "file_magic "*) |
2067 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 1915 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
2068 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 1916 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2069 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 1917 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2070 | $EGREP "$file_magic_regex" > /dev/null; then | 1918 | $EGREP "$file_magic_regex" > /dev/null; then |
@@ -2174,7 +2022,7 @@ AC_CACHE_VAL(lt_cv_path_LD, | |||
2174 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 2022 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
2175 | lt_cv_path_LD="$ac_dir/$ac_prog" | 2023 | lt_cv_path_LD="$ac_dir/$ac_prog" |
2176 | # Check to see if the program is GNU ld. I'd rather use --version, | 2024 | # Check to see if the program is GNU ld. I'd rather use --version, |
2177 | # but apparently some variants of GNU ld only accept -v. | 2025 | # but apparently some GNU ld's only accept -v. |
2178 | # Break only if it was the GNU/non-GNU ld that we prefer. | 2026 | # Break only if it was the GNU/non-GNU ld that we prefer. |
2179 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 2027 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
2180 | *GNU* | *'with BFD'*) | 2028 | *GNU* | *'with BFD'*) |
@@ -2206,7 +2054,7 @@ AC_PROG_LD_GNU | |||
2206 | AC_DEFUN([AC_PROG_LD_GNU], | 2054 | AC_DEFUN([AC_PROG_LD_GNU], |
2207 | [AC_REQUIRE([AC_PROG_EGREP])dnl | 2055 | [AC_REQUIRE([AC_PROG_EGREP])dnl |
2208 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | 2056 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
2209 | [# I'd rather use --version here, but apparently some GNU lds only accept -v. | 2057 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
2210 | case `$LD -v 2>&1 </dev/null` in | 2058 | case `$LD -v 2>&1 </dev/null` in |
2211 | *GNU* | *'with BFD'*) | 2059 | *GNU* | *'with BFD'*) |
2212 | lt_cv_prog_gnu_ld=yes | 2060 | lt_cv_prog_gnu_ld=yes |
@@ -2233,15 +2081,6 @@ case $reload_flag in | |||
2233 | *) reload_flag=" $reload_flag" ;; | 2081 | *) reload_flag=" $reload_flag" ;; |
2234 | esac | 2082 | esac |
2235 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 2083 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
2236 | case $host_os in | ||
2237 | darwin*) | ||
2238 | if test "$GCC" = yes; then | ||
2239 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
2240 | else | ||
2241 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
2242 | fi | ||
2243 | ;; | ||
2244 | esac | ||
2245 | ])# AC_PROG_LD_RELOAD_FLAG | 2084 | ])# AC_PROG_LD_RELOAD_FLAG |
2246 | 2085 | ||
2247 | 2086 | ||
@@ -2275,7 +2114,7 @@ beos*) | |||
2275 | lt_cv_deplibs_check_method=pass_all | 2114 | lt_cv_deplibs_check_method=pass_all |
2276 | ;; | 2115 | ;; |
2277 | 2116 | ||
2278 | bsdi[[45]]*) | 2117 | bsdi4*) |
2279 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | 2118 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
2280 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 2119 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
2281 | lt_cv_file_magic_test_file=/shlib/libc.so | 2120 | lt_cv_file_magic_test_file=/shlib/libc.so |
@@ -2298,13 +2137,13 @@ darwin* | rhapsody*) | |||
2298 | lt_cv_deplibs_check_method=pass_all | 2137 | lt_cv_deplibs_check_method=pass_all |
2299 | ;; | 2138 | ;; |
2300 | 2139 | ||
2301 | freebsd* | dragonfly*) | 2140 | freebsd* | kfreebsd*-gnu) |
2302 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 2141 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2303 | case $host_cpu in | 2142 | case $host_cpu in |
2304 | i*86 ) | 2143 | i*86 ) |
2305 | # Not sure whether the presence of OpenBSD here was a mistake. | 2144 | # Not sure whether the presence of OpenBSD here was a mistake. |
2306 | # Let's accept both of them until this is cleared up. | 2145 | # Let's accept both of them until this is cleared up. |
2307 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | 2146 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
2308 | lt_cv_file_magic_cmd=/usr/bin/file | 2147 | lt_cv_file_magic_cmd=/usr/bin/file |
2309 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 2148 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
2310 | ;; | 2149 | ;; |
@@ -2320,7 +2159,7 @@ gnu*) | |||
2320 | 2159 | ||
2321 | hpux10.20* | hpux11*) | 2160 | hpux10.20* | hpux11*) |
2322 | lt_cv_file_magic_cmd=/usr/bin/file | 2161 | lt_cv_file_magic_cmd=/usr/bin/file |
2323 | case $host_cpu in | 2162 | case "$host_cpu" in |
2324 | ia64*) | 2163 | ia64*) |
2325 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | 2164 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
2326 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 2165 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
@@ -2336,11 +2175,6 @@ hpux10.20* | hpux11*) | |||
2336 | esac | 2175 | esac |
2337 | ;; | 2176 | ;; |
2338 | 2177 | ||
2339 | interix3*) | ||
2340 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
2341 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | ||
2342 | ;; | ||
2343 | |||
2344 | irix5* | irix6* | nonstopux*) | 2178 | irix5* | irix6* | nonstopux*) |
2345 | case $LD in | 2179 | case $LD in |
2346 | *-32|*"-32 ") libmagic=32-bit;; | 2180 | *-32|*"-32 ") libmagic=32-bit;; |
@@ -2352,11 +2186,11 @@ irix5* | irix6* | nonstopux*) | |||
2352 | ;; | 2186 | ;; |
2353 | 2187 | ||
2354 | # This must be Linux ELF. | 2188 | # This must be Linux ELF. |
2355 | linux* | k*bsd*-gnu) | 2189 | linux*) |
2356 | lt_cv_deplibs_check_method=pass_all | 2190 | lt_cv_deplibs_check_method=pass_all |
2357 | ;; | 2191 | ;; |
2358 | 2192 | ||
2359 | netbsd* | netbsdelf*-gnu) | 2193 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
2360 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 2194 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
2361 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | 2195 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
2362 | else | 2196 | else |
@@ -2375,10 +2209,12 @@ nto-qnx*) | |||
2375 | ;; | 2209 | ;; |
2376 | 2210 | ||
2377 | openbsd*) | 2211 | openbsd*) |
2212 | lt_cv_file_magic_cmd=/usr/bin/file | ||
2213 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
2378 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 2214 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2379 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | 2215 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
2380 | else | 2216 | else |
2381 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | 2217 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
2382 | fi | 2218 | fi |
2383 | ;; | 2219 | ;; |
2384 | 2220 | ||
@@ -2386,11 +2222,15 @@ osf3* | osf4* | osf5*) | |||
2386 | lt_cv_deplibs_check_method=pass_all | 2222 | lt_cv_deplibs_check_method=pass_all |
2387 | ;; | 2223 | ;; |
2388 | 2224 | ||
2225 | sco3.2v5*) | ||
2226 | lt_cv_deplibs_check_method=pass_all | ||
2227 | ;; | ||
2228 | |||
2389 | solaris*) | 2229 | solaris*) |
2390 | lt_cv_deplibs_check_method=pass_all | 2230 | lt_cv_deplibs_check_method=pass_all |
2391 | ;; | 2231 | ;; |
2392 | 2232 | ||
2393 | sysv4 | sysv4.3*) | 2233 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
2394 | case $host_vendor in | 2234 | case $host_vendor in |
2395 | motorola) | 2235 | motorola) |
2396 | 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]]' | 2236 | 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]]' |
@@ -2411,13 +2251,10 @@ sysv4 | sysv4.3*) | |||
2411 | siemens) | 2251 | siemens) |
2412 | lt_cv_deplibs_check_method=pass_all | 2252 | lt_cv_deplibs_check_method=pass_all |
2413 | ;; | 2253 | ;; |
2414 | pc) | ||
2415 | lt_cv_deplibs_check_method=pass_all | ||
2416 | ;; | ||
2417 | esac | 2254 | esac |
2418 | ;; | 2255 | ;; |
2419 | 2256 | ||
2420 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 2257 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) |
2421 | lt_cv_deplibs_check_method=pass_all | 2258 | lt_cv_deplibs_check_method=pass_all |
2422 | ;; | 2259 | ;; |
2423 | esac | 2260 | esac |
@@ -2437,43 +2274,36 @@ AC_DEFUN([AC_PROG_NM], | |||
2437 | # Let the user override the test. | 2274 | # Let the user override the test. |
2438 | lt_cv_path_NM="$NM" | 2275 | lt_cv_path_NM="$NM" |
2439 | else | 2276 | else |
2440 | lt_nm_to_check="${ac_tool_prefix}nm" | 2277 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2441 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 2278 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
2442 | lt_nm_to_check="$lt_nm_to_check nm" | 2279 | IFS="$lt_save_ifs" |
2443 | fi | 2280 | test -z "$ac_dir" && ac_dir=. |
2444 | for lt_tmp_nm in $lt_nm_to_check; do | 2281 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
2445 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 2282 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
2446 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 2283 | # Check to see if the nm accepts a BSD-compat flag. |
2447 | IFS="$lt_save_ifs" | 2284 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
2448 | test -z "$ac_dir" && ac_dir=. | 2285 | # nm: unknown option "B" ignored |
2449 | tmp_nm="$ac_dir/$lt_tmp_nm" | 2286 | # Tru64's nm complains that /dev/null is an invalid object file |
2450 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 2287 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
2451 | # Check to see if the nm accepts a BSD-compat flag. | 2288 | */dev/null* | *'Invalid file or object type'*) |
2452 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 2289 | lt_cv_path_NM="$tmp_nm -B" |
2453 | # nm: unknown option "B" ignored | 2290 | break |
2454 | # Tru64's nm complains that /dev/null is an invalid object file | 2291 | ;; |
2455 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 2292 | *) |
2456 | */dev/null* | *'Invalid file or object type'*) | 2293 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
2457 | lt_cv_path_NM="$tmp_nm -B" | 2294 | */dev/null*) |
2295 | lt_cv_path_NM="$tmp_nm -p" | ||
2458 | break | 2296 | break |
2459 | ;; | 2297 | ;; |
2460 | *) | 2298 | *) |
2461 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 2299 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
2462 | */dev/null*) | 2300 | continue # so that we can try to find one that supports BSD flags |
2463 | lt_cv_path_NM="$tmp_nm -p" | ||
2464 | break | ||
2465 | ;; | ||
2466 | *) | ||
2467 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
2468 | continue # so that we can try to find one that supports BSD flags | ||
2469 | ;; | ||
2470 | esac | ||
2471 | ;; | 2301 | ;; |
2472 | esac | 2302 | esac |
2473 | fi | 2303 | esac |
2474 | done | 2304 | fi |
2475 | IFS="$lt_save_ifs" | ||
2476 | done | 2305 | done |
2306 | IFS="$lt_save_ifs" | ||
2477 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 2307 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
2478 | fi]) | 2308 | fi]) |
2479 | NM="$lt_cv_path_NM" | 2309 | NM="$lt_cv_path_NM" |
@@ -2505,13 +2335,13 @@ esac | |||
2505 | # ----------------------------------- | 2335 | # ----------------------------------- |
2506 | # sets LIBLTDL to the link flags for the libltdl convenience library and | 2336 | # sets LIBLTDL to the link flags for the libltdl convenience library and |
2507 | # LTDLINCL to the include flags for the libltdl header and adds | 2337 | # LTDLINCL to the include flags for the libltdl header and adds |
2508 | # --enable-ltdl-convenience to the configure arguments. Note that | 2338 | # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL |
2509 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | 2339 | # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
2510 | # it is assumed to be `libltdl'. LIBLTDL will be prefixed with | 2340 | # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will |
2511 | # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' | 2341 | # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
2512 | # (note the single quotes!). If your package is not flat and you're not | 2342 | # '${top_srcdir}/' (note the single quotes!). If your package is not |
2513 | # using automake, define top_builddir and top_srcdir appropriately in | 2343 | # flat and you're not using automake, define top_builddir and |
2514 | # the Makefiles. | 2344 | # top_srcdir appropriately in the Makefiles. |
2515 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | 2345 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
2516 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 2346 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
2517 | case $enable_ltdl_convenience in | 2347 | case $enable_ltdl_convenience in |
@@ -2530,13 +2360,13 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | |||
2530 | # ----------------------------------- | 2360 | # ----------------------------------- |
2531 | # sets LIBLTDL to the link flags for the libltdl installable library and | 2361 | # sets LIBLTDL to the link flags for the libltdl installable library and |
2532 | # LTDLINCL to the include flags for the libltdl header and adds | 2362 | # LTDLINCL to the include flags for the libltdl header and adds |
2533 | # --enable-ltdl-install to the configure arguments. Note that | 2363 | # --enable-ltdl-install to the configure arguments. Note that LIBLTDL |
2534 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | 2364 | # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
2535 | # and an installed libltdl is not found, it is assumed to be `libltdl'. | 2365 | # DIRECTORY is not provided and an installed libltdl is not found, it is |
2536 | # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with | 2366 | # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' |
2537 | # '${top_srcdir}/' (note the single quotes!). If your package is not | 2367 | # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
2538 | # flat and you're not using automake, define top_builddir and top_srcdir | 2368 | # quotes!). If your package is not flat and you're not using automake, |
2539 | # appropriately in the Makefiles. | 2369 | # define top_builddir and top_srcdir appropriately in the Makefiles. |
2540 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | 2370 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
2541 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], | 2371 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
2542 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 2372 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
@@ -2574,21 +2404,10 @@ AC_DEFUN([AC_LIBTOOL_CXX], | |||
2574 | # --------------- | 2404 | # --------------- |
2575 | AC_DEFUN([_LT_AC_LANG_CXX], | 2405 | AC_DEFUN([_LT_AC_LANG_CXX], |
2576 | [AC_REQUIRE([AC_PROG_CXX]) | 2406 | [AC_REQUIRE([AC_PROG_CXX]) |
2577 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | 2407 | AC_REQUIRE([AC_PROG_CXXCPP]) |
2578 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | 2408 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
2579 | ])# _LT_AC_LANG_CXX | 2409 | ])# _LT_AC_LANG_CXX |
2580 | 2410 | ||
2581 | # _LT_AC_PROG_CXXCPP | ||
2582 | # ------------------ | ||
2583 | AC_DEFUN([_LT_AC_PROG_CXXCPP], | ||
2584 | [ | ||
2585 | AC_REQUIRE([AC_PROG_CXX]) | ||
2586 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
2587 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
2588 | (test "X$CXX" != "Xg++"))) ; then | ||
2589 | AC_PROG_CXXCPP | ||
2590 | fi | ||
2591 | ])# _LT_AC_PROG_CXXCPP | ||
2592 | 2411 | ||
2593 | # AC_LIBTOOL_F77 | 2412 | # AC_LIBTOOL_F77 |
2594 | # -------------- | 2413 | # -------------- |
@@ -2628,7 +2447,7 @@ _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | |||
2628 | 2447 | ||
2629 | 2448 | ||
2630 | # AC_LIBTOOL_RC | 2449 | # AC_LIBTOOL_RC |
2631 | # ------------- | 2450 | # -------------- |
2632 | # enable support for Windows resource files | 2451 | # enable support for Windows resource files |
2633 | AC_DEFUN([AC_LIBTOOL_RC], | 2452 | AC_DEFUN([AC_LIBTOOL_RC], |
2634 | [AC_REQUIRE([LT_AC_PROG_RC]) | 2453 | [AC_REQUIRE([LT_AC_PROG_RC]) |
@@ -2661,9 +2480,36 @@ lt_simple_link_test_code='int main(){return(0);}\n' | |||
2661 | 2480 | ||
2662 | _LT_AC_SYS_COMPILER | 2481 | _LT_AC_SYS_COMPILER |
2663 | 2482 | ||
2664 | # save warnings/boilerplate of simple test code | 2483 | # |
2665 | _LT_COMPILER_BOILERPLATE | 2484 | # Check for any special shared library compilation flags. |
2666 | _LT_LINKER_BOILERPLATE | 2485 | # |
2486 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= | ||
2487 | if test "$GCC" = no; then | ||
2488 | case $host_os in | ||
2489 | sco3.2v5*) | ||
2490 | _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' | ||
2491 | ;; | ||
2492 | esac | ||
2493 | fi | ||
2494 | if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then | ||
2495 | AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) | ||
2496 | if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : | ||
2497 | else | ||
2498 | AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) | ||
2499 | _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no | ||
2500 | fi | ||
2501 | fi | ||
2502 | |||
2503 | |||
2504 | # | ||
2505 | # Check to make sure the static flag actually works. | ||
2506 | # | ||
2507 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], | ||
2508 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | ||
2509 | $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), | ||
2510 | [], | ||
2511 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | ||
2512 | |||
2667 | 2513 | ||
2668 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | 2514 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
2669 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | 2515 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
@@ -2673,9 +2519,9 @@ AC_LIBTOOL_PROG_LD_SHLIBS($1) | |||
2673 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 2519 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
2674 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 2520 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
2675 | AC_LIBTOOL_SYS_LIB_STRIP | 2521 | AC_LIBTOOL_SYS_LIB_STRIP |
2676 | AC_LIBTOOL_DLOPEN_SELF | 2522 | AC_LIBTOOL_DLOPEN_SELF($1) |
2677 | 2523 | ||
2678 | # Report which library types will actually be built | 2524 | # Report which librarie types wil actually be built |
2679 | AC_MSG_CHECKING([if libtool supports shared libraries]) | 2525 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
2680 | AC_MSG_RESULT([$can_build_shared]) | 2526 | AC_MSG_RESULT([$can_build_shared]) |
2681 | 2527 | ||
@@ -2684,7 +2530,7 @@ test "$can_build_shared" = "no" && enable_shared=no | |||
2684 | 2530 | ||
2685 | # On AIX, shared libraries and static libraries use the same namespace, and | 2531 | # On AIX, shared libraries and static libraries use the same namespace, and |
2686 | # are all built from PIC. | 2532 | # are all built from PIC. |
2687 | case $host_os in | 2533 | case "$host_os" in |
2688 | aix3*) | 2534 | aix3*) |
2689 | test "$enable_shared" = yes && enable_static=no | 2535 | test "$enable_shared" = yes && enable_static=no |
2690 | if test -n "$RANLIB"; then | 2536 | if test -n "$RANLIB"; then |
@@ -2697,6 +2543,43 @@ aix4* | aix5*) | |||
2697 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 2543 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
2698 | test "$enable_shared" = yes && enable_static=no | 2544 | test "$enable_shared" = yes && enable_static=no |
2699 | fi | 2545 | fi |
2546 | ;; | ||
2547 | darwin* | rhapsody*) | ||
2548 | if test "$GCC" = yes; then | ||
2549 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
2550 | case "$host_os" in | ||
2551 | rhapsody* | darwin1.[[012]]) | ||
2552 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' | ||
2553 | ;; | ||
2554 | *) # Darwin 1.3 on | ||
2555 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
2556 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' | ||
2557 | else | ||
2558 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
2559 | 10.[[012]]) | ||
2560 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' | ||
2561 | ;; | ||
2562 | 10.*) | ||
2563 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' | ||
2564 | ;; | ||
2565 | esac | ||
2566 | fi | ||
2567 | ;; | ||
2568 | esac | ||
2569 | output_verbose_link_cmd='echo' | ||
2570 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' | ||
2571 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
2572 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
2573 | _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}' | ||
2574 | _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}' | ||
2575 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
2576 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
2577 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
2578 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' | ||
2579 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
2580 | else | ||
2581 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
2582 | fi | ||
2700 | ;; | 2583 | ;; |
2701 | esac | 2584 | esac |
2702 | AC_MSG_RESULT([$enable_shared]) | 2585 | AC_MSG_RESULT([$enable_shared]) |
@@ -2722,7 +2605,7 @@ AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | |||
2722 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | 2605 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
2723 | [AC_LANG_PUSH(C++) | 2606 | [AC_LANG_PUSH(C++) |
2724 | AC_REQUIRE([AC_PROG_CXX]) | 2607 | AC_REQUIRE([AC_PROG_CXX]) |
2725 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | 2608 | AC_REQUIRE([AC_PROG_CXXCPP]) |
2726 | 2609 | ||
2727 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 2610 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
2728 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | 2611 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
@@ -2734,7 +2617,6 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | |||
2734 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | 2617 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
2735 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 2618 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2736 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | 2619 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
2737 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
2738 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | 2620 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
2739 | _LT_AC_TAGVAR(module_cmds, $1)= | 2621 | _LT_AC_TAGVAR(module_cmds, $1)= |
2740 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | 2622 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
@@ -2752,7 +2634,7 @@ _LT_AC_TAGVAR(postdeps, $1)= | |||
2752 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= | 2634 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
2753 | 2635 | ||
2754 | # Source file extension for C++ test sources. | 2636 | # Source file extension for C++ test sources. |
2755 | ac_ext=cpp | 2637 | ac_ext=cc |
2756 | 2638 | ||
2757 | # Object file extension for compiled C++ test sources. | 2639 | # Object file extension for compiled C++ test sources. |
2758 | objext=o | 2640 | objext=o |
@@ -2762,15 +2644,11 @@ _LT_AC_TAGVAR(objext, $1)=$objext | |||
2762 | lt_simple_compile_test_code="int some_variable = 0;\n" | 2644 | lt_simple_compile_test_code="int some_variable = 0;\n" |
2763 | 2645 | ||
2764 | # Code to be used in simple link tests | 2646 | # Code to be used in simple link tests |
2765 | lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' | 2647 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
2766 | 2648 | ||
2767 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 2649 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
2768 | _LT_AC_SYS_COMPILER | 2650 | _LT_AC_SYS_COMPILER |
2769 | 2651 | ||
2770 | # save warnings/boilerplate of simple test code | ||
2771 | _LT_COMPILER_BOILERPLATE | ||
2772 | _LT_LINKER_BOILERPLATE | ||
2773 | |||
2774 | # Allow CC to be a program name with arguments. | 2652 | # Allow CC to be a program name with arguments. |
2775 | lt_save_CC=$CC | 2653 | lt_save_CC=$CC |
2776 | lt_save_LD=$LD | 2654 | lt_save_LD=$LD |
@@ -2781,18 +2659,18 @@ lt_save_path_LD=$lt_cv_path_LD | |||
2781 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 2659 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
2782 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 2660 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
2783 | else | 2661 | else |
2784 | $as_unset lt_cv_prog_gnu_ld | 2662 | unset lt_cv_prog_gnu_ld |
2785 | fi | 2663 | fi |
2786 | if test -n "${lt_cv_path_LDCXX+set}"; then | 2664 | if test -n "${lt_cv_path_LDCXX+set}"; then |
2787 | lt_cv_path_LD=$lt_cv_path_LDCXX | 2665 | lt_cv_path_LD=$lt_cv_path_LDCXX |
2788 | else | 2666 | else |
2789 | $as_unset lt_cv_path_LD | 2667 | unset lt_cv_path_LD |
2790 | fi | 2668 | fi |
2791 | test -z "${LDCXX+set}" || LD=$LDCXX | 2669 | test -z "${LDCXX+set}" || LD=$LDCXX |
2792 | CC=${CXX-"c++"} | 2670 | CC=${CXX-"c++"} |
2793 | compiler=$CC | 2671 | compiler=$CC |
2794 | _LT_AC_TAGVAR(compiler, $1)=$CC | 2672 | _LT_AC_TAGVAR(compiler, $1)=$CC |
2795 | _LT_CC_BASENAME([$compiler]) | 2673 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
2796 | 2674 | ||
2797 | # We don't want -fno-exception wen compiling C++ code, so set the | 2675 | # We don't want -fno-exception wen compiling C++ code, so set the |
2798 | # no_builtin_flag separately | 2676 | # no_builtin_flag separately |
@@ -2881,7 +2759,6 @@ case $host_os in | |||
2881 | ;; | 2759 | ;; |
2882 | esac | 2760 | esac |
2883 | done | 2761 | done |
2884 | ;; | ||
2885 | esac | 2762 | esac |
2886 | 2763 | ||
2887 | exp_sym_flag='-bexport' | 2764 | exp_sym_flag='-bexport' |
@@ -2900,7 +2777,7 @@ case $host_os in | |||
2900 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 2777 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
2901 | 2778 | ||
2902 | if test "$GXX" = yes; then | 2779 | if test "$GXX" = yes; then |
2903 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | 2780 | case $host_os in aix4.[012]|aix4.[012].*) |
2904 | # We only want to do this on AIX 4.2 and lower, the check | 2781 | # We only want to do this on AIX 4.2 and lower, the check |
2905 | # below for broken collect2 doesn't work under 4.3+ | 2782 | # below for broken collect2 doesn't work under 4.3+ |
2906 | collect2name=`${CC} -print-prog-name=collect2` | 2783 | collect2name=`${CC} -print-prog-name=collect2` |
@@ -2919,12 +2796,8 @@ case $host_os in | |||
2919 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 2796 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2920 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 2797 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2921 | fi | 2798 | fi |
2922 | ;; | ||
2923 | esac | 2799 | esac |
2924 | shared_flag='-shared' | 2800 | shared_flag='-shared' |
2925 | if test "$aix_use_runtimelinking" = yes; then | ||
2926 | shared_flag="$shared_flag "'${wl}-G' | ||
2927 | fi | ||
2928 | else | 2801 | else |
2929 | # not using gcc | 2802 | # not using gcc |
2930 | if test "$host_cpu" = ia64; then | 2803 | if test "$host_cpu" = ia64; then |
@@ -2951,12 +2824,12 @@ case $host_os in | |||
2951 | _LT_AC_SYS_LIBPATH_AIX | 2824 | _LT_AC_SYS_LIBPATH_AIX |
2952 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 2825 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
2953 | 2826 | ||
2954 | _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" | 2827 | _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" |
2955 | else | 2828 | else |
2956 | if test "$host_cpu" = ia64; then | 2829 | if test "$host_cpu" = ia64; then |
2957 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 2830 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
2958 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 2831 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
2959 | _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" | 2832 | _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" |
2960 | else | 2833 | else |
2961 | # Determine the default libpath from the value encoded in an empty executable. | 2834 | # Determine the default libpath from the value encoded in an empty executable. |
2962 | _LT_AC_SYS_LIBPATH_AIX | 2835 | _LT_AC_SYS_LIBPATH_AIX |
@@ -2965,26 +2838,16 @@ case $host_os in | |||
2965 | # -berok will link without error, but may produce a broken library. | 2838 | # -berok will link without error, but may produce a broken library. |
2966 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 2839 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
2967 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 2840 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
2841 | # -bexpall does not export symbols beginning with underscore (_) | ||
2842 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
2968 | # Exported symbols can be pulled into shared objects from archives | 2843 | # Exported symbols can be pulled into shared objects from archives |
2969 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 2844 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
2970 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 2845 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
2971 | # This is similar to how AIX traditionally builds its shared libraries. | 2846 | # This is similar to how AIX traditionally builds it's shared libraries. |
2972 | _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' | 2847 | _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' |
2973 | fi | 2848 | fi |
2974 | fi | 2849 | fi |
2975 | ;; | 2850 | ;; |
2976 | |||
2977 | beos*) | ||
2978 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
2979 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
2980 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
2981 | # support --undefined. This deserves some investigation. FIXME | ||
2982 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2983 | else | ||
2984 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
2985 | fi | ||
2986 | ;; | ||
2987 | |||
2988 | chorus*) | 2851 | chorus*) |
2989 | case $cc_basename in | 2852 | case $cc_basename in |
2990 | *) | 2853 | *) |
@@ -3003,7 +2866,7 @@ case $host_os in | |||
3003 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 2866 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
3004 | 2867 | ||
3005 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 2868 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
3006 | _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' | 2869 | _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' |
3007 | # If the export-symbols file already is a .def file (1st line | 2870 | # If the export-symbols file already is a .def file (1st line |
3008 | # is EXPORTS), use it as is; otherwise, prepend... | 2871 | # is EXPORTS), use it as is; otherwise, prepend... |
3009 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 2872 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
@@ -3012,81 +2875,70 @@ case $host_os in | |||
3012 | echo EXPORTS > $output_objdir/$soname.def; | 2875 | echo EXPORTS > $output_objdir/$soname.def; |
3013 | cat $export_symbols >> $output_objdir/$soname.def; | 2876 | cat $export_symbols >> $output_objdir/$soname.def; |
3014 | fi~ | 2877 | fi~ |
3015 | $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' | 2878 | $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' |
3016 | else | 2879 | else |
3017 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 2880 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3018 | fi | 2881 | fi |
3019 | ;; | 2882 | ;; |
3020 | darwin* | rhapsody*) | ||
3021 | case $host_os in | ||
3022 | rhapsody* | darwin1.[[012]]) | ||
3023 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | ||
3024 | ;; | ||
3025 | *) # Darwin 1.3 on | ||
3026 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
3027 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
3028 | else | ||
3029 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
3030 | 10.[[012]]) | ||
3031 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
3032 | ;; | ||
3033 | 10.*) | ||
3034 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | ||
3035 | ;; | ||
3036 | esac | ||
3037 | fi | ||
3038 | ;; | ||
3039 | esac | ||
3040 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3041 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3042 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
3043 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
3044 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | ||
3045 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3046 | 2883 | ||
3047 | if test "$GXX" = yes ; then | 2884 | darwin* | rhapsody*) |
3048 | lt_int_apple_cc_single_mod=no | 2885 | if test "$GXX" = yes; then |
3049 | output_verbose_link_cmd='echo' | 2886 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3050 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | 2887 | case "$host_os" in |
3051 | lt_int_apple_cc_single_mod=yes | 2888 | rhapsody* | darwin1.[[012]]) |
3052 | fi | 2889 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
3053 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | 2890 | ;; |
3054 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | 2891 | *) # Darwin 1.3 on |
3055 | else | 2892 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
3056 | _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' | 2893 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
3057 | fi | ||
3058 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
3059 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
3060 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
3061 | _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}' | ||
3062 | else | ||
3063 | _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}' | ||
3064 | fi | ||
3065 | _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}' | ||
3066 | else | 2894 | else |
3067 | case $cc_basename in | 2895 | case ${MACOSX_DEPLOYMENT_TARGET} in |
3068 | xlc*) | 2896 | 10.[[012]]) |
3069 | output_verbose_link_cmd='echo' | 2897 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
3070 | _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' | 2898 | ;; |
3071 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | 2899 | 10.*) |
3072 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | 2900 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
3073 | _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}' | 2901 | ;; |
3074 | _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}' | 2902 | esac |
3075 | ;; | ||
3076 | *) | ||
3077 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3078 | ;; | ||
3079 | esac | ||
3080 | fi | 2903 | fi |
3081 | ;; | 2904 | ;; |
2905 | esac | ||
2906 | lt_int_apple_cc_single_mod=no | ||
2907 | output_verbose_link_cmd='echo' | ||
2908 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | ||
2909 | lt_int_apple_cc_single_mod=yes | ||
2910 | fi | ||
2911 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
2912 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
2913 | else | ||
2914 | _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' | ||
2915 | fi | ||
2916 | _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
2917 | |||
2918 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
2919 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
2920 | _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}' | ||
2921 | else | ||
2922 | _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}' | ||
2923 | fi | ||
2924 | _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}' | ||
2925 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
2926 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
2927 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
2928 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' | ||
2929 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
2930 | else | ||
2931 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
2932 | fi | ||
2933 | ;; | ||
3082 | 2934 | ||
3083 | dgux*) | 2935 | dgux*) |
3084 | case $cc_basename in | 2936 | case $cc_basename in |
3085 | ec++*) | 2937 | ec++) |
3086 | # FIXME: insert proper C++ library support | 2938 | # FIXME: insert proper C++ library support |
3087 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 2939 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3088 | ;; | 2940 | ;; |
3089 | ghcx*) | 2941 | ghcx) |
3090 | # Green Hills C++ Compiler | 2942 | # Green Hills C++ Compiler |
3091 | # FIXME: insert proper C++ library support | 2943 | # FIXME: insert proper C++ library support |
3092 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 2944 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
@@ -3097,14 +2949,14 @@ case $host_os in | |||
3097 | ;; | 2949 | ;; |
3098 | esac | 2950 | esac |
3099 | ;; | 2951 | ;; |
3100 | freebsd[[12]]*) | 2952 | freebsd[12]*) |
3101 | # C++ shared libraries reported to be fairly broken before switch to ELF | 2953 | # C++ shared libraries reported to be fairly broken before switch to ELF |
3102 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 2954 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3103 | ;; | 2955 | ;; |
3104 | freebsd-elf*) | 2956 | freebsd-elf*) |
3105 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 2957 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3106 | ;; | 2958 | ;; |
3107 | freebsd* | dragonfly*) | 2959 | freebsd* | kfreebsd*-gnu) |
3108 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 2960 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
3109 | # conventions | 2961 | # conventions |
3110 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | 2962 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
@@ -3121,11 +2973,11 @@ case $host_os in | |||
3121 | # location of the library. | 2973 | # location of the library. |
3122 | 2974 | ||
3123 | case $cc_basename in | 2975 | case $cc_basename in |
3124 | CC*) | 2976 | CC) |
3125 | # FIXME: insert proper C++ library support | 2977 | # FIXME: insert proper C++ library support |
3126 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 2978 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3127 | ;; | 2979 | ;; |
3128 | aCC*) | 2980 | aCC) |
3129 | _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' | 2981 | _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' |
3130 | # Commands to make compiler produce verbose output that lists | 2982 | # Commands to make compiler produce verbose output that lists |
3131 | # what "hidden" libraries, object files and flags are used when | 2983 | # what "hidden" libraries, object files and flags are used when |
@@ -3135,7 +2987,7 @@ case $host_os in | |||
3135 | # explicitly linking system object files so we need to strip them | 2987 | # explicitly linking system object files so we need to strip them |
3136 | # from the output so that they don't get included in the library | 2988 | # from the output so that they don't get included in the library |
3137 | # dependencies. | 2989 | # dependencies. |
3138 | 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' | 2990 | 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' |
3139 | ;; | 2991 | ;; |
3140 | *) | 2992 | *) |
3141 | if test "$GXX" = yes; then | 2993 | if test "$GXX" = yes; then |
@@ -3149,23 +3001,34 @@ case $host_os in | |||
3149 | ;; | 3001 | ;; |
3150 | hpux10*|hpux11*) | 3002 | hpux10*|hpux11*) |
3151 | if test $with_gnu_ld = no; then | 3003 | if test $with_gnu_ld = no; then |
3152 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 3004 | case "$host_cpu" in |
3153 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3005 | hppa*64*) |
3154 | 3006 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
3155 | case $host_cpu in | ||
3156 | hppa*64*|ia64*) | ||
3157 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | 3007 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
3008 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3009 | ;; | ||
3010 | ia64*) | ||
3011 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
3158 | ;; | 3012 | ;; |
3159 | *) | 3013 | *) |
3014 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
3015 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
3160 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 3016 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
3161 | ;; | 3017 | ;; |
3162 | esac | 3018 | esac |
3163 | fi | 3019 | fi |
3164 | case $host_cpu in | 3020 | case "$host_cpu" in |
3165 | hppa*64*|ia64*) | 3021 | hppa*64*) |
3166 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | 3022 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
3167 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 3023 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3168 | ;; | 3024 | ;; |
3025 | ia64*) | ||
3026 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3027 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3028 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
3029 | # but as the default | ||
3030 | # location of the library. | ||
3031 | ;; | ||
3169 | *) | 3032 | *) |
3170 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 3033 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
3171 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | 3034 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
@@ -3175,17 +3038,14 @@ case $host_os in | |||
3175 | esac | 3038 | esac |
3176 | 3039 | ||
3177 | case $cc_basename in | 3040 | case $cc_basename in |
3178 | CC*) | 3041 | CC) |
3179 | # FIXME: insert proper C++ library support | 3042 | # FIXME: insert proper C++ library support |
3180 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3043 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3181 | ;; | 3044 | ;; |
3182 | aCC*) | 3045 | aCC) |
3183 | case $host_cpu in | 3046 | case "$host_cpu" in |
3184 | hppa*64*) | 3047 | hppa*64*|ia64*) |
3185 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 3048 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
3186 | ;; | ||
3187 | ia64*) | ||
3188 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
3189 | ;; | 3049 | ;; |
3190 | *) | 3050 | *) |
3191 | _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' | 3051 | _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' |
@@ -3204,12 +3064,9 @@ case $host_os in | |||
3204 | *) | 3064 | *) |
3205 | if test "$GXX" = yes; then | 3065 | if test "$GXX" = yes; then |
3206 | if test $with_gnu_ld = no; then | 3066 | if test $with_gnu_ld = no; then |
3207 | case $host_cpu in | 3067 | case "$host_cpu" in |
3208 | hppa*64*) | 3068 | ia64*|hppa*64*) |
3209 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 3069 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
3210 | ;; | ||
3211 | ia64*) | ||
3212 | _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' | ||
3213 | ;; | 3070 | ;; |
3214 | *) | 3071 | *) |
3215 | _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' | 3072 | _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' |
@@ -3223,25 +3080,11 @@ case $host_os in | |||
3223 | ;; | 3080 | ;; |
3224 | esac | 3081 | esac |
3225 | ;; | 3082 | ;; |
3226 | interix3*) | ||
3227 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3228 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3229 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3230 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
3231 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
3232 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
3233 | # default) and relocated if they conflict, which is a slow very memory | ||
3234 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
3235 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
3236 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
3237 | _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' | ||
3238 | _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' | ||
3239 | ;; | ||
3240 | irix5* | irix6*) | 3083 | irix5* | irix6*) |
3241 | case $cc_basename in | 3084 | case $cc_basename in |
3242 | CC*) | 3085 | CC) |
3243 | # SGI C++ | 3086 | # SGI C++ |
3244 | _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' | 3087 | _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' |
3245 | 3088 | ||
3246 | # Archives containing C++ object files must be created using | 3089 | # Archives containing C++ object files must be created using |
3247 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | 3090 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
@@ -3252,7 +3095,7 @@ case $host_os in | |||
3252 | *) | 3095 | *) |
3253 | if test "$GXX" = yes; then | 3096 | if test "$GXX" = yes; then |
3254 | if test "$with_gnu_ld" = no; then | 3097 | if test "$with_gnu_ld" = no; then |
3255 | _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' | 3098 | _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' |
3256 | else | 3099 | else |
3257 | _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' | 3100 | _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' |
3258 | fi | 3101 | fi |
@@ -3263,9 +3106,9 @@ case $host_os in | |||
3263 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 3106 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3264 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3107 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
3265 | ;; | 3108 | ;; |
3266 | linux* | k*bsd*-gnu) | 3109 | linux*) |
3267 | case $cc_basename in | 3110 | case $cc_basename in |
3268 | KCC*) | 3111 | KCC) |
3269 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 3112 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
3270 | 3113 | ||
3271 | # KCC will only create a shared library if the output file | 3114 | # KCC will only create a shared library if the output file |
@@ -3290,41 +3133,17 @@ case $host_os in | |||
3290 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 3133 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
3291 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | 3134 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
3292 | ;; | 3135 | ;; |
3293 | icpc*) | 3136 | icpc) |
3294 | # Intel C++ | 3137 | # Intel C++ |
3295 | with_gnu_ld=yes | 3138 | with_gnu_ld=yes |
3296 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
3297 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
3298 | # earlier do not add the objects themselves. | ||
3299 | case `$CC -V 2>&1` in | ||
3300 | *"Version 7."*) | ||
3301 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3302 | _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' | ||
3303 | ;; | ||
3304 | *) # Version 8.0 or newer | ||
3305 | tmp_idyn= | ||
3306 | case $host_cpu in | ||
3307 | ia64*) tmp_idyn=' -i_dynamic';; | ||
3308 | esac | ||
3309 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3310 | _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' | ||
3311 | ;; | ||
3312 | esac | ||
3313 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3139 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3140 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3141 | _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' | ||
3314 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 3142 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
3315 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | 3143 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
3316 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 3144 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
3317 | ;; | 3145 | ;; |
3318 | pgCC*) | 3146 | cxx) |
3319 | # Portland Group C++ compiler | ||
3320 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
3321 | _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' | ||
3322 | |||
3323 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
3324 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3325 | _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' | ||
3326 | ;; | ||
3327 | cxx*) | ||
3328 | # Compaq C++ | 3147 | # Compaq C++ |
3329 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 3148 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
3330 | _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' | 3149 | _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' |
@@ -3355,7 +3174,7 @@ case $host_os in | |||
3355 | ;; | 3174 | ;; |
3356 | mvs*) | 3175 | mvs*) |
3357 | case $cc_basename in | 3176 | case $cc_basename in |
3358 | cxx*) | 3177 | cxx) |
3359 | # FIXME: insert proper C++ library support | 3178 | # FIXME: insert proper C++ library support |
3360 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3179 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3361 | ;; | 3180 | ;; |
@@ -3365,7 +3184,7 @@ case $host_os in | |||
3365 | ;; | 3184 | ;; |
3366 | esac | 3185 | esac |
3367 | ;; | 3186 | ;; |
3368 | netbsd* | netbsdelf*-gnu) | 3187 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
3369 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 3188 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
3370 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 3189 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
3371 | wlarc= | 3190 | wlarc= |
@@ -3376,25 +3195,9 @@ case $host_os in | |||
3376 | # Workaround some broken pre-1.5 toolchains | 3195 | # Workaround some broken pre-1.5 toolchains |
3377 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 3196 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
3378 | ;; | 3197 | ;; |
3379 | openbsd2*) | ||
3380 | # C++ shared libraries are fairly broken | ||
3381 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3382 | ;; | ||
3383 | openbsd*) | ||
3384 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3385 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3386 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
3387 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
3388 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3389 | _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' | ||
3390 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
3391 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
3392 | fi | ||
3393 | output_verbose_link_cmd='echo' | ||
3394 | ;; | ||
3395 | osf3*) | 3198 | osf3*) |
3396 | case $cc_basename in | 3199 | case $cc_basename in |
3397 | KCC*) | 3200 | KCC) |
3398 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 3201 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
3399 | 3202 | ||
3400 | # KCC will only create a shared library if the output file | 3203 | # KCC will only create a shared library if the output file |
@@ -3410,14 +3213,14 @@ case $host_os in | |||
3410 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | 3213 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
3411 | 3214 | ||
3412 | ;; | 3215 | ;; |
3413 | RCC*) | 3216 | RCC) |
3414 | # Rational C++ 2.4.1 | 3217 | # Rational C++ 2.4.1 |
3415 | # FIXME: insert proper C++ library support | 3218 | # FIXME: insert proper C++ library support |
3416 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3219 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3417 | ;; | 3220 | ;; |
3418 | cxx*) | 3221 | cxx) |
3419 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 3222 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
3420 | _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' | 3223 | _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' |
3421 | 3224 | ||
3422 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 3225 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3423 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3226 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
@@ -3435,7 +3238,7 @@ case $host_os in | |||
3435 | *) | 3238 | *) |
3436 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 3239 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
3437 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 3240 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
3438 | _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' | 3241 | _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' |
3439 | 3242 | ||
3440 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 3243 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3441 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3244 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
@@ -3454,7 +3257,7 @@ case $host_os in | |||
3454 | ;; | 3257 | ;; |
3455 | osf4* | osf5*) | 3258 | osf4* | osf5*) |
3456 | case $cc_basename in | 3259 | case $cc_basename in |
3457 | KCC*) | 3260 | KCC) |
3458 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 3261 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
3459 | 3262 | ||
3460 | # KCC will only create a shared library if the output file | 3263 | # KCC will only create a shared library if the output file |
@@ -3469,17 +3272,17 @@ case $host_os in | |||
3469 | # the KAI C++ compiler. | 3272 | # the KAI C++ compiler. |
3470 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | 3273 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
3471 | ;; | 3274 | ;; |
3472 | RCC*) | 3275 | RCC) |
3473 | # Rational C++ 2.4.1 | 3276 | # Rational C++ 2.4.1 |
3474 | # FIXME: insert proper C++ library support | 3277 | # FIXME: insert proper C++ library support |
3475 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3278 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3476 | ;; | 3279 | ;; |
3477 | cxx*) | 3280 | cxx) |
3478 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 3281 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
3479 | _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' | 3282 | _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' |
3480 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 3283 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
3481 | echo "-hidden">> $lib.exp~ | 3284 | echo "-hidden">> $lib.exp~ |
3482 | $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~ | 3285 | $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~ |
3483 | $rm $lib.exp' | 3286 | $rm $lib.exp' |
3484 | 3287 | ||
3485 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 3288 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
@@ -3498,7 +3301,7 @@ case $host_os in | |||
3498 | *) | 3301 | *) |
3499 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 3302 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
3500 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | 3303 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
3501 | _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' | 3304 | _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' |
3502 | 3305 | ||
3503 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | 3306 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
3504 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 3307 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
@@ -3519,14 +3322,27 @@ case $host_os in | |||
3519 | # FIXME: insert proper C++ library support | 3322 | # FIXME: insert proper C++ library support |
3520 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3323 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3521 | ;; | 3324 | ;; |
3325 | sco*) | ||
3326 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3327 | case $cc_basename in | ||
3328 | CC) | ||
3329 | # FIXME: insert proper C++ library support | ||
3330 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3331 | ;; | ||
3332 | *) | ||
3333 | # FIXME: insert proper C++ library support | ||
3334 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3335 | ;; | ||
3336 | esac | ||
3337 | ;; | ||
3522 | sunos4*) | 3338 | sunos4*) |
3523 | case $cc_basename in | 3339 | case $cc_basename in |
3524 | CC*) | 3340 | CC) |
3525 | # Sun C++ 4.x | 3341 | # Sun C++ 4.x |
3526 | # FIXME: insert proper C++ library support | 3342 | # FIXME: insert proper C++ library support |
3527 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3343 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
3528 | ;; | 3344 | ;; |
3529 | lcc*) | 3345 | lcc) |
3530 | # Lucid | 3346 | # Lucid |
3531 | # FIXME: insert proper C++ library support | 3347 | # FIXME: insert proper C++ library support |
3532 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3348 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
@@ -3539,33 +3355,36 @@ case $host_os in | |||
3539 | ;; | 3355 | ;; |
3540 | solaris*) | 3356 | solaris*) |
3541 | case $cc_basename in | 3357 | case $cc_basename in |
3542 | CC*) | 3358 | CC) |
3543 | # Sun C++ 4.2, 5.x and Centerline C++ | 3359 | # Sun C++ 4.2, 5.x and Centerline C++ |
3544 | _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes | ||
3545 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | 3360 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
3546 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 3361 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
3547 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 3362 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
3548 | $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' | 3363 | $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' |
3549 | 3364 | ||
3550 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 3365 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
3551 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 3366 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
3552 | case $host_os in | 3367 | case $host_os in |
3553 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 3368 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
3554 | *) | 3369 | *) |
3555 | # The C++ compiler is used as linker so we must use $wl | 3370 | # The C++ compiler is used as linker so we must use $wl |
3556 | # flag to pass the commands to the underlying system | 3371 | # flag to pass the commands to the underlying system |
3557 | # linker. We must also pass each convience library through | 3372 | # linker. |
3558 | # to the system linker between allextract/defaultextract. | ||
3559 | # The C++ compiler will combine linker options so we | ||
3560 | # cannot just pass the convience library names through | ||
3561 | # without $wl. | ||
3562 | # Supported since Solaris 2.6 (maybe 2.5.1?) | 3373 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
3563 | _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' | 3374 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
3564 | ;; | 3375 | ;; |
3565 | esac | 3376 | esac |
3566 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 3377 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
3567 | 3378 | ||
3568 | output_verbose_link_cmd='echo' | 3379 | # Commands to make compiler produce verbose output that lists |
3380 | # what "hidden" libraries, object files and flags are used when | ||
3381 | # linking a shared library. | ||
3382 | # | ||
3383 | # There doesn't appear to be a way to prevent this compiler from | ||
3384 | # explicitly linking system object files so we need to strip them | ||
3385 | # from the output so that they don't get included in the library | ||
3386 | # dependencies. | ||
3387 | 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' | ||
3569 | 3388 | ||
3570 | # Archives containing C++ object files must be created using | 3389 | # Archives containing C++ object files must be created using |
3571 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | 3390 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
@@ -3573,7 +3392,7 @@ case $host_os in | |||
3573 | # in the archive. | 3392 | # in the archive. |
3574 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | 3393 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
3575 | ;; | 3394 | ;; |
3576 | gcx*) | 3395 | gcx) |
3577 | # Green Hills C++ Compiler | 3396 | # Green Hills C++ Compiler |
3578 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 3397 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
3579 | 3398 | ||
@@ -3611,63 +3430,12 @@ case $host_os in | |||
3611 | ;; | 3430 | ;; |
3612 | esac | 3431 | esac |
3613 | ;; | 3432 | ;; |
3614 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | 3433 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
3615 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
3616 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3434 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3617 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3618 | runpath_var='LD_RUN_PATH' | ||
3619 | |||
3620 | case $cc_basename in | ||
3621 | CC*) | ||
3622 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3623 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3624 | ;; | ||
3625 | *) | ||
3626 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3627 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3628 | ;; | ||
3629 | esac | ||
3630 | ;; | ||
3631 | sysv5* | sco3.2v5* | sco5v6*) | ||
3632 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
3633 | # link with -lc, and that would cause any symbols used from libc to | ||
3634 | # always be unresolved, which means just about no library would | ||
3635 | # ever link correctly. If we're not using GNU ld we use -z text | ||
3636 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
3637 | # as -z defs. | ||
3638 | # For security reasons, it is highly recommended that you always | ||
3639 | # use absolute paths for naming shared libraries, and exclude the | ||
3640 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
3641 | # requires that you compile everything twice, which is a pain. | ||
3642 | # So that behaviour is only enabled if SCOABSPATH is set to a | ||
3643 | # non-empty value in the environment. Most likely only useful for | ||
3644 | # creating official distributions of packages. | ||
3645 | # This is a hack until libtool officially supports absolute path | ||
3646 | # names for shared libraries. | ||
3647 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
3648 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | ||
3649 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3650 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
3651 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
3652 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
3653 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3654 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
3655 | runpath_var='LD_RUN_PATH' | ||
3656 | |||
3657 | case $cc_basename in | ||
3658 | CC*) | ||
3659 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3660 | _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' | ||
3661 | ;; | ||
3662 | *) | ||
3663 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
3664 | _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' | ||
3665 | ;; | ||
3666 | esac | ||
3667 | ;; | 3435 | ;; |
3668 | tandem*) | 3436 | tandem*) |
3669 | case $cc_basename in | 3437 | case $cc_basename in |
3670 | NCC*) | 3438 | NCC) |
3671 | # NonStop-UX NCC 3.20 | 3439 | # NonStop-UX NCC 3.20 |
3672 | # FIXME: insert proper C++ library support | 3440 | # FIXME: insert proper C++ library support |
3673 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 3441 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
@@ -3700,6 +3468,8 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |||
3700 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | 3468 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3701 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 3469 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3702 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 3470 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3471 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3472 | AC_LIBTOOL_DLOPEN_SELF($1) | ||
3703 | 3473 | ||
3704 | AC_LIBTOOL_CONFIG($1) | 3474 | AC_LIBTOOL_CONFIG($1) |
3705 | 3475 | ||
@@ -3717,7 +3487,7 @@ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |||
3717 | ])# AC_LIBTOOL_LANG_CXX_CONFIG | 3487 | ])# AC_LIBTOOL_LANG_CXX_CONFIG |
3718 | 3488 | ||
3719 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | 3489 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
3720 | # ------------------------------------ | 3490 | # ------------------------ |
3721 | # Figure out "hidden" library dependencies from verbose | 3491 | # Figure out "hidden" library dependencies from verbose |
3722 | # compiler output when linking a shared library. | 3492 | # compiler output when linking a shared library. |
3723 | # Parse the compiler output and extract the necessary | 3493 | # Parse the compiler output and extract the necessary |
@@ -3771,7 +3541,7 @@ if AC_TRY_EVAL(ac_compile); then | |||
3771 | # The `*' in the case matches for architectures that use `case' in | 3541 | # The `*' in the case matches for architectures that use `case' in |
3772 | # $output_verbose_cmd can trigger glob expansion during the loop | 3542 | # $output_verbose_cmd can trigger glob expansion during the loop |
3773 | # eval without this substitution. | 3543 | # eval without this substitution. |
3774 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | 3544 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
3775 | 3545 | ||
3776 | for p in `eval $output_verbose_link_cmd`; do | 3546 | for p in `eval $output_verbose_link_cmd`; do |
3777 | case $p in | 3547 | case $p in |
@@ -3847,37 +3617,13 @@ fi | |||
3847 | 3617 | ||
3848 | $rm -f confest.$objext | 3618 | $rm -f confest.$objext |
3849 | 3619 | ||
3850 | # PORTME: override above test on systems where it is broken | ||
3851 | ifelse([$1],[CXX], | ||
3852 | [case $host_os in | ||
3853 | interix3*) | ||
3854 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
3855 | # hack all around it, let's just trust "g++" to DTRT. | ||
3856 | _LT_AC_TAGVAR(predep_objects,$1)= | ||
3857 | _LT_AC_TAGVAR(postdep_objects,$1)= | ||
3858 | _LT_AC_TAGVAR(postdeps,$1)= | ||
3859 | ;; | ||
3860 | |||
3861 | solaris*) | ||
3862 | case $cc_basename in | ||
3863 | CC*) | ||
3864 | # Adding this requires a known-good setup of shared libraries for | ||
3865 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
3866 | # archive will be linked into the output, leading to subtle bugs. | ||
3867 | _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' | ||
3868 | ;; | ||
3869 | esac | ||
3870 | ;; | ||
3871 | esac | ||
3872 | ]) | ||
3873 | |||
3874 | case " $_LT_AC_TAGVAR(postdeps, $1) " in | 3620 | case " $_LT_AC_TAGVAR(postdeps, $1) " in |
3875 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | 3621 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
3876 | esac | 3622 | esac |
3877 | ])# AC_LIBTOOL_POSTDEP_PREDEP | 3623 | ])# AC_LIBTOOL_POSTDEP_PREDEP |
3878 | 3624 | ||
3879 | # AC_LIBTOOL_LANG_F77_CONFIG | 3625 | # AC_LIBTOOL_LANG_F77_CONFIG |
3880 | # -------------------------- | 3626 | # ------------------------ |
3881 | # Ensure that the configuration vars for the C compiler are | 3627 | # Ensure that the configuration vars for the C compiler are |
3882 | # suitably defined. Those variables are subsequently used by | 3628 | # suitably defined. Those variables are subsequently used by |
3883 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 3629 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
@@ -3921,16 +3667,12 @@ lt_simple_link_test_code=" program t\n end\n" | |||
3921 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 3667 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
3922 | _LT_AC_SYS_COMPILER | 3668 | _LT_AC_SYS_COMPILER |
3923 | 3669 | ||
3924 | # save warnings/boilerplate of simple test code | ||
3925 | _LT_COMPILER_BOILERPLATE | ||
3926 | _LT_LINKER_BOILERPLATE | ||
3927 | |||
3928 | # Allow CC to be a program name with arguments. | 3670 | # Allow CC to be a program name with arguments. |
3929 | lt_save_CC="$CC" | 3671 | lt_save_CC="$CC" |
3930 | CC=${F77-"f77"} | 3672 | CC=${F77-"f77"} |
3931 | compiler=$CC | 3673 | compiler=$CC |
3932 | _LT_AC_TAGVAR(compiler, $1)=$CC | 3674 | _LT_AC_TAGVAR(compiler, $1)=$CC |
3933 | _LT_CC_BASENAME([$compiler]) | 3675 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
3934 | 3676 | ||
3935 | AC_MSG_CHECKING([if libtool supports shared libraries]) | 3677 | AC_MSG_CHECKING([if libtool supports shared libraries]) |
3936 | AC_MSG_RESULT([$can_build_shared]) | 3678 | AC_MSG_RESULT([$can_build_shared]) |
@@ -3940,7 +3682,7 @@ test "$can_build_shared" = "no" && enable_shared=no | |||
3940 | 3682 | ||
3941 | # On AIX, shared libraries and static libraries use the same namespace, and | 3683 | # On AIX, shared libraries and static libraries use the same namespace, and |
3942 | # are all built from PIC. | 3684 | # are all built from PIC. |
3943 | case $host_os in | 3685 | case "$host_os" in |
3944 | aix3*) | 3686 | aix3*) |
3945 | test "$enable_shared" = yes && enable_static=no | 3687 | test "$enable_shared" = yes && enable_static=no |
3946 | if test -n "$RANLIB"; then | 3688 | if test -n "$RANLIB"; then |
@@ -3949,9 +3691,7 @@ aix3*) | |||
3949 | fi | 3691 | fi |
3950 | ;; | 3692 | ;; |
3951 | aix4* | aix5*) | 3693 | aix4* | aix5*) |
3952 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 3694 | test "$enable_shared" = yes && enable_static=no |
3953 | test "$enable_shared" = yes && enable_static=no | ||
3954 | fi | ||
3955 | ;; | 3695 | ;; |
3956 | esac | 3696 | esac |
3957 | AC_MSG_RESULT([$enable_shared]) | 3697 | AC_MSG_RESULT([$enable_shared]) |
@@ -3961,6 +3701,8 @@ AC_MSG_CHECKING([whether to build static libraries]) | |||
3961 | test "$enable_shared" = yes || enable_static=yes | 3701 | test "$enable_shared" = yes || enable_static=yes |
3962 | AC_MSG_RESULT([$enable_static]) | 3702 | AC_MSG_RESULT([$enable_static]) |
3963 | 3703 | ||
3704 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | ||
3705 | |||
3964 | _LT_AC_TAGVAR(GCC, $1)="$G77" | 3706 | _LT_AC_TAGVAR(GCC, $1)="$G77" |
3965 | _LT_AC_TAGVAR(LD, $1)="$LD" | 3707 | _LT_AC_TAGVAR(LD, $1)="$LD" |
3966 | 3708 | ||
@@ -3970,6 +3712,8 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |||
3970 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | 3712 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3971 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 3713 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3972 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 3714 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3715 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3716 | |||
3973 | 3717 | ||
3974 | AC_LIBTOOL_CONFIG($1) | 3718 | AC_LIBTOOL_CONFIG($1) |
3975 | 3719 | ||
@@ -3998,27 +3742,20 @@ _LT_AC_TAGVAR(objext, $1)=$objext | |||
3998 | lt_simple_compile_test_code="class foo {}\n" | 3742 | lt_simple_compile_test_code="class foo {}\n" |
3999 | 3743 | ||
4000 | # Code to be used in simple link tests | 3744 | # Code to be used in simple link tests |
4001 | lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' | 3745 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
4002 | 3746 | ||
4003 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 3747 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
4004 | _LT_AC_SYS_COMPILER | 3748 | _LT_AC_SYS_COMPILER |
4005 | 3749 | ||
4006 | # save warnings/boilerplate of simple test code | ||
4007 | _LT_COMPILER_BOILERPLATE | ||
4008 | _LT_LINKER_BOILERPLATE | ||
4009 | |||
4010 | # Allow CC to be a program name with arguments. | 3750 | # Allow CC to be a program name with arguments. |
4011 | lt_save_CC="$CC" | 3751 | lt_save_CC="$CC" |
4012 | CC=${GCJ-"gcj"} | 3752 | CC=${GCJ-"gcj"} |
4013 | compiler=$CC | 3753 | compiler=$CC |
4014 | _LT_AC_TAGVAR(compiler, $1)=$CC | 3754 | _LT_AC_TAGVAR(compiler, $1)=$CC |
4015 | _LT_CC_BASENAME([$compiler]) | ||
4016 | 3755 | ||
4017 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | 3756 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
4018 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 3757 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4019 | 3758 | ||
4020 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
4021 | |||
4022 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | 3759 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
4023 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | 3760 | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
4024 | AC_LIBTOOL_PROG_CC_C_O($1) | 3761 | AC_LIBTOOL_PROG_CC_C_O($1) |
@@ -4026,6 +3763,8 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | |||
4026 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | 3763 | AC_LIBTOOL_PROG_LD_SHLIBS($1) |
4027 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | 3764 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
4028 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | 3765 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3766 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3767 | AC_LIBTOOL_DLOPEN_SELF($1) | ||
4029 | 3768 | ||
4030 | AC_LIBTOOL_CONFIG($1) | 3769 | AC_LIBTOOL_CONFIG($1) |
4031 | 3770 | ||
@@ -4035,7 +3774,7 @@ CC="$lt_save_CC" | |||
4035 | 3774 | ||
4036 | 3775 | ||
4037 | # AC_LIBTOOL_LANG_RC_CONFIG | 3776 | # AC_LIBTOOL_LANG_RC_CONFIG |
4038 | # ------------------------- | 3777 | # -------------------------- |
4039 | # Ensure that the configuration vars for the Windows resource compiler are | 3778 | # Ensure that the configuration vars for the Windows resource compiler are |
4040 | # suitably defined. Those variables are subsequently used by | 3779 | # suitably defined. Those variables are subsequently used by |
4041 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | 3780 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
@@ -4059,16 +3798,11 @@ lt_simple_link_test_code="$lt_simple_compile_test_code" | |||
4059 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 3798 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
4060 | _LT_AC_SYS_COMPILER | 3799 | _LT_AC_SYS_COMPILER |
4061 | 3800 | ||
4062 | # save warnings/boilerplate of simple test code | ||
4063 | _LT_COMPILER_BOILERPLATE | ||
4064 | _LT_LINKER_BOILERPLATE | ||
4065 | |||
4066 | # Allow CC to be a program name with arguments. | 3801 | # Allow CC to be a program name with arguments. |
4067 | lt_save_CC="$CC" | 3802 | lt_save_CC="$CC" |
4068 | CC=${RC-"windres"} | 3803 | CC=${RC-"windres"} |
4069 | compiler=$CC | 3804 | compiler=$CC |
4070 | _LT_AC_TAGVAR(compiler, $1)=$CC | 3805 | _LT_AC_TAGVAR(compiler, $1)=$CC |
4071 | _LT_CC_BASENAME([$compiler]) | ||
4072 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | 3806 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
4073 | 3807 | ||
4074 | AC_LIBTOOL_CONFIG($1) | 3808 | AC_LIBTOOL_CONFIG($1) |
@@ -4098,7 +3832,7 @@ if test -f "$ltmain"; then | |||
4098 | # Now quote all the things that may contain metacharacters while being | 3832 | # Now quote all the things that may contain metacharacters while being |
4099 | # careful not to overquote the AC_SUBSTed values. We take copies of the | 3833 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
4100 | # variables and quote the copies for generation of the libtool script. | 3834 | # variables and quote the copies for generation of the libtool script. |
4101 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | 3835 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
4102 | SED SHELL STRIP \ | 3836 | SED SHELL STRIP \ |
4103 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 3837 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
4104 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 3838 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
@@ -4204,7 +3938,7 @@ ifelse([$1], [], | |||
4204 | # | 3938 | # |
4205 | # You should have received a copy of the GNU General Public License | 3939 | # You should have received a copy of the GNU General Public License |
4206 | # along with this program; if not, write to the Free Software | 3940 | # along with this program; if not, write to the Free Software |
4207 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 3941 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
4208 | # | 3942 | # |
4209 | # As a special exception to the GNU General Public License, if you | 3943 | # As a special exception to the GNU General Public License, if you |
4210 | # distribute this file as part of a program that contains a | 3944 | # distribute this file as part of a program that contains a |
@@ -4215,11 +3949,11 @@ ifelse([$1], [], | |||
4215 | SED=$lt_SED | 3949 | SED=$lt_SED |
4216 | 3950 | ||
4217 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 3951 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
4218 | Xsed="$SED -e 1s/^X//" | 3952 | Xsed="$SED -e s/^X//" |
4219 | 3953 | ||
4220 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 3954 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
4221 | # if CDPATH is set. | 3955 | # if CDPATH is set. |
4222 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 3956 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
4223 | 3957 | ||
4224 | # The names of the tagged configurations supported by this script. | 3958 | # The names of the tagged configurations supported by this script. |
4225 | available_tags= | 3959 | available_tags= |
@@ -4250,12 +3984,6 @@ fast_install=$enable_fast_install | |||
4250 | # The host system. | 3984 | # The host system. |
4251 | host_alias=$host_alias | 3985 | host_alias=$host_alias |
4252 | host=$host | 3986 | host=$host |
4253 | host_os=$host_os | ||
4254 | |||
4255 | # The build system. | ||
4256 | build_alias=$build_alias | ||
4257 | build=$build | ||
4258 | build_os=$build_os | ||
4259 | 3987 | ||
4260 | # An echo program that does not interpret backslashes. | 3988 | # An echo program that does not interpret backslashes. |
4261 | echo=$lt_echo | 3989 | echo=$lt_echo |
@@ -4267,9 +3995,6 @@ AR_FLAGS=$lt_AR_FLAGS | |||
4267 | # A C compiler. | 3995 | # A C compiler. |
4268 | LTCC=$lt_LTCC | 3996 | LTCC=$lt_LTCC |
4269 | 3997 | ||
4270 | # LTCC compiler flags. | ||
4271 | LTCFLAGS=$lt_LTCFLAGS | ||
4272 | |||
4273 | # A language-specific compiler. | 3998 | # A language-specific compiler. |
4274 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | 3999 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
4275 | 4000 | ||
@@ -4335,7 +4060,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len | |||
4335 | # Does compiler simultaneously support -c and -o options? | 4060 | # Does compiler simultaneously support -c and -o options? |
4336 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) | 4061 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) |
4337 | 4062 | ||
4338 | # Must we lock files when doing compilation? | 4063 | # Must we lock files when doing compilation ? |
4339 | need_locks=$lt_need_locks | 4064 | need_locks=$lt_need_locks |
4340 | 4065 | ||
4341 | # Do we need the lib prefix for modules? | 4066 | # Do we need the lib prefix for modules? |
@@ -4609,6 +4334,9 @@ symcode='[[BCDEGRST]]' | |||
4609 | # Regexp to match symbols that can be accessed directly from C. | 4334 | # Regexp to match symbols that can be accessed directly from C. |
4610 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | 4335 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
4611 | 4336 | ||
4337 | # Transform the above into a raw symbol and a C symbol. | ||
4338 | symxfrm='\1 \2\3 \3' | ||
4339 | |||
4612 | # Transform an extracted symbol line into a proper C declaration | 4340 | # Transform an extracted symbol line into a proper C declaration |
4613 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | 4341 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
4614 | 4342 | ||
@@ -4630,31 +4358,15 @@ hpux*) # Its linker distinguishes data from code symbols | |||
4630 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 4358 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
4631 | 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'" | 4359 | 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'" |
4632 | ;; | 4360 | ;; |
4633 | linux* | k*bsd*-gnu) | ||
4634 | if test "$host_cpu" = ia64; then | ||
4635 | symcode='[[ABCDGIRSTW]]' | ||
4636 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
4637 | 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'" | ||
4638 | fi | ||
4639 | ;; | ||
4640 | irix* | nonstopux*) | 4361 | irix* | nonstopux*) |
4641 | symcode='[[BCDEGRST]]' | 4362 | symcode='[[BCDEGRST]]' |
4642 | ;; | 4363 | ;; |
4643 | osf*) | 4364 | osf*) |
4644 | symcode='[[BCDEGQRST]]' | 4365 | symcode='[[BCDEGQRST]]' |
4645 | ;; | 4366 | ;; |
4646 | solaris*) | 4367 | solaris* | sysv5*) |
4647 | symcode='[[BDRT]]' | 4368 | symcode='[[BDRT]]' |
4648 | ;; | 4369 | ;; |
4649 | sco3.2v5*) | ||
4650 | symcode='[[DT]]' | ||
4651 | ;; | ||
4652 | sysv4.2uw2*) | ||
4653 | symcode='[[DT]]' | ||
4654 | ;; | ||
4655 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
4656 | symcode='[[ABDT]]' | ||
4657 | ;; | ||
4658 | sysv4) | 4370 | sysv4) |
4659 | symcode='[[DFNSTU]]' | 4371 | symcode='[[DFNSTU]]' |
4660 | ;; | 4372 | ;; |
@@ -4677,11 +4389,8 @@ esac | |||
4677 | # Try without a prefix undercore, then with it. | 4389 | # Try without a prefix undercore, then with it. |
4678 | for ac_symprfx in "" "_"; do | 4390 | for ac_symprfx in "" "_"; do |
4679 | 4391 | ||
4680 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
4681 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
4682 | |||
4683 | # Write the raw and C identifiers. | 4392 | # Write the raw and C identifiers. |
4684 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 4393 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
4685 | 4394 | ||
4686 | # Check to see that the pipe works correctly. | 4395 | # Check to see that the pipe works correctly. |
4687 | pipe_works=no | 4396 | pipe_works=no |
@@ -4837,10 +4546,6 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4837 | # DJGPP does not support shared libraries at all | 4546 | # DJGPP does not support shared libraries at all |
4838 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 4547 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
4839 | ;; | 4548 | ;; |
4840 | interix3*) | ||
4841 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
4842 | # Instead, we relocate shared libraries at runtime. | ||
4843 | ;; | ||
4844 | sysv4*MP*) | 4549 | sysv4*MP*) |
4845 | if test -d /usr/nec; then | 4550 | if test -d /usr/nec; then |
4846 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | 4551 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
@@ -4849,7 +4554,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4849 | hpux*) | 4554 | hpux*) |
4850 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 4555 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
4851 | # not for PA HP-UX. | 4556 | # not for PA HP-UX. |
4852 | case $host_cpu in | 4557 | case "$host_cpu" in |
4853 | hppa*64*|ia64*) | 4558 | hppa*64*|ia64*) |
4854 | ;; | 4559 | ;; |
4855 | *) | 4560 | *) |
@@ -4874,28 +4579,18 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4874 | ;; | 4579 | ;; |
4875 | chorus*) | 4580 | chorus*) |
4876 | case $cc_basename in | 4581 | case $cc_basename in |
4877 | cxch68*) | 4582 | cxch68) |
4878 | # Green Hills C++ Compiler | 4583 | # Green Hills C++ Compiler |
4879 | # _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" | 4584 | # _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" |
4880 | ;; | 4585 | ;; |
4881 | esac | 4586 | esac |
4882 | ;; | 4587 | ;; |
4883 | darwin*) | ||
4884 | # PIC is the default on this platform | ||
4885 | # Common symbols not allowed in MH_DYLIB files | ||
4886 | case $cc_basename in | ||
4887 | xlc*) | ||
4888 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | ||
4889 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4890 | ;; | ||
4891 | esac | ||
4892 | ;; | ||
4893 | dgux*) | 4588 | dgux*) |
4894 | case $cc_basename in | 4589 | case $cc_basename in |
4895 | ec++*) | 4590 | ec++) |
4896 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4591 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4897 | ;; | 4592 | ;; |
4898 | ghcx*) | 4593 | ghcx) |
4899 | # Green Hills C++ Compiler | 4594 | # Green Hills C++ Compiler |
4900 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4595 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4901 | ;; | 4596 | ;; |
@@ -4903,22 +4598,22 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4903 | ;; | 4598 | ;; |
4904 | esac | 4599 | esac |
4905 | ;; | 4600 | ;; |
4906 | freebsd* | dragonfly*) | 4601 | freebsd* | kfreebsd*-gnu) |
4907 | # FreeBSD uses GNU C++ | 4602 | # FreeBSD uses GNU C++ |
4908 | ;; | 4603 | ;; |
4909 | hpux9* | hpux10* | hpux11*) | 4604 | hpux9* | hpux10* | hpux11*) |
4910 | case $cc_basename in | 4605 | case $cc_basename in |
4911 | CC*) | 4606 | CC) |
4912 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4607 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4913 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4608 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
4914 | if test "$host_cpu" != ia64; then | 4609 | if test "$host_cpu" != ia64; then |
4915 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | 4610 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4916 | fi | 4611 | fi |
4917 | ;; | 4612 | ;; |
4918 | aCC*) | 4613 | aCC) |
4919 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4614 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4920 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | 4615 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
4921 | case $host_cpu in | 4616 | case "$host_cpu" in |
4922 | hppa*64*|ia64*) | 4617 | hppa*64*|ia64*) |
4923 | # +Z the default | 4618 | # +Z the default |
4924 | ;; | 4619 | ;; |
@@ -4931,13 +4626,9 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4931 | ;; | 4626 | ;; |
4932 | esac | 4627 | esac |
4933 | ;; | 4628 | ;; |
4934 | interix*) | ||
4935 | # This is c89, which is MS Visual C++ (no shared libs) | ||
4936 | # Anyone wants to do a port? | ||
4937 | ;; | ||
4938 | irix5* | irix6* | nonstopux*) | 4629 | irix5* | irix6* | nonstopux*) |
4939 | case $cc_basename in | 4630 | case $cc_basename in |
4940 | CC*) | 4631 | CC) |
4941 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4632 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4942 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4633 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4943 | # CC pic flag -KPIC is the default. | 4634 | # CC pic flag -KPIC is the default. |
@@ -4946,26 +4637,20 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4946 | ;; | 4637 | ;; |
4947 | esac | 4638 | esac |
4948 | ;; | 4639 | ;; |
4949 | linux* | k*bsd*-gnu) | 4640 | linux*) |
4950 | case $cc_basename in | 4641 | case $cc_basename in |
4951 | KCC*) | 4642 | KCC) |
4952 | # KAI C++ Compiler | 4643 | # KAI C++ Compiler |
4953 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 4644 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4954 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | 4645 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4955 | ;; | 4646 | ;; |
4956 | icpc* | ecpc*) | 4647 | icpc) |
4957 | # Intel C++ | 4648 | # Intel C++ |
4958 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4649 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4959 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4650 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4960 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4651 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4961 | ;; | 4652 | ;; |
4962 | pgCC*) | 4653 | cxx) |
4963 | # Portland Group C++ compiler. | ||
4964 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4965 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
4966 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4967 | ;; | ||
4968 | cxx*) | ||
4969 | # Compaq C++ | 4654 | # Compaq C++ |
4970 | # Make sure the PIC flag is empty. It appears that all Alpha | 4655 | # Make sure the PIC flag is empty. It appears that all Alpha |
4971 | # Linux and Compaq Tru64 Unix objects are PIC. | 4656 | # Linux and Compaq Tru64 Unix objects are PIC. |
@@ -4982,25 +4667,25 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
4982 | ;; | 4667 | ;; |
4983 | mvs*) | 4668 | mvs*) |
4984 | case $cc_basename in | 4669 | case $cc_basename in |
4985 | cxx*) | 4670 | cxx) |
4986 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | 4671 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
4987 | ;; | 4672 | ;; |
4988 | *) | 4673 | *) |
4989 | ;; | 4674 | ;; |
4990 | esac | 4675 | esac |
4991 | ;; | 4676 | ;; |
4992 | netbsd* | netbsdelf*-gnu) | 4677 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
4993 | ;; | 4678 | ;; |
4994 | osf3* | osf4* | osf5*) | 4679 | osf3* | osf4* | osf5*) |
4995 | case $cc_basename in | 4680 | case $cc_basename in |
4996 | KCC*) | 4681 | KCC) |
4997 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | 4682 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
4998 | ;; | 4683 | ;; |
4999 | RCC*) | 4684 | RCC) |
5000 | # Rational C++ 2.4.1 | 4685 | # Rational C++ 2.4.1 |
5001 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4686 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5002 | ;; | 4687 | ;; |
5003 | cxx*) | 4688 | cxx) |
5004 | # Digital/Compaq C++ | 4689 | # Digital/Compaq C++ |
5005 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4690 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5006 | # Make sure the PIC flag is empty. It appears that all Alpha | 4691 | # Make sure the PIC flag is empty. It appears that all Alpha |
@@ -5014,15 +4699,24 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5014 | ;; | 4699 | ;; |
5015 | psos*) | 4700 | psos*) |
5016 | ;; | 4701 | ;; |
4702 | sco*) | ||
4703 | case $cc_basename in | ||
4704 | CC) | ||
4705 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4706 | ;; | ||
4707 | *) | ||
4708 | ;; | ||
4709 | esac | ||
4710 | ;; | ||
5017 | solaris*) | 4711 | solaris*) |
5018 | case $cc_basename in | 4712 | case $cc_basename in |
5019 | CC*) | 4713 | CC) |
5020 | # Sun C++ 4.2, 5.x and Centerline C++ | 4714 | # Sun C++ 4.2, 5.x and Centerline C++ |
5021 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4715 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5022 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4716 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5023 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | 4717 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
5024 | ;; | 4718 | ;; |
5025 | gcx*) | 4719 | gcx) |
5026 | # Green Hills C++ Compiler | 4720 | # Green Hills C++ Compiler |
5027 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | 4721 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
5028 | ;; | 4722 | ;; |
@@ -5032,12 +4726,12 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5032 | ;; | 4726 | ;; |
5033 | sunos4*) | 4727 | sunos4*) |
5034 | case $cc_basename in | 4728 | case $cc_basename in |
5035 | CC*) | 4729 | CC) |
5036 | # Sun C++ 4.x | 4730 | # Sun C++ 4.x |
5037 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4731 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5038 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4732 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5039 | ;; | 4733 | ;; |
5040 | lcc*) | 4734 | lcc) |
5041 | # Lucid | 4735 | # Lucid |
5042 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4736 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5043 | ;; | 4737 | ;; |
@@ -5047,7 +4741,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5047 | ;; | 4741 | ;; |
5048 | tandem*) | 4742 | tandem*) |
5049 | case $cc_basename in | 4743 | case $cc_basename in |
5050 | NCC*) | 4744 | NCC) |
5051 | # NonStop-UX NCC 3.20 | 4745 | # NonStop-UX NCC 3.20 |
5052 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4746 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5053 | ;; | 4747 | ;; |
@@ -5055,14 +4749,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5055 | ;; | 4749 | ;; |
5056 | esac | 4750 | esac |
5057 | ;; | 4751 | ;; |
5058 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 4752 | unixware*) |
5059 | case $cc_basename in | ||
5060 | CC*) | ||
5061 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5062 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5063 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5064 | ;; | ||
5065 | esac | ||
5066 | ;; | 4753 | ;; |
5067 | vxworks*) | 4754 | vxworks*) |
5068 | ;; | 4755 | ;; |
@@ -5109,11 +4796,6 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5109 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | 4796 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
5110 | ;; | 4797 | ;; |
5111 | 4798 | ||
5112 | interix3*) | ||
5113 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
5114 | # Instead, we relocate shared libraries at runtime. | ||
5115 | ;; | ||
5116 | |||
5117 | msdosdjgpp*) | 4799 | msdosdjgpp*) |
5118 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 4800 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
5119 | # on systems that don't support them. | 4801 | # on systems that don't support them. |
@@ -5130,7 +4812,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5130 | hpux*) | 4812 | hpux*) |
5131 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 4813 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
5132 | # not for PA HP-UX. | 4814 | # not for PA HP-UX. |
5133 | case $host_cpu in | 4815 | case "$host_cpu" in |
5134 | hppa*64*|ia64*) | 4816 | hppa*64*|ia64*) |
5135 | # +Z the default | 4817 | # +Z the default |
5136 | ;; | 4818 | ;; |
@@ -5156,16 +4838,6 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5156 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | 4838 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
5157 | fi | 4839 | fi |
5158 | ;; | 4840 | ;; |
5159 | darwin*) | ||
5160 | # PIC is the default on this platform | ||
5161 | # Common symbols not allowed in MH_DYLIB files | ||
5162 | case $cc_basename in | ||
5163 | xlc*) | ||
5164 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | ||
5165 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5166 | ;; | ||
5167 | esac | ||
5168 | ;; | ||
5169 | 4841 | ||
5170 | mingw* | pw32* | os2*) | 4842 | mingw* | pw32* | os2*) |
5171 | # This hack is so that the source file can tell whether it is being | 4843 | # This hack is so that the source file can tell whether it is being |
@@ -5177,7 +4849,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5177 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4849 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5178 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 4850 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
5179 | # not for PA HP-UX. | 4851 | # not for PA HP-UX. |
5180 | case $host_cpu in | 4852 | case "$host_cpu" in |
5181 | hppa*64*|ia64*) | 4853 | hppa*64*|ia64*) |
5182 | # +Z the default | 4854 | # +Z the default |
5183 | ;; | 4855 | ;; |
@@ -5200,20 +4872,13 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5200 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4872 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5201 | ;; | 4873 | ;; |
5202 | 4874 | ||
5203 | linux* | k*bsd*-gnu) | 4875 | linux*) |
5204 | case $cc_basename in | 4876 | case $CC in |
5205 | icc* | ecc*) | 4877 | icc* | ecc*) |
5206 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4878 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5207 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4879 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5208 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | 4880 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
5209 | ;; | 4881 | ;; |
5210 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
5211 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
5212 | # which looks to be a dead project) | ||
5213 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5214 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
5215 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5216 | ;; | ||
5217 | ccc*) | 4882 | ccc*) |
5218 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4883 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5219 | # All Alpha code is PIC. | 4884 | # All Alpha code is PIC. |
@@ -5228,15 +4893,15 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5228 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | 4893 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
5229 | ;; | 4894 | ;; |
5230 | 4895 | ||
4896 | sco3.2v5*) | ||
4897 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' | ||
4898 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' | ||
4899 | ;; | ||
4900 | |||
5231 | solaris*) | 4901 | solaris*) |
4902 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5232 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4903 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5233 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4904 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5234 | case $cc_basename in | ||
5235 | f77* | f90* | f95*) | ||
5236 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | ||
5237 | *) | ||
5238 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | ||
5239 | esac | ||
5240 | ;; | 4905 | ;; |
5241 | 4906 | ||
5242 | sunos4*) | 4907 | sunos4*) |
@@ -5245,7 +4910,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5245 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4910 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5246 | ;; | 4911 | ;; |
5247 | 4912 | ||
5248 | sysv4 | sysv4.2uw2* | sysv4.3*) | 4913 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
5249 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | 4914 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5250 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | 4915 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5251 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4916 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
@@ -5258,17 +4923,6 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) | |||
5258 | fi | 4923 | fi |
5259 | ;; | 4924 | ;; |
5260 | 4925 | ||
5261 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
5262 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5263 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5264 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5265 | ;; | ||
5266 | |||
5267 | unicos*) | ||
5268 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5269 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
5270 | ;; | ||
5271 | |||
5272 | uts4*) | 4926 | uts4*) |
5273 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | 4927 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
5274 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | 4928 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
@@ -5296,7 +4950,7 @@ if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then | |||
5296 | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 4950 | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
5297 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | 4951 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
5298 | fi | 4952 | fi |
5299 | case $host_os in | 4953 | case "$host_os" in |
5300 | # For platforms which do not support PIC, -DPIC is meaningless: | 4954 | # For platforms which do not support PIC, -DPIC is meaningless: |
5301 | *djgpp*) | 4955 | *djgpp*) |
5302 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | 4956 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
@@ -5305,16 +4959,6 @@ case $host_os in | |||
5305 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" | 4959 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
5306 | ;; | 4960 | ;; |
5307 | esac | 4961 | esac |
5308 | |||
5309 | # | ||
5310 | # Check to make sure the static flag actually works. | ||
5311 | # | ||
5312 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" | ||
5313 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | ||
5314 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | ||
5315 | $lt_tmp_static_flag, | ||
5316 | [], | ||
5317 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | ||
5318 | ]) | 4962 | ]) |
5319 | 4963 | ||
5320 | 4964 | ||
@@ -5339,9 +4983,9 @@ ifelse([$1],[CXX],[ | |||
5339 | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | 4983 | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
5340 | ;; | 4984 | ;; |
5341 | cygwin* | mingw*) | 4985 | cygwin* | mingw*) |
5342 | _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' | 4986 | _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' |
5343 | ;; | 4987 | ;; |
5344 | linux* | k*bsd*-gnu) | 4988 | linux*) |
5345 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no | 4989 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
5346 | ;; | 4990 | ;; |
5347 | *) | 4991 | *) |
@@ -5385,8 +5029,7 @@ ifelse([$1],[CXX],[ | |||
5385 | # rely on this symbol name, it's probably fine to never include it in | 5029 | # rely on this symbol name, it's probably fine to never include it in |
5386 | # preloaded symbol tables. | 5030 | # preloaded symbol tables. |
5387 | extract_expsyms_cmds= | 5031 | extract_expsyms_cmds= |
5388 | # Just being paranoid about ensuring that cc_basename is set. | 5032 | |
5389 | _LT_CC_BASENAME([$compiler]) | ||
5390 | case $host_os in | 5033 | case $host_os in |
5391 | cygwin* | mingw* | pw32*) | 5034 | cygwin* | mingw* | pw32*) |
5392 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 5035 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
@@ -5396,10 +5039,6 @@ ifelse([$1],[CXX],[ | |||
5396 | with_gnu_ld=no | 5039 | with_gnu_ld=no |
5397 | fi | 5040 | fi |
5398 | ;; | 5041 | ;; |
5399 | interix*) | ||
5400 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
5401 | with_gnu_ld=yes | ||
5402 | ;; | ||
5403 | openbsd*) | 5042 | openbsd*) |
5404 | with_gnu_ld=no | 5043 | with_gnu_ld=no |
5405 | ;; | 5044 | ;; |
@@ -5410,27 +5049,6 @@ ifelse([$1],[CXX],[ | |||
5410 | # If archive_cmds runs LD, not CC, wlarc should be empty | 5049 | # If archive_cmds runs LD, not CC, wlarc should be empty |
5411 | wlarc='${wl}' | 5050 | wlarc='${wl}' |
5412 | 5051 | ||
5413 | # Set some defaults for GNU ld with shared library support. These | ||
5414 | # are reset later if shared libraries are not supported. Putting them | ||
5415 | # here allows them to be overridden if necessary. | ||
5416 | runpath_var=LD_RUN_PATH | ||
5417 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
5418 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
5419 | # ancient GNU ld didn't support --whole-archive et. al. | ||
5420 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
5421 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
5422 | else | ||
5423 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
5424 | fi | ||
5425 | supports_anon_versioning=no | ||
5426 | case `$LD -v 2>/dev/null` in | ||
5427 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
5428 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
5429 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
5430 | *\ 2.11.*) ;; # other 2.11 versions | ||
5431 | *) supports_anon_versioning=yes ;; | ||
5432 | esac | ||
5433 | |||
5434 | # See if GNU ld supports shared libraries. | 5052 | # See if GNU ld supports shared libraries. |
5435 | case $host_os in | 5053 | case $host_os in |
5436 | aix3* | aix4* | aix5*) | 5054 | aix3* | aix4* | aix5*) |
@@ -5481,10 +5099,10 @@ EOF | |||
5481 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | 5099 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
5482 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | 5100 | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
5483 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5101 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5484 | _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' | 5102 | _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' |
5485 | 5103 | ||
5486 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 5104 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
5487 | _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' | 5105 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
5488 | # If the export-symbols file already is a .def file (1st line | 5106 | # If the export-symbols file already is a .def file (1st line |
5489 | # is EXPORTS), use it as is; otherwise, prepend... | 5107 | # is EXPORTS), use it as is; otherwise, prepend... |
5490 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 5108 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
@@ -5493,60 +5111,13 @@ EOF | |||
5493 | echo EXPORTS > $output_objdir/$soname.def; | 5111 | echo EXPORTS > $output_objdir/$soname.def; |
5494 | cat $export_symbols >> $output_objdir/$soname.def; | 5112 | cat $export_symbols >> $output_objdir/$soname.def; |
5495 | fi~ | 5113 | fi~ |
5496 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 5114 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
5497 | else | 5115 | else |
5498 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5116 | ld_shlibs=no |
5499 | fi | 5117 | fi |
5500 | ;; | 5118 | ;; |
5501 | 5119 | ||
5502 | interix3*) | 5120 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
5503 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
5504 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5505 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
5506 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
5507 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
5508 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
5509 | # default) and relocated if they conflict, which is a slow very memory | ||
5510 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
5511 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
5512 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
5513 | _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' | ||
5514 | _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' | ||
5515 | ;; | ||
5516 | |||
5517 | linux* | k*bsd*-gnu) | ||
5518 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
5519 | tmp_addflag= | ||
5520 | case $cc_basename,$host_cpu in | ||
5521 | pgcc*) # Portland Group C compiler | ||
5522 | _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' | ||
5523 | tmp_addflag=' $pic_flag' | ||
5524 | ;; | ||
5525 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
5526 | _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' | ||
5527 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
5528 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
5529 | tmp_addflag=' -i_dynamic' ;; | ||
5530 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
5531 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
5532 | ifc* | ifort*) # Intel Fortran compiler | ||
5533 | tmp_addflag=' -nofor_main' ;; | ||
5534 | esac | ||
5535 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5536 | |||
5537 | if test $supports_anon_versioning = yes; then | ||
5538 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
5539 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
5540 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
5541 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
5542 | fi | ||
5543 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no | ||
5544 | else | ||
5545 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5546 | fi | ||
5547 | ;; | ||
5548 | |||
5549 | netbsd* | netbsdelf*-gnu) | ||
5550 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 5121 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
5551 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 5122 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
5552 | wlarc= | 5123 | wlarc= |
@@ -5556,7 +5127,7 @@ EOF | |||
5556 | fi | 5127 | fi |
5557 | ;; | 5128 | ;; |
5558 | 5129 | ||
5559 | solaris*) | 5130 | solaris* | sysv5*) |
5560 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 5131 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
5561 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5132 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5562 | cat <<EOF 1>&2 | 5133 | cat <<EOF 1>&2 |
@@ -5577,33 +5148,6 @@ EOF | |||
5577 | fi | 5148 | fi |
5578 | ;; | 5149 | ;; |
5579 | 5150 | ||
5580 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
5581 | case `$LD -v 2>&1` in | ||
5582 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | ||
5583 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5584 | cat <<_LT_EOF 1>&2 | ||
5585 | |||
5586 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
5587 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
5588 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
5589 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
5590 | *** your PATH or compiler configuration so that the native linker is | ||
5591 | *** used, and then restart. | ||
5592 | |||
5593 | _LT_EOF | ||
5594 | ;; | ||
5595 | *) | ||
5596 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
5597 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
5598 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
5599 | _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' | ||
5600 | else | ||
5601 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5602 | fi | ||
5603 | ;; | ||
5604 | esac | ||
5605 | ;; | ||
5606 | |||
5607 | sunos4*) | 5151 | sunos4*) |
5608 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 5152 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5609 | wlarc= | 5153 | wlarc= |
@@ -5611,6 +5155,32 @@ _LT_EOF | |||
5611 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5155 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5612 | ;; | 5156 | ;; |
5613 | 5157 | ||
5158 | linux*) | ||
5159 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
5160 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
5161 | _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" | ||
5162 | supports_anon_versioning=no | ||
5163 | case `$LD -v 2>/dev/null` in | ||
5164 | *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
5165 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
5166 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
5167 | *\ 2.11.*) ;; # other 2.11 versions | ||
5168 | *) supports_anon_versioning=yes ;; | ||
5169 | esac | ||
5170 | if test $supports_anon_versioning = yes; then | ||
5171 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
5172 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
5173 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
5174 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
5175 | else | ||
5176 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" | ||
5177 | fi | ||
5178 | _LT_AC_TAGVAR(link_all_deplibs, $1)=no | ||
5179 | else | ||
5180 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5181 | fi | ||
5182 | ;; | ||
5183 | |||
5614 | *) | 5184 | *) |
5615 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 5185 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5616 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 5186 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
@@ -5621,11 +5191,16 @@ _LT_EOF | |||
5621 | ;; | 5191 | ;; |
5622 | esac | 5192 | esac |
5623 | 5193 | ||
5624 | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then | 5194 | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
5625 | runpath_var= | 5195 | runpath_var=LD_RUN_PATH |
5626 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | 5196 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
5627 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | 5197 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5628 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | 5198 | # ancient GNU ld didn't support --whole-archive et. al. |
5199 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
5200 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
5201 | else | ||
5202 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
5203 | fi | ||
5629 | fi | 5204 | fi |
5630 | else | 5205 | else |
5631 | # PORTME fill in a description of your system's linker (not GNU ld) | 5206 | # PORTME fill in a description of your system's linker (not GNU ld) |
@@ -5637,7 +5212,7 @@ _LT_EOF | |||
5637 | # Note: this linker hardcodes the directories in LIBPATH if there | 5212 | # Note: this linker hardcodes the directories in LIBPATH if there |
5638 | # are no directories specified by -L. | 5213 | # are no directories specified by -L. |
5639 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | 5214 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
5640 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | 5215 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
5641 | # Neither direct hardcoding nor static linking is supported with a | 5216 | # Neither direct hardcoding nor static linking is supported with a |
5642 | # broken collect2. | 5217 | # broken collect2. |
5643 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | 5218 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
@@ -5671,7 +5246,6 @@ _LT_EOF | |||
5671 | break | 5246 | break |
5672 | fi | 5247 | fi |
5673 | done | 5248 | done |
5674 | ;; | ||
5675 | esac | 5249 | esac |
5676 | 5250 | ||
5677 | exp_sym_flag='-bexport' | 5251 | exp_sym_flag='-bexport' |
@@ -5690,7 +5264,7 @@ _LT_EOF | |||
5690 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 5264 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5691 | 5265 | ||
5692 | if test "$GCC" = yes; then | 5266 | if test "$GCC" = yes; then |
5693 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | 5267 | case $host_os in aix4.[012]|aix4.[012].*) |
5694 | # We only want to do this on AIX 4.2 and lower, the check | 5268 | # We only want to do this on AIX 4.2 and lower, the check |
5695 | # below for broken collect2 doesn't work under 4.3+ | 5269 | # below for broken collect2 doesn't work under 4.3+ |
5696 | collect2name=`${CC} -print-prog-name=collect2` | 5270 | collect2name=`${CC} -print-prog-name=collect2` |
@@ -5709,12 +5283,8 @@ _LT_EOF | |||
5709 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | 5283 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5710 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | 5284 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
5711 | fi | 5285 | fi |
5712 | ;; | ||
5713 | esac | 5286 | esac |
5714 | shared_flag='-shared' | 5287 | shared_flag='-shared' |
5715 | if test "$aix_use_runtimelinking" = yes; then | ||
5716 | shared_flag="$shared_flag "'${wl}-G' | ||
5717 | fi | ||
5718 | else | 5288 | else |
5719 | # not using gcc | 5289 | # not using gcc |
5720 | if test "$host_cpu" = ia64; then | 5290 | if test "$host_cpu" = ia64; then |
@@ -5722,11 +5292,11 @@ _LT_EOF | |||
5722 | # chokes on -Wl,-G. The following line is correct: | 5292 | # chokes on -Wl,-G. The following line is correct: |
5723 | shared_flag='-G' | 5293 | shared_flag='-G' |
5724 | else | 5294 | else |
5725 | if test "$aix_use_runtimelinking" = yes; then | 5295 | if test "$aix_use_runtimelinking" = yes; then |
5726 | shared_flag='${wl}-G' | 5296 | shared_flag='${wl}-G' |
5727 | else | 5297 | else |
5728 | shared_flag='${wl}-bM:SRE' | 5298 | shared_flag='${wl}-bM:SRE' |
5729 | fi | 5299 | fi |
5730 | fi | 5300 | fi |
5731 | fi | 5301 | fi |
5732 | 5302 | ||
@@ -5740,12 +5310,12 @@ _LT_EOF | |||
5740 | # Determine the default libpath from the value encoded in an empty executable. | 5310 | # Determine the default libpath from the value encoded in an empty executable. |
5741 | _LT_AC_SYS_LIBPATH_AIX | 5311 | _LT_AC_SYS_LIBPATH_AIX |
5742 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | 5312 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5743 | _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" | 5313 | _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" |
5744 | else | 5314 | else |
5745 | if test "$host_cpu" = ia64; then | 5315 | if test "$host_cpu" = ia64; then |
5746 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | 5316 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5747 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | 5317 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
5748 | _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" | 5318 | _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" |
5749 | else | 5319 | else |
5750 | # Determine the default libpath from the value encoded in an empty executable. | 5320 | # Determine the default libpath from the value encoded in an empty executable. |
5751 | _LT_AC_SYS_LIBPATH_AIX | 5321 | _LT_AC_SYS_LIBPATH_AIX |
@@ -5754,11 +5324,13 @@ _LT_EOF | |||
5754 | # -berok will link without error, but may produce a broken library. | 5324 | # -berok will link without error, but may produce a broken library. |
5755 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | 5325 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5756 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | 5326 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
5327 | # -bexpall does not export symbols beginning with underscore (_) | ||
5328 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
5757 | # Exported symbols can be pulled into shared objects from archives | 5329 | # Exported symbols can be pulled into shared objects from archives |
5758 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | 5330 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
5759 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | 5331 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
5760 | # This is similar to how AIX traditionally builds its shared libraries. | 5332 | # This is similar to how AIX traditionally builds it's shared libraries. |
5761 | _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' | 5333 | _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' |
5762 | fi | 5334 | fi |
5763 | fi | 5335 | fi |
5764 | ;; | 5336 | ;; |
@@ -5771,7 +5343,7 @@ _LT_EOF | |||
5771 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | 5343 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5772 | ;; | 5344 | ;; |
5773 | 5345 | ||
5774 | bsdi[[45]]*) | 5346 | bsdi4*) |
5775 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | 5347 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
5776 | ;; | 5348 | ;; |
5777 | 5349 | ||
@@ -5792,57 +5364,57 @@ _LT_EOF | |||
5792 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' | 5364 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
5793 | # FIXME: Should let the user specify the lib program. | 5365 | # FIXME: Should let the user specify the lib program. |
5794 | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' | 5366 | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
5795 | _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | 5367 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
5796 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | 5368 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5797 | ;; | 5369 | ;; |
5798 | 5370 | ||
5799 | darwin* | rhapsody*) | 5371 | darwin* | rhapsody*) |
5800 | case $host_os in | 5372 | if test "$GXX" = yes ; then |
5801 | rhapsody* | darwin1.[[012]]) | ||
5802 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | ||
5803 | ;; | ||
5804 | *) # Darwin 1.3 on | ||
5805 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
5806 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
5807 | else | ||
5808 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
5809 | 10.[[012]]) | ||
5810 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
5811 | ;; | ||
5812 | 10.*) | ||
5813 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | ||
5814 | ;; | ||
5815 | esac | ||
5816 | fi | ||
5817 | ;; | ||
5818 | esac | ||
5819 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 5373 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
5374 | case "$host_os" in | ||
5375 | rhapsody* | darwin1.[[012]]) | ||
5376 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' | ||
5377 | ;; | ||
5378 | *) # Darwin 1.3 on | ||
5379 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
5380 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' | ||
5381 | else | ||
5382 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
5383 | 10.[[012]]) | ||
5384 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' | ||
5385 | ;; | ||
5386 | 10.*) | ||
5387 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' | ||
5388 | ;; | ||
5389 | esac | ||
5390 | fi | ||
5391 | ;; | ||
5392 | esac | ||
5393 | lt_int_apple_cc_single_mod=no | ||
5394 | output_verbose_link_cmd='echo' | ||
5395 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | ||
5396 | lt_int_apple_cc_single_mod=yes | ||
5397 | fi | ||
5398 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
5399 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
5400 | else | ||
5401 | _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' | ||
5402 | fi | ||
5403 | _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
5404 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
5405 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
5406 | _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}' | ||
5407 | else | ||
5408 | _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}' | ||
5409 | fi | ||
5410 | _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}' | ||
5820 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | 5411 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5821 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | 5412 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
5822 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | 5413 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5823 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | 5414 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
5824 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 5415 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5825 | if test "$GCC" = yes ; then | ||
5826 | output_verbose_link_cmd='echo' | ||
5827 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
5828 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
5829 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
5830 | _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}' | ||
5831 | _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}' | ||
5832 | else | 5416 | else |
5833 | case $cc_basename in | 5417 | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
5834 | xlc*) | ||
5835 | output_verbose_link_cmd='echo' | ||
5836 | _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' | ||
5837 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
5838 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
5839 | _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}' | ||
5840 | _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}' | ||
5841 | ;; | ||
5842 | *) | ||
5843 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
5844 | ;; | ||
5845 | esac | ||
5846 | fi | 5418 | fi |
5847 | ;; | 5419 | ;; |
5848 | 5420 | ||
@@ -5876,7 +5448,7 @@ _LT_EOF | |||
5876 | ;; | 5448 | ;; |
5877 | 5449 | ||
5878 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 5450 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
5879 | freebsd* | dragonfly*) | 5451 | freebsd* | kfreebsd*-gnu) |
5880 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 5452 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
5881 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | 5453 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
5882 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5454 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
@@ -5899,62 +5471,47 @@ _LT_EOF | |||
5899 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5471 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5900 | ;; | 5472 | ;; |
5901 | 5473 | ||
5902 | hpux10*) | 5474 | hpux10* | hpux11*) |
5903 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
5904 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
5905 | else | ||
5906 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
5907 | fi | ||
5908 | if test "$with_gnu_ld" = no; then | ||
5909 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
5910 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
5911 | |||
5912 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
5913 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
5914 | |||
5915 | # hardcode_minus_L: Not really in the search PATH, | ||
5916 | # but as the default location of the library. | ||
5917 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
5918 | fi | ||
5919 | ;; | ||
5920 | |||
5921 | hpux11*) | ||
5922 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 5475 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
5923 | case $host_cpu in | 5476 | case "$host_cpu" in |
5924 | hppa*64*) | 5477 | hppa*64*|ia64*) |
5925 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5478 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5926 | ;; | 5479 | ;; |
5927 | ia64*) | ||
5928 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
5929 | ;; | ||
5930 | *) | 5480 | *) |
5931 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5481 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5932 | ;; | 5482 | ;; |
5933 | esac | 5483 | esac |
5934 | else | 5484 | else |
5935 | case $host_cpu in | 5485 | case "$host_cpu" in |
5936 | hppa*64*) | 5486 | hppa*64*|ia64*) |
5937 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5487 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
5938 | ;; | ||
5939 | ia64*) | ||
5940 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
5941 | ;; | 5488 | ;; |
5942 | *) | 5489 | *) |
5943 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 5490 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
5944 | ;; | 5491 | ;; |
5945 | esac | 5492 | esac |
5946 | fi | 5493 | fi |
5947 | if test "$with_gnu_ld" = no; then | 5494 | if test "$with_gnu_ld" = no; then |
5948 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | 5495 | case "$host_cpu" in |
5949 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 5496 | hppa*64*) |
5950 | 5497 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
5951 | case $host_cpu in | ||
5952 | hppa*64*|ia64*) | ||
5953 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | 5498 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
5499 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
5954 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | 5500 | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
5955 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5501 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
5956 | ;; | 5502 | ;; |
5503 | ia64*) | ||
5504 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
5505 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
5506 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5507 | |||
5508 | # hardcode_minus_L: Not really in the search PATH, | ||
5509 | # but as the default location of the library. | ||
5510 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
5511 | ;; | ||
5957 | *) | 5512 | *) |
5513 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
5514 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
5958 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | 5515 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5959 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5516 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
5960 | 5517 | ||
@@ -5978,7 +5535,7 @@ _LT_EOF | |||
5978 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 5535 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
5979 | ;; | 5536 | ;; |
5980 | 5537 | ||
5981 | netbsd* | netbsdelf*-gnu) | 5538 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
5982 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 5539 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
5983 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | 5540 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
5984 | else | 5541 | else |
@@ -6002,7 +5559,6 @@ _LT_EOF | |||
6002 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5559 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
6003 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 5560 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6004 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 5561 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6005 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
6006 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | 5562 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
6007 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | 5563 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
6008 | else | 5564 | else |
@@ -6048,7 +5604,7 @@ _LT_EOF | |||
6048 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | 5604 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6049 | _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' | 5605 | _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' |
6050 | _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~ | 5606 | _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~ |
6051 | $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' | 5607 | $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' |
6052 | 5608 | ||
6053 | # Both c and cxx compiler support -rpath directly | 5609 | # Both c and cxx compiler support -rpath directly |
6054 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | 5610 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
@@ -6056,15 +5612,21 @@ _LT_EOF | |||
6056 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | 5612 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
6057 | ;; | 5613 | ;; |
6058 | 5614 | ||
5615 | sco3.2v5*) | ||
5616 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
5617 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
5618 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
5619 | runpath_var=LD_RUN_PATH | ||
5620 | hardcode_runpath_var=yes | ||
5621 | ;; | ||
5622 | |||
6059 | solaris*) | 5623 | solaris*) |
6060 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | 5624 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
6061 | if test "$GCC" = yes; then | 5625 | if test "$GCC" = yes; then |
6062 | wlarc='${wl}' | ||
6063 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 5626 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6064 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 5627 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
6065 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 5628 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
6066 | else | 5629 | else |
6067 | wlarc='' | ||
6068 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 5630 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6069 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 5631 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
6070 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 5632 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
@@ -6073,18 +5635,8 @@ _LT_EOF | |||
6073 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5635 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
6074 | case $host_os in | 5636 | case $host_os in |
6075 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | 5637 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
6076 | *) | 5638 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
6077 | # The compiler driver will combine linker options so we | 5639 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
6078 | # cannot just pass the convience library names through | ||
6079 | # without $wl, iff we do not link with $LD. | ||
6080 | # Luckily, gcc supports the same syntax we need for Sun Studio. | ||
6081 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
6082 | case $wlarc in | ||
6083 | '') | ||
6084 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; | ||
6085 | *) | ||
6086 | _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' ;; | ||
6087 | esac ;; | ||
6088 | esac | 5640 | esac |
6089 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | 5641 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
6090 | ;; | 5642 | ;; |
@@ -6141,45 +5693,36 @@ _LT_EOF | |||
6141 | fi | 5693 | fi |
6142 | ;; | 5694 | ;; |
6143 | 5695 | ||
6144 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) | 5696 | sysv4.2uw2*) |
6145 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | 5697 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
6146 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | 5698 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
5699 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
6147 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5700 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
6148 | runpath_var='LD_RUN_PATH' | 5701 | hardcode_runpath_var=yes |
5702 | runpath_var=LD_RUN_PATH | ||
5703 | ;; | ||
6149 | 5704 | ||
5705 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) | ||
5706 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' | ||
6150 | if test "$GCC" = yes; then | 5707 | if test "$GCC" = yes; then |
6151 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 5708 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6152 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6153 | else | 5709 | else |
6154 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 5710 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6155 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6156 | fi | 5711 | fi |
5712 | runpath_var='LD_RUN_PATH' | ||
5713 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6157 | ;; | 5714 | ;; |
6158 | 5715 | ||
6159 | sysv5* | sco3.2v5* | sco5v6*) | 5716 | sysv5*) |
6160 | # Note: We can NOT use -z defs as we might desire, because we do not | 5717 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
6161 | # link with -lc, and that would cause any symbols used from libc to | 5718 | # $CC -shared without GNU ld will not create a library from C++ |
6162 | # always be unresolved, which means just about no library would | 5719 | # object files and a static libstdc++, better avoid it by now |
6163 | # ever link correctly. If we're not using GNU ld we use -z text | 5720 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6164 | # though, which does catch some bad symbols but isn't as heavy-handed | 5721 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
6165 | # as -z defs. | 5722 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
6166 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | 5723 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
6167 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | ||
6168 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
6169 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | 5724 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
6170 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
6171 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
6172 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
6173 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
6174 | runpath_var='LD_RUN_PATH' | 5725 | runpath_var='LD_RUN_PATH' |
6175 | |||
6176 | if test "$GCC" = yes; then | ||
6177 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6178 | _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' | ||
6179 | else | ||
6180 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
6181 | _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' | ||
6182 | fi | ||
6183 | ;; | 5726 | ;; |
6184 | 5727 | ||
6185 | uts4*) | 5728 | uts4*) |
@@ -6197,6 +5740,11 @@ _LT_EOF | |||
6197 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | 5740 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
6198 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | 5741 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
6199 | 5742 | ||
5743 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
5744 | if test "$GCC" = yes; then | ||
5745 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
5746 | fi | ||
5747 | |||
6200 | # | 5748 | # |
6201 | # Do we need to explicitly link libc? | 5749 | # Do we need to explicitly link libc? |
6202 | # | 5750 | # |
@@ -6224,7 +5772,6 @@ x|xyes) | |||
6224 | libobjs=conftest.$ac_objext | 5772 | libobjs=conftest.$ac_objext |
6225 | deplibs= | 5773 | deplibs= |
6226 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | 5774 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
6227 | pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | ||
6228 | compiler_flags=-v | 5775 | compiler_flags=-v |
6229 | linker_flags=-v | 5776 | linker_flags=-v |
6230 | verstring= | 5777 | verstring= |
@@ -6350,7 +5897,7 @@ lt_ac_count=0 | |||
6350 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | 5897 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
6351 | # along with /bin/sed that truncates output. | 5898 | # along with /bin/sed that truncates output. |
6352 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | 5899 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
6353 | test ! -f $lt_ac_sed && continue | 5900 | test ! -f $lt_ac_sed && break |
6354 | cat /dev/null > conftest.in | 5901 | cat /dev/null > conftest.in |
6355 | lt_ac_count=0 | 5902 | lt_ac_count=0 |
6356 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | 5903 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
@@ -6375,13 +5922,14 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |||
6375 | fi | 5922 | fi |
6376 | done | 5923 | done |
6377 | done | 5924 | done |
6378 | ]) | ||
6379 | SED=$lt_cv_path_SED | 5925 | SED=$lt_cv_path_SED |
5926 | ]) | ||
6380 | AC_MSG_RESULT([$SED]) | 5927 | AC_MSG_RESULT([$SED]) |
6381 | ]) | 5928 | ]) |
6382 | 5929 | ||
6383 | 5930 | ||
6384 | # serial 7 AC_LIB_LTDL | 5931 | # serial 6 AC_LIB_LTDL |
5932 | # Debian $Rev: 214 $ | ||
6385 | 5933 | ||
6386 | # AC_WITH_LTDL | 5934 | # AC_WITH_LTDL |
6387 | # ------------ | 5935 | # ------------ |
@@ -6418,7 +5966,7 @@ fi | |||
6418 | if test "x$with_included_ltdl" = xno; then | 5966 | if test "x$with_included_ltdl" = xno; then |
6419 | # If the included ltdl is not to be used. then Use the | 5967 | # If the included ltdl is not to be used. then Use the |
6420 | # preinstalled libltdl we found. | 5968 | # preinstalled libltdl we found. |
6421 | AC_DEFINE([HAVE_LTDL], [1], | 5969 | AC_DEFINE([HAVE_LTDL], 1, |
6422 | [Define this if a modern libltdl is already installed]) | 5970 | [Define this if a modern libltdl is already installed]) |
6423 | LIBLTDL=-lltdl | 5971 | LIBLTDL=-lltdl |
6424 | fi | 5972 | fi |
@@ -6475,7 +6023,7 @@ AC_DEFUN([AC_LTDL_ENABLE_INSTALL], | |||
6475 | 6023 | ||
6476 | AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) | 6024 | AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) |
6477 | AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno) | 6025 | AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno) |
6478 | ])# AC_LTDL_ENABLE_INSTALL | 6026 | ])])# AC_LTDL_ENABLE_INSTALL |
6479 | 6027 | ||
6480 | 6028 | ||
6481 | # AC_LTDL_SYS_DLOPEN_DEPLIBS | 6029 | # AC_LTDL_SYS_DLOPEN_DEPLIBS |
@@ -6502,17 +6050,14 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen], | |||
6502 | # Assuming the user has installed a libdl from somewhere, this is true | 6050 | # Assuming the user has installed a libdl from somewhere, this is true |
6503 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 6051 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
6504 | libltdl_cv_sys_dlopen_deplibs=yes | 6052 | libltdl_cv_sys_dlopen_deplibs=yes |
6505 | ;; | 6053 | ;; |
6506 | gnu* | linux* | k*bsd*-gnu) | 6054 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
6507 | # GNU and its variants, using gnu ld.so (Glibc) | 6055 | # GNU and its variants, using gnu ld.so (Glibc) |
6508 | libltdl_cv_sys_dlopen_deplibs=yes | 6056 | libltdl_cv_sys_dlopen_deplibs=yes |
6509 | ;; | 6057 | ;; |
6510 | hpux10*|hpux11*) | 6058 | hpux10*|hpux11*) |
6511 | libltdl_cv_sys_dlopen_deplibs=yes | 6059 | libltdl_cv_sys_dlopen_deplibs=yes |
6512 | ;; | 6060 | ;; |
6513 | interix*) | ||
6514 | libltdl_cv_sys_dlopen_deplibs=yes | ||
6515 | ;; | ||
6516 | irix[[12345]]*|irix6.[[01]]*) | 6061 | irix[[12345]]*|irix6.[[01]]*) |
6517 | # Catch all versions of IRIX before 6.2, and indicate that we don't | 6062 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
6518 | # know how it worked for any of those versions. | 6063 | # know how it worked for any of those versions. |
@@ -6554,9 +6099,6 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen], | |||
6554 | solaris*) | 6099 | solaris*) |
6555 | libltdl_cv_sys_dlopen_deplibs=yes | 6100 | libltdl_cv_sys_dlopen_deplibs=yes |
6556 | ;; | 6101 | ;; |
6557 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
6558 | libltdl_cv_sys_dlopen_deplibs=yes | ||
6559 | ;; | ||
6560 | esac | 6102 | esac |
6561 | ]) | 6103 | ]) |
6562 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | 6104 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
@@ -6577,7 +6119,7 @@ module=yes | |||
6577 | eval libltdl_cv_shlibext=$shrext_cmds | 6119 | eval libltdl_cv_shlibext=$shrext_cmds |
6578 | ]) | 6120 | ]) |
6579 | if test -n "$libltdl_cv_shlibext"; then | 6121 | if test -n "$libltdl_cv_shlibext"; then |
6580 | AC_DEFINE_UNQUOTED([LTDL_SHLIB_EXT], ["$libltdl_cv_shlibext"], | 6122 | AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext", |
6581 | [Define to the extension used for shared libraries, say, ".so".]) | 6123 | [Define to the extension used for shared libraries, say, ".so".]) |
6582 | fi | 6124 | fi |
6583 | ])# AC_LTDL_SHLIBEXT | 6125 | ])# AC_LTDL_SHLIBEXT |
@@ -6590,7 +6132,7 @@ AC_DEFUN([AC_LTDL_SHLIBPATH], | |||
6590 | AC_CACHE_CHECK([which variable specifies run-time library path], | 6132 | AC_CACHE_CHECK([which variable specifies run-time library path], |
6591 | [libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"]) | 6133 | [libltdl_cv_shlibpath_var], [libltdl_cv_shlibpath_var="$shlibpath_var"]) |
6592 | if test -n "$libltdl_cv_shlibpath_var"; then | 6134 | if test -n "$libltdl_cv_shlibpath_var"; then |
6593 | AC_DEFINE_UNQUOTED([LTDL_SHLIBPATH_VAR], ["$libltdl_cv_shlibpath_var"], | 6135 | AC_DEFINE_UNQUOTED(LTDL_SHLIBPATH_VAR, "$libltdl_cv_shlibpath_var", |
6594 | [Define to the name of the environment variable that determines the dynamic library search path.]) | 6136 | [Define to the name of the environment variable that determines the dynamic library search path.]) |
6595 | fi | 6137 | fi |
6596 | ])# AC_LTDL_SHLIBPATH | 6138 | ])# AC_LTDL_SHLIBPATH |
@@ -6612,7 +6154,7 @@ if test -n "$libltdl_cv_sys_search_path"; then | |||
6612 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" | 6154 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
6613 | fi | 6155 | fi |
6614 | done | 6156 | done |
6615 | AC_DEFINE_UNQUOTED([LTDL_SYSSEARCHPATH], ["$sys_search_path"], | 6157 | AC_DEFINE_UNQUOTED(LTDL_SYSSEARCHPATH, "$sys_search_path", |
6616 | [Define to the system default library search path.]) | 6158 | [Define to the system default library search path.]) |
6617 | fi | 6159 | fi |
6618 | ])# AC_LTDL_SYSSEARCHPATH | 6160 | ])# AC_LTDL_SYSSEARCHPATH |
@@ -6638,7 +6180,7 @@ AC_DEFUN([AC_LTDL_OBJDIR], | |||
6638 | rmdir .libs 2>/dev/null | 6180 | rmdir .libs 2>/dev/null |
6639 | fi | 6181 | fi |
6640 | ]) | 6182 | ]) |
6641 | AC_DEFINE_UNQUOTED([LTDL_OBJDIR], ["$libltdl_cv_objdir/"], | 6183 | AC_DEFINE_UNQUOTED(LTDL_OBJDIR, "$libltdl_cv_objdir/", |
6642 | [Define to the sub-directory in which libtool stores uninstalled libraries.]) | 6184 | [Define to the sub-directory in which libtool stores uninstalled libraries.]) |
6643 | ])# AC_LTDL_OBJDIR | 6185 | ])# AC_LTDL_OBJDIR |
6644 | 6186 | ||
@@ -6656,7 +6198,7 @@ AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen], | |||
6656 | fi | 6198 | fi |
6657 | ]) | 6199 | ]) |
6658 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 6200 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
6659 | AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1], | 6201 | AC_DEFINE(HAVE_PRELOADED_SYMBOLS, 1, |
6660 | [Define if libtool can extract symbol lists from object files.]) | 6202 | [Define if libtool can extract symbol lists from object files.]) |
6661 | fi | 6203 | fi |
6662 | ])# AC_LTDL_DLPREOPEN | 6204 | ])# AC_LTDL_DLPREOPEN |
@@ -6775,7 +6317,7 @@ if test x"$ac_cv_sys_symbol_underscore" = xyes; then | |||
6775 | fi | 6317 | fi |
6776 | 6318 | ||
6777 | if test x"$libltdl_cv_need_uscore" = xyes; then | 6319 | if test x"$libltdl_cv_need_uscore" = xyes; then |
6778 | AC_DEFINE([NEED_USCORE], [1], | 6320 | AC_DEFINE(NEED_USCORE, 1, |
6779 | [Define if dlsym() requires a leading underscore in symbol names.]) | 6321 | [Define if dlsym() requires a leading underscore in symbol names.]) |
6780 | fi | 6322 | fi |
6781 | ])# AC_LTDL_DLSYM_USCORE | 6323 | ])# AC_LTDL_DLSYM_USCORE |