Hi, Please review this patch. Using pkg-config wasn't a good idea. So had to parse the output of "xsp --version".
Srinidhi. -- ASCII ribbon campaign ( ) B S Srinidhi - against HTML email X http://www.srinidhi-is.in & vCards / \ Bangalore
Index: configure.in =================================================================== --- configure.in (revision 6666) +++ configure.in (working copy) @@ -590,8 +590,25 @@ # Configure MONO_WEBSERVER # MONO_WEBSERVER="no" -if test -e "/usr/lib/mono/1.0/Mono.WebServer.dll"; then - MONO_WEBSERVER="yes" +if test "$SIMIAS_OS" = "linux"; then + # If we have xsp in our $PATH, then we have xsp installed + AC_CHECK_PROG(HAVE_XSP, xsp, yes) + AC_CHECKING([whether xsp version is >= 1.1.18]) + if test "$HAVE_XSP" = "yes"; then + # Get the version info and check if we have a version >= 1.1.18 + XSP_EXE_VER=`xsp --version | head -n 1 | cut -d" " -f2` + P1=`echo $XSP_EXE_VER | cut -d"." -f2` + P2=`echo $XSP_EXE_VER | cut -d"." -f3` + if test $P1 -ge 1 ; then + if test $P2 -ge 18 ; then + MONO_WEBSERVER="yes" + else + AC_MSG_ERROR(* You need to install xsp>=1.1.18 to run simias) + fi + fi + else + AC_MSG_ERROR(* xsp command not found) + fi fi AC_SUBST(MONO_WEBSERVER)
_______________________________________________ ifolder-dev mailing list [email protected] http://forge.novell.com/mailman/listinfo/ifolder-dev
