Changeset c2ff413 in git


Ignore:
Timestamp:
Jan 9, 2013, 6:09:44 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
538512de5ab210253d8edeee07e4a22b42392e56
Parents:
7649f8a6c86d9e16fbb5ceb98a83a9647c360d53
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-01-09 18:09:44+01:00
git-committer:
Oleksandr Motsak <http://goo.gl/mcpzY>2013-01-09 18:13:19+01:00
Message:
Fix building without Python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/pyobject.cc

    r7649f8a rc2ff413  
    1818  //#include "newstruct.h"
    1919
    20 #include <Python.h>
     20#ifdef HAVE_PYTHON
    2121
    2222#include <Singular/ipid.h>
     
    4040#include "blackbox.h"
    4141#include "ipshell.h"
    42 
    43 
    44 
    45 
    46   //#include <Python.h>
     42#include "newstruct.h"
     43
     44#include <Python.h>
     45
    4746// #include <iterator>             // std::distance
    4847// #include <stdio.h>
     
    753752}
    754753#endif
     754
     755#endif /* HAVE_PYTHON */
  • m4/ax_python_with_version.m4

    r7649f8a rc2ff413  
    9191            fi
    9292        fi   
    93         AM_CONDITIONAL(PYTHON_USE, test x"$ax_python_use" = x"true")
    94         AM_CONDITIONAL(SI_EMBED_PYTHON, test x"$si_embed_python" = x"true")
    9593
    9694        if  test x"$si_embed_python" = x"true"
     
    10098          AC_SUBST(EMBED_PYOBJECT_LDFLAGS,"\${PYTHON_LSPEC}")
    10199        fi
    102 
    103         AM_CONDITIONAL(PYTHON_MODULE, test x"$si_embed_python" != x"true")
     100        if test x"$ax_python_use" = x"true"
     101        then
     102          AC_DEFINE(HAVE_PYTHON,1,[compile python-related stuff])
     103        fi
    104104    fi
     105   
     106    AM_CONDITIONAL(PYTHON_USE, test x"$ax_python_use" = x"true")
     107    AM_CONDITIONAL(SI_EMBED_PYTHON, test x"$si_embed_python" = x"true")
     108    AM_CONDITIONAL(PYTHON_MODULE, test x"$si_embed_python" != x"true")
    105109
    106110])
Note: See TracChangeset for help on using the changeset viewer.