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 | |
… | |
… | |
66 | "Pod::POM 0.17" \ |
66 | "Pod::POM 0.17" \ |
67 | "Safe::Hole 0.10" \ |
67 | "Safe::Hole 0.10" \ |
68 | "Storable 2.0" \ |
68 | "Storable 2.0" \ |
69 | "Time::HiRes 1.0" \ |
69 | "Time::HiRes 1.0" \ |
70 | "URI 1.35" \ |
70 | "URI 1.35" \ |
71 | "YAML::Syck 0.71" \ |
|
|
72 | "YAML 0.62" \ |
71 | "YAML 0.66" \ |
73 | ; do |
72 | ; do |
74 | set -- $module_vers |
73 | set -- $module_vers |
75 | module=$1 |
74 | module=$1 |
76 | minvers=$2 |
75 | minvers=$2 |
77 | AC_MSG_CHECKING(for $module perl module version $minvers or higher) |
76 | AC_MSG_CHECKING(for $module perl module version $minvers or higher) |
78 | if $PERL -M$module -e0 >/dev/null 2>&1; then |
77 | if $PERL -M$module -e0 >/dev/null 2>&1; then |
79 | version=`$PERL -M$module -e "print \\$$module::VERSION"` |
78 | version=`$PERL -M$module -e "print \\$$module::VERSION"` |
80 | if $PERL -M$module -e "VERSION $module $minvers" >/dev/null 2>&1; then |
79 | if $PERL -M$module -e "\$$module::VERSION >= $minvers or die" >/dev/null 2>&1; then |
81 | AC_MSG_RESULT([ok, version $version]) |
80 | AC_MSG_RESULT([ok, version $version]) |
82 | else |
81 | else |
83 | AC_MSG_ERROR([no, installed version is $version]) |
82 | AC_MSG_ERROR([no, installed version is $version]) |
84 | fi |
83 | fi |
85 | else |
84 | else |