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_INIT([deliantra-server], [2.32], [support@deliantra.net]) |
3 | AC_INIT([deliantra-server], [2.4], [support@deliantra.net]) |
4 | AC_CONFIG_AUX_DIR(utils) |
4 | AC_CONFIG_AUX_DIR(utils) |
5 | AC_CONFIG_SRCDIR([server/cfperl.xs]) |
5 | AC_CONFIG_SRCDIR([server/cfperl.xs]) |
6 | AM_INIT_AUTOMAKE |
6 | AM_INIT_AUTOMAKE |
7 | AM_CONFIG_HEADER(include/autoconf.h) |
7 | AM_CONFIG_HEADER(include/autoconf.h) |
8 | |
8 | |
… | |
… | |
75 | module=$1 |
75 | module=$1 |
76 | minvers=$2 |
76 | minvers=$2 |
77 | AC_MSG_CHECKING(for $module perl module version $minvers or higher) |
77 | AC_MSG_CHECKING(for $module perl module version $minvers or higher) |
78 | if $PERL -M$module -e0 >/dev/null 2>&1; then |
78 | if $PERL -M$module -e0 >/dev/null 2>&1; then |
79 | version=`$PERL -M$module -e "print \\$$module::VERSION"` |
79 | version=`$PERL -M$module -e "print \\$$module::VERSION"` |
80 | if $PERL -M$module -e "VERSION $module $minvers" >/dev/null 2>&1; then |
80 | if $PERL -M$module -e "\$$module::VERSION >= $minvers or die" >/dev/null 2>&1; then |
81 | AC_MSG_RESULT([ok, version $version]) |
81 | AC_MSG_RESULT([ok, version $version]) |
82 | else |
82 | else |
83 | AC_MSG_ERROR([no, installed version is $version]) |
83 | AC_MSG_ERROR([no, installed version is $version]) |
84 | fi |
84 | fi |
85 | else |
85 | else |