version 1.18 | | version 1.19 |
---|
| | |
dnl Process this file with autoconf to produce a configure script. | | dnl Process this file with autoconf to produce a configure script. |
| | |
AC_REVISION($Id: configure.ac,v 1.18 2006/02/25 09:08:51 mwedel Exp $) | | AC_REVISION($Id: configure.ac,v 1.19 2006/03/21 22:46:00 tchize Exp $) |
AC_INIT([crossfire], [1.9.0], [crossfire-devel@listserv.real-time.com]) | | AC_INIT([crossfire], [1.9.0], [crossfire-devel@listserv.real-time.com]) |
AC_CONFIG_AUX_DIR(utils) | | AC_CONFIG_AUX_DIR(utils) |
AC_CONFIG_SRCDIR([server/main.c]) | | AC_CONFIG_SRCDIR([server/main.c]) |
| | |
############### | | ############### |
# Python plugin | | # Python plugin |
CF_CHECK_PYTHON( | | CF_CHECK_PYTHON( |
[PLUGIN_PYTHON="cfpython.la"], | | [PLUGIN_PYTHON="cfpython.la"] |
| | [cf_will_build_python="yes"], |
| | [cf_will_build_python="no"] |
[AC_MSG_NOTICE([No Python found. Python plugin will not be built.])] | | [AC_MSG_NOTICE([No Python found. Python plugin will not be built.])] |
) | | ) |
dnl *** Put other plugins configuration code here *** | | dnl *** Put other plugins configuration code here *** |
| | |
AM_CONDITIONAL(PYTHON_PLUGIN,test "x$PLUGIN_PYTHON" != "x") | | AM_CONDITIONAL(PYTHON_PLUGIN,test "x$PLUGIN_PYTHON" != "x") |
AC_SUBST(PLUGIN_PYTHON) | | AC_SUBST(PLUGIN_PYTHON) |
| | |
| | ######################## |
| | # Unit test configuration |
| | |
| | AM_PATH_CHECK(,[have_check="yes"], |
| | AC_MSG_WARN([Check not found; cannot run unit tests!]) |
| | [have_check="no"]) |
| | AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes") |
| | |
AC_OUTPUT([Makefile | | AC_OUTPUT([Makefile |
crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile | | crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile |
crossedit/Cnv/Makefile crossedit/bitmaps/Makefile | | crossedit/Cnv/Makefile crossedit/bitmaps/Makefile |
| | |
plugins/cfanim/include/Makefile | | plugins/cfanim/include/Makefile |
plugins/common/Makefile plugins/common/include/Makefile | | plugins/common/Makefile plugins/common/include/Makefile |
devel/Makefile | | devel/Makefile |
| | test/Makefile test/unit/Makefile test/toolkit/Makefile |
| | test/unit/common/Makefile test/unit/random_maps/Makefile test/unit/socket/Makefile test/unit/server/Makefile test/unit/crossedit/Makefile |
]) | | ]) |
| | AC_MSG_NOTICE([]) |
| | AC_MSG_NOTICE([]) |
| | AC_MSG_NOTICE([]) |
| | AC_MSG_NOTICE([Configuration resume....]) |
| | AC_MSG_NOTICE([]) |
| | AC_MSG_NOTICE([ Paths]) |
| | AC_MSG_NOTICE([ prefix default value ${prefix}]) |
| | AC_MSG_NOTICE([ exec_prefix default value ${exec_prefix}]) |
| | AC_MSG_NOTICE([ Will put executables in $bindir]) |
| | AC_MSG_NOTICE([ Will put ressources in $datadir]) |
| | AC_MSG_NOTICE([ Will put config in $sysconfdir]) |
| | AC_MSG_NOTICE([ Will put server runtime datas in: $localstatedir]) |
| | AC_MSG_NOTICE([]) |
| | AC_MSG_NOTICE([ Build options]) |
| | AC_MSG_NOTICE([]) |
| | AC_MSG_NOTICE([ Will build crossedit? (*) No fucking way to know! ]) |
| | AC_MSG_NOTICE([ Will build plugins? $cf_have_libdl]) |
| | |
| | if test "x$cf_have_libdl" = "xyes" ; then |
| | AC_MSG_NOTICE([ Will build python plugin? $cf_will_build_python]) |
| | |
| | fi |
| | AC_MSG_NOTICE([ Will process unit testing? $have_check ]) |
| | if test "x$have_check" = "xyes" ; then |
| | AC_MSG_NOTICE([ (run make; make -k check)]) |
| | else |
| | AC_MSG_NOTICE([ If you are a developper, you MUST install the check framework]) |
| | AC_MSG_NOTICE([ and write automated tests for all you add-ons!]) |
| | fi |
| | AC_MSG_NOTICE([]) |
| | AC_MSG_NOTICE([ * because there is now way to know if crossedit will be compilable]) |
| | AC_MSG_NOTICE([ on this platform, it may be that automated tests depending on it]) |
| | AC_MSG_NOTICE([ fail with awfull make error messages. As checks are run with]) |
| | AC_MSG_NOTICE([ make -k this should not affect other checks]) |
| | |
| | |