From: eap Date: Fri, 3 Sep 2010 07:25:15 +0000 (+0000) Subject: Make WITH_NUMPY defined when running swig X-Git-Tag: V5_1_5a1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9952aadff25fac2de14dc680e5575731d6862f71;p=modules%2Fkernel.git Make WITH_NUMPY defined when running swig + SWIG_FLAGS="$SWIG_FLAGS -DWITH_NUMPY=WITH_NUMPY " --- 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