Commit Graph

296 Commits

Author SHA1 Message Date
Gary V. Vaughan
45ca0c8273 * tests/sh.test: Add a new test to enforce X as the fill
character in `test "X...'.
Beef up the `test' tests to also check `test -.' and `test ! -.'
phrases for compliance.
* ltmain.in: Fix quoting problems uncovered by the new tests.
2001-07-29 16:35:50 +00:00
Andrew C. Feren
ed51dc446f * tests/sh.test: New test to disallow `test $foo', where
`test "$foo"' is much safer.
* ltmain.in: Fix quoting problems uncovered by the new test.
2001-07-29 16:20:45 +00:00
Ossama Othman
e4a2772406 From Thomas Poindessous <poinde_t@epita.fr>
* ltmain.in (pic_mode):  Added missing quotes around shell
variable in "if test" conditional.

From Peter Moulder <pmoulder@longford.csse.monash.edu.au>
* ltmain.in (xform): Add support for pre-processed
(e.g. `*.{i,ii}' sources).

* THANKS:  Added Albert Chin-A-Young.
2001-07-25 23:20:15 +00:00
Robert Boehne
df9214ecf2 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Set max_cmd_len
to -1 on hurd, it has no command line argument limits.
* ltmain.in Handle max_cmd_len=-1 for systems that don't have
command line argument limits.
2001-07-09 19:11:26 +00:00
Gary V. Vaughan
f9cb0bf8b8 * libtoolize.in: Display --version in the same format as
autoconf and automake.
* ltmain.in: Ditto.
2001-07-01 23:33:12 +00:00
Gary V. Vaughan
3423d6e7f9 * libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE) [HPUX]: Define
lt_cv_sys_global_symbol_to_c_name_address to be a sed expression
for mangling the output of the symbol pipe into a brace delimited
C declaration of symbol name and address.
* ltmain.in: Use it to generate the fooS.c symbol name
Reported by Albert Chin-A-Young  <china@thewrittenword.com>
2001-06-28 23:06:25 +00:00
Gary V. Vaughan
233a00d37b * NEWS: Updated.
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [openbsd]: Improved
support for various openbsd platforms.
(AC_LIBTOOL_PROG_LD_SHLIBS): Ditto.
* ltmain.in: Ditto,
2001-06-27 17:56:09 +00:00
Gary V. Vaughan
dedf379123 Merged the last few changes to the multi-language-branch made after the
original mergepoint:

2000-06-04  Mark Mitchell  <mark@codesourcery.com>

        * ltcf-c.sh (archive_cmds, archive_expsym_cmds) [solaris,
        with_gcc]: Use `gcc -shared' to build a shared library.

2001-06-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>

        * ltcf-c.sh (archive_cmd) [hpux, with_gcc]: Use gcc to link shared
        archives.

2001-05-28  Simon Patarin <simon.patarin@inria.fr>

        * ltcf-cxx.sh (osf3/osf4/osf5): Support creation of C++  shared
        libraries when using g++ with native linker.

2001-05-28  Albert Chin  <china@thewrittenword.com>

        * ltconfig.in (version_type, soname_spec) [aix4* | aix5*]: Use
        linux-style versioning, and remove trailing .o from soname_spec.

2001-05-22  Alexandre Oliva  <aoliva@redhat.com>

        * ltcf-cxx.sh (allow_undefined_flag, no_undefined_flag)
        [aix4*|aix5*]: Prepend blank.

2001-05-20  Alexandre Oliva  <aoliva@redhat.com>

        * ltconfig.in: Fix sh.test regression introduced in previous patch.

        * ltconfig.in (lt_cv_sys_max_cmd_len): Improve test to work better
        in case of non-built-in echo.  Set bounds correctly.

        * ltcf-cxx.sh (allow_undefined_flag) [aix4* | aix5*]: Fix quote
        error.

        * ltmain.in (exec_cmd): New variable.  Don't exec programs within
        the big `case'; set the variable instead, and exec the cmd
        afterwards, so that the shell gets a chance to clean up here-doc
        files.
        * NEWS: Update.

2001-05-16  Alan Modra  <amodra@one.net.au>

        * libtool.m4 (lt_cv_deplibs_check_method): pass_all for hppa*-linux.

2001-05-03  Andreas Jaeger  <aj@suse.de>, Andreas Schwab  <schwab@suse.de>

        * ltmain.in (relink_command): Arrange for wrapper script to save
        output to a variable and display it only if relinking fails.
2001-06-25 20:42:45 +00:00
Gary V. Vaughan
3b5c84d654 * ltmain.in: Merged from multi-language-branch.
* libtool.m4: Merged from multi-language-branch.
* ChangeLog: Started afresh.  Old ChangeLog history moved to...
* ChangeLog.1: ...here.
2001-05-27 23:20:45 +00:00
Gary V. Vaughan
7396e09d88 * libtool.m4, ltmain.in, libltdl/configure.in,
tests/quote.test:  Remove stale references to ltconfig.
2001-04-24 23:22:35 +00:00
Thomas Tanner
6588d8158d * TODO: describe problems with libltdl
* ltmain.in (ILD): tidy up, add comments, remove dead code,
  merge duplicate code

* ltmain.in (ILD): don't touch newdependency_libs after scan or
  dlopen pass

* ltmain.in (ILD): don't dlpreopen dependency_libs of a dlopened
  module (remove absolutely wrong quick hack)

* ltmain.in (ILD): remove wrong comments about duplicate removal

* ltmain.in (ILD): build a static-only module if it has
  static libraries in its dependencies (so that libltdl can
  safely load dependency_libs)

* ltmain.in (argument parsing): prefix comparsions of -l args with X,
  replace -lc with `-framework System' _after_ the ILD passes

* ltmain.in (argument parsing): support dl[pre]open
  for both .o and .lo files

* ltmain.in (deplibs_check): use portable test syntax

* ltmain.in (help): document -prefer-[non-]pic flags

* ltmain.in: improve readablity by adding some comments,
  rename uninst_* to notinst_* (more adequate name)
2001-04-24 20:30:21 +00:00
Gary V. Vaughan
4ff38d2fd2 * doc/PLATFORMS: With this patch, my Solaris boxes now pass the
test suite,  Yay!
From Albert Chin-A-Young <china@thewrittenword.com>
* ltmain.in:  `test -L' is not portable, and infact breaks uninstall
mode on Solaris.  Fallback to `test -h' and finally `test -f',
but be careful not to let the failure status cause libtool to
stop.
2001-04-23 20:08:33 +00:00
Nick Hudson
30eea50730 * ltmain.in: Correct an error in yesterday's patch. 2001-04-21 17:10:20 +00:00
Nick Hudson
f67d1c368b * libtool.m4: Improve NetBSD support.
* ltmain.in: ditto.
2001-04-20 20:55:18 +00:00
Gary V. Vaughan
0790e81085 From Peter Eisentraut <peter_e@gmx.net>
* ltmain.in (clean,uninstall): test -e is not portable.  Well,
neither is -L, but I'm hoping that redirecting error messages
to /dev/null and relying on non-zero exit status will work okay
on the few hosts that don't support -L.
2001-04-08 09:51:22 +00:00
Nick Hudson
19edc88b64 * ltmain.in: Improve check for valid -version-info parameter. 2001-04-08 00:46:58 +00:00
Peter Eisentraut
ba91447e79 * ltmain.in (clean,uninstall): Do not error if the file doesn't
exist and 'rm -f' was used.  Exit with status 1 on error.
2001-04-06 23:48:28 +00:00
Nick Hudson
b9158c9d28 * ltmain.in: Implement a new deplibs_check_method called
match_pattern that does pattern matching on filenames...
* libtool.m4: ...use it with NetBSD
2001-04-06 21:29:15 +00:00
Gary V. Vaughan
b054ed6edd * tests/Makefile.am (TESTS): Delete references to depdemo-dups.test.
* tests/depdemo-dups.test:  Removed, as part of the patch
reversion below.
* ltmain.in: Revert my change from 2001-03-31.  Although it
was technically correct, it opens a whole can of worms we don't
want to deal with right now.
2001-04-05 23:09:38 +00:00
Christoph Pfisterer
0f6c252d00 * libtool.m4: Fixed support for Darwin and Rhapsody. Now correctly
hardcodes the library path and adds versioning. Other small
fixes.
* ltmain.in: Fixed special cases for libc and libm on Rhapsody and
Darwin. One of them was misplaced. Added version_type case for
Rhapsody and Darwin, named "darwin".
2001-04-01 13:46:08 +00:00
Gary V. Vaughan
2604e82a6d * ltmain.in: Remove the code for stripping duplicate deplibs
from libtool link lines -- duplicates are somtimes necessary
to satisfy inter-library dependencies, and never cause link to
fail even if they are spurious.
* tests/depdemo-dups.test: New file.  Make sure this bug doesn't
creep back in again!
* tests/Makefile.am (TESTS): Use the new test above.
2001-03-31 23:51:10 +00:00
Edward M. Lee
8087272484 * libtool.m4: Generate dll/import libraries for cygwin according
to the following: libFOO.a (static lib), libFOO.dll.a (import
lib), cygFOO-version.dll (dll).  Update postinstall_cmds and
postuninstall_cmds to reflect this.
* ltmain.in: Generate installed .la files with dlnames set to
../bin/cygFOO-version.dll for normal dlls. dlls for modules
remain with the .la file.
2001-03-31 00:08:03 +00:00
Peter Eisentraut
759f3a7ed0 * ltmain.in (clean): Automatically remove $objdir (usually '.libs'). 2001-03-10 02:16:45 +00:00
Alexandre Oliva
e724896b33 * ltmain.in: When dropping dependencies of a -no-undefined
library, give up on building a shared library.
2001-03-06 11:16:05 +00:00
Akim Demaille
cd2b157145 * ltmain.sh: Don't quote the argument of case/esac and
assignments.
* libtool.m4: Likewise.
2001-03-05 20:08:09 +00:00
Gary V. Vaughan
325c26d1a4 * ltmain.in (dlprefiles): Now that `2000-12-15 Utz-Uwe Haus' patch
below can detect preopened library deplibs correctly in libltdl,
we need to ensure that libtool library deplibs are also preloaded
into the binary for that phase to work.
2000-12-20 22:40:59 +00:00
Gary V. Vaughan
20c4325d86 * libtool.m4 (sys_lib_search_path_spec): Use test instead of
`['.
(archive_cmds): And another one.
2000-12-16 14:02:50 +00:00
Wilfredo Sanchez
4c5c1ca54f * libtool.m4: (dyld/darwin*) Much improved port.
* ltmain.in: (dyld/darwin*) Much improved port.
2000-12-16 13:08:14 +00:00
Sascha Schumann
e8a4133706 * libtool.m4: Accept darwin as an alias for rhapsody.
* ltmain.in: ditto.
2000-12-16 03:55:59 +00:00
Paul Berrevoets
99d3e1b7bd * ltmain.in: Some versions of expr respond with "0" if a
regexp fails to match.
2000-11-20 22:03:43 +00:00
Gary V. Vaughan
a12dfc6cc8 From Bruce Korb <bkorb@cruzio.com>
* ltmain.in (execute_dlfiles): Reduce obfuscation.
2000-10-02 01:18:16 +00:00
Gary V. Vaughan
24773fc37c * ltmain.in (version_type): Use "-iface" as the windows
versioning scheme, where iface is the number of the oldest
interface supported.
2000-09-15 02:26:04 +00:00
Gary V. Vaughan
a051edc63d From Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
* libtool.m4 (pw32): Initial support for pw32, assuming that
libtool's behaviour in this environment is identical to under
cygwin.
* ltmain.in (pw32): ditto.
* NEWS: Updated.
2000-09-15 02:10:27 +00:00
Michael Matz
568b6f4983 * ltmain.in: Be careful about filenames with multiple `.'s in
them when calculating file extensions.
Reported by Joel Reed <jreed@support.ddiworld.com>
2000-09-12 23:26:49 +00:00
Gary V. Vaughan
e927e43114 libtool.m4 now contains a version of the code that used to run
from ltconfig, so that ltmain.sh and then libtool are
generated at configure time.

* Makefile.am:  Don't generate ltmain.sh or ltconfig anymore.
* bootstrap: ltconfig is no more!
* configure.in: Call AC_PROG_LIBTOOL directly.
(AC_OUTPUT): Generate tmain.sh.
* libtool.m4: Don't build an argument list for ltconfig.
(_LT_AC_LTCONFIG_HACK):  Refactoring of the former contents of
ltconfig.in to take advantage of the m4 macros from autoconf.
* ltmain.in: Don't do a version check against ltconfig.
* tests/assign.test: Remove reference to ltconfig.
* tests/hardcode.test: ditto.
* tests/sh.test: ditto.
2000-09-06 17:31:09 +00:00
Alexandre Oliva
03d0740c11 * ltconfig.in: Removed all references to what used to be
hardcode_into_libs=all.  2000-09-03's patch was wrong.
* ltmain.in: Likewise.
* tests/build-relink.test, tests/build-relink2.test: Adjust.
* mdemo/Makefile.am (lib_LTLIBRARIES): Move libsub.la before
libfoo2.la, so that they're installed in the right order.
2000-09-05 11:03:06 +00:00
Alexandre Oliva
5526adb017 * ltmain.in (compile, need_lock): Don't create nor remove lock
files in dry runs.
2000-09-04 06:29:21 +00:00
Alexandre Oliva
c4c91b5984 * ltmain.in (link -static): Don't add $link_static_flag; only
-all-static should do that.
* mdemo/configure.in: Revert part of the previous delta.
2000-09-04 05:10:30 +00:00
Alexandre Oliva
5d15db14ac * ltconfig.in: Get rid of hardcode_into_libs=all; use
hardcode_into_libs=yes && shlibpath_overrides_runpath!=yes
instead.
[FreeBSD 3.[01]] (shlibpath_overrides_runpath): Set to no.
* ltmain.in: Likewise.
* tests/build-relink.test, tests/build-relink2.test: Adjust.
2000-09-04 04:00:48 +00:00
Alexandre Oliva
19b19ba7ae * ltmain.in (newdlprefiles): Use dlname if it's available and
old_library isn't; use linklib only if dlname is not available.
2000-09-04 01:18:13 +00:00
Alexandre Oliva
dc692acce6 * ltmain.in (variables_saved_for_relink): Attempt to unset them
instead of setting them to an empty string.
2000-09-03 03:13:56 +00:00
Gary V. Vaughan
656d1ca824 * ltconfig.in (with_gcc): Make the value of this option
available to the generated libtool script.
* ltmain.in (compile_command, finalize_command):  The native C
and C++ compilers on IRIX require the -LANG:std in order to to
compile correctly.   The same options should _not_ be passed
through to gcc on IRIX, or at all on other architectures for
backwards compatibility (among others).
Reported by Bob Freisenhahn <bfreisen@simple.dallas.tx.us>
Reported by Albert Chin-A-Young <china@thewrittenword.com>
2000-08-27 10:50:23 +00:00
Alexandre Oliva
94c658f565 * ltmain.in (shtool): Use echo|grep instead of expr, as in the
original patch.
2000-08-01 04:28:07 +00:00
Alexandre Oliva
b486b2ae8e * ltmain.in (irix, major): Prepend a `.'.
* ltconfig.in (irix, soname_spec, library_names_spec): Adjust.
2000-07-24 06:09:03 +00:00
Alexandre Oliva
073255d718 * ltmain.in: Support GNU shtool's install. 2000-07-24 05:42:55 +00:00
Nick Hudson
a28c34c3ec * ltmain.in (ILD): Fix addition of deplibs in relink case. 2000-07-24 05:15:35 +00:00
H.J. Lu
7bc0e24c4f * ltconfig.in: Check if -lc is necessary for building shared
libary. Set build_libtool_need_lc to indicate it.
* ltmain.in: Add -lc when building shared libary only if
necessary.
2000-07-20 02:28:44 +00:00
Michael Matz
786438a679 * ltmain.in: fix quoting for $var_value. 2000-05-29 10:42:50 +00:00
Chad Cunningham
718311d9b6 * ltconfig.in (rhapsody*): New Port.
* ltmain.in (rhapsody*): ditto.
2000-05-27 02:20:00 +00:00
Gary V. Vaughan
5921dc77fc * ltmain.in: cygwin-1.1.0 and higher no longer grok backslash path
separators.
2000-05-17 10:20:26 +00:00