ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/configure.ac
(Generate patch)

Comparing deliantra/server/configure.ac (file contents):
Revision 1.7 by root, Mon Jul 3 12:35:18 2006 UTC vs.
Revision 1.9 by elmex, Sun Aug 13 17:15:59 2006 UTC

1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2 2
3AC_INIT([crossfire], [1.9.1], [crossfire-devel@listserv.real-time.com]) 3AC_INIT([crossfire], [1.9.1], [crossfire-devel@listserv.real-time.com])
4AC_CONFIG_AUX_DIR(utils) 4AC_CONFIG_AUX_DIR(utils)
5AC_CONFIG_SRCDIR([server/main.c]) 5AC_CONFIG_SRCDIR([server/main.C])
6AM_INIT_AUTOMAKE 6AM_INIT_AUTOMAKE
7AM_CONFIG_HEADER(include/autoconf.h) 7AM_CONFIG_HEADER(include/autoconf.h)
8 8
9AM_MAINTAINER_MODE 9AM_MAINTAINER_MODE
10 10
221AC_MSG_CHECKING(for $PERL suitability) 221AC_MSG_CHECKING(for $PERL suitability)
222if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 222if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
223 223
224 save_CFLAGS="$CFLAGS" 224 save_CFLAGS="$CFLAGS"
225 save_LIBS="$LIBS" 225 save_LIBS="$LIBS"
226 CFLAGS="$CFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 226 CFLAGS="$CFLAGS `$PERL -MExtUtils::Embed -e ccopts` `$PERL -MEvent::MakeMaker -e 'print +{&Event::MakeMaker::event_args}->{INC}'`"
227 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 227 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
228 AC_TRY_LINK([ 228 AC_TRY_LINK([
229#include <EXTERN.h> 229#include <EXTERN.h>
230#include <perl.h> 230#include <perl.h>
231#include <XSUB.h> 231#include <XSUB.h>
232#include "EventAPI.h"
232],[ 233],[
233 PerlInterpreter *perl = perl_alloc (); 234 PerlInterpreter *perl = perl_alloc ();
234],[perl_link=yes],[perl_link=no]) 235],[perl_link=yes],[perl_link=no])
235 CXXFLAGS="$save_CFLAGS" 236 CXXFLAGS="$save_CFLAGS"
236 LIBS="$save_LIBS" 237 LIBS="$save_LIBS"
237 238
238 if test x$perl_link = xyes; then 239 if test x$perl_link = xyes; then
239 AC_MSG_RESULT(ok) 240 AC_MSG_RESULT(ok)
240 AC_DEFINE(ENABLE_PERL, 1, Define if you can embed a perl interpreter) 241 AC_DEFINE(ENABLE_PERL, 1, Define if you can embed a perl interpreter)
241 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 242 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts` `$PERL -MEvent::MakeMaker -e 'print +{&Event::MakeMaker::event_args}->{INC}'`"
242 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 243 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
243 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 244 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
244 PERL_PLUGIN=yes 245 PERL_PLUGIN=yes
245 else 246 else
246 AC_MSG_ERROR([no, unable to link]) 247 AC_MSG_ERROR([no, unable to link])
272 AC_MSG_NOTICE([No dl library found. Plugins will not be supported.]) 273 AC_MSG_NOTICE([No dl library found. Plugins will not be supported.])
273fi 274fi
274AM_CONDITIONAL(PYTHON_PLUGIN,test "x$PLUGIN_PYTHON" != "x") 275AM_CONDITIONAL(PYTHON_PLUGIN,test "x$PLUGIN_PYTHON" != "x")
275AC_SUBST(PLUGIN_PYTHON) 276AC_SUBST(PLUGIN_PYTHON)
276 277
277# crossedit compilability check
278 CF_CHECK_CROSSEDIT(["$X11LIBS"],
279 [cf_will_build_crossedit="yes"]
280 AC_SUBST(CROSSEDIT, 'crossedit'),
281 [cf_will_build_crossedit="no"] )
282
283AC_OUTPUT([Makefile 278AC_OUTPUT([Makefile
284 crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile
285 crossedit/Cnv/Makefile crossedit/bitmaps/Makefile
286 doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile 279 doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile
287 doc/spoiler/Makefile doc/spoiler-html/Makefile 280 doc/spoiler/Makefile doc/spoiler-html/Makefile
288 doc/playbook/Makefile doc/playbook-html/Makefile 281 doc/playbook/Makefile doc/playbook-html/Makefile
289 doc/scripts/Makefile 282 doc/scripts/Makefile
290 lib/Makefile random_maps/Makefile socket/Makefile server/Makefile 283 lib/Makefile random_maps/Makefile socket/Makefile server/Makefile

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines