1 /*=========================================================================
4 Module: $RCSfile: gdcmConfigure.h.in,v $
6 Date: $Date: 2007/05/23 14:18:03 $
7 Version: $Revision: 1.22 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #ifndef __gdcmConfigure_h
20 #define __gdcmConfigure_h
22 /* This header is configured by GDCM's build process. */
24 /*--------------------------------------------------------------------------*/
25 /* Platform Features */
28 #cmakedefine GDCM_WORDS_BIGENDIAN
30 /* Allow access to UINT32_MAX , cf gdcmCommon.h */
31 #define __STDC_LIMIT_MACROS
33 /* Hard code the path to the public dictionary */
34 #define PUB_DICT_PATH "@GDCM_PUB_DICT_PATH@"
36 /* Hardcode the path to GDCM_DATA_ROOT */
37 #define GDCM_DATA_ROOT "@GDCM_DATA_ROOT@"
39 /* Usefull in particular for loadshared where the full path
40 * to the lib is needed */
41 #define GDCM_EXECUTABLE_OUTPUT_PATH "@EXECUTABLE_OUTPUT_PATH@"
42 #define GDCM_LIBRARY_OUTPUT_PATH "@LIBRARY_OUTPUT_PATH@"
44 /* For older gcc / broken plateform */
45 #cmakedefine GDCM_NO_ANSI_STRING_STREAM
47 /* I guess something important */
48 #cmakedefine CMAKE_HAVE_STDINT_H
49 #cmakedefine CMAKE_HAVE_INTTYPES_H
51 /* This variable allows you to have helpful debug statement */
52 /* That are in between #ifdef / endif in the gdcm code */
53 /* That means if GDCM_DEBUG is OFF there shouldn't be any 'cout' at all ! */
54 /* only cerr, for instance 'invalid file' will be allowed */
55 #cmakedefine GDCM_DEBUG
57 /* Whether we are building shared libraries. */
58 /* This was important as long as GDCM is LGPL */
59 #cmakedefine BUILD_SHARED_LIBS
61 /* GDCM uses __FUNCTION__ which is not ANSI C, but C99 */
62 #cmakedefine GDCM_COMPILER_HAS_FUNCTION
64 #define GDCM_SIZEOF_LONG @GDCM_SIZEOF_LONG@
66 /* Special time structure support */
67 #cmakedefine CMAKE_HAVE_SYS_TIMES_H
68 #cmakedefine CMAKE_HAVE_SYS_TIMEB_H
70 /* GetMacAddress require a lot of include file to access low level API */
71 #cmakedefine CMAKE_HAVE_UNISTD_H
72 #cmakedefine CMAKE_HAVE_STDLIB_H
73 #cmakedefine CMAKE_HAVE_SYS_IOCTL_H
74 #cmakedefine CMAKE_HAVE_SYS_SOCKET_H
75 #cmakedefine CMAKE_HAVE_SYS_SOCKIO_H
76 #cmakedefine CMAKE_HAVE_NET_IF_H
77 #cmakedefine CMAKE_HAVE_NETINET_IN_H
78 #cmakedefine CMAKE_HAVE_NET_IF_DL_H
79 #cmakedefine CMAKE_HAVE_NET_IF_ARP_H
80 #cmakedefine HAVE_SA_LEN
82 #cmakedefine GDCM_FORCE_BIGENDIAN_EMULATION
84 /*--------------------------------------------------------------------------*/
88 #define GDCM_MAJOR_VERSION @GDCM_MAJOR_VERSION@
89 #define GDCM_MINOR_VERSION @GDCM_MINOR_VERSION@
90 #define GDCM_BUILD_VERSION @GDCM_BUILD_VERSION@
91 #define GDCM_VERSION "@GDCM_VERSION@"
93 /*--------------------------------------------------------------------------*/
94 /* GDCM deprecation mechanism */
95 #cmakedefine GDCM_LEGACY_REMOVE
96 #cmakedefine GDCM_LEGACY_SILENT
98 /*--------------------------------------------------------------------------*/
99 /* Will be usefull to use 2 different versions of gdcm. */
100 /* e.g. : ITK uses gdcm1.2; vtkgdcmImageReader uses gdcm1.3 */
102 #define GDCM_NAME_SPACE @GDCM_NAME_SPACE@