using $datadir in a file that is processed by configure

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

 




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:

path=@PACKAGE_DATA_DIR@

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

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


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux