Commit Graph

292 Commits

Author SHA1 Message Date
Christoph Egger
b821d447f0 * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS, darwin): Add
-install_name to the link line only when -dynamiclib is
specified for a module.  Use -bind_at_load when linking C++
shared libraries.
2002-10-11 15:52:08 +00:00
Elizabeth Barham
14a18a2500 * libtool.m4 (AC_LIBTOOL_SETUP): GCC now checks -shared to
create a dll for Windows targets.
2002-10-04 15:34:50 +00:00
Albert Chin-A-Young
9329b60417 * libtool.m4: Custom $symcode for Tru64 UNIX to catch 'Q',
read-only constants.
2002-09-10 13:50:06 +00:00
Rainer Orth
c2132510d8 * libtool.m4 (osf[345]): Append $major to soname_spec.
Reflect this in library_names_spec.
* ltmain.in (osf): Prefix $major with '.' for use as extension.
2002-09-09 18:26:34 +00:00
Eric Lindahl
c466be90b3 * libtool.m4 (AC_PROG_LIBTOOL): Added support for the new F77
Fortran support tag.
(AC_LIBTOOL_PROG_CC_C_O, _LT_AC_TAGCONFIG): Support F77 tag.
(AC_LIBTOOL_F77, _LT_AC_LANG_F77, AC_LIBTOOL_LANG_F77_CONFIG):
New macros for F77 tag Fortran support.
* configure.ac: Add support for creating the new F77 tag.
* bootstrap: Add f77demo directory to the list to be processed.
* Makefile.am: Add support for FFLAGS and FLIBS.
* tests/Makefile.am: Add new Fortran tests.
* tests/f77demo-*.test: New files.
* f77demo/configure.ac, f77demo/cprogram.c, f77demo/fooc.c
* f77demo/foof.f, f77demo/foo.h, f77demo/fprogram.f
* f77demo/Makefile.am, f77demo/README: New files.
2002-07-31 20:15:28 +00:00
Gary V. Vaughan
d3fedfe52d * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [mingw]: Remove
extraneous '=' character which appears in gcc 3.1
-print-search-dirs output.
Handle both upper and lower case drive letters when testing for
Windows vs POSIX style path output from -print-search-dirs
output.
2002-06-26 07:15:36 +00:00
Kevin Ryde
278cef5270 * libtool.m4 (AC_LIBTOOL_SETUP, _LT_AC_LOCK): Use
AC_PROVIDE_IFELSE to test AC_LIBTOOL_WIN32_DLL and
AC_LIBTOOL_DLOPEN, necessary for autoconf 2.53.
2002-06-23 21:42:57 +00:00
Gary V. Vaughan
1d69b1c81b From Kevin Ryde <user42@zip.com.au>:
* doc/libtool.texi (Platform quirks): s/dependan/dependen/
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Ditto.
* TODO: Ditto.
2002-06-20 06:58:38 +00:00
Charles Wilson
7cb0a065a5 * NEWS: Updated.
* libtool.m4: use $NM to create the symbol list on cygwin, not
$ltdll_cmds as on mingw.  For all tags, (and host=cygwin) set
allow_undefined_flag="" so that the --auto-import magic
works properly.  For all tags (and host=cygiwn) set
always_export_symbols=no -- it is unnecessary thanks to
binutils' auto-export magic.
* libltdl/ltdl.c: Don't force cygwin to use the LoadLibrary
wrapper; use cygwin's builtin implementatino of dl*.
* cdemo/Makefile.am: the downside of unsetting
'allow_undefined_flag' -- we must include -no-undefined
in the _la_LDFLAGS variable.
* depdemo/l1/Makefile.am: ditto.
* depdemo/l2/Makefile.am: ditto.
* depdemo/l3/Makefile.am: ditto.
* depdemo/l4/Makefile.am: ditto.
* mdemo/Makefile.am: ditto.
* tagdemo/Makefile.am: ditto.
* demo/Makefile.am: ditto.  But also, we must make special
provision to clean up the hell0 wrapper script.
* pdemo/Makefile.am: ditto -no-undefined.  ditto hell0.
And use 'hell_static' instead of 'hell.static'.
* tests/pdemo-inst.test: use 'hell_static' instead
of 'hell.static'.
* tests/pdemo-exec.test: ditto.
2002-06-01 14:09:50 +00:00
Gary V. Vaughan
e00af245ec Finally fix the annoying bug which always adds all tags to the
libtool script built by your project configure.  Now we set the
default tags depending on whether AC_PROG_CXX et. al. are actually
called from configure.ac.

* libtool.m4 (_LT_AC_TAGCONFIG): Don't default the tagnames when
no --with-tags argument is given.
(_LT_AC_SHELL_INIT): Factored out from the AC_DIVERT_PUSH code
in...
(_LT_AC_PROG_ECHO_BACKSLASH): ...which now calls the macro
instead.
(AC_LIBTOOL_CXX): Use _LT_AC_SHELL_INIT to add CXX to the
initialisation sequence for tagnames.
(AC_LIBTOOL_GCJ): Similarly for GCJ tag.
(AC_LIBTOOL_RC): Likewise for RC tag.
2002-05-30 20:20:04 +00:00
Nick Hudson
b71067fa79 * libtool.m4: Update support for NetBSD
* ltdl.m4: Make sure that libltdl_cv_func_dlopen and
libltdl_cv_lib_dl_dlopen are set and used instead of the
ac_cv_ versions. Also, use lt_cv_sys_global_symbol_pipe
instread of global_symbol_pipe. This fixes the detection of
dlopen on BSD derived plaforms and more importantly fixes
need_uscore detection.
2002-05-17 16:07:25 +00:00
Paul Eggert
001be2972d * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): head -1 -> sed 1q to
port to POSIX 1003.1-2001 hosts, like textutils 2.0.21 with
_POSIX2_VERSION=200112.
2002-05-06 15:03:29 +00:00
Fritz Elfert
105b635470 * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Modify archive_expsym_cmds
to catch properly handle dll alias symbols.
2002-05-02 14:22:51 +00:00
Kevin Ryde
d10ecadbb9 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Use $build_os not $host_os. 2002-04-24 14:39:31 +00:00
Jean-Frederic Clere
dc2fdec4f4 * libtool.m4: Update support for Fujistu-Siemens Computers (FSC).
* ltmain.in: Add support for EBCDIC based systems.
2002-04-14 21:34:04 +00:00
Robert Boehne
d79b26bdb7 * libtool.m4 (LT_AC_PROG_SED): Refactor, removing temporary directory
and consistent use of the shell variable namespace "lt_ac_".
2002-04-08 00:25:56 +00:00
Anthony Green
d4d3dd4518 * libtool.m4 (AC_LIBTOOL_PROG_CC_C_O): Albert Chin's gcj fix.
(AC_LIBTOOL_PROG_COMPILER_PIC): Per Bothner's change for not
using -DPIC with gcj.
2002-03-14 17:40:20 +00:00
Gary V. Vaughan
1cf9d2964d * NEWS: Updated.
* THANKS: Added Rob Collins and Chuck Wilson for their cygwin
work.

From Robert Collins  <robert.collins@itdomain.com.au>:
* configure.ac (AC_EXEEXT): Needed for DOSish systems.
* libtool.m4 (shlibpath_overrides_runpath) [cygwin]: Set to yes
when compiling with gcc.
(lt_prog_compiler_pic) [cygwin]: No longer needs the -DDLL_EXPORT
hack, so we just say the pic is the default.
(AC_LIBTOOL_PROG_LD_SHLIBS) [cygwin]: Extract symbols from a
library normally.
[cygwin]: Declare C++ compiler characterisics for g++, taking into
account the new auto-import support in cygwin ld.
* ltmain.in (specialdeplibs) [cygwin]: Be careful about
eliminating duplicate -lgcc's from the link line.
[cygwin]: Be smarter about .exe suffixes.
* demo/configure.ac (AC_EXEEXT, AC_LIBTOOL_WIN32_DLL):  Support
DOSish systems properly.
* depdemo/configure.ac (AC_EXEEXT, AC_LIBTOOL_WIN32_DLL):  Ditto.
* demo/Makefile.am (deplibs-check): Allow for .exe suffix.  Use
hell_static instead of hell.static for multi-`.' inhibited OSes.
* tests/demo-exec.test: Ditto.
* tests/demo-inst.test: Ditto.
* demo/foo.h [cygwin]: Sanitize cygwin dll support.
* demo/foo.c (_LIBFOO_COMPILATION_): No longer required.
* demo/hello.c (_LIBFOO_COMPILATION_): Ditto.
* depdemo/Makefile.am (bin_PROGRAMS): Use depdemo_static instead
of depdemo.static for multi-`.' inhibited OSes.
* tests/depdemo-exec.test: Ditto.
* tests/depdemo-inst.test: Ditto.
* mdemo/Makefile.am (bin_PROGRAMS):  Ditto for mdemo.static.
* tests/dryrun.test: Ditto.
* tests/mdemo-exec.test: Ditto.
* tests/mdemo-inst.test: Ditto.
* tests/build-relink.test:  Be careful about possible .exe
suffixes.
* tests/noinst-link.test: Allow for .exe suffix.
2002-03-03 03:19:55 +00:00
Alexandre Oliva
c2c0bd8ada Reverted incorrect patch:
2001-10-24  H.J. Lu  <hjl@gnu.org>
* ltmain.sh: Allow link against an archive when building a
shared library.
* libtool.m4 (lt_cv_deplibs_check_method): Always use
file_magic for Linux ELF.
2002-02-07 19:54:36 +00:00
Robert Boehne
558143b58d * libtool.m4 (LT_AC_PROG_SED): Removed a mysterious newline. 2002-01-30 16:39:24 +00:00
Robert Boehne
f38781e05b * libtool.m4 (LT_AC_PROG_SED): New macro tests sed for truncation of
output.  AC_REQUIRE the new macro.
* ltmain.in: Use $SED rather than plan old sed, as set by the new
macro LT_AC_PROG_SED.
2002-01-29 22:58:35 +00:00
Robert Boehne
21c4662d62 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Change the
factor of saftey as 3/4 of the result was not low enough.
2001-11-28 23:20:53 +00:00
Kevin Ryde
a9f74104e1 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Send "test"
warnings to /dev/null, helps FreeBSD and maybe others.
2001-11-27 18:49:47 +00:00
Albert Chin-A-Young
b521f8e2b6 * libtool.m4: quote LTCC because autoconf AC_PROG_CC_STDC
macro might add to $CC if options needed by compiler to
grok ANSI.
2001-11-15 01:15:25 +00:00
Gary V. Vaughan
9e3b311392 From Tom Bates <Tom.Bates@compaq.com>:
* libtool.m4 [mips-compaq-nonstopux]: New port.
* ltmain.in [mips-compaq-nonstopux]: Support
$version_type == nonstopux.
2001-10-28 12:22:39 +00:00
Gary V. Vaughan
7e220be5cf * libtool.m4 (_LT_AC_TAGCONFIG): Cray sed does not allow character
sets to contain the separator character.
Reported by Kevin Ryde <user42@zip.com.au>
2001-10-28 00:10:01 +00:00
Kevin Ryde
0285781a63 *libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Remove a stray ' quote. 2001-10-24 14:36:57 +00:00
H.J. Lu
c6d8bb2c4b * ltmain.sh: Allow link against an archive when building a
shared library.
* libtool.m4 (lt_cv_deplibs_check_method): Always use
file_magic for Linux ELF.
2001-10-24 14:30:22 +00:00
Gary V. Vaughan
ee4a8bb8bd * libtool.m4 (AC_LIBLTDL_CONVENIENCE): s/INCLTDL/LTDLINCL/ for
consistency with gettext's INTLINCL.  Keep the old symbol too for
backwards compatibility.
(AC_LIBLTDL_INSTALLABLE): Ditto.
* doc/libtool.texi (Distributing libltdl):  Adjust documentation.
2001-09-30 10:20:29 +00:00
Gary V. Vaughan
e40a083891 * libtool.m4 (_LT_AC_FILE_LTDLL_C): Be carefule that the start
marker searched for by sed must start in column 0.
(_LT_AC_FILE_IMPGEN_C): Ditto.
Reported by Tor Lillqvist <tml@iki.fi>
2001-09-22 14:35:03 +00:00
Tor Lillqvist
f934c69cf4 * libtool.m4 [mingw* cygwin*]: Small improvement for mingw-hosted
tool support (while still running libtool on cygwin). In that case
PATH_SEPARATOR is ':', but gcc -print-search-dirs still prints its
search path with ';' as separator.
(AC_LIBTOOL_RC, AC_LIBTOOL_LANG_RC_CONFIG): Add support for .rc
files (Windows resource files), compiled by the resource compiler
(windres in mingw) to .o files.
(AC_PROG_NM): Minor bug fix for $PATH elements with spaces in
them.
* configure.ac: Use LT_AC_PROG_RC.
* ltmain.in: Check for .rc files.
* NEWS: Updated.
2001-09-22 14:20:17 +00:00
Albert Chin-A-Young
bddba8aeda * libtool.m4: When setting archive_cmds for CC, don't
test for $GXX but for $GCC on HP-UX. Indentation fixes.
2001-09-22 13:24:21 +00:00
Gary V. Vaughan
a8f95641c3 * libtool.m4 (archive_cmds) [darwin1.[0-2]]: Darwin uses zsh-3.1.6
for /bin/sh, and that shell does not handle escaped quotes
properly yet.
Reported by Christopher Pfisterer <cp@chrisp.de>
2001-09-21 18:22:08 +00:00
Albert Chin
61afaf7fac * libtool.m4: Don't include main() when testing for command to
parse $NM output because some C++ compilers don't allow you to
take the address of main (e.g. HP-UX aCC).
2001-09-21 03:06:40 +00:00
Albert Chin
0715a0b505 * libtool.m4: Some uses of $GXX were unquoted, but GXX is either
NULL or yes.  Use "$GXX".
2001-09-21 02:40:47 +00:00
Gary V. Vaughan
faba8a2e8f * libtool.m4: No need to undefine([symbols]), proper quotation is
enough.
2001-09-11 00:22:48 +00:00
Gary V. Vaughan
4a57948985 * libtool.m4: CVS Autoconf guarantees a decent default IFS, so
there is no need for us to preset it anymore.
Be careful not to set IFS="${IFS}$PATH_SEPARATOR" for PATH
splitting, otherwise spaces in directory names will be lost.
Use $PATH_SEPARATOR... don't rely on $ac_path_separator, which was
an autoconf internal until just now, when it disappeared!
* ltmain.in: Default IFS once, at the start.
Reported by Akim Demaille <akim@epita.fr>
2001-09-10 23:33:26 +00:00
Brad
cef1f6940a * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Missed an instance of
Autoconf square bracket quoting style normalisation.
2001-09-10 22:41:02 +00:00
Gary V. Vaughan
fbdd982f56 * libtool.m4: Use Autoconf square bracket quoting style
consistently throughout.
2001-09-09 17:11:24 +00:00
Gary V. Vaughan
eecf26bd2a * libtool.m4 (archive_cmds, archive_expsym_cmds) [solaris*]: Revert
my 2001-09-06 patch.
(no_undefined_flag)i [solaris*]: Revert Alexandre's 2001-04-11 patch.
2001-09-08 03:01:36 +00:00
Gary V. Vaughan
144aeca1ee * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [solaris*]: Typo. s/GXX/GCC/. 2001-09-06 21:58:14 +00:00
Gary V. Vaughan
45b41fe058 * libtool.m4 (archive_cmds, archive_expsym_cmds) [solaris*]: Changing
no_undefined_flag from `-z text' to `-z defs' (see entry below at
2001-04-11  Alexandre Oliva  <aoliva@redhat.com>) has a problem.
when linking a shared library with gcc calling /usr/ccs/bin/ld (eg.
the gcc supplied with Solaris 8 companion CD), using the flag
-no-undefined, shared library linking will always fail because of
the unresolved symbols from libgcc.a.  Consequently we have to
provide a path to libgcc.a when linking shared libraries in
conjunction with -no-undefined!
2001-09-06 21:54:16 +00:00
Gary V. Vaughan
bb480f7c43 From Daniel Johnson <danielj7@mac.com>:
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [darwin*]: Move from GNU
ld section to non-GNU ld section.
2001-09-06 21:17:28 +00:00
Brad
156dd0b807 * libtool.m4 [openbsd*]: More improvements to the OpenBSD port. 2001-09-02 23:32:13 +00:00
Gary V. Vaughan
b1715d0088 From Albert Chin <china@thewrittenword.com>:
* libtool.m4 (_LT_AC_LANG_C_CONFIG) [aix4*]: Be careful with
shared namespaces for static and shared libs.
(AC_LIBTOOL_DLOPEN_SELF): If all else fails, try dld_link from GNU
DLD.
2001-09-02 23:00:44 +00:00
Christopher Pfisterer
2ca59ec1b1 * libtool.m4, ltmain.in: Linker flag and version numbering fixes
for darwin.
2001-09-02 22:07:38 +00:00
Robert Boehne
b9f6feb80b * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) Fixed a problem
with export_symbols_cmds not being set for CXX tags, and
not being properly set for any tag under AIX/Power.
2001-08-31 16:59:56 +00:00
Ossama Othman
354927a468 * libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG): Corrected and improved
error message that is displayed when there was a problem
  compiling the C++ test program.  It still mentioned the now
  non-existent `ltcf-cxx.sh' file.

* doc/libtool.texi (LTDL_SET_PRELOADED_SYMBOLS): Removed
  parentheses at end of starting "defmac" line, as pointed out by
  makeinfo.
2001-08-19 20:20:25 +00:00
Gary V. Vaughan
15d4e43c85 From Brad <brad@comstyle.com>:
libtool.m4 (deplibs_check_method) [aix*]: Removed redundant setting
of this variable.
2001-08-06 17:52:37 +00:00
Tim Van Holder
793c5cf5df * libtool.m4 (_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR): Remove.
(_LT_AC_PROG_ECHO_BACKSLASH): Use $ac_path_separator
instead of $PATH_SEPARATOR.
(AC_LIBTOOL_SYS_DYNAMIC_LINKER): Ditto.
(_LT_AC_TAGCONFIG): Ditto.
(AC_ENABLE_SHARED): Ditto.
(AC_ENABLE_STATIC): Ditto.
(AC_ENABLE_FAST_INSTALL): Ditto.
(AC_PATH_TOOL_PREFIX): Ditto.
(AC_PATH_MAGIC): Ditto.
(AC_PROG_LD): Ditto.
(AC_PROG_NM): Ditto.
* ltdl.m4 (AC_LTDL_SYSSEARCHPATH): Ditto.
2001-08-05 12:20:45 +00:00