From ae634acd5105f782c134a0fe36023e2d8541268a Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 22 Aug 2024 03:08:03 +0000 Subject: [PATCH] add checks git-svn-id: file:///raid/svn-personal/repoview/trunk@38 7e8b2a19-8934-dd40-8cb3-db22cdd5a80f --- check.c | 8 ++++++++ config.h.tmpl | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/check.c b/check.c index 39eb2b7..cec7445 100644 --- a/check.c +++ b/check.c @@ -112,6 +112,14 @@ int check_avatar(void) { #if defined(USE_AVATAR) && !defined(USE_LIBPNG) fprintf(stderr, "USE_AVATAR is defined, but USE_LIBPNG is not defined.\n"); st = 1; +#endif +#if defined(USE_AVATAR) && !defined(WWW_AVATAR_ROOT) + fprintf(stderr, "USE_AVATAR is defined, but WWW_AVATAR_ROOT is not defined.\n"); + st = 1; +#endif +#if defined(USE_AVATAR) && !defined(AVATAR_ROOT) + fprintf(stderr, "USE_AVATAR is defined, but AVATAR_ROOT is not defined.\n"); + st = 1; #endif return st; } diff --git a/config.h.tmpl b/config.h.tmpl index dab0cd5..d3f7d6e 100644 --- a/config.h.tmpl +++ b/config.h.tmpl @@ -77,9 +77,15 @@ /* Apache authz file. */ #define APACHE_AUTHZ "/www/authz" +/* Avatar filesystem root. */ +#define AVATAR_ROOT "/www/avatar" + /* Subversion root on the HTTP. */ #define WWW_SVN_ROOT "/svn/" +/* Avatar root on the HTTP. */ +#define WWW_AVATAR_ROOT "/avatar/" + #endif /* -- 2.45.2