Commit ac1daf42 authored by Morten Welinder's avatar Morten Welinder

Fix bonobo version check

parent bfdd94b8
...@@ -178,18 +178,9 @@ gnumeric_executable=gnumeric ...@@ -178,18 +178,9 @@ gnumeric_executable=gnumeric
AC_SUBST(gnumeric_executable) AC_SUBST(gnumeric_executable)
if $try_bonobo; then if $try_bonobo; then
AC_MSG_CHECKING(for Bonobo >= 0.13) AC_MSG_CHECKING(for Bonobo >= 0.13)
if gnome-config --libs bonobo > /dev/null 2>&1; then vers=`gnome-config --modversion bonobo | sed -e "s/bonobo-//" | \
vers=`gnome-config --modversion bonobo` awk 'BEGIN { FS = "."; } { printf "%d", $1 * 1000 + $2;}'`
case $vers if test "$vers" -ge 13; then
in
bonobo-0.[[012345678]]) bonobo_ok=false ;;
*) bonobo_ok=true ;;
esac
else
bonobo_ok=false
fi
if $bonobo_ok; then
AC_MSG_RESULT(found) AC_MSG_RESULT(found)
AC_DEFINE(ENABLE_BONOBO) AC_DEFINE(ENABLE_BONOBO)
have_bonobo=true have_bonobo=true
...@@ -209,7 +200,6 @@ if $try_bonobo; then ...@@ -209,7 +200,6 @@ if $try_bonobo; then
AC_MSG_RESULT("$using_oaf") AC_MSG_RESULT("$using_oaf")
AM_CONDITIONAL(USING_OAF, test x"using_oaf" = "xyes") AM_CONDITIONAL(USING_OAF, test x"using_oaf" = "xyes")
else else
AC_MSG_RESULT(not found) AC_MSG_RESULT(not found)
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment