Commit ab5af33a authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

first cut at improved version checks for required packages.

2000-12-10  Morten Welinder  <terra@diku.dk>

	* configure.in: first cut at improved version checks for required
	packages.
parent 2aa95cd6
2000-12-10 Morten Welinder <terra@diku.dk>
* configure.in: first cut at improved version checks for required
packages.
2000-12-10 Jody Goldberg <jgoldberg@home.com>
* src/expr-name.c (expr_name_invalidate_refs_sheet) : comment out
......
2000-12-10 Morten Welinder <terra@diku.dk>
* configure.in: first cut at improved version checks for required
packages.
2000-12-10 Jody Goldberg <jgoldberg@home.com>
* src/expr-name.c (expr_name_invalidate_refs_sheet) : comment out
......
2000-12-10 Morten Welinder <terra@diku.dk>
* configure.in: first cut at improved version checks for required
packages.
2000-12-10 Jody Goldberg <jgoldberg@home.com>
* src/expr-name.c (expr_name_invalidate_refs_sheet) : comment out
......
2000-12-10 Morten Welinder <terra@diku.dk>
* configure.in: first cut at improved version checks for required
packages.
2000-12-10 Jody Goldberg <jgoldberg@home.com>
* src/expr-name.c (expr_name_invalidate_refs_sheet) : comment out
......
2000-12-10 Morten Welinder <terra@diku.dk>
* configure.in: first cut at improved version checks for required
packages.
2000-12-10 Jody Goldberg <jgoldberg@home.com>
* src/expr-name.c (expr_name_invalidate_refs_sheet) : comment out
......
......@@ -85,15 +85,16 @@ dnl gnome-xml checking
dnl ******************************
AC_MSG_CHECKING(for libxml (aka gnome-xml) libraries 1.8.5 <= version < 2.0.0)
if xml-config --libs > /dev/null 2>&1; then
vers=`xml-config --version | sed -e "s/libxml //" | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
verstxt=`xml-config --version`
vers=`echo "$verstxt" | sed -e "s/libxml //" | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test "$vers" -ge 1008005; then
if test "$vers" -lt 2000000; then
AC_MSG_RESULT(found)
AC_MSG_RESULT("found $verstxt -- ok")
else
AC_MSG_ERROR(This version of Gnumeric does not support libxml (aka gnome-xml) 2.x.x yet.)
AC_MSG_ERROR(This version of Gnumeric does not support libxml (aka gnome-xml) $verstxt yet.)
fi
else
AC_MSG_ERROR(You need at least libxml (aka gnome-xml) 1.8.5 for this version of Gnumeric.)
AC_MSG_ERROR(Found $verstxt. You need at least libxml (aka gnome-xml) 1.8.5 for this version of Gnumeric.)
fi
else
AC_MSG_ERROR(Did not find libxml (aka gnome-xml) installed)
......@@ -166,22 +167,24 @@ AM_CONDITIONAL(WITH_PYTHON, $python_val)
dnl Check for libole2
AC_MSG_CHECKING(for libole2 >= 0.1.7)
vers_ok="";
vers=`gnome-config --modversion libole2 | grep "libole2-" | \
sed -e "s/libole2-//" | \
awk 'BEGIN { FS = "."; } { printf "%d", $1 * 10000 + $2 * 100 + $3 ;}'`
if test 0"$vers"; then
if test "$vers" -ge 107; then
vers_ok="yes";
fi
if gnome-config --libs libole2 > /dev/null 2>&1; then
verstxt=`gnome-config --modversion libole2`
vers=`echo "$verstxt" | sed -e "s/^libole2-//" | \
awk 'BEGIN { FS = "."; } { printf "%d", $1 * 10000 + $2 * 100 + $3 ;}'`
if test "$vers" -ge 107; then
AC_MSG_RESULT("found $verstxt -- ok")
vers_ok=yes
else
AC_MSG_RESULT("found only $verstxt")
fi
else
AC_MSG_RESULT("not found")
fi
if test "$vers_ok"; then
AC_MSG_RESULT(found)
unset vers_ok
else
AC_MSG_ERROR(not found
this version of gnumeric requires an external
AC_MSG_ERROR(This version of gnumeric requires an external
libole2 library the latest version can be obtained from
ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libole2/
......@@ -208,10 +211,17 @@ gnumeric_executable=gnumeric
AC_SUBST(gnumeric_executable)
if $try_bonobo; then
AC_MSG_CHECKING(for Bonobo >= 0.27)
vers=`gnome-config --modversion bonobo | sed -e "s/bonobo-//" | \
awk 'BEGIN { FS = "."; } { printf "%d", $1 * 1000 + $2;}'`
if gnome-config --libs bonobo > /dev/null 2>&1; then
verstxt=`gnome-config --modversion bonobo`
vers=`echo "$verstxt" | sed -e "s/^bonobo-//" | \
awk 'BEGIN { FS = "."; } { printf "%d", $1 * 1000 + $2;}'`
else
verstxt="-"
vers=0
fi
if test "$vers" -ge 27; then
AC_MSG_RESULT(found)
AC_MSG_RESULT("found $verstxt -- ok")
AC_DEFINE(ENABLE_BONOBO)
have_bonobo=true
bonobo=bonobox_print
......@@ -231,7 +241,11 @@ if $try_bonobo; then
AM_CONDITIONAL(USING_OAF, test x"using_oaf" = "xyes")
else
AC_MSG_RESULT(not found)
if test "$vers" -eq 0; then
AC_MSG_RESULT("not found")
else
AC_MSG_RESULT("found only $verstxt -- ignoring")
fi
fi
fi
gnumeric_bonobo_enabled=$bonobo_msg
......@@ -282,24 +296,19 @@ AC_ARG_WITH(gb,
if $try_gb; then
AC_MSG_CHECKING(for Gb >= 0.0.17)
if gnome-config --libs gb > /dev/null 2>&1; then
vers=`gnome-config --modversion gb | awk 'BEGIN { FS = "."; } { print $1 * 10000 + $2 * 100 + $3; }'`
verstxt=`gnome-config --modversion gb 2>/dev/null`
vers=`echo "$verstxt" | awk 'BEGIN { FS = "."; } { printf "%d, $1 * 10000 + $2 * 100 + $3; }'`
if test "$vers" -ge 000017; then
gb_ok=true
AC_MSG_RESULT("found $verstxt -- ok")
AC_DEFINE(ENABLE_GB)
GB_LIBS=`gnome-config --libs gb`
GB_CFLAGS=`gnome-config --cflags gb`
have_gb=true
gb=gb
gb_msg=yes
else
gb_ok=false
AC_MSG_RESULT("found only $verstxt -- ignoring")
fi
else
gb_ok=false
fi
if $gb_ok; then
AC_MSG_RESULT(found)
AC_DEFINE(ENABLE_GB)
GB_LIBS=`gnome-config --libs gb`
GB_CFLAGS=`gnome-config --cflags gb`
have_gb=true
gb=gb
gb_msg=yes
else
AC_MSG_RESULT(not found)
fi
......@@ -313,12 +322,14 @@ dnl GnomePrint checking
dnl ******************************
AC_MSG_CHECKING(for GnomePrint libraries >= 0.25)
if gnome-config --libs print > /dev/null 2>&1; then
vers=`gnome-config --modversion print | sed -e "s/gnome-print-//" -e 's/cvs$//' -e 's/pre$//' | \
awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`
verstxt=`gnome-config --modversion print`
vers=`echo "$verstxt" | sed -e "s/gnome-print-//" -e 's/cvs$//' -e 's/pre$//' | \
awk 'BEGIN { FS = "."; } { printf "%d", $1 * 1000 + $2;}'`
if test "$vers" -ge 25; then
AC_MSG_RESULT(found)
AC_MSG_RESULT("found $verstxt -- ok")
else
AC_MSG_ERROR(You need at least GNOME print 0.25 for this version of Gnumeric)
AC_MSG_RESULT("found only $verstxt")
AC_MSG_ERROR("You need at least gnome-print-0.25 for this version of Gnumeric")
fi
else
AC_MSG_ERROR(Did not find GnomePrint installed)
......@@ -329,14 +340,16 @@ dnl LibGlade checking
dnl ******************************
AC_MSG_CHECKING(for Glade libraries >= 0.14)
if gnome-config --libs libglade > /dev/null 2>&1; then
vers=`gnome-config --modversion libglade | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'`
verstxt=`gnome-config --modversion libglade`
vers=`echo "$verstxt" | awk 'BEGIN { FS = "."; } { printf "%d", $1 * 1000 + $2;}'`
if test "$vers" -ge 14; then
AC_MSG_RESULT(found)
AC_MSG_RESULT("found $verstxt -- ok")
else
AC_MSG_ERROR(You need at least libglade 0.14 for this version of Gnumeric)
AC_MSG_RESULT("found only $verstxt")
AC_MSG_ERROR("You need at least libglade 0.14 for this version of Gnumeric")
fi
else
AC_MSG_ERROR(Did not find libGlade installed)
AC_MSG_ERROR("Did not find libglade installed")
fi
dnl ******************************
......@@ -344,12 +357,14 @@ dnl Gnome App Lib checking
dnl ******************************
AC_MSG_CHECKING(for Gnome App libraries (GAL) >= 0.3.0)
if gnome-config --libs gal > /dev/null 2>&1; then
vers=`gnome-config --modversion gal | sed -e "s/gal-//" -e 's/cvs$//' -e 's/pre$//' | \
verstxt=`gnome-config --modversion gal`
vers=`echo "$verstxt" | sed -e "s/gal-//" -e 's/cvs$//' -e 's/pre$//' | \
awk 'BEGIN { FS = "."; } { printf "%d", $1*1000000 + $2*10000 + $3*100 + $4; }'`
if test "$vers" -ge 30000; then
AC_MSG_RESULT(found)
AC_MSG_RESULT("found $verstxt -- ok")
else
AC_MSG_ERROR(You need at least GNOME Application libs 0.3.0 for this version of Gnumeric)
AC_MSG_RESULT("found only $verstxt")
AC_MSG_ERROR("You need at least GNOME Application libs 0.3.0 for this version of Gnumeric")
fi
else
AC_MSG_ERROR(Did not find GnomeAppLib (GAL) installed)
......@@ -359,19 +374,16 @@ dnl ******************************
dnl gtk+ checking
dnl ******************************
AC_MSG_CHECKING(for GTK >= 1.2.7)
if gtk-config --version > /dev/null 2>&1; then
dnl We need the "%d" in order not to get e-notation on hpux.
vers=`gtk-config --version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test "$vers" -ge 1002007; then
AC_MSG_RESULT(found)
else
AC_MSG_ERROR(You need at least GTK+ 1.2.7 for this version of Gnumeric)
fi
dnl The existance of gtk+ >= 1.2.0 has already been established here.
verstxt=`gtk-config --version`
vers=`echo "$verstxt" | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test "$vers" -ge 1002007; then
AC_MSG_RESULT("found $verstxt -- ok")
else
AC_MSG_ERROR(Did not find GTK+ installed)
AC_MSG_RESULT("found only $verstxt")
AC_MSG_ERROR("You need at least GTK+ 1.2.7 for this version of Gnumeric")
fi
dnl ****************
dnl Check for pspell
dnl ****************
......
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