[GRASS-SVN] r66362 - grass-addons/grass7/vector/v.kriging
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 28 01:34:43 PDT 2015
Author: neteler
Date: 2015-09-28 01:34:43 -0700 (Mon, 28 Sep 2015)
New Revision: 66362
Modified:
grass-addons/grass7/vector/v.kriging/local_proto.h
grass-addons/grass7/vector/v.kriging/main.c
Log:
v.kriging addon: issue reasonable compiler error when LAPACK is absent
Modified: grass-addons/grass7/vector/v.kriging/local_proto.h
===================================================================
--- grass-addons/grass7/vector/v.kriging/local_proto.h 2015-09-28 08:34:04 UTC (rev 66361)
+++ grass-addons/grass7/vector/v.kriging/local_proto.h 2015-09-28 08:34:43 UTC (rev 66362)
@@ -17,6 +17,12 @@
#include <grass/glocale.h>
#include <grass/rtree.h>
+
+#if defined(HAVE_LIBLAPACK) && defined(HAVE_LIBBLAS)
+#else /* defined(HAVE_LIBBLAS) */
+#warning G_matrix_product() not compiled; requires GRASS GIS compiled and installed with BLAS library support
+#endif /* HAVE_BLAS && HAVE_LAPACK */
+
#ifndef PI
#define PI M_PI
#define DEG2RAD(ang) (ang / 180. * PI)
Modified: grass-addons/grass7/vector/v.kriging/main.c
===================================================================
--- grass-addons/grass7/vector/v.kriging/main.c 2015-09-28 08:34:04 UTC (rev 66361)
+++ grass-addons/grass7/vector/v.kriging/main.c 2015-09-28 08:34:43 UTC (rev 66362)
@@ -21,7 +21,15 @@
**************************************************************/
#include "local_proto.h"
+#ifndef HAVE_LIBBLAS
+#error GRASS GIS is not configured with BLAS
+#endif
+#ifndef HAVE_LIBLAPACK
+#error GRASS GIS is not configured with LAPACK
+#endif
+
+
int main(int argc, char *argv[])
{
// Vector layer and module
More information about the grass-commit
mailing list