Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 312935 | Differences between
and this patch

Collapse All | Expand All

(-)ufraw-0.19.old/configure.ac (-30 / +99 lines)
Lines 226-275 Link Here
226
AC_CHECK_FUNCS(memmem)
226
AC_CHECK_FUNCS(memmem)
227
227
228
# Check for zlib.
228
# Check for zlib.
229
AC_CHECK_LIB(z, deflate)
229
AC_ARG_WITH([zlib],
230
have_zlib=${ac_cv_lib_z_deflate:-no}
230
  [AS_HELP_STRING([--with-zlib],
231
  [build zlib support <:@default=check@:>@])],
232
  [],
233
  [with_zlib=check])
231
234
235
AS_IF([test "x$with_zlib" != "xno"],
236
  [AC_CHECK_LIB([z], [deflate])])
237
have_zlib=${ac_cv_lib_z_deflate:-no}
238
 
232
# Check for libbz2
239
# Check for libbz2
233
AC_CHECK_LIB(bz2, BZ2_bzReadOpen)
240
AC_ARG_WITH([bzip2],
234
have_libbz2=${ac_cv_lib_bz2_BZ2_bzReadOpen:-no}
241
  [AS_HELP_STRING([--with-bzip2],
242
  [build bzip2 support <:@default=check@:>@])],
243
  [],
244
  [with_bzip2=check])
235
245
246
AS_IF([test "x$with_bzip2" != "xno"],
247
  [AC_CHECK_LIB([bz2], [BZ2_bzReadOpen])])
248
have_libbz2=${ac_cv_lib_bz2_BZ2_bzReadOpen:-no}
249
 
236
# Check for jpeg headers and library.
250
# Check for jpeg headers and library.
237
AC_CHECK_HEADER(jpeglib.h,
251
AC_ARG_WITH([jpeg],
238
  AC_CHECK_LIB(jpeg, jpeg_CreateCompress))
252
  [AS_HELP_STRING([--with-jpeg],
253
  [build jpeg support <:@default=check@:>@])],
254
  [],
255
  [with_jpeg=check])
256
257
AS_IF([test "x$with_jpeg" != "xno"],
258
  [AC_CHECK_HEADER([jpeglib.h],
259
    [AC_CHECK_LIB([jpeg], [jpeg_CreateCompress])])])
239
have_jpeg=${ac_cv_lib_jpeg_jpeg_CreateCompress:-no}
260
have_jpeg=${ac_cv_lib_jpeg_jpeg_CreateCompress:-no}
240
261
241
# Check for libjasper.
262
# Check for libjasper.
242
AC_CHECK_LIB(jasper, jas_image_decode)
263
AC_ARG_WITH([jasper],
264
  [AS_HELP_STRING([--with-jasper],
265
  [build jasper support <:@default=check@:>@])],
266
  [],
267
  [with_jasper=check])
268
269
AS_IF([test "x$with_jasper" != "xno"],
270
  [AC_CHECK_LIB([jasper], [jas_image_decode])])
243
have_jasper=${ac_cv_lib_jasper_jas_image_decode:-no}
271
have_jasper=${ac_cv_lib_jasper_jas_image_decode:-no}
244
272
245
# Check for tiff headers and library.
273
# Check for tiff headers and library.
274
AC_ARG_WITH([tiff],
275
  [AS_HELP_STRING([--with-tiff],
276
  [build tiff support <:@default-check@:>@])],
277
  [],
278
  [with_tiff=check])
279
280
AS_IF([test "x$with_tiff" != "xno"],
281
  [AC_CHECK_HEADER([tiffio.h],
282
    [AC_CHECK_LIB([tiff], [TIFFSetErrorHandler])])])
246
AC_CHECK_HEADER(tiffio.h,
283
AC_CHECK_HEADER(tiffio.h,
247
  AC_CHECK_LIB(tiff, TIFFSetErrorHandler))
284
  AC_CHECK_LIB(tiff, TIFFSetErrorHandler))
248
have_tiff=${ac_cv_lib_tiff_TIFFSetErrorHandler:-no}
285
have_tiff=${ac_cv_lib_tiff_TIFFSetErrorHandler:-no}
249
286
250
PKG_CHECK_MODULES(LIBPNG, libpng,
287
AC_ARG_WITH([libpng],
251
  [ have_png=yes
288
  [AS_HELP_STRING([--with-libpng],
252
    AC_DEFINE(HAVE_LIBPNG, 1, have the png library) ],
289
  [build libpng support <:@default=check@:>@])],
253
  [ have_png=no
290
  [],
254
    AC_MSG_RESULT($LIBPNG_PKG_ERRORS) ] )
291
  [with_libpng=check])
255
292
256
PKG_CHECK_MODULES(CFITSIO, cfitsio,
293
have_png=no
257
  [ have_cfitsio=yes
294
AS_IF([test "x$with_libpng" != xno],
258
    AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ],
295
  [PKG_CHECK_MODULES(LIBPNG, libpng,
259
  [ have_cfitsio=no
296
    [ have_png=yes
260
    AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] )
297
      AC_DEFINE(HAVE_LIBPNG, 1, have the png library) ],
261
298
    [ have_png=no
262
PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.20,
299
      AC_MSG_RESULT($LIBPNG_PKG_ERRORS)])])
263
  [ have_exiv2=yes
300
264
    AC_DEFINE(HAVE_EXIV2, 1, have the exiv2 library) ],
301
AC_ARG_WITH([cfitsio],
265
  [ have_exiv2=no
302
  [AS_HELP_STRING([--with-cfitsio],
266
    AC_MSG_RESULT($EXIV2_PKG_ERRORS) ] )
303
  [build fits support @<:@default=check@:>@])],
267
304
  [],
268
PKG_CHECK_MODULES(LENSFUN, lensfun >= 0.2.5,
305
  [with_cfitsio=check])
269
  [ have_lensfun=yes
306
270
    AC_DEFINE(HAVE_LENSFUN, 1, have the lensfun library) ],
307
have_cfitsio=no
271
  [ have_lensfun=no
308
AS_IF([test "x$with_cfitsio" != xno],
272
    AC_MSG_RESULT($LENSFUN_PKG_ERRORS) ] )
309
  [PKG_CHECK_MODULES(CFITSIO, cfitsio,
310
    [ have_cfitsio=yes
311
      AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ],
312
    [ have_cfitsio=no
313
      AC_MSG_RESULT($CFITSIO_PKG_ERRORS)])])
314
315
AC_ARG_WITH([exiv2],
316
  [AS_HELP_STRING([--with-exiv2],
317
  [build exiv2 support @<:@default=check@:>@])],
318
  [],
319
  [with_exiv2=check])
320
321
have_exiv2=no
322
AS_IF([test "x$with_exiv2" != xno],
323
  [PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.20,
324
    [ have_exiv2=yes
325
      AC_DEFINE(HAVE_EXIV2, 1, have the exiv2 library) ],
326
    [ have_exiv2=no
327
      AC_MSG_RESULT($EXIV2_PKG_ERRORS)])])
328
329
AC_ARG_WITH([lensfun],
330
  [AS_HELP_STRING([--with-lensfun],
331
  [build lensfun support @<:@default=check@:>@])],
332
  [],
333
  [with_lensfun=check])
334
335
have_lensfun=no
336
AS_IF([test "x$with_lensfun" != xno],
337
  [PKG_CHECK_MODULES(LENSFUN, lensfun >= 0.2.5,
338
    [ have_lensfun=yes
339
      AC_DEFINE(HAVE_LENSFUN, 1, have the lensfun library) ],
340
    [ have_lensfun=no
341
      AC_MSG_RESULT($LENSFUN_PKG_ERRORS)])])
273
342
274
# UFRAW_CPPFLAGS is added to the preprocessor flags AM_CPPFLAGS,
343
# UFRAW_CPPFLAGS is added to the preprocessor flags AM_CPPFLAGS,
275
# affecting also the C and C++ compilers.
344
# affecting also the C and C++ compilers.

Return to bug 312935