summaryrefslogtreecommitdiff
path: root/version.h.in
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-02-28 10:33:23 (GMT)
committerfluxgen <fluxgen>2004-02-28 10:33:23 (GMT)
commit992caf2ef7da2de5a3634ffd860de0bd69220c9e (patch)
treed7a84ba96794a6189edf818401a7b867c270b892 /version.h.in
parent454938dd941868615eeac34eccd4f750ffd7c454 (diff)
downloadfluxbox_lack-992caf2ef7da2de5a3634ffd860de0bd69220c9e.zip
fluxbox_lack-992caf2ef7da2de5a3634ffd860de0bd69220c9e.tar.bz2
check for compiler and version
Diffstat (limited to 'version.h.in')
-rw-r--r--version.h.in63
1 files changed, 63 insertions, 0 deletions
diff --git a/version.h.in b/version.h.in
index 4e4ecf0..b457555 100644
--- a/version.h.in
+++ b/version.h.in
@@ -1 +1,64 @@
1// version.h for Fluxbox Window manager
2// Copyright (c) 2004 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3// and Simon Bowden (rathnor at users.sourceforge.net)
4//
5// Permission is hereby granted, free of charge, to any person obtaining a
6// copy of this software and associated documentation files (the "Software"),
7// to deal in the Software without restriction, including without limitation
8// the rights to use, copy, modify, merge, publish, distribute, sublicense,
9// and/or sell copies of the Software, and to permit persons to whom the
10// Software is furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE.
22
1#define __fluxbox_version "@VERSION@" 23#define __fluxbox_version "@VERSION@"
24
25#ifdef __VERSION__
26#define __fluxbox_compiler_version __VERSION__
27
28#ifdef __GNUG__
29#define __fluxbox_compiler "GCC"
30#endif // __GNUG__
31
32#elif (defined(__sgi) || defined(sgi)) && __COMPILER_VERSION
33#define __fluxbox_compiler_version __COMPILER_VERSION
34#define __fluxbox_compiler "SGI"
35#elif defined(__MWERKS__)
36#define __fluxbox_compiler_version __MWERKS__
37#define __fluxbox_compiler "MWERKS"
38#elif defined(__INTEL_COMPILER) || defined(__ICC)
39#define __fluxbox_compiler_version __INTEL_COMPILER
40#define __fluxbox_compiler "ICC"
41#elif defined(__SUNPRO_CC)
42#define __fluxbox_compiler_version __SUNPRO_CC
43#define __fluxbox_compiler "SUNPRO_CC"
44#elif defined(__COMO__) && defined(__COMO_VERSION__)
45#define __fluxbox_compiler_version __COMO_VERSION__
46#define __fluxbox_compiler "COMO"
47#elif defined(_CRAYC) && defined(_REVISION)
48#define __fluxbox_compiler_version _REVISION
49#define __fluxbox_compiler "GRAYC"
50#elif defined(__DECCXX) && defined(__DECCXX)
51#define __fluxbox_compiler_version __DECCXX
52#define __fluxbox_compiler "DECCXX"
53#elif defined(__DCC__)
54#define __fluxbox_compiler_version __VERSION_NUMBER__
55#define __fluxbox_compiler "DCC"
56#endif
57
58#ifndef __fluxbox_compiler_version
59#define __fluxbox_compiler_version "Unknown"
60#endif // __fluxbox_compiler_version
61
62#ifndef __fluxbox_compiler
63#define __fluxbox_compiler "Unknown"
64#endif // __fluxbox_compiler