GNU Autoconf, Automake, and Libtool
by Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor
11.3. Installing Header Files
Why Can't I Install 'config.h'?
One of the more difficult problems with GNU Autotools–driven projects is that each of them depends on 'config.h' (or its equivalent) and the project-specific symbols that it defines. The purpose of this file is to #include it from all the project source files. The preprocessor can then tailor the code in these files to the target environment.
It is often difficult and sometimes impossible to not introduce a dependency on 'config.h' from one of the project's installable header files. It would be nice if you could just install the generated 'config.h', but even if you name it carefully or install it to a subdirectory to avoid filename problems, the macros it defines will clash with ...
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