From 80c6bc17f0cd8900eb10bf85903b268bf3e06dea Mon Sep 17 00:00:00 2001 From: Simon Bauer Date: Sun, 28 Mar 2021 20:21:50 +0200 Subject: [PATCH] fix: Build breaks when using --without-restconfig When using "./configure --without-restconfig" the variables "WWWUSER" and "WWWDIR" are not defined, leading to a build failure. This change simply sets those variables to an empty string. --- configure | 11 +++++++++++ configure.ac | 3 +++ 2 files changed, 14 insertions(+) diff --git a/configure b/configure index 03e11aeb..d03b00bc 100755 --- a/configure +++ b/configure @@ -5402,6 +5402,17 @@ cat >>confdefs.h <<_ACEOF #define WWWDIR "$wwwdir" _ACEOF +else + +cat >>confdefs.h <<_ACEOF +#define WWWUSER "" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define WWWDIR "" +_ACEOF + fi # Set default config file location diff --git a/configure.ac b/configure.ac index 853dd164..eb62c65e 100644 --- a/configure.ac +++ b/configure.ac @@ -251,6 +251,9 @@ if test "x${with_restconf}" != "x"; then AC_MSG_RESULT(www user is $wwwuser) AC_DEFINE_UNQUOTED(WWWUSER, "$wwwuser", [WWW user for restconf daemon]) AC_DEFINE_UNQUOTED(WWWDIR, "$wwwdir", [WWW dir for restconf daemon]) +else + AC_DEFINE_UNQUOTED(WWWUSER, "", [WWW user for restconf daemon]) + AC_DEFINE_UNQUOTED(WWWDIR, "", [WWW dir for restconf daemon]) fi # Set default config file location