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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.