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.166 by root, Mon Oct 12 18:06:56 2009 UTC vs.
Revision 1.182 by root, Wed Oct 31 15:09:13 2012 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.81], [support@deliantra.net]) 3AC_INIT([deliantra-server], [3.0], [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
28AC_PATH_PROG(PNGNQ, pngnq) 28AC_PATH_PROG(PNGNQ, pngnq)
29if test -z "$PNGNQ"; then 29if test -z "$PNGNQ"; then
30 AC_MSG_ERROR([png neuquant (pngnq) must be in your PATH, check the README]) 30 AC_MSG_ERROR([png neuquant (pngnq) must be in your PATH, check the README])
31fi 31fi
32 32
33dnl AC_PATH_PROG(IDENTIFY, identify) 33AC_PATH_PROG(IDENTIFY, identify)
34dnl if test -z "$IDENTIFY"; then 34if test -z "$IDENTIFY"; then
35dnl AC_MSG_ERROR([ImageMagick 'identify' must be in your PATH, check the README]) 35 AC_MSG_ERROR([ImageMagick 'identify' must be in your PATH, check the README])
36dnl fi 36fi
37 37
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.1) 43AC_PATH_PROG(PERL, perl5.10.1)
44if test -z "$PERL"; then 44if test -z "$PERL"; then
45 AC_PATH_PROG(PERL, perl5.10.0) 45 AC_PATH_PROG(PERL, perl)
46 if test -z "$PERL"; then 46 if test -z "$PERL"; then
47 AC_PATH_PROG(PERL, perl)
48 if test -z "$PERL"; then
49 AC_MSG_ERROR([perl 5.10 or higher must be in your PATH, check the README]) 47 AC_MSG_ERROR([perl 5.10.1 or higher must be in your PATH, check the README])
50 fi
51 fi 48 fi
52fi 49fi
53 50
54for module_vers in \ 51for module_vers in \
52 "common::sense 3.3" \
55 "AnyEvent 4.22" \ 53 "AnyEvent 7.0" \
56 "AnyEvent::AIO 0" \ 54 "AnyEvent::AIO 0" \
57 "AnyEvent::BDB 0" \ 55 "AnyEvent::BDB 0" \
58 "BDB 1.8" \ 56 "BDB 1.8" \
59 "Compress::LZF 3.41" \ 57 "Compress::LZF 3.41" \
60 "Coro 5.13" \ 58 "Coro 5.372" \
61 "Coro::EV 0" \ 59 "Coro::EV 0" \
62 "Deliantra 1.24" \ 60 "Deliantra 1.24" \
63 "Digest::MD5 2.0" \ 61 "Digest::MD5 2.0" \
64 "EV 3.41" \ 62 "EV 4.00" \
65 "Guard 0.5" \ 63 "Guard 0.5" \
66 "IO::AIO 3.25" \ 64 "IO::AIO 3.3" \
67 "JSON::XS 2.01" \ 65 "JSON::XS 2.01" \
68 "AnyEvent::IRC 0.6" \ 66 "AnyEvent::IRC 0.6" \
69 "Pod::POM 0.17" \ 67 "Pod::POM 0.27" \
70 "Safe::Hole 0.10" \ 68 "Safe::Hole 0.10" \
71 "Storable 2.0" \ 69 "Storable 2.0" \
72 "Time::HiRes 1.0" \ 70 "Time::HiRes 1.0" \
73 "URI 1.35" \ 71 "URI 1.35" \
74 "YAML::XS 0.32" \ 72 "YAML::XS 0.32" \
97 95
98AC_CHECK_HEADER(pthread.h,[],[AC_MSG_ERROR([POSIX thread support is required.])]) 96AC_CHECK_HEADER(pthread.h,[],[AC_MSG_ERROR([POSIX thread support is required.])])
99 97
100AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 98AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
101 99
100AC_MSG_CHECKING(blitz++ >= 0.9)
101if $PKG_CONFIG blitz --atleast-version 0.9; then
102 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG blitz --cflags`"
103 LIBS="$LIBS `$PKG_CONFIG blitz --libs`"
104 AC_MSG_RESULT(ok)
105else
106 AC_MSG_ERROR(no)
107fi
108
102AC_MSG_CHECKING(glib >= 2.10) 109AC_MSG_CHECKING(glib >= 2.10)
103if $PKG_CONFIG glib-2.0 --atleast-version 2.10; then 110if $PKG_CONFIG glib-2.0 --atleast-version 2.10; then
104 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG glib-2.0 --cflags`" 111 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG glib-2.0 --cflags`"
105 LIBS="$LIBS `$PKG_CONFIG glib-2.0 --libs`" 112 LIBS="$LIBS `$PKG_CONFIG glib-2.0 --libs`"
106 AC_MSG_RESULT(ok) 113 AC_MSG_RESULT(ok)
125dnl else 132dnl else
126dnl AC_MSG_ERROR(no) 133dnl AC_MSG_ERROR(no)
127dnl fi 134dnl fi
128 135
129AC_MSG_CHECKING(for $PERL suitability) 136AC_MSG_CHECKING(for $PERL suitability)
130if $PERL -MExtUtils::Embed -e "use 5.10.0" >/dev/null 2>&1; then 137if $PERL -MExtUtils::Embed -e "use 5.10.1" >/dev/null 2>&1; then
131 save_CXXFLAGS="$CXXFLAGS" 138 save_CXXFLAGS="$CXXFLAGS"
132 save_LIBS="$LIBS" 139 save_LIBS="$LIBS"
133 xPERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 140 xPERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
134 xPERLFLAGS="$xPERLFLAGS `$PERL -MEV::MakeMaker -e 'print +{&EV::MakeMaker::ev_args}->{INC}'`" 141 xPERLFLAGS="$xPERLFLAGS `$PERL -MEV::MakeMaker -e 'print +{&EV::MakeMaker::ev_args}->{INC}'`"
135 xPERLFLAGS="$xPERLFLAGS `$PERL -MCoro::MakeMaker -e 'print +{&Coro::MakeMaker::coro_args}->{INC}'`" 142 xPERLFLAGS="$xPERLFLAGS `$PERL -MCoro::MakeMaker -e 'print +{&Coro::MakeMaker::coro_args}->{INC}'`"
155 CPPFLAGS="$CPPFLAGS $PERLFLAGS" 162 CPPFLAGS="$CPPFLAGS $PERLFLAGS"
156 else 163 else
157 AC_MSG_ERROR([no, unable to link test program]) 164 AC_MSG_ERROR([no, unable to link test program])
158 fi 165 fi
159else 166else
160 AC_MSG_ERROR([no working perl found, or perl not version >= 5.10]) 167 AC_MSG_ERROR([no working perl found, or perl not version >= 5.10.1])
161fi 168fi
162AC_SUBST(PERLLIB) 169AC_SUBST(PERLLIB)
163AC_SUBST(PERLFLAGS) 170AC_SUBST(PERLFLAGS)
164AC_SUBST(PERLPRIVLIBEXP) 171AC_SUBST(PERLPRIVLIBEXP)
165AC_SUBST(PERL) 172AC_SUBST(PERL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines