Commit Graph

232 Commits

Author SHA1 Message Date
Bruno Haible
facc2c547a * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) <postinstall_cmds>
[cygwin,mingw,pw32]: Make DLL executable after installing it.
2005-07-08 14:59:59 +00:00
Thorsten Glaser
81dbd5c8bf * m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Quieten configure
output for corner cases on some BSDs.
(LT_CMD_MAX_LEN): Another comment cleanup.
2005-07-03 18:15:07 +00:00
Thorsten Glaser
782ffea592 * config/ltmain.m4sh (func_extract_archives, func_mode_install),
m4/libtool.m4 (_LT_SETUP, _LT_SYS_DYNAMIC_LINKER, LT_PATH_LD)
(_LT_PATH_LD_GNU, _LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG):
Comment language, indentation, and backquote cleanup.
* THANKS: Updated.
2005-07-03 16:55:50 +00:00
Ralf Wildenhues
d3f2c0f84d * config/ltmain.m4sh (func_mode_compile, func_mode_link),
m4/libtool.m4 (_LT_PROG_ECHO_BACKSLASH, _LT_ENABLE_LOCK):
Remove some unnecessary quotes.
2005-07-02 10:18:28 +00:00
Stepan Kasal
03590110e7 * clcommit.m4sh: "grep|sed" can be replaced by mere "sed".
* m4/libtool.m4 (_LT_LIBTOOL_TAGS): Remove unnnecessary "[]".
* m4/lt~obsolete.m4: Use m4_ifndef.
2005-06-29 08:23:36 +00:00
Stepan Kasal
565e361593 * m4/ltsugar.m4 (lt_combine, _lt_combine): Fix default separator. 2005-06-27 14:54:09 +00:00
Stepan Kasal
f923ab03b5 * m4/ltoptions.m4 (_LT_UNLESS_OPTIONS, _LT_SET_OPTIONS): Replace
AC_FOREACH by a combination of m4_foreach/m4_split/m4_normalize.
2005-06-27 12:27:51 +00:00
Ralf Wildenhues
c100d41a93 * m4/ltoptions.m4 (_LT_SET_OPTIONS): Remove unnecessary workaround for
CVS Automake bug (fixed).  Reported by Stepan Kasal <kasal@ucw.cz>.
2005-06-27 10:06:31 +00:00
Ralf Wildenhues
4464ebcb99 * m4/libtool.m4 (_LT_COMPILER_BOILERPLATE, _LT_LINKER_BOILERPLATE):
New macros: save warnings and boilerplate of simple compile/link tests.
(_LT_LANG_C_CONFIG, _LT_LANG_CXX_CONFIG, _LT_LANG_F77_CONFIG,
_LT_LANG_GCJ_CONFIG, _LT_LANG_RC_CONFIG): Call.
(_LT_COMPILER_OPTION, _LT_LINKER_OPTION, _LT_COMPILER_C_O, ):
Fail only if nonempty warnings different from default compile/link.
2005-06-18 16:49:52 +00:00
Ralf Wildenhues
3bd31694ac * m4/ltsugar.m4 (lt_car, lt_cdr): New macros, clones of m4_car/m4_cdr
with the fixed semantics of Autoconf-59c CVS, in order to work with
2.59.  (lt_combine): Use it.
2005-06-17 12:42:34 +00:00
Ralf Menzel
151f807f3d * m4/ltoptions.m4 (_LT_SET_OPTIONS): Loop options only if
nonempty.
* m4/ltsugar.m4 (lt_combine): Don't test against empty quotes,
test against empty arg.  Fixes infinite m4 loop with CVS Autoconf.
2005-06-11 11:11:45 +00:00
Ralf Wildenhues
a797e82eb9 * m4/libtool.m4 (_LT_COMPILER_OPTION, _LT_LINKER_OPTION): No
need for $ECHO here.  Fix sed script syntax to be portable.
This should now put the pic-flag right after the last $*FLAGS
variable again, if any.  Necessary for Fortran AC_FC_SRCEXT.
2005-06-11 11:01:59 +00:00
Ralf Wildenhues
ed08208024 * m4/libtool.m4 (_LT_CONFIG_COMMANDS): Remove long lines. 2005-06-09 17:10:32 +00:00
Ralf Wildenhues
6631f9a3fd * m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS,
_LT_LANG_CXX_CONFIG): PGI also has pgf95.  PGI static flag is
`-Bstatic'.  Remove harmless extra comma from whole_archive output.
2005-06-06 16:12:53 +00:00
Ralf Wildenhues
2ede6e2f27 * m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG) [ aix ]:
Fix wrong $ECHO use overlooked in 2005-04-27.  Simplify slightly.
2005-05-15 16:31:10 +00:00
Ralf Wildenhues
42898c05b3 * m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS,
_LT_LANG_CXX_CONFIG) [ linux ]: PGI:
Add $pic_flag to archive_cmds and archive_expsyms_cmds.
Bug reported against LAM by Troy Telford <ttelford@lnxi.com>.
2005-05-15 14:11:32 +00:00
Gary V. Vaughan
a262a3633a * libltdl/m4/ltdl.m4 (LT_WITH_LTDL): Propogate ltdl directory. 2005-05-06 17:39:59 +00:00
Ralf Wildenhues
f20477da8e Actually commit. 2005-04-29 08:54:10 +00:00
Ralf Wildenhues
5264845f3a * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: sed 3.02 does
not understand \t in regex.
Reported by Tim Van Holder <tim.vanholder@gmail.com>.
2005-04-27 11:51:50 +00:00
David Edelsohn
dcc7897d26 * m4/libtool.m4 (_LT_LINKER_SHLIBS): _LT_TAGDECL(file_list_spec).
* config/ltmain.m4sh (func_mode_link): Change $filelist to $output.
2005-04-25 16:25:14 +00:00
Ralf Wildenhues
a18e5a214c * m4/libtool.m4 (_LT_CC_BASENAME): Ignore `compile'. 2005-04-24 17:42:22 +00:00
Ralf Wildenhues
f77428feed * m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS) [solaris]:
Update wl for Sun Studio f77/f90/f95.  Fix whole_archive_flag_spec
for cc and f77/f90/f95 to prevent reordering in case we link with $CC.
2005-04-23 15:44:27 +00:00
Ralf Wildenhues
1cb88d57c6 * m4/libtool.m4: Audit use of echo vs $ECHO.
* TODO: Update.
Reported by Robert Ögren <lists@roboros.com> and others.
2005-04-23 14:19:17 +00:00
Gary Kumfert
c820b259f4 * m4/libtool.m4 (_LT_LANG_F77_CONFIG) [ aix4, aix5 ]:
Adjust logic to match the C case: Only disable static if not
on ia64 nor runtimelinking.
2005-04-23 08:14:10 +00:00
Gary V. Vaughan
94cc58be06 The FSF are moving offices today. Changed their contact address
in all files from `59 Temple Place, Suite 330, MA 02111-1307' to
`51 Franklin Street, Fifth Floor, MA 02110-1301'.
2005-04-22 10:10:31 +00:00
David Edelsohn
59031e0e9f * config/ltmain.m4sh (func_mode_link): If command exceeds
max_cmd_len and file_list_spec exists, write list of input files
to temporary file.
* m4/libtool.m4 (_LT_LINKER_SHLIBS, aix[45]): Define file_list_spec.
(_LT_LANG_CXX_CONFIG, aix[45]): Define file_list_spec.
2005-04-19 14:44:42 +00:00
Maciej W. Rozycki
4f54066116 * m4/libtool.m4 (_LT_LANG_GCJ_CONFIG): Add old_archive_cmds
definition.
2005-04-15 14:39:00 +00:00
Ralf Wildenhues
5b9fd5f43a * m4/libtool.m4 (_LT_CC_BASENAME): New macro to figure out $cc_basename.
Skip ccache, distcc, purify, cmdline options, `$host_alias-' prefix.
(_LT_SETUP, _LT_LANG_CXX_CONFIG, _LT_LANG_F77_CONFIG,
_LT_LANG_GCJ_CONFIG, _LT_LANG_RC_CONFIG): Use.
* NEWS, TODO: Update.
2005-04-15 13:36:56 +00:00
Ralf Wildenhues
5fbecdee16 * config/general.m4sh, libtool.m4 (_LT_SETUP), tests/defs.m4sh,
tests/functests.at: Fix definition of $Xsed.
2005-04-12 17:28:48 +00:00
Ralf Wildenhues
652709d688 Improved Portland support: prelinking of C++ templates and whole_archive.
* m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS) [ linux ]:
Reinstate formatted whole_archive_flag_spec for PGI compilers.
* config/ltmain.m4sh (func_mode_link), m4/libtool.m4 (_LT_LINKER_SHLIBS):
New tag prelink_cmds, to be executed before linking a program.
(_LT_LANG_CXX_CONFIG) [ linux ]: Use for pgCC.
(_LT_COMPILER_C_O): conftest might be nonempty, clean up more thoroughly.
2005-04-07 17:58:26 +00:00
Ralf Wildenhues
ae669866bd * m4/libtool.m4 (_LT_CONFIG_COMMANDS): Only call sed if
necessary while quoting all libtool variables.
Reported by Robert Ögren <lists@roboros.com>.
2005-04-07 06:29:55 +00:00
Gary V. Vaughan
0aa2e304c6 Getting the value of ltdldatafiles from a submake was not
portable, and had problems with GNU make-3.80 at least.  This
changeset pulls the installation rules for libtoolize's copy of
the libltdl sources out of libltdl/Makefile.am so that
ltdldatafiles is defined in the same Makefile that uses it.  Also,
this makes a start at cleaning up libltdl/Makefile.am so that it
is useful in a package that uses `libtoolize --ltdl':

* libltdl/loaders/Makefile.am: Removed entirely.
* libltdl/Makefile.am (dlopen.la, dld_link.la, dyld.la)
(load_add_on.la, loadlibrary.la, shl_load.la): All built from here
now that the loaders submake has gone.
(show-ltdldatafiles): Removed.  No longer required.
(ltdldatadir, ltdldatafiles, install-local): Moved from here...
* Makefile.am (ltdldatadir, ltdldatafiles, install-local): ..to
here.
(libtoolize): Substitute $(ltdldatafiles) directly without calling
make to get the value from libltdl/Makefile.
2005-04-04 12:12:25 +00:00
Mike Stump
d92270911a * m4/libtool.m4 (LT_CMD_MAX_LEN) [ netbsd, freebsd, openbsd,
darwin, dragonfly]: Use 3/4 of argmax, instead of 1/4.
2005-04-01 09:27:17 +00:00
Ralf Wildenhues
8637ab4420 * m4/libtool.m4 (_LT_LANG_GCJ_CONFIG, _LT_LANG_RC_CONFIG):
Set $cc_basename.
2005-03-28 09:32:59 +00:00
Ralf Wildenhues
1652028e3b * m4/libtool.m4, m4/ltdl.m4: Indentation and quoting cleanup. 2005-03-22 16:55:14 +00:00
Ralf Wildenhues
dcfa05980f * m4/libtool.m4 (_LT_LINKER_SHLIBS) [solaris]: Use ${wlarc}
and set to empty when using $LD for linking.  Fixes regression
introduced in 2004-11-17.
Reported by Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> and
Пухальский Юрий Андреевич <pooh@cryptopro.ru>.
2005-03-22 07:39:44 +00:00
Ralf Wildenhues
2803fc9eeb * m4/libtool.m4 (_LT_SETUP, _LT_LANG_CXX_CONFIG, * _LT_LANG_F77_CONFIG):
For matching compiler names: Pick only first word, allow leading white
space..
* tests/sh.test: ..and test for missing `*' at end of patterns.
2005-03-21 17:59:39 +00:00
Peter Ekberg
7d29c2d785 * m4/libtool.m4 (_LT_LINKER_SHLIBS) [ irix5, irix6, nonstopux ]:
Test if it is possible to use the -exports_file linker option on
irix with gcc, as the gcc specs file may include a -hidden_symbol
option that is clashing with the -exports_file option.
See this gcc bugzilla entry for further details:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15288
* THANKS: Update.
2005-03-20 07:15:21 +00:00
Peter O'Gorman
30e36fa5a9 * m4/libtool.m4: The compiler can be a program name with args, so
always check cc_basename against compiler name and a wildcard.
Also, drop unnecessary quotes in `case' argument.
2005-03-18 15:32:14 +00:00
Ralf Wildenhues
b4501c381d * config/general.m4sh: unconditionally set IFS, and set it
to the one true right sequence: space, tab, newline.
* m4/libtool.m4: remove IFS setting and as_* namespace infringement.
2005-03-16 17:27:35 +00:00
Ralf Wildenhues
dd9a6330c7 * m4/libtool.m4 (_LT_CONFIG): Reset IFS to fix failure with ash. 2005-03-16 10:07:36 +00:00
Ralf Wildenhues
285149dfbc * m4/libtool.m4 (_LT_COPYING): Update Copyright year. 2005-03-14 15:02:23 +00:00
Ralf Wildenhues
23c671d222 * m4/libtool.m4 (_LT_LINKER_SHLIBS) [linux]: Remove MAIN_
dependency when creating shared libraries with Portland pgf77.
2005-03-14 11:10:26 +00:00
Albert Chin-A-Young
eac1a34572 * m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
[irix*, osf*]: Output -update_registry information to
${output_objdir} directory, not ${objdir}. ${output_objdir}
will work when a project has a single Makefile and performs
builds in subdirectories. ${objdir} expects the source in
the current directory, breaking single-Makefile builds.
2005-03-08 16:24:38 +00:00
Gary V. Vaughan
ca2959fea1 * m4/libtool.m4 (_LT_LANG_CXX_CONFIG, _LT_COMPILER_PIC):
Fix some typos -- s/_LT_AC_TAGVAR/_LT_TAGVAR/g.
2005-02-25 17:46:50 +00:00
Peter O'Gorman
6a7510021b * m4/libtool.m4 (_LT_LINKER_SHLIBS): The Portland group's
compiler does not pass --whole-archive. Move gnu ld check for
the flag to the top so it can be overridden.
(_LT_LANG_CXX_CONFIG, _LT_COMPILER_PIC): Unset
whole_archive_flag_spec for the portland group's c++ compiler too.
Reported by Jeff Squyres <jsquyres@lam-mpi.org>
2005-02-25 14:19:58 +00:00
Ralf Wildenhues
1068a87435 * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
[ pw32, freebsd3.[01], freebsdelf3.[01] ]
(_LT_LINKER_SHLIBS) [ linux with GNU ld < 2.11, aix4.[012]* ]
(_LT_LANG_CXX_CONFIG) [ aix4.[012]*, freebsd[12], solaris2.[0-5] ]
(_LT_LANG_GCJ_CONFIG): Fix [] quoting.  Should fix various spurious
failures.
2005-02-01 17:43:58 +00:00
Ralf Wildenhues
62fae08f57 * m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Unicos 9 sed rejects
empty parentheses as in 's/x()/1/'.
(_LT_COMPILER_PIC) [unicos*]: wl=-Wl,.
* tests/sh.test: Not all sed's like '/.*n.*/' (Unicos 9 sed
loops endlessly).
2005-01-31 17:30:47 +00:00
Ralf Wildenhues
94d4eb3a38 * m4/libtool.m4 (_LT_COMPILER_C_O): _LT_TAGDECL(lt_compiler_c_o),
not _LT_DECL, since this is tag-dependent.
2005-01-31 17:15:00 +00:00
Ralf Wildenhues
41a67fb432 * config/ltmain.m4sh, m4/libtool.m4: Change `( cmd ) 2>/dev/null' to
`{ cmd; } 2>/dev/null', when cmd has no side effects and might be a
builtin.  Note that it is unspecified whether cmd will run within a
subshell (e.g. Bourne shells) or within the current shell (most modern
shells).
2005-01-31 16:17:06 +00:00