]> granicus.if.org Git - imagemagick/blob - MagickCore/magick-config.h
(no commit message)
[imagemagick] / MagickCore / magick-config.h
1 /*
2   Copyright 2012 ImageMagick Studio LLC, a non-profit organization
3   dedicated to making software imaging solutions freely available.
4
5   You may not use this file except in compliance with the License.
6   obtain a copy of the License at
7
8     http://www.imagemagick.org/script/license.php
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   MagickConfig not autogenerated (fixed stuff)
17 */
18 #ifndef _MAGICKCORE_MAGICK_CONFIG_H
19 #define _MAGICKCORE_MAGICK_CONFIG_H
20
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24
25 #include "MagickCore/magick-baseconfig.h"
26
27 #if defined __CYGWIN32__ && !defined __CYGWIN__
28    /* For backwards compatibility with Cygwin b19 and
29       earlier, we define __CYGWIN__ here, so that
30       we can rely on checking just for that macro. */
31 #  define __CYGWIN__  __CYGWIN32__
32 #endif
33
34 /*! stringify */
35 #define MAGICKCORE_STRING_QUOTE(str) #str
36 #define MAGICKCORE_STRING_XQUOTE(str) MAGICKCORE_STRING_QUOTE(str)
37
38 /*  ABI SUFFIX */
39 #ifndef MAGICKCORE_HDRI_SUPPORT
40 #define MAGICKCORE_ABI_SUFFIX  "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH)
41 #else 
42 #define MAGICKCORE_ABI_SUFFIX "Q" MAGICKCORE_STRING_XQUOTE(MAGICKCORE_QUANTUM_DEPTH) "-HDRI"
43 #endif 
44
45 /* some path game */
46 #if !defined __CYGWIN__
47 # if defined (_WIN32) || defined (_WIN64) || defined (__MSDOS__) || defined (__DJGPP__) || defined (__OS2__)
48    /* Use Windows separators on all _WIN32 defining
49       environments, except Cygwin. */
50 #  define MAGICKCORE_DIR_SEPARATOR_CHAR         '\\'
51 #  define MAGICKCORE_DIR_SEPARATOR              "\\"
52 #  define MAGICKCORE_PATH_SEPARATOR_CHAR        ';'
53 #  define MAGICKCORE_PATH_SEPARATOR             ";"
54 # endif
55 #endif
56  
57 /* posix */
58 #ifndef MAGICKCORE_DIR_SEPARATOR_CHAR
59    /* Assume that not having this is an indicator that all
60       are missing. */
61 #  define MAGICKCORE_DIR_SEPARATOR_CHAR         '/'
62 #  define MAGICKCORE_DIR_SEPARATOR              "/"
63 #  define MAGICKCORE_PATH_SEPARATOR_CHAR        ':'
64 #  define MAGICKCORE_PATH_SEPARATOR             ":"
65 #endif /* !DIR_SEPARATOR_CHAR */
66  
67 /* module dir */
68 #ifndef MAGICKCORE_MODULES_DIRNAME
69 # define MAGICKCORE_MODULES_DIRNAME MAGICKCORE_MODULES_BASEDIRNAME "-" MAGICKCORE_ABI_SUFFIX
70 #endif
71  
72 #ifndef MAGICKCORE_MODULES_PATH
73 #  define MAGICKCORE_MODULES_PATH MAGICKCORE_LIBRARY_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME
74 #endif
75  
76 #ifndef MAGICKCORE_MODULES_RELATIVE_PATH
77 #define MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_LIBRARY_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_MODULES_DIRNAME
78 #endif
79  
80 /* Subdirectory under lib to place ImageMagick coder module files */
81 #ifndef MAGICKCORE_CODER_PATH
82 # if defined(vms)
83 #  define MAGICKCORE_CODER_PATH "sys$login:"
84 # else
85 #  define MAGICKCORE_CODER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME
86 # endif
87 #endif
88  
89 #ifndef MAGICKCORE_CODER_RELATIVE_PATH
90 # define MAGICKCORE_CODER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_CODER_DIRNAME
91 #endif
92  
93 /* subdirectory under lib to place ImageMagick filter module files */
94 #ifndef MAGICKCORE_FILTER_PATH
95 # if defined(vms)
96 #  define MAGICKCORE_FILTER_PATH  "sys$login:"
97 # else
98 #  define MAGICKCORE_FILTER_PATH MAGICKCORE_MODULES_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME
99 # endif
100 #endif
101  
102 #ifndef MAGICKCORE_FILTER_RELATIVE_PATH
103 # define MAGICKCORE_FILTER_RELATIVE_PATH MAGICKCORE_MODULES_RELATIVE_PATH MAGICKCORE_DIR_SEPARATOR MAGICKCORE_FILTER_DIRNAME
104 #endif
105  
106 #if defined(__cplusplus) || defined(c_plusplus)
107 }
108 #endif
109  
110 #endif