cloogppl: patch to use ppl version 1.0 (close #2236)

This commit is contained in:
Benno Fünfstück 2014-04-13 13:46:23 +02:00 committed by Vladimír Čunát
parent ce02e8c1db
commit 4b87687a84
2 changed files with 30 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, ppl }:
{ fetchurl, stdenv, ppl, autoconf, automake, libtool }:
stdenv.mkDerivation rec {
name = "cloog-ppl-0.15.11";
@ -10,8 +10,21 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ ppl ];
buildInputs = [ automake autoconf libtool ];
patches = [ ./fix-ppl-version.patch ];
configureFlags = "--with-ppl=${ppl}";
preConfigure = ''
touch NEWS ChangeLog AUTHORS
${libtool}/bin/libtoolize -c --force
${automake}/bin/aclocal
${automake}/bin/automake --add-missing
${automake}/bin/automake -a -c --foreign
${autoconf}/bin/autoreconf
'';
crossAttrs = {
configureFlags = "--with-ppl=${ppl.crossDrv}";
};

View File

@ -0,0 +1,16 @@
diff -rupN src/configure.in cloog-ppl-0.15.11/configure.in
--- src/configure.in 2014-04-13 13:33:43.349392305 +0200
+++ cloog-ppl-0.15.11/configure.in 2014-04-13 13:34:12.695379888 +0200
@@ -337,11 +337,7 @@ if test "x$with_ppl" != "x" -a "x$with_p
[AC_MSG_ERROR(Can't find PPL headers.)])
AC_MSG_CHECKING([for version 0.10 (or later revision) of PPL])
- AC_TRY_COMPILE([#include "ppl_c.h"],[
- #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
- choke me
- #endif
- ], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR(Can't find correct version of PPL.) ])
+ AC_MSG_RESULT([yes])
LIBS="$LIBS -lppl_c -lppl -lgmpxx"
AC_DEFINE([CLOOG_PPL_BACKEND], 1, [Use the PPL backend])