diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-05-07 09:29:26 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-05-07 09:29:26 +0000 |
commit | b935a02ceb00e7390797f9015a6d2362a7db81f3 (patch) | |
tree | 0d5a0870f7501d2c34ad93176fb45bc029c0176a | |
parent | e7c899014c3e0b0850fa2b12627d1207998a2bdd (diff) | |
download | weechat-b935a02ceb00e7390797f9015a6d2362a7db81f3.zip |
Perl and Python libraries now cheked in configure script
-rw-r--r-- | BUGS | 3 | ||||
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.in | 82 | ||||
-rw-r--r-- | weechat/BUGS | 3 | ||||
-rw-r--r-- | weechat/ChangeLog | 6 | ||||
-rw-r--r-- | weechat/configure.in | 82 |
6 files changed, 152 insertions, 30 deletions
@@ -1,10 +1,9 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -WeeChat known bugs, 2005-05-05 +WeeChat known bugs, 2005-05-07 - ./configure does not check that Gtk 2.0 libraries are installed -- ./configure does not check that Perl/Python headers & libraries are installed - too much nicks in the channel (> height of window) => some nicks are hidden - when quitting WeeChat term title is not restored (if look_set_title is ON) - command name for /server can not contain spaces @@ -1,16 +1,18 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2005-05-05 +ChangeLog - 2005-05-07 Version 0.1.2 (under dev!): - * added Python plugin support, improved Perl interface + * added Python plugin support, improved Perl interface (and now Perl/Python + libraries are checked by configure script) * added nicklist scroll keys (Alt+{home/end/pgup/pgdn} or F11/F12) * added transfer rate for DCC files * added "-all" option for /nick command * buffers timestamp can now be changed (new option in config file) * WeeChat now ok under *BSD and Mac OS X + * fixed nicklist sort * fixed crash when purging old DCC * fixed crash with 64-bits arch (like AMD64) when converting UTF-8 * added missing IRC commands (307, 341, 485, 671) diff --git a/configure.in b/configure.in index 54dec8e7b..1b0fa4c44 100644 --- a/configure.in +++ b/configure.in @@ -93,7 +93,9 @@ AM_CONDITIONAL(PLUGIN_PYTHON, test "$enable_python" = "yes") if test "x$enable_ncurses" = "xyes" ; then if test "$LIBNCURSES_FOUND" = "0" ; then - AC_MSG_ERROR([ncurses library not found! Install ncurses library or run ./configure with --disable-ncurses parameter.]) + AC_MSG_ERROR([ +*** ncurses library not found! +*** Please install ncurses library or run ./configure with --disable-ncurses parameter.]) fi NCURSES_LIBS="-lncurses" AC_SUBST(NCURSES_LIBS) @@ -102,13 +104,13 @@ fi if test "x$enable_wxwidgets" = "xyes" ; then if test "$wxWin" != 1; then AC_MSG_ERROR([ - wxWindows must be installed on your system - but wx-config script couldn't be found. +*** wxWindows must be installed on your system +*** but wx-config script couldn't be found. - Please check that wx-config is in path, the directory - where wxWindows libraries are installed (returned by - 'wx-config --libs' command) is in LD_LIBRARY_PATH or - equivalent variable and wxWindows version is 2.3.4 or above. +*** Please check that wx-config is in path, the directory +*** where wxWindows libraries are installed (returned by +*** 'wx-config --libs' command) is in LD_LIBRARY_PATH or +*** equivalent variable and wxWindows version is 2.3.4 or above. ]) fi @@ -135,7 +137,29 @@ PLUGINS_LIBS= if test "x$enable_perl" = "xyes" ; then enable_plugins="yes" - PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/perl/lib_weechat_perl.a `perl -MExtUtils::Embed -e ldopts`" + + AC_PATH_PROG(PERL, perl) + if test -z $PERL ; then + AC_MSG_ERROR([ +*** Perl must be installed on your system +*** but perl interpreter couldn't be found in path. + +Please check that perl is in path, or install +it with your software package manager.]) + fi + + AC_MSG_CHECKING(for Perl library) + PERL_LIB=`$PERL -e 'use Config; print "$Config{installprefix}/lib/$Config{libperl}"'` + + if test -r "$PERL_LIB"; then + PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/perl/lib_weechat_perl.a `perl -MExtUtils::Embed -e ldopts`" + else + AC_MSG_ERROR([ +*** Perl library couldn't be found in your system. +*** Try to install it with your software package manager.]) + fi + AC_MSG_RESULT(found) + PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts` AC_SUBST(PERL_CFLAGS) AC_DEFINE(PLUGIN_PERL) @@ -143,8 +167,42 @@ fi if test "x$enable_python" = "xyes" ; then enable_plugins="yes" - PYTHON_CFLAGS=`python -c "import distutils.sysconfig,string; print ' -I' + distutils.sysconfig.get_config_var('CONFINCLUDEPY')"` - PYTHON_LFLAGS=`python -c "import distutils.sysconfig,string; print string.join(distutils.sysconfig.get_config_vars('LINKFORSHARED', 'BLDLIBRARY', 'SHLIBS'))"` + + AC_PATH_PROG(PYTHON, python) + if test -z $PYTHON ; then + AC_MSG_ERROR([ +*** Python must be installed on your system +*** but python interpreter couldn't be found in path. + +*** Please check that python is in path, or install +*** it with your software package manager.]) + fi + + PYTHON_INCLUDE=`$PYTHON -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version[[:3]])'` + + AC_MSG_CHECKING(for Python header files) + if test -r "$PYTHON_INCLUDE/Python.h"; then + PYTHON_CFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print ' -I' + distutils.sysconfig.get_config_var('CONFINCLUDEPY')"` + else + AC_MSG_ERROR([ +*** Python header files couldn't be found in your system. +*** Try to install them with your software package manager.]) + fi + AC_MSG_RESULT(found) + + 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]]'` + + AC_MSG_CHECKING(for Python library) + if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -a -r "$PYTHON_LIB/libpython$PYTHON_VERSION.a"; then + PYTHON_LFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print string.join(distutils.sysconfig.get_config_vars('LINKFORSHARED', 'BLDLIBRARY', 'SHLIBS'))"` + else + AC_MSG_ERROR([ +*** Python library couldn't be found in your system. +*** Try to install it with your software package manager.]) + fi + AC_MSG_RESULT(found) + PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/python/lib_weechat_python.a $PYTHON_LFLAGS" AC_SUBST(PYTHON_CFLAGS) AC_DEFINE(PLUGIN_PYTHON) @@ -207,7 +265,9 @@ if test "x$enable_qt" = "xyes" ; then fi if test "x$listgui" = "x" ; then - AC_MSG_ERROR([No interface specified... Please specify at least ncurses, WxWidgets, Gtk or Qt.]) + AC_MSG_ERROR([ +*** No interface specified... +*** Please specify at least ncurses, WxWidgets, Gtk or Qt.]) fi msg_debug_compiler="no" diff --git a/weechat/BUGS b/weechat/BUGS index 90c74b2bf..9befedce9 100644 --- a/weechat/BUGS +++ b/weechat/BUGS @@ -1,10 +1,9 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -WeeChat known bugs, 2005-05-05 +WeeChat known bugs, 2005-05-07 - ./configure does not check that Gtk 2.0 libraries are installed -- ./configure does not check that Perl/Python headers & libraries are installed - too much nicks in the channel (> height of window) => some nicks are hidden - when quitting WeeChat term title is not restored (if look_set_title is ON) - command name for /server can not contain spaces diff --git a/weechat/ChangeLog b/weechat/ChangeLog index 63e1d414b..e7b012f69 100644 --- a/weechat/ChangeLog +++ b/weechat/ChangeLog @@ -1,16 +1,18 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2005-05-05 +ChangeLog - 2005-05-07 Version 0.1.2 (under dev!): - * added Python plugin support, improved Perl interface + * added Python plugin support, improved Perl interface (and now Perl/Python + libraries are checked by configure script) * added nicklist scroll keys (Alt+{home/end/pgup/pgdn} or F11/F12) * added transfer rate for DCC files * added "-all" option for /nick command * buffers timestamp can now be changed (new option in config file) * WeeChat now ok under *BSD and Mac OS X + * fixed nicklist sort * fixed crash when purging old DCC * fixed crash with 64-bits arch (like AMD64) when converting UTF-8 * added missing IRC commands (307, 341, 485, 671) diff --git a/weechat/configure.in b/weechat/configure.in index 54dec8e7b..1b0fa4c44 100644 --- a/weechat/configure.in +++ b/weechat/configure.in @@ -93,7 +93,9 @@ AM_CONDITIONAL(PLUGIN_PYTHON, test "$enable_python" = "yes") if test "x$enable_ncurses" = "xyes" ; then if test "$LIBNCURSES_FOUND" = "0" ; then - AC_MSG_ERROR([ncurses library not found! Install ncurses library or run ./configure with --disable-ncurses parameter.]) + AC_MSG_ERROR([ +*** ncurses library not found! +*** Please install ncurses library or run ./configure with --disable-ncurses parameter.]) fi NCURSES_LIBS="-lncurses" AC_SUBST(NCURSES_LIBS) @@ -102,13 +104,13 @@ fi if test "x$enable_wxwidgets" = "xyes" ; then if test "$wxWin" != 1; then AC_MSG_ERROR([ - wxWindows must be installed on your system - but wx-config script couldn't be found. +*** wxWindows must be installed on your system +*** but wx-config script couldn't be found. - Please check that wx-config is in path, the directory - where wxWindows libraries are installed (returned by - 'wx-config --libs' command) is in LD_LIBRARY_PATH or - equivalent variable and wxWindows version is 2.3.4 or above. +*** Please check that wx-config is in path, the directory +*** where wxWindows libraries are installed (returned by +*** 'wx-config --libs' command) is in LD_LIBRARY_PATH or +*** equivalent variable and wxWindows version is 2.3.4 or above. ]) fi @@ -135,7 +137,29 @@ PLUGINS_LIBS= if test "x$enable_perl" = "xyes" ; then enable_plugins="yes" - PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/perl/lib_weechat_perl.a `perl -MExtUtils::Embed -e ldopts`" + + AC_PATH_PROG(PERL, perl) + if test -z $PERL ; then + AC_MSG_ERROR([ +*** Perl must be installed on your system +*** but perl interpreter couldn't be found in path. + +Please check that perl is in path, or install +it with your software package manager.]) + fi + + AC_MSG_CHECKING(for Perl library) + PERL_LIB=`$PERL -e 'use Config; print "$Config{installprefix}/lib/$Config{libperl}"'` + + if test -r "$PERL_LIB"; then + PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/perl/lib_weechat_perl.a `perl -MExtUtils::Embed -e ldopts`" + else + AC_MSG_ERROR([ +*** Perl library couldn't be found in your system. +*** Try to install it with your software package manager.]) + fi + AC_MSG_RESULT(found) + PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts` AC_SUBST(PERL_CFLAGS) AC_DEFINE(PLUGIN_PERL) @@ -143,8 +167,42 @@ fi if test "x$enable_python" = "xyes" ; then enable_plugins="yes" - PYTHON_CFLAGS=`python -c "import distutils.sysconfig,string; print ' -I' + distutils.sysconfig.get_config_var('CONFINCLUDEPY')"` - PYTHON_LFLAGS=`python -c "import distutils.sysconfig,string; print string.join(distutils.sysconfig.get_config_vars('LINKFORSHARED', 'BLDLIBRARY', 'SHLIBS'))"` + + AC_PATH_PROG(PYTHON, python) + if test -z $PYTHON ; then + AC_MSG_ERROR([ +*** Python must be installed on your system +*** but python interpreter couldn't be found in path. + +*** Please check that python is in path, or install +*** it with your software package manager.]) + fi + + PYTHON_INCLUDE=`$PYTHON -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version[[:3]])'` + + AC_MSG_CHECKING(for Python header files) + if test -r "$PYTHON_INCLUDE/Python.h"; then + PYTHON_CFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print ' -I' + distutils.sysconfig.get_config_var('CONFINCLUDEPY')"` + else + AC_MSG_ERROR([ +*** Python header files couldn't be found in your system. +*** Try to install them with your software package manager.]) + fi + AC_MSG_RESULT(found) + + 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]]'` + + AC_MSG_CHECKING(for Python library) + if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -a -r "$PYTHON_LIB/libpython$PYTHON_VERSION.a"; then + PYTHON_LFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print string.join(distutils.sysconfig.get_config_vars('LINKFORSHARED', 'BLDLIBRARY', 'SHLIBS'))"` + else + AC_MSG_ERROR([ +*** Python library couldn't be found in your system. +*** Try to install it with your software package manager.]) + fi + AC_MSG_RESULT(found) + PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/python/lib_weechat_python.a $PYTHON_LFLAGS" AC_SUBST(PYTHON_CFLAGS) AC_DEFINE(PLUGIN_PYTHON) @@ -207,7 +265,9 @@ if test "x$enable_qt" = "xyes" ; then fi if test "x$listgui" = "x" ; then - AC_MSG_ERROR([No interface specified... Please specify at least ncurses, WxWidgets, Gtk or Qt.]) + AC_MSG_ERROR([ +*** No interface specified... +*** Please specify at least ncurses, WxWidgets, Gtk or Qt.]) fi msg_debug_compiler="no" |