On 2020-04-06, at 17:59:05 +0200, Andreas Tille wrote:
> since I did not got any response from r-pkg team yet I guess nobody
> has a clue about this autoconf issue.  So I'd like to forward this
> question here to finalise a package which is relevant for our COVID-19
> Biohackathon.
>
> I injected r-bioc-rgadem[1] but the build ends in:
>
>    dh_autoreconf -O--buildsystem=R
> autoheader: warning: missing template: HAVE_OPENMP
> autoheader: Use AC_DEFINE([HAVE_OPENMP], [], [Description])
> autoreconf: /usr/bin/autoheader failed with exit status: 1
> dh_autoreconf: error: autoreconf -f -i returned exit code 1
> make: *** [debian/rules:4: binary] Error 25
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 
> 2
>
>
> Any hint would be welcome

Similar to some of the problems with mpqc yesterday.  Patch attached.

J.
diff --git a/configure.ac b/configure.ac
index 0b7e8d793a31..aef047400685 100755
--- a/configure.ac
+++ b/configure.ac
@@ -39,6 +39,7 @@ Use --disable-parallel (or ARG=no) to keep the code sequential even if GCD or Op
 # As recommended by Simon Urbanek on R-Devel
 AC_DEFUN([AC_CHECK_PKG_OPENMP], 
   [dnl
+    AH_TEMPLATE([HAVE_OPENMP],[])
     AC_MSG_CHECKING([whether OpenMP will work in a package])
     ac_pkg_openmp=no
     AS_IF(

Attachment: signature.asc
Description: PGP signature

Reply via email to