build: Properly set Guile load paths in programs

This fixes an issue where the installed Guile load paths were set by the
undefined 'moduledir' Make macro.

* Makefile.am (AM_CPPFLAGS): Define PACKAGE_LOAD_PATH with
'guilesitedir' macro and PACKAGE_LOAD_COMPILED_PATH with
'guilesitegodir'.
* NEWS: Update.
This commit is contained in:
Mathieu Lirzin 2018-03-20 00:57:02 +01:00
commit 624ceb4480
No known key found for this signature in database
GPG key ID: 0ADEE10094604D37
2 changed files with 5 additions and 2 deletions

View file

@ -31,8 +31,8 @@ noinst_PROGRAMS = bin/cron bin/crontab
endif
AM_CPPFLAGS = \
-DPACKAGE_LOAD_PATH=\"$(moduledir)\" \
-DPACKAGE_LOAD_COMPILED_PATH=\"$(moduledir)\" \
-DPACKAGE_LOAD_PATH=\"$(guilesitedir)\" \
-DPACKAGE_LOAD_COMPILED_PATH=\"$(guilesitegodir)\" \
-D_GNU_SOURCE
AM_CFLAGS = @GUILE_CFLAGS@

3
NEWS
View file

@ -7,6 +7,9 @@ GNU Mcron NEWS -*- outline -*-
The "--disable-multi-user" configure variable is not reversed anymore.
'cron' and 'crontab' are now installed unless this option is used.
The programs now sets the GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH
environment variables with the location of the installed Guile modules.
* Noteworthy changes in release 1.1 (2018-03-19) [stable]
** New features