ufraw-0.17-cfitsio-automagic.patch 933 B

1234567891011121314151617181920212223242526272829
  1. diff -ru ufraw-0.17.orig/configure.ac ufraw-0.17/configure.ac
  2. --- ufraw-0.17.orig/configure.ac 2010-04-02 16:16:08.000000000 +0200
  3. +++ ufraw-0.17/configure.ac 2010-04-02 16:19:33.000000000 +0200
  4. @@ -246,11 +246,19 @@
  5. [ have_png=no
  6. AC_MSG_RESULT($LIBPNG_PKG_ERRORS) ] )
  7. -PKG_CHECK_MODULES(CFITSIO, cfitsio,
  8. - [ have_cfitsio=yes
  9. - AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ],
  10. - [ have_cfitsio=no
  11. - AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] )
  12. +AC_ARG_WITH([cfitsio],
  13. + [AS_HELP_STRING([--with-cfitsio],
  14. + [build fits support @<:@default=check@:>@])],
  15. + [],
  16. + [with_cfitsio=check])
  17. +
  18. +have_cfitsio=no
  19. +AS_IF([test "x$with_cfitsio" != xno],
  20. + [PKG_CHECK_MODULES(CFITSIO, cfitsio,
  21. + [ have_cfitsio=yes
  22. + AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ],
  23. + [ have_cfitsio=no
  24. + AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] ) ] )
  25. PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.16,
  26. [ have_exiv2=yes