Updated copyright date and build options
[freeradius.git] / src / main / version.c
1 /*
2  * version.c    Print version number and exit.
3  *
4  * Version:     $Id$
5  *
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.
10  *
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.
15  *
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  *
20  * Copyright 1999-2008  The FreeRADIUS server project
21  * Copyright 2000  Alan DeKok <aland@ox.org>
22  * Copyright 2000  Chris Parker <cparker@starnetusa.com>
23  */
24
25 #include <freeradius-devel/ident.h>
26 RCSID("$Id$")
27
28 #include <freeradius-devel/radiusd.h>
29
30 /*
31  *      Display the revision number for this program
32  */
33 void NEVER_RETURNS version(void)
34 {
35
36         printf("%s: %s\n", progname, radiusd_version);
37 #if 0
38         printf("Compilation flags: ");
39
40         /* here are all the conditional feature flags */
41 #if defined(WITH_DHCP)
42         printf(" WITH_DHCP");
43 #endif
44 #if defined(WITH_VMPS)
45         printf(" WITH_VMPS");
46 #endif
47 #if defined(OSFC2)
48         printf(" OSFC2");
49 #endif
50 #if defined(WITHOUT_PROXY)
51         printf(" WITHOUT_PROXY");
52 #endif
53 #if defined(WITHOUT_DETAIL)
54         printf(" WITHOUT_DETAIL");
55 #endif
56 #if defined(WITHOUT_SESSION_MGMT)
57         printf(" WITHOUT_SESSION_MGMT");
58 #endif
59 #if defined(WITHOUT_UNLANG)
60         printf(" WITHOUT_UNLANG");
61 #endif
62 #if defined(WITHOUT_ACCOUNTING)
63         printf(" WITHOUT_ACCOUNTING");
64 #endif
65 #if defined(WITHOUT_DYNAMIC_CLIENTS)
66         printf(" WITHOUT_DYNAMIC_CLIENTS");
67 #endif
68 #if defined(WITHOUT_STATS)
69         printf(" WITHOUT_STATS");
70 #endif
71 #if defined(WITHOUT_COMMAND_SOCKET)
72         printf(" WITHOUT_COMMAND_SOCKET");
73 #endif
74 #if defined(WITHOUT_COA)
75         printf(" WITHOUT_COA");
76 #endif
77         printf("\n");
78 #endif
79         printf("Copyright (C) 1999-2010 The FreeRADIUS server project and contributors.\n");
80         printf("There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n");
81         printf("PARTICULAR PURPOSE.\n");
82         printf("You may redistribute copies of FreeRADIUS under the terms of the\n");
83         printf("GNU General Public License.\n");
84         printf("For more information about these matters, see the file named COPYRIGHT.\n");
85         exit (0);
86 }
87