Commit Graph

288 Commits

Author SHA1 Message Date
Ralf Wildenhues
60f1724476 * tests/tagtrace.test: Allow `$AUTOCONF' to contain arguments.
Skip if the running `autoconf' version is older than the one
used to bootstrap Libtool.
2005-10-27 13:17:05 +00:00
Gary V. Vaughan
41ffa5624b * libtoolize.m4sh: Always copy pkgconfig_files for --ltdl, incase
ltdl needs additional things not found by automake when looking at
the parent project configury.
* tests/libtoolize.at: Adjust.
2005-10-26 09:20:45 +00:00
Gary V. Vaughan
13cbbc4fe9 * tests/subproject.at: Move 'touch config.h.in' invocation. 2005-10-14 13:23:01 +00:00
Gary V. Vaughan
89eddeb5cf * tests/subproject.at: Removed 'touch config.h.in' workaround for
bug now fixed.
2005-10-14 12:31:03 +00:00
Gary V. Vaughan
6a6b5a0884 * tests/subproject.at (_LTDL_SETUP): Use pushdef/popdef to
simulate file-local scope.  Empty source file compilation is not
portable, so add minimal code to generated foo.c file.
2005-10-14 10:43:45 +00:00
Ralf Wildenhues
bb32a2aa50 * tests/testsuite.at (LT_AT_AUTOMAKE): New macro.
* tests/subproject.at: Use it.  Do not call `autoreconf' in
tests, since it will try to reconfigure `sub/ltdl', which
breaks `make check' during `distcheck' because of a readonly
source tree.
2005-10-11 16:51:50 +00:00
Ralf Wildenhues
8b1c9b9190 * tests/stresstest.at: Use `allow_undefined_flag' instead of
host_os setting.
2005-10-11 06:23:29 +00:00
Ralf Wildenhues
e6f894bd1c * tests/stresstest.at [ aix3, beos, os2 ]: Always use
`-no-undefined'.
2005-10-10 16:25:09 +00:00
Ralf Wildenhues
cefa1b074c * configure.ac (abs_top_builddir, abs_top_srcdir): always
substitute.
* Makefile.am (BUILDCHECK_ENVIRONMENT)
(INSTALLCHECK_ENVIRONMENT): New macros.  Set _lt_pkgdatadir,
LIBTOOL, LIBTOOLIZE accordingly, by using above, and
program_transform_name.
* tests/testsuite.at (TESTS_PREPARE): Do not set them anymore.
Set $unset.
(LT_AT_MAKE): Use to unset LIBTOOL and LIBTOOLIZE.
2005-10-07 08:52:10 +00:00
Gary V. Vaughan
37bff2141f * tests/subproject.at: Commit the right file this time. 2005-10-05 16:45:09 +00:00
Gary V. Vaughan
1b04e31422 * tests/subproject.at: Forgot to cvs add. 2005-10-05 15:04:50 +00:00
Gary V. Vaughan
c1b31f316c * tests/subproject.at: New tests for libltdl as a subproject with
its own configuration.
* tests/testsuite.at: Use it.
* Makefile.am (TESTSUITE_AT): Depend on it.
2005-10-05 15:02:54 +00:00
Ralf Wildenhues
9086d5c9fa * Makefile.am (BUILDCHECK_ENVIRONMENT)
(INSTALLCHECK_ENVIRONMENT): New macros.
(check-local, installcheck-local): Use them.
* tests/testsuite.at (PREPARE_TESTS): Extract host_alias, ECHO.
Set configure_options appropriately.
(LT_AT_CONFIGURE, LT_AT_AUTORECONF, LT_AT_MAKE): New macros.
(LT_AT_BOOTSTRAP): Use them.
* tests/am-subdir.at, tests/early-libtool.at,
tests/old-m4-iface.at, tests/standalone.at: Likewise.
* tests/link-order.test: Do not extract ECHO any more.
2005-10-05 08:58:19 +00:00
Ralf Wildenhues
96fe8ab8da * tests/old-m4-iface.at (Makefile.in): Do not reconfigure
libltdl directory.
2005-10-02 08:54:03 +00:00
Ralf Wildenhues
4ca867a96c * tests/deplibs-ident.at: New file with XFAIL test to expose
wrong multiple listing of a deplib on the command line.
* Makefile.am, tests/testsuite.at: Updated.
Reported by Brian Barrett <brbarret@open-mpi.org>.
2005-09-30 16:00:23 +00:00
Ralf Wildenhues
28a654e1c2 * tests/old-m4-iface.at: Define top_srcdir, work around current
ltdl.m4 bug.
2005-09-30 10:09:58 +00:00
Ralf Wildenhues
35f5001e2c * tests/old-m4-iface.at: Forgot to 'cvs add' this file. 2005-09-30 09:56:50 +00:00
Gary V. Vaughan
4732e6e6b0 * tests/libtoolize.at: Add a new test to catch a regression I
almost introduced with respect to copying macro files when
AC_CONFIG_MACRO_DIR is shared with libltdl subproject.
2005-09-30 01:13:38 +00:00
Gary V. Vaughan
2f89a87c91 * tests/old-m4-iface.at: Start of a new test series for m4
interface backwards compatibility.
* tests/testsuite.at: Use it.
(macrodir): Declare the location of uninstalled libtool m4 macros.
* Makefile.am (TESTSUITE_AT): Depend on it.
2005-09-30 00:46:52 +00:00
Tim Rice
9cea697ba3 * tests/early-libtool.at (Makefile.in): Set $(SHELL). 2005-09-29 18:00:06 +00:00
Tim Rice
121d473ead * tests/defs.m4sh, tests/testsuite.at (PREPARE_TESTS)
<AUTORECONF>: Allow variable override.
2005-09-27 06:48:22 +00:00
Ralf Wildenhues
369dc0d1a9 * tests/link-order.at [ aix* ]: skip path syntax grep. 2005-09-23 16:48:14 +00:00
Peter Ekberg
0278b137e1 * tests/link-order.test: Clean up the uninstalled libraries
before linking the test executables so that they don't pick
up the dlls from the current dir on Cygwin and MinGW.
2005-09-22 06:44:24 +00:00
Peter Ekberg
38599480fc * tests/testsuite.at (LT_AT_EXEC_CHECK): Make sure
that the exit status of the tested program is
propagated as the exit status of the expression
fed to AT_CHECK.
2005-09-16 08:33:24 +00:00
Peter Ekberg
072341693e * libltdl/config/ltmain.m4sh (func_generate_dlsyms):
Fix escape expression to actually escape relevant
characters from the following grep. Fix Cygwin and
MinGW to use the filtered symbol list when exporting
from self, and not the symbol filter.
* tests/stresstest.at: Export w8, not w8$
2005-09-13 07:28:14 +00:00
Ralf Wildenhues
2055f11ca7 Make tagdemo work smoothly with both pre- and ISO C++ compilers,
and remove all use of libstdc from other tests.

* tests/tagdemo/configure.ac (HAVE_NAMESPACES, HAVE_IOSTREAM):
New tests for ISO C++ features.  Reimplementation of similar
macros from the autoconf archive.
* tests/tagdemo/foo.cpp, tests/tagdemo/main.cpp: Adjusted.
* tests/am-subdir.at, tests/template.at: Do not use iostream.
2005-09-12 16:24:38 +00:00
Peter Ekberg
ff60e2f202 * tests/testsuite.at (host_os): Pull from `libtool --config'.
* tests/stresstest.at [ cygwin, mingw, pw32 ]: Use it to fix
setting of `-no-undefined'.
2005-09-12 12:48:38 +00:00
Ralf Wildenhues
ea0ebd6da1 * tests/early-libtool.at (config.status): Use EXEEXT
consistently.
Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
2005-09-08 07:17:58 +00:00
Ralf Wildenhues
9c08dbfa0e * tests/early-libtool.at: Fix goofed up make rules in
previous commit.
2005-08-26 13:54:04 +00:00
Ralf Wildenhues
d485025de4 * tests/inherited_flags.at: Weaken for MSVC.
* tests/early-libtool.at, tests/template.at: Fix for compiler
that do not understand '-c -o'.
2005-08-26 13:48:27 +00:00
Ralf Wildenhues
a305c3d9f4 * tests/standalone.at, tests/template.at: Do not compare
output because of EOL issues.  Resolve warnings, make cross-
compilation aware.
Reported by Peter Ekberg <peda@axentia.se>.
2005-08-26 10:00:18 +00:00
Peter Ekberg
bde34b94a5 * tests/standalone.at: (without autotools): Add
$(CFLAGS) to LTCOMPILE and LTLINK. Separate compiling
and linking. Remove compiling flags from link. Add
--tag. Add -no-undefined flag.
2005-08-25 13:39:54 +00:00
Ralf Wildenhues
7e6797e65d * tests/defs.m4sh (m4dir, auxdir, scripts): Fix for source tree
reorganization.
* tests/sh.test: Adjust.  Also barf on sed diagnostics so this
test will not fail again silently.
2005-08-24 13:39:51 +00:00
Ralf Wildenhues
9918d1b09c * tests/fcdemo/Makefile.am (suffix rules): Explicitly add
$(FCFLAGS_f90) so the tests can pass on AIX.
2005-08-24 11:11:39 +00:00
Gary V. Vaughan
6892320962 * test/standalone.at: New file. Forgot to cvs add on previous commit. 2005-08-23 01:52:07 +00:00
Gary V. Vaughan
757d7dc478 Reorganise the libtool tree to create a bootstrapped libltdl for
installation to the libtoolize master tree, so that libltdl is
useable even in the extreme case of when automake and autoconf are
not installed on the developers machine.  Part of this change
requires some duplication of rules between Makefile.am (which
builds libltdl for this distribution) and libltdl/Makefile.am
(which is used by projects that libltoolize --ltdl --copy), so
libtool now really does use a single toplevel Makefile.am, and we
generate libltdl/Makefile.am from that:

* m4, config: Moved from here...
* libltdl/m4, libltdl/config: ...to here, to reduce the amount of
kludging needed in bootstrap for autoreconf to run.
* tests/cdemo/Makefile.am, tests/demo/Makefile.am,
tests/depdemo/Makefile.am, tests/f77demo/Makefile.am,
tests/fcdemo/Makefile.am, tests/mdemo/Makefile.am,
tests/mdemo2/Makefile.am, tests/pdemo/Makefile.am,
tests/tagdemo/Makefile.am (ACLOCAL_AMFLAGS): Adjust to
compensate.
* tests/cdemo/configure.ac, tests/demo/configure.ac,
tests/depdemo/configure.ac, tests/f77demo/configure.ac,
tests/fcdemo/configure.ac, tests/mdemo/configure.ac,
tests/mdemo2/configure.ac, tests/pdemo/configure.ac,
tests/tagdemo/configure.ac (AC_CONFIG_AUX_DIR): Ditto.
* libltdl/m4/ltdl.m4: Increment serial number.
(LTDL_INIT): Accept an optional directory argument to prefix each
of the LD_DLLOADERS locations.  Default to empty for backwards
compatibility.
* Makefile.maint: Adjust to compensate.
* configure.ac (AC_CONFIG_AUX_DIR, AC_CONFIG_MACRO_DIR): Adjust.
(AC_CONFIG_LIBOBJ_DIR): Set here so that we can build LTLIBOBJS
from in a subdirectory from the amalgamated Makefile.am.
(AM_PROG_CC_C_O, AM_INIT_AUTOMAKE): Use subdir-objects.
(AC_CONFIG_FILES): Remove libltdl/Makefile.am.
* libltdl/Makefile.am: Removed from repository, and merged into
Makefile.am as we now generate it...
* Makefile.am (libltdl/Makefile.am): ...from here, by extracting
the merged rules, and tweaking paths to accomodate the difference
in directory from Makefile.am to libltdl/Makefile.am.
(nobase_dist_pkgdata_DATA): Automake generated installation rules
change timestamps of installed files, so renamed this...
(configauxfiles): ...to this...
(libtoolize): ...substitute it...
(install-data-local): ...install manually, preserving
timestamps...
(install-data-hook): ...and set execute bit as appropriate.
(uninstall-hook): Not forgetting to remove them at uninstall.
(libltdl/Makefile.in): New rule.  Called from...
* bootstrap: ...here to avoid relying on config.status at
bootstrap time.
(auxdir, m4dir): Extract from configure.ac for ease of future
maintenance.  Adjust all references.
(reconfdirs): Call autoreconf for libltdl too -- even
though we don't use it for the build, libltdl/configure and
friends are installed with `libtoolize --ltdl --copy'.
* libtoolize.m4sh: Add files from the installed config master tree
to libtoolize --ltdl project subdirectory.
Diagnose duplicated files when --ltdl is used in an autotooled
project.
It's perfectly fine to run `libtoolize --ltdl --copy' in a tree
that has no configure.ac or configure.in; we want libltdl to be
useful even to projects that don't use autotools themselves.
(libtoolize_flags): Removed.  Changed all callers.
(func_massage_pkgconfig_files): New function.
* tests/standalone.at: New tests for using libltdl without
supporting configury in the parent project.
* tests/testsuite.at: Run them!
* NEWS: Updated.
2005-08-23 01:49:37 +00:00
Gary V. Vaughan
499773445e * tests/template.at [darwin]: Some of these tests result in
unresolved symbols on darwin, so don't run those test on that
host!
2005-08-21 18:47:08 +00:00
Ralf Wildenhues
2222a9d9aa * m4/libtool.m4 (LT_OUTPUT): New macro to generate
libtool before config.status.
(_LT_CONFIG_COMMANDS): If LT_OUTPUT has been invoked, then
generate code in config.status to call config.lt instead of
generating libtool directly.
* doc/libtool.texi (LT_INIT): Document LT_OUTPUT.
* tests/early-libtool.at: New test.
* Makefile.am (TESTSUITE_AT): Updated.
* tests/testsuite.at: Updated.  Define defaults for $ACLOCAL,
$AUTOCONF.
2005-08-18 17:07:17 +00:00
Ralf Wildenhues
d16f03d0fd * tests/inherited_flags.at: Store intermediate libtool output
for better debugging.
2005-08-13 07:26:52 +00:00
Ralf Wildenhues
1ef6cdef83 * tests/link-order.at: Add -no-undefined to LDFLAGS. 2005-08-13 06:57:39 +00:00
Ralf Wildenhues
7bd533a474 * tests/convenience.at, tests/template.at: Change suffix of C++
files to .cpp, for compatibility with MSVC.
Reported by Peter Ekberg <peda@axentia.se>.
2005-08-13 06:45:36 +00:00
Ralf Wildenhues
87f03ead79 * tests/defs.m4sh (func_configure): Rename to ..
(func_configure_nofail): this, call from old.
* tests/fcdemo-conf.test, tests/fcdemo-shared.test,
tests/fcdemo-static.test: Use.  Do not fail gratuitously but
SKIP on compilers that look like they could be Fortran 77-only.
Reported by Patrick Welche <prlw1@newn.cam.ac.uk>.
2005-08-12 20:19:40 +00:00
Ralf Wildenhues
a1b595f6ab * m4/libtool.m4 (_LT_PROG_FC, _LT_LANG_FC_CONFIG): New macros
for modern Fortran.
(LT_LANG, _LT_LANG_DEFAULT_CONFIG, _LT_SYS_DYNAMIC_LINKER,
_LT_SYS_HIDDEN_LIBDEPS): Adjusted.
* tests/fcdemo-conf.test, tests/fcdemo-exec.test,
tests/fcdemo-make.test, tests/fcdemo-shared.test,
tests/fcdemo-static.test, tests/fcdemo/Makefile.am, tests/fcdemo/README,
tests/fcdemo/configure.ac, tests/fcdemo/cprogram.c, tests/fcdemo/foo.h,
tests/fcdemo/fooc.c, tests/fcdemo/foof.f90, tests/fcdemo/foof2.f90,
tests/fcdemo/foof3.f90, tests/fcdemo/fprogram.f90: New tests for Fortran.
* tests/convenience.at: Extended.
* Makefile.am, configure.ac: Adjusted.
* NEWS: Updated.
2005-08-08 09:23:57 +00:00
Peter Ekberg
26b55149ee * tests/mdemo-dryrun.test: ls -l in MSYS sometimes shows year,
not time, for really fresh files. Add sleep 1 calls at
strategic places. Makes the test pass for MinGW.
2005-07-28 10:55:35 +00:00
Peter Ekberg
764c665e7d * tests/demo-noinst-link.test: $make is empty on MSYS, replace
with $MAKE. Makes the test pass for MinGW.
2005-07-28 10:42:45 +00:00
Peter O'Gorman
14c1c16bee * tests/inherited_flags.at: Use -no-undefined.
Reported by Chris Oxenreider <oxenreid@state.net>
2005-07-02 14:44:20 +00:00
Ralf Wildenhues
5801b0f4df * tests/convenience.at <GCJ>: Fix java test.
Reported by Eric Blake <ericblake@comcast.net>.
2005-07-02 09:58:59 +00:00
Gary V. Vaughan
ef4442da9b Revert the parallel installation changes from November last year:
* libtoolize.m4sh (pkgdatadir, aclocaldir): Substituted from
configure.
(func_copy_all_from_path): Removed.  No longer used.
(func_copy_some_files): Simplify now that nothing is copied from a
list of possible directories now.
(func_scan_files): Remove directory readability check...
(func_nonemptydir_p): ...in favour of a dedicated sanity check
function called from the main body.
(_lt_pkgvdatadir): Set pkgdatadir and aclocaldir appropriately if
this is in the environment.
* configure.ac: Tests for `ln' removed.
(APIVERSION): Removed.
* Makefile.am (pkgvdatadir, nobase_dist_pkgvdata_DATA)
(nobase_pkgvdata_DATA): Renamed to...
(pkgdatadir, nobase_dist_pkgdata_DATA, aclocalfiles): ...these
respectively.
(edit): Adjust for new variable names.
(install-data-local): Don't bother to remove old macro files that
will be overwritten by the installation, and perform a manual
installation of $(aclocalfiles) to preserve timestamps.
(install-exec-hook): Removed.  No need to make versioned links.
(uninstall-hook): No need to remove versioned links, but now we
need to manually remove the manually installed $(aclocalfiles).
* doc/libtool.texi: Remove bogus notes about setting
ACLOCAL_AMFLAGS for versioned libtool installations.
* NEWS: Remove parallel installation item.
2005-04-30 09:30:14 +00:00
Ralf Wildenhues
892ec25015 * tests/convenience.at: Actually add. 2005-04-27 18:19:07 +00:00
Ralf Wildenhues
1e579accc0 * tests/convenience.at: New. Test convenience archives.
* Makefile.am, tests/testsuite.at: Adjust.
* tests/testsuite.at: Reorder tests.  Suspend AT_TESTED.
(PREPARE_TESTS): Define EGREP, host, build, LIBTOOL.
(LT_AT_BOOTSTRAP): Fail if autoreconf fails.
(LT_AT_EXEC_CHECK): New macro for execution of $build binaries.
(LT_AT_TAG): New macro to test tag availability or skip test.
* tests/am-subdir.at, tests/duplicate_members.at, tests/inherited_flags.at,
tests/link-order.at, tests/stresstest.at, tests/template.at:
Adjust.  Use LT_AT_TAG, LT_AT_EXEC_CHECK, AT_KEYWORDS.
Use compiler/linker flags consistently.
* tests/link-order.at: Fix use of AT_DATA, bogus redirection
inside AT_CHECK.
* tests/stresstest.at: Do not use wildcards/regex in symbol files,
they are not portable.  Use -no-undefined on win32.  Fix to ignore
compile/link warnings.
2005-04-27 18:18:10 +00:00