Command Substitution in AC_ARG_WITH Help Strings

2005-07-31 Thread Keith Marshall
Hello, I would like to implement a configure option which would have the effect of AC_DEFUN([MY_LANGUAGE_SET], [AC_ARG_WITH([languages], AS_HELP_STRING([--with-languages=LIST], [install language files in LIST, a comma separated subset of '$1']), [languages=$withval], [languages=en])]) MY_LANGUAG

Re: Command Substitution in AC_ARG_WITH Help Strings

2005-07-31 Thread Harlan Stenn
What about using GNU AutoGen and having it spit out an updated configure.ac whenever your template changes? I admit I did not carefully read your note so this may not work, but form my quick read it seems a reasonable choice. H ___ Autoconf mailing li

Re: Command Substitution in AC_ARG_WITH Help Strings

2005-07-31 Thread Andreas Schwab
Keith Marshall <[EMAIL PROTECTED]> writes: > Hello, > > I would like to implement a configure option which would have the effect of > > AC_DEFUN([MY_LANGUAGE_SET], > [AC_ARG_WITH([languages], > AS_HELP_STRING([--with-languages=LIST], > [install language files in LIST, a comma separated subset of '

Re: Command Substitution in AC_ARG_WITH Help Strings

2005-07-31 Thread Keith Marshall
On Sunday 31 July 2005 9:32 pm, Harlan Stenn wrote: > What about using GNU AutoGen and having it spit out an updated > configure.ac whenever your template changes? I considered this, but it brings to mind associations of sledge hammers and cracking nuts, to say nothing of yet another complex tool

Re: Command Substitution in AC_ARG_WITH Help Strings

2005-07-31 Thread Keith Marshall
On Sunday 31 July 2005 10:49 pm, Andreas Schwab wrote: > > MY_LANGUAGE_SET([`cd lang; echo ?? | tr " " ,`]) > > > > and have the result of the command substitution > > > >    `cd lang; echo ?? | tr " " ,` > > > > appear in the `configure --help' output. > > This won't do the right thing if configur

Re: Command Substitution in AC_ARG_WITH Help Strings

2005-07-31 Thread Harlan Stenn
Yeah, autogen has a lot of features and capabilities. The thing is that it's pretty simple if all you want to do is some template stuff. I'm in the middle of converting the NTP codebase to autogen, mostly because I want more sane command-line processing (AutoOpts) and the ability to start generat