./configure: Choose data file

2014-08-13 Thread fr33domlover
Hello, I'm writing a C/C++ library and using the GNU build system a.k.a autotools. I'm working on the part which generares an API reference manual in HTML format using Doxygen. By default I pass my own CSS file to doxygen, which comes from the source repo, but I'd like to make it easy to try and u

Re: ./configure: Choose data file

2014-08-13 Thread Eric Blake
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 th

Re: ./configure: Choose data file

2014-08-13 Thread fr33domlover
On 2014-08-13 Eric Blake 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() i

Re: ./configure: Choose data file

2014-08-13 Thread Eric Blake
On 08/13/2014 10:21 AM, fr33domlover wrote: >> 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 us

Re: ./configure: Choose data file

2014-08-13 Thread fr33domlover
On 2014-08-13 Eric Blake wrote: > > This solution is a common usage and fits within the terminology - your > "package" is the alternative css files, and the default is to build > without the alternative css files. Don't worry about it. > Great :-) Thank you very much! -- fr33 signature.asc