From 9952aadff25fac2de14dc680e5575731d6862f71 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 3 Sep 2010 07:25:15 +0000 Subject: [PATCH] Make WITH_NUMPY defined when running swig + SWIG_FLAGS="$SWIG_FLAGS -DWITH_NUMPY=WITH_NUMPY " --- salome_adm/unix/config_files/check_swig.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/salome_adm/unix/config_files/check_swig.m4 b/salome_adm/unix/config_files/check_swig.m4 index 4d4f9df78..9d3717cf0 100644 --- a/salome_adm/unix/config_files/check_swig.m4 +++ b/salome_adm/unix/config_files/check_swig.m4 @@ -62,6 +62,7 @@ numpydir=`$PYTHON -c "import numpy;print numpy.get_include()" 2>/dev/null` if test -d "$numpydir"; then numpy_ok=yes PYTHON_INCLUDES="$PYTHON_INCLUDES -I$numpydir" + SWIG_FLAGS="$SWIG_FLAGS -DWITH_NUMPY=WITH_NUMPY " AC_DEFINE([WITH_NUMPY], [], [Python has numpy extension]) fi -- 2.39.2