Stefano Sabatini <[EMAIL PROTECTED]> writes:

> Hi all autoconfers,
>
> I have a package managed by SVN, and I would like to assign the
> AC_PACKAGE_VERSION using the current SVN version number.
>
> So I hacked up this in configure.in:
>
> SVN_VERSION=`./version.sh`
>
> AC_INIT(my-fine-package, $SVN_VERSION)

AC_INIT(my-fine-package, m4_esyscmd([./version.sh | tr -d '\n']))

Note that you need to manually remove the final newline, unlike command
substitutions m4_esyscmd does not do that for you.

Andreas.

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


_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to