autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ./configure: Choose data file


From: fr33domlover
Subject: Re: ./configure: Choose data file
Date: Wed, 13 Aug 2014 19:21:00 +0300

On 2014-08-13
Eric Blake <address@hidden> wrote:

> On 08/13/2014 05:54 AM, fr33domlover wrote:
> > What would be an appropriate way to offer such an option? Preferrably it
> > should appear in ./configure --help, but if not there must be some other
> > good place to let people know it exists.
> 
> AC_ARG_WITH() is probably the most-used solution for this, where you let
> the user supply a path name as the argument, and where the option will
> be documented in ./configure --help.
> 
> AC_ARG_WITH([css-files],
>  [AS_HELP_STRING([--with-css-files], [location of css files
>    to use with generated html])],
>  [ ... set your variable to the user's provided string ... ],
>  [ ... default your variable to your in-tree location ... ])
> 
> lets the end user do ./configure --with-css-files=/path/to/alternate
> 

This sounds good but I wasn't sure because the autoconf manual says that WITH
is for optional packages. I was worried using it for data files would be
confusing to the user. Should I worry, or is WITH a common/expected solution?
I'm making a reusable solution so I want it to be good :-)

-- fr33

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]