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

Diff of /weechat/configure.in

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

revision 1.46 by flashcode, Sun May 1 18:53:23 2005 UTC revision 1.47 by flashcode, Sat May 7 09:29:26 2005 UTC
# Line 93  AM_CONDITIONAL(PLUGIN_PYTHON, test "$ena Line 93  AM_CONDITIONAL(PLUGIN_PYTHON, test "$ena
93    
94  if test "x$enable_ncurses" = "xyes" ; then  if test "x$enable_ncurses" = "xyes" ; then
95      if test "$LIBNCURSES_FOUND" = "0" ; then      if test "$LIBNCURSES_FOUND" = "0" ; then
96          AC_MSG_ERROR([ncurses library not found! Install ncurses library or run ./configure with --disable-ncurses parameter.])          AC_MSG_ERROR([
97    *** ncurses library not found!
98    *** Please install ncurses library or run ./configure with --disable-ncurses parameter.])
99      fi      fi
100      NCURSES_LIBS="-lncurses"      NCURSES_LIBS="-lncurses"
101      AC_SUBST(NCURSES_LIBS)      AC_SUBST(NCURSES_LIBS)
# Line 102  fi Line 104  fi
104  if test "x$enable_wxwidgets" = "xyes" ; then  if test "x$enable_wxwidgets" = "xyes" ; then
105      if test "$wxWin" != 1; then      if test "$wxWin" != 1; then
106          AC_MSG_ERROR([          AC_MSG_ERROR([
107              wxWindows must be installed on your system  *** wxWindows must be installed on your system
108              but wx-config script couldn't be found.  *** but wx-config script couldn't be found.
109    
110              Please check that wx-config is in path, the directory  *** Please check that wx-config is in path, the directory
111              where wxWindows libraries are installed (returned by  *** where wxWindows libraries are installed (returned by
112              'wx-config --libs' command) is in LD_LIBRARY_PATH or  *** 'wx-config --libs' command) is in LD_LIBRARY_PATH or
113              equivalent variable and wxWindows version is 2.3.4 or above.  *** equivalent variable and wxWindows version is 2.3.4 or above.
114          ])          ])
115      fi      fi
116            
# Line 135  PLUGINS_LIBS= Line 137  PLUGINS_LIBS=
137    
138  if test "x$enable_perl" = "xyes" ; then  if test "x$enable_perl" = "xyes" ; then
139      enable_plugins="yes"      enable_plugins="yes"
140      PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/perl/lib_weechat_perl.a `perl -MExtUtils::Embed -e ldopts`"      
141        AC_PATH_PROG(PERL, perl)
142        if test -z $PERL ; then
143            AC_MSG_ERROR([
144    *** Perl must be installed on your system
145    *** but perl interpreter couldn't be found in path.
146    
147    Please check that perl is in path, or install
148    it with your software package manager.])
149        fi
150        
151        AC_MSG_CHECKING(for Perl library)
152        PERL_LIB=`$PERL -e 'use Config; print "$Config{installprefix}/lib/$Config{libperl}"'`
153        
154        if test -r "$PERL_LIB"; then
155            PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/perl/lib_weechat_perl.a `perl -MExtUtils::Embed -e ldopts`"
156        else
157            AC_MSG_ERROR([
158    *** Perl library couldn't be found in your system.
159    *** Try to install it with your software package manager.])
160        fi
161        AC_MSG_RESULT(found)
162        
163      PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`      PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
164      AC_SUBST(PERL_CFLAGS)      AC_SUBST(PERL_CFLAGS)
165      AC_DEFINE(PLUGIN_PERL)      AC_DEFINE(PLUGIN_PERL)
# Line 143  fi Line 167  fi
167    
168  if test "x$enable_python" = "xyes" ; then  if test "x$enable_python" = "xyes" ; then
169      enable_plugins="yes"      enable_plugins="yes"
170      PYTHON_CFLAGS=`python -c "import distutils.sysconfig,string; print ' -I' + distutils.sysconfig.get_config_var('CONFINCLUDEPY')"`      
171      PYTHON_LFLAGS=`python -c "import distutils.sysconfig,string; print string.join(distutils.sysconfig.get_config_vars('LINKFORSHARED', 'BLDLIBRARY', 'SHLIBS'))"`      AC_PATH_PROG(PYTHON, python)
172        if test -z $PYTHON ; then
173            AC_MSG_ERROR([
174    *** Python must be installed on your system
175    *** but python interpreter couldn't be found in path.
176    
177    *** Please check that python is in path, or install
178    *** it with your software package manager.])
179        fi
180        
181        PYTHON_INCLUDE=`$PYTHON -c 'import sys ; print "%s/include/python%s" % (sys.prefix, sys.version[[:3]])'`
182        
183        AC_MSG_CHECKING(for Python header files)
184        if test -r "$PYTHON_INCLUDE/Python.h"; then
185            PYTHON_CFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print ' -I' + distutils.sysconfig.get_config_var('CONFINCLUDEPY')"`
186        else
187            AC_MSG_ERROR([
188    *** Python header files couldn't be found in your system.
189    *** Try to install them with your software package manager.])
190        fi
191        AC_MSG_RESULT(found)
192        
193        PYTHON_LIB=`$PYTHON -c 'import sys; print "%s/lib/python%s/config" % (sys.prefix, sys.version[[:3]])'`
194        PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[0:3]]'`
195        
196        AC_MSG_CHECKING(for Python library)
197        if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so" -a -r "$PYTHON_LIB/libpython$PYTHON_VERSION.a"; then
198            PYTHON_LFLAGS=`$PYTHON -c "import distutils.sysconfig,string; print string.join(distutils.sysconfig.get_config_vars('LINKFORSHARED', 'BLDLIBRARY', 'SHLIBS'))"`
199        else
200            AC_MSG_ERROR([
201    *** Python library couldn't be found in your system.            
202    *** Try to install it with your software package manager.])
203        fi
204        AC_MSG_RESULT(found)
205        
206      PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/python/lib_weechat_python.a $PYTHON_LFLAGS"      PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/python/lib_weechat_python.a $PYTHON_LFLAGS"
207      AC_SUBST(PYTHON_CFLAGS)      AC_SUBST(PYTHON_CFLAGS)
208      AC_DEFINE(PLUGIN_PYTHON)      AC_DEFINE(PLUGIN_PYTHON)
# Line 207  if test "x$enable_qt" = "xyes" ; then Line 265  if test "x$enable_qt" = "xyes" ; then
265  fi  fi
266    
267  if test "x$listgui" = "x" ; then  if test "x$listgui" = "x" ; then
268      AC_MSG_ERROR([No interface specified... Please specify at least ncurses, WxWidgets, Gtk or Qt.])      AC_MSG_ERROR([
269    *** No interface specified...
270    *** Please specify at least ncurses, WxWidgets, Gtk or Qt.])
271  fi  fi
272    
273  msg_debug_compiler="no"  msg_debug_compiler="no"

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

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