Grid Community Toolkit  6.2.1705709074 (tag: v6.2.20240202)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
globus_config.h
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2013 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
22 #include <stdint.h>
23 #include <limits.h>
24 
25 #if !defined(GLOBUS_CONFIG_H)
26 #define GLOBUS_CONFIG_H 1
27 #define BUILD_DEBUG 1
28 
29 #ifdef __STDC__
30  #ifndef HAVE_STDARG_H
31  #define HAVE_STDARG_H
32  #endif
33 #endif
34 
35 #ifdef _WIN32
36  #define TARGET_ARCH_WIN32 1
37  #define WINVER 0x0502
38 #endif
39 
40 #ifdef __MINGW32__
41  #ifndef HAVE_IN6_IS_ADDR_UNSPECIFIED
42  #define HAVE_IN6_IS_ADDR_UNSPECIFIED 1
43  #endif
44  #ifndef __USE_MINGW_ANSI_STDIO
45  #define __USE_MINGW_ANSI_STDIO 1
46  #endif
47  #ifndef _POSIX
48  #define _POSIX 1
49  #endif
50  #define TARGET_ARCH_MINGW32
51 #endif
52 
53 #ifdef __HOS_AIX__
54  #define TARGET_ARCH_AIX 1
55 #endif
56 
57 #ifdef __FreeBSD__
58  #define TARGET_ARCH_FREEBSD 1
59  #define TARGET_ARCH_BSD 1
60 #endif
61 
62 #ifdef __OpenBSD__
63  #define TARGET_ARCH_OPENBSD 1
64  #define TARGET_ARCH_BSD 1
65 #endif
66 
67 #ifdef __CYGWIN__
68  #define TARGET_ARCH_CYGWIN
69 #endif
70 
71 #ifdef __APPLE__
72  #define TARGET_ARCH_DARWIN 1
73  #define TARGET_ARCH_BSD 1
74 #endif
75 
76 #ifdef sun
77  #define TARGET_ARCH_SOLARIS 1
78  #ifdef __i386
79  #define TARGET_ARCH_X86 1
80  #endif
81  #ifdef __x86_64
82  #define TARGET_ARCH_X86_64 1
83  #endif
84 #endif
85 
86 #ifdef __hpux
87  #define TARGET_ARCH_HPUX 1
88  #ifdef __ia64
89  #define TARGET_ARCH_IA64 1
90  #endif
91 #endif
92 
93 #if defined(__linux__) || defined(linux) || defined(__linux)
94  #define TARGET_ARCH_LINUX 1
95  #if defined(__x86_64) || defined(__x86_64__)
96  #define TARGET_ARCH_X86 1
97  #elif defined(i386) || defined(__i386) || defined(__i386__)
98  #define TARGET_ARCH_X86_64 1
99  #elif defined(__ia64) || defined(__itanium__)
100  #define TARGET_ARCH_IA64 1
101  #elif defined(__sparc)
102  #define TARGET_ARCH_SPARC 1
103  #endif
104 #endif
105 
106 #ifdef __GNUC__
107 #define GLOBUS_FLAVOR_PREFIX "gcc"
108 #else
109 #define GLOBUS_FLAVOR_PREFIX "cc"
110 #endif
111 
112 #if LONG_MAX >= INT64_MAX
113 #define GLOBUS_FLAVOR_SUFFIX "64"
114 #else
115 #define GLOBUS_FLAVOR_SUFFIX "32"
116 #endif
117 
118 #define GLOBUS_FLAVOR_NAME GLOBUS_FLAVOR_PREFIX GLOBUS_FLAVOR_SUFFIX
119 
120 #endif /* GLOBUS_CONFIG_H */