On 09/07/2012 11:55 AM, Vincent Torri wrote:
> 
> One solution is to use a sed command in a make rule in Makefile.am.

In fact, that is the ideal solution.  According to GNU Coding Standards,
datadir can be modified at make time, so you WANT it to be computed at
make time.

> 
> Is there a better solution to do what we want ?

Have a look at the gnulib 'configmake' module, which includes rules for
making a "configmake.h" header with all of the make-time substitutions
for all of the special configure-time directories, such as $datadir.

-- 
Eric Blake   [email protected]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to