autoconf
[Top][All Lists]
Advanced

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

using $datadir in a file that is processed by configure


From: Vincent Torri
Subject: using $datadir in a file that is processed by configure
Date: Fri, 7 Sep 2012 19:55:57 +0200 (CEST)


Hello

in configure.ac, we do (I simplify)

PACKAGE_DATA_DIR=${datadir}
ACSUBST([PACKAGE_DATA_DIR])

etc...

AC_CONFIG_FILES([
file
])

And in file.in:

address@hidden@

It's not good as $datadir is not defined at configure time.

One solution is to use a sed command in a make rule in Makefile.am.

Is there a better solution to do what we want ?

thank you

Vincent Torri



reply via email to

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