2 * version.c Print version number and exit.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * Copyright 2000 The FreeRADIUS server project
21 * Copyright 2000 Alan DeKok <aland@ox.org>
22 * Copyright 2000 Chris Parker <cparker@starnetusa.com>
25 static const char rcsid[] = "$Id$";
28 #include "libradius.h"
35 * Version number. This should ideally be created by autoconf
36 * or similar, so that this would always be up to date.
38 #define VERSION "FreeRADIUS ALPHA, built on " __DATE__ " at " __TIME__
41 * Display the revision number for this program
46 fprintf(stderr, "%s: RADIUS version " VERSION ".\n", progname);
47 fprintf(stderr, "Compilation flags: ");
49 /* here are all the conditional feature flags */
51 fprintf(stderr," OSFC2");
53 #if defined(WITH_DICT_NOCASE)
54 fprintf(stderr," WITH_DICT_NOCASE");
56 #if defined(WITH_SNMP)
57 fprintf(stderr," WITH_SNMP");