Skip to content

Commit

Permalink
Use new CHECK_NMZ_MACRO to check if we need to link against nauty
Browse files Browse the repository at this point in the history
Previously, we always linked against nauty, but it might not be
necessary if libnormaliz was built w/o the nauty package
  • Loading branch information
d-torrance committed Sep 9, 2024
1 parent 4c2cbf3 commit 2fd6d10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion M2/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1043,9 +1043,10 @@ AS_IF([test $BUILD_normaliz = no],
AC_MSG_CHECKING([for libnormaliz])
AC_LANG(C++)
SAVELIBS=$LIBS
LIBS="$LIBS -lnormaliz -lnauty -lgmp"
LIBS="$LIBS -lnormaliz -lgmp"
CHECK_NMZ_PACKAGE([ENFNORMALIZ], [-leantic -leanticxx])
CHECK_NMZ_PACKAGE([NMZ_COCOA], [-lcocoa])
CHECK_NMZ_PACKAGE([NMZ_NAUTY], [-lnauty])
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([
#include <libnormaliz/cone.h>
Expand Down

0 comments on commit 2fd6d10

Please sign in to comment.