1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
From: Ole Streicher <olebole@debian.org>
Date: Thu, 14 Mar 2024 17:35:32 +0100
Subject: Use the correct wcstools library and include files
---
configure.in | 6 +++---
fitscut.c | 2 +-
wcs_align.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/configure.in b/configure.in
index 4aca2c2..870ed87 100644
--- a/configure.in
+++ b/configure.in
@@ -120,13 +120,13 @@ AC_CHECK_LIB(nsl, main)
AC_CHECK_LIB(png, png_read_info)
AC_CHECK_LIB(jpeg, jpeg_destroy_decompress)
AC_CHECK_LIB(cfitsio, ffvers)
-AC_CHECK_LIB(wcs, wcsinit, have_libwcs=yes, have_libwcs=no)
+AC_CHECK_LIB(wcstools, wcsinit, have_libwcs=yes, have_libwcs=no)
AM_CONDITIONAL(HAVE_LIBWCS, test "x$have_libwcs" = "xyes")
if test "x$have_libwcs" = "xyes"; then
- AC_DEFINE([HAVE_LIBWCS], 1, [Defined when libwcs is detected])
- WCS_LIBS="-lwcs"
+ AC_DEFINE([HAVE_LIBWCS], 1, [Defined when libwcstools is detected])
+ WCS_LIBS="-lwcstools"
AC_SUBST(WCS_LIBS)
fi
diff --git a/fitscut.c b/fitscut.c
index ae395c9..e3af7d2 100644
--- a/fitscut.c
+++ b/fitscut.c
@@ -105,7 +105,7 @@ extern char *alloca ();
#endif
#ifdef HAVE_LIBWCS
-#include <libwcs/wcs.h>
+#include <wcstools/wcs.h>
#endif
#include "tailor.h"
diff --git a/wcs_align.c b/wcs_align.c
index 0046ec0..af794e6 100644
--- a/wcs_align.c
+++ b/wcs_align.c
@@ -35,7 +35,7 @@
#include <ctype.h>
#include "fitscut.h"
-#include <libwcs/wcs.h>
+#include <wcstools/wcs.h>
#include "wcs_align.h"
#ifdef STDC_HEADERS
|