How to tell Automake to build a dynamic module which is not to be installed?
pkglib_LTLIBRARIES = mywrapper.la
mywrapper_la_LDFLAGS = -no-undefined -module -avoid-version
causes mywrapper.so to be installed to pkglibdir.
noinst_LTLIBRARIES = mywrapper.la
mywrapper_la_LDFLAGS = -no-undefined -module -avoid-version
causes static convenience library to be built instead.
The dynamic module in question is only used to run a test suite, and hence is not to be distributed.
I had the same problem. This is what I did, including the peeved comment to myself for future reference: