From fa55af255ebfa832aa9ebb38876da56b20048162 Mon Sep 17 00:00:00 2001 From: Jae Gangemi Date: Sun, 20 Aug 2000 18:29:24 +0000 Subject: [PATCH] - now checks for gnome libs > 1.2.4 (needed for libglade to work) git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@931 67ed7778-7388-44ab-90cf-0a291f65f57c --- frontends/gtk/configure.in | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/frontends/gtk/configure.in b/frontends/gtk/configure.in index e29d6df6f..883fdc4f8 100644 --- a/frontends/gtk/configure.in +++ b/frontends/gtk/configure.in @@ -72,18 +72,44 @@ else dnl ------------- dnl We have GNOME dnl ------------- + dnl -------------------- + dnl Check for gnome-libs + dnl -------------------- + AC_MSG_CHECKING(for gnome-libs >= 1.2.4) + if gnome-config --version > /dev/null 2>&1; then + vers=`gnome-config --version | sed -e "s/gnome-libs //" | \ + awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test "$vers" -ge 1002004; then + AC_MSG_RESULT(found) + else + AC_MSG_ERROR([ +*** The gnome-version of gphoto needs at least gnome-libs 1.2.4. The latest +*** version of gnome-libs is always available from ftp://ftp.gnome.org/. +*** +*** If you want to build gphoto without gnome support, try the +*** --disable-gnome option.]) + fi + else + AC_MSG_ERROR([ +*** The gnome-version of gphoto needs gnome-libs. The latest version of +*** gnome-libs is always available from ftp://ftp.gnome.org/. +*** +*** If you want to build gphoto without gnome support, try the +*** --disable-gnome option.]) + fi dnl ------------------ dnl Check for libglade dnl ------------------ AC_MSG_CHECKING(for Glade libraries >= 0.11) if gnome-config --libs libglade > /dev/null 2>&1; then - vers=`gnome-config --modversion libglade | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'` + vers=`gnome-config --modversion libglade | \ + awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'` if test "$vers" -ge 11; then AC_MSG_RESULT(found) else AC_MSG_ERROR([ *** The gnome-version of gphoto needs at least libglade 0.11. The latest -*** version of libglade is always available from ftp://ftp.gnome.org/.. +*** version of libglade is always available from ftp://ftp.gnome.org/. *** *** If you want to build gphoto without gnome support, try the *** --disable-gnome option.])