--- deliantra/server/configure.ac 2007/03/06 22:07:56 1.58 +++ deliantra/server/configure.ac 2007/03/07 01:23:37 1.59 @@ -10,14 +10,29 @@ AC_PREFIX_DEFAULT(/usr/games/crossfire) +AC_PATH_PROG(GPERF, gperf) +if test -z "$GPERF"; then + AC_MSG_ERROR([gperf, the GNU perfect hash generator, must be in your PATH, check the README]) +fi + +AC_PATH_PROG(RSYNC, rsync) +if test -z "$RSYNC"; then + AC_MSG_ERROR([rsync must be in your PATH, check the README]) +fi + AC_PATH_PROG(OPTIPNG, optipng) if test -z "$OPTIPNG"; then - AC_MSG_ERROR([optipng must be in your PATH, see the README]) + AC_MSG_ERROR([optipng must be in your PATH, check the README]) +fi + +AC_PATH_PROG(IDENTIFY, identify) +if test -z "$IDENTIFY"; then + AC_MSG_ERROR([ImageMagick 'identify' must be in your PATH, check the README]) fi AC_PATH_PROG(CONVERT, convert) if test -z "$CONVERT"; then - AC_MSG_ERROR([ImageMagick 'convert' must be in your PATH, see the README]) + AC_MSG_ERROR([ImageMagick 'convert' must be in your PATH, check the README]) fi AC_PATH_PROG(PERL, perl5.8) @@ -25,10 +40,13 @@ AC_PATH_PROG(PERL, perl5) if test -z "$PERL"; then AC_PATH_PROG(PERL, perl) + if test -z "$PERL"; then + AC_MSG_ERROR([perl 5.8 or higher must be in your PATH, check the README]) + fi fi fi -for module_vers in "Crossfire 0.97" "Coro 3.5" "Coro::Event 2.1" "Event 1.08" \ +for module_vers in "Image::Size 2.992" "Crossfire 0.97" "Coro 3.5" "Coro::Event 2.1" "Event 1.08" \ "IO::AIO 2.32" "BDB 0.1" "Storable 2.0" "Time::HiRes 1.0" "YAML::Syck 0.71" \ "Digest::MD5 2.0" "Compress::LZF 1.71" "Safe::Hole 0.10" "Pod::POM 0.17"; do set -- $module_vers @@ -47,11 +65,6 @@ fi done -AC_PATH_PROG(GPERF, gperf) -if test -z "$GPERF"; then - AC_MSG_ERROR([we need gperf, the GNU perfect hash generator]) -fi - AC_LANG(C++) AC_PROG_CXX AC_PROG_CPP