Remove duplicate version/copyright info
[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 version(void)
34 {
35
36         radlog(L_INFO, "%s: %s", progname, radiusd_version);
37         DEBUG3("Compilation flags: ");
38
39         /* here are all the conditional feature flags */
40 #if defined(WITH_DHCP)
41         DEBUG3(" WITH_DHCP");
42 #endif
43 #if defined(WITH_VMPS)
44         DEBUG3(" WITH_VMPS");
45 #endif
46 #if defined(OSFC2)
47         DEBUG3(" OSFC2");
48 #endif
49 #if defined(WITHOUT_PROXY)
50         DEBUG3(" WITHOUT_PROXY");
51 #endif
52 #if defined(WITHOUT_DETAIL)
53         DEBUG3(" WITHOUT_DETAIL");
54 #endif
55 #if defined(WITHOUT_SESSION_MGMT)
56         DEBUG3(" WITHOUT_SESSION_MGMT");
57 #endif
58 #if defined(WITHOUT_UNLANG)
59         DEBUG3(" WITHOUT_UNLANG");
60 #endif
61 #if defined(WITHOUT_ACCOUNTING)
62         DEBUG3(" WITHOUT_ACCOUNTING");
63 #endif
64 #if defined(WITHOUT_DYNAMIC_CLIENTS)
65         DEBUG3(" WITHOUT_DYNAMIC_CLIENTS");
66 #endif
67 #if defined(WITHOUT_STATS)
68         DEBUG3(" WITHOUT_STATS");
69 #endif
70 #if defined(WITHOUT_COMMAND_SOCKET)
71         DEBUG3(" WITHOUT_COMMAND_SOCKET");
72 #endif
73 #if defined(WITHOUT_COA)
74         DEBUG3(" WITHOUT_COA");
75 #endif
76         radlog(L_INFO, "Copyright (C) 1999-2012 The FreeRADIUS server project and contributors.");
77         radlog(L_INFO, "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A");
78         radlog(L_INFO, "PARTICULAR PURPOSE.");
79         radlog(L_INFO, "You may redistribute copies of FreeRADIUS under the terms of the");
80         radlog(L_INFO, "GNU General Public License.");
81         radlog(L_INFO, "For more information about these matters, see the file named COPYRIGHT.");
82         
83         fflush(NULL);
84 }
85