[PPL-devel] [GIT] ppl/ppl(devel): Use AC_LINK_IFELSE instead of deprecated AC_TRY_LINK.

Roberto Bagnara roberto.bagnara at bugseng.com
Fri Oct 16 10:13:46 CEST 2020


Module: ppl/ppl
Branch: devel
Commit: a69a1f6469355b66af9bf10536dc79af647020a6
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=a69a1f6469355b66af9bf10536dc79af647020a6

Author: Roberto Bagnara <roberto.bagnara at bugseng.com>
Date:   Fri Oct 16 10:13:12 2020 +0200

Use AC_LINK_IFELSE instead of deprecated AC_TRY_LINK.

---

 m4/ppl.m4   | 8 ++++----
 m4/ppl_c.m4 | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/m4/ppl.m4 b/m4/ppl.m4
index 2b1d7a0e9..31476c286 100644
--- a/m4/ppl.m4
+++ b/m4/ppl.m4
@@ -247,14 +247,14 @@ else
       echo "*** Could not run PPL test program, checking why..."
       CPPFLAGS="$CPPFLAGS $PPL_CPPFLAGS"
       LDFLAGS="$LDFLAGS $PPL_LDFLAGS"
-      AC_TRY_LINK([
+      AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #include <ppl.hh>
 using namespace Parma_Polyhedra_Library;
-],
-[
+]],
+[[
   return version_major() || version_minor()
   || version_revision() || version_beta();
-],
+]])],
 [
   echo "*** The test program compiled, but did not run.  This usually means"
   echo "*** that the run-time linker is not finding the PPL or finding the"
diff --git a/m4/ppl_c.m4 b/m4/ppl_c.m4
index 968c0cab0..3daa71ee5 100644
--- a/m4/ppl_c.m4
+++ b/m4/ppl_c.m4
@@ -246,13 +246,13 @@ else
       echo "*** Could not run PPL test program, checking why..."
       CPPFLAGS="$CPPFLAGS $PPL_CPPFLAGS"
       LDFLAGS="$LDFLAGS $PPL_LDFLAGS"
-      AC_TRY_LINK([
+      AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #include <ppl_c.h>
-],
-[
+]],
+[[
   return ppl_version_major() || ppl_version_minor()
   || ppl_version_revision() || ppl_version_beta();
-],
+]])],
 [
   echo "*** The test program compiled, but did not run.  This usually means"
   echo "*** that the run-time linker is not finding the PPL or finding the"




More information about the PPL-devel mailing list