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 ...

Get GNU Autoconf, Automake, and Libtool now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.