June 28, 2007

Forum question: Controlling specialized prefixes in Autoconf?

Author: Joe 'Zonker' Brockmeier

Over in the Linux.com Forums, James Buchwald asks if there's any way to override default directories using Autoconf.

I've been working on a few of my own open source applications for Linux. One of the programs is a server with a large number of files that need to be in a specific directory structure. However, when I use autoconf (and automake) with my program, it allows the user to change the individual datadir, bindir, etc.

I have two questions regarding this. One, what is the easiest way to override these with a default value? And second, is there any way to disable the --bindir=, --datadir=, etc.?

If you know the answer, or if you have a question of your own, head over to our forums and speak up.

Category:

  • Programming
Click Here!