From f9254d2349c7e2e3c110f7850e402d1c11624940 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 8 May 2000 14:19:47 +0000 Subject: Autoconf is *evil*. The sysconfdir and similar variables are unusable in C includes as they contain substitutions specific to make. Worked around by creating sysconf/paths.h which is created from the Makefile instead of by the configure script. --- sysdep/config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sysdep/config.h') diff --git a/sysdep/config.h b/sysdep/config.h index 2b4a49d..276929e 100644 --- a/sysdep/config.h +++ b/sysdep/config.h @@ -17,6 +17,8 @@ #ifndef MACROS_ONLY +#include "sysdep/paths.h" + /* Types */ typedef signed INTEGER_8 s8; typedef unsigned INTEGER_8 u8; @@ -30,7 +32,12 @@ typedef u16 word; #endif /* Path to configuration file */ +#ifdef DEBUGGING +#define PATH_CONFIG "bird.conf" +#define PATH_CONTROL_SOCKET "bird.ctl" +#else #define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf" #define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl" +#endif #endif -- cgit v1.2.3