Mon Mar 23 23:03:59 2009 UTC ()
PR 40405: Change soname logic for DragonFly to follow the normal major
only scheme. Properly distinguish FreeBSD and DragonFly case to prevent
further confusion. Differs from the patch in the PR as it forces the
correct branch to be used.

Bump revision of libtool-base. Claim ownership.


(joerg)
diff -r1.73 -r1.74 pkgsrc/devel/libtool/Makefile.common
diff -r1.72 -r1.73 pkgsrc/devel/libtool/distinfo
diff -r1.85 -r1.86 pkgsrc/devel/libtool-base/Makefile
diff -r1.24 -r1.25 pkgsrc/devel/libtool/patches/manual-libtool.m4
diff -r1.61 -r1.62 pkgsrc/devel/libtool/patches/patch-ab
diff -r1.33 -r1.34 pkgsrc/devel/libtool/patches/patch-ad

cvs diff -r1.73 -r1.74 pkgsrc/devel/libtool/Makefile.common (expand / switch to unified diff)

--- pkgsrc/devel/libtool/Makefile.common 2008/11/19 01:26:52 1.73
+++ pkgsrc/devel/libtool/Makefile.common 2009/03/23 23:03:58 1.74
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.common,v 1.73 2008/11/19 01:26:52 chuck Exp $ 1# $NetBSD: Makefile.common,v 1.74 2009/03/23 23:03:58 joerg Exp $
2 2
3########################################################################### 3###########################################################################
4########################################################################### 4###########################################################################
5# 5#
6# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS: 6# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS:
7# 7#
8########################################################################### 8###########################################################################
9########################################################################### 9###########################################################################
10# 10#
11# This package is maintained specially in order to preserve pkgsrc 11# This package is maintained specially in order to preserve pkgsrc
12# specific OS changes that diverge from the "out of the box" libtool. 12# specific OS changes that diverge from the "out of the box" libtool.
13# In order to keep this package in a maintainable condition, the .m4 files 13# In order to keep this package in a maintainable condition, the .m4 files
14# must be manipulated in order to generate the patch-* files. 14# must be manipulated in order to generate the patch-* files.
@@ -17,27 +17,27 @@ @@ -17,27 +17,27 @@
17# these patch files properly; otherwise your changes WILL be lost on the 17# these patch files properly; otherwise your changes WILL be lost on the
18# next libtool update. 18# next libtool update.
19# 19#
20# DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE 20# DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE
21# INSTRUCTIONS. There are no exceptions to this rule. 21# INSTRUCTIONS. There are no exceptions to this rule.
22# 22#
23########################################################################### 23###########################################################################
24########################################################################### 24###########################################################################
25 25
26DISTNAME= libtool-1.5.26 26DISTNAME= libtool-1.5.26
27CATEGORIES= devel pkgtools 27CATEGORIES= devel pkgtools
28MASTER_SITES= ${MASTER_SITE_GNU:=libtool/} 28MASTER_SITES= ${MASTER_SITE_GNU:=libtool/}
29 29
30MAINTAINER= joerg@NetBSD.org 30OWNER= joerg@NetBSD.org
31HOMEPAGE= http://www.gnu.org/software/libtool/libtool.html 31HOMEPAGE= http://www.gnu.org/software/libtool/libtool.html
32#LICENSE= gnu-gpl-v2 32#LICENSE= gnu-gpl-v2
33 33
34CONFLICTS= glibtool-[0-9]* 34CONFLICTS= glibtool-[0-9]*
35 35
36PKG_INSTALLATION_TYPES= overwrite pkgviews 36PKG_INSTALLATION_TYPES= overwrite pkgviews
37PKG_DESTDIR_SUPPORT= user-destdir 37PKG_DESTDIR_SUPPORT= user-destdir
38 38
39GNU_CONFIGURE= yes 39GNU_CONFIGURE= yes
40 40
41DISTINFO_FILE= ${.CURDIR}/../libtool/distinfo 41DISTINFO_FILE= ${.CURDIR}/../libtool/distinfo
42PATCHDIR= ${.CURDIR}/../libtool/patches 42PATCHDIR= ${.CURDIR}/../libtool/patches
43 43

cvs diff -r1.72 -r1.73 pkgsrc/devel/libtool/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/libtool/distinfo 2008/11/19 01:26:52 1.72
+++ pkgsrc/devel/libtool/distinfo 2009/03/23 23:03:59 1.73
@@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
1$NetBSD: distinfo,v 1.72 2008/11/19 01:26:52 chuck Exp $ 1$NetBSD: distinfo,v 1.73 2009/03/23 23:03:59 joerg Exp $
2 2
3SHA1 (libtool-1.5.26.tar.gz) = 4c1738351736562a951a345e24f233d00953ec0a 3SHA1 (libtool-1.5.26.tar.gz) = 4c1738351736562a951a345e24f233d00953ec0a
4RMD160 (libtool-1.5.26.tar.gz) = 4d1d7dd0308b98e8f590723ae5daddb8da49ac11 4RMD160 (libtool-1.5.26.tar.gz) = 4d1d7dd0308b98e8f590723ae5daddb8da49ac11
5Size (libtool-1.5.26.tar.gz) = 2961939 bytes 5Size (libtool-1.5.26.tar.gz) = 2961939 bytes
6SHA1 (patch-aa) = 4c979de3439dfffa48295e094c1aee40c7e79fa6 6SHA1 (patch-aa) = 4c979de3439dfffa48295e094c1aee40c7e79fa6
7SHA1 (patch-ab) = 4b3befd3cf5629e3b46b4bd100b697d10089d434 7SHA1 (patch-ab) = 9902ccf15b031d04fdca95acbf718a849c6d0a4f
8SHA1 (patch-ac) = 52f22f3f7a58e22d2240d0c6bb77455783ee5d70 8SHA1 (patch-ac) = 52f22f3f7a58e22d2240d0c6bb77455783ee5d70
9SHA1 (patch-ad) = d3636017fc09a571df6ecb57b7b988867bbbd4ce 9SHA1 (patch-ad) = e3e3164b1e9598deab233450a1f7a8262dd09d66

cvs diff -r1.85 -r1.86 pkgsrc/devel/libtool-base/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/libtool-base/Makefile 2008/11/19 07:50:55 1.85
+++ pkgsrc/devel/libtool-base/Makefile 2009/03/23 23:03:59 1.86
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.85 2008/11/19 07:50:55 wiz Exp $ 1# $NetBSD: Makefile,v 1.86 2009/03/23 23:03:59 joerg Exp $
2 2
3########################################################################### 3###########################################################################
4########################################################################### 4###########################################################################
5# 5#
6# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS: 6# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS:
7# 7#
8########################################################################### 8###########################################################################
9########################################################################### 9###########################################################################
10# 10#
11# This package is maintained specially in order to preserve pkgsrc 11# This package is maintained specially in order to preserve pkgsrc
12# specific OS changes that diverge from the "out of the box" libtool. 12# specific OS changes that diverge from the "out of the box" libtool.
13# In order to keep this package in a maintainable condition, the .m4 files 13# In order to keep this package in a maintainable condition, the .m4 files
14# must be manipulated in order to generate the patch-* files. 14# must be manipulated in order to generate the patch-* files.
@@ -16,26 +16,27 @@ @@ -16,26 +16,27 @@
16# See devel/libtool/patches/manual.README for instructions on how to make 16# See devel/libtool/patches/manual.README for instructions on how to make
17# these patch files properly; otherwise your changes WILL be lost on the 17# these patch files properly; otherwise your changes WILL be lost on the
18# next libtool update. 18# next libtool update.
19# 19#
20# DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE 20# DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE
21# INSTRUCTIONS. There are no exceptions to this rule. 21# INSTRUCTIONS. There are no exceptions to this rule.
22# 22#
23########################################################################### 23###########################################################################
24########################################################################### 24###########################################################################
25 25
26.include "../../devel/libtool/Makefile.common" 26.include "../../devel/libtool/Makefile.common"
27 27
28PKGNAME= ${DISTNAME:S/-/-base-/} 28PKGNAME= ${DISTNAME:S/-/-base-/}
 29PKGREVISION= 1
29SVR4_PKGNAME= ltoob 30SVR4_PKGNAME= ltoob
30 31
31COMMENT= Generic shared library support script (the script itself) 32COMMENT= Generic shared library support script (the script itself)
32 33
33CONFLICTS+= libtool<=1.3.5nb11 34CONFLICTS+= libtool<=1.3.5nb11
34 35
35TEST_TARGET= check 36TEST_TARGET= check
36PLIST_VARS+= shlibtool 37PLIST_VARS+= shlibtool
37 38
38.if ${OPSYS} == "AIX" 39.if ${OPSYS} == "AIX"
39 40
40# always build libraries and executables that use the runtime linker. 41# always build libraries and executables that use the runtime linker.
41# in addition, disable libtool locking, as the test is broken on AIX, 42# in addition, disable libtool locking, as the test is broken on AIX,

cvs diff -r1.24 -r1.25 pkgsrc/devel/libtool/patches/manual-libtool.m4 (expand / switch to unified diff)

--- pkgsrc/devel/libtool/patches/manual-libtool.m4 2009/02/24 10:13:26 1.24
+++ pkgsrc/devel/libtool/patches/manual-libtool.m4 2009/03/23 23:03:59 1.25
@@ -1,110 +1,122 @@ @@ -1,110 +1,122 @@
1$NetBSD: manual-libtool.m4,v 1.24 2009/02/24 10:13:26 abs Exp $ 1$NetBSD: manual-libtool.m4,v 1.25 2009/03/23 23:03:59 joerg Exp $
2 2
3Local pkgsrc changes: 3Local pkgsrc changes:
4- override the basename to point to the actual backend compiler, 4- override the basename to point to the actual backend compiler,
5 critical e.g. on Solaris 5 critical e.g. on Solaris
6- portability fixes for print on Interix 6- portability fixes for print on Interix
7- override for shlib naming policy on various platforms 7- override for shlib naming policy on various platforms
8- QNX support 8- QNX support
9- Interix3 support 9- Interix3 support
10- disable static linkage on OS X by default 10- disable static linkage on OS X by default
 11- DragonFly support decoupled from FreeBSD
11 12
12--- libtool.m4.orig 2008-02-01 16:26:47.000000000 +0000 13--- libtool.m4.orig 2008-02-01 17:26:47.000000000 +0100
13+++ libtool.m4 2009-02-21 23:20:30.000000000 +0000 14+++ libtool.m4
14@@ -249,7 +249,10 @@ 15@@ -249,7 +249,10 @@ AC_DEFUN([_LT_CC_BASENAME],
15 *) break;; 16 *) break;;
16 esac 17 esac
17 done 18 done
18-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19+# Return the actual command name, not our pkgsrc wrapper name because several 20+# Return the actual command name, not our pkgsrc wrapper name because several
20+# decisions are made only based on compiler names 21+# decisions are made only based on compiler names
21+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 22+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
22+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 23+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23 ]) 24 ])
24  25
25  26
26@@ -474,11 +477,11 @@ 27@@ -474,11 +477,11 @@ else
27  28
28 if test "X$echo" = Xecho; then 29 if test "X$echo" = Xecho; then
29 # We didn't find a better echo, so look for alternatives. 30 # We didn't find a better echo, so look for alternatives.
30- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 31- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
31+ if test "X`(print -r - '\t') 2>/dev/null`" = 'X\t' && 32+ if test "X`(print -r - '\t') 2>/dev/null`" = 'X\t' &&
32 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 33 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
33 test "X$echo_testing_string" = "X$echo_test_string"; then 34 test "X$echo_testing_string" = "X$echo_test_string"; then
34 # This shell has a builtin print -r that does the trick. 35 # This shell has a builtin print -r that does the trick.
35- echo='print -r' 36- echo='print -r'
36+ echo='print -r -' 37+ echo='print -r -'
37 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 38 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
38 test "X$CONFIG_SHELL" != X/bin/ksh; then 39 test "X$CONFIG_SHELL" != X/bin/ksh; then
39 # If we have ksh, try running configure again with it. 40 # If we have ksh, try running configure again with it.
40@@ -820,6 +823,13 @@ 41@@ -820,6 +823,13 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
41 lt_cv_sys_max_cmd_len=8192; 42 lt_cv_sys_max_cmd_len=8192;
42 ;; 43 ;;
43  44
44+ mint*) 45+ mint*)
45+ # On MiNT we can support fairly large cmd lengths, but it takes 46+ # On MiNT we can support fairly large cmd lengths, but it takes
46+ # a while to run the tests, so let's restrict it to something 47+ # a while to run the tests, so let's restrict it to something
47+ # reasonable. 48+ # reasonable.
48+ lt_cv_sys_max_cmd_len=8192; 49+ lt_cv_sys_max_cmd_len=8192;
49+ ;; 50+ ;;
50+ 51+
51 amigaos*) 52 amigaos*)
52 # On AmigaOS with pdksh, this test takes hours, literally. 53 # On AmigaOS with pdksh, this test takes hours, literally.
53 # So we just punt and use a minimum line length of 8192. 54 # So we just punt and use a minimum line length of 8192.
54@@ -1427,6 +1437,7 @@ 55@@ -1427,6 +1437,7 @@ beos*)
55 bsdi[[45]]*) 56 bsdi[[45]]*)
56 version_type=linux 57 version_type=linux
57 need_version=no 58 need_version=no
58+ need_lib_prefix=no 59+ need_lib_prefix=no
59 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 60 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
60 soname_spec='${libname}${release}${shared_ext}$major' 61 soname_spec='${libname}${release}${shared_ext}$major'
61 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 62 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
62@@ -1525,7 +1536,7 @@ 63@@ -1525,9 +1536,7 @@ freebsd1*)
63 dynamic_linker=no 64 dynamic_linker=no
64 ;; 65 ;;
65  66
66-freebsd* | dragonfly*) 67-freebsd* | dragonfly*)
 68- # DragonFly does not have aout. When/if they implement a new
 69- # versioning mechanism, adjust this.
67+freebsd*) 70+freebsd*)
68 # DragonFly does not have aout. When/if they implement a new 
69 # versioning mechanism, adjust this. 
70 if test -x /usr/bin/objformat; then 71 if test -x /usr/bin/objformat; then
71@@ -1539,7 +1550,7 @@ 72 objformat=`/usr/bin/objformat`
 73 else
 74@@ -1539,7 +1548,7 @@ freebsd* | dragonfly*)
72 version_type=freebsd-$objformat 75 version_type=freebsd-$objformat
73 case $version_type in 76 case $version_type in
74 freebsd-elf*) 77 freebsd-elf*)
75- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 78- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
76+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 79+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
77 need_version=no 80 need_version=no
78 need_lib_prefix=no 81 need_lib_prefix=no
79 ;; 82 ;;
80@@ -1569,6 +1580,16 @@ 83@@ -1562,13 +1571,24 @@ freebsd* | dragonfly*)
 84 shlibpath_overrides_runpath=no
 85 hardcode_into_libs=yes
 86 ;;
 87- *) # from 4.6 on, and DragonFly
 88+ *) # from 4.6 on
 89 shlibpath_overrides_runpath=yes
 90 hardcode_into_libs=yes
 91 ;;
81 esac 92 esac
82 ;; 93 ;;
83  94
84+dragonfly*) 95+dragonfly*)
85+ version_type=linux # XXX tv this should be =linux; current selection has problems 96+ version_type=linux
86+ need_version=no 97+ need_version=no
87+ need_lib_prefix=no 98+ need_lib_prefix=no
88+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 99+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 100+ soname_spec='${libname}${release}${shared_ext}$major'
89+ shlibpath_var=LD_LIBRARY_PATH 101+ shlibpath_var=LD_LIBRARY_PATH
90+ shlibpath_overrides_runpath=no 102+ shlibpath_overrides_runpath=no
91+ hardcode_into_libs=yes 103+ hardcode_into_libs=yes
92+ ;; 104+ ;;
93+ 105+
94 gnu*) 106 gnu*)
95 version_type=linux 107 version_type=linux
96 need_lib_prefix=no 108 need_lib_prefix=no
97@@ -1637,15 +1658,22 @@ 109@@ -1637,15 +1657,22 @@ interix[[3-9]]*)
98 hardcode_into_libs=yes 110 hardcode_into_libs=yes
99 ;; 111 ;;
100  112
101+interix3*) 113+interix3*)
102+ version_type=linux 114+ version_type=linux
103+ need_lib_prefix=no 115+ need_lib_prefix=no
104+ need_version=no 116+ need_version=no
105+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 117+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
106+ soname_spec='${libname}${release}${shared_ext}$major' 118+ soname_spec='${libname}${release}${shared_ext}$major'
107+ dynamic_linker='Interix 3.x ld.so' 119+ dynamic_linker='Interix 3.x ld.so'
108+ shlibpath_var=LD_LIBRARY_PATH 120+ shlibpath_var=LD_LIBRARY_PATH
109+ shlibpath_overrides_runpath=yes 121+ shlibpath_overrides_runpath=yes
110+ hardcode_into_libs=yes 122+ hardcode_into_libs=yes
@@ -113,146 +125,146 @@ Local pkgsrc changes: @@ -113,146 +125,146 @@ Local pkgsrc changes:
113 irix5* | irix6* | nonstopux*) 125 irix5* | irix6* | nonstopux*)
114 case $host_os in 126 case $host_os in
115 nonstopux*) version_type=nonstopux ;; 127 nonstopux*) version_type=nonstopux ;;
116- *) 128- *)
117- if test "$lt_cv_prog_gnu_ld" = yes; then 129- if test "$lt_cv_prog_gnu_ld" = yes; then
118- version_type=linux 130- version_type=linux
119- else 131- else
120- version_type=irix 132- version_type=irix
121- fi ;; 133- fi ;;
122+ *) version_type=irix ;; 134+ *) version_type=irix ;;
123 esac 135 esac
124 need_lib_prefix=no 136 need_lib_prefix=no
125 need_version=no 137 need_version=no
126@@ -1710,11 +1738,11 @@ 138@@ -1710,11 +1737,11 @@ linux* | k*bsd*-gnu)
127 ;; 139 ;;
128  140
129 netbsd*) 141 netbsd*)
130- version_type=sunos 142- version_type=sunos
131+ version_type=linux 143+ version_type=linux
132 need_lib_prefix=no 144 need_lib_prefix=no
133 need_version=no 145 need_version=no
134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
135- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 147- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
136+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2' 148+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
138 dynamic_linker='NetBSD (a.out) ld.so' 150 dynamic_linker='NetBSD (a.out) ld.so'
139 else 151 else
140@@ -1739,13 +1767,14 @@ 152@@ -1739,13 +1766,14 @@ nto-qnx*)
141 need_lib_prefix=no 153 need_lib_prefix=no
142 need_version=no 154 need_version=no
143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
144+ dynamic_linker='QNX libc.so' 156+ dynamic_linker='QNX libc.so'
145 soname_spec='${libname}${release}${shared_ext}$major' 157 soname_spec='${libname}${release}${shared_ext}$major'
146 shlibpath_var=LD_LIBRARY_PATH 158 shlibpath_var=LD_LIBRARY_PATH
147 shlibpath_overrides_runpath=yes 159 shlibpath_overrides_runpath=yes
148 ;; 160 ;;
149  161
150 openbsd*) 162 openbsd*)
151- version_type=sunos 163- version_type=sunos
152+ version_type=linux 164+ version_type=linux
153 sys_lib_dlsearch_path_spec="/usr/lib" 165 sys_lib_dlsearch_path_spec="/usr/lib"
154 need_lib_prefix=no 166 need_lib_prefix=no
155 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 167 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
156@@ -1753,7 +1782,7 @@ 168@@ -1753,7 +1781,7 @@ openbsd*)
157 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 169 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
158 *) need_version=no ;; 170 *) need_version=no ;;
159 esac 171 esac
160- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 172- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
161+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 173+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
163 shlibpath_var=LD_LIBRARY_PATH 175 shlibpath_var=LD_LIBRARY_PATH
164 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
165@@ -1954,9 +1983,7 @@ 177@@ -1954,9 +1982,7 @@ if test -f "$ltmain" && test -n "$tagnam
166  178
167 case $tagname in 179 case $tagname in
168 CXX) 180 CXX)
169- if test -n "$CXX" && ( test "X$CXX" != "Xno" && 181- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
170- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 182- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
171- (test "X$CXX" != "Xg++"))) ; then 183- (test "X$CXX" != "Xg++"))) ; then
172+ if test -n "$CXX" && test "X$CXX" != "Xno" ; then 184+ if test -n "$CXX" && test "X$CXX" != "Xno" ; then
173 AC_LIBTOOL_LANG_CXX_CONFIG 185 AC_LIBTOOL_LANG_CXX_CONFIG
174 else 186 else
175 tagname="" 187 tagname=""
176@@ -2475,6 +2502,10 @@ 188@@ -2475,6 +2501,10 @@ interix[[3-9]]*)
177 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 189 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
178 ;; 190 ;;
179  191
180+interix3*) 192+interix3*)
181+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 193+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
182+ ;; 194+ ;;
183+ 195+
184 irix5* | irix6* | nonstopux*) 196 irix5* | irix6* | nonstopux*)
185 case $LD in 197 case $LD in
186 *-32|*"-32 ") libmagic=32-bit;; 198 *-32|*"-32 ") libmagic=32-bit;;
187@@ -2505,7 +2536,7 @@ 199@@ -2505,7 +2535,7 @@ newos6*)
188 ;; 200 ;;
189  201
190 nto-qnx*) 202 nto-qnx*)
191- lt_cv_deplibs_check_method=unknown 203- lt_cv_deplibs_check_method=unknown
192+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|S\.a)$' 204+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|S\.a)$'
193 ;; 205 ;;
194  206
195 openbsd*) 207 openbsd*)
196@@ -2712,21 +2743,10 @@ 208@@ -2712,21 +2742,10 @@ AC_DEFUN([AC_LIBTOOL_CXX],
197 # --------------- 209 # ---------------
198 AC_DEFUN([_LT_AC_LANG_CXX], 210 AC_DEFUN([_LT_AC_LANG_CXX],
199 [AC_REQUIRE([AC_PROG_CXX]) 211 [AC_REQUIRE([AC_PROG_CXX])
200-AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 212-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
201+AC_REQUIRE([AC_PROG_CXXCPP]) 213+AC_REQUIRE([AC_PROG_CXXCPP])
202 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 214 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
203 ])# _LT_AC_LANG_CXX 215 ])# _LT_AC_LANG_CXX
204  216
205-# _LT_AC_PROG_CXXCPP 217-# _LT_AC_PROG_CXXCPP
206-# ------------------ 218-# ------------------
207-AC_DEFUN([_LT_AC_PROG_CXXCPP], 219-AC_DEFUN([_LT_AC_PROG_CXXCPP],
208-[ 220-[
209-AC_REQUIRE([AC_PROG_CXX]) 221-AC_REQUIRE([AC_PROG_CXX])
210-if test -n "$CXX" && ( test "X$CXX" != "Xno" && 222-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
211- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 223- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
212- (test "X$CXX" != "Xg++"))) ; then 224- (test "X$CXX" != "Xg++"))) ; then
213- AC_PROG_CXXCPP 225- AC_PROG_CXXCPP
214-fi 226-fi
215-])# _LT_AC_PROG_CXXCPP 227-])# _LT_AC_PROG_CXXCPP
216  228
217 # AC_LIBTOOL_F77 229 # AC_LIBTOOL_F77
218 # -------------- 230 # --------------
219@@ -2864,7 +2884,7 @@ 231@@ -2864,7 +2883,7 @@ AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [
220 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 232 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
221 [AC_LANG_PUSH(C++) 233 [AC_LANG_PUSH(C++)
222 AC_REQUIRE([AC_PROG_CXX]) 234 AC_REQUIRE([AC_PROG_CXX])
223-AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 235-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
224+AC_REQUIRE([AC_PROG_CXXCPP]) 236+AC_REQUIRE([AC_PROG_CXXCPP])
225  237
226 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 238 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
227 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 239 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
228@@ -3350,6 +3370,16 @@ 240@@ -3350,6 +3369,16 @@ case $host_os in
229 _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' 241 _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'
230 _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' 242 _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'
231 ;; 243 ;;
232+ interix3*) 244+ interix3*)
233+ # Oy, what a hack. 245+ # Oy, what a hack.
234+ # Because shlibs are not compiled -fPIC due to broken code, we must 246+ # Because shlibs are not compiled -fPIC due to broken code, we must
235+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 247+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
236+ # all libraries, leading to runtime relocations -- slow and very 248+ # all libraries, leading to runtime relocations -- slow and very
237+ # memory consuming. To do this, we pick a random 256KB-aligned 249+ # memory consuming. To do this, we pick a random 256KB-aligned
238+ # start address between 0x50000000 and 0x6ffc0000 at link time. 250+ # start address between 0x50000000 and 0x6ffc0000 at link time.
239+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 251+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
240+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 252+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
241+ ;; 253+ ;;
242 irix5* | irix6*) 254 irix5* | irix6*)
243 case $cc_basename in 255 case $cc_basename in
244 CC*) 256 CC*)
245@@ -3503,14 +3533,29 @@ 257@@ -3503,14 +3532,29 @@ case $host_os in
246 ;; 258 ;;
247 netbsd*) 259 netbsd*)
248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
249+ # a.out is quite broken and goes directly to ld 261+ # a.out is quite broken and goes directly to ld
250 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 262 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
251 wlarc= 263 wlarc=
252+ # Determine if we need to override the c++rt0 that is 264+ # Determine if we need to override the c++rt0 that is
253+ # picked up by analysing output_verbose_link_cmds 265+ # picked up by analysing output_verbose_link_cmds
254+ if test -f ${PREFIX}/lib/c++rt0/c++rt0.o.PIC; then 266+ if test -f ${PREFIX}/lib/c++rt0/c++rt0.o.PIC; then
255+ cpprt0_file="${PREFIX}/lib/c++rt0/c++rt0.o.PIC" 267+ cpprt0_file="${PREFIX}/lib/c++rt0/c++rt0.o.PIC"
256+ else 268+ else
257+ cpprt0_file= 269+ cpprt0_file=
258+ fi 270+ fi
@@ -264,229 +276,229 @@ Local pkgsrc changes: @@ -264,229 +276,229 @@ Local pkgsrc changes:
264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
265+ elif $CC -dumpspecs | grep -- '-lgcc -lc -lgcc' >/dev/null; then 277+ elif $CC -dumpspecs | grep -- '-lgcc -lc -lgcc' >/dev/null; then
266+ # Workaround some broken pre-1.5 ELF toolchains 278+ # Workaround some broken pre-1.5 ELF toolchains
267+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 279+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
268+ else 280+ else
269+ # Modern ELF works sanely as-is 281+ # Modern ELF works sanely as-is
270+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 282+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
271+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 283+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
272+ output_verbose_link_cmd='echo' 284+ output_verbose_link_cmd='echo'
273+ fi 285+ fi
274 ;; 286 ;;
275 openbsd2*) 287 openbsd2*)
276 # C++ shared libraries are fairly broken 288 # C++ shared libraries are fairly broken
277@@ -3823,6 +3868,11 @@ 289@@ -3823,6 +3867,11 @@ case $host_os in
278 # FIXME: insert proper C++ library support 290 # FIXME: insert proper C++ library support
279 _LT_AC_TAGVAR(ld_shlibs, $1)=no 291 _LT_AC_TAGVAR(ld_shlibs, $1)=no
280 ;; 292 ;;
281+ nto-qnx*) 293+ nto-qnx*)
282+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 294+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
283+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 295+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
284+ output_verbose_link_cmd='echo' 296+ output_verbose_link_cmd='echo'
285+ ;; 297+ ;;
286 *) 298 *)
287 # FIXME: insert proper C++ library support 299 # FIXME: insert proper C++ library support
288 _LT_AC_TAGVAR(ld_shlibs, $1)=no 300 _LT_AC_TAGVAR(ld_shlibs, $1)=no
289@@ -3985,6 +4035,21 @@ 301@@ -3985,6 +4034,21 @@ if AC_TRY_EVAL(ac_compile); then
290 esac 302 esac
291 done 303 done
292  304
293+ case "$host_os" in 305+ case "$host_os" in
294+ netbsd*) 306+ netbsd*)
295+ if test -n "$cpprt0_file"; then 307+ if test -n "$cpprt0_file"; then
296+ predep_objects_CXX=`eval echo $predep_objects_CXX | sed -e 's:/usr/lib/c++rt0.o:$cpprt0_file:'` 308+ predep_objects_CXX=`eval echo $predep_objects_CXX | sed -e 's:/usr/lib/c++rt0.o:$cpprt0_file:'`
297+ fi 309+ fi
298+ ;; 310+ ;;
299+ interix3*) 311+ interix3*)
300+ # Interix installs completely hosed .la files for C++, so rather than 312+ # Interix installs completely hosed .la files for C++, so rather than
301+ # hack all around it, let's just trust "g++" to DTRT. 313+ # hack all around it, let's just trust "g++" to DTRT.
302+ predep_objects_CXX= 314+ predep_objects_CXX=
303+ postdep_objects_CXX= 315+ postdep_objects_CXX=
304+ postdeps_CXX= 316+ postdeps_CXX=
305+ ;; 317+ ;;
306+ esac 318+ esac
307+ 319+
308 # Clean up. 320 # Clean up.
309 rm -f a.out a.exe 321 rm -f a.out a.exe
310 else 322 else
311@@ -5033,9 +5098,15 @@ 323@@ -5033,9 +5097,15 @@ AC_MSG_CHECKING([for $compiler option to
312 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 324 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
313 ;; 325 ;;
314 darwin* | rhapsody*) 326 darwin* | rhapsody*)
315- # PIC is the default on this platform 327- # PIC is the default on this platform
316+ # PIC is the default on this platform, and static linking of 328+ # PIC is the default on this platform, and static linking of
317+ # binaries generally doesn't work 329+ # binaries generally doesn't work
318 # Common symbols not allowed in MH_DYLIB files 330 # Common symbols not allowed in MH_DYLIB files
319 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 331 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
320+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='' 332+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=''
321+ ;; 333+ ;;
322+ *mint*) 334+ *mint*)
323+ # FreeMiNT does not support shared libraries at all 335+ # FreeMiNT does not support shared libraries at all
324+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 336+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
325 ;; 337 ;;
326 *djgpp*) 338 *djgpp*)
327 # DJGPP does not support shared libraries at all 339 # DJGPP does not support shared libraries at all
328@@ -5061,6 +5132,10 @@ 340@@ -5061,6 +5131,10 @@ AC_MSG_CHECKING([for $compiler option to
329 ;; 341 ;;
330 esac 342 esac
331 ;; 343 ;;
332+ interix3*) 344+ interix3*)
333+ # Interix 3.0-3.5 -fPIC option generates borked code. 345+ # Interix 3.0-3.5 -fPIC option generates borked code.
334+ # (Instead, shlibs are relocated at runtime.) 346+ # (Instead, shlibs are relocated at runtime.)
335+ ;; 347+ ;;
336 *) 348 *)
337 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 349 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
338 ;; 350 ;;
339@@ -5107,6 +5182,9 @@ 351@@ -5107,6 +5181,9 @@ AC_MSG_CHECKING([for $compiler option to
340 ;; 352 ;;
341 esac 353 esac
342 ;; 354 ;;
343+ mint*) 355+ mint*)
344+ # FreeMiNT uses GNU C++ 356+ # FreeMiNT uses GNU C++
345+ ;; 357+ ;;
346 freebsd* | dragonfly*) 358 freebsd* | dragonfly*)
347 # FreeBSD uses GNU C++ 359 # FreeBSD uses GNU C++
348 ;; 360 ;;
349@@ -5139,6 +5217,8 @@ 361@@ -5139,6 +5216,8 @@ AC_MSG_CHECKING([for $compiler option to
350 # This is c89, which is MS Visual C++ (no shared libs) 362 # This is c89, which is MS Visual C++ (no shared libs)
351 # Anyone wants to do a port? 363 # Anyone wants to do a port?
352 ;; 364 ;;
353+ interix3*) 365+ interix3*)
354+ ;; 366+ ;;
355 irix5* | irix6* | nonstopux*) 367 irix5* | irix6* | nonstopux*)
356 case $cc_basename in 368 case $cc_basename in
357 CC*) 369 CC*)
358@@ -5278,6 +5358,8 @@ 370@@ -5278,6 +5357,8 @@ AC_MSG_CHECKING([for $compiler option to
359 ;; 371 ;;
360 vxworks*) 372 vxworks*)
361 ;; 373 ;;
362+ nto-qnx*) 374+ nto-qnx*)
363+ ;; 375+ ;;
364 *) 376 *)
365 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 377 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
366 ;; 378 ;;
367@@ -5319,9 +5401,11 @@ 379@@ -5319,9 +5400,11 @@ AC_MSG_CHECKING([for $compiler option to
368 ;; 380 ;;
369  381
370 darwin* | rhapsody*) 382 darwin* | rhapsody*)
371- # PIC is the default on this platform 383- # PIC is the default on this platform
372+ # PIC is the default on this platform, and static linking of 384+ # PIC is the default on this platform, and static linking of
373+ # binaries generally doesn't work 385+ # binaries generally doesn't work
374 # Common symbols not allowed in MH_DYLIB files 386 # Common symbols not allowed in MH_DYLIB files
375 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 387 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
376+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='' 388+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=''
377 ;; 389 ;;
378  390
379 interix[[3-9]]*) 391 interix[[3-9]]*)
380@@ -5329,6 +5413,13 @@ 392@@ -5329,6 +5412,13 @@ AC_MSG_CHECKING([for $compiler option to
381 # Instead, we relocate shared libraries at runtime. 393 # Instead, we relocate shared libraries at runtime.
382 ;; 394 ;;
383  395
384+ mint*) 396+ mint*)
385+ # Just because we use GCC doesn't mean we suddenly get shared libraries 397+ # Just because we use GCC doesn't mean we suddenly get shared libraries
386+ # on systems that don't support them. 398+ # on systems that don't support them.
387+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 399+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
388+ enable_shared=no 400+ enable_shared=no
389+ ;; 401+ ;;
390+ 402+
391 msdosdjgpp*) 403 msdosdjgpp*)
392 # Just because we use GCC doesn't mean we suddenly get shared libraries 404 # Just because we use GCC doesn't mean we suddenly get shared libraries
393 # on systems that don't support them. 405 # on systems that don't support them.
394@@ -5355,6 +5446,11 @@ 406@@ -5355,6 +5445,11 @@ AC_MSG_CHECKING([for $compiler option to
395 esac 407 esac
396 ;; 408 ;;
397  409
398+ interix3*) 410+ interix3*)
399+ # Interix 3.0-3.5 -fPIC option generates borked code. 411+ # Interix 3.0-3.5 -fPIC option generates borked code.
400+ # (Instead, shlibs are relocated at runtime.) 412+ # (Instead, shlibs are relocated at runtime.)
401+ ;; 413+ ;;
402+ 414+
403 *) 415 *)
404 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 416 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
405 ;; 417 ;;
406@@ -5510,6 +5606,10 @@ 418@@ -5510,6 +5605,10 @@ AC_MSG_CHECKING([for $compiler option to
407 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 419 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
408 ;; 420 ;;
409  421
410+ nto-qnx*) 422+ nto-qnx*)
411+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 423+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
412+ ;; 424+ ;;
413+ 425+
414 *) 426 *)
415 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 427 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
416 ;; 428 ;;
417@@ -5534,6 +5634,9 @@ 429@@ -5534,6 +5633,9 @@ if test -n "$_LT_AC_TAGVAR(lt_prog_compi
418 fi 430 fi
419 case $host_os in 431 case $host_os in
420 # For platforms which do not support PIC, -DPIC is meaningless: 432 # For platforms which do not support PIC, -DPIC is meaningless:
421+ mint*) 433+ mint*)
422+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 434+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
423+ ;; 435+ ;;
424 *djgpp*) 436 *djgpp*)
425 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 437 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
426 ;; 438 ;;
427@@ -5791,6 +5894,17 @@ 439@@ -5791,6 +5893,17 @@ EOF
428 fi 440 fi
429 ;; 441 ;;
430  442
431+ interix3*) 443+ interix3*)
432+ # Oy, what a hack. 444+ # Oy, what a hack.
433+ # Because shlibs are not compiled -fPIC due to broken code, we must 445+ # Because shlibs are not compiled -fPIC due to broken code, we must
434+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 446+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
435+ # all libraries, leading to runtime relocations -- slow and very 447+ # all libraries, leading to runtime relocations -- slow and very
436+ # memory consuming. To do this, we pick a random 256KB-aligned 448+ # memory consuming. To do this, we pick a random 256KB-aligned
437+ # start address between 0x50000000 and 0x6ffc0000 at link time. 449+ # start address between 0x50000000 and 0x6ffc0000 at link time.
438+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 450+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
439+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 451+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
440+ ;; 452+ ;;
441+ 453+
442 netbsd*) 454 netbsd*)
443 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
444 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 456 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
445@@ -5856,6 +5970,11 @@ 457@@ -5856,6 +5969,11 @@ _LT_EOF
446 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 458 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
447 ;; 459 ;;
448  460
449+ nto-qnx*) 461+ nto-qnx*)
450+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 462+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
451+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 463+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
452+ ;; 464+ ;;
453+ 465+
454 *) 466 *)
455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 467 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
456 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 468 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
457@@ -6210,6 +6329,21 @@ 469@@ -6210,6 +6328,21 @@ _LT_EOF
458 fi 470 fi
459 ;; 471 ;;
460  472
461+ interix3*) 473+ interix3*)
462+ # Oy, what a hack. 474+ # Oy, what a hack.
463+ # Because shlibs are not compiled -fPIC due to broken code, we must 475+ # Because shlibs are not compiled -fPIC due to broken code, we must
464+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 476+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
465+ # all libraries, leading to runtime relocations -- slow and very 477+ # all libraries, leading to runtime relocations -- slow and very
466+ # memory consuming. To do this, we pick a random 256KB-aligned 478+ # memory consuming. To do this, we pick a random 256KB-aligned
467+ # start address between 0x50000000 and 0x6ffc0000 at link time. 479+ # start address between 0x50000000 and 0x6ffc0000 at link time.
468+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 480+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
469+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 481+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
470+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 482+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
471+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes 483+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
472+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-h,$libdir' 484+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-h,$libdir'
473+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 485+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
474+ ;; 486+ ;;
475+ 487+
476 irix5* | irix6* | nonstopux*) 488 irix5* | irix6* | nonstopux*)
477 if test "$GCC" = yes; then 489 if test "$GCC" = yes; then
478 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 490 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
479@@ -6435,6 +6569,13 @@ 491@@ -6435,6 +6568,13 @@ _LT_EOF
480 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 492 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
481 ;; 493 ;;
482  494
483+ nto-qnx*) 495+ nto-qnx*)
484+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' 496+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
485+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 497+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
486+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes 498+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
487+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 499+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
488+ ;; 500+ ;;
489+ 501+
490 *) 502 *)
491 _LT_AC_TAGVAR(ld_shlibs, $1)=no 503 _LT_AC_TAGVAR(ld_shlibs, $1)=no
492 ;; 504 ;;

cvs diff -r1.61 -r1.62 pkgsrc/devel/libtool/patches/Attic/patch-ab (expand / switch to unified diff)

--- pkgsrc/devel/libtool/patches/Attic/patch-ab 2008/11/19 01:26:52 1.61
+++ pkgsrc/devel/libtool/patches/Attic/patch-ab 2009/03/23 23:03:59 1.62
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1$NetBSD: patch-ab,v 1.61 2008/11/19 01:26:52 chuck Exp $ 1$NetBSD: patch-ab,v 1.62 2009/03/23 23:03:59 joerg Exp $
2 2
3--- configure.orig 2008-11-18 16:39:10.000000000 -0500 3--- configure.orig 2008-02-01 17:38:42.000000000 +0100
4+++ configure 4+++ configure
5@@ -630,11 +630,11 @@ else 5@@ -630,11 +630,11 @@ else
6  6
7 if test "X$echo" = Xecho; then 7 if test "X$echo" = Xecho; then
8 # We didn't find a better echo, so look for alternatives. 8 # We didn't find a better echo, so look for alternatives.
9- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 9- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
10+ if test "X`(print -r - '\t') 2>/dev/null`" = 'X\t' && 10+ if test "X`(print -r - '\t') 2>/dev/null`" = 'X\t' &&
11 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 11 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
12 test "X$echo_testing_string" = "X$echo_test_string"; then 12 test "X$echo_testing_string" = "X$echo_test_string"; then
13 # This shell has a builtin print -r that does the trick. 13 # This shell has a builtin print -r that does the trick.
14- echo='print -r' 14- echo='print -r'
15+ echo='print -r -' 15+ echo='print -r -'
16 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 16 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
@@ -183,62 +183,73 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2 @@ -183,62 +183,73 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2
183+ ;; 183+ ;;
184+ 184+
185 *) 185 *)
186 ld_shlibs=no 186 ld_shlibs=no
187 ;; 187 ;;
188@@ -9650,6 +9702,7 @@ beos*) 188@@ -9650,6 +9702,7 @@ beos*)
189 bsdi[45]*) 189 bsdi[45]*)
190 version_type=linux 190 version_type=linux
191 need_version=no 191 need_version=no
192+ need_lib_prefix=no 192+ need_lib_prefix=no
193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
194 soname_spec='${libname}${release}${shared_ext}$major' 194 soname_spec='${libname}${release}${shared_ext}$major'
195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
196@@ -9748,7 +9801,7 @@ freebsd1*) 196@@ -9748,9 +9801,7 @@ freebsd1*)
197 dynamic_linker=no 197 dynamic_linker=no
198 ;; 198 ;;
199  199
200-freebsd* | dragonfly*) 200-freebsd* | dragonfly*)
 201- # DragonFly does not have aout. When/if they implement a new
 202- # versioning mechanism, adjust this.
201+freebsd*) 203+freebsd*)
202 # DragonFly does not have aout. When/if they implement a new 
203 # versioning mechanism, adjust this. 
204 if test -x /usr/bin/objformat; then 204 if test -x /usr/bin/objformat; then
205@@ -9762,7 +9815,7 @@ freebsd* | dragonfly*) 205 objformat=`/usr/bin/objformat`
 206 else
 207@@ -9762,7 +9813,7 @@ freebsd* | dragonfly*)
206 version_type=freebsd-$objformat 208 version_type=freebsd-$objformat
207 case $version_type in 209 case $version_type in
208 freebsd-elf*) 210 freebsd-elf*)
209- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 211- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
210+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 212+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
211 need_version=no 213 need_version=no
212 need_lib_prefix=no 214 need_lib_prefix=no
213 ;; 215 ;;
214@@ -9792,6 +9845,16 @@ freebsd* | dragonfly*) 216@@ -9785,13 +9836,24 @@ freebsd* | dragonfly*)
 217 shlibpath_overrides_runpath=no
 218 hardcode_into_libs=yes
 219 ;;
 220- *) # from 4.6 on, and DragonFly
 221+ *) # from 4.6 on
 222 shlibpath_overrides_runpath=yes
 223 hardcode_into_libs=yes
 224 ;;
215 esac 225 esac
216 ;; 226 ;;
217  227
218+dragonfly*) 228+dragonfly*)
219+ version_type=linux # XXX tv this should be =linux; current selection has problems 229+ version_type=linux
220+ need_version=no 230+ need_version=no
221+ need_lib_prefix=no 231+ need_lib_prefix=no
222+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 232+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 233+ soname_spec='${libname}${release}${shared_ext}$major'
223+ shlibpath_var=LD_LIBRARY_PATH 234+ shlibpath_var=LD_LIBRARY_PATH
224+ shlibpath_overrides_runpath=no 235+ shlibpath_overrides_runpath=no
225+ hardcode_into_libs=yes 236+ hardcode_into_libs=yes
226+ ;; 237+ ;;
227+ 238+
228 gnu*) 239 gnu*)
229 version_type=linux 240 version_type=linux
230 need_lib_prefix=no 241 need_lib_prefix=no
231@@ -9860,15 +9923,22 @@ interix[3-9]*) 242@@ -9860,15 +9922,22 @@ interix[3-9]*)
232 hardcode_into_libs=yes 243 hardcode_into_libs=yes
233 ;; 244 ;;
234  245
235+interix3*) 246+interix3*)
236+ version_type=linux 247+ version_type=linux
237+ need_lib_prefix=no 248+ need_lib_prefix=no
238+ need_version=no 249+ need_version=no
239+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 250+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
240+ soname_spec='${libname}${release}${shared_ext}$major' 251+ soname_spec='${libname}${release}${shared_ext}$major'
241+ dynamic_linker='Interix 3.x ld.so' 252+ dynamic_linker='Interix 3.x ld.so'
242+ shlibpath_var=LD_LIBRARY_PATH 253+ shlibpath_var=LD_LIBRARY_PATH
243+ shlibpath_overrides_runpath=yes 254+ shlibpath_overrides_runpath=yes
244+ hardcode_into_libs=yes 255+ hardcode_into_libs=yes
@@ -247,106 +258,106 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2 @@ -247,106 +258,106 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2
247 irix5* | irix6* | nonstopux*) 258 irix5* | irix6* | nonstopux*)
248 case $host_os in 259 case $host_os in
249 nonstopux*) version_type=nonstopux ;; 260 nonstopux*) version_type=nonstopux ;;
250- *) 261- *)
251- if test "$lt_cv_prog_gnu_ld" = yes; then 262- if test "$lt_cv_prog_gnu_ld" = yes; then
252- version_type=linux 263- version_type=linux
253- else 264- else
254- version_type=irix 265- version_type=irix
255- fi ;; 266- fi ;;
256+ *) version_type=irix ;; 267+ *) version_type=irix ;;
257 esac 268 esac
258 need_lib_prefix=no 269 need_lib_prefix=no
259 need_version=no 270 need_version=no
260@@ -9933,11 +10003,11 @@ linux* | k*bsd*-gnu) 271@@ -9933,11 +10002,11 @@ linux* | k*bsd*-gnu)
261 ;; 272 ;;
262  273
263 netbsd*) 274 netbsd*)
264- version_type=sunos 275- version_type=sunos
265+ version_type=linux 276+ version_type=linux
266 need_lib_prefix=no 277 need_lib_prefix=no
267 need_version=no 278 need_version=no
268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
269- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 280- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
270+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2' 281+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
272 dynamic_linker='NetBSD (a.out) ld.so' 283 dynamic_linker='NetBSD (a.out) ld.so'
273 else 284 else
274@@ -9962,13 +10032,14 @@ nto-qnx*) 285@@ -9962,13 +10031,14 @@ nto-qnx*)
275 need_lib_prefix=no 286 need_lib_prefix=no
276 need_version=no 287 need_version=no
277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
278+ dynamic_linker='QNX libc.so' 289+ dynamic_linker='QNX libc.so'
279 soname_spec='${libname}${release}${shared_ext}$major' 290 soname_spec='${libname}${release}${shared_ext}$major'
280 shlibpath_var=LD_LIBRARY_PATH 291 shlibpath_var=LD_LIBRARY_PATH
281 shlibpath_overrides_runpath=yes 292 shlibpath_overrides_runpath=yes
282 ;; 293 ;;
283  294
284 openbsd*) 295 openbsd*)
285- version_type=sunos 296- version_type=sunos
286+ version_type=linux 297+ version_type=linux
287 sys_lib_dlsearch_path_spec="/usr/lib" 298 sys_lib_dlsearch_path_spec="/usr/lib"
288 need_lib_prefix=no 299 need_lib_prefix=no
289 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 300 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
290@@ -9976,7 +10047,7 @@ openbsd*) 301@@ -9976,7 +10046,7 @@ openbsd*)
291 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 302 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
292 *) need_version=no ;; 303 *) need_version=no ;;
293 esac 304 esac
294- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 305- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
295+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 306+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
297 shlibpath_var=LD_LIBRARY_PATH 308 shlibpath_var=LD_LIBRARY_PATH
298 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
299@@ -11566,9 +11637,7 @@ echo "$as_me: error: tag name \"$tagname 310@@ -11566,9 +11636,7 @@ echo "$as_me: error: tag name \"$tagname
300  311
301 case $tagname in 312 case $tagname in
302 CXX) 313 CXX)
303- if test -n "$CXX" && ( test "X$CXX" != "Xno" && 314- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
304- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 315- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
305- (test "X$CXX" != "Xg++"))) ; then 316- (test "X$CXX" != "Xg++"))) ; then
306+ if test -n "$CXX" && test "X$CXX" != "Xno" ; then 317+ if test -n "$CXX" && test "X$CXX" != "Xno" ; then
307 ac_ext=cpp 318 ac_ext=cpp
308 ac_cpp='$CXXCPP $CPPFLAGS' 319 ac_cpp='$CXXCPP $CPPFLAGS'
309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
310@@ -11674,7 +11743,10 @@ for cc_temp in $compiler""; do 321@@ -11674,7 +11742,10 @@ for cc_temp in $compiler""; do
311 *) break;; 322 *) break;;
312 esac 323 esac
313 done 324 done
314-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 325-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
315+# Return the actual command name, not our pkgsrc wrapper name because several 326+# Return the actual command name, not our pkgsrc wrapper name because several
316+# decisions are made only based on compiler names 327+# decisions are made only based on compiler names
317+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 328+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
318+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 329+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
319  330
320  331
321 # We don't want -fno-exception wen compiling C++ code, so set the 332 # We don't want -fno-exception wen compiling C++ code, so set the
322@@ -12309,6 +12381,16 @@ if test -z "$aix_libpath"; then aix_libp 333@@ -12309,6 +12380,16 @@ if test -z "$aix_libpath"; then aix_libp
323 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 334 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
324 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 335 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
325 ;; 336 ;;
326+ interix3*) 337+ interix3*)
327+ # Oy, what a hack. 338+ # Oy, what a hack.
328+ # Because shlibs are not compiled -fPIC due to broken code, we must 339+ # Because shlibs are not compiled -fPIC due to broken code, we must
329+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 340+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
330+ # all libraries, leading to runtime relocations -- slow and very 341+ # all libraries, leading to runtime relocations -- slow and very
331+ # memory consuming. To do this, we pick a random 256KB-aligned 342+ # memory consuming. To do this, we pick a random 256KB-aligned
332+ # start address between 0x50000000 and 0x6ffc0000 at link time. 343+ # start address between 0x50000000 and 0x6ffc0000 at link time.
333+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 344+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
334+ archive_expsym_cmds_CXX='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 345+ archive_expsym_cmds_CXX='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
335+ ;; 346+ ;;
336 irix5* | irix6*) 347 irix5* | irix6*)
337 case $cc_basename in 348 case $cc_basename in
338 CC*) 349 CC*)
339@@ -12462,14 +12544,29 @@ if test -z "$aix_libpath"; then aix_libp 350@@ -12462,14 +12543,29 @@ if test -z "$aix_libpath"; then aix_libp
340 ;; 351 ;;
341 netbsd*) 352 netbsd*)
342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
343+ # a.out is quite broken and goes directly to ld 354+ # a.out is quite broken and goes directly to ld
344 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 355 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
345 wlarc= 356 wlarc=
346+ # Determine if we need to override the c++rt0 that is 357+ # Determine if we need to override the c++rt0 that is
347+ # picked up by analysing output_verbose_link_cmds 358+ # picked up by analysing output_verbose_link_cmds
348+ if test -f ${PREFIX}/lib/c++rt0/c++rt0.o.PIC; then 359+ if test -f ${PREFIX}/lib/c++rt0/c++rt0.o.PIC; then
349+ cpprt0_file="${PREFIX}/lib/c++rt0/c++rt0.o.PIC" 360+ cpprt0_file="${PREFIX}/lib/c++rt0/c++rt0.o.PIC"
350+ else 361+ else
351+ cpprt0_file= 362+ cpprt0_file=
352+ fi 363+ fi
@@ -358,146 +369,157 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2 @@ -358,146 +369,157 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2
358+ # Workaround some broken pre-1.5 ELF toolchains 369+ # Workaround some broken pre-1.5 ELF toolchains
359+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 370+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
360+ else 371+ else
361+ # Modern ELF works sanely as-is 372+ # Modern ELF works sanely as-is
362+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 373+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
363+ archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 374+ archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
364+ output_verbose_link_cmd='echo' 375+ output_verbose_link_cmd='echo'
365 fi 376 fi
366- # Workaround some broken pre-1.5 toolchains 377- # Workaround some broken pre-1.5 toolchains
367- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 378- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
368 ;; 379 ;;
369 openbsd2*) 380 openbsd2*)
370 # C++ shared libraries are fairly broken 381 # C++ shared libraries are fairly broken
371@@ -12782,6 +12879,11 @@ if test -z "$aix_libpath"; then aix_libp 382@@ -12782,6 +12878,11 @@ if test -z "$aix_libpath"; then aix_libp
372 # FIXME: insert proper C++ library support 383 # FIXME: insert proper C++ library support
373 ld_shlibs_CXX=no 384 ld_shlibs_CXX=no
374 ;; 385 ;;
375+ nto-qnx*) 386+ nto-qnx*)
376+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 387+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
377+ archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 388+ archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
378+ output_verbose_link_cmd='echo' 389+ output_verbose_link_cmd='echo'
379+ ;; 390+ ;;
380 *) 391 *)
381 # FIXME: insert proper C++ library support 392 # FIXME: insert proper C++ library support
382 ld_shlibs_CXX=no 393 ld_shlibs_CXX=no
383@@ -12891,6 +12993,21 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c 394@@ -12891,6 +12992,21 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
384 esac 395 esac
385 done 396 done
386  397
387+ case "$host_os" in 398+ case "$host_os" in
388+ netbsd*) 399+ netbsd*)
389+ if test -n "$cpprt0_file"; then 400+ if test -n "$cpprt0_file"; then
390+ predep_objects_CXX=`eval echo $predep_objects_CXX | sed -e 's:/usr/lib/c++rt0.o:$cpprt0_file:'` 401+ predep_objects_CXX=`eval echo $predep_objects_CXX | sed -e 's:/usr/lib/c++rt0.o:$cpprt0_file:'`
391+ fi 402+ fi
392+ ;; 403+ ;;
393+ interix3*) 404+ interix3*)
394+ # Interix installs completely hosed .la files for C++, so rather than 405+ # Interix installs completely hosed .la files for C++, so rather than
395+ # hack all around it, let's just trust "g++" to DTRT. 406+ # hack all around it, let's just trust "g++" to DTRT.
396+ predep_objects_CXX= 407+ predep_objects_CXX=
397+ postdep_objects_CXX= 408+ postdep_objects_CXX=
398+ postdeps_CXX= 409+ postdeps_CXX=
399+ ;; 410+ ;;
400+ esac 411+ esac
401+ 412+
402 # Clean up. 413 # Clean up.
403 rm -f a.out a.exe 414 rm -f a.out a.exe
404 else 415 else
405@@ -13000,9 +13117,11 @@ echo $ECHO_N "checking for $compiler opt 416@@ -13000,9 +13116,11 @@ echo $ECHO_N "checking for $compiler opt
406 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 417 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
407 ;; 418 ;;
408 darwin* | rhapsody*) 419 darwin* | rhapsody*)
409- # PIC is the default on this platform 420- # PIC is the default on this platform
410+ # PIC is the default on this platform, and static linking of 421+ # PIC is the default on this platform, and static linking of
411+ # binaries generally doesn't work 422+ # binaries generally doesn't work
412 # Common symbols not allowed in MH_DYLIB files 423 # Common symbols not allowed in MH_DYLIB files
413 lt_prog_compiler_pic_CXX='-fno-common' 424 lt_prog_compiler_pic_CXX='-fno-common'
414+ lt_prog_compiler_static_CXX='' 425+ lt_prog_compiler_static_CXX=''
415 ;; 426 ;;
416 *djgpp*) 427 *djgpp*)
417 # DJGPP does not support shared libraries at all 428 # DJGPP does not support shared libraries at all
418@@ -13028,6 +13147,10 @@ echo $ECHO_N "checking for $compiler opt 429@@ -13028,6 +13146,10 @@ echo $ECHO_N "checking for $compiler opt
419 ;; 430 ;;
420 esac 431 esac
421 ;; 432 ;;
422+ interix3*) 433+ interix3*)
423+ # Interix 3.0-3.5 -fPIC option generates borked code. 434+ # Interix 3.0-3.5 -fPIC option generates borked code.
424+ # (Instead, shlibs are relocated at runtime.) 435+ # (Instead, shlibs are relocated at runtime.)
425+ ;; 436+ ;;
426 *) 437 *)
427 lt_prog_compiler_pic_CXX='-fPIC' 438 lt_prog_compiler_pic_CXX='-fPIC'
428 ;; 439 ;;
429@@ -13106,6 +13229,8 @@ echo $ECHO_N "checking for $compiler opt 440@@ -13106,6 +13228,8 @@ echo $ECHO_N "checking for $compiler opt
430 # This is c89, which is MS Visual C++ (no shared libs) 441 # This is c89, which is MS Visual C++ (no shared libs)
431 # Anyone wants to do a port? 442 # Anyone wants to do a port?
432 ;; 443 ;;
433+ interix3*) 444+ interix3*)
434+ ;; 445+ ;;
435 irix5* | irix6* | nonstopux*) 446 irix5* | irix6* | nonstopux*)
436 case $cc_basename in 447 case $cc_basename in
437 CC*) 448 CC*)
438@@ -13245,6 +13370,8 @@ echo $ECHO_N "checking for $compiler opt 449@@ -13245,6 +13369,8 @@ echo $ECHO_N "checking for $compiler opt
439 ;; 450 ;;
440 vxworks*) 451 vxworks*)
441 ;; 452 ;;
442+ nto-qnx*) 453+ nto-qnx*)
443+ ;; 454+ ;;
444 *) 455 *)
445 lt_prog_compiler_can_build_shared_CXX=no 456 lt_prog_compiler_can_build_shared_CXX=no
446 ;; 457 ;;
447@@ -13618,6 +13745,7 @@ beos*) 458@@ -13618,6 +13744,7 @@ beos*)
448 bsdi[45]*) 459 bsdi[45]*)
449 version_type=linux 460 version_type=linux
450 need_version=no 461 need_version=no
451+ need_lib_prefix=no 462+ need_lib_prefix=no
452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
453 soname_spec='${libname}${release}${shared_ext}$major' 464 soname_spec='${libname}${release}${shared_ext}$major'
454 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 465 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
455@@ -13715,7 +13843,7 @@ freebsd1*) 466@@ -13715,9 +13842,7 @@ freebsd1*)
456 dynamic_linker=no 467 dynamic_linker=no
457 ;; 468 ;;
458  469
459-freebsd* | dragonfly*) 470-freebsd* | dragonfly*)
 471- # DragonFly does not have aout. When/if they implement a new
 472- # versioning mechanism, adjust this.
460+freebsd*) 473+freebsd*)
461 # DragonFly does not have aout. When/if they implement a new 
462 # versioning mechanism, adjust this. 
463 if test -x /usr/bin/objformat; then 474 if test -x /usr/bin/objformat; then
464@@ -13729,7 +13857,7 @@ freebsd* | dragonfly*) 475 objformat=`/usr/bin/objformat`
 476 else
 477@@ -13729,7 +13854,7 @@ freebsd* | dragonfly*)
465 version_type=freebsd-$objformat 478 version_type=freebsd-$objformat
466 case $version_type in 479 case $version_type in
467 freebsd-elf*) 480 freebsd-elf*)
468- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 481- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
469+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 482+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
470 need_version=no 483 need_version=no
471 need_lib_prefix=no 484 need_lib_prefix=no
472 ;; 485 ;;
473@@ -13759,6 +13887,16 @@ freebsd* | dragonfly*) 486@@ -13752,13 +13877,24 @@ freebsd* | dragonfly*)
 487 shlibpath_overrides_runpath=no
 488 hardcode_into_libs=yes
 489 ;;
 490- *) # from 4.6 on, and DragonFly
 491+ *) # from 4.6 on
 492 shlibpath_overrides_runpath=yes
 493 hardcode_into_libs=yes
 494 ;;
474 esac 495 esac
475 ;; 496 ;;
476  497
477+dragonfly*) 498+dragonfly*)
478+ version_type=linux # XXX tv this should be =linux; current selection has problems 499+ version_type=linux
479+ need_version=no 500+ need_version=no
480+ need_lib_prefix=no 501+ need_lib_prefix=no
481+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 502+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 503+ soname_spec='${libname}${release}${shared_ext}$major'
482+ shlibpath_var=LD_LIBRARY_PATH 504+ shlibpath_var=LD_LIBRARY_PATH
483+ shlibpath_overrides_runpath=no 505+ shlibpath_overrides_runpath=no
484+ hardcode_into_libs=yes 506+ hardcode_into_libs=yes
485+ ;; 507+ ;;
486+ 508+
487 gnu*) 509 gnu*)
488 version_type=linux 510 version_type=linux
489 need_lib_prefix=no 511 need_lib_prefix=no
490@@ -13827,15 +13965,22 @@ interix[3-9]*) 512@@ -13827,15 +13963,22 @@ interix[3-9]*)
491 hardcode_into_libs=yes 513 hardcode_into_libs=yes
492 ;; 514 ;;
493  515
494+interix3*) 516+interix3*)
495+ version_type=linux 517+ version_type=linux
496+ need_lib_prefix=no 518+ need_lib_prefix=no
497+ need_version=no 519+ need_version=no
498+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 520+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
499+ soname_spec='${libname}${release}${shared_ext}$major' 521+ soname_spec='${libname}${release}${shared_ext}$major'
500+ dynamic_linker='Interix 3.x ld.so' 522+ dynamic_linker='Interix 3.x ld.so'
501+ shlibpath_var=LD_LIBRARY_PATH 523+ shlibpath_var=LD_LIBRARY_PATH
502+ shlibpath_overrides_runpath=yes 524+ shlibpath_overrides_runpath=yes
503+ hardcode_into_libs=yes 525+ hardcode_into_libs=yes
@@ -506,235 +528,246 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2 @@ -506,235 +528,246 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2
506 irix5* | irix6* | nonstopux*) 528 irix5* | irix6* | nonstopux*)
507 case $host_os in 529 case $host_os in
508 nonstopux*) version_type=nonstopux ;; 530 nonstopux*) version_type=nonstopux ;;
509- *) 531- *)
510- if test "$lt_cv_prog_gnu_ld" = yes; then 532- if test "$lt_cv_prog_gnu_ld" = yes; then
511- version_type=linux 533- version_type=linux
512- else 534- else
513- version_type=irix 535- version_type=irix
514- fi ;; 536- fi ;;
515+ *) version_type=irix ;; 537+ *) version_type=irix ;;
516 esac 538 esac
517 need_lib_prefix=no 539 need_lib_prefix=no
518 need_version=no 540 need_version=no
519@@ -13900,11 +14045,11 @@ linux* | k*bsd*-gnu) 541@@ -13900,11 +14043,11 @@ linux* | k*bsd*-gnu)
520 ;; 542 ;;
521  543
522 netbsd*) 544 netbsd*)
523- version_type=sunos 545- version_type=sunos
524+ version_type=linux 546+ version_type=linux
525 need_lib_prefix=no 547 need_lib_prefix=no
526 need_version=no 548 need_version=no
527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 549 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
528- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 550- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
529+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2' 551+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
531 dynamic_linker='NetBSD (a.out) ld.so' 553 dynamic_linker='NetBSD (a.out) ld.so'
532 else 554 else
533@@ -13929,13 +14074,14 @@ nto-qnx*) 555@@ -13929,13 +14072,14 @@ nto-qnx*)
534 need_lib_prefix=no 556 need_lib_prefix=no
535 need_version=no 557 need_version=no
536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
537+ dynamic_linker='QNX libc.so' 559+ dynamic_linker='QNX libc.so'
538 soname_spec='${libname}${release}${shared_ext}$major' 560 soname_spec='${libname}${release}${shared_ext}$major'
539 shlibpath_var=LD_LIBRARY_PATH 561 shlibpath_var=LD_LIBRARY_PATH
540 shlibpath_overrides_runpath=yes 562 shlibpath_overrides_runpath=yes
541 ;; 563 ;;
542  564
543 openbsd*) 565 openbsd*)
544- version_type=sunos 566- version_type=sunos
545+ version_type=linux 567+ version_type=linux
546 sys_lib_dlsearch_path_spec="/usr/lib" 568 sys_lib_dlsearch_path_spec="/usr/lib"
547 need_lib_prefix=no 569 need_lib_prefix=no
548 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 570 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
549@@ -13943,7 +14089,7 @@ openbsd*) 571@@ -13943,7 +14087,7 @@ openbsd*)
550 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 572 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
551 *) need_version=no ;; 573 *) need_version=no ;;
552 esac 574 esac
553- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 575- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
554+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 576+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
556 shlibpath_var=LD_LIBRARY_PATH 578 shlibpath_var=LD_LIBRARY_PATH
557 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
558@@ -14661,7 +14807,10 @@ for cc_temp in $compiler""; do 580@@ -14661,7 +14805,10 @@ for cc_temp in $compiler""; do
559 *) break;; 581 *) break;;
560 esac 582 esac
561 done 583 done
562-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 584-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
563+# Return the actual command name, not our pkgsrc wrapper name because several 585+# Return the actual command name, not our pkgsrc wrapper name because several
564+# decisions are made only based on compiler names 586+# decisions are made only based on compiler names
565+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 587+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
566+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 588+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
567  589
568  590
569 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 591 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
570@@ -14742,9 +14891,11 @@ echo $ECHO_N "checking for $compiler opt 592@@ -14742,9 +14889,11 @@ echo $ECHO_N "checking for $compiler opt
571 ;; 593 ;;
572  594
573 darwin* | rhapsody*) 595 darwin* | rhapsody*)
574- # PIC is the default on this platform 596- # PIC is the default on this platform
575+ # PIC is the default on this platform, and static linking of 597+ # PIC is the default on this platform, and static linking of
576+ # binaries generally doesn't work 598+ # binaries generally doesn't work
577 # Common symbols not allowed in MH_DYLIB files 599 # Common symbols not allowed in MH_DYLIB files
578 lt_prog_compiler_pic_F77='-fno-common' 600 lt_prog_compiler_pic_F77='-fno-common'
579+ lt_prog_compiler_static_F77='' 601+ lt_prog_compiler_static_F77=''
580 ;; 602 ;;
581  603
582 interix[3-9]*) 604 interix[3-9]*)
583@@ -14778,6 +14929,11 @@ echo $ECHO_N "checking for $compiler opt 605@@ -14778,6 +14927,11 @@ echo $ECHO_N "checking for $compiler opt
584 esac 606 esac
585 ;; 607 ;;
586  608
587+ interix3*) 609+ interix3*)
588+ # Interix 3.0-3.5 -fPIC option generates borked code. 610+ # Interix 3.0-3.5 -fPIC option generates borked code.
589+ # (Instead, shlibs are relocated at runtime.) 611+ # (Instead, shlibs are relocated at runtime.)
590+ ;; 612+ ;;
591+ 613+
592 *) 614 *)
593 lt_prog_compiler_pic_F77='-fPIC' 615 lt_prog_compiler_pic_F77='-fPIC'
594 ;; 616 ;;
595@@ -14932,6 +15088,10 @@ echo $ECHO_N "checking for $compiler opt 617@@ -14932,6 +15086,10 @@ echo $ECHO_N "checking for $compiler opt
596 lt_prog_compiler_static_F77='-Bstatic' 618 lt_prog_compiler_static_F77='-Bstatic'
597 ;; 619 ;;
598  620
599+ nto-qnx*) 621+ nto-qnx*)
600+ lt_prog_compiler_pic_F77='-fPIC' 622+ lt_prog_compiler_pic_F77='-fPIC'
601+ ;; 623+ ;;
602+ 624+
603 *) 625 *)
604 lt_prog_compiler_can_build_shared_F77=no 626 lt_prog_compiler_can_build_shared_F77=no
605 ;; 627 ;;
606@@ -15169,7 +15329,10 @@ echo $ECHO_N "checking whether the $comp 628@@ -15169,7 +15327,10 @@ echo $ECHO_N "checking whether the $comp
607 *) break;; 629 *) break;;
608 esac 630 esac
609 done 631 done
610-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 632-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
611+# Return the actual command name, not our pkgsrc wrapper name because several 633+# Return the actual command name, not our pkgsrc wrapper name because several
612+# decisions are made only based on compiler names 634+# decisions are made only based on compiler names
613+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 635+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
614+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 636+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
615  637
616 case $host_os in 638 case $host_os in
617 cygwin* | mingw* | pw32*) 639 cygwin* | mingw* | pw32*)
618@@ -15338,6 +15501,17 @@ EOF 640@@ -15338,6 +15499,17 @@ EOF
619 fi 641 fi
620 ;; 642 ;;
621  643
622+ interix3*) 644+ interix3*)
623+ # Oy, what a hack. 645+ # Oy, what a hack.
624+ # Because shlibs are not compiled -fPIC due to broken code, we must 646+ # Because shlibs are not compiled -fPIC due to broken code, we must
625+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 647+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
626+ # all libraries, leading to runtime relocations -- slow and very 648+ # all libraries, leading to runtime relocations -- slow and very
627+ # memory consuming. To do this, we pick a random 256KB-aligned 649+ # memory consuming. To do this, we pick a random 256KB-aligned
628+ # start address between 0x50000000 and 0x6ffc0000 at link time. 650+ # start address between 0x50000000 and 0x6ffc0000 at link time.
629+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 651+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
630+ archive_expsym_cmds_F77='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 652+ archive_expsym_cmds_F77='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
631+ ;; 653+ ;;
632+ 654+
633 netbsd*) 655 netbsd*)
634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
635 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 657 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
636@@ -15403,6 +15577,11 @@ _LT_EOF 658@@ -15403,6 +15575,11 @@ _LT_EOF
637 hardcode_shlibpath_var_F77=no 659 hardcode_shlibpath_var_F77=no
638 ;; 660 ;;
639  661
640+ nto-qnx*) 662+ nto-qnx*)
641+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 663+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
642+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 664+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
643+ ;; 665+ ;;
644+ 666+
645 *) 667 *)
646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 668 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
647 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
648@@ -15849,6 +16028,21 @@ if test -z "$aix_libpath"; then aix_libp 670@@ -15849,6 +16026,21 @@ if test -z "$aix_libpath"; then aix_libp
649 fi 671 fi
650 ;; 672 ;;
651  673
652+ interix3*) 674+ interix3*)
653+ # Oy, what a hack. 675+ # Oy, what a hack.
654+ # Because shlibs are not compiled -fPIC due to broken code, we must 676+ # Because shlibs are not compiled -fPIC due to broken code, we must
655+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 677+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
656+ # all libraries, leading to runtime relocations -- slow and very 678+ # all libraries, leading to runtime relocations -- slow and very
657+ # memory consuming. To do this, we pick a random 256KB-aligned 679+ # memory consuming. To do this, we pick a random 256KB-aligned
658+ # start address between 0x50000000 and 0x6ffc0000 at link time. 680+ # start address between 0x50000000 and 0x6ffc0000 at link time.
659+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 681+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
660+ archive_expsym_cmds_F77='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 682+ archive_expsym_cmds_F77='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
661+ export_dynamic_flag_spec_F77='${wl}-E' 683+ export_dynamic_flag_spec_F77='${wl}-E'
662+ hardcode_direct_F77=yes 684+ hardcode_direct_F77=yes
663+ hardcode_libdir_flag_spec_F77='${wl}-h,$libdir' 685+ hardcode_libdir_flag_spec_F77='${wl}-h,$libdir'
664+ hardcode_shlibpath_var_F77=no 686+ hardcode_shlibpath_var_F77=no
665+ ;; 687+ ;;
666+ 688+
667 irix5* | irix6* | nonstopux*) 689 irix5* | irix6* | nonstopux*)
668 if test "$GCC" = yes; then 690 if test "$GCC" = yes; then
669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 691 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
670@@ -16074,6 +16268,13 @@ if test -z "$aix_libpath"; then aix_libp 692@@ -16074,6 +16266,13 @@ if test -z "$aix_libpath"; then aix_libp
671 hardcode_shlibpath_var_F77=no 693 hardcode_shlibpath_var_F77=no
672 ;; 694 ;;
673  695
674+ nto-qnx*) 696+ nto-qnx*)
675+ archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' 697+ archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
676+ hardcode_libdir_flag_spec_F77='-R$libdir' 698+ hardcode_libdir_flag_spec_F77='-R$libdir'
677+ hardcode_direct_F77=yes 699+ hardcode_direct_F77=yes
678+ hardcode_shlibpath_var_F77=no 700+ hardcode_shlibpath_var_F77=no
679+ ;; 701+ ;;
680+ 702+
681 *) 703 *)
682 ld_shlibs_F77=no 704 ld_shlibs_F77=no
683 ;; 705 ;;
684@@ -16239,6 +16440,7 @@ beos*) 706@@ -16239,6 +16438,7 @@ beos*)
685 bsdi[45]*) 707 bsdi[45]*)
686 version_type=linux 708 version_type=linux
687 need_version=no 709 need_version=no
688+ need_lib_prefix=no 710+ need_lib_prefix=no
689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
690 soname_spec='${libname}${release}${shared_ext}$major' 712 soname_spec='${libname}${release}${shared_ext}$major'
691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 713 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
692@@ -16336,7 +16538,7 @@ freebsd1*) 714@@ -16336,9 +16536,7 @@ freebsd1*)
693 dynamic_linker=no 715 dynamic_linker=no
694 ;; 716 ;;
695  717
696-freebsd* | dragonfly*) 718-freebsd* | dragonfly*)
 719- # DragonFly does not have aout. When/if they implement a new
 720- # versioning mechanism, adjust this.
697+freebsd*) 721+freebsd*)
698 # DragonFly does not have aout. When/if they implement a new 
699 # versioning mechanism, adjust this. 
700 if test -x /usr/bin/objformat; then 722 if test -x /usr/bin/objformat; then
701@@ -16350,7 +16552,7 @@ freebsd* | dragonfly*) 723 objformat=`/usr/bin/objformat`
 724 else
 725@@ -16350,7 +16548,7 @@ freebsd* | dragonfly*)
702 version_type=freebsd-$objformat 726 version_type=freebsd-$objformat
703 case $version_type in 727 case $version_type in
704 freebsd-elf*) 728 freebsd-elf*)
705- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 729- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
706+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 730+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
707 need_version=no 731 need_version=no
708 need_lib_prefix=no 732 need_lib_prefix=no
709 ;; 733 ;;
710@@ -16380,6 +16582,16 @@ freebsd* | dragonfly*) 734@@ -16373,13 +16571,24 @@ freebsd* | dragonfly*)
 735 shlibpath_overrides_runpath=no
 736 hardcode_into_libs=yes
 737 ;;
 738- *) # from 4.6 on, and DragonFly
 739+ *) # from 4.6 on
 740 shlibpath_overrides_runpath=yes
 741 hardcode_into_libs=yes
 742 ;;
711 esac 743 esac
712 ;; 744 ;;
713  745
714+dragonfly*) 746+dragonfly*)
715+ version_type=linux # XXX tv this should be =linux; current selection has problems 747+ version_type=linux
716+ need_version=no 748+ need_version=no
717+ need_lib_prefix=no 749+ need_lib_prefix=no
718+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 750+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 751+ soname_spec='${libname}${release}${shared_ext}$major'
719+ shlibpath_var=LD_LIBRARY_PATH 752+ shlibpath_var=LD_LIBRARY_PATH
720+ shlibpath_overrides_runpath=no 753+ shlibpath_overrides_runpath=no
721+ hardcode_into_libs=yes 754+ hardcode_into_libs=yes
722+ ;; 755+ ;;
723+ 756+
724 gnu*) 757 gnu*)
725 version_type=linux 758 version_type=linux
726 need_lib_prefix=no 759 need_lib_prefix=no
727@@ -16448,15 +16660,22 @@ interix[3-9]*) 760@@ -16448,15 +16657,22 @@ interix[3-9]*)
728 hardcode_into_libs=yes 761 hardcode_into_libs=yes
729 ;; 762 ;;
730  763
731+interix3*) 764+interix3*)
732+ version_type=linux 765+ version_type=linux
733+ need_lib_prefix=no 766+ need_lib_prefix=no
734+ need_version=no 767+ need_version=no
735+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 768+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
736+ soname_spec='${libname}${release}${shared_ext}$major' 769+ soname_spec='${libname}${release}${shared_ext}$major'
737+ dynamic_linker='Interix 3.x ld.so' 770+ dynamic_linker='Interix 3.x ld.so'
738+ shlibpath_var=LD_LIBRARY_PATH 771+ shlibpath_var=LD_LIBRARY_PATH
739+ shlibpath_overrides_runpath=yes 772+ shlibpath_overrides_runpath=yes
740+ hardcode_into_libs=yes 773+ hardcode_into_libs=yes
@@ -743,235 +776,246 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2 @@ -743,235 +776,246 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2
743 irix5* | irix6* | nonstopux*) 776 irix5* | irix6* | nonstopux*)
744 case $host_os in 777 case $host_os in
745 nonstopux*) version_type=nonstopux ;; 778 nonstopux*) version_type=nonstopux ;;
746- *) 779- *)
747- if test "$lt_cv_prog_gnu_ld" = yes; then 780- if test "$lt_cv_prog_gnu_ld" = yes; then
748- version_type=linux 781- version_type=linux
749- else 782- else
750- version_type=irix 783- version_type=irix
751- fi ;; 784- fi ;;
752+ *) version_type=irix ;; 785+ *) version_type=irix ;;
753 esac 786 esac
754 need_lib_prefix=no 787 need_lib_prefix=no
755 need_version=no 788 need_version=no
756@@ -16521,11 +16740,11 @@ linux* | k*bsd*-gnu) 789@@ -16521,11 +16737,11 @@ linux* | k*bsd*-gnu)
757 ;; 790 ;;
758  791
759 netbsd*) 792 netbsd*)
760- version_type=sunos 793- version_type=sunos
761+ version_type=linux 794+ version_type=linux
762 need_lib_prefix=no 795 need_lib_prefix=no
763 need_version=no 796 need_version=no
764 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
765- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 798- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
766+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2' 799+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
768 dynamic_linker='NetBSD (a.out) ld.so' 801 dynamic_linker='NetBSD (a.out) ld.so'
769 else 802 else
770@@ -16550,13 +16769,14 @@ nto-qnx*) 803@@ -16550,13 +16766,14 @@ nto-qnx*)
771 need_lib_prefix=no 804 need_lib_prefix=no
772 need_version=no 805 need_version=no
773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
774+ dynamic_linker='QNX libc.so' 807+ dynamic_linker='QNX libc.so'
775 soname_spec='${libname}${release}${shared_ext}$major' 808 soname_spec='${libname}${release}${shared_ext}$major'
776 shlibpath_var=LD_LIBRARY_PATH 809 shlibpath_var=LD_LIBRARY_PATH
777 shlibpath_overrides_runpath=yes 810 shlibpath_overrides_runpath=yes
778 ;; 811 ;;
779  812
780 openbsd*) 813 openbsd*)
781- version_type=sunos 814- version_type=sunos
782+ version_type=linux 815+ version_type=linux
783 sys_lib_dlsearch_path_spec="/usr/lib" 816 sys_lib_dlsearch_path_spec="/usr/lib"
784 need_lib_prefix=no 817 need_lib_prefix=no
785 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
786@@ -16564,7 +16784,7 @@ openbsd*) 819@@ -16564,7 +16781,7 @@ openbsd*)
787 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 820 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
788 *) need_version=no ;; 821 *) need_version=no ;;
789 esac 822 esac
790- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 823- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
791+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 824+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
793 shlibpath_var=LD_LIBRARY_PATH 826 shlibpath_var=LD_LIBRARY_PATH
794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
795@@ -17242,7 +17462,10 @@ for cc_temp in $compiler""; do 828@@ -17242,7 +17459,10 @@ for cc_temp in $compiler""; do
796 *) break;; 829 *) break;;
797 esac 830 esac
798 done 831 done
799-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 832-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
800+# Return the actual command name, not our pkgsrc wrapper name because several 833+# Return the actual command name, not our pkgsrc wrapper name because several
801+# decisions are made only based on compiler names 834+# decisions are made only based on compiler names
802+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 835+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
803+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 836+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
804  837
805  838
806 # GCJ did not exist at the time GCC didn't implicitly link libc in. 839 # GCJ did not exist at the time GCC didn't implicitly link libc in.
807@@ -17347,9 +17570,11 @@ echo $ECHO_N "checking for $compiler opt 840@@ -17347,9 +17567,11 @@ echo $ECHO_N "checking for $compiler opt
808 ;; 841 ;;
809  842
810 darwin* | rhapsody*) 843 darwin* | rhapsody*)
811- # PIC is the default on this platform 844- # PIC is the default on this platform
812+ # PIC is the default on this platform, and static linking of 845+ # PIC is the default on this platform, and static linking of
813+ # binaries generally doesn't work 846+ # binaries generally doesn't work
814 # Common symbols not allowed in MH_DYLIB files 847 # Common symbols not allowed in MH_DYLIB files
815 lt_prog_compiler_pic_GCJ='-fno-common' 848 lt_prog_compiler_pic_GCJ='-fno-common'
816+ lt_prog_compiler_static_GCJ='' 849+ lt_prog_compiler_static_GCJ=''
817 ;; 850 ;;
818  851
819 interix[3-9]*) 852 interix[3-9]*)
820@@ -17383,6 +17608,11 @@ echo $ECHO_N "checking for $compiler opt 853@@ -17383,6 +17605,11 @@ echo $ECHO_N "checking for $compiler opt
821 esac 854 esac
822 ;; 855 ;;
823  856
824+ interix3*) 857+ interix3*)
825+ # Interix 3.0-3.5 -fPIC option generates borked code. 858+ # Interix 3.0-3.5 -fPIC option generates borked code.
826+ # (Instead, shlibs are relocated at runtime.) 859+ # (Instead, shlibs are relocated at runtime.)
827+ ;; 860+ ;;
828+ 861+
829 *) 862 *)
830 lt_prog_compiler_pic_GCJ='-fPIC' 863 lt_prog_compiler_pic_GCJ='-fPIC'
831 ;; 864 ;;
832@@ -17537,6 +17767,10 @@ echo $ECHO_N "checking for $compiler opt 865@@ -17537,6 +17764,10 @@ echo $ECHO_N "checking for $compiler opt
833 lt_prog_compiler_static_GCJ='-Bstatic' 866 lt_prog_compiler_static_GCJ='-Bstatic'
834 ;; 867 ;;
835  868
836+ nto-qnx*) 869+ nto-qnx*)
837+ lt_prog_compiler_pic_GCJ='-fPIC' 870+ lt_prog_compiler_pic_GCJ='-fPIC'
838+ ;; 871+ ;;
839+ 872+
840 *) 873 *)
841 lt_prog_compiler_can_build_shared_GCJ=no 874 lt_prog_compiler_can_build_shared_GCJ=no
842 ;; 875 ;;
843@@ -17774,7 +18008,10 @@ echo $ECHO_N "checking whether the $comp 876@@ -17774,7 +18005,10 @@ echo $ECHO_N "checking whether the $comp
844 *) break;; 877 *) break;;
845 esac 878 esac
846 done 879 done
847-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 880-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
848+# Return the actual command name, not our pkgsrc wrapper name because several 881+# Return the actual command name, not our pkgsrc wrapper name because several
849+# decisions are made only based on compiler names 882+# decisions are made only based on compiler names
850+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 883+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
851+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 884+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
852  885
853 case $host_os in 886 case $host_os in
854 cygwin* | mingw* | pw32*) 887 cygwin* | mingw* | pw32*)
855@@ -17943,6 +18180,17 @@ EOF 888@@ -17943,6 +18177,17 @@ EOF
856 fi 889 fi
857 ;; 890 ;;
858  891
859+ interix3*) 892+ interix3*)
860+ # Oy, what a hack. 893+ # Oy, what a hack.
861+ # Because shlibs are not compiled -fPIC due to broken code, we must 894+ # Because shlibs are not compiled -fPIC due to broken code, we must
862+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 895+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
863+ # all libraries, leading to runtime relocations -- slow and very 896+ # all libraries, leading to runtime relocations -- slow and very
864+ # memory consuming. To do this, we pick a random 256KB-aligned 897+ # memory consuming. To do this, we pick a random 256KB-aligned
865+ # start address between 0x50000000 and 0x6ffc0000 at link time. 898+ # start address between 0x50000000 and 0x6ffc0000 at link time.
866+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 899+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
867+ archive_expsym_cmds_GCJ='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 900+ archive_expsym_cmds_GCJ='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
868+ ;; 901+ ;;
869+ 902+
870 netbsd*) 903 netbsd*)
871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
872 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 905 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
873@@ -18008,6 +18256,11 @@ _LT_EOF 906@@ -18008,6 +18253,11 @@ _LT_EOF
874 hardcode_shlibpath_var_GCJ=no 907 hardcode_shlibpath_var_GCJ=no
875 ;; 908 ;;
876  909
877+ nto-qnx*) 910+ nto-qnx*)
878+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 911+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
879+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 912+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
880+ ;; 913+ ;;
881+ 914+
882 *) 915 *)
883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
884 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 917 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
885@@ -18474,6 +18727,21 @@ if test -z "$aix_libpath"; then aix_libp 918@@ -18474,6 +18724,21 @@ if test -z "$aix_libpath"; then aix_libp
886 fi 919 fi
887 ;; 920 ;;
888  921
889+ interix3*) 922+ interix3*)
890+ # Oy, what a hack. 923+ # Oy, what a hack.
891+ # Because shlibs are not compiled -fPIC due to broken code, we must 924+ # Because shlibs are not compiled -fPIC due to broken code, we must
892+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 925+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
893+ # all libraries, leading to runtime relocations -- slow and very 926+ # all libraries, leading to runtime relocations -- slow and very
894+ # memory consuming. To do this, we pick a random 256KB-aligned 927+ # memory consuming. To do this, we pick a random 256KB-aligned
895+ # start address between 0x50000000 and 0x6ffc0000 at link time. 928+ # start address between 0x50000000 and 0x6ffc0000 at link time.
896+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 929+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
897+ archive_expsym_cmds_GCJ='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 930+ archive_expsym_cmds_GCJ='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
898+ export_dynamic_flag_spec_GCJ='${wl}-E' 931+ export_dynamic_flag_spec_GCJ='${wl}-E'
899+ hardcode_direct_GCJ=yes 932+ hardcode_direct_GCJ=yes
900+ hardcode_libdir_flag_spec_GCJ='${wl}-h,$libdir' 933+ hardcode_libdir_flag_spec_GCJ='${wl}-h,$libdir'
901+ hardcode_shlibpath_var_GCJ=no 934+ hardcode_shlibpath_var_GCJ=no
902+ ;; 935+ ;;
903+ 936+
904 irix5* | irix6* | nonstopux*) 937 irix5* | irix6* | nonstopux*)
905 if test "$GCC" = yes; then 938 if test "$GCC" = yes; then
906 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 939 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
907@@ -18699,6 +18967,13 @@ if test -z "$aix_libpath"; then aix_libp 940@@ -18699,6 +18964,13 @@ if test -z "$aix_libpath"; then aix_libp
908 hardcode_shlibpath_var_GCJ=no 941 hardcode_shlibpath_var_GCJ=no
909 ;; 942 ;;
910  943
911+ nto-qnx*) 944+ nto-qnx*)
912+ archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' 945+ archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
913+ hardcode_libdir_flag_spec_GCJ='-R$libdir' 946+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
914+ hardcode_direct_GCJ=yes 947+ hardcode_direct_GCJ=yes
915+ hardcode_shlibpath_var_GCJ=no 948+ hardcode_shlibpath_var_GCJ=no
916+ ;; 949+ ;;
917+ 950+
918 *) 951 *)
919 ld_shlibs_GCJ=no 952 ld_shlibs_GCJ=no
920 ;; 953 ;;
921@@ -18864,6 +19139,7 @@ beos*) 954@@ -18864,6 +19136,7 @@ beos*)
922 bsdi[45]*) 955 bsdi[45]*)
923 version_type=linux 956 version_type=linux
924 need_version=no 957 need_version=no
925+ need_lib_prefix=no 958+ need_lib_prefix=no
926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
927 soname_spec='${libname}${release}${shared_ext}$major' 960 soname_spec='${libname}${release}${shared_ext}$major'
928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
929@@ -18961,7 +19237,7 @@ freebsd1*) 962@@ -18961,9 +19234,7 @@ freebsd1*)
930 dynamic_linker=no 963 dynamic_linker=no
931 ;; 964 ;;
932  965
933-freebsd* | dragonfly*) 966-freebsd* | dragonfly*)
 967- # DragonFly does not have aout. When/if they implement a new
 968- # versioning mechanism, adjust this.
934+freebsd*) 969+freebsd*)
935 # DragonFly does not have aout. When/if they implement a new 
936 # versioning mechanism, adjust this. 
937 if test -x /usr/bin/objformat; then 970 if test -x /usr/bin/objformat; then
938@@ -18975,7 +19251,7 @@ freebsd* | dragonfly*) 971 objformat=`/usr/bin/objformat`
 972 else
 973@@ -18975,7 +19246,7 @@ freebsd* | dragonfly*)
939 version_type=freebsd-$objformat 974 version_type=freebsd-$objformat
940 case $version_type in 975 case $version_type in
941 freebsd-elf*) 976 freebsd-elf*)
942- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 977- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
943+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 978+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
944 need_version=no 979 need_version=no
945 need_lib_prefix=no 980 need_lib_prefix=no
946 ;; 981 ;;
947@@ -19005,6 +19281,16 @@ freebsd* | dragonfly*) 982@@ -18998,13 +19269,24 @@ freebsd* | dragonfly*)
 983 shlibpath_overrides_runpath=no
 984 hardcode_into_libs=yes
 985 ;;
 986- *) # from 4.6 on, and DragonFly
 987+ *) # from 4.6 on
 988 shlibpath_overrides_runpath=yes
 989 hardcode_into_libs=yes
 990 ;;
948 esac 991 esac
949 ;; 992 ;;
950  993
951+dragonfly*) 994+dragonfly*)
952+ version_type=linux # XXX tv this should be =linux; current selection has problems 995+ version_type=linux
953+ need_version=no 996+ need_version=no
954+ need_lib_prefix=no 997+ need_lib_prefix=no
955+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 998+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 999+ soname_spec='${libname}${release}${shared_ext}$major'
956+ shlibpath_var=LD_LIBRARY_PATH 1000+ shlibpath_var=LD_LIBRARY_PATH
957+ shlibpath_overrides_runpath=no 1001+ shlibpath_overrides_runpath=no
958+ hardcode_into_libs=yes 1002+ hardcode_into_libs=yes
959+ ;; 1003+ ;;
960+ 1004+
961 gnu*) 1005 gnu*)
962 version_type=linux 1006 version_type=linux
963 need_lib_prefix=no 1007 need_lib_prefix=no
964@@ -19073,15 +19359,22 @@ interix[3-9]*) 1008@@ -19073,15 +19355,22 @@ interix[3-9]*)
965 hardcode_into_libs=yes 1009 hardcode_into_libs=yes
966 ;; 1010 ;;
967  1011
968+interix3*) 1012+interix3*)
969+ version_type=linux 1013+ version_type=linux
970+ need_lib_prefix=no 1014+ need_lib_prefix=no
971+ need_version=no 1015+ need_version=no
972+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1016+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
973+ soname_spec='${libname}${release}${shared_ext}$major' 1017+ soname_spec='${libname}${release}${shared_ext}$major'
974+ dynamic_linker='Interix 3.x ld.so' 1018+ dynamic_linker='Interix 3.x ld.so'
975+ shlibpath_var=LD_LIBRARY_PATH 1019+ shlibpath_var=LD_LIBRARY_PATH
976+ shlibpath_overrides_runpath=yes 1020+ shlibpath_overrides_runpath=yes
977+ hardcode_into_libs=yes 1021+ hardcode_into_libs=yes
@@ -980,73 +1024,73 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2 @@ -980,73 +1024,73 @@ $NetBSD: patch-ab,v 1.61 2008/11/19 01:2
980 irix5* | irix6* | nonstopux*) 1024 irix5* | irix6* | nonstopux*)
981 case $host_os in 1025 case $host_os in
982 nonstopux*) version_type=nonstopux ;; 1026 nonstopux*) version_type=nonstopux ;;
983- *) 1027- *)
984- if test "$lt_cv_prog_gnu_ld" = yes; then 1028- if test "$lt_cv_prog_gnu_ld" = yes; then
985- version_type=linux 1029- version_type=linux
986- else 1030- else
987- version_type=irix 1031- version_type=irix
988- fi ;; 1032- fi ;;
989+ *) version_type=irix ;; 1033+ *) version_type=irix ;;
990 esac 1034 esac
991 need_lib_prefix=no 1035 need_lib_prefix=no
992 need_version=no 1036 need_version=no
993@@ -19146,11 +19439,11 @@ linux* | k*bsd*-gnu) 1037@@ -19146,11 +19435,11 @@ linux* | k*bsd*-gnu)
994 ;; 1038 ;;
995  1039
996 netbsd*) 1040 netbsd*)
997- version_type=sunos 1041- version_type=sunos
998+ version_type=linux 1042+ version_type=linux
999 need_lib_prefix=no 1043 need_lib_prefix=no
1000 need_version=no 1044 need_version=no
1001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 1045 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1002- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1046- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1003+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2' 1047+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
1004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1005 dynamic_linker='NetBSD (a.out) ld.so' 1049 dynamic_linker='NetBSD (a.out) ld.so'
1006 else 1050 else
1007@@ -19175,13 +19468,14 @@ nto-qnx*) 1051@@ -19175,13 +19464,14 @@ nto-qnx*)
1008 need_lib_prefix=no 1052 need_lib_prefix=no
1009 need_version=no 1053 need_version=no
1010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1011+ dynamic_linker='QNX libc.so' 1055+ dynamic_linker='QNX libc.so'
1012 soname_spec='${libname}${release}${shared_ext}$major' 1056 soname_spec='${libname}${release}${shared_ext}$major'
1013 shlibpath_var=LD_LIBRARY_PATH 1057 shlibpath_var=LD_LIBRARY_PATH
1014 shlibpath_overrides_runpath=yes 1058 shlibpath_overrides_runpath=yes
1015 ;; 1059 ;;
1016  1060
1017 openbsd*) 1061 openbsd*)
1018- version_type=sunos 1062- version_type=sunos
1019+ version_type=linux 1063+ version_type=linux
1020 sys_lib_dlsearch_path_spec="/usr/lib" 1064 sys_lib_dlsearch_path_spec="/usr/lib"
1021 need_lib_prefix=no 1065 need_lib_prefix=no
1022 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 1066 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1023@@ -19189,7 +19483,7 @@ openbsd*) 1067@@ -19189,7 +19479,7 @@ openbsd*)
1024 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 1068 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1025 *) need_version=no ;; 1069 *) need_version=no ;;
1026 esac 1070 esac
1027- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1071- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1028+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1072+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1030 shlibpath_var=LD_LIBRARY_PATH 1074 shlibpath_var=LD_LIBRARY_PATH
1031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 1075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1032@@ -19866,7 +20160,10 @@ for cc_temp in $compiler""; do 1076@@ -19866,7 +20156,10 @@ for cc_temp in $compiler""; do
1033 *) break;; 1077 *) break;;
1034 esac 1078 esac
1035 done 1079 done
1036-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1080-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1037+# Return the actual command name, not our pkgsrc wrapper name because several 1081+# Return the actual command name, not our pkgsrc wrapper name because several
1038+# decisions are made only based on compiler names 1082+# decisions are made only based on compiler names
1039+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 1083+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
1040+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1084+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1041  1085
1042 lt_cv_prog_compiler_c_o_RC=yes 1086 lt_cv_prog_compiler_c_o_RC=yes
1043  1087
1044@@ -21547,7 +21844,7 @@ echo "$as_me: executing $ac_file command 1088@@ -21547,7 +21840,7 @@ echo "$as_me: executing $ac_file command
1045 # each Makefile.in and add a new line on top of each file to say so. 1089 # each Makefile.in and add a new line on top of each file to say so.
1046 # Grep'ing the whole file is not good either: AIX grep has a line 1090 # Grep'ing the whole file is not good either: AIX grep has a line
1047 # limit of 2048, but all sed's we know have understand at least 4000. 1091 # limit of 2048, but all sed's we know have understand at least 4000.
1048- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 1092- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1049+ if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 1093+ if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
1050 dirpart=`$as_dirname -- "$mf" || 1094 dirpart=`$as_dirname -- "$mf" ||
1051 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1095 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1052 X"$mf" : 'X\(//\)[^/]' \| \ 1096 X"$mf" : 'X\(//\)[^/]' \| \

cvs diff -r1.33 -r1.34 pkgsrc/devel/libtool/patches/Attic/patch-ad (expand / switch to unified diff)

--- pkgsrc/devel/libtool/patches/Attic/patch-ad 2008/11/19 01:26:52 1.33
+++ pkgsrc/devel/libtool/patches/Attic/patch-ad 2009/03/23 23:03:59 1.34
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1$NetBSD: patch-ad,v 1.33 2008/11/19 01:26:52 chuck Exp $ 1$NetBSD: patch-ad,v 1.34 2009/03/23 23:03:59 joerg Exp $
2 2
3--- libltdl/configure.orig 2008-11-18 16:39:34.000000000 -0500 3--- libltdl/configure.orig 2008-02-01 17:38:49.000000000 +0100
4+++ libltdl/configure 4+++ libltdl/configure
5@@ -630,11 +630,11 @@ else 5@@ -630,11 +630,11 @@ else
6  6
7 if test "X$echo" = Xecho; then 7 if test "X$echo" = Xecho; then
8 # We didn't find a better echo, so look for alternatives. 8 # We didn't find a better echo, so look for alternatives.
9- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 9- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
10+ if test "X`(print -r - '\t') 2>/dev/null`" = 'X\t' && 10+ if test "X`(print -r - '\t') 2>/dev/null`" = 'X\t' &&
11 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 11 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
12 test "X$echo_testing_string" = "X$echo_test_string"; then 12 test "X$echo_testing_string" = "X$echo_test_string"; then
13 # This shell has a builtin print -r that does the trick. 13 # This shell has a builtin print -r that does the trick.
14- echo='print -r' 14- echo='print -r'
15+ echo='print -r -' 15+ echo='print -r -'
16 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 16 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
@@ -183,62 +183,73 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2 @@ -183,62 +183,73 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2
183+ ;; 183+ ;;
184+ 184+
185 *) 185 *)
186 ld_shlibs=no 186 ld_shlibs=no
187 ;; 187 ;;
188@@ -9517,6 +9569,7 @@ beos*) 188@@ -9517,6 +9569,7 @@ beos*)
189 bsdi[45]*) 189 bsdi[45]*)
190 version_type=linux 190 version_type=linux
191 need_version=no 191 need_version=no
192+ need_lib_prefix=no 192+ need_lib_prefix=no
193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
194 soname_spec='${libname}${release}${shared_ext}$major' 194 soname_spec='${libname}${release}${shared_ext}$major'
195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
196@@ -9615,7 +9668,7 @@ freebsd1*) 196@@ -9615,9 +9668,7 @@ freebsd1*)
197 dynamic_linker=no 197 dynamic_linker=no
198 ;; 198 ;;
199  199
200-freebsd* | dragonfly*) 200-freebsd* | dragonfly*)
 201- # DragonFly does not have aout. When/if they implement a new
 202- # versioning mechanism, adjust this.
201+freebsd*) 203+freebsd*)
202 # DragonFly does not have aout. When/if they implement a new 
203 # versioning mechanism, adjust this. 
204 if test -x /usr/bin/objformat; then 204 if test -x /usr/bin/objformat; then
205@@ -9629,7 +9682,7 @@ freebsd* | dragonfly*) 205 objformat=`/usr/bin/objformat`
 206 else
 207@@ -9629,7 +9680,7 @@ freebsd* | dragonfly*)
206 version_type=freebsd-$objformat 208 version_type=freebsd-$objformat
207 case $version_type in 209 case $version_type in
208 freebsd-elf*) 210 freebsd-elf*)
209- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 211- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
210+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 212+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
211 need_version=no 213 need_version=no
212 need_lib_prefix=no 214 need_lib_prefix=no
213 ;; 215 ;;
214@@ -9659,6 +9712,16 @@ freebsd* | dragonfly*) 216@@ -9652,13 +9703,24 @@ freebsd* | dragonfly*)
 217 shlibpath_overrides_runpath=no
 218 hardcode_into_libs=yes
 219 ;;
 220- *) # from 4.6 on, and DragonFly
 221+ *) # from 4.6 on
 222 shlibpath_overrides_runpath=yes
 223 hardcode_into_libs=yes
 224 ;;
215 esac 225 esac
216 ;; 226 ;;
217  227
218+dragonfly*) 228+dragonfly*)
219+ version_type=linux # XXX tv this should be =linux; current selection has problems 229+ version_type=linux
220+ need_version=no 230+ need_version=no
221+ need_lib_prefix=no 231+ need_lib_prefix=no
222+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 232+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 233+ soname_spec='${libname}${release}${shared_ext}$major'
223+ shlibpath_var=LD_LIBRARY_PATH 234+ shlibpath_var=LD_LIBRARY_PATH
224+ shlibpath_overrides_runpath=no 235+ shlibpath_overrides_runpath=no
225+ hardcode_into_libs=yes 236+ hardcode_into_libs=yes
226+ ;; 237+ ;;
227+ 238+
228 gnu*) 239 gnu*)
229 version_type=linux 240 version_type=linux
230 need_lib_prefix=no 241 need_lib_prefix=no
231@@ -9727,15 +9790,22 @@ interix[3-9]*) 242@@ -9727,15 +9789,22 @@ interix[3-9]*)
232 hardcode_into_libs=yes 243 hardcode_into_libs=yes
233 ;; 244 ;;
234  245
235+interix3*) 246+interix3*)
236+ version_type=linux 247+ version_type=linux
237+ need_lib_prefix=no 248+ need_lib_prefix=no
238+ need_version=no 249+ need_version=no
239+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 250+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
240+ soname_spec='${libname}${release}${shared_ext}$major' 251+ soname_spec='${libname}${release}${shared_ext}$major'
241+ dynamic_linker='Interix 3.x ld.so' 252+ dynamic_linker='Interix 3.x ld.so'
242+ shlibpath_var=LD_LIBRARY_PATH 253+ shlibpath_var=LD_LIBRARY_PATH
243+ shlibpath_overrides_runpath=yes 254+ shlibpath_overrides_runpath=yes
244+ hardcode_into_libs=yes 255+ hardcode_into_libs=yes
@@ -247,106 +258,106 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2 @@ -247,106 +258,106 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2
247 irix5* | irix6* | nonstopux*) 258 irix5* | irix6* | nonstopux*)
248 case $host_os in 259 case $host_os in
249 nonstopux*) version_type=nonstopux ;; 260 nonstopux*) version_type=nonstopux ;;
250- *) 261- *)
251- if test "$lt_cv_prog_gnu_ld" = yes; then 262- if test "$lt_cv_prog_gnu_ld" = yes; then
252- version_type=linux 263- version_type=linux
253- else 264- else
254- version_type=irix 265- version_type=irix
255- fi ;; 266- fi ;;
256+ *) version_type=irix ;; 267+ *) version_type=irix ;;
257 esac 268 esac
258 need_lib_prefix=no 269 need_lib_prefix=no
259 need_version=no 270 need_version=no
260@@ -9800,11 +9870,11 @@ linux* | k*bsd*-gnu) 271@@ -9800,11 +9869,11 @@ linux* | k*bsd*-gnu)
261 ;; 272 ;;
262  273
263 netbsd*) 274 netbsd*)
264- version_type=sunos 275- version_type=sunos
265+ version_type=linux 276+ version_type=linux
266 need_lib_prefix=no 277 need_lib_prefix=no
267 need_version=no 278 need_version=no
268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
269- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 280- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
270+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2' 281+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
272 dynamic_linker='NetBSD (a.out) ld.so' 283 dynamic_linker='NetBSD (a.out) ld.so'
273 else 284 else
274@@ -9829,13 +9899,14 @@ nto-qnx*) 285@@ -9829,13 +9898,14 @@ nto-qnx*)
275 need_lib_prefix=no 286 need_lib_prefix=no
276 need_version=no 287 need_version=no
277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
278+ dynamic_linker='QNX libc.so' 289+ dynamic_linker='QNX libc.so'
279 soname_spec='${libname}${release}${shared_ext}$major' 290 soname_spec='${libname}${release}${shared_ext}$major'
280 shlibpath_var=LD_LIBRARY_PATH 291 shlibpath_var=LD_LIBRARY_PATH
281 shlibpath_overrides_runpath=yes 292 shlibpath_overrides_runpath=yes
282 ;; 293 ;;
283  294
284 openbsd*) 295 openbsd*)
285- version_type=sunos 296- version_type=sunos
286+ version_type=linux 297+ version_type=linux
287 sys_lib_dlsearch_path_spec="/usr/lib" 298 sys_lib_dlsearch_path_spec="/usr/lib"
288 need_lib_prefix=no 299 need_lib_prefix=no
289 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 300 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
290@@ -9843,7 +9914,7 @@ openbsd*) 301@@ -9843,7 +9913,7 @@ openbsd*)
291 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 302 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
292 *) need_version=no ;; 303 *) need_version=no ;;
293 esac 304 esac
294- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 305- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
295+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 306+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
297 shlibpath_var=LD_LIBRARY_PATH 308 shlibpath_var=LD_LIBRARY_PATH
298 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
299@@ -11433,9 +11504,7 @@ echo "$as_me: error: tag name \"$tagname 310@@ -11433,9 +11503,7 @@ echo "$as_me: error: tag name \"$tagname
300  311
301 case $tagname in 312 case $tagname in
302 CXX) 313 CXX)
303- if test -n "$CXX" && ( test "X$CXX" != "Xno" && 314- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
304- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 315- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
305- (test "X$CXX" != "Xg++"))) ; then 316- (test "X$CXX" != "Xg++"))) ; then
306+ if test -n "$CXX" && test "X$CXX" != "Xno" ; then 317+ if test -n "$CXX" && test "X$CXX" != "Xno" ; then
307 ac_ext=cpp 318 ac_ext=cpp
308 ac_cpp='$CXXCPP $CPPFLAGS' 319 ac_cpp='$CXXCPP $CPPFLAGS'
309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
310@@ -11541,7 +11610,10 @@ for cc_temp in $compiler""; do 321@@ -11541,7 +11609,10 @@ for cc_temp in $compiler""; do
311 *) break;; 322 *) break;;
312 esac 323 esac
313 done 324 done
314-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 325-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
315+# Return the actual command name, not our pkgsrc wrapper name because several 326+# Return the actual command name, not our pkgsrc wrapper name because several
316+# decisions are made only based on compiler names 327+# decisions are made only based on compiler names
317+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 328+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
318+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 329+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
319  330
320  331
321 # We don't want -fno-exception wen compiling C++ code, so set the 332 # We don't want -fno-exception wen compiling C++ code, so set the
322@@ -12176,6 +12248,16 @@ if test -z "$aix_libpath"; then aix_libp 333@@ -12176,6 +12247,16 @@ if test -z "$aix_libpath"; then aix_libp
323 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 334 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
324 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 335 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
325 ;; 336 ;;
326+ interix3*) 337+ interix3*)
327+ # Oy, what a hack. 338+ # Oy, what a hack.
328+ # Because shlibs are not compiled -fPIC due to broken code, we must 339+ # Because shlibs are not compiled -fPIC due to broken code, we must
329+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 340+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
330+ # all libraries, leading to runtime relocations -- slow and very 341+ # all libraries, leading to runtime relocations -- slow and very
331+ # memory consuming. To do this, we pick a random 256KB-aligned 342+ # memory consuming. To do this, we pick a random 256KB-aligned
332+ # start address between 0x50000000 and 0x6ffc0000 at link time. 343+ # start address between 0x50000000 and 0x6ffc0000 at link time.
333+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 344+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
334+ archive_expsym_cmds_CXX='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 345+ archive_expsym_cmds_CXX='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
335+ ;; 346+ ;;
336 irix5* | irix6*) 347 irix5* | irix6*)
337 case $cc_basename in 348 case $cc_basename in
338 CC*) 349 CC*)
339@@ -12329,14 +12411,29 @@ if test -z "$aix_libpath"; then aix_libp 350@@ -12329,14 +12410,29 @@ if test -z "$aix_libpath"; then aix_libp
340 ;; 351 ;;
341 netbsd*) 352 netbsd*)
342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
343+ # a.out is quite broken and goes directly to ld 354+ # a.out is quite broken and goes directly to ld
344 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 355 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
345 wlarc= 356 wlarc=
346+ # Determine if we need to override the c++rt0 that is 357+ # Determine if we need to override the c++rt0 that is
347+ # picked up by analysing output_verbose_link_cmds 358+ # picked up by analysing output_verbose_link_cmds
348+ if test -f ${PREFIX}/lib/c++rt0/c++rt0.o.PIC; then 359+ if test -f ${PREFIX}/lib/c++rt0/c++rt0.o.PIC; then
349+ cpprt0_file="${PREFIX}/lib/c++rt0/c++rt0.o.PIC" 360+ cpprt0_file="${PREFIX}/lib/c++rt0/c++rt0.o.PIC"
350+ else 361+ else
351+ cpprt0_file= 362+ cpprt0_file=
352+ fi 363+ fi
@@ -358,146 +369,157 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2 @@ -358,146 +369,157 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2
358+ # Workaround some broken pre-1.5 ELF toolchains 369+ # Workaround some broken pre-1.5 ELF toolchains
359+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 370+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
360+ else 371+ else
361+ # Modern ELF works sanely as-is 372+ # Modern ELF works sanely as-is
362+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 373+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
363+ archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 374+ archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
364+ output_verbose_link_cmd='echo' 375+ output_verbose_link_cmd='echo'
365 fi 376 fi
366- # Workaround some broken pre-1.5 toolchains 377- # Workaround some broken pre-1.5 toolchains
367- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 378- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
368 ;; 379 ;;
369 openbsd2*) 380 openbsd2*)
370 # C++ shared libraries are fairly broken 381 # C++ shared libraries are fairly broken
371@@ -12649,6 +12746,11 @@ if test -z "$aix_libpath"; then aix_libp 382@@ -12649,6 +12745,11 @@ if test -z "$aix_libpath"; then aix_libp
372 # FIXME: insert proper C++ library support 383 # FIXME: insert proper C++ library support
373 ld_shlibs_CXX=no 384 ld_shlibs_CXX=no
374 ;; 385 ;;
375+ nto-qnx*) 386+ nto-qnx*)
376+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 387+ archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
377+ archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 388+ archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
378+ output_verbose_link_cmd='echo' 389+ output_verbose_link_cmd='echo'
379+ ;; 390+ ;;
380 *) 391 *)
381 # FIXME: insert proper C++ library support 392 # FIXME: insert proper C++ library support
382 ld_shlibs_CXX=no 393 ld_shlibs_CXX=no
383@@ -12758,6 +12860,21 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c 394@@ -12758,6 +12859,21 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
384 esac 395 esac
385 done 396 done
386  397
387+ case "$host_os" in 398+ case "$host_os" in
388+ netbsd*) 399+ netbsd*)
389+ if test -n "$cpprt0_file"; then 400+ if test -n "$cpprt0_file"; then
390+ predep_objects_CXX=`eval echo $predep_objects_CXX | sed -e 's:/usr/lib/c++rt0.o:$cpprt0_file:'` 401+ predep_objects_CXX=`eval echo $predep_objects_CXX | sed -e 's:/usr/lib/c++rt0.o:$cpprt0_file:'`
391+ fi 402+ fi
392+ ;; 403+ ;;
393+ interix3*) 404+ interix3*)
394+ # Interix installs completely hosed .la files for C++, so rather than 405+ # Interix installs completely hosed .la files for C++, so rather than
395+ # hack all around it, let's just trust "g++" to DTRT. 406+ # hack all around it, let's just trust "g++" to DTRT.
396+ predep_objects_CXX= 407+ predep_objects_CXX=
397+ postdep_objects_CXX= 408+ postdep_objects_CXX=
398+ postdeps_CXX= 409+ postdeps_CXX=
399+ ;; 410+ ;;
400+ esac 411+ esac
401+ 412+
402 # Clean up. 413 # Clean up.
403 rm -f a.out a.exe 414 rm -f a.out a.exe
404 else 415 else
405@@ -12867,9 +12984,11 @@ echo $ECHO_N "checking for $compiler opt 416@@ -12867,9 +12983,11 @@ echo $ECHO_N "checking for $compiler opt
406 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 417 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
407 ;; 418 ;;
408 darwin* | rhapsody*) 419 darwin* | rhapsody*)
409- # PIC is the default on this platform 420- # PIC is the default on this platform
410+ # PIC is the default on this platform, and static linking of 421+ # PIC is the default on this platform, and static linking of
411+ # binaries generally doesn't work 422+ # binaries generally doesn't work
412 # Common symbols not allowed in MH_DYLIB files 423 # Common symbols not allowed in MH_DYLIB files
413 lt_prog_compiler_pic_CXX='-fno-common' 424 lt_prog_compiler_pic_CXX='-fno-common'
414+ lt_prog_compiler_static_CXX='' 425+ lt_prog_compiler_static_CXX=''
415 ;; 426 ;;
416 *djgpp*) 427 *djgpp*)
417 # DJGPP does not support shared libraries at all 428 # DJGPP does not support shared libraries at all
418@@ -12895,6 +13014,10 @@ echo $ECHO_N "checking for $compiler opt 429@@ -12895,6 +13013,10 @@ echo $ECHO_N "checking for $compiler opt
419 ;; 430 ;;
420 esac 431 esac
421 ;; 432 ;;
422+ interix3*) 433+ interix3*)
423+ # Interix 3.0-3.5 -fPIC option generates borked code. 434+ # Interix 3.0-3.5 -fPIC option generates borked code.
424+ # (Instead, shlibs are relocated at runtime.) 435+ # (Instead, shlibs are relocated at runtime.)
425+ ;; 436+ ;;
426 *) 437 *)
427 lt_prog_compiler_pic_CXX='-fPIC' 438 lt_prog_compiler_pic_CXX='-fPIC'
428 ;; 439 ;;
429@@ -12973,6 +13096,8 @@ echo $ECHO_N "checking for $compiler opt 440@@ -12973,6 +13095,8 @@ echo $ECHO_N "checking for $compiler opt
430 # This is c89, which is MS Visual C++ (no shared libs) 441 # This is c89, which is MS Visual C++ (no shared libs)
431 # Anyone wants to do a port? 442 # Anyone wants to do a port?
432 ;; 443 ;;
433+ interix3*) 444+ interix3*)
434+ ;; 445+ ;;
435 irix5* | irix6* | nonstopux*) 446 irix5* | irix6* | nonstopux*)
436 case $cc_basename in 447 case $cc_basename in
437 CC*) 448 CC*)
438@@ -13112,6 +13237,8 @@ echo $ECHO_N "checking for $compiler opt 449@@ -13112,6 +13236,8 @@ echo $ECHO_N "checking for $compiler opt
439 ;; 450 ;;
440 vxworks*) 451 vxworks*)
441 ;; 452 ;;
442+ nto-qnx*) 453+ nto-qnx*)
443+ ;; 454+ ;;
444 *) 455 *)
445 lt_prog_compiler_can_build_shared_CXX=no 456 lt_prog_compiler_can_build_shared_CXX=no
446 ;; 457 ;;
447@@ -13485,6 +13612,7 @@ beos*) 458@@ -13485,6 +13611,7 @@ beos*)
448 bsdi[45]*) 459 bsdi[45]*)
449 version_type=linux 460 version_type=linux
450 need_version=no 461 need_version=no
451+ need_lib_prefix=no 462+ need_lib_prefix=no
452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
453 soname_spec='${libname}${release}${shared_ext}$major' 464 soname_spec='${libname}${release}${shared_ext}$major'
454 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 465 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
455@@ -13582,7 +13710,7 @@ freebsd1*) 466@@ -13582,9 +13709,7 @@ freebsd1*)
456 dynamic_linker=no 467 dynamic_linker=no
457 ;; 468 ;;
458  469
459-freebsd* | dragonfly*) 470-freebsd* | dragonfly*)
 471- # DragonFly does not have aout. When/if they implement a new
 472- # versioning mechanism, adjust this.
460+freebsd*) 473+freebsd*)
461 # DragonFly does not have aout. When/if they implement a new 
462 # versioning mechanism, adjust this. 
463 if test -x /usr/bin/objformat; then 474 if test -x /usr/bin/objformat; then
464@@ -13596,7 +13724,7 @@ freebsd* | dragonfly*) 475 objformat=`/usr/bin/objformat`
 476 else
 477@@ -13596,7 +13721,7 @@ freebsd* | dragonfly*)
465 version_type=freebsd-$objformat 478 version_type=freebsd-$objformat
466 case $version_type in 479 case $version_type in
467 freebsd-elf*) 480 freebsd-elf*)
468- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 481- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
469+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 482+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
470 need_version=no 483 need_version=no
471 need_lib_prefix=no 484 need_lib_prefix=no
472 ;; 485 ;;
473@@ -13626,6 +13754,16 @@ freebsd* | dragonfly*) 486@@ -13619,13 +13744,24 @@ freebsd* | dragonfly*)
 487 shlibpath_overrides_runpath=no
 488 hardcode_into_libs=yes
 489 ;;
 490- *) # from 4.6 on, and DragonFly
 491+ *) # from 4.6 on
 492 shlibpath_overrides_runpath=yes
 493 hardcode_into_libs=yes
 494 ;;
474 esac 495 esac
475 ;; 496 ;;
476  497
477+dragonfly*) 498+dragonfly*)
478+ version_type=linux # XXX tv this should be =linux; current selection has problems 499+ version_type=linux
479+ need_version=no 500+ need_version=no
480+ need_lib_prefix=no 501+ need_lib_prefix=no
481+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 502+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 503+ soname_spec='${libname}${release}${shared_ext}$major'
482+ shlibpath_var=LD_LIBRARY_PATH 504+ shlibpath_var=LD_LIBRARY_PATH
483+ shlibpath_overrides_runpath=no 505+ shlibpath_overrides_runpath=no
484+ hardcode_into_libs=yes 506+ hardcode_into_libs=yes
485+ ;; 507+ ;;
486+ 508+
487 gnu*) 509 gnu*)
488 version_type=linux 510 version_type=linux
489 need_lib_prefix=no 511 need_lib_prefix=no
490@@ -13694,15 +13832,22 @@ interix[3-9]*) 512@@ -13694,15 +13830,22 @@ interix[3-9]*)
491 hardcode_into_libs=yes 513 hardcode_into_libs=yes
492 ;; 514 ;;
493  515
494+interix3*) 516+interix3*)
495+ version_type=linux 517+ version_type=linux
496+ need_lib_prefix=no 518+ need_lib_prefix=no
497+ need_version=no 519+ need_version=no
498+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 520+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
499+ soname_spec='${libname}${release}${shared_ext}$major' 521+ soname_spec='${libname}${release}${shared_ext}$major'
500+ dynamic_linker='Interix 3.x ld.so' 522+ dynamic_linker='Interix 3.x ld.so'
501+ shlibpath_var=LD_LIBRARY_PATH 523+ shlibpath_var=LD_LIBRARY_PATH
502+ shlibpath_overrides_runpath=yes 524+ shlibpath_overrides_runpath=yes
503+ hardcode_into_libs=yes 525+ hardcode_into_libs=yes
@@ -506,235 +528,246 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2 @@ -506,235 +528,246 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2
506 irix5* | irix6* | nonstopux*) 528 irix5* | irix6* | nonstopux*)
507 case $host_os in 529 case $host_os in
508 nonstopux*) version_type=nonstopux ;; 530 nonstopux*) version_type=nonstopux ;;
509- *) 531- *)
510- if test "$lt_cv_prog_gnu_ld" = yes; then 532- if test "$lt_cv_prog_gnu_ld" = yes; then
511- version_type=linux 533- version_type=linux
512- else 534- else
513- version_type=irix 535- version_type=irix
514- fi ;; 536- fi ;;
515+ *) version_type=irix ;; 537+ *) version_type=irix ;;
516 esac 538 esac
517 need_lib_prefix=no 539 need_lib_prefix=no
518 need_version=no 540 need_version=no
519@@ -13767,11 +13912,11 @@ linux* | k*bsd*-gnu) 541@@ -13767,11 +13910,11 @@ linux* | k*bsd*-gnu)
520 ;; 542 ;;
521  543
522 netbsd*) 544 netbsd*)
523- version_type=sunos 545- version_type=sunos
524+ version_type=linux 546+ version_type=linux
525 need_lib_prefix=no 547 need_lib_prefix=no
526 need_version=no 548 need_version=no
527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 549 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
528- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 550- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
529+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2' 551+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
531 dynamic_linker='NetBSD (a.out) ld.so' 553 dynamic_linker='NetBSD (a.out) ld.so'
532 else 554 else
533@@ -13796,13 +13941,14 @@ nto-qnx*) 555@@ -13796,13 +13939,14 @@ nto-qnx*)
534 need_lib_prefix=no 556 need_lib_prefix=no
535 need_version=no 557 need_version=no
536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
537+ dynamic_linker='QNX libc.so' 559+ dynamic_linker='QNX libc.so'
538 soname_spec='${libname}${release}${shared_ext}$major' 560 soname_spec='${libname}${release}${shared_ext}$major'
539 shlibpath_var=LD_LIBRARY_PATH 561 shlibpath_var=LD_LIBRARY_PATH
540 shlibpath_overrides_runpath=yes 562 shlibpath_overrides_runpath=yes
541 ;; 563 ;;
542  564
543 openbsd*) 565 openbsd*)
544- version_type=sunos 566- version_type=sunos
545+ version_type=linux 567+ version_type=linux
546 sys_lib_dlsearch_path_spec="/usr/lib" 568 sys_lib_dlsearch_path_spec="/usr/lib"
547 need_lib_prefix=no 569 need_lib_prefix=no
548 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 570 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
549@@ -13810,7 +13956,7 @@ openbsd*) 571@@ -13810,7 +13954,7 @@ openbsd*)
550 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 572 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
551 *) need_version=no ;; 573 *) need_version=no ;;
552 esac 574 esac
553- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 575- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
554+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 576+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
556 shlibpath_var=LD_LIBRARY_PATH 578 shlibpath_var=LD_LIBRARY_PATH
557 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
558@@ -14528,7 +14674,10 @@ for cc_temp in $compiler""; do 580@@ -14528,7 +14672,10 @@ for cc_temp in $compiler""; do
559 *) break;; 581 *) break;;
560 esac 582 esac
561 done 583 done
562-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 584-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
563+# Return the actual command name, not our pkgsrc wrapper name because several 585+# Return the actual command name, not our pkgsrc wrapper name because several
564+# decisions are made only based on compiler names 586+# decisions are made only based on compiler names
565+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 587+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
566+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 588+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
567  589
568  590
569 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 591 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
570@@ -14609,9 +14758,11 @@ echo $ECHO_N "checking for $compiler opt 592@@ -14609,9 +14756,11 @@ echo $ECHO_N "checking for $compiler opt
571 ;; 593 ;;
572  594
573 darwin* | rhapsody*) 595 darwin* | rhapsody*)
574- # PIC is the default on this platform 596- # PIC is the default on this platform
575+ # PIC is the default on this platform, and static linking of 597+ # PIC is the default on this platform, and static linking of
576+ # binaries generally doesn't work 598+ # binaries generally doesn't work
577 # Common symbols not allowed in MH_DYLIB files 599 # Common symbols not allowed in MH_DYLIB files
578 lt_prog_compiler_pic_F77='-fno-common' 600 lt_prog_compiler_pic_F77='-fno-common'
579+ lt_prog_compiler_static_F77='' 601+ lt_prog_compiler_static_F77=''
580 ;; 602 ;;
581  603
582 interix[3-9]*) 604 interix[3-9]*)
583@@ -14645,6 +14796,11 @@ echo $ECHO_N "checking for $compiler opt 605@@ -14645,6 +14794,11 @@ echo $ECHO_N "checking for $compiler opt
584 esac 606 esac
585 ;; 607 ;;
586  608
587+ interix3*) 609+ interix3*)
588+ # Interix 3.0-3.5 -fPIC option generates borked code. 610+ # Interix 3.0-3.5 -fPIC option generates borked code.
589+ # (Instead, shlibs are relocated at runtime.) 611+ # (Instead, shlibs are relocated at runtime.)
590+ ;; 612+ ;;
591+ 613+
592 *) 614 *)
593 lt_prog_compiler_pic_F77='-fPIC' 615 lt_prog_compiler_pic_F77='-fPIC'
594 ;; 616 ;;
595@@ -14799,6 +14955,10 @@ echo $ECHO_N "checking for $compiler opt 617@@ -14799,6 +14953,10 @@ echo $ECHO_N "checking for $compiler opt
596 lt_prog_compiler_static_F77='-Bstatic' 618 lt_prog_compiler_static_F77='-Bstatic'
597 ;; 619 ;;
598  620
599+ nto-qnx*) 621+ nto-qnx*)
600+ lt_prog_compiler_pic_F77='-fPIC' 622+ lt_prog_compiler_pic_F77='-fPIC'
601+ ;; 623+ ;;
602+ 624+
603 *) 625 *)
604 lt_prog_compiler_can_build_shared_F77=no 626 lt_prog_compiler_can_build_shared_F77=no
605 ;; 627 ;;
606@@ -15036,7 +15196,10 @@ echo $ECHO_N "checking whether the $comp 628@@ -15036,7 +15194,10 @@ echo $ECHO_N "checking whether the $comp
607 *) break;; 629 *) break;;
608 esac 630 esac
609 done 631 done
610-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 632-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
611+# Return the actual command name, not our pkgsrc wrapper name because several 633+# Return the actual command name, not our pkgsrc wrapper name because several
612+# decisions are made only based on compiler names 634+# decisions are made only based on compiler names
613+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 635+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
614+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 636+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
615  637
616 case $host_os in 638 case $host_os in
617 cygwin* | mingw* | pw32*) 639 cygwin* | mingw* | pw32*)
618@@ -15205,6 +15368,17 @@ EOF 640@@ -15205,6 +15366,17 @@ EOF
619 fi 641 fi
620 ;; 642 ;;
621  643
622+ interix3*) 644+ interix3*)
623+ # Oy, what a hack. 645+ # Oy, what a hack.
624+ # Because shlibs are not compiled -fPIC due to broken code, we must 646+ # Because shlibs are not compiled -fPIC due to broken code, we must
625+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 647+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
626+ # all libraries, leading to runtime relocations -- slow and very 648+ # all libraries, leading to runtime relocations -- slow and very
627+ # memory consuming. To do this, we pick a random 256KB-aligned 649+ # memory consuming. To do this, we pick a random 256KB-aligned
628+ # start address between 0x50000000 and 0x6ffc0000 at link time. 650+ # start address between 0x50000000 and 0x6ffc0000 at link time.
629+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 651+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
630+ archive_expsym_cmds_F77='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 652+ archive_expsym_cmds_F77='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
631+ ;; 653+ ;;
632+ 654+
633 netbsd*) 655 netbsd*)
634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
635 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 657 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
636@@ -15270,6 +15444,11 @@ _LT_EOF 658@@ -15270,6 +15442,11 @@ _LT_EOF
637 hardcode_shlibpath_var_F77=no 659 hardcode_shlibpath_var_F77=no
638 ;; 660 ;;
639  661
640+ nto-qnx*) 662+ nto-qnx*)
641+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 663+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
642+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 664+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
643+ ;; 665+ ;;
644+ 666+
645 *) 667 *)
646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 668 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
647 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
648@@ -15716,6 +15895,21 @@ if test -z "$aix_libpath"; then aix_libp 670@@ -15716,6 +15893,21 @@ if test -z "$aix_libpath"; then aix_libp
649 fi 671 fi
650 ;; 672 ;;
651  673
652+ interix3*) 674+ interix3*)
653+ # Oy, what a hack. 675+ # Oy, what a hack.
654+ # Because shlibs are not compiled -fPIC due to broken code, we must 676+ # Because shlibs are not compiled -fPIC due to broken code, we must
655+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 677+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
656+ # all libraries, leading to runtime relocations -- slow and very 678+ # all libraries, leading to runtime relocations -- slow and very
657+ # memory consuming. To do this, we pick a random 256KB-aligned 679+ # memory consuming. To do this, we pick a random 256KB-aligned
658+ # start address between 0x50000000 and 0x6ffc0000 at link time. 680+ # start address between 0x50000000 and 0x6ffc0000 at link time.
659+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 681+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
660+ archive_expsym_cmds_F77='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 682+ archive_expsym_cmds_F77='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
661+ export_dynamic_flag_spec_F77='${wl}-E' 683+ export_dynamic_flag_spec_F77='${wl}-E'
662+ hardcode_direct_F77=yes 684+ hardcode_direct_F77=yes
663+ hardcode_libdir_flag_spec_F77='${wl}-h,$libdir' 685+ hardcode_libdir_flag_spec_F77='${wl}-h,$libdir'
664+ hardcode_shlibpath_var_F77=no 686+ hardcode_shlibpath_var_F77=no
665+ ;; 687+ ;;
666+ 688+
667 irix5* | irix6* | nonstopux*) 689 irix5* | irix6* | nonstopux*)
668 if test "$GCC" = yes; then 690 if test "$GCC" = yes; then
669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 691 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
670@@ -15941,6 +16135,13 @@ if test -z "$aix_libpath"; then aix_libp 692@@ -15941,6 +16133,13 @@ if test -z "$aix_libpath"; then aix_libp
671 hardcode_shlibpath_var_F77=no 693 hardcode_shlibpath_var_F77=no
672 ;; 694 ;;
673  695
674+ nto-qnx*) 696+ nto-qnx*)
675+ archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' 697+ archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
676+ hardcode_libdir_flag_spec_F77='-R$libdir' 698+ hardcode_libdir_flag_spec_F77='-R$libdir'
677+ hardcode_direct_F77=yes 699+ hardcode_direct_F77=yes
678+ hardcode_shlibpath_var_F77=no 700+ hardcode_shlibpath_var_F77=no
679+ ;; 701+ ;;
680+ 702+
681 *) 703 *)
682 ld_shlibs_F77=no 704 ld_shlibs_F77=no
683 ;; 705 ;;
684@@ -16106,6 +16307,7 @@ beos*) 706@@ -16106,6 +16305,7 @@ beos*)
685 bsdi[45]*) 707 bsdi[45]*)
686 version_type=linux 708 version_type=linux
687 need_version=no 709 need_version=no
688+ need_lib_prefix=no 710+ need_lib_prefix=no
689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
690 soname_spec='${libname}${release}${shared_ext}$major' 712 soname_spec='${libname}${release}${shared_ext}$major'
691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 713 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
692@@ -16203,7 +16405,7 @@ freebsd1*) 714@@ -16203,9 +16403,7 @@ freebsd1*)
693 dynamic_linker=no 715 dynamic_linker=no
694 ;; 716 ;;
695  717
696-freebsd* | dragonfly*) 718-freebsd* | dragonfly*)
 719- # DragonFly does not have aout. When/if they implement a new
 720- # versioning mechanism, adjust this.
697+freebsd*) 721+freebsd*)
698 # DragonFly does not have aout. When/if they implement a new 
699 # versioning mechanism, adjust this. 
700 if test -x /usr/bin/objformat; then 722 if test -x /usr/bin/objformat; then
701@@ -16217,7 +16419,7 @@ freebsd* | dragonfly*) 723 objformat=`/usr/bin/objformat`
 724 else
 725@@ -16217,7 +16415,7 @@ freebsd* | dragonfly*)
702 version_type=freebsd-$objformat 726 version_type=freebsd-$objformat
703 case $version_type in 727 case $version_type in
704 freebsd-elf*) 728 freebsd-elf*)
705- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 729- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
706+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 730+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
707 need_version=no 731 need_version=no
708 need_lib_prefix=no 732 need_lib_prefix=no
709 ;; 733 ;;
710@@ -16247,6 +16449,16 @@ freebsd* | dragonfly*) 734@@ -16240,13 +16438,24 @@ freebsd* | dragonfly*)
 735 shlibpath_overrides_runpath=no
 736 hardcode_into_libs=yes
 737 ;;
 738- *) # from 4.6 on, and DragonFly
 739+ *) # from 4.6 on
 740 shlibpath_overrides_runpath=yes
 741 hardcode_into_libs=yes
 742 ;;
711 esac 743 esac
712 ;; 744 ;;
713  745
714+dragonfly*) 746+dragonfly*)
715+ version_type=linux # XXX tv this should be =linux; current selection has problems 747+ version_type=linux
716+ need_version=no 748+ need_version=no
717+ need_lib_prefix=no 749+ need_lib_prefix=no
718+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 750+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 751+ soname_spec='${libname}${release}${shared_ext}$major'
719+ shlibpath_var=LD_LIBRARY_PATH 752+ shlibpath_var=LD_LIBRARY_PATH
720+ shlibpath_overrides_runpath=no 753+ shlibpath_overrides_runpath=no
721+ hardcode_into_libs=yes 754+ hardcode_into_libs=yes
722+ ;; 755+ ;;
723+ 756+
724 gnu*) 757 gnu*)
725 version_type=linux 758 version_type=linux
726 need_lib_prefix=no 759 need_lib_prefix=no
727@@ -16315,15 +16527,22 @@ interix[3-9]*) 760@@ -16315,15 +16524,22 @@ interix[3-9]*)
728 hardcode_into_libs=yes 761 hardcode_into_libs=yes
729 ;; 762 ;;
730  763
731+interix3*) 764+interix3*)
732+ version_type=linux 765+ version_type=linux
733+ need_lib_prefix=no 766+ need_lib_prefix=no
734+ need_version=no 767+ need_version=no
735+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 768+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
736+ soname_spec='${libname}${release}${shared_ext}$major' 769+ soname_spec='${libname}${release}${shared_ext}$major'
737+ dynamic_linker='Interix 3.x ld.so' 770+ dynamic_linker='Interix 3.x ld.so'
738+ shlibpath_var=LD_LIBRARY_PATH 771+ shlibpath_var=LD_LIBRARY_PATH
739+ shlibpath_overrides_runpath=yes 772+ shlibpath_overrides_runpath=yes
740+ hardcode_into_libs=yes 773+ hardcode_into_libs=yes
@@ -743,235 +776,246 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2 @@ -743,235 +776,246 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2
743 irix5* | irix6* | nonstopux*) 776 irix5* | irix6* | nonstopux*)
744 case $host_os in 777 case $host_os in
745 nonstopux*) version_type=nonstopux ;; 778 nonstopux*) version_type=nonstopux ;;
746- *) 779- *)
747- if test "$lt_cv_prog_gnu_ld" = yes; then 780- if test "$lt_cv_prog_gnu_ld" = yes; then
748- version_type=linux 781- version_type=linux
749- else 782- else
750- version_type=irix 783- version_type=irix
751- fi ;; 784- fi ;;
752+ *) version_type=irix ;; 785+ *) version_type=irix ;;
753 esac 786 esac
754 need_lib_prefix=no 787 need_lib_prefix=no
755 need_version=no 788 need_version=no
756@@ -16388,11 +16607,11 @@ linux* | k*bsd*-gnu) 789@@ -16388,11 +16604,11 @@ linux* | k*bsd*-gnu)
757 ;; 790 ;;
758  791
759 netbsd*) 792 netbsd*)
760- version_type=sunos 793- version_type=sunos
761+ version_type=linux 794+ version_type=linux
762 need_lib_prefix=no 795 need_lib_prefix=no
763 need_version=no 796 need_version=no
764 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
765- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 798- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
766+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2' 799+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
768 dynamic_linker='NetBSD (a.out) ld.so' 801 dynamic_linker='NetBSD (a.out) ld.so'
769 else 802 else
770@@ -16417,13 +16636,14 @@ nto-qnx*) 803@@ -16417,13 +16633,14 @@ nto-qnx*)
771 need_lib_prefix=no 804 need_lib_prefix=no
772 need_version=no 805 need_version=no
773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
774+ dynamic_linker='QNX libc.so' 807+ dynamic_linker='QNX libc.so'
775 soname_spec='${libname}${release}${shared_ext}$major' 808 soname_spec='${libname}${release}${shared_ext}$major'
776 shlibpath_var=LD_LIBRARY_PATH 809 shlibpath_var=LD_LIBRARY_PATH
777 shlibpath_overrides_runpath=yes 810 shlibpath_overrides_runpath=yes
778 ;; 811 ;;
779  812
780 openbsd*) 813 openbsd*)
781- version_type=sunos 814- version_type=sunos
782+ version_type=linux 815+ version_type=linux
783 sys_lib_dlsearch_path_spec="/usr/lib" 816 sys_lib_dlsearch_path_spec="/usr/lib"
784 need_lib_prefix=no 817 need_lib_prefix=no
785 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
786@@ -16431,7 +16651,7 @@ openbsd*) 819@@ -16431,7 +16648,7 @@ openbsd*)
787 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 820 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
788 *) need_version=no ;; 821 *) need_version=no ;;
789 esac 822 esac
790- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 823- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
791+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 824+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
793 shlibpath_var=LD_LIBRARY_PATH 826 shlibpath_var=LD_LIBRARY_PATH
794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
795@@ -17109,7 +17329,10 @@ for cc_temp in $compiler""; do 828@@ -17109,7 +17326,10 @@ for cc_temp in $compiler""; do
796 *) break;; 829 *) break;;
797 esac 830 esac
798 done 831 done
799-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 832-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
800+# Return the actual command name, not our pkgsrc wrapper name because several 833+# Return the actual command name, not our pkgsrc wrapper name because several
801+# decisions are made only based on compiler names 834+# decisions are made only based on compiler names
802+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 835+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
803+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 836+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
804  837
805  838
806 # GCJ did not exist at the time GCC didn't implicitly link libc in. 839 # GCJ did not exist at the time GCC didn't implicitly link libc in.
807@@ -17214,9 +17437,11 @@ echo $ECHO_N "checking for $compiler opt 840@@ -17214,9 +17434,11 @@ echo $ECHO_N "checking for $compiler opt
808 ;; 841 ;;
809  842
810 darwin* | rhapsody*) 843 darwin* | rhapsody*)
811- # PIC is the default on this platform 844- # PIC is the default on this platform
812+ # PIC is the default on this platform, and static linking of 845+ # PIC is the default on this platform, and static linking of
813+ # binaries generally doesn't work 846+ # binaries generally doesn't work
814 # Common symbols not allowed in MH_DYLIB files 847 # Common symbols not allowed in MH_DYLIB files
815 lt_prog_compiler_pic_GCJ='-fno-common' 848 lt_prog_compiler_pic_GCJ='-fno-common'
816+ lt_prog_compiler_static_GCJ='' 849+ lt_prog_compiler_static_GCJ=''
817 ;; 850 ;;
818  851
819 interix[3-9]*) 852 interix[3-9]*)
820@@ -17250,6 +17475,11 @@ echo $ECHO_N "checking for $compiler opt 853@@ -17250,6 +17472,11 @@ echo $ECHO_N "checking for $compiler opt
821 esac 854 esac
822 ;; 855 ;;
823  856
824+ interix3*) 857+ interix3*)
825+ # Interix 3.0-3.5 -fPIC option generates borked code. 858+ # Interix 3.0-3.5 -fPIC option generates borked code.
826+ # (Instead, shlibs are relocated at runtime.) 859+ # (Instead, shlibs are relocated at runtime.)
827+ ;; 860+ ;;
828+ 861+
829 *) 862 *)
830 lt_prog_compiler_pic_GCJ='-fPIC' 863 lt_prog_compiler_pic_GCJ='-fPIC'
831 ;; 864 ;;
832@@ -17404,6 +17634,10 @@ echo $ECHO_N "checking for $compiler opt 865@@ -17404,6 +17631,10 @@ echo $ECHO_N "checking for $compiler opt
833 lt_prog_compiler_static_GCJ='-Bstatic' 866 lt_prog_compiler_static_GCJ='-Bstatic'
834 ;; 867 ;;
835  868
836+ nto-qnx*) 869+ nto-qnx*)
837+ lt_prog_compiler_pic_GCJ='-fPIC' 870+ lt_prog_compiler_pic_GCJ='-fPIC'
838+ ;; 871+ ;;
839+ 872+
840 *) 873 *)
841 lt_prog_compiler_can_build_shared_GCJ=no 874 lt_prog_compiler_can_build_shared_GCJ=no
842 ;; 875 ;;
843@@ -17641,7 +17875,10 @@ echo $ECHO_N "checking whether the $comp 876@@ -17641,7 +17872,10 @@ echo $ECHO_N "checking whether the $comp
844 *) break;; 877 *) break;;
845 esac 878 esac
846 done 879 done
847-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 880-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
848+# Return the actual command name, not our pkgsrc wrapper name because several 881+# Return the actual command name, not our pkgsrc wrapper name because several
849+# decisions are made only based on compiler names 882+# decisions are made only based on compiler names
850+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 883+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
851+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 884+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
852  885
853 case $host_os in 886 case $host_os in
854 cygwin* | mingw* | pw32*) 887 cygwin* | mingw* | pw32*)
855@@ -17810,6 +18047,17 @@ EOF 888@@ -17810,6 +18044,17 @@ EOF
856 fi 889 fi
857 ;; 890 ;;
858  891
859+ interix3*) 892+ interix3*)
860+ # Oy, what a hack. 893+ # Oy, what a hack.
861+ # Because shlibs are not compiled -fPIC due to broken code, we must 894+ # Because shlibs are not compiled -fPIC due to broken code, we must
862+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 895+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
863+ # all libraries, leading to runtime relocations -- slow and very 896+ # all libraries, leading to runtime relocations -- slow and very
864+ # memory consuming. To do this, we pick a random 256KB-aligned 897+ # memory consuming. To do this, we pick a random 256KB-aligned
865+ # start address between 0x50000000 and 0x6ffc0000 at link time. 898+ # start address between 0x50000000 and 0x6ffc0000 at link time.
866+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 899+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
867+ archive_expsym_cmds_GCJ='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 900+ archive_expsym_cmds_GCJ='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
868+ ;; 901+ ;;
869+ 902+
870 netbsd*) 903 netbsd*)
871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
872 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 905 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
873@@ -17875,6 +18123,11 @@ _LT_EOF 906@@ -17875,6 +18120,11 @@ _LT_EOF
874 hardcode_shlibpath_var_GCJ=no 907 hardcode_shlibpath_var_GCJ=no
875 ;; 908 ;;
876  909
877+ nto-qnx*) 910+ nto-qnx*)
878+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 911+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
879+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 912+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
880+ ;; 913+ ;;
881+ 914+
882 *) 915 *)
883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
884 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 917 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
885@@ -18341,6 +18594,21 @@ if test -z "$aix_libpath"; then aix_libp 918@@ -18341,6 +18591,21 @@ if test -z "$aix_libpath"; then aix_libp
886 fi 919 fi
887 ;; 920 ;;
888  921
889+ interix3*) 922+ interix3*)
890+ # Oy, what a hack. 923+ # Oy, what a hack.
891+ # Because shlibs are not compiled -fPIC due to broken code, we must 924+ # Because shlibs are not compiled -fPIC due to broken code, we must
892+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for 925+ # choose an --image-base. Otherwise, 0x10000000 will be chosen for
893+ # all libraries, leading to runtime relocations -- slow and very 926+ # all libraries, leading to runtime relocations -- slow and very
894+ # memory consuming. To do this, we pick a random 256KB-aligned 927+ # memory consuming. To do this, we pick a random 256KB-aligned
895+ # start address between 0x50000000 and 0x6ffc0000 at link time. 928+ # start address between 0x50000000 and 0x6ffc0000 at link time.
896+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 929+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
897+ archive_expsym_cmds_GCJ='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib' 930+ archive_expsym_cmds_GCJ='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
898+ export_dynamic_flag_spec_GCJ='${wl}-E' 931+ export_dynamic_flag_spec_GCJ='${wl}-E'
899+ hardcode_direct_GCJ=yes 932+ hardcode_direct_GCJ=yes
900+ hardcode_libdir_flag_spec_GCJ='${wl}-h,$libdir' 933+ hardcode_libdir_flag_spec_GCJ='${wl}-h,$libdir'
901+ hardcode_shlibpath_var_GCJ=no 934+ hardcode_shlibpath_var_GCJ=no
902+ ;; 935+ ;;
903+ 936+
904 irix5* | irix6* | nonstopux*) 937 irix5* | irix6* | nonstopux*)
905 if test "$GCC" = yes; then 938 if test "$GCC" = yes; then
906 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 939 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
907@@ -18566,6 +18834,13 @@ if test -z "$aix_libpath"; then aix_libp 940@@ -18566,6 +18831,13 @@ if test -z "$aix_libpath"; then aix_libp
908 hardcode_shlibpath_var_GCJ=no 941 hardcode_shlibpath_var_GCJ=no
909 ;; 942 ;;
910  943
911+ nto-qnx*) 944+ nto-qnx*)
912+ archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' 945+ archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
913+ hardcode_libdir_flag_spec_GCJ='-R$libdir' 946+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
914+ hardcode_direct_GCJ=yes 947+ hardcode_direct_GCJ=yes
915+ hardcode_shlibpath_var_GCJ=no 948+ hardcode_shlibpath_var_GCJ=no
916+ ;; 949+ ;;
917+ 950+
918 *) 951 *)
919 ld_shlibs_GCJ=no 952 ld_shlibs_GCJ=no
920 ;; 953 ;;
921@@ -18731,6 +19006,7 @@ beos*) 954@@ -18731,6 +19003,7 @@ beos*)
922 bsdi[45]*) 955 bsdi[45]*)
923 version_type=linux 956 version_type=linux
924 need_version=no 957 need_version=no
925+ need_lib_prefix=no 958+ need_lib_prefix=no
926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
927 soname_spec='${libname}${release}${shared_ext}$major' 960 soname_spec='${libname}${release}${shared_ext}$major'
928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
929@@ -18828,7 +19104,7 @@ freebsd1*) 962@@ -18828,9 +19101,7 @@ freebsd1*)
930 dynamic_linker=no 963 dynamic_linker=no
931 ;; 964 ;;
932  965
933-freebsd* | dragonfly*) 966-freebsd* | dragonfly*)
 967- # DragonFly does not have aout. When/if they implement a new
 968- # versioning mechanism, adjust this.
934+freebsd*) 969+freebsd*)
935 # DragonFly does not have aout. When/if they implement a new 
936 # versioning mechanism, adjust this. 
937 if test -x /usr/bin/objformat; then 970 if test -x /usr/bin/objformat; then
938@@ -18842,7 +19118,7 @@ freebsd* | dragonfly*) 971 objformat=`/usr/bin/objformat`
 972 else
 973@@ -18842,7 +19113,7 @@ freebsd* | dragonfly*)
939 version_type=freebsd-$objformat 974 version_type=freebsd-$objformat
940 case $version_type in 975 case $version_type in
941 freebsd-elf*) 976 freebsd-elf*)
942- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 977- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
943+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 978+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
944 need_version=no 979 need_version=no
945 need_lib_prefix=no 980 need_lib_prefix=no
946 ;; 981 ;;
947@@ -18872,6 +19148,16 @@ freebsd* | dragonfly*) 982@@ -18865,13 +19136,24 @@ freebsd* | dragonfly*)
 983 shlibpath_overrides_runpath=no
 984 hardcode_into_libs=yes
 985 ;;
 986- *) # from 4.6 on, and DragonFly
 987+ *) # from 4.6 on
 988 shlibpath_overrides_runpath=yes
 989 hardcode_into_libs=yes
 990 ;;
948 esac 991 esac
949 ;; 992 ;;
950  993
951+dragonfly*) 994+dragonfly*)
952+ version_type=linux # XXX tv this should be =linux; current selection has problems 995+ version_type=linux
953+ need_version=no 996+ need_version=no
954+ need_lib_prefix=no 997+ need_lib_prefix=no
955+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 998+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 999+ soname_spec='${libname}${release}${shared_ext}$major'
956+ shlibpath_var=LD_LIBRARY_PATH 1000+ shlibpath_var=LD_LIBRARY_PATH
957+ shlibpath_overrides_runpath=no 1001+ shlibpath_overrides_runpath=no
958+ hardcode_into_libs=yes 1002+ hardcode_into_libs=yes
959+ ;; 1003+ ;;
960+ 1004+
961 gnu*) 1005 gnu*)
962 version_type=linux 1006 version_type=linux
963 need_lib_prefix=no 1007 need_lib_prefix=no
964@@ -18940,15 +19226,22 @@ interix[3-9]*) 1008@@ -18940,15 +19222,22 @@ interix[3-9]*)
965 hardcode_into_libs=yes 1009 hardcode_into_libs=yes
966 ;; 1010 ;;
967  1011
968+interix3*) 1012+interix3*)
969+ version_type=linux 1013+ version_type=linux
970+ need_lib_prefix=no 1014+ need_lib_prefix=no
971+ need_version=no 1015+ need_version=no
972+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1016+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
973+ soname_spec='${libname}${release}${shared_ext}$major' 1017+ soname_spec='${libname}${release}${shared_ext}$major'
974+ dynamic_linker='Interix 3.x ld.so' 1018+ dynamic_linker='Interix 3.x ld.so'
975+ shlibpath_var=LD_LIBRARY_PATH 1019+ shlibpath_var=LD_LIBRARY_PATH
976+ shlibpath_overrides_runpath=yes 1020+ shlibpath_overrides_runpath=yes
977+ hardcode_into_libs=yes 1021+ hardcode_into_libs=yes
@@ -980,99 +1024,99 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2 @@ -980,99 +1024,99 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2
980 irix5* | irix6* | nonstopux*) 1024 irix5* | irix6* | nonstopux*)
981 case $host_os in 1025 case $host_os in
982 nonstopux*) version_type=nonstopux ;; 1026 nonstopux*) version_type=nonstopux ;;
983- *) 1027- *)
984- if test "$lt_cv_prog_gnu_ld" = yes; then 1028- if test "$lt_cv_prog_gnu_ld" = yes; then
985- version_type=linux 1029- version_type=linux
986- else 1030- else
987- version_type=irix 1031- version_type=irix
988- fi ;; 1032- fi ;;
989+ *) version_type=irix ;; 1033+ *) version_type=irix ;;
990 esac 1034 esac
991 need_lib_prefix=no 1035 need_lib_prefix=no
992 need_version=no 1036 need_version=no
993@@ -19013,11 +19306,11 @@ linux* | k*bsd*-gnu) 1037@@ -19013,11 +19302,11 @@ linux* | k*bsd*-gnu)
994 ;; 1038 ;;
995  1039
996 netbsd*) 1040 netbsd*)
997- version_type=sunos 1041- version_type=sunos
998+ version_type=linux 1042+ version_type=linux
999 need_lib_prefix=no 1043 need_lib_prefix=no
1000 need_version=no 1044 need_version=no
1001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 1045 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1002- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1046- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1003+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2' 1047+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
1004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1005 dynamic_linker='NetBSD (a.out) ld.so' 1049 dynamic_linker='NetBSD (a.out) ld.so'
1006 else 1050 else
1007@@ -19042,13 +19335,14 @@ nto-qnx*) 1051@@ -19042,13 +19331,14 @@ nto-qnx*)
1008 need_lib_prefix=no 1052 need_lib_prefix=no
1009 need_version=no 1053 need_version=no
1010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1011+ dynamic_linker='QNX libc.so' 1055+ dynamic_linker='QNX libc.so'
1012 soname_spec='${libname}${release}${shared_ext}$major' 1056 soname_spec='${libname}${release}${shared_ext}$major'
1013 shlibpath_var=LD_LIBRARY_PATH 1057 shlibpath_var=LD_LIBRARY_PATH
1014 shlibpath_overrides_runpath=yes 1058 shlibpath_overrides_runpath=yes
1015 ;; 1059 ;;
1016  1060
1017 openbsd*) 1061 openbsd*)
1018- version_type=sunos 1062- version_type=sunos
1019+ version_type=linux 1063+ version_type=linux
1020 sys_lib_dlsearch_path_spec="/usr/lib" 1064 sys_lib_dlsearch_path_spec="/usr/lib"
1021 need_lib_prefix=no 1065 need_lib_prefix=no
1022 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 1066 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1023@@ -19056,7 +19350,7 @@ openbsd*) 1067@@ -19056,7 +19346,7 @@ openbsd*)
1024 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 1068 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1025 *) need_version=no ;; 1069 *) need_version=no ;;
1026 esac 1070 esac
1027- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1071- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1028+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1072+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1030 shlibpath_var=LD_LIBRARY_PATH 1074 shlibpath_var=LD_LIBRARY_PATH
1031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 1075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1032@@ -19733,7 +20027,10 @@ for cc_temp in $compiler""; do 1076@@ -19733,7 +20023,10 @@ for cc_temp in $compiler""; do
1033 *) break;; 1077 *) break;;
1034 esac 1078 esac
1035 done 1079 done
1036-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1080-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1037+# Return the actual command name, not our pkgsrc wrapper name because several 1081+# Return the actual command name, not our pkgsrc wrapper name because several
1038+# decisions are made only based on compiler names 1082+# decisions are made only based on compiler names
1039+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp" 1083+new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
1040+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1084+cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1041  1085
1042 lt_cv_prog_compiler_c_o_RC=yes 1086 lt_cv_prog_compiler_c_o_RC=yes
1043  1087
1044@@ -21414,7 +21711,7 @@ else 1088@@ -21414,7 +21707,7 @@ else
1045 # we want this `case' here to explicitly catch those versions. 1089 # we want this `case' here to explicitly catch those versions.
1046 libltdl_cv_sys_dlopen_deplibs=unknown 1090 libltdl_cv_sys_dlopen_deplibs=unknown
1047 ;; 1091 ;;
1048- aix[4-9]*) 1092- aix[4-9]*)
1049+ aix[45]*) 1093+ aix[45]*)
1050 libltdl_cv_sys_dlopen_deplibs=yes 1094 libltdl_cv_sys_dlopen_deplibs=yes
1051 ;; 1095 ;;
1052 darwin*) 1096 darwin*)
1053@@ -21422,10 +21719,7 @@ else 1097@@ -21422,10 +21715,7 @@ else
1054 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 1098 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
1055 libltdl_cv_sys_dlopen_deplibs=yes 1099 libltdl_cv_sys_dlopen_deplibs=yes
1056 ;; 1100 ;;
1057- freebsd* | dragonfly*) 1101- freebsd* | dragonfly*)
1058- libltdl_cv_sys_dlopen_deplibs=yes 1102- libltdl_cv_sys_dlopen_deplibs=yes
1059- ;; 1103- ;;
1060- gnu* | linux* | k*bsd*-gnu) 1104- gnu* | linux* | k*bsd*-gnu)
1061+ gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 1105+ gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
1062 # GNU and its variants, using gnu ld.so (Glibc) 1106 # GNU and its variants, using gnu ld.so (Glibc)
1063 libltdl_cv_sys_dlopen_deplibs=yes 1107 libltdl_cv_sys_dlopen_deplibs=yes
1064 ;; 1108 ;;
1065@@ -23981,22 +24275,21 @@ echo "$as_me: $ac_file is unchanged" >&6 1109@@ -23981,22 +24271,21 @@ echo "$as_me: $ac_file is unchanged" >&6
1066 fi 1110 fi
1067 rm -f "$tmp/out12" 1111 rm -f "$tmp/out12"
1068 # Compute $ac_file's index in $config_headers. 1112 # Compute $ac_file's index in $config_headers.
1069-_am_arg=$ac_file 1113-_am_arg=$ac_file
1070 _am_stamp_count=1 1114 _am_stamp_count=1
1071 for _am_header in $config_headers :; do 1115 for _am_header in $config_headers :; do
1072 case $_am_header in 1116 case $_am_header in
1073- $_am_arg | $_am_arg:* ) 1117- $_am_arg | $_am_arg:* )
1074+ $ac_file | $ac_file:* ) 1118+ $ac_file | $ac_file:* )
1075 break ;; 1119 break ;;
1076 * ) 1120 * )
1077 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 1121 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1078 esac 1122 esac
@@ -1082,22 +1126,22 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2 @@ -1082,22 +1126,22 @@ $NetBSD: patch-ad,v 1.33 2008/11/19 01:2
1082- X"$_am_arg" : 'X\(//\)[^/]' \| \ 1126- X"$_am_arg" : 'X\(//\)[^/]' \| \
1083- X"$_am_arg" : 'X\(//\)$' \| \ 1127- X"$_am_arg" : 'X\(//\)$' \| \
1084- X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 1128- X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1085-echo X"$_am_arg" | 1129-echo X"$_am_arg" |
1086+echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 1130+echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
1087+$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1131+$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1088+ X$ac_file : 'X\(//\)[^/]' \| \ 1132+ X$ac_file : 'X\(//\)[^/]' \| \
1089+ X$ac_file : 'X\(//\)$' \| \ 1133+ X$ac_file : 'X\(//\)$' \| \
1090+ X$ac_file : 'X\(/\)' \| . 2>/dev/null || 1134+ X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
1091+echo X$ac_file | 1135+echo X$ac_file |
1092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1093 s//\1/ 1137 s//\1/
1094 q 1138 q
1095@@ -24033,7 +24326,7 @@ echo "$as_me: executing $ac_file command 1139@@ -24033,7 +24322,7 @@ echo "$as_me: executing $ac_file command
1096 # each Makefile.in and add a new line on top of each file to say so. 1140 # each Makefile.in and add a new line on top of each file to say so.
1097 # Grep'ing the whole file is not good either: AIX grep has a line 1141 # Grep'ing the whole file is not good either: AIX grep has a line
1098 # limit of 2048, but all sed's we know have understand at least 4000. 1142 # limit of 2048, but all sed's we know have understand at least 4000.
1099- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 1143- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1100+ if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 1144+ if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
1101 dirpart=`$as_dirname -- "$mf" || 1145 dirpart=`$as_dirname -- "$mf" ||
1102 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1146 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1103 X"$mf" : 'X\(//\)[^/]' \| \ 1147 X"$mf" : 'X\(//\)[^/]' \| \