Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #682 from cwidmer/master
Browse files Browse the repository at this point in the history
fixed eigen3 detection problem
  • Loading branch information
lisitsyn committed Jul 31, 2012
2 parents 3bda438 + b1765dd commit d866352
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/configure
Expand Up @@ -3383,14 +3383,29 @@ EOF

check_eigen3()
{
#echo $_incdir #TODO: should this path also be searched?
if test "$_eigen3" = yes || test "$_eigen3" = auto
then
echocheck "Eigen3 support"
if pkg-config --exists eigen3
then
echores "yes"
EIGEN3_CFLAGS=`pkg-config --cflags eigen3`
INCLUDES="$INCLUDES $EIGEN3_CFLAGS"
fi
cat > $TMPCXX << EOF
#include <Eigen/Dense>
using namespace Eigen;
int main()
{
MatrixXf m = MatrixXf::Random(3,3);
m = (m + MatrixXf::Constant(3,3,1.2)) * 50;
VectorXf v(3);
v << 1, 2, 3;
}
EOF
echocheck "Eigen3 support"
if cxx_check
then
echores "yes"
HAVE_EIGEN3='#define HAVE_EIGEN3 1'
DEFINES="$DEFINES -DHAVE_EIGEN3"
else
Expand Down

0 comments on commit d866352

Please sign in to comment.