Re: $sysconfdir substitution

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

 



On 6/10/16, Kip Warner <kip@xxxxxxxxxxxxxx> wrote:
> Thanks for the suggestion. Unfortunately I've already got access to the
> variable through the pre-processor (e.g. AM_CPPFLAGS), but I need the
> variable substituted in a non-compiled .in file with AC_CONFIG_FILES.

It would be possible to make this work by writing sh code to expand the
variables, but it is not recommended.  Users are supposed to be able to
set installation directory variables on the make command line, e.g.,

  make sysconfdir=/some/where

and substituting expanded paths in AC_CONFIG_FILES will usually fail in
this situation.

Instead, the straightforward approach is to generate the files with a
make rule, as suggested by Peter Johansson.

Regards,
  Nick

_______________________________________________
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