Aria Stewart (aredridel) wrote,
Aria Stewart
aredridel

Idea: migrating autotools into a pure gnu-make system

What if autoconf could be replaced by moving the configuration steps into makefiles, rather than vice-versa?

File paths and library lists can already be handled nicely with systems like pkg-config, with the only requirement that the pkg-config tool be in the path.

Why not move feature-detection and other configure sort of tasks into makefiles too?

A library of makefile pieces could be built that represent various autoconf tests, stored in a central directory like /usr/share/pkgconfig, ready for inclusion into GNUmakefiles. Rules might look like this:

include $(shell pkg-config gnuconf-make --variable=MAKEFILE)
all:	check-configuration

PKGCONFIG_PACKAGES=gtk2 atk lua-5.0.0
check-configuration: check-c-compiler check-cpp check-ld my-custom-check check-pkgconfig-packages

my-custom-check:
	do something here to check some part of the build
Tags: geek
Subscribe

  • (no subject)

    You do occasionally visit Boston Public Library, yes? If not, get on it! You were raised in and on libraries. They are in your blood! You…

  • (no subject)

    "I had never been in a room of people who were going to say 'yes' to me before." My friend and I crammed into a rush hour crowded train…

  • Recipe: Storm in the Garden

    Recipe: Storm in the Garden Ingredients 10 ml lavender vodka 10 ml orange vodka 10 ml hibiscus vodka 200 ml ginger ale ice…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 5 comments