1998-04-22 12:58:34 +00:00
|
|
|
/*
|
1999-01-09 15:02:11 +00:00
|
|
|
* This file contains all parameters dependent on the
|
|
|
|
* operating system and build-time configuration.
|
1998-04-22 12:58:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _BIRD_CONFIG_H_
|
|
|
|
#define _BIRD_CONFIG_H_
|
|
|
|
|
1999-10-31 15:43:44 +00:00
|
|
|
/* BIRD version */
|
2012-03-22 11:29:02 +00:00
|
|
|
#define BIRD_VERSION "1.3.7"
|
1999-10-31 15:43:44 +00:00
|
|
|
|
1999-01-09 15:02:11 +00:00
|
|
|
/* Include parameters determined by configure script */
|
|
|
|
#include "sysdep/autoconf.h"
|
1998-04-22 12:58:34 +00:00
|
|
|
|
1999-01-09 15:02:11 +00:00
|
|
|
/* Include OS configuration file as chosen in autoconf.h */
|
|
|
|
#include SYSCONF_INCLUDE
|
1998-04-22 12:58:34 +00:00
|
|
|
|
1999-03-01 20:15:14 +00:00
|
|
|
#ifndef MACROS_ONLY
|
|
|
|
|
2000-05-08 14:24:19 +00:00
|
|
|
/*
|
|
|
|
* Of course we could add the paths to autoconf.h, but autoconf
|
|
|
|
* is stupid and puts make-specific substitutious to the paths.
|
|
|
|
*/
|
2000-05-08 14:19:47 +00:00
|
|
|
#include "sysdep/paths.h"
|
|
|
|
|
1998-04-22 12:58:34 +00:00
|
|
|
/* Types */
|
1999-01-09 15:02:11 +00:00
|
|
|
typedef signed INTEGER_8 s8;
|
|
|
|
typedef unsigned INTEGER_8 u8;
|
|
|
|
typedef INTEGER_16 s16;
|
|
|
|
typedef unsigned INTEGER_16 u16;
|
|
|
|
typedef INTEGER_32 s32;
|
|
|
|
typedef unsigned INTEGER_32 u32;
|
2011-08-12 19:03:43 +00:00
|
|
|
typedef INTEGER_64 s64;
|
|
|
|
typedef unsigned INTEGER_64 u64;
|
1998-04-22 12:58:34 +00:00
|
|
|
typedef u8 byte;
|
|
|
|
typedef u16 word;
|
|
|
|
|
1999-03-01 20:15:14 +00:00
|
|
|
#endif
|
|
|
|
|
1999-01-09 15:02:11 +00:00
|
|
|
/* Path to configuration file */
|
2004-06-06 17:05:25 +00:00
|
|
|
#ifdef IPV6
|
|
|
|
# ifdef DEBUGGING
|
2009-06-01 22:28:08 +00:00
|
|
|
# define PATH_CONFIG "bird6.conf"
|
|
|
|
# define PATH_CONTROL_SOCKET "bird6.ctl"
|
2004-06-06 17:05:25 +00:00
|
|
|
# else
|
2009-06-01 22:28:08 +00:00
|
|
|
# define PATH_CONFIG PATH_CONFIG_DIR "/bird6.conf"
|
|
|
|
# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird6.ctl"
|
2004-06-06 17:05:25 +00:00
|
|
|
# endif
|
2000-05-08 14:19:47 +00:00
|
|
|
#else
|
2004-06-06 17:05:25 +00:00
|
|
|
# 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
|
2000-05-08 14:19:47 +00:00
|
|
|
#endif
|
1998-11-27 19:28:29 +00:00
|
|
|
|
1998-04-22 12:58:34 +00:00
|
|
|
#endif
|