--- CCfits/configure.ac 2015-12-30 21:52:59.000000000 +0100 +++ CCfits/configure.ac 2017-09-11 10:08:01.924873280 +0200 @@ -34,7 +34,7 @@ dnl Get the path to the standard C++ library PFK_CXX_LIB_PATH dnl Turn on -Wall if compiling with gcc -AC_COMPILE_WARNINGS +#AC_COMPILE_WARNINGS dnl Turn on -ansi if compiling with gcc #AC_COMPILE_ANSI @@ -51,7 +45,7 @@ dnl check where the cfitsio library and include files are at. dnl NOTE: do this before checking sstream, else it fails. -AC_CHECK_PACKAGE(cfitsio, ffpss, cfitsio, fitsio.h, +PKG_CHECK_MODULES(cfitsio, [cfitsio], AC_MSG_RESULT([cfitsio found.]), AC_MSG_ERROR([cfitsio NOT found]) ) --- CCfits/Makefile.am.underlinking 2017-09-11 10:26:26.528789345 +0200 +++ CCfits/Makefile.am 2017-09-11 10:26:14.225879472 +0200 @@ -63,7 +63,7 @@ # This will tell shared library which STD C++ library to use without # needing the user to use LD_LIBRARY_PATH environment variable -libCCfits_la_LIBADD = $(LIBSTDCPP) +libCCfits_la_LIBADD = $(LIBSTDCPP) $(cfitsio_LIBS) libCCfits_ladir = $(pkgincludedir)