]> git.ipfire.org Git - thirdparty/bird.git/blob - sysdep/config.h
New release 1.1.3
[thirdparty/bird.git] / sysdep / config.h
1 /*
2 * This file contains all parameters dependent on the
3 * operating system and build-time configuration.
4 */
5
6 #ifndef _BIRD_CONFIG_H_
7 #define _BIRD_CONFIG_H_
8
9 /* BIRD version */
10 #define BIRD_VERSION "1.1.3"
11
12 /* Include parameters determined by configure script */
13 #include "sysdep/autoconf.h"
14
15 /* Include OS configuration file as chosen in autoconf.h */
16 #include SYSCONF_INCLUDE
17
18 #ifndef MACROS_ONLY
19
20 /*
21 * Of course we could add the paths to autoconf.h, but autoconf
22 * is stupid and puts make-specific substitutious to the paths.
23 */
24 #include "sysdep/paths.h"
25
26 /* Types */
27 typedef signed INTEGER_8 s8;
28 typedef unsigned INTEGER_8 u8;
29 typedef INTEGER_16 s16;
30 typedef unsigned INTEGER_16 u16;
31 typedef INTEGER_32 s32;
32 typedef unsigned INTEGER_32 u32;
33 typedef u8 byte;
34 typedef u16 word;
35
36 #endif
37
38 /* Path to configuration file */
39 #ifdef IPV6
40 # ifdef DEBUGGING
41 # define PATH_CONFIG "bird6.conf"
42 # define PATH_CONTROL_SOCKET "bird6.ctl"
43 # else
44 # define PATH_CONFIG PATH_CONFIG_DIR "/bird6.conf"
45 # define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird6.ctl"
46 # endif
47 #else
48 # ifdef DEBUGGING
49 # define PATH_CONFIG "bird.conf"
50 # define PATH_CONTROL_SOCKET "bird.ctl"
51 # else
52 # define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
53 # define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl"
54 # endif
55 #endif
56
57 #endif