1 /* Manually created from config.h.in to work with cmake */
3 /* Disable warnings about double-to-float conversion accuracy loss on MSVC */
5 #pragma warning (disable : 4305)
6 #pragma warning (disable : 4244)
7 #pragma warning (disable : 4101)
8 #pragma warning (disable : 4996)
9 #pragma warning (disable : 4267)
10 #pragma warning (disable : 4090)
13 /* Name of package (translate from cmake to autoconf macro name) */
14 #define PACKAGE "@PROJECT_NAME@"
16 /* Version number of package (translate from cmake to autoconf macro name) */
17 #define VERSION "@PROJECT_VERSION@"
19 /* Use the version string from generated version.h */
20 #cmakedefine USE_VERSION_H
22 /* Default location of data files */
23 #cmakedefine GMXLIBDIR "@GMXLIBDIR@"
25 /* Hardware and OS version for build host */
26 #cmakedefine BUILD_MACHINE "@BUILD_MACHINE@"
28 /* Date and time for build */
29 #cmakedefine BUILD_TIME "@BUILD_TIME@"
31 /* User doing build */
32 #cmakedefine BUILD_USER "@BUILD_USER@"
34 /* Binary suffix for the created binaries */
35 #define GMX_BINARY_SUFFIX "@GMX_BINARY_SUFFIX@"
37 /* Source directory for the build */
38 #cmakedefine CMAKE_SOURCE_DIR "@CMAKE_SOURCE_DIR@"
40 /* Binary directory for the build */
41 #cmakedefine CMAKE_BINARY_DIR "@CMAKE_BINARY_DIR@"
43 /* Turn off water-water neighborlist optimization only */
44 #cmakedefine DISABLE_WATERWATER_NLIST
46 /* Turn off all water neighborlist optimization */
47 #cmakedefine DISABLE_WATER_NLIST
50 #cmakedefine GMX_FORTRAN
52 /* Define to a macro mangling the given C identifier (in lower and upper
53 case), which must not contain underscores, for linking with Fortran. */
54 #define F77_FUNC(name,NAME) @F77_FUNCDEF@
56 /* IEEE754 floating-point format. Memory layout is defined by macros
57 * GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER and GMX_IEEE754_BIG_ENDIAN_WORD_ORDER.
59 #cmakedefine GMX_FLOAT_FORMAT_IEEE754
61 /* Use assembly intrinsics kernels for BlueGene */
62 #cmakedefine GMX_BLUEGENE
64 /* Power6 acceleration */
65 #cmakedefine GMX_POWER6
67 /* Work around broken calloc() */
68 #cmakedefine GMX_BROKEN_CALLOC
70 /* Enable special hacks for Cray XT3 */
71 #cmakedefine GMX_CRAY_XT3
73 /* Do not optimize FFTW setups (not needed with SSE FFT kernels) */
74 #cmakedefine GMX_DISABLE_FFTW_MEASURE
76 /* Compile in double precision */
77 #cmakedefine GMX_DOUBLE
79 /* Use Built-in FFTPACK FFT library */
80 #cmakedefine GMX_FFT_FFTPACK
82 /* Use FFTW3 FFT library */
83 #cmakedefine GMX_FFT_FFTW3
85 /* Use Intel MKL FFT library */
86 #cmakedefine GMX_FFT_MKL
88 /* Use AMD core math library */
89 #cmakedefine GMX_FFT_ACML
91 /* Single-precision SSE instructions on ia32 */
92 #cmakedefine GMX_IA32_SSE
94 /* Double-precision SSE2 instructions on ia32 */
95 #cmakedefine GMX_IA32_SSE2
97 /* Use ia64 assembly tuned for Itanium2 */
98 #cmakedefine GMX_IA64_ASM
100 /* Integer byte order is big endian. */
101 #cmakedefine GMX_INTEGER_BIG_ENDIAN
103 /* Use our own instead of system XDR libraries */
104 #cmakedefine GMX_INTERNAL_XDR
106 /* Use MPI (with mpicc) for parallelization */
107 #cmakedefine GMX_LIB_MPI
109 /* MPI_IN_PLACE exists for collective operations */
110 #cmakedefine MPI_IN_PLACE_EXISTS
112 /* Make a parallel version of GROMACS using message passing
113 (MPI or thread_mpi) */
116 /* Use threads for parallelization */
117 #cmakedefine GMX_THREAD_MPI
119 /* Use old threading (domain decomp force calc) code */
120 #cmakedefine GMX_THREAD_SHM_FDECOMP
122 /* Ignore calls to nice(3) */
123 #cmakedefine GMX_NO_NICE
125 /* Ignore calls to system(3) */
126 #cmakedefine GMX_NO_SYSTEM
128 /* Use PowerPC Altivec inner loops */
129 #cmakedefine GMX_PPC_ALTIVEC
131 /* Use (modified) Gamess-UK for QM-MM calculations */
132 #cmakedefine GMX_QMMM_GAMESS
134 /* Use (modified) Gaussian0x for QM-MM calculations */
135 #cmakedefine GMX_QMMM_GAUSSIAN
137 /* Use (modified) Mopac 7 for QM-MM calculations */
138 #cmakedefine GMX_QMMM_MOPAC
140 /* Use the GROMACS software 1/sqrt(x) */
141 #cmakedefine GMX_SOFTWARE_INVSQRT
143 /* Use the PowerPC hardware 1/sqrt(x) */
144 #cmakedefine GMX_POWERPC_INVSQRT
146 /* Compile with plugin support */
147 #cmakedefine GMX_USE_PLUGINS
149 /* Fallback path for VMD plug-ins */
150 #define GMX_VMD_PLUGIN_PATH "@GMX_VMD_PLUGIN_PATH@"
152 /* Define when pthreads are used */
153 #cmakedefine THREAD_PTHREADS
155 /* Define when Windows threads are used */
156 #cmakedefine THREAD_WINDOWS
158 /* Define for busy wait option */
159 #cmakedefine TMPI_WAIT_FOR_NO_ONE
161 /* Define for copy buffer option */
162 #cmakedefine TMPI_COPY_BUFFER
164 /* Define for profiling option */
165 #cmakedefine TMPI_PROFILE
167 /* Define for Linux pthread_setaffinity */
168 #cmakedefine HAVE_PTHREAD_SETAFFINITY
170 /* Define for sysconf() */
171 #cmakedefine HAVE_SYSCONF
173 /* Single-precision SSE instructions on X86_64 */
174 #cmakedefine GMX_X86_64_SSE
176 /* Double-precision SSE2 instructions on X86_64 */
177 #cmakedefine GMX_X86_64_SSE2
179 /* Support for SSE intrinsics */
182 /* Support for SSE2 intrinsics */
183 #cmakedefine GMX_SSE2
185 /* Support for SSE3 intrinsics */
186 #cmakedefine GMX_SSE3
188 /* Support for SSE4.1 intrinsics */
189 #cmakedefine GMX_SSE4_1
191 /* Define to 1 if you have the <altivec.h> header file. */
192 #cmakedefine HAVE_ALTIVEC_H
194 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
195 #cmakedefine HAVE_FSEEKO
197 /* Define to 1 if _fseeki64 (and presumably _fseeki64) exists and is declared. */
198 #cmakedefine HAVE__FSEEKI64
200 /* Define to 1 if you have the gsl library (-lgsl). */
201 #cmakedefine HAVE_LIBGSL
203 /* Have io.h (windows)*/
204 #cmakedefine HAVE_IO_H
206 /* Define to 1 if you have the strdup() function. */
207 #cmakedefine HAVE_STRDUP
209 /* Define to 1 if you have the posix_memalign() function. */
210 #cmakedefine HAVE_POSIX_MEMALIGN
212 /* Define to 1 if you have the memalign() function. */
213 #cmakedefine HAVE_MEMALIGN
215 /* Define to 1 if you have the MSVC _aligned_malloc() function. */
216 #cmakedefine HAVE__ALIGNED_MALLOC
218 /* Define to 1 if you have the gettimeofday() function. */
219 #cmakedefine HAVE_GETTIMEOFDAY
221 /* Define to 1 if you have the cbrt() function. */
222 #cmakedefine HAVE_CBRT
224 /* Define to 1 if you have the isfinite() function. */
225 #cmakedefine HAVE_ISFINITE
227 /* Define to 1 if you have the _isfinite() function. */
228 #cmakedefine HAVE__ISFINITE
230 /* Define to 1 if you have the _finite() function. */
231 #cmakedefine HAVE__FINITE
233 /* Define to 1 if you have the fsync() function. */
234 #cmakedefine HAVE_FSYNC
236 /* Define to 1 if you have the Windows _commit() function. */
237 #cmakedefine HAVE__COMMIT
239 /* Define to 1 if you have the fileno() function. */
240 #cmakedefine HAVE_FILENO
242 /* Define to 1 if you have the _fileno() function. */
243 #cmakedefine HAVE__FILENO
245 /* Define to 1 if you have the lstat() function. */
246 #cmakedefine HAVE_LSTAT
248 /* Define to 1 if you have the sigaction() function. */
249 #cmakedefine HAVE_SIGACTION
251 /* Define to 1 if yo have the <unistd.h> header file. */
252 #cmakedefine HAVE_UNISTD_H
254 /* Define to 1 if yo have the <pwd.h> header file. */
255 #cmakedefine HAVE_PWD_H
257 /* Define to 1 if yo have the <pthread.h> header file. */
258 #cmakedefine HAVE_PTHREAD_H
260 /* Define to 1 if yo have the <dirent.h> header file. */
261 #cmakedefine HAVE_DIRENT_H
263 /* Define to 1 if yo have the <regex.h> header file. */
264 #cmakedefine HAVE_REGEX_H
266 /* Define to 1 if you have the <sys/types.h> header file. */
267 #cmakedefine HAVE_SYS_TYPES_H
269 /* Define to 1 if you have the <sys/time.h> header file. */
270 #cmakedefine HAVE_SYS_TIME_H
272 /* Define for sched.h (this is for thread_mpi)*/
275 /* Bytes in IEEE fp word are in big-endian order if set, little-endian if not.
276 Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
277 #cmakedefine GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER
279 /* The two words in a double precision variable are in b ig-endian order if
280 set, little-endian if not. Do NOT assume this is the same as the byte
281 order! Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
282 #cmakedefine GMX_IEEE754_BIG_ENDIAN_WORD_ORDER
284 /* Define if SIGUSR1 is present */
285 #cmakedefine HAVE_SIGUSR1
287 /* The size of int, as computed by sizeof. */
288 #cmakedefine SIZEOF_INT @SIZEOF_INT@
290 /* The size of long int, as computed by sizeof. */
291 #cmakedefine SIZEOF_LONG_INT @SIZEOF_LONG_INT@
293 /* The size of long long int, as computed by sizeof. */
294 #cmakedefine SIZEOF_LONG_LONG_INT @SIZEOF_LONG_LONG_INT@
296 /* The size of off_t, as computed by sizeof. */
297 #cmakedefine SIZEOF_OFF_T @SIZEOF_OFF_T@
299 /* The size of void*, as computed by sizeof. */
300 #cmakedefine SIZEOF_VOIDP @SIZEOF_VOIDP@
302 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
303 #cmakedefine _LARGEFILE_SOURCE
305 /* Define for large files, on AIX-style hosts. */
306 #cmakedefine _LARGE_FILES
308 /* Some systems requires this to be set to 64 for large file support */
309 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
311 /* Define to __inline__ or __inline if that is what the C compiler
312 calls it, or to nothing if inline is not supported under any name. */
314 #define inline ${INLINE_KEYWORD}
317 /* Build special-purpose mdrun library */
318 #cmakedefine GMX_FAHCORE
321 #define FULLINDIRECT 1
322 #define USE_FAH_XDR 1
323 #include "swindirect.h"
326 /* Define if we have pipes */
327 #cmakedefine HAVE_PIPES
329 /* Catch stupid CMake problems on OS X */
331 # if ((defined(__LP64__) && __LP64__ && defined(SIZEOF_VOIDP) && SIZEOF_VOIDP<8) || ( (!defined(__LP64__) || __LP64__==0) && (defined(SIZEOF_VOIDP) && SIZEOF_VOIDP>4)))
332 # error "Inconsistency between current OS X architecture and the one used to generate original"
333 # error "CMake configuration. This is probably caused by starting CMake with the default value"
334 # error "for CMAKE_OSX_ARCHITECTURES (blank), and then changing it. In this case all the tests"
335 # error "will have been performed with the original (now incorrect) architecture."
336 # error "To fix this, set CMAKE_OSX_ARCHITECTURES on the _command_line_ before starting CMake,"
337 # error "or create a new such entry with your choice in the GUI _before_ hitting 'configure'."