File: ax-check-library.patch

package info (click to toggle)
normaliz 3.11.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 40,448 kB
  • sloc: cpp: 48,104; makefile: 2,247; sh: 1
file content (48 lines) | stat: -rw-r--r-- 2,301 bytes parent folder | download | duplicates (3)
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
Description: Use AX_CHECK_LIBRARY from autoconf-archive
 Upstream uses its own modified version (likely based on GAP's) with more
 arguments, but we remove it and use autoconf-archive's version.  This was
 causing extraneous error messages to appear in the build.
Author: Doug Torrance <dtorrance@debian.org>
Forwarded: not-needed
Last-Update: 2023-12-19

--- a/configure.ac
+++ b/configure.ac
@@ -98,8 +98,8 @@
 LDFLAGS="$LDFLAGS $GMP_LDFLAGS"
 dnl AX_CHECK_LIBRARY([GMP], [gmp.h], [gmp], [__gmpz_init],
 dnl     [], AC_MSG_ERROR([Unable to find GMP]))
-AX_CHECK_LIBRARY([GMPXX], [gmpxx.h], [gmpxx], [__gmpz_init],
-    [], [AC_MSG_ERROR([GMP C++ library not found. Make sure it was compiled with --enable-cxx])], [-lgmp])
+AX_CHECK_LIBRARY([GMPXX], [gmpxx.h], [gmpxx],
+    [], [AC_MSG_ERROR([GMP C++ library not found. Make sure it was compiled with --enable-cxx])])
 
 AC_MSG_CHECKING([whether a simple GMP C++ program compiles and links])
 LIBS_SAVED="$LIBS"
@@ -223,7 +223,7 @@
 AS_IF([test "x$with_flint" != xno],
     [AC_MSG_CHECKING([whether flint headers and library are available])
      FLINT_LIBS="-lflint -lmpfr"
-     AX_CHECK_LIBRARY([FLINT], [flint/flint.h], [flint], [fmpz_poly_set_coeff_fmpz],[],[],[$GMP_LIBS])
+     AX_CHECK_LIBRARY([FLINT], [flint/flint.h], [flint], [],[])
      AS_IF([test x$ax_cv_have_FLINT = xyes],
        [
          CPPFLAGS="$CPPFLAGS $FLINT_CPPFLAGS"
@@ -324,7 +324,7 @@
 AS_IF([test "x$with_nauty" != xno],
     [AC_MSG_CHECKING([whether nauty headers and library are available (nauty/nauty.h)])
      NAUTY_LIBS="-lnauty"
-     AX_CHECK_LIBRARY([NAUTYNAUTY], [nauty/nauty.h], [nauty], [densenauty],[],[],[$GMP_LIBS])
+     AX_CHECK_LIBRARY([NAUTYNAUTY], [nauty/nauty.h], [nauty], [],[])
      AS_IF([test x$ax_cv_have_NAUTYNAUTY = xyes],
        [
          CPPFLAGS="$CPPFLAGS $NAUTY_CPPFLAGS"
@@ -351,7 +351,7 @@
 AS_IF([test "x$with_nauty" != xno && test "x$ax_cv_have_NAUTYNAUTY" != xyes],
     [AC_MSG_CHECKING([whether nauty headers and library are available (nauty.h)])
      NAUTY_LIBS="-lnauty"
-     AX_CHECK_LIBRARY([NAUTY], [nauty.h], [nauty], [densenauty],[],[],[$GMP_LIBS])
+     AX_CHECK_LIBRARY([NAUTY], [nauty.h], [nauty], [],[])
      AS_IF([test x$ax_cv_have_NAUTY = xyes],
        [
          CPPFLAGS="$CPPFLAGS $NAUTY_CPPFLAGS"