Skip to Main Content
Autotools, 2nd Edition
book

Autotools, 2nd Edition

by John Calcote
November 2019
Intermediate to advanced content levelIntermediate to advanced
584 pages
17h 16m
English
No Starch Press
Content preview from Autotools, 2nd Edition

10FINDING BUILD DEPENDENCIES WITH PKG-CONFIG

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.—Douglas Adams, The Hitchhiker’s Guide to the Galaxy

Image

Let’s say your project depends on a library called stpl—some third-party library. How can your build system determine where libstpl.so is installed on an end user’s system? Where are stpl’s header files to be found? Do you simply assume /usr/lib and /usr/include? This is effectively what Autoconf does if you don’t tell it to look elsewhere, and for many packages perhaps that’s fine—it’s a common convention to install ...

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.
Start your free trial

You might also like

Embedded Linux Development using Yocto Projects - Second Edition

Embedded Linux Development using Yocto Projects - Second Edition

Otavio Salvador, Daiane Angolini
Bare Metal C

Bare Metal C

Steve Oualline
GNU Autoconf, Automake, and Libtool

GNU Autoconf, Automake, and Libtool

Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor

Publisher Resources

ISBN: 9781098122577