GNU Autotools cocooning procedure - verified works kubuntu Linux

1 month ago
21

This is a quick how to for making one autotools project act as a cocoon to make a new autotools

The GNU Autotools Cocooning Procedure
DRE 2025

0. Open a FRESH BASH SHELL - no side effects from old runs

1. Find a working GNU autotools project.

2. Make a distribution with make dist-bzip2.

3. Copy libdistribution-0.1.tar.bz2 (OR WHATEVER IT'S NAME IS) to an empty folder.

4. Change to folder

5. Untar the archive.

6. Delete ALL GNU secondary files and the original .c .h .cpp .hpp etc. files.
rm -f aclocal.m4 config.guess config.sub depcomp m4/* compile

DO NOT RUN AUTORECONF ACLOCAL AUTOMAKE OR ANY OTHER SCRIPT!!!!

7. Copy overwrite the Configure.ac and Makefile.am into or copy new contents into the old.

8. Copy over your new source files and headers etc. New dependencies will be tracked.

9. Now you have a working system with a brand new set of dependencies.

10. NOW run autoreconf -fvi

11. Then ./configure.

12. TA DA!

VOILA MOTHERFUCKERS!!!
APART FROM AUTOCONF BUG

HEY AUTOCONF ASSHOLES !!!
YOU VIOLATE UNIX DESIGN PHILOSOPHY
WITH TERRIBLE FAIL LOUDLY ACTIONS\
DUMBASSES!

ERIC SCOTT RAYMOND
UNIX DESIGN PHILOSOPHY
THE CATHEDRAL AND THE BAZAAR
THE BAZAAR WON MOTHER FUCKER BILL GATES
MAKE DOX WORKS MOFOS

Autoconf summary: https://en.wikipedia.org/wiki/Autoconf

LATER

Loading 1 comment...