10.1. Integration with 'configure.in'

Declaring your use of libtool in the project's 'configure.in' is a simple matter of adding the 'AC_PROG_LIBTOOL' (or 'AM_PROG_LIBTOOL' if you have an older automake or libtool installation) somewhere near the top of the file. I always put it immediately after the other 'AC_PROG_…' macros. If you are converting an old project to use libtool, you also need to remove any calls to 'AC_PROG_RANLIB'. Because Libtool will be handling all the libraries, it decides whether to call ranlib as appropriate for the build environment.

Note

The code generated by 'AC_PROG_LIBTOOL' relies on the shell variable $top_builddir to hold the relative path to the directory that contains the configure script. If you are using Automake, ...

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.