Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
use AC_LINK_IFELSE instead of obsolete AC_TRY_LINK
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase authored and Matthias Koeppe committed Jul 19, 2021
1 parent f826ded commit 56016ce
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build/pkgs/4ti2/spkg-configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ SAGE_SPKG_CONFIGURE([4ti2], [
FORTYTWO_LIBS="-l4ti2gmp -lzsolve"
CXXFLAGS="${BACKUP_CXXFLAGS} ${FORTYTWO_CXXFLAGS} ${GMP_CFLAGS}"
LIBS="${BACKUP_LIBS} ${FORTYTWO_LIBS} ${GMP_LIBS}"
AC_TRY_LINK([
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include "4ti2/4ti2.h"
],
[ _4ti2_rays_create_state(_4ti2_PREC_INT_ARB);
], [
]], [[ _4ti2_rays_create_state(_4ti2_PREC_INT_ARB);
]])],[
AC_MSG_RESULT([yes])
], [
],[
AC_MSG_RESULT([no])
sage_spkg_install_4ti2=yes
])
Expand Down

0 comments on commit 56016ce

Please sign in to comment.