Autotools A Practitioner's Guide To Autoconf, Automake and Libtool
Autotools A Practitioner's Guide To Autoconf, Automake and Libtool
Autotools: a
practitioner's
guide to
Autoconf,
Automake and
Libtool
BY JOHN CALCOTE IN
AUTOTOOLS_A_GUIDE_TO_AUTOCONF_AUTOMAKE_LIBTOOL
5/8/2008 PERMALINK
TAGS: FREE-SOFTWARE CROSS-PLATFORM GNU DEVELOPMENT FOSS
MAKE AUTOTOOLS AUTOCONF AUTOMAKE LIBTOOL
1 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
2 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
3 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
Most packages are built using make�les, and the make utility
is as pervasive a tool as anything else that's available. It's
very easy to type make --but that's not the problem. The
problem crops up when the package doesn't build
successfully, because of some unanticipated difference
between the user's system and the developer's system.
4 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
5 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
Then study open source and free software packages that use
the Autotools. See what other experts have done. Learning
by example is an excellent way to begin to retain the
information you've read. Finally, instrument some of your
own projects with the Autotools. Doing is by far the best way
to learn. The initial reading will reduce the frustration of this
exercise to something bearable.
6 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
I've been in this industry for 25 years, and I've worked with
free software for quite some time now. I've learned a lot
about free software maintenance and development--most of
it, unfortunately, by trial and error. Had there been other
books on the topic, I would have snatched them all up
immediately, rather than spend hours--even days
sometimes--trying to get the Autotools to do something I
could have done in a make�le in a few minutes.
7 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
few years ago. His authors wouldn't �nish the project, and
the publisher's market analysis indicated that there was very
little interest in the book.
8 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
The biggest gripe I have with the Goat Book is the same gripe
I have with the GNU manuals themselves. I'm talking about
the shear volume of information that is assumed to be
understood by the reader. The Goat Book is written in a very
non-linear fashion, so it's di�cult to learn anything from it. It's
a great reference, but a terrible tutorial. Perhaps the authors
were targeting an audience that had already graduated to
more advanced topics. In either case, the Goat Book, while
being very complete from a content perspective, is de�nitely
not a great learning resource for the beginner.
9 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
Let me give you another analogy: I'd been away from math
classes for about three years when I took my �rst college
calculus course. I struggled the entire semester with little
progress. I understood the theory, but I had trouble with the
homework. I just didn't have the background I needed. So the
next semester, I took college algebra and trigonometry as
half-semester classes each ("on the block", to use the
vernacular). At the end of that semester I tried calculus
again. This time I did very well--�nishing the class with a
solid A grade. What was missing the �rst time? Just basic
math skills. You'd think it wouldn't have made that much
difference, but it really does.
10 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
>>> If I do this:
>>>
>>> AC_CHECK_FUNC(
>>> [chokeme],
>>> [],
>>> []
>>> )
>>>
>>>
>>> if
>>> :
>>> else
>>>
>>> fi
>>>
11 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
>>> with:
>>>
>>> my part?
>> argument.
12 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
column 1.
13 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
14 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
15 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
sense to you.
16 of 17 10/11/21, 18:06
Autotools: a practitioner's guide to Au... http://freesoftwaremagazine.com/artic...
you.
License
Verbatim copying and distribution of this entire article
are permitted worldwide, without royalty, in any
medium, provided this notice is preserved.
17 of 17 10/11/21, 18:06