From 37535bd29190d013274f4ee100e105ccfd3ace11 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 24 Mar 2023 12:55:37 +0100 Subject: irmd: Use CMAKE_INSTALL_SBINDIR to spawn IPCPs The "/sbin/" was hard-coded, which will fail if the installation SBIN directory is configured to something else. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/irmd/config.h.in | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/irmd/config.h.in') diff --git a/src/irmd/config.h.in b/src/irmd/config.h.in index 10ccaa52..575d3123 100644 --- a/src/irmd/config.h.in +++ b/src/irmd/config.h.in @@ -20,6 +20,7 @@ * Foundation, Inc., http://www.fsf.org/about/contact/. */ + #define IPCP_UDP_EXEC "@IPCP_UDP_TARGET@" #define IPCP_ETH_LLC_EXEC "@IPCP_ETH_LLC_TARGET@" #define IPCP_ETH_DIX_EXEC "@IPCP_ETH_DIX_TARGET@" @@ -28,6 +29,7 @@ #define IPCP_LOCAL_EXEC "@IPCP_LOCAL_TARGET@" #define INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@" +#define INSTALL_SBINDIR "@CMAKE_INSTALL_SBINDIR@" #define PTHREAD_COND_CLOCK @PTHREAD_COND_CLOCK@ @@ -47,15 +49,15 @@ #define IRMD_MIN_THREADS @IRMD_MIN_THREADS@ #define IRMD_ADD_THREADS @IRMD_ADD_THREADS@ -#define OUROBOROS_CONFIG_DIR "@OUROBOROS_CONFIG_DIR@" -#define OUROBOROS_CONFIG_FILE "@OUROBOROS_CONFIG_FILE@" - #cmakedefine HAVE_FUSE #ifdef HAVE_FUSE #define FUSE_PREFIX "@FUSE_PREFIX@" #endif #cmakedefine HAVE_TOML -#cmakedefine HAVE_CONFINI -#cmakedefine OUROBOROS_CONFIG_INI +#ifdef HAVE_TOML +#define OUROBOROS_CONFIG_DIR "@OUROBOROS_CONFIG_DIR@" +#define OUROBOROS_CONFIG_FILE "@OUROBOROS_CONFIG_FILE@" +#endif + #cmakedefine HAVE_LIBGCRYPT -- cgit v1.2.3