[Top][All Lists]

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

Re: Command Substitution in AC_ARG_WITH Help Strings

From: Andreas Schwab
Subject: Re: Command Substitution in AC_ARG_WITH Help Strings
Date: Sun, 31 Jul 2005 23:49:49 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

Keith Marshall <address@hidden> writes:

> Hello,
> I would like to implement a configure option which would have the effect of
> [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_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 configure is executed outside the source
directory (for buiding in a separate directory).

> Given these limitations, can anyone suggest a better mechanism for achieving 
> this objective?

Use esyscmd to interpolate the output of the command at configure creation


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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