]> www.fi.muni.cz Git - evince.git/blobdiff - configure.ac
french translation
[evince.git] / configure.ac
index 5df83b975aaafebbc895540986061a7d829ec568..b9553f2c5dc6bba70bcef99829e9963d3485818a 100644 (file)
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.59)
-AC_INIT(evince, 0.1.3)
+AC_INIT(evince, 0.1.4)
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
 
 dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
@@ -21,7 +21,9 @@ AC_STDC_HEADERS
 AC_PROG_RANLIB
 AC_PROG_INTLTOOL
 
-ALL_LINGUAS="ca cs da de en_CA ja no nb nl pt_BR sv zh_CN"
+GNOME_DEBUG_CHECK
+
+ALL_LINGUAS="bg ca cs da de el en_CA en_GB fi fr ja no nb nl pt_BR sv zh_CN zh_TW"
 
 AM_GLIB_GNU_GETTEXT
 
@@ -296,7 +298,7 @@ AC_ARG_WITH(gs-pkg,
 if test "x$with_gs" = "x"; then
         AC_PATH_PROG(GS_PROG, gs)
         if test -z "$GS_PROG"; then
-                AC_MSG_ERROR(Unable to find GhostScript in the PATH. Provide the full path for GhostScript(--with-gs=PATH). You need to have Ghostscript installed in order to run GGV)
+                AC_MSG_ERROR(Unable to find GhostScript in the PATH. Provide the full path for GhostScript(--with-gs=PATH). You need to have Ghostscript installed in order to run evince)
         fi
 else
         GS_PROG=$with_gs
@@ -305,17 +307,13 @@ fi
 AC_DEFINE_UNQUOTED(GS_PATH, "$GS_PROG", [Path to the 'gs' executable.])
 
 
-dnl check for GS version and define appropriate alpha parameters
+dnl check for GS version
 AC_MSG_CHECKING(for Ghostscript version...)
-GS_VERSION=`$GS_PROG --version | head -n 1`
+GS_VERSION=`gs --version | head -n 1 | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
 AC_MSG_RESULT(found $GS_VERSION)
-dnl GS tends to get a lot of BadMatch errors with the *AlphaBits parameters
-dnl so I've commented their use out
-dnl if test "$GS_VERSION" -gt "5"; then
-dnl     AA_PARMS="-sDEVICE=x11 -dTextAlphaBits=4 -dGraphicsAlphaBits=4"
-dnl else
-dnl     AA_PARMS="-sDEVICE=x11alpha"
-dnl fi
+if test "$GS_VERSION" -lt "7"; then
+       AC_MSG_ERROR([You need Ghostscript version >= 7 in order to run evince])
+fi
 AA_PARMS="-sDEVICE=x11alpha -dNOPLATFONTS"
 AC_DEFINE_UNQUOTED(ALPHA_PARAMS, "$AA_PARMS", [Anti-aliasing parameters for Ghostscript.])
 AC_MSG_RESULT(Antialiasing parameters for Ghostscript: $AA_PARMS)
@@ -380,6 +378,7 @@ Makefile
 cut-n-paste/Makefile
 cut-n-paste/recent-files/Makefile
 data/Makefile
+lib/Makefile
 pdf/Makefile
 pdf/goo/Makefile
 pdf/fofi/Makefile
@@ -390,6 +389,4 @@ ps/Makefile
 po/Makefile.in
 backend/Makefile
 shell/Makefile
-dvi/Makefile
-dvi/dvilib/Makefile
 ])