Changeset 2290
- Timestamp:
- 10/22/07 14:00:12 (6 years ago)
- Location:
- pkg/main/gdm/trunk/debian
- Files:
-
- 17 added
- 15 edited
-
README.Debian (modified) (4 diffs)
-
Xsession (modified) (3 diffs)
-
changelog (modified) (3 diffs)
-
compat (added)
-
control (modified) (2 diffs)
-
control.in (modified) (2 diffs)
-
copyright (modified) (1 diff)
-
debian-moreblue.shar (modified) (10 diffs)
-
docs (modified) (1 diff)
-
extract-locales (modified) (1 diff)
-
gdm-autologin.pam (modified) (1 diff)
-
gdm.8.pod (added)
-
gdm.config (added)
-
gdm.dirs (added)
-
gdm.init (added)
-
gdm.install (added)
-
gdm.manpages (added)
-
gdm.menu (added)
-
gdm.pam (modified) (1 diff)
-
gdm.postinst (added)
-
gdm.postrm (added)
-
gdm.prerm (added)
-
gdm.templates (added)
-
gdmXnestWrapper (added)
-
gdmchooser.8.pod (added)
-
gdmflexiserver.1.pod (added)
-
gdmlogin.8.pod (added)
-
init (modified) (1 diff)
-
patches/01_parsix_gdmsetup_desktop.patch (modified) (1 diff)
-
patches/70_mandatory-relibtoolize.patch (modified) (180 diffs)
-
patches/series (added)
-
watch (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pkg/main/gdm/trunk/debian/README.Debian
r138 r2290 1 gdm for Debian 2 -------------- 1 GDM for Debian 2 ============== 3 4 "I get ugly fonts" 5 ------------------ 6 7 In the past, as a quick workaround, GDM imposed a 96 DPI settings by 8 passing "-dpi 96" to the X server on startup. This is a bad idea has 9 there's no reason to override standard DPI detection mechanisms for all 10 screens which might or might not be 96 DPI screens. 11 12 DPI should be computed automatically based on the information on your 13 screen that Xorg gets; ideally, Xorg would get the DPI right, but you 14 can help Xorg by configuring it with your exact screen properties. 15 If it's too complicated, you may still get the old behavior by 16 setting: 17 [server-Standard] 18 command=/usr/bin/X -dpi 96 -audit 0 19 in your gdm.conf. See the defaults.conf file to see how it's configured 20 by default. 21 22 23 Face Browser 24 ------------ 3 25 4 26 If you enable the face browser in /etc/gdm/gdm.conf, gdm will look … … 10 32 /etc/gdm/gdm.conf 11 33 34 35 Screen Saver 36 ------------ 37 12 38 If you want a screensaver running with the greeter, you should use the 13 39 BackgroundProgram option in /etc/gdm/gdm.conf, or make sure if you start 14 40 a gtk program in the PreSession script, that it is started with the gdm 15 41 userid, and not root 42 43 44 Secure System Menu 45 ------------------ 16 46 17 47 Debian versions 2.4.1.6-1 through 2.8.0.6-2 featured a … … 29 59 into all the parts of the GNOME desktop that it would now impact. 30 60 61 62 Translation of the Debconf templates 63 ------------------------------------ 64 31 65 A note to translators about the debconf templates -- translations 32 66 should be sent to the xdm package. I don't use gettext-based … … 34 68 package, and don't have any that are not shared. 35 69 36 -- Ryan Murray <rmurray@debian.org>, Wed Apr 26 01:32:22 PDT 2006 -
pkg/main/gdm/trunk/debian/Xsession
r138 r2290 140 140 freetemp=`which freetemp 2>/dev/null` 141 141 if [ -n "$freetemp" ] ; then 142 "$freetemp"142 "$freetemp" 143 143 fi 144 144 … … 163 163 if [ -n "$GDM_LANG" ]; then 164 164 if [ -n "$LANGUAGE" ]; then 165 if echo "$LANGUAGE" | grep -q -- "^$GDM_LANG"; then166 :167 else168 unset LANGUAGE169 fi165 if echo "$LANGUAGE" | grep -q -- "^$GDM_LANG"; then 166 : 167 else 168 unset LANGUAGE 169 fi 170 170 fi 171 171 fi … … 192 192 193 193 if [ -n "$zenity" ] ; then 194 "$zenity" --info --text "`gettextfunc "I could not start your session and so I have started the failsafe xterm session. Windows now have focus only if you have your cursor above them. To get out of this mode type 'exit' in the window in the upper left corner"`"194 "$zenity" --info --text "`gettextfunc "I could not start your session and so I have started the failsafe xterm session. Windows now have focus only if you have your cursor above them. To get out of this mode type 'exit' in the window in the upper left corner"`" 195 195 fi 196 196 -
pkg/main/gdm/trunk/debian/changelog
r2085 r2290 1 gdm (2.20.0-parsix2) unstable; urgency=low 2 3 * More patches from Ubuntu and Debian 4 5 -- Alan Baghumian <alan@technotux.org> Fri, 21 Sep 2007 10:39:52 +0000 6 7 gdm (2.20.0-parsix1) unstable; urgency=low 1 gdm (2.20.1-parsix1) unstable; urgency=low 8 2 9 3 * New upstream stable release 10 * Regenerated 01_parsix_gdmsetup_desktop.patch 11 12 -- Alan Baghumian <alan@technotux.org> Fri, 21 Sep 2007 06:51:42 +0000 13 14 gdm (2.18.4-parsix1) barry; urgency=low 15 16 * New upstream release, No API change 17 18 -- Alan Baghumian <alan@technotux.org> Tue, 31 Jul 2007 20:05:41 +0330 19 20 gdm (2.18.3-parsix1) barry; urgency=low 21 22 * New upstream release 23 * Updated 01_parsix_gdmsetup_desktop.patch 24 25 -- Alan Baghumian <alan@technotux.org> Thu, 05 Jul 2007 09:18:46 +0330 26 27 gdm (2.18.2-parsix2) barry; urgency=low 28 29 * Updated 01_parsix_gdmsetup_desktop.patch, #29 30 31 -- Alan Baghumian <alan@technotux.org> Fri, 01 Jun 2007 11:00:54 +0330 32 33 gdm (2.18.2-parsix1) barry; urgency=low 34 35 * New upstream release 36 37 -- Alan Baghumian <alan@technotux.org> Tue, 29 May 2007 10:51:16 +0330 38 39 gdm (2.18.1-parsix4) barry; urgency=low 40 41 * Reverted Debian patches 42 43 -- Alan Baghumian <alan@technotux.org> Thu, 17 May 2007 18:17:40 +0330 44 45 gdm (2.18.1-parsix3) barry; urgency=low 46 47 * Removed broken gdm patch 48 49 -- Alan Baghumian <alan@technotux.org> Wed, 16 May 2007 10:30:44 +0330 50 51 gdm (2.18.1-parsix2) barry; urgency=low 52 53 * Patches sync'd with Debian 54 * Added a nasty hack to fix #25 55 56 -- Alan Baghumian <alan@technotux.org> Tue, 15 May 2007 08:05:57 +0330 57 58 gdm (2.18.1-parsix1) barry; urgency=low 59 60 * New upstream release 61 62 -- Alan Baghumian <alan@technotux.org> Mon, 9 Apr 2007 09:25:44 +0330 63 64 gdm (2.18.0-parsix1) barry; urgency=low 65 66 * New upstream release 67 68 -- Alan Baghumian <alan@technotux.org> Fri, 6 Apr 2007 11:49:42 +0330 69 70 gdm (2.16.5-parsix3) unstable; urgency=low 71 72 * Updated debian/watch file. 73 74 -- Alan Baghumian <alan@technotux.org> Fri, 30 Mar 2007 11:37:59 +0330 75 76 gdm (2.16.5-parsix2) unstable; urgency=low 77 78 * Fixed running gdmsetup within the GNOME desktop. Bug #10. 79 80 -- Alan Baghumian <alan@technotux.org> Thu, 01 Mar 2007 18:16:43 +0330 81 82 gdm (2.16.5-parsix1) unstable; urgency=low 83 4 * Refreshed 70_mandatory-relibtoolize.patch and 5 01_parsix_gdmsetup_desktop.patch 6 7 -- Alan Baghumian <alan@technotux.org> Mon, 22 Oct 2007 15:19:10 +0330 8 9 gdm (2.20.0-2) unstable; urgency=high 10 11 * Re-add bug ids and references to patch 64_vt-auto-allocation-fix. 12 * Clean whitespace in control. 13 * Conflict with fast-user-switch-applet (<< 2.17.4), gnome-session (<< 14 2.19.2), gnome-screensaver (<< 2.17.7) for the GDM socket path transition. 15 16 -- Loic Minier <lool@dooz.org> Sat, 06 Oct 2007 20:02:06 +0200 17 18 gdm (2.20.0-1) unstable; urgency=low 19 20 [ Loic Minier ] 21 * Pass --system to delgroup and deluser; thanks Vincent Bernat. 22 * Recommend xserver-xorg; closes: #436665. 23 24 [ Josselin Mouette ] 84 25 * New upstream release. 85 86 -- Alan Baghumian <alan@technotux.org> Wed, 31 Jan 2007 08:27:11 +0330 26 * Update build-dependencies. 27 * Refresh patches. 28 * 35_gdm.conf.patch: 29 + Use s2ram as suspend command; suggest uswsusp. 30 + Set UseCirclesInEntry. 31 * 41_config-files.patch: the OLD_CONF part is obsolete. 32 * Drop patches integrated upstream: 33 - 42_timed-login.patch 34 - 48_random-greeter-theme.patch 35 - 51_misc-env-var-fixes.patch 36 - 57_gdm-is-local.patch 37 - 59_standard-x-server-detection.patch 38 - 60_logname-is-log-name-in-PostLogin.patch 39 - 61_gdm-manpage-section.patch 40 - 67_C-locale-fallback.patch 41 - 69_misc-config-typos.patch 42 - 90_from_svn_fix_gdm_restart.patch 43 * 64_vt-auto-allocation-fix.patch: deactivated for now, it seems to 44 "fix" only part of the binaries, and I don't really know why. 45 * Enable secure remote connection; build-depend on zenity. 46 * gdm.install: 47 + Install desktop files in /usr/share/applications. 48 + Install the remote SSH session. 49 * gdm.8.pod, gdmlogin.8.pod: fix encoding. 50 * rules: don't pass ${prefix} to --libexecdir, it keeps as is in some 51 substitutions. 52 * gdm.menu: update to the latest menu policy. 53 54 -- Josselin Mouette <joss@debian.org> Sat, 06 Oct 2007 18:39:23 +0200 55 56 gdm (2.18.4-1) unstable; urgency=high 57 58 [ Josselin Mouette ] 59 * 43_gdmphotosetup.desktop.patch: set NoDisplay=true for 60 gdmphotosetup, which duplicates gnome-about-me's functionality. 61 62 [ Loic Minier ] 63 * Stop imposing the DPI settings; this was a quick fix that users may opt to 64 do, but the correct thing to do is to fix the Xorg configuration on these 65 systems or fix the generation of this config; document this in 66 README.Debian; closes: #278026, #339707, #364545. 67 68 [ Kilian Krause ] 69 * Add get-orig-source target. 70 71 [ Loic Minier ] 72 * New upstream stable release. 73 - SECURITY: Fixes denial of service attack where the user can crash the 74 GDM daemon with a carefuly crafted GDM socket command and cause GDM to 75 stop managing future displays; CVE-2007-3381. 76 - Drop patch 91_from-svn_gdm-init-hints-and-af-family-in-..., merged 77 upstream. 78 79 -- Loic Minier <lool@dooz.org> Tue, 31 Jul 2007 18:34:07 +0200 80 81 gdm (2.18.3-4) unstable; urgency=high 82 83 * Update 84 91_from-svn_gdm-init-hints-and-af-family-in-gdm_peek_local_address_list to 85 not set AF_INET6; thanks Ely Levy; GNOME #455190; closes: #432227. 86 87 -- Loic Minier <lool@dooz.org> Thu, 12 Jul 2007 17:43:04 +0200 88 89 gdm (2.18.3-3) unstable; urgency=high 90 91 * New patch, 92 91_from-svn_gdm-init-hints-and-af-family-in-gdm_peek_local_address_list, 93 fixes crash when using IPv6; thanks Ely Levy; GNOME #455190; from 94 SVN r5044; closes: #432227. 95 96 -- Loic Minier <lool@dooz.org> Tue, 10 Jul 2007 15:48:01 +0200 97 98 gdm (2.18.3-2) unstable; urgency=medium 99 100 * Cleanups. 101 * Fix permissions of gdmXnestWrapper; closes: #432153. 102 * Drop dep on debconf which is already added by ${misc:Depends}; thanks 103 Michael Biebl; closes: #431698. 104 105 -- Loic Minier <lool@dooz.org> Wed, 04 Jul 2007 14:30:53 +0200 106 107 gdm (2.18.3-1) unstable; urgency=low 108 109 [ Josselin Mouette ] 110 * gdmXnestWrapper: provide a wrapper script for both nested X servers. 111 + gdm.install: install it. 112 + 56_xnest-wrapper.patch: force its use in configure.ac. 113 + 70_mandatory-relibtoolize.patch: refresh configure. 114 + Stop build-depending on xserver-xephyr. 115 * 35_gdm.conf.patch: set Clearlooks as the default GTK+ theme. 116 117 [ Loic Minier ] 118 * Fix tabs versus spaces in gdm.install. 119 120 [ Josselin Mouette ] 121 * Move the nested servers to Recommends. 122 * Suggest hibernate instead of apmd. 123 * 35_gdm.conf.patch: use hibernate as the default suspend command. 124 125 [ Loic Minier ] 126 * New upstream stable release; bug fix and translation. 127 - Drop patch 58_is-local-check-null, a more complete fix was added 128 upstream; closes: #422483. 129 - Update autotools patch, 70_mandatory-relibtoolize, and update patch 130 header to use automake and aclocal 1.10 instead of 1.9. 131 132 -- Loic Minier <lool@dooz.org> Tue, 03 Jul 2007 22:06:34 +0200 133 134 gdm (2.18.2-1) unstable; urgency=low 135 136 [ Sam Morris ] 137 * Add support for DEB_BUILD_OPTIONS noopt option; closes: #347421. 138 139 [ Loic Minier ] 140 * Pass -Wall to CFLAGS too. 141 * Build-depend on xserver-xephyr; thanks Sven Arvidsson; closes: #422287. 142 * Rework 30_hardcode-standard-x-server and rename to 143 59_standard-x-server-detection; update 70_mandatory-relibtoolize. 144 * Drop patch 43_clearenv-no-lang as it seems useless -- it only removes a 145 function, not calls to this function. 146 * New patch, 58_is-local-check-null, checks for NULL ia in 147 gdm_is_local_addr6() and gdm_is_local_addr() 148 * Drop patch 53_remove-ok-and-cancel-from-included-themes, not needed 149 anymore as the buttons work fine. 150 * Update patch 58_is-local-check-null with an upstream patch from 151 GNOME #436725. 152 153 [ Josselin Mouette ] 154 * 35_gdm.conf.patch: add /etc/dm/Sessions/ to the list of directories 155 to search for X sessions. 156 157 [ Loic Minier ] 158 * New upstream stable release. 159 - Refresh patches 42_timed-login, 50_close-fds, 51_misc-env-var-fixes, 160 61_gdm-manpage-section, 90_from_svn_fix_gdm_restart to apply cleanly. 161 - Drop patches 63_buf-decl, 65_french-translation-typo, 162 68_pam-authinfo-unavail, merged upstream. 163 - Update relibtoolizing patch, 70_mandatory-relibtoolize. 164 165 -- Loic Minier <lool@dooz.org> Tue, 29 May 2007 10:47:11 +0200 166 167 gdm (2.18.1-2) unstable; urgency=low 168 169 * Fix a packaging mistake introduced while refactoring the install which 170 overwrote Debian's /etc/gdm/Xsession with upstream's. 171 * Set GNOME Team as Maintainer. 172 173 -- Loic Minier <lool@dooz.org> Thu, 03 May 2007 14:42:24 +0200 174 175 gdm (2.18.1-1) unstable; urgency=low 176 177 * Adopt package; set myself as Maintainer; thanks Ryan Murray for your 178 maintenance until now! 179 * Ack Porter NMU by Aurélien Jarno; thanks! 180 * GNOME Team uploads. 181 - Use a control.in. 182 - Build-depend on gnome-pkg-tools and include uploaders.mk. 183 * Use the quilt patch system instead of keeping changes in the .diff.gz. 184 - Apply / unapply patches in rules; "patch" is PHONY. 185 - Split the current .diff.gz into 20 patches. 186 - Create a series file with all patches. 187 - Build-depend on quilt. 188 - "make distclean" before unpatching. 189 * New patch, 68_doc-build-add-revnumber, fixes build with newer 190 gnome-doc-utils. 191 * Use full path to gdmsetup in menu file. 192 * Fix "closes:" in 2.2.5.2-1 and 2.13.0.10-1. 193 * Version the debhelper build-dep to >= 4 and set Debhelper compatibility 194 level via debian/compat to 4 instead of via DH_COMPAT in rules. 195 * Depend on "debconf (>= 0.5) | debconf-2.0" instead of the only virtual 196 "debconf-2.0". 197 * Wrap build-deps and deps. 198 * Update copyright file. 199 - Use full download URL. 200 - Include full GPL blob. 201 - List GNOME Team as new maintainer. 202 * Include AUTHORS in docs. 203 * Compute DEB_VERSION, DEB_NOEPOCH_VERSION, and DEB_UPSTREAM_VERSION 204 similarly to CDBS and finally compute MAJOR_MINOR for the GNOME version 205 included in the footer of man pages. 206 * Update watch file to track all stable releases. 207 * Misc cleanups. 208 * Bump up Debhelper compatibility level to 5. 209 * Rework the install / binary-arch targets completely to me more 210 debhelper-ish. 211 - Stop shipping *.a and *.la files for Gtk modules. 212 * Pass --disable-scrollkeeper to configure. 213 * Factorize manpages generation. 214 * Rename various debian/* files to debian/gdm.*. 215 * Add ${misc:Depends}. 216 * Misc updates to debian-moreblue. 217 - Cleanup indentation of this file. 218 - Merge patch by Michael Biebl to properly display wrapped login text; 219 closes: #408043. 220 * Apply update to templates; thanks Christian Perrier; closes: #417981. 221 * Drop postinst upgrade snippet for version <= 2.0-0.beta4.6; upgrades of 222 version before sarge don't have to be supported. 223 * Check for the usability of deluser and delgroup before running these in 224 gdm.postrm. 225 * Start gdm in S30 instead of S21; thanks Sjoerd Simons; closes: #419392. 226 * Rework gdm.postinst to only run version-specific upgrade code during 227 upgrades from these versions and to always run update-rc.d in these cases. 228 * Suggest xserver-xephyr | xnest; closes: #416238. 229 * New patch, 69_misc-config-typos, fixes misc typos in gdm.conf; thanks 230 J S Bygott; closes: #361436. 231 * Configure with --enable-ipv6=yes; GNOME #385451; Ubuntu #75254; 232 closes: #409428. 233 * New upstream releases. 234 - Build-dep on libdbus-glib-1-dev (>= 0.30) for ConsoleKit support. 235 - Refresh patches 30_hardcode-standard-x-server, 41_config-files, 236 42_pam-and-timed-login, 48_random-greeter-theme, 237 53_remove-ok-and-cancel-from-included-themes, 57_gdm-is-local, 238 62_reference-manual-docbook-entity-reference, 64_vt-auto-allocation-fix, 239 67_C-locale-fallback, 68_doc-build-add-revnumber, 69_misc-config-typos. 240 - Drop patches: 241 . 55_hurd-no-pipe-buf, merged upstream. 242 . 68_doc-build-add-revnumber: merged upstream. 243 - Update patches: 244 . 35_gdm.conf: Update reference to System Configuration file. 245 . 45_use-gksu-for-gdmsetup: Update to use the full path to gdmsetup. 246 . 50_close-fds: Update to match upstream changes which closed even more 247 fds than in the past; convert some Debian specific closes to use 248 VE_IGNORE_EINTR() too; leave the upstream code in the source. 249 . 65_french-translation-typo: Update to upstream rewording of this 250 string. 251 . 70_mandatory-relibtoolize: Relibtoolize. 252 - Works with sites using automounting since 2.17.0; GNOME #356869; 253 closes: #365606. 254 - Fixes typo in German translation with 2.18.1; GNOME #421661; 255 closes: #414387. 256 - Fixes incomprehensible Czech translation with 2.18.1; GNOME #421664; 257 closes: #415274. 258 - Fixed language selection issues since 2.17.5; GNOME #384603; 259 closes: #403928. 260 * Drop "--with-tags=" from configure args; libtool should autodetect this 261 properly. 262 * Build-dep on x11proto-core-dev for XDMCP. 263 * Configure with "--with-prefetch=yes"; PreFetchProgram is empty by default 264 in Debian though. 265 * New patch, 90_from_svn_fix_gdm_restart, fixed restarting of gdm when 266 Ctrl-Alt-Backspace is pressed; from SVN; found in the Ubuntu package. 267 * New patch, 37_manpage-binaries, removes mentions of various executables 268 not present in the Debian package; closes: #357988. 269 * New patch, 66_socket-in-var-run-for-fhs, use /var/run for the gdm_socket 270 file to comply with the FHS and to avoid issues with bootclean; 271 Ubuntu #79620; found in the Ubuntu package. 272 * New patch, 55_use-theme-gtkrc, look for gtk-2.0/gtkrc in the theme 273 directory and use it; found in the Ubuntu package. 274 * New patch, 46_kde-substitude-uid, add X-KDE-SubstituteUID=true to the 275 gdmsetup desktop file to hide the entry for non-admin users in KDE. 276 * Disabling patch 66_socket-in-var-run-for-fhs for now as it requires 277 changes in gnome-session, gnome-panel, and fast-switch-user-applet at the 278 same time; thanks Sébastien Bacher. 279 * Split patches: 280 . 42_pam-and-timed-login into 42_timed-login and 68_pam-authinfo-unavail. 281 . 43_clearenv-no-lang-and-buf-decl into 43_clearenv-no-lang and 282 63_buf-decl. 283 . 50_close-fds into 50_close-fds and 51_misc-env-var-fixes. 284 * Add GNOME bug to 66_socket-in-var-run-for-fhs. 285 286 -- Loic Minier <lool@dooz.org> Wed, 02 May 2007 18:50:19 +0200 287 288 gdm (2.16.4-1.1) unstable; urgency=low 289 290 * Porter NMU. 291 * Disable SELinux on non-Linux architectures (Hurd, GNU/kFreeBSD). 292 Fix gui/gdmchoosed.c wrt to PIPE_BUF (patch from upstream) to 293 support Hurd. (closes: #313008). 294 295 -- Aurelien Jarno <aurel32@debian.org> Mon, 26 Feb 2007 11:51:48 +0100 87 296 88 297 gdm (2.16.4-1) unstable; urgency=high … … 172 381 that looks for $HOME/xorg.conf before other files in /etc to look 173 382 at our configfile, and not one that might be in root's homedir. 174 (closes #250438)383 (closes: #250438) 175 384 * Confirmed that the new version correctly works with utf-8 locales 176 385 (closes: #277953) … … 447 656 * Only do the password stuff if the gdm user doesn't exist (closes: #119385) 448 657 * add pam_limits to the installed pam file (closes: #118335) 449 * Correct debconf for selection of display managers (closes : #115776)658 * Correct debconf for selection of display managers (closes: #115776) 450 659 * Add -xkb option to Xnest startup (closes: #111783) 451 660 -
pkg/main/gdm/trunk/debian/control
r2240 r2290 5 5 Uploaders: Josselin Mouette <joss@debian.org>, Loic Minier <lool@dooz.org> 6 6 Build-Depends: libpam0g-dev, 7 quilt,8 7 libdbus-glib-1-dev (>= 0.30), 9 8 libglib2.0-dev (>= 2.8.0), … … 26 25 libxt-dev, 27 26 libxdmcp-dev, 28 libxcomposite-dev,29 libxdamage-dev,30 27 libxinerama-dev, 31 28 libdmx-dev, -
pkg/main/gdm/trunk/debian/control.in
r2240 r2290 5 5 Uploaders: @GNOME_TEAM@ 6 6 Build-Depends: libpam0g-dev, 7 quilt,8 7 libdbus-glib-1-dev (>= 0.30), 9 8 libglib2.0-dev (>= 2.8.0), … … 27 26 libxdmcp-dev, 28 27 libxinerama-dev, 29 libxcomposite-dev, 30 libxdamage-dev, 31 libdmx-dev, 28 libdmx-dev, 32 29 gnome-doc-utils, 33 30 sharutils, -
pkg/main/gdm/trunk/debian/copyright
r138 r2290 1 1 This package originally Debianised by Steve Haslam <steve@arise.demon.co.uk>, 2 10th March 1999. It was maintained by Raphaël Hertzog <hertzog@debian.org>3 until December 1999. It is now maintained by4 Ryan Murray <rmurray@debian.org>.2 10th March 1999. It was maintained by Raphaël Hertzog <hertzog@debian.org> 3 until December 1999. It was maintained by Ryan Murray <rmurray@debian.org> 4 until May 2007. It is now maintained by the GNOME Team. 5 5 6 6 Copyright (C) 1998, 1999 Martin Kasper Petersen <mkp@SunSITE.auc.dk> 7 7 8 Originally obtained from GNOME: ftp.gnome.org 8 It was downloaded from <http://ftp.gnome.org/pub/GNOME/sources/gdm/> 9 9 10 License: GPL10 License: 11 11 12 On Debian systems, the full text of the GPL can be found at 13 /usr/share/common-licenses/GPL 12 This package is free software; you can redistribute it and/or modify 13 it under the terms of the GNU General Public License as published by 14 the Free Software Foundation; either version 2 of the License, or 15 (at your option) any later version. 16 17 This package is distributed in the hope that it will be useful, 18 but WITHOUT ANY WARRANTY; without even the implied warranty of 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 GNU General Public License for more details. 21 22 You should have received a copy of the GNU General Public License 23 along with this package; if not, write to the Free Software 24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 26 On Debian systems, the complete text of the GNU General 27 Public License can be found in `/usr/share/common-licenses/GPL'. -
pkg/main/gdm/trunk/debian/debian-moreblue.shar
r138 r2290 4 4 # everything before the `!/bin/sh' line above, then type `sh FILE'. 5 5 # 6 # Made on 200 6-12-14 22:07 PST by <rmurray@ninsei>.7 # Source directory was `/ usr/src/debian/gdm/gdm-2.16.4'.6 # Made on 2007-05-01 15:25 CEST by <lool@bee>. 7 # Source directory was `/home/lool/svn/debian/pkg-gnome/desktop/unstable/gdm'. 8 8 # 9 9 # Existing files will *not* be overwritten unless `-c' is specified. … … 16 16 # 90821 -rw-r--r-- debian/debian-moreblue/background.svg 17 17 # 17856 -rw-r--r-- debian/debian-moreblue/boundingbox.png 18 # 7 254-rw-r--r-- debian/debian-moreblue/debian-moreblue.xml18 # 7869 -rw-r--r-- debian/debian-moreblue/debian-moreblue.xml 19 19 # 13786 -rw-r--r-- debian/debian-moreblue/screenshot.png 20 20 # 1112 -rw-r--r-- debian/debian-moreblue/userentry.png … … 72 72 rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch 73 73 # 74 if mkdir _sh0 6648; then74 if mkdir _sh09333; then 75 75 $echo 'x -' 'creating lock directory' 76 76 else … … 2988 2988 <?xml version="1.0" encoding="UTF-8"?> 2989 2989 <!DOCTYPE greeter SYSTEM "greeter.dtd"> 2990 <!-- 2991 X Debian MoreBlue GDM Theme 2992 X ==================== 2993 X version 0.5 Dez 2006 2994 X 2995 X (c) 2006 by Andre Luiz Rodrigues Ferreira 2996 X Published under the terms of the GNU General Public License, version 2 2990 <!-- 2991 X Debian MoreBlue GDM Theme 2992 X ==================== 2993 X version 0.6 may 2006 2997 2994 X 2998 X ChangeLog: 2999 X 0.5 (Dez/2006) 3000 X - Added the icons, fixed the pam-message and moved up the clock. 3001 X 0.4 (Dez/2006) 3002 X - Fixed the pam-message and the pam-error 3003 X 0.3 (Dez/2006): 3004 X - Changed options buttons for use the GDM original strings. Thanks to Sven Arvidsson 3005 X 0.2 (Dez/2006): 3006 X - Fixed Debian Logo and added the clock. Patch by Valessio Brito. 3007 X 0.1 (Out/2006): 3008 X - Initial version 3009 X 3010 --> 2995 X (c) 2006 by Andre Luiz Rodrigues Ferreira 2996 X Published under the terms of the GNU General Public License, version 2 2997 X 2998 X ChangeLog: 2999 X 0.6 (May/2007) 3000 X - Debian #408043; merge patch by Michael Biebl to properly display 3001 X wrapped login text 3002 X - Cleanup indentation of this file 3003 X 0.5 (Dec/2006) 3004 X - Added the icons, fixed the pam-message and moved up the clock. 3005 X 0.4 (Dec/2006) 3006 X - Fixed the pam-message and the pam-error 3007 X 0.3 (Dec/2006): 3008 X - Changed options buttons for use the GDM original strings. Thanks to 3009 X Sven Arvidsson 3010 X 0.2 (Dec/2006): 3011 X - Fixed Debian Logo and added the clock. Patch by Valessio Brito. 3012 X 0.1 (Oct/2006): 3013 X - Initial version 3014 X --> 3011 3015 <greeter> 3012 3016 X <!-- background --> … … 3031 3035 X <item type="pixmap"> 3032 3036 X <normal file="boundingbox.png"/> 3033 X <pos x="50%" y="50%" width="400" height="282" anchor="c"/>3034 X </item> 3037 X <pos x="50%" y="50%" width="400" height="282" anchor="c"/> 3038 X </item> 3035 3039 X <item type="rect"> 3036 3040 X <normal/> … … 3043 3047 X <item type="rect" id="language_button" button="true"> 3044 3048 X <normal /> 3045 X <pos y="50%" anchor="w" width="box" height="box"/>3049 X <pos y="50%" anchor="w" width="box" height="box"/> 3046 3050 X <box orientation="horizontal" spacing="10" xpadding="10"> 3047 X <item type="pixmap">3048 X <normal file="icon-language.png" tint="#dddddd"/>3049 X <prelight file="icon-language.png"/>3050 X <active file="icon-language.png" tint="#bbbbbb" />3051 X <pos y="50%" anchor="w"/>3052 X </item>3053 X <item type="label">3054 X <normal color="#FFFFFF" font="Sans Bold 12"/>3055 X <prelight color="#BBBBBB" font="Sans Bold 12"/>3056 X <active color="#bbbbbb" font="Sans Bold 12"/>3057 X <pos y="50%" anchor="w"/>3058 X <stock type="language" />3059 X </item>3051 X <item type="pixmap"> 3052 X <normal file="icon-language.png" tint="#dddddd"/> 3053 X <prelight file="icon-language.png"/> 3054 X <active file="icon-language.png" tint="#bbbbbb" /> 3055 X <pos y="50%" anchor="w"/> 3056 X </item> 3057 X <item type="label"> 3058 X <normal color="#FFFFFF" font="Sans Bold 12"/> 3059 X <prelight color="#BBBBBB" font="Sans Bold 12"/> 3060 X <active color="#bbbbbb" font="Sans Bold 12"/> 3061 X <pos y="50%" anchor="w"/> 3062 X <stock type="language" /> 3063 X </item> 3060 3064 X </box> 3061 3065 X </item> 3062 3066 X <item type="rect" id="session_button" button="true"> 3063 3067 X <normal /> 3064 X <pos y="50%" anchor="w" width="box" height="box"/>3068 X <pos y="50%" anchor="w" width="box" height="box"/> 3065 3069 X <box orientation="horizontal" spacing="10" xpadding="10"> 3066 X <item type="pixmap">3067 X <normal file="icon-session.png" tint="#dddddd"/>3068 X <prelight file="icon-session.png"/>3069 X <active file="icon-session.png" tint="#bbbbbb"/>3070 X <pos y="50%" anchor="w"/>3071 X </item>3072 X <item type="label">3073 X <normal color="#FFFFFF" font="Sans Bold 12"/>3074 X <prelight color="#BBBBBB" font="Sans Bold 12"/>3075 X <active color="#bbbbbb" font="Sans Bold 12"/>3076 X <pos y="50%" anchor="w"/>3077 X <stock type="session" />3078 X </item>3070 X <item type="pixmap"> 3071 X <normal file="icon-session.png" tint="#dddddd"/> 3072 X <prelight file="icon-session.png"/> 3073 X <active file="icon-session.png" tint="#bbbbbb"/> 3074 X <pos y="50%" anchor="w"/> 3075 X </item> 3076 X <item type="label"> 3077 X <normal color="#FFFFFF" font="Sans Bold 12"/> 3078 X <prelight color="#BBBBBB" font="Sans Bold 12"/> 3079 X <active color="#bbbbbb" font="Sans Bold 12"/> 3080 X <pos y="50%" anchor="w"/> 3081 X <stock type="session" /> 3082 X </item> 3079 3083 X </box> 3080 3084 X </item> 3081 3085 X <item type="rect" id="system_button" button="true"> 3082 3086 X <normal /> 3083 X <show modes="console" type="system"/>3084 X <pos y="50%" anchor="w" width="box" height="box"/>3087 X <show modes="console" type="system"/> 3088 X <pos y="50%" anchor="w" width="box" height="box"/> 3085 3089 X <box orientation="horizontal" spacing="10" xpadding="10"> 3086 X <item type="pixmap">3087 X <normal file="icon-reboot.png" tint="#dddddd"/>3088 X <prelight file="icon-reboot.png"/>3089 X <active file="icon-reboot.png" tint="#bbbbbb"/>3090 X <pos y="50%" anchor="w"/>3091 X </item>3092 X <item type="label">3093 X <normal color="#FFFFFF" font="Sans Bold 12"/>3094 X <prelight color="#BBBBBB" font="Sans Bold 12"/>3095 X <active color="#bbbbbb" font="Sans Bold 12"/>3096 X <pos y="50%" anchor="w"/>3097 X <stock type="system"/>3098 X </item>3090 X <item type="pixmap"> 3091 X <normal file="icon-reboot.png" tint="#dddddd"/> 3092 X <prelight file="icon-reboot.png"/> 3093 X <active file="icon-reboot.png" tint="#bbbbbb"/> 3094 X <pos y="50%" anchor="w"/> 3095 X </item> 3096 X <item type="label"> 3097 X <normal color="#FFFFFF" font="Sans Bold 12"/> 3098 X <prelight color="#BBBBBB" font="Sans Bold 12"/> 3099 X <active color="#bbbbbb" font="Sans Bold 12"/> 3100 X <pos y="50%" anchor="w"/> 3101 X <stock type="system"/> 3102 X </item> 3099 3103 X </box> 3100 3104 X </item> 3101 3105 X <item type="rect" id="disconnect_button" button="true"> 3102 3106 X <normal /> 3103 X <show modes="flexi,remote"/>3104 X <pos y="50%" anchor="w" width="box" height="box"/>3107 X <show modes="flexi,remote"/> 3108 X <pos y="50%" anchor="w" width="box" height="box"/> 3105 3109 X <box orientation="horizontal" spacing="10" xpadding="10"> 3106 X <item type="pixmap">3107 X <normal file="icon-shutdown.png" tint="#dddddd"/>3108 X <prelight file="icon-shutdown.png"/>3109 X <active file="icon-shutdown.png" tint="#bbbbbb"/>3110 X <pos y="50%" anchor="w"/>3111 X </item>3112 X <item type="label">3113 X <normal color="#FFFFFF" font="Sans Bold 12"/>3114 X <prelight color="#666666" font="Sans Bold 12"/>3115 X <active color="#bbbbbb" font="Sans Bold 12"/>3116 X <pos y="50%" anchor="w"/>3117 X <stock type="disconnect"/>3118 X <show modes="remote"/>3119 X </item>3120 X <item type="label">3121 X <normal color="#FFFFFF" font="Sans Bold 12"/>3122 X <prelight color="#BBBBBB" font="Sans Bold 12"/>3123 X <active color="#bbbbbb" font="Sans Bold 12"/>3124 X <pos y="50%" anchor="w"/>3125 X <stock type="quit"/>3126 X <show modes="flexi"/>3127 X </item>3110 X <item type="pixmap"> 3111 X <normal file="icon-shutdown.png" tint="#dddddd"/> 3112 X <prelight file="icon-shutdown.png"/> 3113 X <active file="icon-shutdown.png" tint="#bbbbbb"/> 3114 X <pos y="50%" anchor="w"/> 3115 X </item> 3116 X <item type="label"> 3117 X <normal color="#FFFFFF" font="Sans Bold 12"/> 3118 X <prelight color="#666666" font="Sans Bold 12"/> 3119 X <active color="#bbbbbb" font="Sans Bold 12"/> 3120 X <pos y="50%" anchor="w"/> 3121 X <stock type="disconnect"/> 3122 X <show modes="remote"/> 3123 X </item> 3124 X <item type="label"> 3125 X <normal color="#FFFFFF" font="Sans Bold 12"/> 3126 X <prelight color="#BBBBBB" font="Sans Bold 12"/> 3127 X <active color="#bbbbbb" font="Sans Bold 12"/> 3128 X <pos y="50%" anchor="w"/> 3129 X <stock type="quit"/> 3130 X <show modes="flexi"/> 3131 X </item> 3128 3132 X </box> 3129 3133 X </item> … … 3151 3155 X <stock type="username-label"/> 3152 3156 X </item> 3153 X <item type="label" id="pam-message">3157 X <item type="label" id="pam-message"> 3154 3158 X <pos anchor="c" x="50%" y="130"/> 3155 X <normal color="#000000" font="Sans 12"/>3156 X <text></text>3157 X </item>3158 X 3159 X <normal color="#000000" font="Sans 11"/> 3160 X <text></text> 3161 X </item> 3162 X 3159 3163 X <!-- user-pw-entry background pixmap --> 3160 3164 X <item type="pixmap"> 3161 X <pos x="90" y="1 25" width="300" height="40"/>3165 X <pos x="90" y="135" width="300" height="40"/> 3162 3166 X <normal file="userentry.png"/> 3163 3167 X </item> 3164 X 3168 X 3165 3169 X <!-- user-pw-entry --> 3166 3170 X <item type="entry" id="user-pw-entry"> 3167 X <pos x="100" y=" 95" width="280" height="20"/>3171 X <pos x="100" y="105" width="280" height="20"/> 3168 3172 X <normal font="Sans 12" color="#444444"/> 3169 3173 X </item> … … 3171 3175 X </item> 3172 3176 X 3173 X <!-- caps-lock-warning -->3174 X <item type="rect" id="caps-lock-warning">3175 X <normal color="#ffffff" alpha="0.2"/>3176 X <pos x="0" y="0" width="100%" height="box" anchor="nw"/>3177 X <box orientation="vertical" min-width="250" xpadding="10" ypadding="5" spacing="0">3178 X <item type="label">3179 X <normal color="#000000" font="Sans 12"/>3180 X <pos x="50%" y="50%" anchor="c"/>3181 X <stock type="caps-lock-warning"/>3182 X </item>3183 X </box>3177 X <!-- caps-lock-warning --> 3178 X <item type="rect" id="caps-lock-warning"> 3179 X <normal color="#ffffff" alpha="0.2"/> 3180 X <pos x="0" y="0" width="100%" height="box" anchor="nw"/> 3181 X <box orientation="vertical" min-width="250" xpadding="10" ypadding="5" spacing="0"> 3182 X <item type="label"> 3183 X <normal color="#000000" font="Sans 12"/> 3184 X <pos x="50%" y="50%" anchor="c"/> 3185 X <stock type="caps-lock-warning"/> 3186 X </item> 3187 X </box> 3184 3188 X </item> 3185 3189 X 3186 X <!-- pam-error (login failure etc.) -->3187 X <item type="rect" id="pam-error">3188 X <pos x="0" y="90%" width="100%" height="box" anchor="sw"/>3189 X <box orientation="vertical" min-width="250" xpadding="10" ypadding="5" spacing="0">3190 X <item type="label" id="pam-error">3191 X <normal color="#FFFFFF" font="Sans 12"/>3192 X <pos x="50%" y="50%" anchor="c"/>3193 X <text></text>3194 X </item>3195 X </box>3190 X <!-- pam-error (login failure etc.) --> 3191 X <item type="rect" id="pam-error"> 3192 X <pos x="0" y="90%" width="100%" height="box" anchor="sw"/> 3193 X <box orientation="vertical" min-width="250" xpadding="10" ypadding="5" spacing="0"> 3194 X <item type="label" id="pam-error"> 3195 X <normal color="#FFFFFF" font="Sans 12"/> 3196 X <pos x="50%" y="50%" anchor="c"/> 3197 X <text></text> 3198 X </item> 3199 X </box> 3196 3200 X </item> 3197 3201 X 3198 3202 </greeter> 3199 3203 SHAR_EOF 3200 (set 20 0 6 12 11 11 0018 'debian/debian-moreblue/debian-moreblue.xml'; eval "$shar_touch") &&3204 (set 20 07 05 01 15 25 18 'debian/debian-moreblue/debian-moreblue.xml'; eval "$shar_touch") && 3201 3205 chmod 0644 'debian/debian-moreblue/debian-moreblue.xml' || 3202 3206 $echo 'restore of' 'debian/debian-moreblue/debian-moreblue.xml' 'failed' … … 3205 3209 md5sum -c << SHAR_EOF >/dev/null 2>&1 \ 3206 3210 || $echo 'debian/debian-moreblue/debian-moreblue.xml:' 'MD5 check failed' 3207 18462d026c5c18c64d4c5d19478aac67debian/debian-moreblue/debian-moreblue.xml3211 a598bb4f9b5e926e6c8956a9ce10afa1 debian/debian-moreblue/debian-moreblue.xml 3208 3212 SHAR_EOF 3209 3213 else 3210 3214 shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'debian/debian-moreblue/debian-moreblue.xml'`" 3211 test 7 254-eq "$shar_count" ||3212 $echo 'debian/debian-moreblue/debian-moreblue.xml:' 'original size' '7 254,' 'current size' "$shar_count!"3215 test 7869 -eq "$shar_count" || 3216 $echo 'debian/debian-moreblue/debian-moreblue.xml:' 'original size' '7869,' 'current size' "$shar_count!" 3213 3217 fi 3214 3218 fi … … 3776 3780 fi 3777 3781 fi 3778 rm -fr _sh0 66483782 rm -fr _sh09333 3779 3783 exit 0 -
pkg/main/gdm/trunk/debian/docs
r138 r2290 1 AUTHORS 1 2 NEWS 2 3 README -
pkg/main/gdm/trunk/debian/extract-locales
r138 r2290 11 11 chdir("/usr/share/i18n/locales") or die "can't find /usr/share/i18n/locales"; 12 12 while (<>) { 13 my $language;14 my $territory;15 chomp;16 @line = split / /;17 ($file = $line[0]) =~ s/\..*$//;18 open F, $file or die "can't open $file\n";19 while (<F>) {20 chomp;21 $title = $1 if /^title\s+"(.*)"/;22 $language = $1 if /^language\s+"(.*)"/;23 $territory = $1 if /^territory\s+"(.*)"/;24 last if /^END LC_IDENTIFICATION/;25 }26 close F;13 my $language; 14 my $territory; 15 chomp; 16 @line = split / /; 17 ($file = $line[0]) =~ s/\..*$//; 18 open F, $file or die "can't open $file\n"; 19 while (<F>) { 20 chomp; 21 $title = $1 if /^title\s+"(.*)"/; 22 $language = $1 if /^language\s+"(.*)"/; 23 $territory = $1 if /^territory\s+"(.*)"/; 24 last if /^END LC_IDENTIFICATION/; 25 } 26 close F; 27 27 28 if ($always_charset and $line[1] and $line[0] =~ s/(\@.*)$//) {29 my $suffix = $1;30 $line[1] =~ s/$/$suffix/;31 }28 if ($always_charset and $line[1] and $line[0] =~ s/(\@.*)$//) { 29 my $suffix = $1; 30 $line[1] =~ s/$/$suffix/; 31 } 32 32 33 $language =~ s/ /_/g;34 $territory =~ s/ /_/g;35 if (!$always_charset or $line[0] =~ /\./) {36 print "$language($territory)\t$line[0]\n";37 } else {38 print "$language($territory)\t$line[0].$line[1]\n";39 }33 $language =~ s/ /_/g; 34 $territory =~ s/ /_/g; 35 if (!$always_charset or $line[0] =~ /\./) { 36 print "$language($territory)\t$line[0]\n"; 37 } else { 38 print "$language($territory)\t$line[0].$line[1]\n"; 39 } 40 40 } -
pkg/main/gdm/trunk/debian/gdm-autologin.pam
r138 r2290 1 1 #%PAM-1.0 2 auth requisitepam_nologin.so3 auth requiredpam_env.so readenv=14 auth requiredpam_env.so readenv=1 envfile=/etc/default/locale5 auth requiredpam_permit.so2 auth requisite pam_nologin.so 3 auth required pam_env.so readenv=1 4 auth required pam_env.so readenv=1 envfile=/etc/default/locale 5 auth required pam_permit.so 6 6 @include common-account 7 session requiredpam_limits.so7 session required pam_limits.so 8 8 @include common-session 9 9 @include common-password -
pkg/main/gdm/trunk/debian/gdm.pam
r138 r2290 1 1 #%PAM-1.0 2 auth requisitepam_nologin.so3 auth requiredpam_env.so readenv=14 auth requiredpam_env.so readenv=1 envfile=/etc/default/locale2 auth requisite pam_nologin.so 3 auth required pam_env.so readenv=1 4 auth required pam_env.so readenv=1 envfile=/etc/default/locale 5 5 @include common-auth 6 6 @include common-account 7 session requiredpam_limits.so7 session required pam_limits.so 8 8 @include common-session 9 9 @include common-password -
pkg/main/gdm/trunk/debian/init
r1285 r2290 35 35 case "$1" in 36 36 start) 37 exec /usr/bin/esd -nobeeps &38 37 if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" -a "$HEED_DEFAULT_DISPLAY_MANAGER" = "true" -a "$(cat $DEFAULT_DISPLAY_MANAGER_FILE 2> /dev/null)" != "$DEBCONF_DAEMON" ]; then 39 38 log_action_msg "Not starting GNOME Display Manager; it is not the default display manager" -
pkg/main/gdm/trunk/debian/patches/01_parsix_gdmsetup_desktop.patch
r2072 r2290 1 diff -urpN gdm-2.20.0/gui/gdmsetup.desktop gdm-2.20.0.new/gui/gdmsetup.desktop 2 --- gdm-2.20.0/gui/gdmsetup.desktop 2007-09-17 14:56:35.000000000 +0000 3 +++ gdm-2.20.0.new/gui/gdmsetup.desktop 2007-09-21 06:50:26.000000000 +0000 4 @@ -107,8 +107,8 @@ Comment[th]=àžàž£àž±àžà¹àžà¹àžàž£à 5 Comment[uk]=ÐалаÑÑПвÑÐ²Ð°ÐœÐœÑ Ð·ÐŸÐ²ÐœÑÑМÑПгП вОглÑÐŽÑ Ñа пПвеЎÑМкО екÑÐ°ÐœÑ Ð²Ñ 6 ÐŸÐŽÑ Ñ ÑОÑÑÐµÐŒÑ GDM 1 diff -urpN gdm-2.20.1/gui/gdmsetup.desktop gdm-2.20.1.new/gui/gdmsetup.desktop 2 --- gdm-2.20.1/gui/gdmsetup.desktop 2007-10-16 01:27:56.000000000 +0330 3 +++ gdm-2.20.1.new/gui/gdmsetup.desktop 2007-10-22 14:50:49.000000000 +0330 4 @@ -110,7 +110,7 @@ Comment[uk]=ÐалаÑÑПвÑÐ²Ð°ÐœÐœÑ 7 5 Comment[vi]=Cấu hình diá»n mạo và ứng xá» cá»§a cá»a sá» ÄÄng nháºp GDM 8 6 Comment[zh_CN]=é 9 7 眮 GDM ç»åœçªå£çå€è§åè¡äžº 10 -TryExec=/usr/local/sbin/gdmsetup 11 -Exec=/usr/local/sbin/gdmsetup 12 +TryExec=/usr/sbin/gdmsetup 8 TryExec=/usr/sbin/gdmsetup 9 -Exec=/usr/sbin/gdmsetup 13 10 +Exec=gksu "sudo /usr/sbin/gdmsetup" 14 11 Icon=gdm-setup 15 12 StartupNotify=true 16 13 Terminal=false 17 diff -urpN gdm-2.20. 0/gui/gdmsetup.desktop.in.in gdm-2.20.0.new/gui/gdmsetup.desktop.in.in18 --- gdm-2.20. 0/gui/gdmsetup.desktop.in.in 2007-09-17 14:45:38.000000000 +000019 +++ gdm-2.20. 0.new/gui/gdmsetup.desktop.in.in 2007-09-21 06:50:41.000000000 +000014 diff -urpN gdm-2.20.1/gui/gdmsetup.desktop.in.in gdm-2.20.1.new/gui/gdmsetup.desktop.in.in 15 --- gdm-2.20.1/gui/gdmsetup.desktop.in.in 2007-10-16 01:12:40.000000000 +0330 16 +++ gdm-2.20.1.new/gui/gdmsetup.desktop.in.in 2007-10-22 14:51:02.000000000 +0330 20 17 @@ -2,8 +2,8 @@ 21 18 Encoding=UTF-8 -
pkg/main/gdm/trunk/debian/patches/70_mandatory-relibtoolize.patch
r2085 r2290 1 Typical relibtoolizing; mandatory due to changes in configure.ac and some 2 Makefile.am. 3 4 libtoolize --force --copy 5 aclocal-1.10 -I m4 6 autoconf 7 automake-1.10 8 rm -rf autom4te.cache 9 10 diff -Nur gdm-2.20.0/aclocal.m4 gdm-2.20.0.new/aclocal.m4 11 --- gdm-2.20.0/aclocal.m4 2007-09-17 16:47:58.000000000 +0200 12 +++ gdm-2.20.0.new/aclocal.m4 2007-09-18 21:31:22.000000000 +0200 13 @@ -16,1907 +16,2534 @@ 1 diff -urpN gdm-2.20.1/aclocal.m4 gdm-2.20.1.new/aclocal.m4 2 --- gdm-2.20.1/aclocal.m4 2007-10-16 01:25:30.000000000 +0330 3 +++ gdm-2.20.1.new/aclocal.m4 2007-10-22 15:07:37.000000000 +0330 4 @@ -16,184 +16,618 @@ m4_if(m4_PACKAGE_VERSION, [2.61],, 14 5 You have another version of autoconf. If you want to use that, 15 6 you should regenerate the build system entirely.], [63])]) … … 553 544 - ;; 554 545 - esac 555 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"556 546 +# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) 557 547 +# ------------------------------- … … 570 560 +else 571 561 + localedir=`eval echo "${datadir}/locale"` 572 fi562 +fi 573 563 +prefix="$glib_save_prefix" 574 564 +exec_prefix="$glib_save_exec_prefix" … … 577 567 + [Define the location where the catalogs will be installed]) 578 568 +]) 579 580 -_LT_CC_BASENAME([$compiler]) 569 + 581 570 +dnl 582 571 +dnl Now the definitions that aclocal will find … … 586 575 +AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) 587 576 +])dnl 588 589 -# Only perform the check for file, if the check method requires it 590 -case $deplibs_check_method in 591 -file_magic*) 592 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then 593 - AC_PATH_MAGIC 594 - fi 595 - ;; 596 -esac 577 + 597 578 +# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) 598 579 +# … … 610 591 +sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD 611 592 +fi]) 612 613 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 614 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 615 -enable_win32_dll=yes, enable_win32_dll=no) 616 617 -AC_ARG_ENABLE([libtool-lock], 618 - [AC_HELP_STRING([--disable-libtool-lock], 619 - [avoid locking (might break parallel builds)])]) 620 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 621 +dnl GNOME_COMPILE_WARNINGS 622 +dnl Turn on many useful compiler warnings 623 +dnl For now, only works on GCC 624 +AC_DEFUN([GNOME_COMPILE_WARNINGS],[ 625 + dnl ****************************** 626 + dnl More compiler warnings 627 + dnl ****************************** 628 629 -AC_ARG_WITH([pic], 630 - [AC_HELP_STRING([--with-pic], 631 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 632 - [pic_mode="$withval"], 633 - [pic_mode=default]) 634 -test -z "$pic_mode" && pic_mode=default 635 + AC_ARG_ENABLE(compile-warnings, 636 + AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], 637 + [Turn on compiler warnings]),, 638 + [enable_compile_warnings="m4_default([$1],[yes])"]) 639 640 -# Use C for the default configuration in the libtool script 641 -tagname= 642 -AC_LIBTOOL_LANG_C_CONFIG 643 -_LT_AC_TAGCONFIG 644 -])# AC_LIBTOOL_SETUP 645 + warnCFLAGS= 646 + if test "x$GCC" != xyes; then 647 + enable_compile_warnings=no 648 + fi 649 650 + warning_flags= 651 + realsave_CFLAGS="$CFLAGS" 652 653 -# _LT_AC_SYS_COMPILER 654 -# ------------------- 655 -AC_DEFUN([_LT_AC_SYS_COMPILER], 656 -[AC_REQUIRE([AC_PROG_CC])dnl 657 + case "$enable_compile_warnings" in 658 + no) 659 + warning_flags= 660 + ;; 661 + minimum) 662 + warning_flags="-Wall" 663 + ;; 664 + yes) 665 + warning_flags="-Wall -Wmissing-prototypes" 666 + ;; 667 + maximum|error) 668 + warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith" 669 + CFLAGS="$warning_flags $CFLAGS" 670 + for option in -Wno-sign-compare; do 671 + SAVE_CFLAGS="$CFLAGS" 672 + CFLAGS="$CFLAGS $option" 673 + AC_MSG_CHECKING([whether gcc understands $option]) 674 + AC_TRY_COMPILE([], [], 675 + has_option=yes, 676 + has_option=no,) 677 + CFLAGS="$SAVE_CFLAGS" 678 + AC_MSG_RESULT($has_option) 679 + if test $has_option = yes; then 680 + warning_flags="$warning_flags $option" 681 + fi 682 + unset has_option 683 + unset SAVE_CFLAGS 684 + done 685 + unset option 686 + if test "$enable_compile_warnings" = "error" ; then 687 + warning_flags="$warning_flags -Werror" 688 + fi 689 + ;; 690 + *) 691 + AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings) 692 + ;; 693 + esac 694 + CFLAGS="$realsave_CFLAGS" 695 + AC_MSG_CHECKING(what warning flags to pass to the C compiler) 696 + AC_MSG_RESULT($warning_flags) 697 698 -# If no C compiler was specified, use CC. 699 -LTCC=${LTCC-"$CC"} 700 + AC_ARG_ENABLE(iso-c, 701 + AC_HELP_STRING([--enable-iso-c], 702 + [Try to warn if code is not ISO C ]),, 703 + [enable_iso_c=no]) 704 705 -# If no C compiler flags were specified, use CFLAGS. 706 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 707 + AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) 708 + complCFLAGS= 709 + if test "x$enable_iso_c" != "xno"; then 710 + if test "x$GCC" = "xyes"; then 711 + case " $CFLAGS " in 712 + *[\ \ ]-ansi[\ \ ]*) ;; 713 + *) complCFLAGS="$complCFLAGS -ansi" ;; 714 + esac 715 + case " $CFLAGS " in 716 + *[\ \ ]-pedantic[\ \ ]*) ;; 717 + *) complCFLAGS="$complCFLAGS -pedantic" ;; 718 + esac 719 + fi 720 + fi 721 + AC_MSG_RESULT($complCFLAGS) 722 723 -# Allow CC to be a program name with arguments. 724 -compiler=$CC 725 -])# _LT_AC_SYS_COMPILER 726 + WARN_CFLAGS="$warning_flags $complCFLAGS" 727 + AC_SUBST(WARN_CFLAGS) 728 +]) 729 730 +dnl For C++, do basically the same thing. 731 732 -# _LT_CC_BASENAME(CC) 733 -# ------------------- 734 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 735 -AC_DEFUN([_LT_CC_BASENAME], 736 -[for cc_temp in $1""; do 737 - case $cc_temp in 738 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 739 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 740 - \-*) ;; 741 - *) break;; 742 - esac 743 -done 744 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 745 -]) 746 +AC_DEFUN([GNOME_CXX_WARNINGS],[ 747 + AC_ARG_ENABLE(cxx-warnings, 748 + AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@] 749 + [Turn on compiler warnings.]),, 750 + [enable_cxx_warnings="m4_default([$1],[minimum])"]) 751 752 + AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) 753 + warnCXXFLAGS= 754 + if test "x$GXX" != xyes; then 755 + enable_cxx_warnings=no 756 + fi 757 + if test "x$enable_cxx_warnings" != "xno"; then 758 + if test "x$GXX" = "xyes"; then 759 + case " $CXXFLAGS " in 760 + *[\ \ ]-Wall[\ \ ]*) ;; 761 + *) warnCXXFLAGS="-Wall -Wno-unused" ;; 762 + esac 763 764 -# _LT_COMPILER_BOILERPLATE 765 -# ------------------------ 766 -# Check for compiler boilerplate output or warnings with 767 -# the simple compiler test code. 768 -AC_DEFUN([_LT_COMPILER_BOILERPLATE], 769 -[ac_outfile=conftest.$ac_objext 770 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext 771 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 772 -_lt_compiler_boilerplate=`cat conftest.err` 773 -$rm conftest* 774 -])# _LT_COMPILER_BOILERPLATE 775 + ## -W is not all that useful. And it cannot be controlled 776 + ## with individual -Wno-xxx flags, unlike -Wall 777 + if test "x$enable_cxx_warnings" = "xyes"; then 778 + warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" 779 + fi 780 + fi 781 + fi 782 + AC_MSG_RESULT($warnCXXFLAGS) 783 784 + AC_ARG_ENABLE(iso-cxx, 785 + AC_HELP_STRING([--enable-iso-cxx], 786 + [Try to warn if code is not ISO C++ ]),, 787 + [enable_iso_cxx=no]) 788 789 -# _LT_LINKER_BOILERPLATE 790 -# ---------------------- 791 -# Check for linker boilerplate output or warnings with 792 -# the simple link test code. 793 -AC_DEFUN([_LT_LINKER_BOILERPLATE], 794 -[ac_outfile=conftest.$ac_objext 795 -printf "$lt_simple_link_test_code" >conftest.$ac_ext 796 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 797 -_lt_linker_boilerplate=`cat conftest.err` 798 -$rm conftest* 799 -])# _LT_LINKER_BOILERPLATE 800 + AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) 801 + complCXXFLAGS= 802 + if test "x$enable_iso_cxx" != "xno"; then 803 + if test "x$GXX" = "xyes"; then 804 + case " $CXXFLAGS " in 805 + *[\ \ ]-ansi[\ \ ]*) ;; 806 + *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; 807 + esac 808 809 + case " $CXXFLAGS " in 810 + *[\ \ ]-pedantic[\ \ ]*) ;; 811 + *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; 812 + esac 813 + fi 814 + fi 815 + AC_MSG_RESULT($complCXXFLAGS) 816 817 -# _LT_AC_SYS_LIBPATH_AIX 818 -# ---------------------- 819 -# Links a minimal program and checks the executable 820 -# for the system default hardcoded library path. In most cases, 821 -# this is /usr/lib:/lib, but when the MPI compilers are used 822 -# the location of the communication and MPI libs are included too. 823 -# If we don't find anything, use the default library path according 824 -# to the aix ld manual. 825 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 826 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 827 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 828 -}'` 829 -# Check for a 64-bit object if we didn't find anything. 830 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 831 -}'`; fi],[]) 832 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 833 -])# _LT_AC_SYS_LIBPATH_AIX 834 + WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" 835 + AC_SUBST(WARN_CXXFLAGS) 836 +]) 837 593 + 594 + 838 595 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 839 840 -# _LT_AC_SHELL_INIT(ARG) 841 -# ---------------------- 842 -AC_DEFUN([_LT_AC_SHELL_INIT], 843 -[ifdef([AC_DIVERSION_NOTICE], 844 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 845 - [AC_DIVERT_PUSH(NOTICE)]) 846 -$1 847 -AC_DIVERT_POP 848 -])# _LT_AC_SHELL_INIT 849 +# serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL 850 851 852 -# _LT_AC_PROG_ECHO_BACKSLASH 853 -# -------------------------- 854 -# Add some code to the start of the generated configure script which 855 -# will find an echo command which doesn't interpret backslashes. 856 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 857 -[_LT_AC_SHELL_INIT([ 858 -# Check that we are running under the correct shell. 859 -SHELL=${CONFIG_SHELL-/bin/sh} 596 + 597 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL 598 + 599 + 860 600 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 861 601 +# ----------------------------------------------------------- … … 866 606 + [m4_ifdef([AC_PROVIDE_$1], 867 607 + [$2], [$3])])]) 868 869 -case X$ECHO in 870 -X*--fallback-echo) 871 - # Remove one level of quotation (which was required for Make). 872 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 873 - ;; 874 -esac 875 876 -echo=${ECHO-echo} 877 -if test "X[$]1" = X--no-reexec; then 878 - # Discard the --no-reexec flag, and continue. 879 - shift 880 -elif test "X[$]1" = X--fallback-echo; then 881 - # Avoid inline document here, it may be left over 882 - : 883 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 884 - # Yippee, $echo works! 885 - : 886 -else 887 - # Restart under the correct shell. 888 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 889 -fi 608 + 609 + 890 610 +# AC_PROG_LIBTOOL 891 611 +# --------------- … … 903 623 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 904 624 +])]) 905 906 -if test "X[$]1" = X--fallback-echo; then 907 - # used as fallback echo 908 - shift 909 - cat <<EOF 910 -[$]* 911 -EOF 912 - exit 0 913 -fi 625 + 914 626 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 915 627 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run … … 929 641 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 930 642 +])])# AC_PROG_LIBTOOL 931 932 -# The HP-UX ksh and POSIX shell print the target directory to stdout 933 -# if CDPATH is set. 934 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 935 936 -if test -z "$ECHO"; then 937 -if test "X${echo_test_string+set}" != Xset; then 938 -# find a string as large as possible, as long as the shell can cope with it 939 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 940 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 941 - if (echo_test_string=`eval $cmd`) 2>/dev/null && 942 - echo_test_string=`eval $cmd` && 943 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 944 - then 945 - break 946 - fi 947 - done 948 -fi 643 + 644 + 949 645 +# _AC_PROG_LIBTOOL 950 646 +# ---------------- … … 954 650 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 955 651 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 956 957 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 958 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 959 - test "X$echo_testing_string" = "X$echo_test_string"; then 960 - : 961 -else 962 - # The Solaris, AIX, and Digital Unix default echo programs unquote 963 - # backslashes. This makes it impossible to quote backslashes using 964 - # echo "$something" | sed 's/\\/\\\\/g' 965 - # 966 - # So, first we look for a working echo in the user's PATH. 652 + 967 653 +# This can be used to rebuild libtool when needed 968 654 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 969 970 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 971 - for dir in $PATH /usr/ucb; do 972 - IFS="$lt_save_ifs" 973 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 974 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 975 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 976 - test "X$echo_testing_string" = "X$echo_test_string"; then 977 - echo="$dir/echo" 978 - break 979 - fi 980 - done 981 - IFS="$lt_save_ifs" 655 + 982 656 +# Always use our own libtool. 983 657 +LIBTOOL='$(SHELL) $(top_builddir)/libtool' 984 658 +AC_SUBST(LIBTOOL)dnl 985 986 - if test "X$echo" = Xecho; then 987 - # We didn't find a better echo, so look for alternatives. 988 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 989 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 990 - test "X$echo_testing_string" = "X$echo_test_string"; then 991 - # This shell has a builtin print -r that does the trick. 992 - echo='print -r' 993 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 994 - test "X$CONFIG_SHELL" != X/bin/ksh; then 995 - # If we have ksh, try running configure again with it. 996 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 997 - export ORIGINAL_CONFIG_SHELL 998 - CONFIG_SHELL=/bin/ksh 999 - export CONFIG_SHELL 1000 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1001 - else 1002 - # Try using printf. 1003 - echo='printf %s\n' 1004 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 1005 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 1006 - test "X$echo_testing_string" = "X$echo_test_string"; then 1007 - # Cool, printf works 1008 - : 1009 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1010 - test "X$echo_testing_string" = 'X\t' && 1011 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1012 - test "X$echo_testing_string" = "X$echo_test_string"; then 1013 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1014 - export CONFIG_SHELL 1015 - SHELL="$CONFIG_SHELL" 1016 - export SHELL 1017 - echo="$CONFIG_SHELL [$]0 --fallback-echo" 1018 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1019 - test "X$echo_testing_string" = 'X\t' && 1020 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1021 - test "X$echo_testing_string" = "X$echo_test_string"; then 1022 - echo="$CONFIG_SHELL [$]0 --fallback-echo" 1023 - else 1024 - # maybe with a smaller string... 1025 - prev=: 659 + 1026 660 +# Prevent multiple expansion 1027 661 +define([AC_PROG_LIBTOOL], []) 1028 662 +])# _AC_PROG_LIBTOOL 1029 1030 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1031 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 1032 - then 1033 - break 1034 - fi 1035 - prev="$cmd" 1036 - done 1037 1038 - if test "$prev" != 'sed 50q "[$]0"'; then 1039 - echo_test_string=`eval $prev` 1040 - export echo_test_string 1041 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1042 - else 1043 - # Oops. We lost completely, so just stick with echo. 1044 - echo=echo 1045 - fi 1046 - fi 1047 - fi 1048 - fi 1049 -fi 1050 -fi 663 + 664 + 1051 665 +# AC_LIBTOOL_SETUP 1052 666 +# ---------------- … … 1062 676 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 1063 677 +AC_REQUIRE([AC_PROG_NM])dnl 1064 1065 -# Copy echo and quote the copy suitably for passing to libtool from 1066 -# the Makefile, instead of quoting the original, which is used later. 1067 -ECHO=$echo 1068 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1069 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1070 -fi 678 + 1071 679 +AC_REQUIRE([AC_PROG_LN_S])dnl 1072 680 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl … … 1075 683 +AC_REQUIRE([AC_EXEEXT])dnl 1076 684 +dnl 1077 1078 -AC_SUBST(ECHO) 1079 -])])# _LT_AC_PROG_ECHO_BACKSLASH 685 + 1080 686 +AC_LIBTOOL_SYS_MAX_CMD_LEN 1081 687 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 1082 688 +AC_LIBTOOL_OBJDIR 1083 689 + 1084 690 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1085 691 +_LT_AC_PROG_ECHO_BACKSLASH 1086 1087 -# _LT_AC_LOCK 1088 -# ----------- 1089 -AC_DEFUN([_LT_AC_LOCK], 1090 -[AC_ARG_ENABLE([libtool-lock], 1091 - [AC_HELP_STRING([--disable-libtool-lock], 1092 - [avoid locking (might break parallel builds)])]) 1093 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 692 + 1094 693 +case $host_os in 1095 694 +aix3*) … … 1103 702 + ;; 1104 703 +esac 1105 1106 -# Some flags need to be propagated to the compiler or linker for good 1107 -# libtool support. 1108 -case $host in 1109 -ia64-*-hpux*) 1110 - # Find out which ABI we are using. 1111 - echo 'int i;' > conftest.$ac_ext 1112 - if AC_TRY_EVAL(ac_compile); then 1113 - case `/usr/bin/file conftest.$ac_objext` in 1114 - *ELF-32*) 1115 - HPUX_IA64_MODE="32" 1116 - ;; 1117 - *ELF-64*) 1118 - HPUX_IA64_MODE="64" 1119 - ;; 1120 - esac 1121 - fi 1122 - rm -rf conftest* 1123 - ;; 1124 -*-*-irix6*) 1125 - # Find out which ABI we are using. 1126 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext 1127 - if AC_TRY_EVAL(ac_compile); then 1128 - if test "$lt_cv_prog_gnu_ld" = yes; then 1129 - case `/usr/bin/file conftest.$ac_objext` in 1130 - *32-bit*) 1131 - LD="${LD-ld} -melf32bsmip" 1132 - ;; 1133 - *N32*) 1134 - LD="${LD-ld} -melf32bmipn32" 1135 - ;; 1136 - *64-bit*) 1137 - LD="${LD-ld} -melf64bmip" 1138 - ;; 1139 - esac 1140 - else 1141 - case `/usr/bin/file conftest.$ac_objext` in 1142 - *32-bit*) 1143 - LD="${LD-ld} -32" 1144 - ;; 1145 - *N32*) 1146 - LD="${LD-ld} -n32" 1147 - ;; 1148 - *64-bit*) 1149 - LD="${LD-ld} -64" 1150 - ;; 1151 - esac 1152 - fi 1153 - fi 1154 - rm -rf conftest* 1155 - ;; 704 + 1156 705 +# Sed substitution that helps us do robust quoting. It backslashifies 1157 706 +# metacharacters that are still active within double-quoted strings. 1158 707 +Xsed='sed -e 1s/^X//' 1159 708 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 1160 1161 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 1162 - # Find out which ABI we are using. 1163 - echo 'int i;' > conftest.$ac_ext 1164 - if AC_TRY_EVAL(ac_compile); then 1165 - case `/usr/bin/file conftest.o` in 1166 - *32-bit*) 1167 - case $host in 1168 - x86_64-*linux*) 1169 - LD="${LD-ld} -m elf_i386" 1170 - ;; 1171 - ppc64-*linux*|powerpc64-*linux*) 1172 - LD="${LD-ld} -m elf32ppclinux" 1173 - ;; 1174 - s390x-*linux*) 1175 - LD="${LD-ld} -m elf_s390" 1176 - ;; 1177 - sparc64-*linux*) 1178 - LD="${LD-ld} -m elf32_sparc" 1179 - ;; 1180 - esac 1181 - ;; 1182 - *64-bit*) 1183 - case $host in 1184 - x86_64-*linux*) 1185 - LD="${LD-ld} -m elf_x86_64" 1186 - ;; 1187 - ppc*-*linux*|powerpc*-*linux*) 1188 - LD="${LD-ld} -m elf64ppc" 1189 - ;; 1190 - s390*-*linux*) 1191 - LD="${LD-ld} -m elf64_s390" 1192 - ;; 1193 - sparc*-*linux*) 1194 - LD="${LD-ld} -m elf64_sparc" 1195 - ;; 1196 - esac 1197 - ;; 1198 - esac 1199 - fi 1200 - rm -rf conftest* 1201 - ;; 709 + 1202 710 +# Same as above, but do not quote variable references. 1203 711 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 1204 1205 -*-*-sco3.2v5*) 1206 - # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1207 - SAVE_CFLAGS="$CFLAGS" 1208 - CFLAGS="$CFLAGS -belf" 1209 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1210 - [AC_LANG_PUSH(C) 1211 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1212 - AC_LANG_POP]) 1213 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then 1214 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1215 - CFLAGS="$SAVE_CFLAGS" 1216 - fi 1217 - ;; 1218 -sparc*-*solaris*) 1219 - # Find out which ABI we are using. 1220 - echo 'int i;' > conftest.$ac_ext 1221 - if AC_TRY_EVAL(ac_compile); then 1222 - case `/usr/bin/file conftest.o` in 1223 - *64-bit*) 1224 - case $lt_cv_prog_gnu_ld in 1225 - yes*) LD="${LD-ld} -m elf64_sparc" ;; 1226 - *) LD="${LD-ld} -64" ;; 1227 - esac 1228 - ;; 1229 - esac 1230 - fi 1231 - rm -rf conftest* 1232 - ;; 712 + 1233 713 +# Sed substitution to delay expansion of an escaped shell variable in a 1234 714 +# double_quote_subst'ed string. 1235 715 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1236 1237 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 1238 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 1239 - AC_CHECK_TOOL(DLLTOOL, dlltool, false) 1240 - AC_CHECK_TOOL(AS, as, false) 1241 - AC_CHECK_TOOL(OBJDUMP, objdump, false) 1242 - ;; 1243 - ]) 1244 -esac 716 + 1245 717 +# Sed substitution to avoid accidental globbing in evaled expressions 1246 718 +no_glob_subst='s/\*/\\\*/g' 1247 1248 -need_locks="$enable_libtool_lock" 719 + 1249 720 +# Constants: 1250 721 +rm="rm -f" 1251 1252 -])# _LT_AC_LOCK 722 + 1253 723 +# Global variables: 1254 724 +default_ofile=libtool 1255 725 +can_build_shared=yes 1256 726 + 1257 727 +# All known linkers require a `.a' archive for static linking (except MSVC, 1258 728 +# which needs '.lib'). … … 1261 731 +ofile="$default_ofile" 1262 732 +with_gnu_ld="$lt_cv_prog_gnu_ld" 1263 1264 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1265 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1266 -# ---------------------------------------------------------------- 1267 -# Check whether the given compiler option works 1268 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 1269 -[AC_REQUIRE([LT_AC_PROG_SED]) 1270 -AC_CACHE_CHECK([$1], [$2], 1271 - [$2=no 1272 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1273 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1274 - lt_compiler_flag="$3" 1275 - # Insert the option either (1) after the last *FLAGS variable, or 1276 - # (2) before a word containing "conftest.", or (3) at the end. 1277 - # Note that $ac_compile itself does not contain backslashes and begins 1278 - # with a dollar sign (not a hyphen), so the echo should work correctly. 1279 - # The option is referenced via a variable to avoid confusing sed. 1280 - lt_compile=`echo "$ac_compile" | $SED \ 1281 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1282 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1283 - -e 's:$: $lt_compiler_flag:'` 1284 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1285 - (eval "$lt_compile" 2>conftest.err) 1286 - ac_status=$? 1287 - cat conftest.err >&AS_MESSAGE_LOG_FD 1288 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1289 - if (exit $ac_status) && test -s "$ac_outfile"; then 1290 - # The compiler can only warn and ignore the option if not recognized 1291 - # So say no if there are warnings other than the usual output. 1292 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 1293 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1294 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 1295 - $2=yes 1296 - fi 1297 - fi 1298 - $rm conftest* 1299 -]) 733 + 1300 734 +AC_CHECK_TOOL(AR, ar, false) 1301 735 +AC_CHECK_TOOL(RANLIB, ranlib, :) 1302 736 +AC_CHECK_TOOL(STRIP, strip, :) 1303 1304 -if test x"[$]$2" = xyes; then 1305 - ifelse([$5], , :, [$5]) 1306 -else 1307 - ifelse([$6], , :, [$6]) 1308 -fi 1309 -])# AC_LIBTOOL_COMPILER_OPTION 737 + 1310 738 +old_CC="$CC" 1311 739 +old_CFLAGS="$CFLAGS" 1312 740 + 1313 741 +# Set sane defaults for various variables 1314 742 +test -z "$AR" && AR=ar … … 1328 756 +test -z "$STRIP" && STRIP=: 1329 757 +test -z "$ac_objext" && ac_objext=o 1330 1331 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1332 -# [ACTION-SUCCESS], [ACTION-FAILURE]) 1333 -# ------------------------------------------------------------ 1334 -# Check whether the given compiler option works 1335 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 1336 -[AC_CACHE_CHECK([$1], [$2], 1337 - [$2=no 1338 - save_LDFLAGS="$LDFLAGS" 1339 - LDFLAGS="$LDFLAGS $3" 1340 - printf "$lt_simple_link_test_code" > conftest.$ac_ext 1341 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1342 - # The linker can only warn and ignore the option if not recognized 1343 - # So say no if there are warnings 1344 - if test -s conftest.err; then 1345 - # Append any errors to the config.log. 1346 - cat conftest.err 1>&AS_MESSAGE_LOG_FD 1347 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 1348 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1349 - if diff conftest.exp conftest.er2 >/dev/null; then 1350 - $2=yes 1351 - fi 1352 - else 1353 - $2=yes 1354 - fi 1355 - fi 1356 - $rm conftest* 1357 - LDFLAGS="$save_LDFLAGS" 1358 -]) 758 + 1359 759 +# Determine commands to create old-style static archives. 1360 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs '760 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 1361 761 +old_postinstall_cmds='chmod 644 $oldlib' 1362 762 +old_postuninstall_cmds= 1363 1364 -if test x"[$]$2" = xyes; then 1365 - ifelse([$4], , :, [$4]) 1366 -else 1367 - ifelse([$5], , :, [$5]) 763 + 1368 764 +if test -n "$RANLIB"; then 1369 765 + case $host_os in … … 1375 771 + ;; 1376 772 + esac 1377 +old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"773 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1378 774 fi 1379 -])# AC_LIBTOOL_LINKER_OPTION 1380 1381 +_LT_CC_BASENAME([$compiler]) 1382 1383 -# AC_LIBTOOL_SYS_MAX_CMD_LEN 1384 -# -------------------------- 1385 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 1386 -[# find the maximum length of command line arguments 1387 -AC_MSG_CHECKING([the maximum length of command line arguments]) 1388 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1389 - i=0 1390 - teststring="ABCD" 1391 +# Only perform the check for file, if the check method requires it 1392 +case $deplibs_check_method in 1393 +file_magic*) 1394 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1395 + AC_PATH_MAGIC 1396 + fi 1397 + ;; 1398 +esac 1399 1400 - case $build_os in 1401 - msdosdjgpp*) 1402 - # On DJGPP, this test can blow up pretty badly due to problems in libc 1403 - # (any single argument exceeding 2000 bytes causes a buffer overrun 1404 - # during glob expansion). Even if it were fixed, the result of this 1405 - # check would be larger than it should be. 1406 - lt_cv_sys_max_cmd_len=12288; # 12K is about right 1407 - ;; 1408 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 1409 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 1410 +enable_win32_dll=yes, enable_win32_dll=no) 1411 1412 - gnu*) 1413 - # Under GNU Hurd, this test is not required because there is 1414 - # no limit to the length of command line arguments. 1415 - # Libtool will interpret -1 as no limit whatsoever 1416 - lt_cv_sys_max_cmd_len=-1; 1417 - ;; 1418 +AC_ARG_ENABLE([libtool-lock], 1419 + [AC_HELP_STRING([--disable-libtool-lock], 1420 + [avoid locking (might break parallel builds)])]) 1421 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1422 1423 - cygwin* | mingw*) 1424 - # On Win9x/ME, this test blows up -- it succeeds, but takes 1425 - # about 5 minutes as the teststring grows exponentially. 1426 - # Worse, since 9x/ME are not pre-emptively multitasking, 1427 - # you end up with a "frozen" computer, even though with patience 1428 - # the test eventually succeeds (with a max line length of 256k). 1429 - # Instead, let's just punt: use the minimum linelength reported by 1430 - # all of the supported platforms: 8192 (on NT/2K/XP). 1431 - lt_cv_sys_max_cmd_len=8192; 1432 - ;; 1433 +AC_ARG_WITH([pic], 1434 + [AC_HELP_STRING([--with-pic], 1435 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 1436 + [pic_mode="$withval"], 1437 + [pic_mode=default]) 1438 +test -z "$pic_mode" && pic_mode=default 1439 1440 - amigaos*) 1441 - # On AmigaOS with pdksh, this test takes hours, literally. 1442 - # So we just punt and use a minimum line length of 8192. 1443 - lt_cv_sys_max_cmd_len=8192; 1444 - ;; 1445 +# Use C for the default configuration in the libtool script 1446 +tagname= 1447 +AC_LIBTOOL_LANG_C_CONFIG 1448 +_LT_AC_TAGCONFIG 1449 +])# AC_LIBTOOL_SETUP 1450 1451 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 1452 - # This has been around since 386BSD, at least. Likely further. 1453 - if test -x /sbin/sysctl; then 1454 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1455 - elif test -x /usr/sbin/sysctl; then 1456 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1457 - else 1458 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1459 - fi 1460 - # And add a safety zone 1461 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1462 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1463 - ;; 1464 1465 - interix*) 1466 - # We know the value 262144 and hardcode it with a safety zone (like BSD) 1467 - lt_cv_sys_max_cmd_len=196608 1468 - ;; 1469 +# _LT_AC_SYS_COMPILER 1470 +# ------------------- 1471 +AC_DEFUN([_LT_AC_SYS_COMPILER], 1472 +[AC_REQUIRE([AC_PROG_CC])dnl 1473 1474 - osf*) 1475 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 1476 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 1477 - # nice to cause kernel panics so lets avoid the loop below. 1478 - # First set a reasonable default. 1479 - lt_cv_sys_max_cmd_len=16384 1480 - # 1481 - if test -x /sbin/sysconfig; then 1482 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 1483 - *1*) lt_cv_sys_max_cmd_len=-1 ;; 1484 - esac 1485 - fi 1486 - ;; 1487 - sco3.2v5*) 1488 - lt_cv_sys_max_cmd_len=102400 1489 - ;; 1490 - sysv5* | sco5v6* | sysv4.2uw2*) 1491 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 1492 - if test -n "$kargmax"; then 1493 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 1494 - else 1495 - lt_cv_sys_max_cmd_len=32768 1496 - fi 1497 - ;; 1498 - *) 1499 - # If test is not a shell built-in, we'll probably end up computing a 1500 - # maximum length that is only half of the actual maximum length, but 1501 - # we can't tell. 1502 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1503 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 1504 - = "XX$teststring") >/dev/null 2>&1 && 1505 - new_result=`expr "X$teststring" : ".*" 2>&1` && 1506 - lt_cv_sys_max_cmd_len=$new_result && 1507 - test $i != 17 # 1/2 MB should be enough 1508 - do 1509 - i=`expr $i + 1` 1510 - teststring=$teststring$teststring 1511 - done 1512 - teststring= 1513 - # Add a significant safety factor because C++ compilers can tack on massive 1514 - # amounts of additional arguments before passing them to the linker. 1515 - # It appears as though 1/2 is a usable value. 1516 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1517 - ;; 1518 +# If no C compiler was specified, use CC. 1519 +LTCC=${LTCC-"$CC"} 1520 + 1521 +# If no C compiler flags were specified, use CFLAGS. 1522 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1523 + 1524 +# Allow CC to be a program name with arguments. 1525 +compiler=$CC 1526 +])# _LT_AC_SYS_COMPILER 1527 + 1528 + 1529 +# _LT_CC_BASENAME(CC) 1530 +# ------------------- 1531 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1532 +AC_DEFUN([_LT_CC_BASENAME], 1533 +[for cc_temp in $1""; do 1534 + case $cc_temp in 1535 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1536 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1537 + \-*) ;; 1538 + *) break;; 1539 esac 1540 +done 1541 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1542 ]) 1543 -if test -n $lt_cv_sys_max_cmd_len ; then 1544 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1545 -else 1546 - AC_MSG_RESULT(none) 1547 -fi 1548 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN 1549 1550 1551 -# _LT_AC_CHECK_DLFCN 1552 -# ------------------ 1553 -AC_DEFUN([_LT_AC_CHECK_DLFCN], 1554 -[AC_CHECK_HEADERS(dlfcn.h)dnl 1555 -])# _LT_AC_CHECK_DLFCN 1556 +# _LT_COMPILER_BOILERPLATE 1557 +# ------------------------ 1558 +# Check for compiler boilerplate output or warnings with 1559 +# the simple compiler test code. 1560 +AC_DEFUN([_LT_COMPILER_BOILERPLATE], 1561 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 1562 +ac_outfile=conftest.$ac_objext 1563 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1564 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1565 +_lt_compiler_boilerplate=`cat conftest.err` 1566 +$rm conftest* 1567 +])# _LT_COMPILER_BOILERPLATE 1568 1569 1570 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1571 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1572 -# --------------------------------------------------------------------- 1573 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 1574 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1575 -if test "$cross_compiling" = yes; then : 1576 - [$4] 1577 -else 1578 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1579 - lt_status=$lt_dlunknown 1580 - cat > conftest.$ac_ext <<EOF 1581 -[#line __oline__ "configure" 1582 -#include "confdefs.h" 1583 +# _LT_LINKER_BOILERPLATE 1584 +# ---------------------- 1585 +# Check for linker boilerplate output or warnings with 1586 +# the simple link test code. 1587 +AC_DEFUN([_LT_LINKER_BOILERPLATE], 1588 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 1589 +ac_outfile=conftest.$ac_objext 1590 +echo "$lt_simple_link_test_code" >conftest.$ac_ext 1591 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1592 +_lt_linker_boilerplate=`cat conftest.err` 1593 +$rm conftest* 1594 +])# _LT_LINKER_BOILERPLATE 1595 1596 -#if HAVE_DLFCN_H 1597 -#include <dlfcn.h> 1598 -#endif 1599 1600 -#include <stdio.h> 1601 +# _LT_AC_SYS_LIBPATH_AIX 1602 +# ---------------------- 1603 +# Links a minimal program and checks the executable 1604 +# for the system default hardcoded library path. In most cases, 1605 +# this is /usr/lib:/lib, but when the MPI compilers are used 1606 +# the location of the communication and MPI libs are included too. 1607 +# If we don't find anything, use the default library path according 1608 +# to the aix ld manual. 1609 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 1610 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 1611 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 1612 +lt_aix_libpath_sed=' 1613 + /Import File Strings/,/^$/ { 1614 + /^0/ { 1615 + s/^0 *\(.*\)$/\1/ 1616 + p 1617 + } 1618 + }' 1619 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1620 +# Check for a 64-bit object if we didn't find anything. 1621 +if test -z "$aix_libpath"; then 1622 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1623 +fi],[]) 1624 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 1625 +])# _LT_AC_SYS_LIBPATH_AIX 1626 1627 -#ifdef RTLD_GLOBAL 1628 -# define LT_DLGLOBAL RTLD_GLOBAL 1629 -#else 1630 -# ifdef DL_GLOBAL 1631 -# define LT_DLGLOBAL DL_GLOBAL 1632 -# else 1633 -# define LT_DLGLOBAL 0 1634 -# endif 1635 -#endif 1636 1637 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 1638 - find out it does not work in some platform. */ 1639 -#ifndef LT_DLLAZY_OR_NOW 1640 -# ifdef RTLD_LAZY 1641 -# define LT_DLLAZY_OR_NOW RTLD_LAZY 1642 -# else 1643 -# ifdef DL_LAZY 1644 -# define LT_DLLAZY_OR_NOW DL_LAZY 1645 -# else 1646 -# ifdef RTLD_NOW 1647 -# define LT_DLLAZY_OR_NOW RTLD_NOW 1648 -# else 1649 -# ifdef DL_NOW 1650 -# define LT_DLLAZY_OR_NOW DL_NOW 1651 -# else 1652 -# define LT_DLLAZY_OR_NOW 0 1653 -# endif 1654 -# endif 1655 -# endif 1656 -# endif 1657 -#endif 1658 +# _LT_AC_SHELL_INIT(ARG) 1659 +# ---------------------- 1660 +AC_DEFUN([_LT_AC_SHELL_INIT], 1661 +[ifdef([AC_DIVERSION_NOTICE], 1662 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 1663 + [AC_DIVERT_PUSH(NOTICE)]) 1664 +$1 1665 +AC_DIVERT_POP 1666 +])# _LT_AC_SHELL_INIT 1667 1668 -#ifdef __cplusplus 1669 -extern "C" void exit (int); 1670 -#endif 1671 1672 -void fnord() { int i=42;} 1673 -int main () 1674 -{ 1675 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1676 - int status = $lt_dlunknown; 1677 +# _LT_AC_PROG_ECHO_BACKSLASH 1678 +# -------------------------- 1679 +# Add some code to the start of the generated configure script which 1680 +# will find an echo command which doesn't interpret backslashes. 1681 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 1682 +[_LT_AC_SHELL_INIT([ 1683 +# Check that we are running under the correct shell. 1684 +SHELL=${CONFIG_SHELL-/bin/sh} 1685 1686 - if (self) 1687 - { 1688 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1689 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1690 - /* dlclose (self); */ 1691 - } 1692 - else 1693 - puts (dlerror ()); 1694 +case X$ECHO in 1695 +X*--fallback-echo) 1696 + # Remove one level of quotation (which was required for Make). 1697 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 1698 + ;; 1699 +esac 1700 1701 - exit (status); 1702 -}] 1703 -EOF 1704 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1705 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1706 - lt_status=$? 1707 - case x$lt_status in 1708 - x$lt_dlno_uscore) $1 ;; 1709 - x$lt_dlneed_uscore) $2 ;; 1710 - x$lt_dlunknown|x*) $3 ;; 1711 - esac 1712 - else : 1713 - # compilation failed 1714 - $3 1715 - fi 1716 -fi 1717 -rm -fr conftest* 1718 -])# _LT_AC_TRY_DLOPEN_SELF 1719 - 1720 - 1721 -# AC_LIBTOOL_DLOPEN_SELF 1722 -# ---------------------- 1723 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 1724 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1725 -if test "x$enable_dlopen" != xyes; then 1726 - enable_dlopen=unknown 1727 - enable_dlopen_self=unknown 1728 - enable_dlopen_self_static=unknown 1729 +echo=${ECHO-echo} 1730 +if test "X[$]1" = X--no-reexec; then 1731 + # Discard the --no-reexec flag, and continue. 1732 + shift 1733 +elif test "X[$]1" = X--fallback-echo; then 1734 + # Avoid inline document here, it may be left over 1735 + : 1736 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 1737 + # Yippee, $echo works! 1738 + : 1739 else 1740 - lt_cv_dlopen=no 1741 - lt_cv_dlopen_libs= 1742 - 1743 - case $host_os in 1744 - beos*) 1745 - lt_cv_dlopen="load_add_on" 1746 - lt_cv_dlopen_libs= 1747 - lt_cv_dlopen_self=yes 1748 - ;; 1749 - 1750 - mingw* | pw32*) 1751 - lt_cv_dlopen="LoadLibrary" 1752 - lt_cv_dlopen_libs= 1753 - ;; 1754 - 1755 - cygwin*) 1756 - lt_cv_dlopen="dlopen" 1757 - lt_cv_dlopen_libs= 1758 - ;; 1759 + # Restart under the correct shell. 1760 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 1761 +fi 1762 1763 - darwin*) 1764 - # if libdl is installed we need to link against it 1765 - AC_CHECK_LIB([dl], [dlopen], 1766 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 1767 - lt_cv_dlopen="dyld" 1768 - lt_cv_dlopen_libs= 1769 - lt_cv_dlopen_self=yes 1770 - ]) 1771 - ;; 1772 +if test "X[$]1" = X--fallback-echo; then 1773 + # used as fallback echo 1774 + shift 1775 + cat <<EOF 1776 +[$]* 1777 +EOF 1778 + exit 0 1779 +fi 1780 1781 - *) 1782 - AC_CHECK_FUNC([shl_load], 1783 - [lt_cv_dlopen="shl_load"], 1784 - [AC_CHECK_LIB([dld], [shl_load], 1785 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 1786 - [AC_CHECK_FUNC([dlopen], 1787 - [lt_cv_dlopen="dlopen"], 1788 - [AC_CHECK_LIB([dl], [dlopen], 1789 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 1790 - [AC_CHECK_LIB([svld], [dlopen], 1791 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 1792 - [AC_CHECK_LIB([dld], [dld_link], 1793 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 1794 - ]) 1795 - ]) 1796 - ]) 1797 - ]) 1798 - ]) 1799 - ;; 1800 - esac 1801 +# The HP-UX ksh and POSIX shell print the target directory to stdout 1802 +# if CDPATH is set. 1803 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1804 1805 - if test "x$lt_cv_dlopen" != xno; then 1806 - enable_dlopen=yes 1807 - else 1808 - enable_dlopen=no 1809 - fi 1810 +if test -z "$ECHO"; then 1811 +if test "X${echo_test_string+set}" != Xset; then 1812 +# find a string as large as possible, as long as the shell can cope with it 1813 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1814 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1815 + if (echo_test_string=`eval $cmd`) 2>/dev/null && 1816 + echo_test_string=`eval $cmd` && 1817 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 1818 + then 1819 + break 1820 + fi 1821 + done 1822 +fi 1823 1824 - case $lt_cv_dlopen in 1825 - dlopen) 1826 - save_CPPFLAGS="$CPPFLAGS" 1827 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1828 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 1829 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 1830 + test "X$echo_testing_string" = "X$echo_test_string"; then 1831 + : 1832 +else 1833 + # The Solaris, AIX, and Digital Unix default echo programs unquote 1834 + # backslashes. This makes it impossible to quote backslashes using 1835 + # echo "$something" | sed 's/\\/\\\\/g' 1836 + # 1837 + # So, first we look for a working echo in the user's PATH. 1838 1839 - save_LDFLAGS="$LDFLAGS" 1840 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1841 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1842 + for dir in $PATH /usr/ucb; do 1843 + IFS="$lt_save_ifs" 1844 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1845 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 1846 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 1847 + test "X$echo_testing_string" = "X$echo_test_string"; then 1848 + echo="$dir/echo" 1849 + break 1850 + fi 1851 + done 1852 + IFS="$lt_save_ifs" 1853 1854 - save_LIBS="$LIBS" 1855 - LIBS="$lt_cv_dlopen_libs $LIBS" 1856 + if test "X$echo" = Xecho; then 1857 + # We didn't find a better echo, so look for alternatives. 1858 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 1859 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 1860 + test "X$echo_testing_string" = "X$echo_test_string"; then 1861 + # This shell has a builtin print -r that does the trick. 1862 + echo='print -r' 1863 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 1864 + test "X$CONFIG_SHELL" != X/bin/ksh; then 1865 + # If we have ksh, try running configure again with it. 1866 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 1867 + export ORIGINAL_CONFIG_SHELL 1868 + CONFIG_SHELL=/bin/ksh 1869 + export CONFIG_SHELL 1870 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1871 + else 1872 + # Try using printf. 1873 + echo='printf %s\n' 1874 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 1875 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 1876 + test "X$echo_testing_string" = "X$echo_test_string"; then 1877 + # Cool, printf works 1878 + : 1879 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1880 + test "X$echo_testing_string" = 'X\t' && 1881 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1882 + test "X$echo_testing_string" = "X$echo_test_string"; then 1883 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1884 + export CONFIG_SHELL 1885 + SHELL="$CONFIG_SHELL" 1886 + export SHELL 1887 + echo="$CONFIG_SHELL [$]0 --fallback-echo" 1888 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1889 + test "X$echo_testing_string" = 'X\t' && 1890 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1891 + test "X$echo_testing_string" = "X$echo_test_string"; then 1892 + echo="$CONFIG_SHELL [$]0 --fallback-echo" 1893 + else 1894 + # maybe with a smaller string... 1895 + prev=: 1896 1897 - AC_CACHE_CHECK([whether a program can dlopen itself], 1898 - lt_cv_dlopen_self, [dnl 1899 - _LT_AC_TRY_DLOPEN_SELF( 1900 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1901 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1902 - ]) 1903 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1904 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 1905 + then 1906 + break 1907 + fi 1908 + prev="$cmd" 1909 + done 1910 1911 - if test "x$lt_cv_dlopen_self" = xyes; then 1912 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1913 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1914 - lt_cv_dlopen_self_static, [dnl 1915 - _LT_AC_TRY_DLOPEN_SELF( 1916 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1917 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1918 - ]) 1919 + if test "$prev" != 'sed 50q "[$]0"'; then 1920 + echo_test_string=`eval $prev` 1921 + export echo_test_string 1922 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1923 + else 1924 + # Oops. We lost completely, so just stick with echo. 1925 + echo=echo 1926 + fi 1927 + fi 1928 fi 1929 + fi 1930 +fi 1931 +fi 1932 1933 - CPPFLAGS="$save_CPPFLAGS" 1934 - LDFLAGS="$save_LDFLAGS" 1935 - LIBS="$save_LIBS" 1936 - ;; 1937 - esac 1938 - 1939 - case $lt_cv_dlopen_self in 1940 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1941 - *) enable_dlopen_self=unknown ;; 1942 - esac 1943 - 1944 - case $lt_cv_dlopen_self_static in 1945 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1946 - *) enable_dlopen_self_static=unknown ;; 1947 - esac 1948 +# Copy echo and quote the copy suitably for passing to libtool from 1949 +# the Makefile, instead of quoting the original, which is used later. 1950 +ECHO=$echo 1951 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1952 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 1953 fi 1954 -])# AC_LIBTOOL_DLOPEN_SELF 1955 1956 +AC_SUBST(ECHO) 1957 +])])# _LT_AC_PROG_ECHO_BACKSLASH 1958 1959 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 1960 -# --------------------------------- 1961 -# Check to see if options -c and -o are simultaneously supported by compiler 1962 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 1963 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1964 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 1965 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 1966 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 1967 - $rm -r conftest 2>/dev/null 1968 - mkdir conftest 1969 - cd conftest 1970 - mkdir out 1971 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1972 1973 - lt_compiler_flag="-o out/conftest2.$ac_objext" 1974 +# _LT_AC_LOCK 1975 +# ----------- 1976 +AC_DEFUN([_LT_AC_LOCK], 1977 +[AC_ARG_ENABLE([libtool-lock], 1978 + [AC_HELP_STRING([--disable-libtool-lock], 1979 + [avoid locking (might break parallel builds)])]) 1980 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1981 + 1982 +# Some flags need to be propagated to the compiler or linker for good 1983 +# libtool support. 1984 +case $host in 1985 +ia64-*-hpux*) 1986 + # Find out which ABI we are using. 1987 + echo 'int i;' > conftest.$ac_ext 1988 + if AC_TRY_EVAL(ac_compile); then 1989 + case `/usr/bin/file conftest.$ac_objext` in 1990 + *ELF-32*) 1991 + HPUX_IA64_MODE="32" 1992 + ;; 1993 + *ELF-64*) 1994 + HPUX_IA64_MODE="64" 1995 + ;; 1996 + esac 1997 + fi 1998 + rm -rf conftest* 1999 + ;; 2000 +*-*-irix6*) 2001 + # Find out which ABI we are using. 2002 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext 2003 + if AC_TRY_EVAL(ac_compile); then 2004 + if test "$lt_cv_prog_gnu_ld" = yes; then 2005 + case `/usr/bin/file conftest.$ac_objext` in 2006 + *32-bit*) 2007 + LD="${LD-ld} -melf32bsmip" 2008 + ;; 2009 + *N32*) 2010 + LD="${LD-ld} -melf32bmipn32" 2011 + ;; 2012 + *64-bit*) 2013 + LD="${LD-ld} -melf64bmip" 2014 + ;; 2015 + esac 2016 + else 2017 + case `/usr/bin/file conftest.$ac_objext` in 2018 + *32-bit*) 2019 + LD="${LD-ld} -32" 2020 + ;; 2021 + *N32*) 2022 + LD="${LD-ld} -n32" 2023 + ;; 2024 + *64-bit*) 2025 + LD="${LD-ld} -64" 2026 + ;; 2027 + esac 2028 + fi 2029 + fi 2030 + rm -rf conftest* 2031 + ;; 2032 + 2033 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 2034 +s390*-*linux*|sparc*-*linux*) 2035 + # Find out which ABI we are using. 2036 + echo 'int i;' > conftest.$ac_ext 2037 + if AC_TRY_EVAL(ac_compile); then 2038 + case `/usr/bin/file conftest.o` in 2039 + *32-bit*) 2040 + case $host in 2041 + x86_64-*kfreebsd*-gnu) 2042 + LD="${LD-ld} -m elf_i386_fbsd" 2043 + ;; 2044 + x86_64-*linux*) 2045 + LD="${LD-ld} -m elf_i386" 2046 + ;; 2047 + ppc64-*linux*|powerpc64-*linux*) 2048 + LD="${LD-ld} -m elf32ppclinux" 2049 + ;; 2050 + s390x-*linux*) 2051 + LD="${LD-ld} -m elf_s390" 2052 + ;; 2053 + sparc64-*linux*) 2054 + LD="${LD-ld} -m elf32_sparc" 2055 + ;; 2056 + esac 2057 + ;; 2058 + *64-bit*) 2059 + case $host in 2060 + x86_64-*kfreebsd*-gnu) 2061 + LD="${LD-ld} -m elf_x86_64_fbsd" 2062 + ;; 2063 + x86_64-*linux*) 2064 + LD="${LD-ld} -m elf_x86_64" 2065 + ;; 2066 + ppc*-*linux*|powerpc*-*linux*) 2067 + LD="${LD-ld} -m elf64ppc" 2068 + ;; 2069 + s390*-*linux*) 2070 + LD="${LD-ld} -m elf64_s390" 2071 + ;; 2072 + sparc*-*linux*) 2073 + LD="${LD-ld} -m elf64_sparc" 2074 + ;; 2075 + esac 2076 + ;; 2077 + esac 2078 + fi 2079 + rm -rf conftest* 2080 + ;; 2081 + 2082 +*-*-sco3.2v5*) 2083 + # On SCO OpenServer 5, we need -belf to get full-featured binaries. 2084 + SAVE_CFLAGS="$CFLAGS" 2085 + CFLAGS="$CFLAGS -belf" 2086 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 2087 + [AC_LANG_PUSH(C) 2088 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 2089 + AC_LANG_POP]) 2090 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then 2091 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 2092 + CFLAGS="$SAVE_CFLAGS" 2093 + fi 2094 + ;; 2095 +sparc*-*solaris*) 2096 + # Find out which ABI we are using. 2097 + echo 'int i;' > conftest.$ac_ext 2098 + if AC_TRY_EVAL(ac_compile); then 2099 + case `/usr/bin/file conftest.o` in 2100 + *64-bit*) 2101 + case $lt_cv_prog_gnu_ld in 2102 + yes*) LD="${LD-ld} -m elf64_sparc" ;; 2103 + *) LD="${LD-ld} -64" ;; 2104 + esac 2105 + ;; 2106 + esac 2107 + fi 2108 + rm -rf conftest* 2109 + ;; 2110 + 2111 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 2112 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 2113 + AC_CHECK_TOOL(DLLTOOL, dlltool, false) 2114 + AC_CHECK_TOOL(AS, as, false) 2115 + AC_CHECK_TOOL(OBJDUMP, objdump, false) 2116 + ;; 2117 + ]) 2118 +esac 2119 + 2120 +need_locks="$enable_libtool_lock" 2121 + 2122 +])# _LT_AC_LOCK 2123 + 2124 + 2125 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2126 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 2127 +# ---------------------------------------------------------------- 2128 +# Check whether the given compiler option works 2129 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 2130 +[AC_REQUIRE([LT_AC_PROG_SED]) 2131 +AC_CACHE_CHECK([$1], [$2], 2132 + [$2=no 2133 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 2134 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2135 + lt_compiler_flag="$3" 2136 # Insert the option either (1) after the last *FLAGS variable, or 2137 # (2) before a word containing "conftest.", or (3) at the end. 2138 # Note that $ac_compile itself does not contain backslashes and begins 2139 # with a dollar sign (not a hyphen), so the echo should work correctly. 2140 + # The option is referenced via a variable to avoid confusing sed. 2141 lt_compile=`echo "$ac_compile" | $SED \ 2142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2143 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2144 -e 's:$: $lt_compiler_flag:'` 2145 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2146 - (eval "$lt_compile" 2>out/conftest.err) 2147 + (eval "$lt_compile" 2>conftest.err) 2148 ac_status=$? 2149 - cat out/conftest.err >&AS_MESSAGE_LOG_FD 2150 + cat conftest.err >&AS_MESSAGE_LOG_FD 2151 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2152 - if (exit $ac_status) && test -s out/conftest2.$ac_objext 2153 - then 2154 + if (exit $ac_status) && test -s "$ac_outfile"; then 2155 # The compiler can only warn and ignore the option if not recognized 2156 - # So say no if there are warnings 2157 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 2158 - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 2159 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 2160 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 2161 + # So say no if there are warnings other than the usual output. 2162 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 2163 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2164 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 2165 + $2=yes 2166 fi 2167 fi 2168 - chmod u+w . 2>&AS_MESSAGE_LOG_FD 2169 - $rm conftest* 2170 - # SGI C++ compiler will create directory out/ii_files/ for 2171 - # template instantiation 2172 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 2173 - $rm out/* && rmdir out 2174 - cd .. 2175 - rmdir conftest 2176 $rm conftest* 2177 ]) 2178 -])# AC_LIBTOOL_PROG_CC_C_O 2179 - 2180 - 2181 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 2182 -# ----------------------------------------- 2183 -# Check to see if we can do hard links to lock some files if needed 2184 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 2185 -[AC_REQUIRE([_LT_AC_LOCK])dnl 2186 2187 -hard_links="nottested" 2188 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 2189 - # do not overwrite the value of need_locks provided by the user 2190 - AC_MSG_CHECKING([if we can lock with hard links]) 2191 - hard_links=yes 2192 - $rm conftest* 2193 - ln conftest.a conftest.b 2>/dev/null && hard_links=no 2194 - touch conftest.a 2195 - ln conftest.a conftest.b 2>&5 || hard_links=no 2196 - ln conftest.a conftest.b 2>/dev/null && hard_links=no 2197 - AC_MSG_RESULT([$hard_links]) 2198 - if test "$hard_links" = no; then 2199 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 2200 - need_locks=warn 2201 - fi 2202 +if test x"[$]$2" = xyes; then 2203 + ifelse([$5], , :, [$5]) 2204 else 2205 - need_locks=no 2206 + ifelse([$6], , :, [$6]) 2207 fi 2208 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 2209 +])# AC_LIBTOOL_COMPILER_OPTION 2210 2211 2212 -# AC_LIBTOOL_OBJDIR 2213 -# ----------------- 2214 -AC_DEFUN([AC_LIBTOOL_OBJDIR], 2215 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2216 -[rm -f .libs 2>/dev/null 2217 -mkdir .libs 2>/dev/null 2218 -if test -d .libs; then 2219 - lt_cv_objdir=.libs 2220 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2221 +# [ACTION-SUCCESS], [ACTION-FAILURE]) 2222 +# ------------------------------------------------------------ 2223 +# Check whether the given compiler option works 2224 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 2225 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 2226 +AC_CACHE_CHECK([$1], [$2], 2227 + [$2=no 2228 + save_LDFLAGS="$LDFLAGS" 2229 + LDFLAGS="$LDFLAGS $3" 2230 + echo "$lt_simple_link_test_code" > conftest.$ac_ext 2231 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 2232 + # The linker can only warn and ignore the option if not recognized 2233 + # So say no if there are warnings 2234 + if test -s conftest.err; then 2235 + # Append any errors to the config.log. 2236 + cat conftest.err 1>&AS_MESSAGE_LOG_FD 2237 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 2238 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 2239 + if diff conftest.exp conftest.er2 >/dev/null; then 2240 + $2=yes 2241 + fi 2242 + else 2243 + $2=yes 2244 + fi 2245 + fi 2246 + $rm conftest* 2247 + LDFLAGS="$save_LDFLAGS" 2248 +]) 2249 + 2250 +if test x"[$]$2" = xyes; then 2251 + ifelse([$4], , :, [$4]) 2252 else 2253 - # MS-DOS does not allow filenames that begin with a dot. 2254 - lt_cv_objdir=_libs 2255 + ifelse([$5], , :, [$5]) 2256 fi 2257 -rmdir .libs 2>/dev/null]) 2258 -objdir=$lt_cv_objdir 2259 -])# AC_LIBTOOL_OBJDIR 2260 +])# AC_LIBTOOL_LINKER_OPTION 2261 2262 2263 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 2264 -# ---------------------------------------------- 2265 -# Check hardcoding attributes. 2266 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 2267 -[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2268 -_LT_AC_TAGVAR(hardcode_action, $1)= 2269 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 2270 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 2271 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 2272 +# AC_LIBTOOL_SYS_MAX_CMD_LEN 2273 +# -------------------------- 2274 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 2275 +[# find the maximum length of command line arguments 2276 +AC_MSG_CHECKING([the maximum length of command line arguments]) 2277 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 2278 + i=0 2279 + teststring="ABCD" 2280 2281 - # We can hardcode non-existant directories. 2282 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 2283 - # If the only mechanism to avoid hardcoding is shlibpath_var, we 2284 - # have to relink, otherwise we might link with an installed library 2285 - # when we should be linking with a yet-to-be-installed one 2286 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 2287 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 2288 - # Linking always hardcodes the temporary library directory. 2289 - _LT_AC_TAGVAR(hardcode_action, $1)=relink 2290 - else 2291 - # We can link without hardcoding, and we can hardcode nonexisting dirs. 2292 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate 2293 - fi 2294 -else 2295 - # We cannot hardcode anything, or else we can only hardcode existing 2296 - # directories. 2297 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 2298 -fi 2299 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 2300 + case $build_os in 2301 + msdosdjgpp*) 2302 + # On DJGPP, this test can blow up pretty badly due to problems in libc 2303 + # (any single argument exceeding 2000 bytes causes a buffer overrun 2304 + # during glob expansion). Even if it were fixed, the result of this 2305 + # check would be larger than it should be. 2306 + lt_cv_sys_max_cmd_len=12288; # 12K is about right 2307 + ;; 2308 2309 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 2310 - # Fast installation is not supported 2311 - enable_fast_install=no 2312 -elif test "$shlibpath_overrides_runpath" = yes || 2313 - test "$enable_shared" = no; then 2314 - # Fast installation is not necessary 2315 - enable_fast_install=needless 2316 -fi 2317 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 2318 + gnu*) 2319 + # Under GNU Hurd, this test is not required because there is 2320 + # no limit to the length of command line arguments. 2321 + # Libtool will interpret -1 as no limit whatsoever 2322 + lt_cv_sys_max_cmd_len=-1; 2323 + ;; 2324 2325 + cygwin* | mingw*) 2326 + # On Win9x/ME, this test blows up -- it succeeds, but takes 2327 + # about 5 minutes as the teststring grows exponentially. 2328 + # Worse, since 9x/ME are not pre-emptively multitasking, 2329 + # you end up with a "frozen" computer, even though with patience 2330 + # the test eventually succeeds (with a max line length of 256k). 2331 + # Instead, let's just punt: use the minimum linelength reported by 2332 + # all of the supported platforms: 8192 (on NT/2K/XP). 2333 + lt_cv_sys_max_cmd_len=8192; 2334 + ;; 2335 2336 -# AC_LIBTOOL_SYS_LIB_STRIP 2337 -# ------------------------ 2338 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 2339 -[striplib= 2340 -old_striplib= 2341 -AC_MSG_CHECKING([whether stripping libraries is possible]) 2342 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 2343 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2344 - test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2345 - AC_MSG_RESULT([yes]) 2346 -else 2347 -# FIXME - insert some real tests, host_os isn't really good enough 2348 - case $host_os in 2349 - darwin*) 2350 - if test -n "$STRIP" ; then 2351 - striplib="$STRIP -x" 2352 - AC_MSG_RESULT([yes]) 2353 - else 2354 - AC_MSG_RESULT([no]) 2355 -fi 2356 - ;; 2357 - *) 2358 - AC_MSG_RESULT([no]) 2359 + amigaos*) 2360 + # On AmigaOS with pdksh, this test takes hours, literally. 2361 + # So we just punt and use a minimum line length of 8192. 2362 + lt_cv_sys_max_cmd_len=8192; 2363 ;; 2364 - esac 2365 -fi 2366 -])# AC_LIBTOOL_SYS_LIB_STRIP 2367 2368 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 2369 + # This has been around since 386BSD, at least. Likely further. 2370 + if test -x /sbin/sysctl; then 2371 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 2372 + elif test -x /usr/sbin/sysctl; then 2373 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 2374 + else 2375 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 2376 + fi 2377 + # And add a safety zone 2378 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2379 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2380 + ;; 2381 2382 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER 2383 -# ----------------------------- 2384 -# PORTME Fill in your ld.so characteristics 2385 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 2386 -[AC_MSG_CHECKING([dynamic linker characteristics]) 2387 -library_names_spec= 2388 -libname_spec='lib$name' 2389 -soname_spec= 2390 -shrext_cmds=".so" 2391 -postinstall_cmds= 2392 -postuninstall_cmds= 2393 -finish_cmds= 2394 -finish_eval= 2395 -shlibpath_var= 2396 -shlibpath_overrides_runpath=unknown 2397 -version_type=none 2398 -dynamic_linker="$host_os ld.so" 2399 -sys_lib_dlsearch_path_spec="/lib /usr/lib" 2400 -if test "$GCC" = yes; then 2401 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2402 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 2403 - # if the path contains ";" then we assume it to be the separator 2404 - # otherwise default to the standard path separator (i.e. ":") - it is 2405 - # assumed that no part of a normal pathname contains ";" but that should 2406 - # okay in the real world where ";" in dirpaths is itself problematic. 2407 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2408 - else 2409 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2410 - fi 2411 + interix*) 2412 + # We know the value 262144 and hardcode it with a safety zone (like BSD) 2413 + lt_cv_sys_max_cmd_len=196608 2414 + ;; 2415 + 2416 + osf*) 2417 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 2418 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 2419 + # nice to cause kernel panics so lets avoid the loop below. 2420 + # First set a reasonable default. 2421 + lt_cv_sys_max_cmd_len=16384 2422 + # 2423 + if test -x /sbin/sysconfig; then 2424 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 2425 + *1*) lt_cv_sys_max_cmd_len=-1 ;; 2426 + esac 2427 + fi 2428 + ;; 2429 + sco3.2v5*) 2430 + lt_cv_sys_max_cmd_len=102400 2431 + ;; 2432 + sysv5* | sco5v6* | sysv4.2uw2*) 2433 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 2434 + if test -n "$kargmax"; then 2435 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 2436 + else 2437 + lt_cv_sys_max_cmd_len=32768 2438 + fi 2439 + ;; 2440 + *) 2441 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 2442 + if test -n "$lt_cv_sys_max_cmd_len"; then 2443 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 2444 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 2445 + else 2446 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 2447 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 2448 + = "XX$teststring") >/dev/null 2>&1 && 2449 + new_result=`expr "X$teststring" : ".*" 2>&1` && 2450 + lt_cv_sys_max_cmd_len=$new_result && 2451 + test $i != 17 # 1/2 MB should be enough 2452 + do 2453 + i=`expr $i + 1` 2454 + teststring=$teststring$teststring 2455 + done 2456 + teststring= 2457 + # Add a significant safety factor because C++ compilers can tack on massive 2458 + # amounts of additional arguments before passing them to the linker. 2459 + # It appears as though 1/2 is a usable value. 2460 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 2461 + fi 2462 + ;; 2463 + esac 2464 +]) 2465 +if test -n $lt_cv_sys_max_cmd_len ; then 2466 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 2467 else 2468 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2469 + AC_MSG_RESULT(none) 2470 fi 2471 -need_lib_prefix=unknown 2472 -hardcode_into_libs=no 2473 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN 2474 2475 -# when you set need_version to no, make sure it does not cause -set_version 2476 -# flags to be left without arguments 2477 -need_version=unknown 2478 2479 -case $host_os in 2480 -aix3*) 2481 - version_type=linux 2482 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 2483 - shlibpath_var=LIBPATH 2484 +# _LT_AC_CHECK_DLFCN 2485 +# ------------------ 2486 +AC_DEFUN([_LT_AC_CHECK_DLFCN], 2487 +[AC_CHECK_HEADERS(dlfcn.h)dnl 2488 +])# _LT_AC_CHECK_DLFCN 2489 2490 - # AIX 3 has no versioning support, so we append a major version to the name. 2491 - soname_spec='${libname}${release}${shared_ext}$major' 2492 - ;; 2493 2494 -aix4* | aix5*) 2495 - version_type=linux 2496 - need_lib_prefix=no 2497 - need_version=no 2498 - hardcode_into_libs=yes 2499 - if test "$host_cpu" = ia64; then 2500 - # AIX 5 supports IA64 2501 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 2502 - shlibpath_var=LD_LIBRARY_PATH 2503 - else 2504 - # With GCC up to 2.95.x, collect2 would create an import file 2505 - # for dependence libraries. The import file would start with 2506 - # the line `#! .'. This would cause the generated library to 2507 - # depend on `.', always an invalid library. This was fixed in 2508 - # development snapshots of GCC prior to 3.0. 2509 - case $host_os in 2510 - aix4 | aix4.[[01]] | aix4.[[01]].*) 2511 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2512 - echo ' yes ' 2513 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 2514 - : 2515 - else 2516 - can_build_shared=no 2517 - fi 2518 - ;; 2519 - esac 2520 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 2521 - # soname into executable. Probably we can add versioning support to 2522 - # collect2, so additional links can be useful in future. 2523 - if test "$aix_use_runtimelinking" = yes; then 2524 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2525 - # instead of lib<name>.a to let people know that these are not 2526 - # typical AIX shared libraries. 2527 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2528 - else 2529 - # We preserve .a as extension for shared libraries through AIX4.2 2530 - # and later when we are not doing run time linking. 2531 - library_names_spec='${libname}${release}.a $libname.a' 2532 - soname_spec='${libname}${release}${shared_ext}$major' 2533 - fi 2534 - shlibpath_var=LIBPATH 2535 - fi 2536 - ;; 2537 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 2538 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 2539 +# --------------------------------------------------------------------- 2540 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 2541 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 2542 +if test "$cross_compiling" = yes; then : 2543 + [$4] 2544 +else 2545 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 2546 + lt_status=$lt_dlunknown 2547 + cat > conftest.$ac_ext <<EOF 2548 +[#line __oline__ "configure" 2549 +#include "confdefs.h" 2550 2551 -amigaos*) 2552 - library_names_spec='$libname.ixlibrary $libname.a' 2553 - # Create ${libname}_ixlibrary.a entries in /sys/libs. 2554 - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 2555 - ;; 2556 +#if HAVE_DLFCN_H 2557 +#include <dlfcn.h> 2558 +#endif 2559 2560 -beos*) 2561 - library_names_spec='${libname}${shared_ext}' 2562 - dynamic_linker="$host_os ld.so" 2563 - shlibpath_var=LIBRARY_PATH 2564 - ;; 2565 +#include <stdio.h> 2566 2567 -bsdi[[45]]*) 2568 - version_type=linux 2569 - need_version=no 2570 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2571 - soname_spec='${libname}${release}${shared_ext}$major' 2572 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2573 - shlibpath_var=LD_LIBRARY_PATH 2574 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2575 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2576 - # the default ld.so.conf also contains /usr/contrib/lib and 2577 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2578 - # libtool to hard-code these into programs 2579 - ;; 2580 +#ifdef RTLD_GLOBAL 2581 +# define LT_DLGLOBAL RTLD_GLOBAL 2582 +#else 2583 +# ifdef DL_GLOBAL 2584 +# define LT_DLGLOBAL DL_GLOBAL 2585 +# else 2586 +# define LT_DLGLOBAL 0 2587 +# endif 2588 +#endif 2589 2590 -cygwin* | mingw* | pw32*) 2591 - version_type=windows 2592 - shrext_cmds=".dll" 2593 - need_version=no 2594 - need_lib_prefix=no 2595 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 2596 + find out it does not work in some platform. */ 2597 +#ifndef LT_DLLAZY_OR_NOW 2598 +# ifdef RTLD_LAZY 2599 +# define LT_DLLAZY_OR_NOW RTLD_LAZY 2600 +# else 2601 +# ifdef DL_LAZY 2602 +# define LT_DLLAZY_OR_NOW DL_LAZY 2603 +# else 2604 +# ifdef RTLD_NOW 2605 +# define LT_DLLAZY_OR_NOW RTLD_NOW 2606 +# else 2607 +# ifdef DL_NOW 2608 +# define LT_DLLAZY_OR_NOW DL_NOW 2609 +# else 2610 +# define LT_DLLAZY_OR_NOW 0 2611 +# endif 2612 +# endif 2613 +# endif 2614 +# endif 2615 +#endif 2616 2617 - case $GCC,$host_os in 2618 - yes,cygwin* | yes,mingw* | yes,pw32*) 2619 - library_names_spec='$libname.dll.a' 2620 - # DLL is installed to $(libdir)/../bin by postinstall_cmds 2621 - postinstall_cmds='base_file=`basename \${file}`~ 2622 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 2623 - dldir=$destdir/`dirname \$dlpath`~ 2624 - test -d \$dldir || mkdir -p \$dldir~ 2625 - $install_prog $dir/$dlname \$dldir/$dlname~ 2626 - chmod a+x \$dldir/$dlname' 2627 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2628 - dlpath=$dir/\$dldll~ 2629 - $rm \$dlpath' 2630 - shlibpath_overrides_runpath=yes 2631 +#ifdef __cplusplus 2632 +extern "C" void exit (int); 2633 +#endif 2634 2635 - case $host_os in 2636 - cygwin*) 2637 - # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2638 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2639 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 2640 - ;; 2641 - mingw*) 2642 - # MinGW DLLs use traditional 'lib' prefix 2643 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2644 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2645 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 2646 - # It is most probably a Windows format PATH printed by 2647 - # mingw gcc, but we are running on Cygwin. Gcc prints its search 2648 - # path with ; separators, and with drive letters. We can handle the 2649 - # drive letters (cygwin fileutils understands them), so leave them, 2650 - # especially as we might pass files found there to a mingw objdump, 2651 - # which wouldn't understand a cygwinified path. Ahh. 2652 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2653 - else 2654 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2655 - fi 2656 - ;; 2657 - pw32*) 2658 - # pw32 DLLs use 'pw' prefix rather than 'lib' 2659 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2660 - ;; 2661 +void fnord() { int i=42;} 2662 +int main () 2663 +{ 2664 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 2665 + int status = $lt_dlunknown; 2666 + 2667 + if (self) 2668 + { 2669 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 2670 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 2671 + /* dlclose (self); */ 2672 + } 2673 + else 2674 + puts (dlerror ()); 2675 + 2676 + exit (status); 2677 +}] 2678 +EOF 2679 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 2680 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 2681 + lt_status=$? 2682 + case x$lt_status in 2683 + x$lt_dlno_uscore) $1 ;; 2684 + x$lt_dlneed_uscore) $2 ;; 2685 + x$lt_dlunknown|x*) $3 ;; 2686 esac 2687 + else : 2688 + # compilation failed 2689 + $3 2690 + fi 2691 +fi 2692 +rm -fr conftest* 2693 +])# _LT_AC_TRY_DLOPEN_SELF 2694 + 2695 + 2696 +# AC_LIBTOOL_DLOPEN_SELF 2697 +# ---------------------- 2698 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 2699 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 2700 +if test "x$enable_dlopen" != xyes; then 2701 + enable_dlopen=unknown 2702 + enable_dlopen_self=unknown 2703 + enable_dlopen_self_static=unknown 2704 +else 2705 + lt_cv_dlopen=no 2706 + lt_cv_dlopen_libs= 2707 + 2708 + case $host_os in 2709 + beos*) 2710 + lt_cv_dlopen="load_add_on" 2711 + lt_cv_dlopen_libs= 2712 + lt_cv_dlopen_self=yes 2713 ;; 2714 2715 + mingw* | pw32*) 2716 + lt_cv_dlopen="LoadLibrary" 2717 + lt_cv_dlopen_libs= 2718 + ;; 2719 + 2720 + cygwin*) 2721 + lt_cv_dlopen="dlopen" 2722 + lt_cv_dlopen_libs= 2723 + ;; 2724 + 2725 + darwin*) 2726 + # if libdl is installed we need to link against it 2727 + AC_CHECK_LIB([dl], [dlopen], 2728 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 2729 + lt_cv_dlopen="dyld" 2730 + lt_cv_dlopen_libs= 2731 + lt_cv_dlopen_self=yes 2732 + ]) 2733 + ;; 2734 + 2735 *) 2736 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 2737 + AC_CHECK_FUNC([shl_load], 2738 + [lt_cv_dlopen="shl_load"], 2739 + [AC_CHECK_LIB([dld], [shl_load], 2740 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 2741 + [AC_CHECK_FUNC([dlopen], 2742 + [lt_cv_dlopen="dlopen"], 2743 + [AC_CHECK_LIB([dl], [dlopen], 2744 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 2745 + [AC_CHECK_LIB([svld], [dlopen], 2746 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 2747 + [AC_CHECK_LIB([dld], [dld_link], 2748 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 2749 + ]) 2750 + ]) 2751 + ]) 2752 + ]) 2753 + ]) 2754 ;; 2755 esac 2756 - dynamic_linker='Win32 ld.exe' 2757 - # FIXME: first we should search . and the directory the executable is in 2758 - shlibpath_var=PATH 2759 - ;; 2760 2761 -darwin* | rhapsody*) 2762 - dynamic_linker="$host_os dyld" 2763 - version_type=darwin 2764 - need_lib_prefix=no 2765 - need_version=no 2766 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2767 - soname_spec='${libname}${release}${major}$shared_ext' 2768 - shlibpath_overrides_runpath=yes 2769 - shlibpath_var=DYLD_LIBRARY_PATH 2770 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2771 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 2772 - if test "$GCC" = yes; then 2773 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 2774 + if test "x$lt_cv_dlopen" != xno; then 2775 + enable_dlopen=yes 2776 else 2777 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 2778 + enable_dlopen=no 2779 fi 2780 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2781 - ;; 2782 2783 -dgux*) 2784 - version_type=linux 2785 - need_lib_prefix=no 2786 - need_version=no 2787 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 2788 - soname_spec='${libname}${release}${shared_ext}$major' 2789 - shlibpath_var=LD_LIBRARY_PATH 2790 - ;; 2791 + case $lt_cv_dlopen in 2792 + dlopen) 2793 + save_CPPFLAGS="$CPPFLAGS" 2794 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 2795 2796 -freebsd1*) 2797 - dynamic_linker=no 2798 - ;; 2799 + save_LDFLAGS="$LDFLAGS" 2800 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 775 776 @@ -1402,18 +1836,6 @@ freebsd1*) 777 dynamic_linker=no 778 ;; 2801 779 2802 780 -kfreebsd*-gnu) … … 2811 789 - dynamic_linker='GNU ld.so' 2812 790 - ;; 2813 + save_LIBS="$LIBS" 2814 + LIBS="$lt_cv_dlopen_libs $LIBS" 2815 2816 -freebsd* | dragonfly*) 2817 - # DragonFly does not have aout. When/if they implement a new 2818 - # versioning mechanism, adjust this. 2819 - if test -x /usr/bin/objformat; then 2820 - objformat=`/usr/bin/objformat` 2821 - else 2822 - case $host_os in 2823 - freebsd[[123]]*) objformat=aout ;; 2824 - *) objformat=elf ;; 2825 - esac 2826 - fi 2827 - version_type=freebsd-$objformat 2828 - case $version_type in 2829 - freebsd-elf*) 2830 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2831 - need_version=no 2832 - need_lib_prefix=no 2833 - ;; 2834 - freebsd-*) 2835 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 2836 - need_version=yes 2837 - ;; 2838 - esac 2839 - shlibpath_var=LD_LIBRARY_PATH 2840 - case $host_os in 2841 - freebsd2*) 2842 - shlibpath_overrides_runpath=yes 2843 - ;; 2844 - freebsd3.[[01]]* | freebsdelf3.[[01]]*) 2845 - shlibpath_overrides_runpath=yes 2846 - hardcode_into_libs=yes 2847 - ;; 2848 - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 2849 - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 2850 - shlibpath_overrides_runpath=no 2851 - hardcode_into_libs=yes 2852 - ;; 2853 - freebsd*) # from 4.6 on 2854 - shlibpath_overrides_runpath=yes 2855 - hardcode_into_libs=yes 2856 - ;; 2857 - esac 2858 - ;; 2859 - 2860 -gnu*) 2861 - version_type=linux 2862 - need_lib_prefix=no 2863 - need_version=no 2864 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2865 - soname_spec='${libname}${release}${shared_ext}$major' 2866 - shlibpath_var=LD_LIBRARY_PATH 2867 - hardcode_into_libs=yes 2868 - ;; 2869 + AC_CACHE_CHECK([whether a program can dlopen itself], 2870 + lt_cv_dlopen_self, [dnl 2871 + _LT_AC_TRY_DLOPEN_SELF( 2872 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 2873 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 2874 + ]) 2875 2876 -hpux9* | hpux10* | hpux11*) 2877 - # Give a soname corresponding to the major version so that dld.sl refuses to 2878 - # link against other versions. 2879 - version_type=sunos 2880 - need_lib_prefix=no 2881 - need_version=no 2882 - case $host_cpu in 2883 - ia64*) 2884 - shrext_cmds='.so' 2885 - hardcode_into_libs=yes 2886 - dynamic_linker="$host_os dld.so" 2887 - shlibpath_var=LD_LIBRARY_PATH 2888 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2889 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2890 - soname_spec='${libname}${release}${shared_ext}$major' 2891 - if test "X$HPUX_IA64_MODE" = X32; then 2892 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 2893 - else 2894 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2895 + if test "x$lt_cv_dlopen_self" = xyes; then 2896 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 2897 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 2898 + lt_cv_dlopen_self_static, [dnl 2899 + _LT_AC_TRY_DLOPEN_SELF( 2900 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 2901 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 2902 + ]) 2903 fi 2904 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2905 - ;; 2906 - hppa*64*) 2907 - shrext_cmds='.sl' 2908 - hardcode_into_libs=yes 2909 - dynamic_linker="$host_os dld.sl" 2910 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2911 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2912 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2913 - soname_spec='${libname}${release}${shared_ext}$major' 2914 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2915 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2916 - ;; 2917 - *) 2918 - shrext_cmds='.sl' 2919 - dynamic_linker="$host_os dld.sl" 2920 - shlibpath_var=SHLIB_PATH 2921 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2922 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2923 - soname_spec='${libname}${release}${shared_ext}$major' 2924 + 2925 + CPPFLAGS="$save_CPPFLAGS" 2926 + LDFLAGS="$save_LDFLAGS" 2927 + LIBS="$save_LIBS" 2928 ;; 2929 esac 2930 - # HP-UX runs *really* slowly unless shared libraries are mode 555. 2931 - postinstall_cmds='chmod 555 $lib' 2932 - ;; 2933 - 2934 -interix3*) 2935 - version_type=linux 2936 - need_lib_prefix=no 2937 - need_version=no 2938 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2939 - soname_spec='${libname}${release}${shared_ext}$major' 2940 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2941 - shlibpath_var=LD_LIBRARY_PATH 2942 - shlibpath_overrides_runpath=no 2943 - hardcode_into_libs=yes 2944 - ;; 2945 2946 -irix5* | irix6* | nonstopux*) 2947 - case $host_os in 2948 - nonstopux*) version_type=nonstopux ;; 2949 - *) 2950 - if test "$lt_cv_prog_gnu_ld" = yes; then 2951 - version_type=linux 2952 - else 2953 - version_type=irix 2954 - fi ;; 2955 - esac 2956 - need_lib_prefix=no 2957 - need_version=no 2958 - soname_spec='${libname}${release}${shared_ext}$major' 2959 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 2960 - case $host_os in 2961 - irix5* | nonstopux*) 2962 - libsuff= shlibsuff= 2963 - ;; 2964 - *) 2965 - case $LD in # libtool.m4 will add one of these switches to LD 2966 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2967 - libsuff= shlibsuff= libmagic=32-bit;; 2968 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2969 - libsuff=32 shlibsuff=N32 libmagic=N32;; 2970 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2971 - libsuff=64 shlibsuff=64 libmagic=64-bit;; 2972 - *) libsuff= shlibsuff= libmagic=never-match;; 2973 - esac 2974 - ;; 2975 + case $lt_cv_dlopen_self in 2976 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 2977 + *) enable_dlopen_self=unknown ;; 2978 esac 2979 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2980 - shlibpath_overrides_runpath=no 2981 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 2982 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 2983 - hardcode_into_libs=yes 2984 - ;; 2985 2986 -# No shared lib support for Linux oldld, aout, or coff. 2987 -linux*oldld* | linux*aout* | linux*coff*) 2988 - dynamic_linker=no 2989 - ;; 2990 + case $lt_cv_dlopen_self_static in 2991 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 2992 + *) enable_dlopen_self_static=unknown ;; 2993 + esac 2994 +fi 2995 +])# AC_LIBTOOL_DLOPEN_SELF 2996 2997 -# This must be Linux ELF. 791 - 792 freebsd* | dragonfly*) 793 # DragonFly does not have aout. When/if they implement a new 794 # versioning mechanism, adjust this. 795 @@ -1569,7 +1991,7 @@ linux*oldld* | linux*aout* | linux*coff* 796 ;; 797 798 # This must be Linux ELF. 2998 799 -linux*) 2999 - version_type=linux 3000 - need_lib_prefix=no 3001 - need_version=no 3002 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3003 - soname_spec='${libname}${release}${shared_ext}$major' 3004 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 3005 - shlibpath_var=LD_LIBRARY_PATH 3006 - shlibpath_overrides_runpath=no 3007 - # This implies no fast_install, which is unacceptable. 3008 - # Some rework will be needed to allow for fast_install 3009 - # before this can be enabled. 3010 - hardcode_into_libs=yes 3011 3012 - # Append ld.so.conf contents to the search path 3013 - if test -f /etc/ld.so.conf; then 3014 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 3015 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 3016 - fi 3017 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 3018 +# --------------------------------- 3019 +# Check to see if options -c and -o are simultaneously supported by compiler 3020 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 3021 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 3022 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 3023 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 3024 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 3025 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 3026 + $rm -r conftest 2>/dev/null 3027 + mkdir conftest 3028 + cd conftest 3029 + mkdir out 3030 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3031 3032 - # We used to test for /lib/ld.so.1 and disable shared libraries on 3033 - # powerpc, because MkLinux only supported shared libraries with the 3034 - # GNU dynamic linker. Since this was broken with cross compilers, 3035 - # most powerpc-linux boxes support dynamic linking these days and 3036 - # people can always --disable-shared, the test was removed, and we 3037 - # assume the GNU/Linux dynamic linker is in use. 3038 - dynamic_linker='GNU/Linux ld.so' 3039 - ;; 3040 + lt_compiler_flag="-o out/conftest2.$ac_objext" 3041 + # Insert the option either (1) after the last *FLAGS variable, or 3042 + # (2) before a word containing "conftest.", or (3) at the end. 3043 + # Note that $ac_compile itself does not contain backslashes and begins 3044 + # with a dollar sign (not a hyphen), so the echo should work correctly. 3045 + lt_compile=`echo "$ac_compile" | $SED \ 3046 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3047 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3048 + -e 's:$: $lt_compiler_flag:'` 3049 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3050 + (eval "$lt_compile" 2>out/conftest.err) 3051 + ac_status=$? 3052 + cat out/conftest.err >&AS_MESSAGE_LOG_FD 3053 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3054 + if (exit $ac_status) && test -s out/conftest2.$ac_objext 3055 + then 3056 + # The compiler can only warn and ignore the option if not recognized 3057 + # So say no if there are warnings 3058 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 3059 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 3060 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 3061 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 3062 + fi 3063 + fi 3064 + chmod u+w . 2>&AS_MESSAGE_LOG_FD 3065 + $rm conftest* 3066 + # SGI C++ compiler will create directory out/ii_files/ for 3067 + # template instantiation 3068 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 3069 + $rm out/* && rmdir out 3070 + cd .. 3071 + rmdir conftest 3072 + $rm conftest* 3073 +]) 3074 +])# AC_LIBTOOL_PROG_CC_C_O 3075 3076 -knetbsd*-gnu) 3077 - version_type=linux 3078 - need_lib_prefix=no 3079 - need_version=no 3080 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3081 - soname_spec='${libname}${release}${shared_ext}$major' 3082 - shlibpath_var=LD_LIBRARY_PATH 3083 - shlibpath_overrides_runpath=no 3084 - hardcode_into_libs=yes 3085 - dynamic_linker='GNU ld.so' 3086 - ;; 3087 3088 -netbsd*) 3089 - version_type=sunos 3090 - need_lib_prefix=no 3091 - need_version=no 3092 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3093 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3094 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3095 - dynamic_linker='NetBSD (a.out) ld.so' 3096 - else 3097 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3098 - soname_spec='${libname}${release}${shared_ext}$major' 3099 - dynamic_linker='NetBSD ld.elf_so' 3100 - fi 3101 - shlibpath_var=LD_LIBRARY_PATH 3102 - shlibpath_overrides_runpath=yes 3103 - hardcode_into_libs=yes 3104 - ;; 3105 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 3106 +# ----------------------------------------- 3107 +# Check to see if we can do hard links to lock some files if needed 3108 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 3109 +[AC_REQUIRE([_LT_AC_LOCK])dnl 3110 3111 -newsos6) 3112 - version_type=linux 3113 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3114 - shlibpath_var=LD_LIBRARY_PATH 3115 - shlibpath_overrides_runpath=yes 3116 - ;; 3117 +hard_links="nottested" 3118 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 3119 + # do not overwrite the value of need_locks provided by the user 3120 + AC_MSG_CHECKING([if we can lock with hard links]) 3121 + hard_links=yes 3122 + $rm conftest* 3123 + ln conftest.a conftest.b 2>/dev/null && hard_links=no 3124 + touch conftest.a 3125 + ln conftest.a conftest.b 2>&5 || hard_links=no 3126 + ln conftest.a conftest.b 2>/dev/null && hard_links=no 3127 + AC_MSG_RESULT([$hard_links]) 3128 + if test "$hard_links" = no; then 3129 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 3130 + need_locks=warn 3131 + fi 3132 +else 3133 + need_locks=no 3134 +fi 3135 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 3136 3137 -nto-qnx*) 3138 - version_type=linux 3139 - need_lib_prefix=no 3140 - need_version=no 3141 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3142 - soname_spec='${libname}${release}${shared_ext}$major' 3143 - shlibpath_var=LD_LIBRARY_PATH 3144 - shlibpath_overrides_runpath=yes 3145 - ;; 3146 3147 -openbsd*) 3148 - version_type=sunos 3149 - sys_lib_dlsearch_path_spec="/usr/lib" 3150 - need_lib_prefix=no 3151 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 3152 +# AC_LIBTOOL_OBJDIR 3153 +# ----------------- 3154 +AC_DEFUN([AC_LIBTOOL_OBJDIR], 3155 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 3156 +[rm -f .libs 2>/dev/null 3157 +mkdir .libs 2>/dev/null 3158 +if test -d .libs; then 3159 + lt_cv_objdir=.libs 3160 +else 3161 + # MS-DOS does not allow filenames that begin with a dot. 3162 + lt_cv_objdir=_libs 3163 +fi 3164 +rmdir .libs 2>/dev/null]) 3165 +objdir=$lt_cv_objdir 3166 +])# AC_LIBTOOL_OBJDIR 3167 + 3168 + 3169 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 3170 +# ---------------------------------------------- 3171 +# Check hardcoding attributes. 3172 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 3173 +[AC_MSG_CHECKING([how to hardcode library paths into programs]) 3174 +_LT_AC_TAGVAR(hardcode_action, $1)= 3175 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 3176 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 3177 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 3178 + 3179 + # We can hardcode non-existant directories. 3180 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 3181 + # If the only mechanism to avoid hardcoding is shlibpath_var, we 3182 + # have to relink, otherwise we might link with an installed library 3183 + # when we should be linking with a yet-to-be-installed one 3184 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 3185 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 3186 + # Linking always hardcodes the temporary library directory. 3187 + _LT_AC_TAGVAR(hardcode_action, $1)=relink 3188 + else 3189 + # We can link without hardcoding, and we can hardcode nonexisting dirs. 3190 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate 3191 + fi 3192 +else 3193 + # We cannot hardcode anything, or else we can only hardcode existing 3194 + # directories. 3195 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 3196 +fi 3197 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 3198 + 3199 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 3200 + # Fast installation is not supported 3201 + enable_fast_install=no 3202 +elif test "$shlibpath_overrides_runpath" = yes || 3203 + test "$enable_shared" = no; then 3204 + # Fast installation is not necessary 3205 + enable_fast_install=needless 3206 +fi 3207 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 3208 + 3209 + 3210 +# AC_LIBTOOL_SYS_LIB_STRIP 3211 +# ------------------------ 3212 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 3213 +[striplib= 3214 +old_striplib= 3215 +AC_MSG_CHECKING([whether stripping libraries is possible]) 3216 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 3217 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 3218 + test -z "$striplib" && striplib="$STRIP --strip-unneeded" 3219 + AC_MSG_RESULT([yes]) 3220 +else 3221 +# FIXME - insert some real tests, host_os isn't really good enough 3222 case $host_os in 3223 - openbsd3.3 | openbsd3.3.*) need_version=yes ;; 3224 - *) need_version=no ;; 3225 + darwin*) 3226 + if test -n "$STRIP" ; then 3227 + striplib="$STRIP -x" 3228 + old_striplib="$STRIP -S" 3229 + AC_MSG_RESULT([yes]) 3230 + else 3231 + AC_MSG_RESULT([no]) 3232 +fi 3233 + ;; 3234 + *) 3235 + AC_MSG_RESULT([no]) 3236 + ;; 3237 esac 3238 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3239 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3240 - shlibpath_var=LD_LIBRARY_PATH 3241 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3242 - case $host_os in 3243 - openbsd2.[[89]] | openbsd2.[[89]].*) 3244 - shlibpath_overrides_runpath=no 3245 - ;; 3246 - *) 3247 - shlibpath_overrides_runpath=yes 3248 - ;; 3249 - esac 3250 +fi 3251 +])# AC_LIBTOOL_SYS_LIB_STRIP 3252 + 3253 + 3254 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER 3255 +# ----------------------------- 3256 +# PORTME Fill in your ld.so characteristics 3257 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 3258 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 3259 +AC_MSG_CHECKING([dynamic linker characteristics]) 3260 +library_names_spec= 3261 +libname_spec='lib$name' 3262 +soname_spec= 3263 +shrext_cmds=".so" 3264 +postinstall_cmds= 3265 +postuninstall_cmds= 3266 +finish_cmds= 3267 +finish_eval= 3268 +shlibpath_var= 3269 +shlibpath_overrides_runpath=unknown 3270 +version_type=none 3271 +dynamic_linker="$host_os ld.so" 3272 +sys_lib_dlsearch_path_spec="/lib /usr/lib" 3273 +m4_if($1,[],[ 3274 +if test "$GCC" = yes; then 3275 + case $host_os in 3276 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 3277 + *) lt_awk_arg="/^libraries:/" ;; 3278 + esac 3279 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 3280 + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 3281 + # if the path contains ";" then we assume it to be the separator 3282 + # otherwise default to the standard path separator (i.e. ":") - it is 3283 + # assumed that no part of a normal pathname contains ";" but that should 3284 + # okay in the real world where ";" in dirpaths is itself problematic. 3285 + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 3286 else 3287 - shlibpath_overrides_runpath=yes 3288 + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3289 fi 3290 - ;; 3291 + # Ok, now we have the path, separated by spaces, we can step through it 3292 + # and add multilib dir if necessary. 3293 + lt_tmp_lt_search_path_spec= 3294 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 3295 + for lt_sys_path in $lt_search_path_spec; do 3296 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then 3297 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 3298 + else 3299 + test -d "$lt_sys_path" && \ 3300 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 3301 + fi 3302 + done 3303 + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 3304 +BEGIN {RS=" "; FS="/|\n";} { 3305 + lt_foo=""; 3306 + lt_count=0; 3307 + for (lt_i = NF; lt_i > 0; lt_i--) { 3308 + if ($lt_i != "" && $lt_i != ".") { 3309 + if ($lt_i == "..") { 3310 + lt_count++; 3311 + } else { 3312 + if (lt_count == 0) { 3313 + lt_foo="/" $lt_i lt_foo; 3314 + } else { 3315 + lt_count--; 3316 + } 3317 + } 3318 + } 3319 + } 3320 + if (lt_foo != "") { lt_freq[[lt_foo]]++; } 3321 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 3322 +}'` 3323 + sys_lib_search_path_spec=`echo $lt_search_path_spec` 3324 +else 3325 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3326 +fi]) 3327 +need_lib_prefix=unknown 3328 +hardcode_into_libs=no 3329 3330 -os2*) 3331 - libname_spec='$name' 3332 - shrext_cmds=".dll" 3333 - need_lib_prefix=no 3334 - library_names_spec='$libname${shared_ext} $libname.a' 3335 - dynamic_linker='OS/2 ld.exe' 3336 +# when you set need_version to no, make sure it does not cause -set_version 3337 +# flags to be left without arguments 3338 +need_version=unknown 3339 + 3340 +case $host_os in 3341 +aix3*) 3342 + version_type=linux 3343 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 3344 shlibpath_var=LIBPATH 3345 - ;; 3346 3347 -osf3* | osf4* | osf5*) 3348 - version_type=osf 3349 - need_lib_prefix=no 3350 - need_version=no 3351 + # AIX 3 has no versioning support, so we append a major version to the name. 3352 soname_spec='${libname}${release}${shared_ext}$major' 3353 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3354 - shlibpath_var=LD_LIBRARY_PATH 3355 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 3356 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 3357 ;; 3358 3359 -solaris*) 3360 +aix4* | aix5*) 800 +linux* | k*bsd*-gnu) 3361 801 version_type=linux 3362 802 need_lib_prefix=no 3363 803 need_version=no 3364 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3365 - soname_spec='${libname}${release}${shared_ext}$major' 3366 - shlibpath_var=LD_LIBRARY_PATH 3367 - shlibpath_overrides_runpath=yes 3368 hardcode_into_libs=yes 3369 - # ldd complains unless libraries are executable 3370 - postinstall_cmds='chmod +x $lib' 3371 - ;; 3372 - 3373 -sunos4*) 3374 - version_type=sunos 3375 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3376 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 3377 - shlibpath_var=LD_LIBRARY_PATH 3378 - shlibpath_overrides_runpath=yes 3379 - if test "$with_gnu_ld" = yes; then 3380 - need_lib_prefix=no 3381 + if test "$host_cpu" = ia64; then 3382 + # AIX 5 supports IA64 3383 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 3384 + shlibpath_var=LD_LIBRARY_PATH 3385 + else 3386 + # With GCC up to 2.95.x, collect2 would create an import file 3387 + # for dependence libraries. The import file would start with 3388 + # the line `#! .'. This would cause the generated library to 3389 + # depend on `.', always an invalid library. This was fixed in 3390 + # development snapshots of GCC prior to 3.0. 3391 + case $host_os in 3392 + aix4 | aix4.[[01]] | aix4.[[01]].*) 3393 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 3394 + echo ' yes ' 3395 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 3396 + : 3397 + else 3398 + can_build_shared=no 3399 + fi 3400 + ;; 3401 + esac 3402 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 3403 + # soname into executable. Probably we can add versioning support to 3404 + # collect2, so additional links can be useful in future. 3405 + if test "$aix_use_runtimelinking" = yes; then 3406 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so 3407 + # instead of lib<name>.a to let people know that these are not 3408 + # typical AIX shared libraries. 3409 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3410 + else 3411 + # We preserve .a as extension for shared libraries through AIX4.2 3412 + # and later when we are not doing run time linking. 3413 + library_names_spec='${libname}${release}.a $libname.a' 3414 + soname_spec='${libname}${release}${shared_ext}$major' 3415 + fi 3416 + shlibpath_var=LIBPATH 3417 fi 3418 - need_version=yes 804 @@ -1598,7 +2020,7 @@ linux*) 805 dynamic_linker='GNU/Linux ld.so' 3419 806 ;; 3420 807 3421 -sysv4 | sysv4.3*) 3422 - version_type=linux 3423 +amigaos*) 3424 + library_names_spec='$libname.ixlibrary $libname.a' 3425 + # Create ${libname}_ixlibrary.a entries in /sys/libs. 3426 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 3427 + ;; 3428 + 3429 +beos*) 3430 + library_names_spec='${libname}${shared_ext}' 3431 + dynamic_linker="$host_os ld.so" 3432 + shlibpath_var=LIBRARY_PATH 3433 + ;; 3434 + 3435 +bsdi[[45]]*) 3436 + version_type=linux 3437 + need_version=no 3438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3439 soname_spec='${libname}${release}${shared_ext}$major' 3440 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 3441 shlibpath_var=LD_LIBRARY_PATH 3442 - case $host_vendor in 3443 - sni) 3444 - shlibpath_overrides_runpath=no 3445 - need_lib_prefix=no 3446 - export_dynamic_flag_spec='${wl}-Blargedynsym' 3447 - runpath_var=LD_RUN_PATH 3448 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 3449 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 3450 + # the default ld.so.conf also contains /usr/contrib/lib and 3451 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 3452 + # libtool to hard-code these into programs 3453 + ;; 3454 + 3455 +cygwin* | mingw* | pw32*) 3456 + version_type=windows 3457 + shrext_cmds=".dll" 3458 + need_version=no 3459 + need_lib_prefix=no 3460 + 3461 + case $GCC,$host_os in 3462 + yes,cygwin* | yes,mingw* | yes,pw32*) 3463 + library_names_spec='$libname.dll.a' 3464 + # DLL is installed to $(libdir)/../bin by postinstall_cmds 3465 + postinstall_cmds='base_file=`basename \${file}`~ 3466 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 3467 + dldir=$destdir/`dirname \$dlpath`~ 3468 + test -d \$dldir || mkdir -p \$dldir~ 3469 + $install_prog $dir/$dlname \$dldir/$dlname~ 3470 + chmod a+x \$dldir/$dlname' 3471 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 3472 + dlpath=$dir/\$dldll~ 3473 + $rm \$dlpath' 3474 + shlibpath_overrides_runpath=yes 3475 + 3476 + case $host_os in 3477 + cygwin*) 3478 + # Cygwin DLLs use 'cyg' prefix rather than 'lib' 3479 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3480 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 3481 ;; 3482 - siemens) 3483 - need_lib_prefix=no 3484 + mingw*) 3485 + # MinGW DLLs use traditional 'lib' prefix 3486 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3487 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 3488 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 3489 + # It is most probably a Windows format PATH printed by 3490 + # mingw gcc, but we are running on Cygwin. Gcc prints its search 3491 + # path with ; separators, and with drive letters. We can handle the 3492 + # drive letters (cygwin fileutils understands them), so leave them, 3493 + # especially as we might pass files found there to a mingw objdump, 3494 + # which wouldn't understand a cygwinified path. Ahh. 3495 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 3496 + else 3497 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 3498 + fi 3499 ;; 3500 - motorola) 3501 - need_lib_prefix=no 3502 - need_version=no 3503 - shlibpath_overrides_runpath=no 3504 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 3505 + pw32*) 3506 + # pw32 DLLs use 'pw' prefix rather than 'lib' 3507 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 3508 ;; 3509 + esac 3510 + ;; 3511 + 3512 + *) 3513 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 3514 + ;; 3515 esac 3516 + dynamic_linker='Win32 ld.exe' 3517 + # FIXME: first we should search . and the directory the executable is in 3518 + shlibpath_var=PATH 3519 ;; 3520 3521 -sysv4*MP*) 3522 - if test -d /usr/nec ;then 3523 - version_type=linux 3524 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 3525 - soname_spec='$libname${shared_ext}.$major' 3526 - shlibpath_var=LD_LIBRARY_PATH 3527 - fi 3528 +darwin* | rhapsody*) 3529 + dynamic_linker="$host_os dyld" 3530 + version_type=darwin 3531 + need_lib_prefix=no 3532 + need_version=no 3533 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 3534 + soname_spec='${libname}${release}${major}$shared_ext' 3535 + shlibpath_overrides_runpath=yes 3536 + shlibpath_var=DYLD_LIBRARY_PATH 3537 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 3538 + m4_if([$1], [],[ 3539 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 3540 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 3541 ;; 3542 3543 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3544 - version_type=freebsd-elf 3545 +dgux*) 3546 + version_type=linux 808 -knetbsd*-gnu) 809 +netbsdelf*-gnu) 810 version_type=linux 3547 811 need_lib_prefix=no 3548 812 need_version=no 3549 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 3550 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 3551 soname_spec='${libname}${release}${shared_ext}$major' 813 @@ -1607,7 +2029,7 @@ knetbsd*-gnu) 3552 814 shlibpath_var=LD_LIBRARY_PATH 3553 - hardcode_into_libs=yes 3554 - if test "$with_gnu_ld" = yes; then 3555 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 3556 - shlibpath_overrides_runpath=no 3557 + ;; 3558 + 3559 +freebsd1*) 3560 + dynamic_linker=no 3561 + ;; 3562 + 3563 +freebsd* | dragonfly*) 3564 + # DragonFly does not have aout. When/if they implement a new 3565 + # versioning mechanism, adjust this. 3566 + if test -x /usr/bin/objformat; then 3567 + objformat=`/usr/bin/objformat` 3568 else 3569 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 3570 - shlibpath_overrides_runpath=yes 3571 case $host_os in 3572 - sco3.2v5*) 3573 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 3574 - ;; 3575 + freebsd[[123]]*) objformat=aout ;; 3576 + *) objformat=elf ;; 3577 esac 3578 fi 3579 - sys_lib_dlsearch_path_spec='/usr/lib' 3580 + version_type=freebsd-$objformat 3581 + case $version_type in 3582 + freebsd-elf*) 3583 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 3584 + need_version=no 3585 + need_lib_prefix=no 3586 + ;; 3587 + freebsd-*) 3588 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 3589 + need_version=yes 3590 + ;; 3591 + esac 3592 + shlibpath_var=LD_LIBRARY_PATH 3593 + case $host_os in 3594 + freebsd2*) 3595 + shlibpath_overrides_runpath=yes 3596 + ;; 3597 + freebsd3.[[01]]* | freebsdelf3.[[01]]*) 3598 + shlibpath_overrides_runpath=yes 3599 + hardcode_into_libs=yes 3600 + ;; 3601 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 3602 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 3603 + shlibpath_overrides_runpath=no 3604 + hardcode_into_libs=yes 3605 + ;; 3606 + *) # from 4.6 on, and DragonFly 3607 + shlibpath_overrides_runpath=yes 3608 + hardcode_into_libs=yes 3609 + ;; 3610 + esac 815 shlibpath_overrides_runpath=no 816 hardcode_into_libs=yes 817 - dynamic_linker='GNU ld.so' 818 + dynamic_linker='NetBSD ld.elf_so' 3611 819 ;; 3612 820 3613 -uts4*) 3614 +gnu*) 3615 version_type=linux 3616 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3617 + need_lib_prefix=no 3618 + need_version=no 3619 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 3620 soname_spec='${libname}${release}${shared_ext}$major' 3621 shlibpath_var=LD_LIBRARY_PATH 3622 + hardcode_into_libs=yes 3623 ;; 3624 3625 -*) 3626 - dynamic_linker=no 3627 - ;; 3628 -esac 3629 -AC_MSG_RESULT([$dynamic_linker]) 3630 -test "$dynamic_linker" = no && can_build_shared=no 3631 - 3632 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 3633 -if test "$GCC" = yes; then 3634 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 3635 -fi 3636 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 3637 - 3638 - 3639 -# _LT_AC_TAGCONFIG 3640 -# ---------------- 3641 -AC_DEFUN([_LT_AC_TAGCONFIG], 3642 -[AC_ARG_WITH([tags], 3643 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 3644 - [include additional configurations @<:@automatic@:>@])], 3645 - [tagnames="$withval"]) 3646 - 3647 -if test -f "$ltmain" && test -n "$tagnames"; then 3648 - if test ! -f "${ofile}"; then 3649 - AC_MSG_WARN([output file `$ofile' does not exist]) 3650 - fi 3651 - 3652 - if test -z "$LTCC"; then 3653 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 3654 - if test -z "$LTCC"; then 3655 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 3656 +hpux9* | hpux10* | hpux11*) 3657 + # Give a soname corresponding to the major version so that dld.sl refuses to 3658 + # link against other versions. 3659 + version_type=sunos 3660 + need_lib_prefix=no 3661 + need_version=no 3662 + case $host_cpu in 3663 + ia64*) 3664 + shrext_cmds='.so' 3665 + hardcode_into_libs=yes 3666 + dynamic_linker="$host_os dld.so" 3667 + shlibpath_var=LD_LIBRARY_PATH 3668 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3669 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3670 + soname_spec='${libname}${release}${shared_ext}$major' 3671 + if test "X$HPUX_IA64_MODE" = X32; then 3672 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 3673 else 3674 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 3675 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 3676 fi 3677 - fi 3678 - if test -z "$LTCFLAGS"; then 3679 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 3680 - fi 3681 - 3682 - # Extract list of available tagged configurations in $ofile. 3683 - # Note that this assumes the entire list is on one line. 3684 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 3685 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3686 + ;; 3687 + hppa*64*) 3688 + shrext_cmds='.sl' 3689 + hardcode_into_libs=yes 3690 + dynamic_linker="$host_os dld.sl" 3691 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 3692 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 3693 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3694 + soname_spec='${libname}${release}${shared_ext}$major' 3695 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 3696 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3697 + ;; 3698 + *) 3699 + shrext_cmds='.sl' 3700 + dynamic_linker="$host_os dld.sl" 3701 + shlibpath_var=SHLIB_PATH 3702 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 3703 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3704 + soname_spec='${libname}${release}${shared_ext}$major' 3705 + ;; 3706 + esac 3707 + # HP-UX runs *really* slowly unless shared libraries are mode 555. 3708 + postinstall_cmds='chmod 555 $lib' 3709 + ;; 3710 3711 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3712 - for tagname in $tagnames; do 3713 - IFS="$lt_save_ifs" 3714 - # Check whether tagname contains only valid characters 3715 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 3716 - "") ;; 3717 - *) AC_MSG_ERROR([invalid tag name: $tagname]) 3718 - ;; 3719 +interix[[3-9]]*) 3720 + version_type=linux 3721 + need_lib_prefix=no 3722 + need_version=no 3723 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3724 + soname_spec='${libname}${release}${shared_ext}$major' 3725 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 3726 + shlibpath_var=LD_LIBRARY_PATH 3727 + shlibpath_overrides_runpath=no 3728 + hardcode_into_libs=yes 3729 + ;; 3730 + 3731 +irix5* | irix6* | nonstopux*) 3732 + case $host_os in 3733 + nonstopux*) version_type=nonstopux ;; 3734 + *) 3735 + if test "$lt_cv_prog_gnu_ld" = yes; then 3736 + version_type=linux 3737 + else 3738 + version_type=irix 3739 + fi ;; 3740 + esac 3741 + need_lib_prefix=no 3742 + need_version=no 3743 + soname_spec='${libname}${release}${shared_ext}$major' 3744 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 3745 + case $host_os in 3746 + irix5* | nonstopux*) 3747 + libsuff= shlibsuff= 3748 + ;; 3749 + *) 3750 + case $LD in # libtool.m4 will add one of these switches to LD 3751 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 3752 + libsuff= shlibsuff= libmagic=32-bit;; 3753 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 3754 + libsuff=32 shlibsuff=N32 libmagic=N32;; 3755 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 3756 + libsuff=64 shlibsuff=64 libmagic=64-bit;; 3757 + *) libsuff= shlibsuff= libmagic=never-match;; 3758 esac 3759 + ;; 3760 + esac 3761 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 3762 + shlibpath_overrides_runpath=no 3763 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 3764 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 3765 + hardcode_into_libs=yes 3766 + ;; 3767 3768 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 3769 - then 3770 - AC_MSG_ERROR([tag name \"$tagname\" already exists]) 3771 - fi 3772 +# No shared lib support for Linux oldld, aout, or coff. 3773 +linux*oldld* | linux*aout* | linux*coff*) 3774 + dynamic_linker=no 3775 + ;; 3776 3777 - # Update the list of available tags. 3778 - if test -n "$tagname"; then 3779 - echo appending configuration tag \"$tagname\" to $ofile 3780 +# This must be Linux ELF. 3781 +linux* | k*bsd*-gnu) 3782 + version_type=linux 3783 + need_lib_prefix=no 3784 + need_version=no 3785 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3786 + soname_spec='${libname}${release}${shared_ext}$major' 3787 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 3788 + shlibpath_var=LD_LIBRARY_PATH 3789 + shlibpath_overrides_runpath=no 3790 + # This implies no fast_install, which is unacceptable. 3791 + # Some rework will be needed to allow for fast_install 3792 + # before this can be enabled. 3793 + hardcode_into_libs=yes 3794 3795 - case $tagname in 3796 - CXX) 3797 - if test -n "$CXX" && ( test "X$CXX" != "Xno" && 3798 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 3799 - (test "X$CXX" != "Xg++"))) ; then 3800 - AC_LIBTOOL_LANG_CXX_CONFIG 3801 - else 3802 - tagname="" 3803 - fi 3804 - ;; 3805 + # Append ld.so.conf contents to the search path 3806 + if test -f /etc/ld.so.conf; then 3807 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 3808 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 3809 + fi 3810 3811 - F77) 3812 - if test -n "$F77" && test "X$F77" != "Xno"; then 3813 - AC_LIBTOOL_LANG_F77_CONFIG 3814 - else 3815 - tagname="" 3816 - fi 3817 - ;; 3818 + # We used to test for /lib/ld.so.1 and disable shared libraries on 3819 + # powerpc, because MkLinux only supported shared libraries with the 3820 + # GNU dynamic linker. Since this was broken with cross compilers, 3821 + # most powerpc-linux boxes support dynamic linking these days and 3822 + # people can always --disable-shared, the test was removed, and we 3823 + # assume the GNU/Linux dynamic linker is in use. 3824 + dynamic_linker='GNU/Linux ld.so' 3825 + ;; 3826 3827 - GCJ) 3828 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 3829 - AC_LIBTOOL_LANG_GCJ_CONFIG 3830 - else 3831 - tagname="" 3832 - fi 3833 - ;; 3834 +netbsdelf*-gnu) 3835 + version_type=linux 3836 + need_lib_prefix=no 3837 + need_version=no 3838 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3839 + soname_spec='${libname}${release}${shared_ext}$major' 3840 + shlibpath_var=LD_LIBRARY_PATH 3841 + shlibpath_overrides_runpath=no 3842 + hardcode_into_libs=yes 3843 + dynamic_linker='NetBSD ld.elf_so' 3844 + ;; 3845 3846 - RC) 3847 - AC_LIBTOOL_LANG_RC_CONFIG 3848 - ;; 3849 +netbsd*) 3850 + version_type=sunos 3851 + need_lib_prefix=no 3852 + need_version=no 3853 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3854 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3855 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3856 + dynamic_linker='NetBSD (a.out) ld.so' 3857 + else 3858 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 3859 + soname_spec='${libname}${release}${shared_ext}$major' 3860 + dynamic_linker='NetBSD ld.elf_so' 3861 + fi 3862 + shlibpath_var=LD_LIBRARY_PATH 3863 + shlibpath_overrides_runpath=yes 3864 + hardcode_into_libs=yes 3865 + ;; 3866 + 3867 +newsos6) 3868 + version_type=linux 3869 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3870 + shlibpath_var=LD_LIBRARY_PATH 3871 + shlibpath_overrides_runpath=yes 3872 + ;; 3873 + 3874 +nto-qnx*) 3875 + version_type=linux 3876 + need_lib_prefix=no 3877 + need_version=no 3878 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3879 + soname_spec='${libname}${release}${shared_ext}$major' 3880 + shlibpath_var=LD_LIBRARY_PATH 3881 + shlibpath_overrides_runpath=yes 3882 + ;; 3883 3884 +openbsd*) 3885 + version_type=sunos 3886 + sys_lib_dlsearch_path_spec="/usr/lib" 3887 + need_lib_prefix=no 3888 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 3889 + case $host_os in 3890 + openbsd3.3 | openbsd3.3.*) need_version=yes ;; 3891 + *) need_version=no ;; 3892 + esac 3893 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3894 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3895 + shlibpath_var=LD_LIBRARY_PATH 3896 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3897 + case $host_os in 3898 + openbsd2.[[89]] | openbsd2.[[89]].*) 3899 + shlibpath_overrides_runpath=no 3900 + ;; 3901 *) 3902 - AC_MSG_ERROR([Unsupported tag name: $tagname]) 3903 + shlibpath_overrides_runpath=yes 3904 ;; 3905 esac 3906 - 3907 - # Append the new tag name to the list of available tags. 3908 - if test -n "$tagname" ; then 3909 - available_tags="$available_tags $tagname" 3910 - fi 3911 - fi 3912 - done 3913 - IFS="$lt_save_ifs" 3914 - 3915 - # Now substitute the updated list of available tags. 3916 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 3917 - mv "${ofile}T" "$ofile" 3918 - chmod +x "$ofile" 3919 else 3920 - rm -f "${ofile}T" 3921 - AC_MSG_ERROR([unable to update list of available tagged configurations.]) 3922 + shlibpath_overrides_runpath=yes 3923 fi 3924 -fi 3925 -])# _LT_AC_TAGCONFIG 3926 + ;; 3927 3928 +os2*) 3929 + libname_spec='$name' 3930 + shrext_cmds=".dll" 3931 + need_lib_prefix=no 3932 + library_names_spec='$libname${shared_ext} $libname.a' 3933 + dynamic_linker='OS/2 ld.exe' 3934 + shlibpath_var=LIBPATH 3935 + ;; 3936 3937 -# AC_LIBTOOL_DLOPEN 3938 -# ----------------- 3939 -# enable checks for dlopen support 3940 -AC_DEFUN([AC_LIBTOOL_DLOPEN], 3941 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 3942 -])# AC_LIBTOOL_DLOPEN 3943 +osf3* | osf4* | osf5*) 3944 + version_type=osf 3945 + need_lib_prefix=no 3946 + need_version=no 3947 + soname_spec='${libname}${release}${shared_ext}$major' 3948 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3949 + shlibpath_var=LD_LIBRARY_PATH 3950 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 3951 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 3952 + ;; 3953 3954 +rdos*) 3955 + dynamic_linker=no 3956 + ;; 3957 3958 -# AC_LIBTOOL_WIN32_DLL 3959 -# -------------------- 3960 -# declare package support for building win32 DLLs 3961 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 3962 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 3963 -])# AC_LIBTOOL_WIN32_DLL 3964 +solaris*) 3965 + version_type=linux 3966 + need_lib_prefix=no 3967 + need_version=no 3968 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3969 + soname_spec='${libname}${release}${shared_ext}$major' 3970 + shlibpath_var=LD_LIBRARY_PATH 3971 + shlibpath_overrides_runpath=yes 3972 + hardcode_into_libs=yes 3973 + # ldd complains unless libraries are executable 3974 + postinstall_cmds='chmod +x $lib' 3975 + ;; 3976 3977 +sunos4*) 3978 + version_type=sunos 3979 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 3980 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 3981 + shlibpath_var=LD_LIBRARY_PATH 3982 + shlibpath_overrides_runpath=yes 3983 + if test "$with_gnu_ld" = yes; then 3984 + need_lib_prefix=no 3985 + fi 3986 + need_version=yes 3987 + ;; 3988 3989 -# AC_ENABLE_SHARED([DEFAULT]) 3990 -# --------------------------- 3991 -# implement the --enable-shared flag 3992 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3993 +sysv4 | sysv4.3*) 3994 + version_type=linux 3995 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 3996 + soname_spec='${libname}${release}${shared_ext}$major' 3997 + shlibpath_var=LD_LIBRARY_PATH 3998 + case $host_vendor in 3999 + sni) 4000 + shlibpath_overrides_runpath=no 4001 + need_lib_prefix=no 4002 + export_dynamic_flag_spec='${wl}-Blargedynsym' 4003 + runpath_var=LD_RUN_PATH 4004 + ;; 4005 + siemens) 4006 + need_lib_prefix=no 4007 + ;; 4008 + motorola) 4009 + need_lib_prefix=no 4010 + need_version=no 4011 + shlibpath_overrides_runpath=no 4012 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 4013 + ;; 4014 + esac 4015 + ;; 4016 + 4017 +sysv4*MP*) 4018 + if test -d /usr/nec ;then 4019 + version_type=linux 4020 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 4021 + soname_spec='$libname${shared_ext}.$major' 4022 + shlibpath_var=LD_LIBRARY_PATH 4023 + fi 4024 + ;; 4025 + 4026 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4027 + version_type=freebsd-elf 4028 + need_lib_prefix=no 4029 + need_version=no 4030 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4031 + soname_spec='${libname}${release}${shared_ext}$major' 4032 + shlibpath_var=LD_LIBRARY_PATH 4033 + hardcode_into_libs=yes 4034 + if test "$with_gnu_ld" = yes; then 4035 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 4036 + shlibpath_overrides_runpath=no 4037 + else 4038 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 4039 + shlibpath_overrides_runpath=yes 4040 + case $host_os in 4041 + sco3.2v5*) 4042 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 4043 + ;; 4044 + esac 4045 + fi 4046 + sys_lib_dlsearch_path_spec='/usr/lib' 4047 + ;; 4048 + 4049 +uts4*) 4050 + version_type=linux 4051 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4052 + soname_spec='${libname}${release}${shared_ext}$major' 4053 + shlibpath_var=LD_LIBRARY_PATH 4054 + ;; 4055 + 4056 +*) 4057 + dynamic_linker=no 4058 + ;; 4059 +esac 4060 +AC_MSG_RESULT([$dynamic_linker]) 4061 +test "$dynamic_linker" = no && can_build_shared=no 4062 + 4063 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 4064 +if test "$GCC" = yes; then 4065 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 4066 +fi 4067 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 4068 + 4069 + 4070 +# _LT_AC_TAGCONFIG 4071 +# ---------------- 4072 +AC_DEFUN([_LT_AC_TAGCONFIG], 4073 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 4074 +AC_ARG_WITH([tags], 4075 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 4076 + [include additional configurations @<:@automatic@:>@])], 4077 + [tagnames="$withval"]) 4078 + 4079 +if test -f "$ltmain" && test -n "$tagnames"; then 4080 + if test ! -f "${ofile}"; then 4081 + AC_MSG_WARN([output file `$ofile' does not exist]) 4082 + fi 4083 + 4084 + if test -z "$LTCC"; then 4085 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 4086 + if test -z "$LTCC"; then 4087 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 4088 + else 4089 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 4090 + fi 4091 + fi 4092 + if test -z "$LTCFLAGS"; then 4093 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 4094 + fi 4095 + 4096 + # Extract list of available tagged configurations in $ofile. 4097 + # Note that this assumes the entire list is on one line. 4098 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 4099 + 4100 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4101 + for tagname in $tagnames; do 4102 + IFS="$lt_save_ifs" 4103 + # Check whether tagname contains only valid characters 4104 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 4105 + "") ;; 4106 + *) AC_MSG_ERROR([invalid tag name: $tagname]) 4107 + ;; 4108 + esac 4109 + 4110 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 4111 + then 4112 + AC_MSG_ERROR([tag name \"$tagname\" already exists]) 4113 + fi 4114 + 4115 + # Update the list of available tags. 4116 + if test -n "$tagname"; then 4117 + echo appending configuration tag \"$tagname\" to $ofile 4118 + 4119 + case $tagname in 4120 + CXX) 4121 + if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4122 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4123 + (test "X$CXX" != "Xg++"))) ; then 4124 + AC_LIBTOOL_LANG_CXX_CONFIG 4125 + else 4126 + tagname="" 4127 + fi 4128 + ;; 4129 + 4130 + F77) 4131 + if test -n "$F77" && test "X$F77" != "Xno"; then 4132 + AC_LIBTOOL_LANG_F77_CONFIG 4133 + else 4134 + tagname="" 4135 + fi 4136 + ;; 4137 + 4138 + GCJ) 4139 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 4140 + AC_LIBTOOL_LANG_GCJ_CONFIG 4141 + else 4142 + tagname="" 4143 + fi 4144 + ;; 4145 + 4146 + RC) 4147 + AC_LIBTOOL_LANG_RC_CONFIG 4148 + ;; 4149 + 4150 + *) 4151 + AC_MSG_ERROR([Unsupported tag name: $tagname]) 4152 + ;; 4153 + esac 4154 + 4155 + # Append the new tag name to the list of available tags. 4156 + if test -n "$tagname" ; then 4157 + available_tags="$available_tags $tagname" 4158 + fi 4159 + fi 4160 + done 4161 + IFS="$lt_save_ifs" 4162 + 4163 + # Now substitute the updated list of available tags. 4164 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 4165 + mv "${ofile}T" "$ofile" 4166 + chmod +x "$ofile" 4167 + else 4168 + rm -f "${ofile}T" 4169 + AC_MSG_ERROR([unable to update list of available tagged configurations.]) 4170 + fi 4171 +fi 4172 +])# _LT_AC_TAGCONFIG 4173 + 4174 + 4175 +# AC_LIBTOOL_DLOPEN 4176 +# ----------------- 4177 +# enable checks for dlopen support 4178 +AC_DEFUN([AC_LIBTOOL_DLOPEN], 4179 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 4180 +])# AC_LIBTOOL_DLOPEN 4181 + 4182 + 4183 +# AC_LIBTOOL_WIN32_DLL 4184 +# -------------------- 4185 +# declare package support for building win32 DLLs 4186 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 4187 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 4188 +])# AC_LIBTOOL_WIN32_DLL 4189 + 4190 + 4191 +# AC_ENABLE_SHARED([DEFAULT]) 4192 +# --------------------------- 4193 +# implement the --enable-shared flag 4194 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 4195 AC_DEFUN([AC_ENABLE_SHARED], 4196 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 4197 AC_ARG_ENABLE([shared], 4198 @@ -2057,7 +2684,7 @@ 4199 4200 # AC_PATH_TOOL_PREFIX 4201 # ------------------- 4202 -# find a file program which can recognise shared library 4203 +# find a file program which can recognize shared library 4204 AC_DEFUN([AC_PATH_TOOL_PREFIX], 4205 [AC_REQUIRE([AC_PROG_EGREP])dnl 4206 AC_MSG_CHECKING([for $1]) 4207 @@ -2120,7 +2747,7 @@ 4208 4209 # AC_PATH_MAGIC 4210 # ------------- 4211 -# find a file program which can recognise a shared library 4212 +# find a file program which can recognize a shared library 4213 AC_DEFUN([AC_PATH_MAGIC], 4214 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 4215 if test -z "$lt_cv_path_MAGIC_CMD"; then 4216 @@ -2267,7 +2894,7 @@ 4217 # how to check for library dependencies 4218 # -- PORTME fill in with the dynamic library characteristics 4219 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 4220 -[AC_CACHE_CHECK([how to recognise dependent libraries], 4221 +[AC_CACHE_CHECK([how to recognize dependent libraries], 4222 lt_cv_deplibs_check_method, 4223 [lt_cv_file_magic_cmd='$MAGIC_CMD' 4224 lt_cv_file_magic_test_file= 4225 @@ -2306,16 +2933,22 @@ 4226 4227 mingw* | pw32*) 4228 # Base MSYS/MinGW do not provide the 'file' command needed by 4229 - # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4230 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4231 - lt_cv_file_magic_cmd='$OBJDUMP -f' 4232 + # func_win32_libid shell function, so use a weaker test based on 'objdump', 4233 + # unless we find 'file', for example because we are cross-compiling. 4234 + if ( file / ) >/dev/null 2>&1; then 4235 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4236 + lt_cv_file_magic_cmd='func_win32_libid' 4237 + else 4238 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4239 + lt_cv_file_magic_cmd='$OBJDUMP -f' 4240 + fi 4241 ;; 4242 4243 darwin* | rhapsody*) 821 netbsd*) 822 @@ -2315,7 +2737,7 @@ darwin* | rhapsody*) 4244 823 lt_cv_deplibs_check_method=pass_all 4245 824 ;; … … 4250 829 case $host_cpu in 4251 830 i*86 ) 4252 @@ -2353,7 +2986,7 @@ 4253 esac 4254 ;; 4255 4256 -interix3*) 4257 +interix[[3-9]]*) 4258 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4259 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 4260 ;; 4261 @@ -2369,11 +3002,11 @@ 831 @@ -2369,11 +2791,11 @@ irix5* | irix6* | nonstopux*) 4262 832 ;; 4263 833 … … 4273 843 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 4274 844 else 4275 @@ -2403,6 +3036,10 @@ 4276 lt_cv_deplibs_check_method=pass_all 4277 ;; 4278 4279 +rdos*) 4280 + lt_cv_deplibs_check_method=pass_all 4281 + ;; 4282 + 4283 solaris*) 4284 lt_cv_deplibs_check_method=pass_all 4285 ;; 4286 @@ -2455,7 +3092,7 @@ 4287 lt_cv_path_NM="$NM" 4288 else 4289 lt_nm_to_check="${ac_tool_prefix}nm" 4290 - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4291 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4292 lt_nm_to_check="$lt_nm_to_check nm" 4293 fi 4294 for lt_tmp_nm in $lt_nm_to_check; do 4295 @@ -2671,10 +3308,10 @@ 4296 _LT_AC_TAGVAR(objext, $1)=$objext 4297 4298 # Code to be used in simple compile tests 4299 -lt_simple_compile_test_code="int some_variable = 0;\n" 4300 +lt_simple_compile_test_code="int some_variable = 0;" 4301 4302 # Code to be used in simple link tests 4303 -lt_simple_link_test_code='int main(){return(0);}\n' 4304 +lt_simple_link_test_code='int main(){return(0);}' 4305 4306 _LT_AC_SYS_COMPILER 4307 4308 @@ -2776,10 +3413,10 @@ 4309 _LT_AC_TAGVAR(objext, $1)=$objext 4310 4311 # Code to be used in simple compile tests 4312 -lt_simple_compile_test_code="int some_variable = 0;\n" 4313 +lt_simple_compile_test_code="int some_variable = 0;" 4314 4315 # Code to be used in simple link tests 4316 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' 4317 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 4318 4319 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 4320 _LT_AC_SYS_COMPILER 4321 @@ -2925,7 +3562,7 @@ 4322 strings "$collect2name" | grep resolve_lib_name >/dev/null 4323 then 4324 # We have reworked collect2 4325 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4326 + : 4327 else 4328 # We have old collect2 4329 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 4330 @@ -3084,10 +3721,10 @@ 4331 case $cc_basename in 4332 xlc*) 4333 output_verbose_link_cmd='echo' 4334 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 4335 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 4336 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 4337 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 4338 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 4339 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 4340 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 4341 ;; 4342 *) 4343 @@ -3121,7 +3758,7 @@ 845 @@ -3121,7 +3543,7 @@ case $host_os in 4344 846 freebsd-elf*) 4345 847 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no … … 4350 852 # conventions 4351 853 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 4352 @@ -3170,9 +3807,7 @@ 4353 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4354 4355 case $host_cpu in 4356 - hppa*64*|ia64*) 4357 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 4358 - ;; 4359 + hppa*64*|ia64*) ;; 4360 *) 4361 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4362 ;; 4363 @@ -3240,7 +3875,7 @@ 4364 ;; 4365 esac 4366 ;; 4367 - interix3*) 4368 + interix[[3-9]]*) 4369 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4370 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4371 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4372 @@ -3280,7 +3915,7 @@ 854 @@ -3280,7 +3702,7 @@ case $host_os in 4373 855 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4374 856 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: … … 4379 861 KCC*) 4380 862 # Kuck and Associates, Inc. (KAI) C++ Compiler 4381 @@ -3360,6 +3995,29 @@ 4382 # dependencies. 4383 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 4384 ;; 4385 + *) 4386 + case `$CC -V 2>&1 | sed 5q` in 4387 + *Sun\ C*) 4388 + # Sun C++ 5.9 4389 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 4390 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4391 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 4392 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4393 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 4394 + 4395 + # Not sure whether something based on 4396 + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 4397 + # would be better. 4398 + output_verbose_link_cmd='echo' 4399 + 4400 + # Archives containing C++ object files must be created using 4401 + # "CC -xar", where "CC" is the Sun C++ compiler. This is 4402 + # necessary to make sure instantiated templates are included 4403 + # in the archive. 4404 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 4405 + ;; 4406 + esac 4407 + ;; 4408 esac 4409 ;; 4410 lynxos*) 4411 @@ -3382,7 +4040,7 @@ 863 @@ -3382,7 +3804,7 @@ case $host_os in 4412 864 ;; 4413 865 esac … … 4418 870 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 4419 871 wlarc= 4420 @@ -3398,16 +4056,20 @@ 4421 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4422 ;; 4423 openbsd*) 4424 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4425 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4426 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 4427 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4428 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4429 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 4430 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4431 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4432 + if test -f /usr/libexec/ld.so; then 4433 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4434 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4435 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 4436 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4437 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4438 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 4439 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4440 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4441 + fi 4442 + output_verbose_link_cmd='echo' 4443 + else 4444 + _LT_AC_TAGVAR(ld_shlibs, $1)=no 4445 fi 4446 - output_verbose_link_cmd='echo' 4447 ;; 4448 osf3*) 4449 case $cc_basename in 4450 @@ -3569,15 +4231,10 @@ 4451 case $host_os in 4452 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 4453 *) 4454 - # The C++ compiler is used as linker so we must use $wl 4455 - # flag to pass the commands to the underlying system 4456 - # linker. We must also pass each convience library through 4457 - # to the system linker between allextract/defaultextract. 4458 - # The C++ compiler will combine linker options so we 4459 - # cannot just pass the convience library names through 4460 - # without $wl. 4461 + # The compiler driver will combine and reorder linker options, 4462 + # but understands `-z linker_flag'. 872 @@ -3577,7 +3999,7 @@ case $host_os in 873 # cannot just pass the convience library names through 874 # without $wl. 4463 875 # Supported since Solaris 2.6 (maybe 2.5.1?) 4464 876 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 4465 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' -z allextract$convenience -zdefaultextract'877 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 4466 878 ;; 4467 879 esac 4468 880 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4469 @@ -3624,6 +4281,12 @@ 4470 fi 4471 4472 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 4473 + case $host_os in 4474 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 4475 + *) 4476 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 4477 + ;; 4478 + esac 4479 fi 4480 ;; 4481 esac 4482 @@ -3867,7 +4530,7 @@ 4483 # PORTME: override above test on systems where it is broken 4484 ifelse([$1],[CXX], 4485 [case $host_os in 4486 -interix3*) 4487 +interix[[3-9]]*) 4488 # Interix 3.5 installs completely hosed .la files for C++, so rather than 4489 # hack all around it, let's just trust "g++" to DTRT. 4490 _LT_AC_TAGVAR(predep_objects,$1)= 4491 @@ -3875,13 +4538,46 @@ 4492 _LT_AC_TAGVAR(postdeps,$1)= 4493 ;; 4494 4495 +linux*) 4496 + case `$CC -V 2>&1 | sed 5q` in 4497 + *Sun\ C*) 4498 + # Sun C++ 5.9 4499 + # 4500 + # The more standards-conforming stlport4 library is 4501 + # incompatible with the Cstd library. Avoid specifying 4502 + # it if it's in CXXFLAGS. Ignore libCrun as 4503 + # -library=stlport4 depends on it. 4504 + case " $CXX $CXXFLAGS " in 4505 + *" -library=stlport4 "*) 4506 + solaris_use_stlport4=yes 4507 + ;; 4508 + esac 4509 + if test "$solaris_use_stlport4" != yes; then 4510 + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 4511 + fi 4512 + ;; 4513 + esac 4514 + ;; 4515 + 4516 solaris*) 4517 case $cc_basename in 4518 CC*) 4519 + # The more standards-conforming stlport4 library is 4520 + # incompatible with the Cstd library. Avoid specifying 4521 + # it if it's in CXXFLAGS. Ignore libCrun as 4522 + # -library=stlport4 depends on it. 4523 + case " $CXX $CXXFLAGS " in 4524 + *" -library=stlport4 "*) 4525 + solaris_use_stlport4=yes 4526 + ;; 4527 + esac 4528 + 4529 # Adding this requires a known-good setup of shared libraries for 4530 # Sun compiler versions before 5.6, else PIC objects from an old 4531 # archive will be linked into the output, leading to subtle bugs. 4532 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' 4533 + if test "$solaris_use_stlport4" != yes; then 4534 + _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 4535 + fi 4536 ;; 4537 esac 4538 ;; 4539 @@ -3930,10 +4626,17 @@ 4540 _LT_AC_TAGVAR(objext, $1)=$objext 4541 4542 # Code to be used in simple compile tests 4543 -lt_simple_compile_test_code=" subroutine t\n return\n end\n" 4544 +lt_simple_compile_test_code="\ 4545 + subroutine t 4546 + return 4547 + end 4548 +" 4549 4550 # Code to be used in simple link tests 4551 -lt_simple_link_test_code=" program t\n end\n" 4552 +lt_simple_link_test_code="\ 4553 + program t 4554 + end 4555 +" 4556 4557 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 4558 _LT_AC_SYS_COMPILER 4559 @@ -4012,10 +4715,10 @@ 4560 _LT_AC_TAGVAR(objext, $1)=$objext 4561 4562 # Code to be used in simple compile tests 4563 -lt_simple_compile_test_code="class foo {}\n" 4564 +lt_simple_compile_test_code="class foo {}" 4565 4566 # Code to be used in simple link tests 4567 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' 4568 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 4569 4570 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 4571 _LT_AC_SYS_COMPILER 4572 @@ -4068,7 +4771,7 @@ 4573 _LT_AC_TAGVAR(objext, $1)=$objext 4574 4575 # Code to be used in simple compile tests 4576 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 4577 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 4578 4579 # Code to be used in simple link tests 4580 lt_simple_link_test_code="$lt_simple_compile_test_code" 4581 @@ -4157,6 +4860,7 @@ 4582 _LT_AC_TAGVAR(module_cmds, $1) \ 4583 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 4584 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 4585 + _LT_AC_TAGVAR(fix_srcfile_path, $1) \ 4586 _LT_AC_TAGVAR(exclude_expsyms, $1) \ 4587 _LT_AC_TAGVAR(include_expsyms, $1); do 4588 4589 @@ -4203,7 +4907,7 @@ 4590 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 4591 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 4592 # 4593 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 4594 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 4595 # Free Software Foundation, Inc. 4596 # 4597 # This file is part of GNU Libtool: 4598 @@ -4528,7 +5232,7 @@ 4599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 4600 4601 # Fix the shell variable \$srcfile for the compiler. 4602 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" 4603 +fix_srcfile_path=$lt_fix_srcfile_path 4604 4605 # Set to yes if exported symbols are required. 4606 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 4607 @@ -4611,6 +5315,7 @@ 4608 # --------------------------------- 4609 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 4610 [AC_REQUIRE([AC_CANONICAL_HOST]) 4611 +AC_REQUIRE([LT_AC_PROG_SED]) 4612 AC_REQUIRE([AC_PROG_NM]) 4613 AC_REQUIRE([AC_OBJEXT]) 4614 # Check for command to grab the raw symbol name followed by C symbol from nm. 4615 @@ -4647,7 +5352,7 @@ 881 @@ -4647,7 +5069,7 @@ hpux*) # Its linker distinguishes data f 4616 882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4617 883 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" … … 4622 888 symcode='[[ABCDGIRSTW]]' 4623 889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4624 @@ -4837,12 +5542,14 @@ 4625 # like `-m68040'. 4626 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4627 ;; 4628 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4629 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4630 # PIC is the default for these OSes. 4631 ;; 4632 - mingw* | os2* | pw32*) 4633 + mingw* | cygwin* | os2* | pw32*) 4634 # This hack is so that the source file can tell whether it is being 4635 # built for inclusion in a dll (and should export symbols for example). 4636 + # Although the cygwin gcc ignores -fPIC, still need this for old-style 4637 + # (--disable-auto-import) libraries 4638 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4639 ;; 4640 darwin* | rhapsody*) 4641 @@ -4854,7 +5561,7 @@ 4642 # DJGPP does not support shared libraries at all 4643 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4644 ;; 4645 - interix3*) 4646 + interix[[3-9]]*) 4647 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4648 # Instead, we relocate shared libraries at runtime. 4649 ;; 4650 @@ -4920,7 +5627,7 @@ 890 @@ -4920,7 +5342,7 @@ AC_MSG_CHECKING([for $compiler option to 4651 891 ;; 4652 892 esac … … 4657 897 ;; 4658 898 hpux9* | hpux10* | hpux11*) 4659 @@ -4963,7 +5 670,7 @@899 @@ -4963,7 +5385,7 @@ AC_MSG_CHECKING([for $compiler option to 4660 900 ;; 4661 901 esac … … 4666 906 KCC*) 4667 907 # KAI C++ Compiler 4668 @@ -4990,6 +5697,14 @@ 4669 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4670 ;; 4671 *) 4672 + case `$CC -V 2>&1 | sed 5q` in 4673 + *Sun\ C*) 4674 + # Sun C++ 5.9 4675 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4676 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4677 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4678 + ;; 4679 + esac 4680 ;; 4681 esac 4682 ;; 4683 @@ -5006,7 +5721,7 @@ 908 @@ -5006,7 +5428,7 @@ AC_MSG_CHECKING([for $compiler option to 4684 909 ;; 4685 910 esac … … 4690 915 osf3* | osf4* | osf5*) 4691 916 case $cc_basename in 4692 @@ -5110,13 +5825,15 @@ 4693 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4694 ;; 4695 4696 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4697 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4698 # PIC is the default for these OSes. 4699 ;; 4700 4701 - mingw* | pw32* | os2*) 4702 + mingw* | cygwin* | pw32* | os2*) 4703 # This hack is so that the source file can tell whether it is being 4704 # built for inclusion in a dll (and should export symbols for example). 4705 + # Although the cygwin gcc ignores -fPIC, still need this for old-style 4706 + # (--disable-auto-import) libraries 4707 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4708 ;; 4709 4710 @@ -5126,7 +5843,7 @@ 4711 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4712 ;; 4713 4714 - interix3*) 4715 + interix[[3-9]]*) 4716 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4717 # Instead, we relocate shared libraries at runtime. 4718 ;; 4719 @@ -5184,7 +5901,7 @@ 4720 esac 4721 ;; 4722 4723 - mingw* | pw32* | os2*) 4724 + mingw* | cygwin* | pw32* | os2*) 4725 # This hack is so that the source file can tell whether it is being 4726 # built for inclusion in a dll (and should export symbols for example). 4727 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4728 @@ -5217,7 +5934,7 @@ 917 @@ -5217,7 +5639,7 @@ AC_MSG_CHECKING([for $compiler option to 4729 918 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4730 919 ;; … … 4735 924 icc* | ecc*) 4736 925 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4737 @@ -5236,15 +5953,35 @@ 4738 # All Alpha code is PIC. 4739 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4740 ;; 4741 - esac 4742 - ;; 4743 - 4744 + *) 4745 + case `$CC -V 2>&1 | sed 5q` in 4746 + *Sun\ C*) 4747 + # Sun C 5.9 4748 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4749 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4750 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4751 + ;; 4752 + *Sun\ F*) 4753 + # Sun Fortran 8.3 passes all unrecognized flags to the linker 4754 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4755 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4756 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' 4757 + ;; 4758 + esac 4759 + ;; 4760 + esac 4761 + ;; 4762 + 4763 osf3* | osf4* | osf5*) 4764 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4765 # All OSF/1 code is PIC. 4766 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4767 ;; 4768 4769 + rdos*) 4770 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4771 + ;; 4772 + 4773 solaris*) 4774 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4775 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4776 @@ -5339,7 +6076,8 @@ 4777 # ------------------------------------ 4778 # See if the linker supports building shared libraries. 4779 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 4780 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4781 +[AC_REQUIRE([LT_AC_PROG_SED])dnl 4782 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4783 ifelse([$1],[CXX],[ 4784 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4785 case $host_os in 4786 @@ -5356,7 +6094,10 @@ 4787 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 926 @@ -5358,6 +5780,9 @@ ifelse([$1],[CXX],[ 927 cygwin* | mingw*) 928 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 4788 929 ;; 4789 cygwin* | mingw*)4790 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'4791 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'4792 + ;;4793 930 + linux* | k*bsd*-gnu) 4794 931 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no 4795 ;;932 + ;; 4796 933 *) 4797 934 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4798 @@ -5495,7 +6236,7 @@ 4799 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 4800 _LT_AC_TAGVAR(always_export_symbols, $1)=no 4801 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4802 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 4803 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 4804 4805 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 4806 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 4807 @@ -5513,7 +6254,7 @@ 4808 fi 4809 ;; 4810 4811 - interix3*) 4812 + interix[[3-9]]*) 4813 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4814 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4815 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4816 @@ -5528,7 +6269,7 @@ 935 ;; 936 @@ -5528,7 +5953,7 @@ EOF 4817 937 _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' 4818 938 ;; 4819 939 4820 940 - linux*) 4821 + gnu* |linux* | k*bsd*-gnu)941 + linux* | k*bsd*-gnu) 4822 942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 4823 943 tmp_addflag= 4824 944 case $cc_basename,$host_cpu in 4825 @@ -5546,20 +6287,30 @@ 4826 ifc* | ifort*) # Intel Fortran compiler 4827 tmp_addflag=' -nofor_main' ;; 4828 esac 4829 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4830 + case `$CC -V 2>&1 | sed 5q` in 4831 + *Sun\ C*) # Sun C 5.9 4832 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 4833 + tmp_sharedflag='-G' ;; 4834 + *Sun\ F*) # Sun Fortran 8.3 4835 + tmp_sharedflag='-G' ;; 4836 + *) 4837 + tmp_sharedflag='-shared' ;; 4838 + esac 4839 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4840 4841 if test $supports_anon_versioning = yes; then 4842 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 4843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 945 @@ -5554,12 +5979,13 @@ EOF 4844 946 $echo "local: *; };" >> $output_objdir/$libname.ver~ 4845 - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 4846 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 947 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 4847 948 fi 4848 949 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no … … 4857 958 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 4858 959 wlarc= 4859 @@ -5592,7 +6343,7 @@ 4860 4861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 4862 case `$LD -v 2>&1` in 4863 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 4864 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 4865 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4866 cat <<_LT_EOF 1>&2 4867 4868 @@ -5711,7 +6462,7 @@ 4869 strings "$collect2name" | grep resolve_lib_name >/dev/null 4870 then 4871 # We have reworked collect2 4872 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4873 + : 4874 else 4875 # We have old collect2 4876 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 4877 @@ -5804,7 +6555,7 @@ 4878 # The linker will automatically build a .lib file if we build a DLL. 4879 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 4880 # FIXME: Should let the user specify the lib program. 4881 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 4882 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 4883 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 4884 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4885 ;; 4886 @@ -5846,10 +6597,10 @@ 4887 case $cc_basename in 4888 xlc*) 4889 output_verbose_link_cmd='echo' 4890 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 4891 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 4892 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 4893 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 4894 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 4895 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 4896 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 4897 ;; 4898 *) 4899 @@ -5889,7 +6640,7 @@ 4900 ;; 4901 4902 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 960 @@ -5876,2141 +6302,1565 @@ _LT_EOF 961 freebsd2.2*) 962 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 963 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 964 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 965 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 966 - ;; 967 - 968 - # Unfortunately, older versions of FreeBSD 2 do not have this feature. 969 - freebsd2*) 970 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 971 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 972 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 973 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 974 - ;; 975 - 976 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 4903 977 - freebsd* | kfreebsd*-gnu | dragonfly*) 4904 + freebsd* | dragonfly*) 4905 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 4906 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4907 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4908 @@ -5991,7 +6742,7 @@ 4909 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4910 ;; 4911 978 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 979 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 980 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 981 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 982 - ;; 983 - 984 - hpux9*) 985 - if test "$GCC" = yes; then 986 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 987 - else 988 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 989 - fi 990 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 991 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 992 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 993 - 994 - # hardcode_minus_L: Not really in the search PATH, 995 - # but as the default location of the library. 996 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 997 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 998 - ;; 999 - 1000 - hpux10*) 1001 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then 1002 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 1003 - else 1004 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 1005 - fi 1006 - if test "$with_gnu_ld" = no; then 1007 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 1008 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 1009 - 1010 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 1011 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 1012 - 1013 - # hardcode_minus_L: Not really in the search PATH, 1014 - # but as the default location of the library. 1015 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 1016 - fi 1017 - ;; 1018 - 1019 - hpux11*) 1020 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then 1021 - case $host_cpu in 1022 - hppa*64*) 1023 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 1024 - ;; 1025 - ia64*) 1026 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 1027 - ;; 1028 - *) 1029 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 1030 - ;; 1031 - esac 1032 - else 1033 - case $host_cpu in 1034 - hppa*64*) 1035 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 1036 - ;; 1037 - ia64*) 1038 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 1039 - ;; 1040 - *) 1041 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 1042 - ;; 1043 - esac 1044 - fi 1045 - if test "$with_gnu_ld" = no; then 1046 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 1047 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 1048 - 1049 - case $host_cpu in 1050 - hppa*64*|ia64*) 1051 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 1052 - _LT_AC_TAGVAR(hardcode_direct, $1)=no 1053 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1054 - ;; 1055 - *) 1056 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 1057 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 1058 - 1059 - # hardcode_minus_L: Not really in the search PATH, 1060 - # but as the default location of the library. 1061 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 1062 - ;; 1063 - esac 1064 - fi 1065 - ;; 1066 - 1067 - irix5* | irix6* | nonstopux*) 1068 - if test "$GCC" = yes; then 1069 - _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' 1070 - else 1071 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 1072 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 1073 - fi 1074 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 1075 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 1076 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 1077 - ;; 1078 - 4912 1079 - netbsd*) 4913 + netbsd* | netbsdelf*-gnu) 4914 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4915 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 4916 else 4917 @@ -6011,24 +6762,28 @@ 4918 ;; 4919 4920 openbsd*) 1080 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 1081 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 1082 - else 1083 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 1084 - fi 1085 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 1086 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 1087 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1088 - ;; 1089 - 1090 - newsos6) 1091 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 1092 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 1093 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 1094 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 1095 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1096 - ;; 1097 - 1098 - openbsd*) 4921 1099 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4922 1100 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no … … 4926 1104 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4927 1105 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4928 + if test -f /usr/libexec/ld.so; then 4929 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4930 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4931 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4932 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 4933 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 4934 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4935 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4936 + else 4937 + case $host_os in 4938 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 4939 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4940 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4941 + ;; 4942 + *) 4943 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 4944 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4945 + ;; 4946 + esac 4947 + fi 4948 else 1106 - else 4949 1107 - case $host_os in 4950 1108 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) … … 4957 1115 - ;; 4958 1116 - esac 4959 + _LT_AC_TAGVAR(ld_shlibs, $1)=no 4960 fi 4961 ;; 4962 4963 @@ -6087,17 +6842,16 @@ 4964 case $host_os in 4965 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 4966 *) 1117 - fi 1118 - ;; 1119 - 1120 - os2*) 1121 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 1122 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 1123 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 1124 - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 1125 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 1126 - ;; 1127 - 1128 - osf3*) 1129 - if test "$GCC" = yes; then 1130 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 1131 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 1132 - else 1133 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 1134 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 1135 - fi 1136 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 1137 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 1138 - ;; 1139 - 1140 - osf4* | osf5*) # as osf3* with the addition of -msym flag 1141 - if test "$GCC" = yes; then 1142 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 1143 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 1144 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 1145 - else 1146 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 1147 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 1148 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 1149 - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 1150 - 1151 - # Both c and cxx compiler support -rpath directly 1152 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 1153 - fi 1154 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 1155 - ;; 1156 - 1157 - solaris*) 1158 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 1159 - if test "$GCC" = yes; then 1160 - wlarc='${wl}' 1161 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 1162 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 1163 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 1164 - else 1165 - wlarc='' 1166 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 1167 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 1168 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 1169 - fi 1170 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 1171 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1172 - case $host_os in 1173 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 1174 - *) 4967 1175 - # The compiler driver will combine linker options so we 4968 1176 - # cannot just pass the convience library names through 4969 1177 - # without $wl, iff we do not link with $LD. 4970 1178 - # Luckily, gcc supports the same syntax we need for Sun Studio. 4971 + # The compiler driver will combine and reorder linker options, 4972 + # but understands `-z linker_flag'. GCC discards it without `$wl', 4973 + # but is careful enough not to reorder. 4974 # Supported since Solaris 2.6 (maybe 2.5.1?) 1179 - # Supported since Solaris 2.6 (maybe 2.5.1?) 4975 1180 - case $wlarc in 4976 1181 - '') … … 4979 1184 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 4980 1185 - esac ;; 4981 + if test "$GCC" = yes; then 4982 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 4983 + else 4984 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 4985 + fi 1186 - esac 1187 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 1188 - ;; 1189 - 1190 - sunos4*) 1191 - if test "x$host_vendor" = xsequent; then 1192 - # Use $CC to link under sequent, because it throws in some extra .o 1193 - # files that make .init and .fini sections work. 1194 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 1195 - else 1196 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 1197 - fi 1198 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 1199 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes 1200 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 1201 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1202 - ;; 1203 - 1204 - sysv4) 1205 - case $host_vendor in 1206 - sni) 1207 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 1208 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 1209 - ;; 1210 - siemens) 1211 - ## LD is ld it makes a PLAMLIB 1212 - ## CC just makes a GrossModule. 1213 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 1214 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 1215 - _LT_AC_TAGVAR(hardcode_direct, $1)=no 1216 - ;; 1217 - motorola) 1218 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 1219 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 1220 - ;; 1221 - esac 1222 - runpath_var='LD_RUN_PATH' 1223 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1224 - ;; 1225 - 1226 - sysv4.3*) 1227 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 1228 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1229 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 1230 - ;; 1231 - 1232 - sysv4*MP*) 1233 - if test -d /usr/nec; then 1234 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 1235 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1236 - runpath_var=LD_RUN_PATH 1237 - hardcode_runpath_var=yes 1238 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes 1239 - fi 1240 - ;; 1241 - 1242 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) 1243 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 1244 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 1245 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1246 - runpath_var='LD_RUN_PATH' 1247 - 1248 - if test "$GCC" = yes; then 1249 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 1250 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 1251 - else 1252 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 1253 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 1254 - fi 1255 - ;; 1256 - 1257 - sysv5* | sco3.2v5* | sco5v6*) 1258 - # Note: We can NOT use -z defs as we might desire, because we do not 1259 - # link with -lc, and that would cause any symbols used from libc to 1260 - # always be unresolved, which means just about no library would 1261 - # ever link correctly. If we're not using GNU ld we use -z text 1262 - # though, which does catch some bad symbols but isn't as heavy-handed 1263 - # as -z defs. 1264 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 1265 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 1266 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 1267 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1268 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 1269 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 1270 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 1271 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 1272 - runpath_var='LD_RUN_PATH' 1273 - 1274 - if test "$GCC" = yes; then 1275 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 1276 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 1277 - else 1278 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 1279 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 1280 - fi 1281 - ;; 1282 - 1283 - uts4*) 1284 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 1285 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 1286 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 1287 - ;; 1288 - 1289 - *) 1290 - _LT_AC_TAGVAR(ld_shlibs, $1)=no 1291 - ;; 1292 - esac 1293 - fi 1294 -]) 1295 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 1296 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 1297 - 1298 -# 1299 -# Do we need to explicitly link libc? 1300 -# 1301 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 1302 -x|xyes) 1303 - # Assume -lc should be added 1304 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 1305 - 1306 - if test "$enable_shared" = yes && test "$GCC" = yes; then 1307 - case $_LT_AC_TAGVAR(archive_cmds, $1) in 1308 - *'~'*) 1309 - # FIXME: we may have to deal with multi-command sequences. 1310 - ;; 1311 - '$CC '*) 1312 - # Test whether the compiler implicitly links with -lc since on some 1313 - # systems, -lgcc has to come before -lc. If gcc already passes -lc 1314 - # to ld, don't add -lc before -lgcc. 1315 - AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 1316 - $rm conftest* 1317 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1318 - 1319 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 1320 - soname=conftest 1321 - lib=conftest 1322 - libobjs=conftest.$ac_objext 1323 - deplibs= 1324 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 1325 - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 1326 - compiler_flags=-v 1327 - linker_flags=-v 1328 - verstring= 1329 - output_objdir=. 1330 - libname=conftest 1331 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 1332 - _LT_AC_TAGVAR(allow_undefined_flag, $1)= 1333 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 1334 - then 1335 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 1336 - else 1337 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 1338 - fi 1339 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 1340 - else 1341 - cat conftest.err 1>&5 1342 - fi 1343 - $rm conftest* 1344 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 1345 - ;; 1346 - esac 1347 - fi 1348 - ;; 1349 -esac 1350 -])# AC_LIBTOOL_PROG_LD_SHLIBS 1351 - 1352 - 1353 -# _LT_AC_FILE_LTDLL_C 1354 -# ------------------- 1355 -# Be careful that the start marker always follows a newline. 1356 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 1357 -# /* ltdll.c starts here */ 1358 -# #define WIN32_LEAN_AND_MEAN 1359 -# #include <windows.h> 1360 -# #undef WIN32_LEAN_AND_MEAN 1361 -# #include <stdio.h> 1362 -# 1363 -# #ifndef __CYGWIN__ 1364 -# # ifdef __CYGWIN32__ 1365 -# # define __CYGWIN__ __CYGWIN32__ 1366 -# # endif 1367 -# #endif 1368 -# 1369 -# #ifdef __cplusplus 1370 -# extern "C" { 1371 -# #endif 1372 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 1373 -# #ifdef __cplusplus 1374 -# } 1375 -# #endif 1376 -# 1377 -# #ifdef __CYGWIN__ 1378 -# #include <cygwin/cygwin_dll.h> 1379 -# DECLARE_CYGWIN_DLL( DllMain ); 1380 -# #endif 1381 -# HINSTANCE __hDllInstance_base; 1382 -# 1383 -# BOOL APIENTRY 1384 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 1385 -# { 1386 -# __hDllInstance_base = hInst; 1387 -# return TRUE; 1388 -# } 1389 -# /* ltdll.c ends here */ 1390 -])# _LT_AC_FILE_LTDLL_C 1391 - 1392 - 1393 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 1394 -# --------------------------------- 1395 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 1396 - 1397 - 1398 -# old names 1399 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 1400 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 1401 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 1402 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 1403 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 1404 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 1405 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 1406 - 1407 -# This is just to silence aclocal about the macro not being used 1408 -ifelse([AC_DISABLE_FAST_INSTALL]) 1409 - 1410 -AC_DEFUN([LT_AC_PROG_GCJ], 1411 -[AC_CHECK_TOOL(GCJ, gcj, no) 1412 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 1413 - AC_SUBST(GCJFLAGS) 1414 -]) 1415 - 1416 -AC_DEFUN([LT_AC_PROG_RC], 1417 -[AC_CHECK_TOOL(RC, windres, no) 1418 -]) 1419 - 1420 -# NOTE: This macro has been submitted for inclusion into # 1421 -# GNU Autoconf as AC_PROG_SED. When it is available in # 1422 -# a released version of Autoconf we should remove this # 1423 -# macro and use it instead. # 1424 -# LT_AC_PROG_SED 1425 -# -------------- 1426 -# Check for a fully-functional sed program, that truncates 1427 -# as few characters as possible. Prefer GNU sed if found. 1428 -AC_DEFUN([LT_AC_PROG_SED], 1429 -[AC_MSG_CHECKING([for a sed that does not truncate output]) 1430 -AC_CACHE_VAL(lt_cv_path_SED, 1431 -[# Loop through the user's path and test for sed and gsed. 1432 -# Then use that list of sed's as ones to test for truncation. 1433 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1434 -for as_dir in $PATH 1435 -do 1436 - IFS=$as_save_IFS 1437 - test -z "$as_dir" && as_dir=. 1438 - for lt_ac_prog in sed gsed; do 1439 - for ac_exec_ext in '' $ac_executable_extensions; do 1440 - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 1441 - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 1442 - fi 1443 - done 1444 - done 1445 -done 1446 -lt_ac_max=0 1447 -lt_ac_count=0 1448 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris 1449 -# along with /bin/sed that truncates output. 1450 -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 1451 - test ! -f $lt_ac_sed && continue 1452 - cat /dev/null > conftest.in 1453 - lt_ac_count=0 1454 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in 1455 - # Check for GNU sed and select it if it is found. 1456 - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 1457 - lt_cv_path_SED=$lt_ac_sed 1458 - break 1459 - fi 1460 - while true; do 1461 - cat conftest.in conftest.in >conftest.tmp 1462 - mv conftest.tmp conftest.in 1463 - cp conftest.in conftest.nl 1464 - echo >>conftest.nl 1465 - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 1466 - cmp -s conftest.out conftest.nl || break 1467 - # 10000 chars as input seems more than enough 1468 - test $lt_ac_count -gt 10 && break 1469 - lt_ac_count=`expr $lt_ac_count + 1` 1470 - if test $lt_ac_count -gt $lt_ac_max; then 1471 - lt_ac_max=$lt_ac_count 1472 - lt_cv_path_SED=$lt_ac_sed 1473 - fi 1474 - done 1475 -done 1476 -]) 1477 -SED=$lt_cv_path_SED 1478 -AC_MSG_RESULT([$SED]) 1479 -]) 1480 - 1481 -# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. 1482 -# 1483 -# This file is free software; the Free Software Foundation 1484 -# gives unlimited permission to copy and/or distribute it, 1485 -# with or without modifications, as long as this notice is preserved. 1486 - 1487 -# AM_AUTOMAKE_VERSION(VERSION) 1488 -# ---------------------------- 1489 -# Automake X.Y traces this macro to ensure aclocal.m4 has been 1490 -# generated from the m4 files accompanying Automake X.Y. 1491 -# (This private macro should not be called outside this file.) 1492 -AC_DEFUN([AM_AUTOMAKE_VERSION], 1493 -[am__api_version='1.10' 1494 -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 1495 -dnl require some minimum version. Point them to the right macro. 1496 -m4_if([$1], [1.10], [], 1497 - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 1498 -]) 1499 - 1500 -# _AM_AUTOCONF_VERSION(VERSION) 1501 -# ----------------------------- 1502 -# aclocal traces this macro to find the Autoconf version. 1503 -# This is a private macro too. Using m4_define simplifies 1504 -# the logic in aclocal, which can simply ignore this definition. 1505 -m4_define([_AM_AUTOCONF_VERSION], []) 1506 - 1507 -# AM_SET_CURRENT_AUTOMAKE_VERSION 1508 -# ------------------------------- 1509 -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 1510 -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 1511 -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 1512 -[AM_AUTOMAKE_VERSION([1.10])dnl 1513 -_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) 1514 - 1515 -# AM_AUX_DIR_EXPAND -*- Autoconf -*- 1516 - 1517 -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 1518 -# 1519 -# This file is free software; the Free Software Foundation 1520 -# gives unlimited permission to copy and/or distribute it, 1521 -# with or without modifications, as long as this notice is preserved. 1522 - 1523 -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 1524 -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 1525 -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 1526 -# 1527 -# Of course, Automake must honor this variable whenever it calls a 1528 -# tool from the auxiliary directory. The problem is that $srcdir (and 1529 -# therefore $ac_aux_dir as well) can be either absolute or relative, 1530 -# depending on how configure is run. This is pretty annoying, since 1531 -# it makes $ac_aux_dir quite unusable in subdirectories: in the top 1532 -# source directory, any form will work fine, but in subdirectories a 1533 -# relative path needs to be adjusted first. 1534 -# 1535 -# $ac_aux_dir/missing 1536 -# fails when called from a subdirectory if $ac_aux_dir is relative 1537 -# $top_srcdir/$ac_aux_dir/missing 1538 -# fails if $ac_aux_dir is absolute, 1539 -# fails when called from a subdirectory in a VPATH build with 1540 -# a relative $ac_aux_dir 1541 -# 1542 -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 1543 -# are both prefixed by $srcdir. In an in-source build this is usually 1544 -# harmless because $srcdir is `.', but things will broke when you 1545 -# start a VPATH build or use an absolute $srcdir. 1546 -# 1547 -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 1548 -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 1549 -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 1550 -# and then we would define $MISSING as 1551 -# MISSING="\${SHELL} $am_aux_dir/missing" 1552 -# This will work as long as MISSING is not called from configure, because 1553 -# unfortunately $(top_srcdir) has no meaning in configure. 1554 -# However there are other variables, like CC, which are often used in 1555 -# configure, and could therefore not use this "fixed" $ac_aux_dir. 1556 -# 1557 -# Another solution, used here, is to always expand $ac_aux_dir to an 1558 -# absolute PATH. The drawback is that using absolute paths prevent a 1559 -# configured tree to be moved without reconfiguration. 1560 - 1561 -AC_DEFUN([AM_AUX_DIR_EXPAND], 1562 -[dnl Rely on autoconf to set up CDPATH properly. 1563 -AC_PREREQ([2.50])dnl 1564 -# expand $ac_aux_dir to an absolute path 1565 -am_aux_dir=`cd $ac_aux_dir && pwd` 1566 -]) 1567 - 1568 -# AM_CONDITIONAL -*- Autoconf -*- 1569 - 1570 -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 1571 -# Free Software Foundation, Inc. 1572 -# 1573 -# This file is free software; the Free Software Foundation 1574 -# gives unlimited permission to copy and/or distribute it, 1575 -# with or without modifications, as long as this notice is preserved. 1576 - 1577 -# serial 8 1578 - 1579 -# AM_CONDITIONAL(NAME, SHELL-CONDITION) 1580 -# ------------------------------------- 1581 -# Define a conditional. 1582 -AC_DEFUN([AM_CONDITIONAL], 1583 -[AC_PREREQ(2.52)dnl 1584 - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 1585 - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 1586 -AC_SUBST([$1_TRUE])dnl 1587 -AC_SUBST([$1_FALSE])dnl 1588 -_AM_SUBST_NOTMAKE([$1_TRUE])dnl 1589 -_AM_SUBST_NOTMAKE([$1_FALSE])dnl 1590 -if $2; then 1591 - $1_TRUE= 1592 - $1_FALSE='#' 1593 -else 1594 - $1_TRUE='#' 1595 - $1_FALSE= 1596 -fi 1597 -AC_CONFIG_COMMANDS_PRE( 1598 -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 1599 - AC_MSG_ERROR([[conditional "$1" was never defined.
