GNU Autoconf, Automake, and Libtool
by Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor
19.1. A Module-Loading Subsystem
As you saw in Chapter 17, "Using GNU libltdl," I need to put an invocation of the macro 'AC_LIBTOOL_DLOPEN' just before 'AC_PROG_LIBTOOL', in the file 'configure.in'. But, as well as being able to use libtoolize --ltdl, which adds libltdl in a subdirectory with its own subconfigure, you can also manually copy just the ltdl source files into your project[1] , and use AC_LIB_LTDL in your existing 'configure.in'. At the time of writing, this is still a very new and (as yet) undocumented feature, with a few kinks that need to be ironed out. In any case, you probably should not use this method to add 'ltdl.lo' to a C++ library, because 'ltdl.c' is written in C. If you do want to use libltdl with a C++ library, things ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access