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.123 by root, Thu Apr 10 15:35:15 2008 UTC vs.
Revision 1.174 by root, Tue May 4 21:45:42 2010 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([deliantra-server], [2.44], [support@deliantra.net]) 3AC_INIT([deliantra-server], [2.93], [support@deliantra.net])
4AC_CONFIG_AUX_DIR(utils) 4AC_CONFIG_AUX_DIR(utils)
5AC_CONFIG_SRCDIR([server/cfperl.xs]) 5AC_CONFIG_SRCDIR([server/cfperl.xs])
6AM_INIT_AUTOMAKE 6AM_INIT_AUTOMAKE
7AM_CONFIG_HEADER(include/autoconf.h) 7AM_CONFIG_HEADER(include/autoconf.h)
8 8
38AC_PATH_PROG(CONVERT, convert) 38AC_PATH_PROG(CONVERT, convert)
39if test -z "$CONVERT"; then 39if test -z "$CONVERT"; then
40 AC_MSG_ERROR([ImageMagick 'convert' must be in your PATH, check the README]) 40 AC_MSG_ERROR([ImageMagick 'convert' must be in your PATH, check the README])
41fi 41fi
42 42
43AC_PATH_PROG(PERL, perl5.10.0) 43AC_PATH_PROG(PERL, perl5.10.1)
44if test -z "$PERL"; then 44if test -z "$PERL"; then
45 AC_PATH_PROG(PERL, perl5.8.8) 45 AC_PATH_PROG(PERL, perl5.10.0)
46 if test -z "$PERL"; then 46 if test -z "$PERL"; then
47 AC_PATH_PROG(PERL, perl) 47 AC_PATH_PROG(PERL, perl)
48 if test -z "$PERL"; then 48 if test -z "$PERL"; then
49 AC_MSG_ERROR([perl 5.8 or higher must be in your PATH, check the README]) 49 AC_MSG_ERROR([perl 5.10 or higher must be in your PATH, check the README])
50 fi 50 fi
51 fi 51 fi
52fi 52fi
53 53
54for module_vers in \ 54for module_vers in \
55 "common::sense 3.2" \
55 "AnyEvent 2.9" \ 56 "AnyEvent 5.2" \
57 "AnyEvent::AIO 0" \
58 "AnyEvent::BDB 0" \
56 "BDB 1.43" \ 59 "BDB 1.8" \
57 "Compress::LZF 1.8" \ 60 "Compress::LZF 3.41" \
58 "Coro 4.50" \ 61 "Coro 5.13" \
59 "Coro::EV 2.1" \ 62 "Coro::EV 0" \
60 "Deliantra 1.13" \ 63 "Deliantra 1.24" \
61 "Digest::MD5 2.0" \ 64 "Digest::MD5 2.0" \
62 "EV 3.2" \ 65 "EV 3.41" \
66 "Guard 0.5" \
63 "IO::AIO 2.51" \ 67 "IO::AIO 3.3" \
64 "JSON::XS 2.01" \ 68 "JSON::XS 2.01" \
65 "Net::IRC3 0.5" \ 69 "AnyEvent::IRC 0.6" \
66 "Pod::POM 0.17" \ 70 "Pod::POM 0.17" \
67 "Safe::Hole 0.10" \ 71 "Safe::Hole 0.10" \
68 "Storable 2.0" \ 72 "Storable 2.0" \
69 "Time::HiRes 1.0" \ 73 "Time::HiRes 1.0" \
70 "URI 1.35" \ 74 "URI 1.35" \
71 "YAML 0.66" \ 75 "YAML::XS 0.32" \
72; do 76; do
73 set -- $module_vers 77 set -- $module_vers
74 module=$1 78 module=$1
75 minvers=$2 79 minvers=$2
76 AC_MSG_CHECKING(for $module perl module version $minvers or higher) 80 AC_MSG_CHECKING(for $module perl module version $minvers or higher)
103 AC_MSG_RESULT(ok) 107 AC_MSG_RESULT(ok)
104else 108else
105 AC_MSG_ERROR(no) 109 AC_MSG_ERROR(no)
106fi 110fi
107 111
112AC_MSG_CHECKING(gthread >= 0.0)
113if $PKG_CONFIG gthread-2.0 --atleast-version 0.0; then
114 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG gthread-2.0 --cflags`"
115 LIBS="$LIBS `$PKG_CONFIG gthread-2.0 --libs`"
116 AC_MSG_RESULT(ok)
117else
118 AC_MSG_ERROR(no)
119fi
120
108dnl AC_MSG_CHECKING(libpng) 121dnl AC_MSG_CHECKING(libpng)
109dnl if $PKG_CONFIG libpng --exists; then 122dnl if $PKG_CONFIG libpng --exists; then
110dnl CXXFLAGS="$CXXFLAGS `$PKG_CONFIG libpng --cflags`" 123dnl CXXFLAGS="$CXXFLAGS `$PKG_CONFIG libpng --cflags`"
111dnl LIBS="$LIBS `$PKG_CONFIG libpng --libs`" 124dnl LIBS="$LIBS `$PKG_CONFIG libpng --libs`"
112dnl AC_MSG_RESULT(ok) 125dnl AC_MSG_RESULT(ok)
113dnl else 126dnl else
114dnl AC_MSG_ERROR(no) 127dnl AC_MSG_ERROR(no)
115dnl fi 128dnl fi
116 129
117AC_MSG_CHECKING(for $PERL suitability) 130AC_MSG_CHECKING(for $PERL suitability)
118if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>&1; then 131if $PERL -MExtUtils::Embed -e "use 5.10.0" >/dev/null 2>&1; then
119 save_CXXFLAGS="$CXXFLAGS" 132 save_CXXFLAGS="$CXXFLAGS"
120 save_LIBS="$LIBS" 133 save_LIBS="$LIBS"
121 xPERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 134 xPERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
122 xPERLFLAGS="$xPERLFLAGS `$PERL -MEV::MakeMaker -e 'print +{&EV::MakeMaker::ev_args}->{INC}'`" 135 xPERLFLAGS="$xPERLFLAGS `$PERL -MEV::MakeMaker -e 'print +{&EV::MakeMaker::ev_args}->{INC}'`"
123 xPERLFLAGS="$xPERLFLAGS `$PERL -MCoro::MakeMaker -e 'print +{&Coro::MakeMaker::coro_args}->{INC}'`" 136 xPERLFLAGS="$xPERLFLAGS `$PERL -MCoro::MakeMaker -e 'print +{&Coro::MakeMaker::coro_args}->{INC}'`"
126 AC_TRY_LINK([ 139 AC_TRY_LINK([
127#include <EXTERN.h> 140#include <EXTERN.h>
128#include <perl.h> 141#include <perl.h>
129#include <XSUB.h> 142#include <XSUB.h>
130#include "EVAPI.h" 143#include "EVAPI.h"
144#include "CoroAPI.h"
131],[ 145],[
132 PerlInterpreter *perl = perl_alloc (); 146 PerlInterpreter *perl = perl_alloc ();
133],[perl_link=yes],[perl_link=no]) 147],[perl_link=yes],[perl_link=no])
134 CXXFLAGS="$save_CXXFLAGS" 148 CXXFLAGS="$save_CXXFLAGS"
135 LIBS="$save_LIBS" 149 LIBS="$save_LIBS"
136 150
137 if test x$perl_link = xyes; then 151 if test x$perl_link = xyes; then
138 AC_MSG_RESULT(ok) 152 AC_MSG_RESULT(ok)
139 AC_DEFINE(ENABLE_PERL, 1, Define if you can embed a perl interpreter)
140 PERLFLAGS="$xPERLFLAGS" 153 PERLFLAGS="$xPERLFLAGS"
141 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 154 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
142 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 155 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
143 CPPFLAGS="$CPPFLAGS $PERLFLAGS" 156 CPPFLAGS="$CPPFLAGS $PERLFLAGS"
144 else 157 else
145 AC_MSG_ERROR([no, unable to link]) 158 AC_MSG_ERROR([no, unable to link test program])
146 fi 159 fi
147else 160else
148 AC_MSG_ERROR([no working perl found, or perl not version >= 5.8]) 161 AC_MSG_ERROR([no working perl found, or perl not version >= 5.10])
149fi 162fi
150AC_SUBST(PERLLIB) 163AC_SUBST(PERLLIB)
151AC_SUBST(PERLFLAGS) 164AC_SUBST(PERLFLAGS)
152AC_SUBST(PERLPRIVLIBEXP) 165AC_SUBST(PERLPRIVLIBEXP)
153AC_SUBST(PERL) 166AC_SUBST(PERL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines