autoconf-patches
[Top][All Lists]
Advanced

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

Re: new autotest macro: AT_DATA_UNQUOTED


From: Gary V. Vaughan
Subject: Re: new autotest macro: AT_DATA_UNQUOTED
Date: Mon, 13 Oct 2003 11:51:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Thunderbird/0.3

Akim Demaille wrote:
 > I'd like to be able to do stuff like this:
 >      AT_DATA_UNQUOTED([configure.ac],
 >      [[AC_INIT
 >      AC_CONFIG_AUX_DIR([$top_srcdir/config])
 >      AC_OUTPUT
 >      ]])

 > Where $top_srcdir is expanded in the generated configure.ac, otherwise
 > the tools that grep for AC_CONFIG_AUX_DIR (autopoint, libtoolize)
 > complain about shell variables in the argument.

I have tried hard to avoid dynamic expressions precisely in order to
enforce relocatable test cases.  Your example quite demonstrates what
I meant to avoid :(.

I want my testsuite to be relocatable too. But if I generate hardcoded `AC_CONFIG_AUX_DIR([../../config])', I need to remember to edit that line (in every test!) if I move the tests. Alternatively I could have a different AUX_DIR (and MACRO_DIR, and maybe others) for each test group... but that seems like a lot of duplicated files.

Why is it bad to want to do it this way?

Maybe we should address a different need: some
kind of store into which the test suite creates files which are used
by most tests?

I'm not sure I follow. In libtool, there is already $top_srcdir/config, and $top_srcdir/m4 (which contains the shipped libtool.m4), I've managed to eliminate the 14 copies of libtool.m4 we used to ship thanks to m4_include in the latest Automake. Can my store be $top_srcdir/m4? ;-)

Cheers,
        Gary.
--
  ())_.  Gary V. Vaughan    gary@(lilith.warpmail.net|gnu.org)
  ( '/   Research Scientist http://www.oranda.demon.co.uk       ,_())____
  / )=   GNU Hacker         http://www.gnu.org/software/libtool  \'      `&
`(_~)_   Tech' Author       http://sources.redhat.com/autobook   =`---d__/





reply via email to

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