pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/math/R



On Sun, Sep 10, 2017 at 11:16:38PM +0200, Rumko wrote:
> Would this be better?
> It does seem the necessary tests fail with this on at least my machine and
> the package still builds after applying it.

Try the generic fix as attached. Needs autoconf afterwards.

Joerg
$NetBSD$

--- R.m4.orig   2017-09-10 21:20:21.847769470 +0000
+++ R.m4
@@ -3639,9 +3639,9 @@ R_CHECK_FUNCS([cabs carg cexp clog csqrt
 AC_DEFUN([R_CHECK_DECL],
 [AS_VAR_PUSHDEF([ac_Symbol], [ac_cv_have_decl_$1])dnl
 AC_CACHE_CHECK([whether $1 exists and is declared], ac_Symbol,
-[AC_LINK_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])],
-[#ifndef $1
-  char *p = (char *) $1;
+[AC_LINK_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])
+#ifndef $1
+char *p = (char *) $1;
 #endif
 ])],
                    [AS_VAR_SET(ac_Symbol, yes)],


Home | Main Index | Thread Index | Old Index