forked from InsightSoftwareConsortium/ITK
-
Notifications
You must be signed in to change notification settings - Fork 1
/
itkConfigure.h.in
136 lines (117 loc) · 4.22 KB
/
itkConfigure.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkConfigure.h.in
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
/*
* here is where system computed values get stored these values should only
* change when the target compile platform changes
*/
/* what byte order */
/* All compilers that support Mac OS X define either __BIG_ENDIAN__ or
__LITTLE_ENDIAN__ to match the endianness of the architecture being
compiled for. This is not necessarily the same as the architecture of
the machine doing the building. In order to support Universal Binaries on
Mac OS X, we prefer those defines to decide the endianness.
On other platform, we use the result of the TRY_RUN. */
#if !defined(__APPLE__)
#cmakedefine CMAKE_WORDS_BIGENDIAN
#ifdef CMAKE_WORDS_BIGENDIAN
#define ITK_WORDS_BIGENDIAN
#endif
#elif defined(__BIG_ENDIAN__)
#define CMAKE_WORDS_BIGENDIAN
#define ITK_WORDS_BIGENDIAN
#endif
/* what threading system are we using */
#cmakedefine CMAKE_USE_PTHREADS
#ifdef CMAKE_USE_PTHREADS
#define ITK_USE_PTHREADS
#endif
#cmakedefine CMAKE_HP_PTHREADS
#ifdef CMAKE_HP_PTHREADS
#define ITK_HP_PTHREADS
#endif
#cmakedefine CMAKE_USE_WIN32_THREADS
#ifdef CMAKE_USE_WIN32_THREADS
#define ITK_USE_WIN32_THREADS
#endif
#cmakedefine ITK_BUILD_SHARED_LIBS
#ifdef ITK_BUILD_SHARED_LIBS
#define ITKDLL
#else
#define ITKSTATIC
#endif
#cmakedefine CMAKE_NO_STD_NAMESPACE
#cmakedefine CMAKE_NO_ANSI_STREAM_HEADERS
#cmakedefine CMAKE_NO_ANSI_STRING_STREAM
#cmakedefine CMAKE_NO_ANSI_FOR_SCOPE
#cmakedefine ITK_CPP_FUNCTION
#cmakedefine ITK_LEGACY_REMOVE
#cmakedefine ITK_LEGACY_SILENT
#cmakedefine ITK_USE_CONCEPT_CHECKING
#cmakedefine ITK_USE_STRICT_CONCEPT_CHECKING
#cmakedefine ITK_EXPLICIT_INSTANTIATION
#cmakedefine USE_FFTWF
#cmakedefine USE_FFTWD
#cmakedefine ITK_USE_MINC2
#cmakedefine ITK_USE_TRANSFORM_IO_FACTORIES
#cmakedefine ITK_USE_TEMPLATE_META_PROGRAMMING_LOOP_UNROLLING
#cmakedefine ITK_USE_REVIEW
#cmakedefine ITK_SUPPORTS_TEMPLATED_FRIEND_FUNCTION_WITH_TEMPLATE_ARGUMENTS
#cmakedefine ITK_SUPPORTS_TEMPLATED_FRIEND_FUNCTION_WITH_EMPTY_BRACKETS
#cmakedefine ITK_SUPPORTS_TEMPLATED_FRIEND_FUNCTION_WITH_NULL_STRING
#cmakedefine ITK_SUPPORTS_WCHAR_T_FILENAME_CSTYLEIO
#cmakedefine ITK_SUPPORTS_WCHAR_T_FILENAME_IOSTREAMS_CONSTRUCTORS
#cmakedefine ITK_SUPPORTS_FDSTREAM_HPP
/*
* TODO: this should be changed to a compile time test for the needed
* feature and then defined as a cmake variable
*/
#if !(defined( _MSC_VER ) && ( _MSC_VER < 1310 ))
#define ITK_USE_NUMERIC_TRAITS_PARTIAL_SPECIALIZATION
#endif
/*
* The @HAVE_INCLUDE_H@ gets replaced with "1" or "", this define is
* to remap these values to 0 and 1
*/
#define ITK_CMAKEDEFINE_VAR_1 1
#define ITK_CMAKEDEFINE_VAR_ 0
/*
* Check Include files defines. We use the CMake standard names in the
* cmake files to reduce extra calls for checking header, but then
* conditionally defined them here with an ITK_ prefix to prevent
* collisions and re defined warnings.
*/
#if ITK_CMAKEDEFINE_VAR_@HAVE_FENV_H@
# define ITK_HAVE_FENV_H
#endif /* HAVE_FENV_H */
#if ITK_CMAKEDEFINE_VAR_@HAVE_SYS_TYPES_H@
# define ITK_HAVE_SYS_TYPES_H
#endif /* HAVE_SYS_TYPES_H */
#if ITK_CMAKEDEFINE_VAR_@HAVE_STDINT_H@
# define ITK_HAVE_STDINT_H
#endif /* HAVE_STDINT_H */
#if ITK_CMAKEDEFINE_VAR_@HAVE_STDDEF_H@
# define ITK_HAVE_STDDEF_H
#endif /* HAVE_STDDEF_H */
#if ITK_CMAKEDEFINE_VAR_@HAVE_UNISTD_H@
# define ITK_HAVE_UNISTD_H
#endif /* HAVE_UNISTD_H */
#undef ITK_CMAKEDEFINE_VAR_1
#undef ITK_CMAKEDEFINE_VAR_
/*
* Enable ITK usage of and long long
*/
#cmakedefine ITK_TYPE_USE_LONG_LONG
#define ITK_VERSION_MAJOR @ITK_VERSION_MAJOR@
#define ITK_VERSION_MINOR @ITK_VERSION_MINOR@
#define ITK_VERSION_PATCH @ITK_VERSION_PATCH@
#define ITK_VERSION_STRING "@ITK_VERSION_STRING@"