autoconf-patches
[Top][All Lists]
Advanced

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

Re: Reusing shell code


From: Akim Demaille
Subject: Re: Reusing shell code
Date: 28 Sep 2000 17:07:57 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

| Hello, Akim!
| > This is a problem with the source of Autoconf.  I tried several times
| > to find an elegant factorization of common code in AC_CONFIG_*S, but
| > couldn't find anything interesting idea.  Still, in the future we
| > should try to.
| 
| Well, I see two ways.
| 
| If you don't want to share the code between auto*.sh and config.status you
| can use short scripts and call them from auto*.sh, i.e.:
| 
| . @datadir@/prepare-env
| . @datadir@/mktmpdir ac
| 
| Another way is to use AC_SUBST_FILE. This way, acgeneral.m4 (but not other
| *.m4) becomes acgeneral.m4.in and has some code in AC_CONFIG_*S
| substituted from some files. The same code would be substituted in
| auto*.sh

Actually I was referring to factoring the source, not the output.



reply via email to

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