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

Diff of /weechat/configure.in

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

revision 1.50 by ptitlouis, Sun May 22 17:40:25 2005 UTC revision 1.51 by kolter, Mon May 23 21:45:50 2005 UTC
# Line 151  it with your software package manager.]) Line 151  it with your software package manager.])
151      AC_MSG_CHECKING(for Perl library)      AC_MSG_CHECKING(for Perl library)
152      PERL_LIB=`$PERL -e 'use Config; print "$Config{installprefix}/lib/$Config{libperl}"'`      PERL_LIB=`$PERL -e 'use Config; print "$Config{installprefix}/lib/$Config{libperl}"'`
153            
154      if test -r "$PERL_LIB"; then      PERL_TEST=`PT=perltest.c ; echo "int main() { return 0; }" > $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ldopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
155          PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/perl/lib_weechat_perl.a `perl -MExtUtils::Embed -e ldopts`"  
156        if test "x$PERL_TEST" = "x0" ; then
157            PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/perl/lib_weechat_perl.a `$PERL -MExtUtils::Embed -e ldopts`"
158      else      else
159          AC_MSG_ERROR([          AC_MSG_ERROR([
160  *** Perl library couldn't be found in your system.  *** Perl library couldn't be found in your system.
# Line 160  it with your software package manager.]) Line 162  it with your software package manager.])
162      fi      fi
163      AC_MSG_RESULT(found)      AC_MSG_RESULT(found)
164            
165      PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`      PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
166      AC_SUBST(PERL_CFLAGS)      AC_SUBST(PERL_CFLAGS)
167      AC_DEFINE(PLUGIN_PERL)      AC_DEFINE(PLUGIN_PERL)
168  fi  fi
# Line 190  if test "x$enable_python" = "xyes" ; the Line 192  if test "x$enable_python" = "xyes" ; the
192      fi      fi
193      AC_MSG_RESULT(found)      AC_MSG_RESULT(found)
194            
195        PYTHON_SYSPREFIX=`$PYTHON -c 'import sys; print "%s" % sys.prefix'`
196      PYTHON_LIB=`$PYTHON -c 'import sys; print "%s/lib/python%s/config" % (sys.prefix, sys.version[[:3]])'`      PYTHON_LIB=`$PYTHON -c 'import sys; print "%s/lib/python%s/config" % (sys.prefix, sys.version[[:3]])'`
197      PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[0:3]]'`      PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[0:3]]'`
198            
199      AC_MSG_CHECKING(for Python library)      AC_MSG_CHECKING(for Python library)
200      if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -a -r "$PYTHON_LIB/libpython$PYTHON_VERSION.a"; then      if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -o -r "$PYTHON_SYSPREFIX/lib/libpython$PYTHON_VERSION.so"; then
201          PYTHON_LFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print string.join(distutils.sysconfig.get_config_vars('LINKFORSHARED', 'BLDLIBRARY', 'SHLIBS'))"`          PYTHON_LFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print string.join(distutils.sysconfig.get_config_vars('LINKFORSHARED', 'BLDLIBRARY', 'SHLIBS'))"`
202      else      else
203          AC_MSG_ERROR([          AC_MSG_ERROR([

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

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