1 | dnl Process this file with autoconf to produce a configure script. |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | |
2 | |
3 | AC_REVISION($Id: configure.ac,v 1.3 2006/02/05 19:53:21 root Exp $) |
|
|
4 | AC_INIT([crossfire], [1.8.0], [crossfire-devel@listserv.real-time.com]) |
3 | AC_INIT([crossfire], [1.9.1], [crossfire-devel@listserv.real-time.com]) |
5 | AC_CONFIG_AUX_DIR(utils) |
4 | AC_CONFIG_AUX_DIR(utils) |
6 | AC_CONFIG_SRCDIR([server/main.c]) |
5 | AC_CONFIG_SRCDIR([server/main.C]) |
7 | AM_INIT_AUTOMAKE |
6 | AM_INIT_AUTOMAKE |
8 | AM_CONFIG_HEADER(include/autoconf.h) |
7 | AM_CONFIG_HEADER(include/autoconf.h) |
9 | |
8 | |
10 | AM_MAINTAINER_MODE |
9 | AM_MAINTAINER_MODE |
11 | |
10 | |
… | |
… | |
222 | AC_MSG_CHECKING(for $PERL suitability) |
221 | AC_MSG_CHECKING(for $PERL suitability) |
223 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
222 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
224 | |
223 | |
225 | save_CFLAGS="$CFLAGS" |
224 | save_CFLAGS="$CFLAGS" |
226 | save_LIBS="$LIBS" |
225 | save_LIBS="$LIBS" |
227 | 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}'`" |
228 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
227 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
229 | AC_TRY_LINK([ |
228 | AC_TRY_LINK([ |
230 | #include <EXTERN.h> |
229 | #include <EXTERN.h> |
231 | #include <perl.h> |
230 | #include <perl.h> |
232 | #include <XSUB.h> |
231 | #include <XSUB.h> |
|
|
232 | #include "EventAPI.h" |
233 | ],[ |
233 | ],[ |
234 | PerlInterpreter *perl = perl_alloc (); |
234 | PerlInterpreter *perl = perl_alloc (); |
235 | ],[perl_link=yes],[perl_link=no]) |
235 | ],[perl_link=yes],[perl_link=no]) |
236 | CXXFLAGS="$save_CFLAGS" |
236 | CXXFLAGS="$save_CFLAGS" |
237 | LIBS="$save_LIBS" |
237 | LIBS="$save_LIBS" |
238 | |
238 | |
239 | if test x$perl_link = xyes; then |
239 | if test x$perl_link = xyes; then |
240 | AC_MSG_RESULT(ok) |
240 | AC_MSG_RESULT(ok) |
241 | 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) |
242 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
242 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts` `$PERL -MEvent::MakeMaker -e 'print +{&Event::MakeMaker::event_args}->{INC}'`" |
243 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
243 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
244 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
244 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
245 | PERL_PLUGIN=yes |
245 | PERL_PLUGIN=yes |
246 | else |
246 | else |
247 | AC_MSG_ERROR([no, unable to link]) |
247 | AC_MSG_ERROR([no, unable to link]) |
… | |
… | |
274 | fi |
274 | fi |
275 | AM_CONDITIONAL(PYTHON_PLUGIN,test "x$PLUGIN_PYTHON" != "x") |
275 | AM_CONDITIONAL(PYTHON_PLUGIN,test "x$PLUGIN_PYTHON" != "x") |
276 | AC_SUBST(PLUGIN_PYTHON) |
276 | AC_SUBST(PLUGIN_PYTHON) |
277 | |
277 | |
278 | AC_OUTPUT([Makefile |
278 | AC_OUTPUT([Makefile |
279 | crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile |
|
|
280 | crossedit/Cnv/Makefile crossedit/bitmaps/Makefile |
|
|
281 | doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile |
279 | doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile |
282 | doc/spoiler/Makefile doc/spoiler-html/Makefile |
280 | doc/spoiler/Makefile doc/spoiler-html/Makefile |
283 | doc/playbook/Makefile doc/playbook-html/Makefile |
281 | doc/playbook/Makefile doc/playbook-html/Makefile |
284 | doc/scripts/Makefile |
282 | doc/scripts/Makefile |
285 | lib/Makefile random_maps/Makefile socket/Makefile server/Makefile |
283 | lib/Makefile random_maps/Makefile socket/Makefile server/Makefile |
286 | include/Makefile utils/Makefile lib/checkarch.pl |
284 | include/Makefile utils/Makefile lib/checkarch.pl |
287 | lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl |
285 | lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl |
288 | utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl |
286 | utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl |
289 | common/Makefile plugins/Makefile plugins/cfperl/Makefile plugins/cfpython/Makefile plugins/cfanim/Makefile devel/Makefile |
287 | common/Makefile plugins/Makefile plugins/cfpython/Makefile |
|
|
288 | plugins/cfpython/include/Makefile plugins/cfanim/Makefile |
|
|
289 | plugins/cfanim/include/Makefile |
|
|
290 | plugins/common/Makefile plugins/common/include/Makefile |
|
|
291 | devel/Makefile |
|
|
292 | plugins/cfperl/Makefile |
290 | ]) |
293 | ]) |