[BACK] Return to configure.in CVS log [TXT][DIR] Up to Nevrax / code / nelns

Diff for /code/nelns/configure.in between version 1.3 and 1.4

version 1.3, 2001/06/18 14:04:46 version 1.4, 2001/08/07 12:41:46
Line 38 
Line 38 
 AC_PROG_INSTALL AC_PROG_INSTALL
  
  
 dnl ========== 
 dnl Python 
 dnl ========== 
  
 AC_ARG_WITH( python, 
     [  --with-python=<path>    path to the Python prefix installation directory. 
                           e.g. /usr/local], 
     [PYTHON_PREFIX=$withval 
       AC_MSG_RESULT(using Python located in $withval.)] 
 ) 
  
 if test ! "$PYTHON_PREFIX" = "" 
 then 
     PATH="$PYTHON_PREFIX/bin:$PATH" 
 fi 
  
 AC_ARG_WITH( python-version, 
     [  --with-python-version=<version> 
                           Python version to use, e.g. 1.5], 
     [PYTHON_VERSION=$withval 
       AC_MSG_RESULT(using Python $withval.)] 
 ) 
  
 if test ! "$PYTHON_VERSION" = "" 
 then 
     PYTHON_EXEC="python$PYTHON_VERSION" 
 else 
     PYTHON_EXEC="python python2.0 python1.5" 
 fi 
  
 AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) 
 if test "$PYTHON" = "no"; 
 then 
     AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) 
 fi 
  
  
 dnl ==================================================================== dnl ====================================================================
 dnl Configure Settings dnl Configure Settings
  
Line 181 
Line 144 
 [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(yes)],
 AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)]) AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)])
 ) )
  
  
 dnl ========== 
 dnl Python 
 dnl ========== 
  
 PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` 
 PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` 
  
 PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" 
 PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" 
  
 _CPPFLAGS="$CPPFLAGS" 
 CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" 
  
 AC_SUBST(PYTHON_CFLAGS) 
  
 AC_MSG_CHECKING(for Python header files) 
 AC_EGREP_CPP( yo_python, 
 [#include <Python.h> 
    yo_python 
 ], 
 [AC_MSG_RESULT(ok)], 
 AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) 
 ) 
  
 CPPFLAGS="$_CPPFLAGS" 
  
 AC_SUBST(PYTHON_CFLAGS) 
 AC_SUBST(PYTHON_LIBS) 
  
  
 dnl ========== dnl ==========


Legend:
Removed from v.1.3 
changed lines
 Added in v.1.4