rmagick 1.15.17 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- data/ChangeLog +78 -25
- data/README.html +117 -188
- data/README.txt +116 -181
- data/build_tarball.rake +205 -0
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +118 -44
- data/doc/draw.html +57 -99
- data/doc/ex/adaptive_threshold.rb +1 -10
- data/doc/ex/add_noise.rb +4 -5
- data/doc/ex/axes.rb +1 -1
- data/doc/ex/bilevel_channel.rb +2 -13
- data/doc/ex/bounding_box.rb +3 -4
- data/doc/ex/channel.rb +6 -7
- data/doc/ex/clip_path.rb +11 -5
- data/doc/ex/color_histogram.rb +8 -20
- data/doc/ex/composite_layers.rb +53 -0
- data/doc/ex/fill_pattern.rb +26 -0
- data/doc/ex/get_multiline_type_metrics.rb +26 -37
- data/doc/ex/get_type_metrics.rb +25 -25
- data/doc/ex/images/notimplemented.gif +0 -0
- data/doc/ex/level.rb +1 -1
- data/doc/ex/matte_floodfill.rb +5 -6
- data/doc/ex/matte_replace.rb +5 -6
- data/doc/ex/negate_channel.rb +0 -10
- data/doc/ex/opacity.rb +3 -5
- data/doc/ex/polaroid.rb +4 -1
- data/doc/ex/posterize.rb +1 -12
- data/doc/ex/preview.rb +1 -8
- data/doc/ex/radial_blur.rb +1 -11
- data/doc/ex/raise.rb +1 -4
- data/doc/ex/random_threshold_channel.rb +4 -9
- data/doc/ex/sepiatone.rb +2 -9
- data/doc/ex/shadow.rb +12 -18
- data/doc/ex/sketch.rb +2 -9
- data/doc/ex/smile.rb +7 -7
- data/doc/ex/splice.rb +3 -10
- data/doc/ex/stegano.rb +5 -0
- data/doc/ex/threshold.rb +2 -2
- data/doc/ex/transpose.rb +1 -8
- data/doc/ex/transverse.rb +1 -8
- data/doc/ex/trim.rb +1 -2
- data/doc/ex/viewex.rb +4 -5
- data/doc/ex/vignette.rb +1 -8
- data/doc/ex/watermark.rb +1 -0
- data/doc/ex/wet_floor.rb +8 -14
- data/doc/ilist.html +301 -110
- data/doc/image1.html +362 -258
- data/doc/image2.html +429 -286
- data/doc/image3.html +418 -192
- data/doc/imageattrs.html +100 -39
- data/doc/imusage.html +26 -21
- data/doc/index.html +52 -93
- data/doc/info.html +160 -64
- data/doc/magick.html +37 -71
- data/doc/optequiv.html +155 -61
- data/doc/rvg.html +3 -3
- data/doc/rvgclip.html +2 -2
- data/doc/rvggroup.html +2 -2
- data/doc/rvgimage.html +3 -3
- data/doc/rvgpattern.html +3 -3
- data/doc/rvgshape.html +2 -2
- data/doc/rvgstyle.html +2 -2
- data/doc/rvgtext.html +2 -2
- data/doc/rvgtspan.html +4 -4
- data/doc/rvgtut.html +4 -4
- data/doc/rvguse.html +3 -3
- data/doc/rvgxform.html +2 -2
- data/doc/struct.html +26 -29
- data/doc/usage.html +99 -48
- data/examples/crop_with_gravity.rb +46 -0
- data/examples/demo.rb +2 -2
- data/examples/histogram.rb +11 -11
- data/examples/identify.rb +45 -45
- data/examples/spinner.rb +3 -2
- data/ext/RMagick/MANIFEST +7 -8
- data/ext/RMagick/extconf.rb +242 -0
- data/ext/RMagick/rmagick.h +136 -222
- data/ext/RMagick/rmdraw.c +226 -229
- data/ext/RMagick/rmfill.c +69 -118
- data/ext/RMagick/rmilist.c +234 -94
- data/ext/RMagick/rmimage.c +1719 -2564
- data/ext/RMagick/rminfo.c +433 -619
- data/ext/RMagick/rmmain.c +249 -487
- data/ext/RMagick/rmutil.c +344 -563
- data/lib/RMagick.rb +414 -358
- data/lib/rvg/clippath.rb +2 -2
- data/lib/rvg/container.rb +2 -2
- data/lib/rvg/describable.rb +2 -2
- data/lib/rvg/embellishable.rb +2 -2
- data/lib/rvg/misc.rb +3 -3
- data/lib/rvg/paint.rb +2 -7
- data/lib/rvg/pathdata.rb +2 -2
- data/lib/rvg/rvg.rb +2 -2
- data/lib/rvg/stretchable.rb +2 -14
- data/lib/rvg/stylable.rb +2 -2
- data/lib/rvg/text.rb +2 -2
- data/lib/rvg/transformable.rb +2 -2
- data/lib/rvg/units.rb +2 -2
- data/{metaconfig.in → metaconfig} +0 -1
- data/post-setup.rb +1 -1
- data/rmagick.gemspec +6 -9
- metadata +41 -49
- data/Makefile.in +0 -42
- data/configure +0 -12358
- data/configure.ac +0 -791
- data/ext/RMagick/extconf.rb.in +0 -25
- data/ext/RMagick/rmagick_config.h.in +0 -285
- data/gem_extconf.rb +0 -42
data/configure.ac
DELETED
@@ -1,791 +0,0 @@
|
|
1
|
-
|
2
|
-
# RMagick configure.ac
|
3
|
-
|
4
|
-
AC_INIT(RMagick, 1.15.17, rmagick@rubyforge.org, RMagick-1.15.17.tar.gz)
|
5
|
-
echo "Configuring ${PACKAGE_STRING}"
|
6
|
-
|
7
|
-
AC_CONFIG_HEADER([ext/RMagick/rmagick_config.h])
|
8
|
-
|
9
|
-
# Save caller's CFLAGS before configure changes it.
|
10
|
-
rm_saved_CFLAGS=${CFLAGS}
|
11
|
-
|
12
|
-
# Check for required programs
|
13
|
-
AC_PROG_CC
|
14
|
-
AC_PROG_CC_STDC
|
15
|
-
AC_PATH_PROG(RUBY, ruby,)
|
16
|
-
if test -z "$RUBY"; then
|
17
|
-
AC_MSG_ERROR([Can't install $PACKAGE_NAME. Ruby must be installed first.])
|
18
|
-
fi
|
19
|
-
|
20
|
-
|
21
|
-
AC_MSG_CHECKING([Ruby version])
|
22
|
-
RUBYVERS=`${RUBY} --version | cut -d" " -f2`
|
23
|
-
AC_MSG_RESULT($RUBYVERS)
|
24
|
-
RUBYVERS=`echo ${RUBYVERS} | tr -d .`
|
25
|
-
if test $RUBYVERS -ge 190; then
|
26
|
-
AC_MSG_ERROR([$PACKAGE_STRING doesn't work with this version of Ruby. Use $PACKAGE_NAME 2.0.0 or later.])
|
27
|
-
fi
|
28
|
-
|
29
|
-
|
30
|
-
# See if user prefers GraphicsMagick over ImageMagick
|
31
|
-
AC_ARG_WITH(graphics-magick,
|
32
|
-
AS_HELP_STRING([--with-graphics-magick], [configure RMagick with GraphicsMagick]),
|
33
|
-
[with_graphics_magick=$withval],
|
34
|
-
[with_graphics_magick='no'])
|
35
|
-
|
36
|
-
if test "$with_graphics_magick" != 'no' ; then
|
37
|
-
AC_CHECK_PROGS(MAGICKCONFIG, GraphicsMagick-config)
|
38
|
-
if test -z "$MAGICKCONFIG"; then
|
39
|
-
AC_MSG_ERROR([Can't install $PACKAGE_NAME. Can't find GraphicsMagick-config program.])
|
40
|
-
fi
|
41
|
-
MAGICKNAME=GraphicsMagick
|
42
|
-
MAGICKLIB=GraphicsMagick
|
43
|
-
AC_DEFINE(GRAPHICSMAGICK,1)
|
44
|
-
|
45
|
-
# Otherwise see which one is installed
|
46
|
-
else
|
47
|
-
AC_CHECK_PROGS(MAGICKCONFIG, [Magick-config GraphicsMagick-config])
|
48
|
-
if test -z "$MAGICKCONFIG"; then
|
49
|
-
AC_MSG_ERROR([Can't install $PACKAGE_NAME. Can't find Magick-config or GraphicsMagick-config program.])
|
50
|
-
else
|
51
|
-
case "$MAGICKCONFIG" in
|
52
|
-
Magick-config )
|
53
|
-
MAGICKNAME=ImageMagick
|
54
|
-
MAGICKLIB=Magick
|
55
|
-
AC_MSG_CHECKING([ImageMagick version])
|
56
|
-
MAGICKVERS=`${MAGICKCONFIG} --version | cut -d" " -f1`
|
57
|
-
AC_MSG_RESULT($MAGICKVERS)
|
58
|
-
MAGICKVERS=`echo ${MAGICKVERS} | tr -d .`
|
59
|
-
if test $MAGICKVERS -lt 600; then
|
60
|
-
AC_MSG_ERROR([Can't install $PACKAGE_NAME. You must have ImageMagick 6.0.0 or later installed.])
|
61
|
-
fi
|
62
|
-
HDRI=`${MAGICKCONFIG} --version | cut -d" " -f3`
|
63
|
-
if test "$HDRI" = HDRI; then
|
64
|
-
AC_MSG_ERROR([Can't install $PACKAGE_NAME. $PACKAGE_NAME does not work with ImageMagick's HDRI.])
|
65
|
-
fi
|
66
|
-
;;
|
67
|
-
GraphicsMagick-config )
|
68
|
-
MAGICKNAME=GraphicsMagick
|
69
|
-
MAGICKLIB=GraphicsMagick
|
70
|
-
AC_DEFINE(GRAPHICSMAGICK,1)
|
71
|
-
;;
|
72
|
-
esac
|
73
|
-
fi
|
74
|
-
fi
|
75
|
-
|
76
|
-
# Append ***Magick's lists of flags to the user's lists (if any)
|
77
|
-
LDFLAGS="${LDFLAGS} `${MAGICKCONFIG} --ldflags`"
|
78
|
-
CPPFLAGS="${CPPFLAGS} `${MAGICKCONFIG} --cppflags`"
|
79
|
-
|
80
|
-
AC_SUBST(LDFLAGS, ${LDFLAGS})
|
81
|
-
AC_SUBST(CFLAGS, ${rm_saved_CFLAGS})
|
82
|
-
AC_SUBST(CPPFLAGS, ${CPPFLAGS})
|
83
|
-
AC_SUBST(LOCAL_LIBS, `${MAGICKCONFIG} --libs`)
|
84
|
-
|
85
|
-
AC_SEARCH_LIBS(InitializeMagick, [$MAGICKLIB MagickCore], [],
|
86
|
-
[AC_MSG_ERROR([Can't install $PACKAGE_NAME. Can't find lib${MAGICKLIB} or one of the dependent libraries.
|
87
|
-
Check the config.log file for more detailed information.])],
|
88
|
-
[`${MAGICKCONFIG} --libs`])
|
89
|
-
|
90
|
-
|
91
|
-
AC_SUBST(MAGICKLIB)
|
92
|
-
AC_SUBST(MAGICKNAME)
|
93
|
-
AC_SUBST(MAGICKCONFIG)
|
94
|
-
AC_DEFINE_UNQUOTED(MAGICKNAME, $MAGICKNAME)
|
95
|
-
|
96
|
-
# What standard functions?
|
97
|
-
AC_CHECK_FUNCS([snprintf])
|
98
|
-
AC_CHECK_HEADERS(sys/types.h)
|
99
|
-
|
100
|
-
# Append ***Magick's lists of libs to the user's list (if any)
|
101
|
-
LIBS="${LIBS} `${MAGICKCONFIG} --libs`"
|
102
|
-
|
103
|
-
# What ImageMagick/GraphicsMagick functions?
|
104
|
-
AC_CHECK_FUNCS([AcquireMagickMemory])
|
105
|
-
|
106
|
-
# We need to be able to query this later in the configure script, so set a shell variable here
|
107
|
-
# as well as defining a symbol.
|
108
|
-
AC_CHECK_FUNC(AcquireStringInfo,
|
109
|
-
rm_have_acquirestringinfo=yes,
|
110
|
-
rm_have_acquirestringinfo=no)
|
111
|
-
if test "$rm_have_acquirestringinfo" = yes; then
|
112
|
-
AC_DEFINE(HAVE_ACQUIRESTRINGINFO)
|
113
|
-
fi
|
114
|
-
|
115
|
-
AC_CHECK_FUNCS([AdaptiveBlurImageChannel AdaptiveResizeImage AdaptiveSharpenImage])
|
116
|
-
AC_CHECK_FUNCS([AdaptiveThresholdImage AddDefinitions])
|
117
|
-
AC_CHECK_FUNCS([AddNoiseImageChannel AllocateImageProfileIterator BilevelImageChannel BlackThresholdImage])
|
118
|
-
AC_CHECK_FUNCS([BlurImageChannel ClearMagickException CompareImageChannels])
|
119
|
-
AC_CHECK_FUNCS([CompareImageLayers CompositeImageChannel ContrastStretchImageChannel])
|
120
|
-
AC_CHECK_FUNCS([ConvertHSLToRGB ConvertRGBToHSL])
|
121
|
-
AC_CHECK_FUNCS([ConvolveImageChannel EvaluateImageChannel ExportImagePixels])
|
122
|
-
AC_CHECK_FUNCS([FuzzyColorCompare FxImageChannel GammaImageChannel])
|
123
|
-
AC_CHECK_FUNCS([GaussianBlurImageChannel GetBlobSize GetColorHistogram GetColorInfoArray])
|
124
|
-
|
125
|
-
# We need to be able to query these symbols later in the configure script, so set a shell
|
126
|
-
# variable here as well as defining symbols.
|
127
|
-
AC_CHECK_FUNC(GetColorInfoList,
|
128
|
-
rm_have_getcolorinfolist=yes,
|
129
|
-
rm_have_getcolorinfolist=no)
|
130
|
-
if test "$rm_have_getcolorinfolist" = yes; then
|
131
|
-
AC_DEFINE(HAVE_GETCOLORINFOLIST)
|
132
|
-
fi
|
133
|
-
|
134
|
-
AC_CHECK_FUNCS([GetImageChannelDepth GetImageChannelDistortion])
|
135
|
-
AC_CHECK_FUNCS([GetImageChannelExtrema GetImageChannelMean GetImageClipMask])
|
136
|
-
AC_CHECK_FUNCS([GetImageHistogram GetImageProfile GetImageProperty])
|
137
|
-
|
138
|
-
# We need to be able to query this later in the configure script, so set a shell variable here
|
139
|
-
# as well as defining a symbol.
|
140
|
-
AC_CHECK_FUNC(GetImageQuantumDepth,
|
141
|
-
rm_have_getimagequantumdepth=yes,
|
142
|
-
rm_have_getimagequantumdepth=no)
|
143
|
-
if test "$rm_have_getimagequantumdepth" = yes; then
|
144
|
-
AC_DEFINE(HAVE_GETIMAGEQUANTUMDEPTH)
|
145
|
-
fi
|
146
|
-
|
147
|
-
AC_CHECK_FUNCS([GetImageStatistics GetMagickInfoArray])
|
148
|
-
|
149
|
-
AC_CHECK_FUNC(GetMagickPixelPacket,
|
150
|
-
rm_have_getmagickpixelpacket=yes,
|
151
|
-
rm_have_getmagickpixelpacket=no)
|
152
|
-
if test "$rm_have_getmagickpixelpacket" = yes; then
|
153
|
-
AC_DEFINE(HAVE_GETMAGICKPIXELPACKET)
|
154
|
-
fi
|
155
|
-
|
156
|
-
AC_CHECK_FUNC(GetMagickInfoList,
|
157
|
-
rm_have_getmagickinfolist=yes,
|
158
|
-
rm_have_getmagickinfolist=no)
|
159
|
-
if test "$rm_have_getmagickinfolist" = yes; then
|
160
|
-
AC_DEFINE(HAVE_GETMAGICKINFOLIST)
|
161
|
-
fi
|
162
|
-
|
163
|
-
AC_CHECK_FUNCS([GetMagickResourceLimit GetMultilineTypeMetrics GetNextImageAttribute GetNextImageProfile])
|
164
|
-
|
165
|
-
AC_CHECK_FUNC(GetTypeInfoList,
|
166
|
-
rm_have_gettypeinfolist=yes,
|
167
|
-
rm_have_gettypeinfolist=no)
|
168
|
-
if test "$rm_have_gettypeinfolist" = yes; then
|
169
|
-
AC_DEFINE(HAVE_GETTYPEINFOLIST)
|
170
|
-
fi
|
171
|
-
|
172
|
-
AC_CHECK_FUNCS([GrayscalePseudoClassImage ImagesToBlob ImportImagePixels])
|
173
|
-
AC_CHECK_FUNCS([InheritException InterpolatePixelColor InterpretImageAttributes IsColorSimilar])
|
174
|
-
AC_CHECK_FUNCS([IsImageSimilar LinearStretchImage NegateImageChannel])
|
175
|
-
AC_CHECK_FUNCS([NormalizeImageChannel OrderedPosterizeImageChannel])
|
176
|
-
AC_CHECK_FUNCS([ParseSizeGeometry PolaroidImage PosterizeImage PreviewImage])
|
177
|
-
AC_CHECK_FUNCS([QuantumOperatorRegionImage RadialBlurImage RadialBlurImageChannel])
|
178
|
-
AC_CHECK_FUNCS([RandomChannelThresholdImage RandomThresholdImageChannel])
|
179
|
-
AC_CHECK_FUNCS([RecolorImage RemoveFirstImageFromList SeparateImageChannel SepiaToneImage])
|
180
|
-
AC_CHECK_FUNCS([SetImageBackgroundColor SetImageChannelDepth SetImageColorspace SetImageExtent])
|
181
|
-
AC_CHECK_FUNCS([SetImageInfoFile SetImageOption SetImageProperty SetImageRegistry SetImageStorageClass])
|
182
|
-
AC_CHECK_FUNCS([SetImageProgressMonitor ShadowImage SharpenImageChannel])
|
183
|
-
AC_CHECK_FUNCS([SigmoidalContrastImageChannel SketchImage SpliceImage StripImage])
|
184
|
-
AC_CHECK_FUNCS([ThresholdImageChannel TintImage TransposeImage TransverseImage UniqueImageColors])
|
185
|
-
AC_CHECK_FUNCS([UnsharpMaskImageChannel VignetteImage WhiteThresholdImage XImportImage])
|
186
|
-
|
187
|
-
# What typedefs?
|
188
|
-
|
189
|
-
# Need a separate test for this so we can set an env. variable to test below.
|
190
|
-
AC_CHECK_TYPE(MagickBooleanType,
|
191
|
-
rm_have_magickbooleantype=yes,
|
192
|
-
rm_have_magickbooleantype=no,
|
193
|
-
[#include <stdio.h>
|
194
|
-
#if HAVE_SYS_TYPES_H
|
195
|
-
#include <sys/types.h>
|
196
|
-
#endif
|
197
|
-
#include "magick/api.h"])
|
198
|
-
if test "$rm_have_magickbooleantype" = yes; then
|
199
|
-
AC_DEFINE(HAVE_MAGICKBOOLEANTYPE)
|
200
|
-
fi
|
201
|
-
|
202
|
-
AC_CHECK_TYPES([magick_int64_t,
|
203
|
-
magick_uint64_t,
|
204
|
-
ExtendedSignedIntegralType,
|
205
|
-
ExtendedUnsignedIntegralType,
|
206
|
-
MagickOffsetType,
|
207
|
-
MagickSizeType,
|
208
|
-
MagickPixelPacket],
|
209
|
-
[], [],
|
210
|
-
[#include <stdio.h>
|
211
|
-
#if HAVE_SYS_TYPES_H
|
212
|
-
#include <sys/types.h>
|
213
|
-
#endif
|
214
|
-
#include "magick/api.h"])
|
215
|
-
|
216
|
-
|
217
|
-
AC_CHECK_MEMBERS([ExceptionInfo.module],,,
|
218
|
-
[#include <stdio.h>
|
219
|
-
#if HAVE_SYS_TYPES_H
|
220
|
-
#include <sys/types.h>
|
221
|
-
#endif
|
222
|
-
#include "magick/api.h"])
|
223
|
-
|
224
|
-
AC_CHECK_MEMBERS([Image.bias, Image.orientation, Image.quality, Image.ticks_per_second, Image.transparent_color,
|
225
|
-
Image.iptc_profile, Image.generic_profile, Image.generic_profiles],,,
|
226
|
-
[#include <stdio.h>
|
227
|
-
#if HAVE_SYS_TYPES_H
|
228
|
-
#include <sys/types.h>
|
229
|
-
#endif
|
230
|
-
#include "magick/api.h"])
|
231
|
-
|
232
|
-
AC_CHECK_MEMBERS([ImageInfo.orientation, ImageInfo.channel],,,
|
233
|
-
[#include <stdio.h>
|
234
|
-
#if HAVE_SYS_TYPES_H
|
235
|
-
#include <sys/types.h>
|
236
|
-
#endif
|
237
|
-
#include "magick/api.h"])
|
238
|
-
|
239
|
-
|
240
|
-
# Don't use AC_CHECK_MEMBERS!
|
241
|
-
AC_CACHE_CHECK(for Image.extract_info, rm_cv_member_Image_extract_info,
|
242
|
-
AC_TRY_COMPILE([
|
243
|
-
#if HAVE_SYS_TYPES_H
|
244
|
-
#include <sys/types.h>
|
245
|
-
#endif
|
246
|
-
#include <stdio.h>
|
247
|
-
#include "magick/api.h"],
|
248
|
-
[Image i; i.extract_info.x = 0;],
|
249
|
-
rm_cv_member_Image_extract_info=yes,
|
250
|
-
rm_cv_member_Image_extract_info=no))
|
251
|
-
if test "$rm_cv_member_Image_extract_info" = yes; then
|
252
|
-
AC_DEFINE(HAVE_IMAGE_EXTRACT_INFO)
|
253
|
-
fi
|
254
|
-
|
255
|
-
AC_CACHE_CHECK(for CineonLogRGBColorspace enum value, rm_cv_enum_cineonlogrgbcolorspace,
|
256
|
-
[AC_TRY_COMPILE(
|
257
|
-
[#include <stdio.h>
|
258
|
-
#if HAVE_SYS_TYPES_H
|
259
|
-
#include <sys/types.h>
|
260
|
-
#endif
|
261
|
-
#include "magick/api.h"],
|
262
|
-
[ColorspaceType x; x = CineonLogRGBColorspace],
|
263
|
-
rm_cv_enum_cineonlogrgbcolorspace='yes',
|
264
|
-
rm_cv_enum_cineonlogrgbcolorspace='no')])
|
265
|
-
|
266
|
-
if test "$rm_cv_enum_cineonlogrgbcolorspace" = yes; then
|
267
|
-
AC_DEFINE(HAVE_CINEONLOGRGBCOLORSPACE)
|
268
|
-
fi
|
269
|
-
|
270
|
-
AC_CACHE_CHECK(for HSBColorspace enum value, rm_cv_enum_hsbcolorspace,
|
271
|
-
[AC_TRY_COMPILE(
|
272
|
-
[#include <stdio.h>
|
273
|
-
#if HAVE_SYS_TYPES_H
|
274
|
-
#include <sys/types.h>
|
275
|
-
#endif
|
276
|
-
#include "magick/api.h"],
|
277
|
-
[ColorspaceType x; x = HSBColorspace],
|
278
|
-
rm_cv_enum_hsbcolorspace='yes',
|
279
|
-
rm_cv_enum_hsbcolorspace='no')])
|
280
|
-
|
281
|
-
if test "$rm_cv_enum_hsbcolorspace" = yes; then
|
282
|
-
AC_DEFINE(HAVE_HSBCOLORSPACE)
|
283
|
-
fi
|
284
|
-
|
285
|
-
AC_CACHE_CHECK(for LABColorspace enum value, rm_cv_enum_labcolorspace,
|
286
|
-
[AC_TRY_COMPILE(
|
287
|
-
[#include <stdio.h>
|
288
|
-
#if HAVE_SYS_TYPES_H
|
289
|
-
#include <sys/types.h>
|
290
|
-
#endif
|
291
|
-
#include "magick/api.h"],
|
292
|
-
[ColorspaceType x; x = LABColorspace],
|
293
|
-
rm_cv_enum_labcolorspace='yes',
|
294
|
-
rm_cv_enum_labcolorspace='no')])
|
295
|
-
|
296
|
-
if test "$rm_cv_enum_labcolorspace" = yes; then
|
297
|
-
AC_DEFINE(HAVE_LABCOLORSPACE)
|
298
|
-
fi
|
299
|
-
|
300
|
-
AC_CACHE_CHECK(for Rec601LumaColorspace enum value, rm_cv_enum_rec601lumacolorspace,
|
301
|
-
[AC_TRY_COMPILE(
|
302
|
-
[#include <stdio.h>
|
303
|
-
#if HAVE_SYS_TYPES_H
|
304
|
-
#include <sys/types.h>
|
305
|
-
#endif
|
306
|
-
#include "magick/api.h"],
|
307
|
-
[ColorspaceType x; x = Rec601LumaColorspace],
|
308
|
-
rm_cv_enum_rec601lumacolorspace='yes',
|
309
|
-
rm_cv_enum_rec601lumacolorspace='no')])
|
310
|
-
|
311
|
-
if test "$rm_cv_enum_rec601lumacolorspace" = yes; then
|
312
|
-
AC_DEFINE(HAVE_REC601LUMACOLORSPACE)
|
313
|
-
fi
|
314
|
-
|
315
|
-
AC_CACHE_CHECK(for Rec601YCbCrColorspace enum value, rm_cv_enum_rec601ycbcrcolorspace,
|
316
|
-
[AC_TRY_COMPILE(
|
317
|
-
[#include <stdio.h>
|
318
|
-
#if HAVE_SYS_TYPES_H
|
319
|
-
#include <sys/types.h>
|
320
|
-
#endif
|
321
|
-
#include "magick/api.h"],
|
322
|
-
[ColorspaceType x; x = Rec601YCbCrColorspace],
|
323
|
-
rm_cv_enum_rec601ycbcrcolorspace='yes',
|
324
|
-
rm_cv_enum_rec601ycbcrcolorspace='no')])
|
325
|
-
|
326
|
-
if test "$rm_cv_enum_rec601ycbcrcolorspace" = yes; then
|
327
|
-
AC_DEFINE(HAVE_REC601YCBCRCOLORSPACE)
|
328
|
-
fi
|
329
|
-
|
330
|
-
AC_CACHE_CHECK(for Rec709LumaColorspace enum value, rm_cv_enum_rec709lumacolorspace,
|
331
|
-
[AC_TRY_COMPILE(
|
332
|
-
[#include <stdio.h>
|
333
|
-
#if HAVE_SYS_TYPES_H
|
334
|
-
#include <sys/types.h>
|
335
|
-
#endif
|
336
|
-
#include "magick/api.h"],
|
337
|
-
[ColorspaceType x; x = Rec709LumaColorspace],
|
338
|
-
rm_cv_enum_rec709lumacolorspace='yes',
|
339
|
-
rm_cv_enum_rec709lumacolorspace='no')])
|
340
|
-
|
341
|
-
if test "$rm_cv_enum_rec709lumacolorspace" = yes; then
|
342
|
-
AC_DEFINE(HAVE_REC709LUMACOLORSPACE)
|
343
|
-
fi
|
344
|
-
|
345
|
-
AC_CACHE_CHECK(for Rec709YCbCrColorspace enum value, rm_cv_enum_rec709ycbcrcolorspace,
|
346
|
-
[AC_TRY_COMPILE(
|
347
|
-
[#include <stdio.h>
|
348
|
-
#if HAVE_SYS_TYPES_H
|
349
|
-
#include <sys/types.h>
|
350
|
-
#endif
|
351
|
-
#include "magick/api.h"],
|
352
|
-
[ColorspaceType x; x = Rec709YCbCrColorspace],
|
353
|
-
rm_cv_enum_rec709ycbcrcolorspace='yes',
|
354
|
-
rm_cv_enum_rec709ycbcrcolorspace='no')])
|
355
|
-
|
356
|
-
if test "$rm_cv_enum_rec709ycbcrcolorspace" = yes; then
|
357
|
-
AC_DEFINE(HAVE_REC709YCBCRCOLORSPACE)
|
358
|
-
fi
|
359
|
-
|
360
|
-
AC_CACHE_CHECK(for LogColorspace enum value, rm_cv_enum_logcolorspace,
|
361
|
-
[AC_TRY_COMPILE(
|
362
|
-
[#include <stdio.h>
|
363
|
-
#if HAVE_SYS_TYPES_H
|
364
|
-
#include <sys/types.h>
|
365
|
-
#endif
|
366
|
-
#include "magick/api.h"],
|
367
|
-
[ColorspaceType x; x = LogColorspace],
|
368
|
-
rm_cv_enum_logcolorspace='yes',
|
369
|
-
rm_cv_enum_logcolorspace='no')])
|
370
|
-
|
371
|
-
if test "$rm_cv_enum_logcolorspace" = yes; then
|
372
|
-
AC_DEFINE(HAVE_LOGCOLORSPACE)
|
373
|
-
fi
|
374
|
-
|
375
|
-
AC_CACHE_CHECK(for ReplaceCompositeOp enum value, rm_cv_enum_replacecompositeop,
|
376
|
-
[AC_TRY_COMPILE(
|
377
|
-
[#include <stdio.h>
|
378
|
-
#if HAVE_SYS_TYPES_H
|
379
|
-
#include <sys/types.h>
|
380
|
-
#endif
|
381
|
-
#include "magick/api.h"],
|
382
|
-
[CompositeOperator x; x = ReplaceCompositeOp],
|
383
|
-
rm_cv_enum_replacecompositeop='yes',
|
384
|
-
rm_cv_enum_replacecompositeop='no')])
|
385
|
-
|
386
|
-
if test "$rm_cv_enum_replacecompositeop" = yes; then
|
387
|
-
AC_DEFINE(HAVE_REPLACECOMPOSITEOP)
|
388
|
-
fi
|
389
|
-
|
390
|
-
AC_CACHE_CHECK(for DstCompositeOp enum value, rm_cv_enum_dstcompositeop,
|
391
|
-
[AC_TRY_COMPILE(
|
392
|
-
[#include <stdio.h>
|
393
|
-
#if HAVE_SYS_TYPES_H
|
394
|
-
#include <sys/types.h>
|
395
|
-
#endif
|
396
|
-
#include "magick/api.h"],
|
397
|
-
[CompositeOperator x; x = DstCompositeOp],
|
398
|
-
rm_cv_enum_dstcompositeop='yes',
|
399
|
-
rm_cv_enum_dstcompositeop='no')])
|
400
|
-
|
401
|
-
if test "$rm_cv_enum_dstcompositeop" = yes; then
|
402
|
-
AC_DEFINE(HAVE_DSTCOMPOSITEOP)
|
403
|
-
fi
|
404
|
-
|
405
|
-
AC_CACHE_CHECK(for ColorDodgeCompositeOp enum value, rm_cv_enum_ColorDodgeCompositeOp,
|
406
|
-
[AC_TRY_COMPILE(
|
407
|
-
[#include <stdio.h>
|
408
|
-
#if HAVE_SYS_TYPES_H
|
409
|
-
#include <sys/types.h>
|
410
|
-
#endif
|
411
|
-
#include "magick/api.h"],
|
412
|
-
[CompositeOperator x; x = ColorDodgeCompositeOp],
|
413
|
-
rm_cv_enum_ColorDodgeCompositeOp='yes',
|
414
|
-
rm_cv_enum_ColorDodgeCompositeOp='no')])
|
415
|
-
|
416
|
-
if test "$rm_cv_enum_ColorDodgeCompositeOp" = yes; then
|
417
|
-
AC_DEFINE(HAVE_COLORDODGECOMPOSITEOP)
|
418
|
-
fi
|
419
|
-
|
420
|
-
AC_CACHE_CHECK(for IndexChannel enum value, rm_cv_enum_indexchannel,
|
421
|
-
[AC_TRY_COMPILE(
|
422
|
-
[#include <stdio.h>
|
423
|
-
#if HAVE_SYS_TYPES_H
|
424
|
-
#include <sys/types.h>
|
425
|
-
#endif
|
426
|
-
#include "magick/api.h"],
|
427
|
-
[ChannelType x; x = IndexChannel],
|
428
|
-
rm_cv_enum_indexchannel='yes',
|
429
|
-
rm_cv_enum_indexchannel='no')])
|
430
|
-
|
431
|
-
if test "$rm_cv_enum_indexchannel" = yes; then
|
432
|
-
AC_DEFINE(HAVE_INDEXCHANNEL)
|
433
|
-
fi
|
434
|
-
|
435
|
-
AC_CACHE_CHECK(for GrayChannel enum value, rm_cv_enum_graychannel,
|
436
|
-
[AC_TRY_COMPILE(
|
437
|
-
[#include <stdio.h>
|
438
|
-
#if HAVE_SYS_TYPES_H
|
439
|
-
#include <sys/types.h>
|
440
|
-
#endif
|
441
|
-
#include "magick/api.h"],
|
442
|
-
[ChannelType x; x = GrayChannel],
|
443
|
-
rm_cv_enum_graychannel='yes',
|
444
|
-
rm_cv_enum_graychannel='no')])
|
445
|
-
|
446
|
-
if test "$rm_cv_enum_graychannel" = yes; then
|
447
|
-
AC_DEFINE(HAVE_GRAYCHANNEL)
|
448
|
-
fi
|
449
|
-
|
450
|
-
AC_CACHE_CHECK(for AllChannels enum value, rm_cv_enum_allchannels,
|
451
|
-
[AC_TRY_COMPILE(
|
452
|
-
[#include <stdio.h>
|
453
|
-
#if HAVE_SYS_TYPES_H
|
454
|
-
#include <sys/types.h>
|
455
|
-
#endif
|
456
|
-
#include "magick/api.h"],
|
457
|
-
[ChannelType x; x = AllChannels],
|
458
|
-
rm_cv_enum_allchannels='yes',
|
459
|
-
rm_cv_enum_allchannels='no')])
|
460
|
-
|
461
|
-
if test "$rm_cv_enum_allchannels" = yes; then
|
462
|
-
AC_DEFINE(HAVE_ALLCHANNELS)
|
463
|
-
fi
|
464
|
-
|
465
|
-
AC_CACHE_CHECK(for JPEG2000Compression enum value, rm_cv_enum_jpeg2000compression,
|
466
|
-
[AC_TRY_COMPILE(
|
467
|
-
[#include <stdio.h>
|
468
|
-
#if HAVE_SYS_TYPES_H
|
469
|
-
#include <sys/types.h>
|
470
|
-
#endif
|
471
|
-
#include "magick/api.h"],
|
472
|
-
[CompressionType x; x = JPEG2000Compression],
|
473
|
-
rm_cv_enum_jpeg2000compression='yes',
|
474
|
-
rm_cv_enum_jpeg2000compression='no')])
|
475
|
-
|
476
|
-
if test "$rm_cv_enum_jpeg2000compression" = yes; then
|
477
|
-
AC_DEFINE(HAVE_JPEG2000COMPRESSION)
|
478
|
-
fi
|
479
|
-
|
480
|
-
AC_CACHE_CHECK(for UndefinedGravity enum value, rm_cv_enum_undefinedgravity,
|
481
|
-
[AC_TRY_COMPILE(
|
482
|
-
[#include <stdio.h>
|
483
|
-
#if HAVE_SYS_TYPES_H
|
484
|
-
#include <sys/types.h>
|
485
|
-
#endif
|
486
|
-
#include "magick/api.h"],
|
487
|
-
[GravityType x; x = UndefinedGravity],
|
488
|
-
rm_cv_enum_undefinedgravity='yes',
|
489
|
-
rm_cv_enum_undefinedgravity='no')])
|
490
|
-
|
491
|
-
if test "$rm_cv_enum_undefinedgravity" = yes; then
|
492
|
-
AC_DEFINE(HAVE_UNDEFINEDGRAVITY)
|
493
|
-
fi
|
494
|
-
|
495
|
-
AC_CACHE_CHECK(for QuantumPixel enum value, rm_cv_enum_quantumpixel,
|
496
|
-
[AC_TRY_COMPILE(
|
497
|
-
[#include <stdio.h>
|
498
|
-
#if HAVE_SYS_TYPES_H
|
499
|
-
#include <sys/types.h>
|
500
|
-
#endif
|
501
|
-
#include "magick/api.h"],
|
502
|
-
[StorageType x; x = QuantumPixel],
|
503
|
-
rm_cv_enum_quantumpixel='yes',
|
504
|
-
rm_cv_enum_quantumpixel='no')])
|
505
|
-
if test "$rm_cv_enum_quantumpixel" = yes; then
|
506
|
-
AC_DEFINE(HAVE_QUANTUMPIXEL)
|
507
|
-
fi
|
508
|
-
|
509
|
-
AC_CACHE_CHECK(for TransparentVirtualPixelMethod enum value, rm_cv_enum_transparentvirtualpixelmethod,
|
510
|
-
[AC_TRY_COMPILE(
|
511
|
-
[#include <stdio.h>
|
512
|
-
#if HAVE_SYS_TYPES_H
|
513
|
-
#include <sys/types.h>
|
514
|
-
#endif
|
515
|
-
#include "magick/api.h"],
|
516
|
-
[VirtualPixelMethod x; x = TransparentVirtualPixelMethod],
|
517
|
-
rm_cv_enum_transparentvirtualpixelmethod='yes',
|
518
|
-
rm_cv_enum_transparentvirtualpixelmethod='no')])
|
519
|
-
|
520
|
-
if test "$rm_cv_enum_transparentvirtualpixelmethod" = yes; then
|
521
|
-
AC_DEFINE(HAVE_TRANSPARENTVIRTUALPIXELMETHOD)
|
522
|
-
fi
|
523
|
-
|
524
|
-
AC_CACHE_CHECK(for CoalesceLayer enum value, rm_cv_enum_coalescelayer,
|
525
|
-
[AC_TRY_COMPILE(
|
526
|
-
[#include <stdio.h>
|
527
|
-
#if HAVE_SYS_TYPES_H
|
528
|
-
#include <sys/types.h>
|
529
|
-
#endif
|
530
|
-
#include "magick/api.h"],
|
531
|
-
[MagickLayerMethod x; x = CoalesceLayer],
|
532
|
-
rm_cv_enum_coalescelayer='yes',
|
533
|
-
rm_cv_enum_coalescelayer='no')])
|
534
|
-
|
535
|
-
if test "$rm_cv_enum_coalescelayer" = yes; then
|
536
|
-
AC_DEFINE(HAVE_COALESCELAYER)
|
537
|
-
fi
|
538
|
-
|
539
|
-
AC_CACHE_CHECK(for MaxEvaluateOperator enum value, rm_cv_enum_maxevaluateoperator,
|
540
|
-
[AC_TRY_COMPILE(
|
541
|
-
[#include <stdio.h>
|
542
|
-
#if HAVE_SYS_TYPES_H
|
543
|
-
#include <sys/types.h>
|
544
|
-
#endif
|
545
|
-
#include "magick/api.h"],
|
546
|
-
[MagickEvaluateOperator x; x = MaxEvaluateOperator],
|
547
|
-
rm_cv_enum_maxevaluateoperator='yes',
|
548
|
-
rm_cv_enum_maxevaluateoperator='no')])
|
549
|
-
|
550
|
-
if test "$rm_cv_enum_maxevaluateoperator" = yes; then
|
551
|
-
AC_DEFINE(HAVE_MAXEVALUATEOPERATOR)
|
552
|
-
fi
|
553
|
-
|
554
|
-
AC_CACHE_CHECK(for PaletteBilevelMatteType enum value, rm_cv_enum_palettebilevelmattetype,
|
555
|
-
[AC_TRY_COMPILE(
|
556
|
-
[#include <stdio.h>
|
557
|
-
#if HAVE_SYS_TYPES_H
|
558
|
-
#include <sys/types.h>
|
559
|
-
#endif
|
560
|
-
#include "magick/api.h"],
|
561
|
-
[ImageType x; x = PaletteBilevelMatteType],
|
562
|
-
rm_cv_enum_palettebilevelmattetype='yes',
|
563
|
-
rm_cv_enum_palettebilevelmattetype='no')])
|
564
|
-
|
565
|
-
if test "$rm_cv_enum_palettebilevelmattetype" = yes; then
|
566
|
-
AC_DEFINE(HAVE_PALETTEBILEVELMATTETYPE)
|
567
|
-
fi
|
568
|
-
|
569
|
-
if test "$rm_have_getimagequantumdepth" = yes; then
|
570
|
-
# IM 6.0.5 changed the number of arguments to GetImageQuantumDepth.
|
571
|
-
AC_CACHE_CHECK(if GetImageQuantumDepth has only 1 argument, rm_cv_args_get_image_quantum_depth,
|
572
|
-
[AC_TRY_COMPILE(
|
573
|
-
[#include <stdio.h>
|
574
|
-
#if HAVE_SYS_TYPES_H
|
575
|
-
#include <sys/types.h>
|
576
|
-
#endif
|
577
|
-
#include "magick/api.h"],
|
578
|
-
[Image *image; (void)GetImageQuantumDepth(image)],
|
579
|
-
rm_cv_args_get_image_quantum_depth='yes',
|
580
|
-
rm_cv_args_get_image_quantum_depth='no')])
|
581
|
-
|
582
|
-
if test "$rm_cv_args_get_image_quantum_depth" = yes; then
|
583
|
-
AC_DEFINE(HAVE_OLD_GETIMAGEQUANTUMDEPTH)
|
584
|
-
fi
|
585
|
-
fi
|
586
|
-
|
587
|
-
if test "$rm_have_getcolorinfolist" = yes; then
|
588
|
-
# IM 6.1.3 changed the number of arguments to GetColorInfoList
|
589
|
-
AC_CACHE_CHECK(if GetColorInfoList has only 2 arguments, rm_cv_args_get_color_info_list,
|
590
|
-
[AC_TRY_COMPILE(
|
591
|
-
[#include <stdio.h>
|
592
|
-
#if HAVE_SYS_TYPES_H
|
593
|
-
#include <sys/types.h>
|
594
|
-
#endif
|
595
|
-
#include "magick/api.h"],
|
596
|
-
[const char *pattern; unsigned long ncolors; (void)GetColorInfoList(pattern, &ncolors)],
|
597
|
-
rm_cv_args_get_color_info_list='yes',
|
598
|
-
rm_cv_args_get_color_info_list='no')])
|
599
|
-
|
600
|
-
if test "$rm_cv_args_get_color_info_list" = yes; then
|
601
|
-
AC_DEFINE(HAVE_OLD_GETCOLORINFOLIST)
|
602
|
-
fi
|
603
|
-
fi
|
604
|
-
|
605
|
-
if test "$rm_have_gettypeinfolist" = yes; then
|
606
|
-
# IM 6.1.3 changed the number of arguments to GetTypeInfoList
|
607
|
-
AC_CACHE_CHECK(if GetTypeInfoList has only 2 arguments, rm_cv_args_get_type_info_list,
|
608
|
-
[AC_TRY_COMPILE(
|
609
|
-
[#include <stdio.h>
|
610
|
-
#if HAVE_SYS_TYPES_H
|
611
|
-
#include <sys/types.h>
|
612
|
-
#endif
|
613
|
-
#include "magick/api.h"],
|
614
|
-
[const char *pattern; unsigned long ncolors; (void)GetTypeInfoList(pattern, &ncolors)],
|
615
|
-
rm_cv_args_get_type_info_list='yes',
|
616
|
-
rm_cv_args_get_type_info_list='no')])
|
617
|
-
|
618
|
-
if test "$rm_cv_args_get_type_info_list" = yes; then
|
619
|
-
AC_DEFINE(HAVE_OLD_GETTYPEINFOLIST)
|
620
|
-
fi
|
621
|
-
fi
|
622
|
-
|
623
|
-
if test "$rm_have_getmagickinfolist" = yes; then
|
624
|
-
# IM 6.1.3 changed the number of arguments to GetMagickInfoList
|
625
|
-
AC_CACHE_CHECK(if GetMagickInfoList has only 2 arguments, rm_cv_args_get_magick_info_list,
|
626
|
-
[AC_TRY_COMPILE(
|
627
|
-
[#include <stdio.h>
|
628
|
-
#if HAVE_SYS_TYPES_H
|
629
|
-
#include <sys/types.h>
|
630
|
-
#endif
|
631
|
-
#include "magick/api.h"],
|
632
|
-
[const char *pattern; unsigned long ncolors; (void)GetMagickInfoList(pattern, &ncolors)],
|
633
|
-
rm_cv_args_get_magick_info_list='yes',
|
634
|
-
rm_cv_args_get_magick_info_list='no')])
|
635
|
-
|
636
|
-
if test "$rm_cv_args_get_magick_info_list" = yes; then
|
637
|
-
AC_DEFINE(HAVE_OLD_GETMAGICKINFOLIST)
|
638
|
-
fi
|
639
|
-
fi
|
640
|
-
|
641
|
-
# IM 6.2.1 changed the return value from RemoveImageProfile from StringInfo * to
|
642
|
-
# MagickBooleanType. The presence of StringInfo implies RemoveImageProfile.
|
643
|
-
if test "$rm_have_acquirestringinfo" = yes -a "$rm_have_magickbooleantype" = yes; then
|
644
|
-
AC_CACHE_CHECK(if RemoveImageProfile returns MagickBooleanType, rv_cv_args_remove_image_profile,
|
645
|
-
[AC_TRY_COMPILE(
|
646
|
-
[#include <stdio.h>
|
647
|
-
#if HAVE_SYS_TYPES_H
|
648
|
-
#include <sys/types.h>
|
649
|
-
#endif
|
650
|
-
#include "magick/api.h"],
|
651
|
-
[MagickBooleanType bool; Image *image; bool=RemoveImageProfile(image, "icc")],
|
652
|
-
rv_cv_args_remove_image_profile='yes',
|
653
|
-
rv_cv_args_remove_image_profile='no')])
|
654
|
-
|
655
|
-
if test "$rv_cv_args_remove_image_profile" = yes; then
|
656
|
-
AC_DEFINE(HAVE_NEW_REMOVEIMAGEPROFILE)
|
657
|
-
fi
|
658
|
-
fi
|
659
|
-
|
660
|
-
|
661
|
-
# The MagickPixelPacket type was introduced in IM 6.0.0. The GetMagickPixelPacket
|
662
|
-
# function was introduced in 6.2.0. IM 6.3.0 changed the type of the 'color'
|
663
|
-
# member of the ColorInfo structure from PixelPacket to MagickPixelPacket.
|
664
|
-
if test "$rm_have_getmagickpixelpacket" = yes; then
|
665
|
-
AC_CACHE_CHECK(if ColorInfo.color is a MagickPixelPacket, rv_cv_struct_color_info_color,
|
666
|
-
[AC_TRY_COMPILE(
|
667
|
-
[#include <stdio.h>
|
668
|
-
#if HAVE_SYS_TYPES_H
|
669
|
-
#include <sys/types.h>
|
670
|
-
#endif
|
671
|
-
#include "magick/api.h"],
|
672
|
-
[ColorInfo color_info; MagickPixelPacket p; color_info.color = p],
|
673
|
-
rv_cv_struct_color_info_color='yes',
|
674
|
-
rv_cv_struct_color_info_color='no')])
|
675
|
-
|
676
|
-
if test "$rv_cv_struct_color_info_color" = yes; then
|
677
|
-
AC_DEFINE(HAVE_NEW_COLORINFO)
|
678
|
-
fi
|
679
|
-
fi
|
680
|
-
|
681
|
-
# IM 6.4.6-9 changed the number of arguments to ParseSizeGeometry
|
682
|
-
AC_CACHE_CHECK(if ParseSizeGeometry has 4 arguments, rv_cv_have_new_parsesizegeometry,
|
683
|
-
[AC_TRY_COMPILE(
|
684
|
-
[#include <stdio.h>
|
685
|
-
#if HAVE_SYS_TYPES_H
|
686
|
-
#include <sys/types.h>
|
687
|
-
#endif
|
688
|
-
#include "magick/api.h"],
|
689
|
-
[MagickStatusType okay; Image *image; const char *geometry;
|
690
|
-
RectangleInfo *rectangle; ExceptionInfo *exception;
|
691
|
-
okay = ParseSizeGeometry(image, geometry, rectangle, exception);],
|
692
|
-
rv_cv_have_new_parsesizegeometry='yes',
|
693
|
-
rv_cv_have_new_parsesizegeometry='no')])
|
694
|
-
|
695
|
-
if test "$rv_cv_have_new_parsesizegeometry" = yes; then
|
696
|
-
AC_DEFINE(HAVE_NEW_PARSESIZEGEOMETRY)
|
697
|
-
fi
|
698
|
-
|
699
|
-
|
700
|
-
# Where is ****Magick installed?
|
701
|
-
MAGICKPREFIX=`${MAGICKCONFIG} --prefix`
|
702
|
-
|
703
|
-
# Options to pass to ruby config step
|
704
|
-
|
705
|
-
RUBY_CONFIG_OPTS=''
|
706
|
-
|
707
|
-
if test "x$prefix" != xNONE; then
|
708
|
-
RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --prefix=$prefix"
|
709
|
-
fi
|
710
|
-
if test `eval echo $bindir` != NONE/bin; then
|
711
|
-
RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --bin-dir=`eval echo $bindir`"
|
712
|
-
fi
|
713
|
-
if test `eval echo $datadir` != ${prefix}/share; then
|
714
|
-
RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --data-dir=`eval echo $datadir`"
|
715
|
-
fi
|
716
|
-
|
717
|
-
AC_ARG_WITH(ruby-prog,
|
718
|
-
AS_HELP_STRING([--with-ruby-prog=NAME], [the ruby program used for installation [[PREFIX/bin/ruby]]]),
|
719
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --ruby-prog=$withval"
|
720
|
-
RUBY=$withval], )
|
721
|
-
|
722
|
-
AC_ARG_WITH(rbconfig,
|
723
|
-
AS_HELP_STRING([--with-rbconfig=PATH], [your rbconfig to load [[ruby's]]]),
|
724
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --rbconfig=$withval"], )
|
725
|
-
|
726
|
-
AC_ARG_WITH(doc-dir,
|
727
|
-
AS_HELP_STRING([--with-doc-dir=DIR], [RMagick documentation directory [[PREFIX/share/RMagick]]]),
|
728
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --doc-dir=$withval"], )
|
729
|
-
|
730
|
-
AC_ARG_WITH(std-ruby,
|
731
|
-
AS_HELP_STRING([--with-std-ruby=DIR], [the directory for standard ruby libraries [[PREFIX/lib/ruby/1.x]]]),
|
732
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --std-ruby=$withval"], )
|
733
|
-
|
734
|
-
AC_ARG_WITH(site-ruby,
|
735
|
-
AS_HELP_STRING([--with-site-ruby=DIR], [the directory for non-standard ruby libraries [[PREFIX/lib/ruby/site_ruby/1.x]]]),
|
736
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --site-ruby=$withval"], )
|
737
|
-
|
738
|
-
AC_ARG_WITH(site-ruby-common,
|
739
|
-
AS_HELP_STRING([--with-site-ruby-common=DIR], [the directory for version-independent non-standard ruby libraries [[PREFIX/lib/ruby/site_ruby]]]),
|
740
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --site-ruby-common=$withval"], )
|
741
|
-
|
742
|
-
AC_ARG_WITH(rb-dir,
|
743
|
-
AS_HELP_STRING([--with-rb-dir=DIR], [the directory for ruby scripts [[PREFIX/lib/ruby/site_ruby/1.x]]]),
|
744
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --rb-dir=$withval"], )
|
745
|
-
|
746
|
-
AC_ARG_WITH(so-dir,
|
747
|
-
AS_HELP_STRING([--with-so-dir=DIR], [the directory for ruby extensions]),
|
748
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --so-dir=$withval"], )
|
749
|
-
|
750
|
-
AC_ARG_WITH(ruby-path,
|
751
|
-
AS_HELP_STRING([--with-ruby-path=DIR], [path to set to #! line [PREFIX/bin/ruby]]),
|
752
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --ruby-path=$withval"], )
|
753
|
-
|
754
|
-
AC_ARG_WITH(make-prog,
|
755
|
-
AS_HELP_STRING([--with-make-prog=NAME], [the make program to compile ruby extensions [[make]]]),
|
756
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --make-prog=$withval"], )
|
757
|
-
|
758
|
-
AC_ARG_ENABLE(without-ext,
|
759
|
-
AS_HELP_STRING([--enable-without-ext], [does not compile/install ruby extensions [[--disable-without-ext]]]),
|
760
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --without-ext"], )
|
761
|
-
|
762
|
-
AC_ARG_ENABLE(no-harm,
|
763
|
-
AS_HELP_STRING([--enable-no-harm], [only display what to do if given [[--disable-no-harm]]]),
|
764
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --no-harm"], )
|
765
|
-
|
766
|
-
AC_ARG_ENABLE(allow-example-errors,
|
767
|
-
AS_HELP_STRING([--enable-allow-example-errors], [allow installation to proceed even if a lot of examples fail [[--disable-allow-example-errors]]]),
|
768
|
-
[RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --allow-example-errors"], )
|
769
|
-
|
770
|
-
AC_ARG_ENABLE(htmldoc,
|
771
|
-
AS_HELP_STRING([--disable-htmldoc], [skip creating the HTML documentation and examples [[--enable-htmldoc]]]),
|
772
|
-
[if test "$enable_htmldoc" = no; then
|
773
|
-
RUBY_CONFIG_OPTS="$RUBY_CONFIG_OPTS --disable-htmldoc"
|
774
|
-
fi], )
|
775
|
-
|
776
|
-
|
777
|
-
RUBY_VERSION_STRING=`$RUBY --version`
|
778
|
-
AC_DEFINE_UNQUOTED(RUBY_VERSION_STRING, "$RUBY_VERSION_STRING")
|
779
|
-
AC_SUBST(RUBY)
|
780
|
-
AC_SUBST(RUBY_CONFIG_OPTS)
|
781
|
-
|
782
|
-
AC_CONFIG_FILES(Makefile ext/RMagick/extconf.rb metaconfig)
|
783
|
-
AC_OUTPUT
|
784
|
-
|
785
|
-
|
786
|
-
MAGICKVERS=`${MAGICKCONFIG} --version | cut -d" " -f1`
|
787
|
-
AC_MSG_NOTICE([
|
788
|
-
|
789
|
-
This installation of $PACKAGE_STRING is configured for $RUBY_VERSION_STRING and $MAGICKNAME $MAGICKVERS.])
|
790
|
-
|
791
|
-
|