/[weechat]/weechat/configure.in
ViewVC logotype

Diff of /weechat/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.53 by kolter, Tue May 24 15:14:54 2005 UTC revision 1.54 by kolter, Sun May 29 15:15:12 2005 UTC
# Line 138  PLUGINS_LIBS= Line 138  PLUGINS_LIBS=
138  if test "x$enable_perl" = "xyes" ; then  if test "x$enable_perl" = "xyes" ; then
139      enable_plugins="yes"      enable_plugins="yes"
140            
141      AC_PATH_PROG(PERL, perl)      AC_PATH_PROG(PERL, perl perl5)
142      if test -z $PERL ; then      if test -z $PERL ; then
143          AC_MSG_ERROR([          AC_MSG_ERROR([
144  *** Perl must be installed on your system  *** Perl must be installed on your system
# Line 181  fi Line 181  fi
181  if test "x$enable_python" = "xyes" ; then  if test "x$enable_python" = "xyes" ; then
182      enable_plugins="yes"      enable_plugins="yes"
183            
184      AC_PATH_PROG(PYTHON, python)      AC_PATH_PROG(PYTHON, python python2.4 python2.3 python2.2)
185      if test -z $PYTHON ; then      if test -z $PYTHON ; then
186          AC_MSG_ERROR([          AC_MSG_ERROR([
187  *** Python must be installed on your system  *** Python must be installed on your system
# Line 191  if test "x$enable_python" = "xyes" ; the Line 191  if test "x$enable_python" = "xyes" ; the
191  *** it with your software package manager.])  *** it with your software package manager.])
192      fi      fi
193            
194      PYTHON_INCLUDE=`$PYTHON -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version[[:3]])'`      PYTHON_SYSPREFIX=`$PYTHON -c 'import sys; print "%s" % sys.prefix'`
195        PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[:3]]'`
196        PYTHON_INCLUDE="$PYTHON_SYSPREFIX/include/python$PYTHON_VERSION"
197            
198      AC_MSG_CHECKING(for Python header files)      AC_MSG_CHECKING(for Python header files)
199      if test -r "$PYTHON_INCLUDE/Python.h"; then      if test -r "$PYTHON_INCLUDE/Python.h"; then
200          PYTHON_CFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print ' -I' + distutils.sysconfig.get_config_var('CONFINCLUDEPY')"`          PYTHON_CFLAGS=-I`$PYTHON -c "import distutils.sysconfig,string; print distutils.sysconfig.get_config_var('CONFINCLUDEPY')"`
201      else      else
202          AC_MSG_ERROR([          AC_MSG_ERROR([
203  *** Python header files couldn't be found in your system.  *** Python header files couldn't be found in your system.
# Line 203  if test "x$enable_python" = "xyes" ; the Line 205  if test "x$enable_python" = "xyes" ; the
205      fi      fi
206      AC_MSG_RESULT(found)      AC_MSG_RESULT(found)
207            
208      PYTHON_SYSPREFIX=`$PYTHON -c 'import sys; print "%s" % sys.prefix'`      PYTHON_LIB="$PYTHON_SYSPREFIX/lib/python$PYTHON_VERSION/config"
     PYTHON_LIB=`$PYTHON -c 'import sys; print "%s/lib/python%s/config" % (sys.prefix, sys.version[[:3]])'`  
     PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[0:3]]'`  
209            
210      AC_MSG_CHECKING(for Python library)      AC_MSG_CHECKING(for Python library)
211      if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -o -r "$PYTHON_SYSPREFIX/lib/libpython$PYTHON_VERSION.so"; then      if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -o -r "$PYTHON_SYSPREFIX/lib/libpython$PYTHON_VERSION.so"; then
212          PYTHON_LFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print string.join(distutils.sysconfig.get_config_vars('LINKFORSHARED', 'BLDLIBRARY', 'SHLIBS'))"`          PYTHON_LFLAGS="-lpython$PYTHON_VERSION -lpthread -lutil"
213      else      else
214          AC_MSG_ERROR([          AC_MSG_ERROR([
215  *** Python library couldn't be found in your system.              *** Python library couldn't be found in your system.            

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26