to beta.
SQL_ORACLE_LIBS = @ORACLE_LIBS@
SQL_ORACLE_INCLUDE = @ORACLE_INCLUDE@
+
+RADIUSD_VERSION = @RADIUSD_VERSION@
AC_INIT(src/main/radiusd.c)
AC_CONFIG_HEADER(src/include/autoconf.h)
AC_REVISION($Revision$)dnl
-dnl AC_PREFIX_DEFAULT(/usr/local)
+
+dnl # The version of the software, first beta, is 0.1
+RADIUSD_VERSION=0.1
dnl #############################################################
dnl #
USE_STATIC_LIBS=$enable_static
AC_SUBST(USE_STATIC_LIBS)
AC_SUBST(STATIC_MODULES)
+AC_SUBST(RADIUSD_VERSION)
export CFLAGS LIBS
AC_OUTPUT(\
cat >> src/include/autoconf.h <<EOF
#define HOSTINFO "$host"
+#define RADIUSD_VERSION "$RADIUSD_VERSION"
EOF
],host=$host)
extern int proxy_retry_count;
extern int proxy_retry_delay;
extern int spawn_flag;
+extern const char *radiusd_version;
/* Define a global config structure */
extern struct main_config_t mainconfig;
*/
memset(&rad_snmp, 0, sizeof(rad_snmp));
- rad_snmp.auth.ident = "FreeRADIUS v0.1.0 " HOSTINFO;
- rad_snmp.acct.ident = "FreeRADIUS v0.1.0 " HOSTINFO;
+ rad_snmp.auth.ident = radiusd_version;
+ rad_snmp.acct.ident = radiusd_version;
rad_snmp.smux_event = SMUX_NONE;
rad_snmp.smux_password = NULL;
int proxy_synchronous = TRUE;
int need_reload = FALSE;
struct main_config_t mainconfig;
+const char *radiusd_version = "FreeRADIUS Version " RADIUSD_VERSION ", for host " HOSTINFO ", built on " __DATE__ " at " __TIME__;
static int got_child = FALSE;
static int authfd;
#include "radiusd.h"
/*
- * Version number. This should ideally be created by autoconf
- * or similar, so that this would always be up to date.
- */
-#define VERSION "FreeRADIUS ALPHA, built on " __DATE__ " at " __TIME__
-
-/*
* Display the revision number for this program
*/
void version(void)
{
- fprintf(stderr, "%s: RADIUS version " VERSION ".\n", progname);
+ fprintf(stderr, "%s: %s\n", progname, radiusd_version);
fprintf(stderr, "Compilation flags: ");
/* here are all the conditional feature flags */