From 945e5b888adeffd9e093ba8617faa0f808a049d6 Mon Sep 17 00:00:00 2001 From: Alexander van der Meij Date: Fri, 10 Sep 2010 09:16:45 +0000 Subject: [PATCH] the big import --- AUTHORS | 10 + COPYING | 23 + ChangeLog | 0 INSTALL | 365 ++ Makefile.am | 1 + Makefile.in | 704 ++++ NEWS | 0 README | 7 + aclocal.m4 | 1779 +++++++++ compile | 143 + config.h.in | 114 + configure | 7424 ++++++++++++++++++++++++++++++++++++ configure.ac | 91 + data/Makefile.am | 19 + data/Makefile.in | 528 +++ data/article.png | Bin 0 -> 738 bytes data/book.png | Bin 0 -> 1211 bytes data/gummi-beta.1 | 15 + data/gummi-beta.desktop.in | 12 + data/gummi-beta.png | Bin 0 -> 4291 bytes data/gummi.glade | 2198 +++++++++++ data/icon.png | Bin 0 -> 1688 bytes data/letter.png | Bin 0 -> 1600 bytes data/prefs.glade | 714 ++++ data/report.png | Bin 0 -> 1375 bytes depcomp | 630 +++ dev/chver.sh | 4 + dev/control | 13 + install-sh | 520 +++ missing | 376 ++ po/Makefile.in.in | 217 ++ po/Makevars | 41 + po/POTFILES.in | 9 + po/ca_ES.po | 705 ++++ po/da.po | 708 ++++ po/fr.po | 672 ++++ po/gr_EL.po | 710 ++++ po/it_IT.po | 709 ++++ po/nl_NL.po | 702 ++++ po/pt_BR.po | 711 ++++ po/ru.po | 676 ++++ po/zh_TW.po | 705 ++++ src/Makefile | 12 + src/Makefile.am | 24 + src/Makefile.in | 519 +++ src/biblio.c | 207 + src/biblio.h | 58 + src/configfile.c | 254 ++ src/configfile.h | 75 + src/editor.c | 492 +++ src/editor.h | 87 + src/environment.c | 68 + src/environment.h | 113 + src/fileinfo.c | 79 + src/fileinfo.h | 48 + src/gui.c | 1217 ++++++ src/gui.h | 221 ++ src/importer.c | 242 ++ src/importer.h | 69 + src/iofunctions.c | 181 + src/iofunctions.h | 49 + src/main.c | 129 + src/motion.c | 307 ++ src/motion.h | 74 + src/preview.c | 192 + src/preview.h | 67 + src/template.c | 139 + src/template.h | 47 + src/updatecheck.c | 121 + src/updatecheck.h | 39 + src/utils.c | 172 + src/utils.h | 62 + 72 files changed, 27619 insertions(+) create mode 100644 AUTHORS create mode 100644 COPYING create mode 100644 ChangeLog create mode 100644 INSTALL create mode 100644 Makefile.am create mode 100644 Makefile.in create mode 100644 NEWS create mode 100644 README create mode 100644 aclocal.m4 create mode 100755 compile create mode 100644 config.h.in create mode 100755 configure create mode 100644 configure.ac create mode 100644 data/Makefile.am create mode 100644 data/Makefile.in create mode 100755 data/article.png create mode 100755 data/book.png create mode 100644 data/gummi-beta.1 create mode 100644 data/gummi-beta.desktop.in create mode 100644 data/gummi-beta.png create mode 100644 data/gummi.glade create mode 100644 data/icon.png create mode 100755 data/letter.png create mode 100644 data/prefs.glade create mode 100755 data/report.png create mode 100755 depcomp create mode 100755 dev/chver.sh create mode 100644 dev/control create mode 100755 install-sh create mode 100755 missing create mode 100644 po/Makefile.in.in create mode 100644 po/Makevars create mode 100644 po/POTFILES.in create mode 100644 po/ca_ES.po create mode 100644 po/da.po create mode 100644 po/fr.po create mode 100644 po/gr_EL.po create mode 100644 po/it_IT.po create mode 100644 po/nl_NL.po create mode 100644 po/pt_BR.po create mode 100644 po/ru.po create mode 100644 po/zh_TW.po create mode 100644 src/Makefile create mode 100644 src/Makefile.am create mode 100644 src/Makefile.in create mode 100644 src/biblio.c create mode 100644 src/biblio.h create mode 100644 src/configfile.c create mode 100644 src/configfile.h create mode 100644 src/editor.c create mode 100644 src/editor.h create mode 100644 src/environment.c create mode 100644 src/environment.h create mode 100644 src/fileinfo.c create mode 100644 src/fileinfo.h create mode 100644 src/gui.c create mode 100644 src/gui.h create mode 100644 src/importer.c create mode 100644 src/importer.h create mode 100644 src/iofunctions.c create mode 100644 src/iofunctions.h create mode 100644 src/main.c create mode 100644 src/motion.c create mode 100644 src/motion.h create mode 100644 src/preview.c create mode 100644 src/preview.h create mode 100644 src/template.c create mode 100644 src/template.h create mode 100644 src/updatecheck.c create mode 100644 src/updatecheck.h create mode 100644 src/utils.c create mode 100644 src/utils.h diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 00000000..e77cfb9f --- /dev/null +++ b/AUTHORS @@ -0,0 +1,10 @@ +Manager: +Alexander van der Mey + +Developer: +Alexander van der Mey +Wei-Ning Huang + +Reporter: +Cameron Grout +Thomas van der Burgt diff --git a/COPYING b/COPYING new file mode 100644 index 00000000..1b6dc404 --- /dev/null +++ b/COPYING @@ -0,0 +1,23 @@ +Copyright (C) 2010 Gummi-Dev Team +All Rights reserved. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 00000000..e69de29b diff --git a/INSTALL b/INSTALL new file mode 100644 index 00000000..7d1c323b --- /dev/null +++ b/INSTALL @@ -0,0 +1,365 @@ +Installation Instructions +************************* + +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, +2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. This file is offered as-is, +without warranty of any kind. + +Basic Installation +================== + + Briefly, the shell commands `./configure; make; make install' should +configure, build, and install this package. The following +more-detailed instructions are generic; see the `README' file for +instructions specific to this package. Some packages provide this +`INSTALL' file but do not implement all of the features documented +below. The lack of an optional feature in a given package is not +necessarily a bug. More recommendations for GNU packages can be found +in *note Makefile Conventions: (standards)Makefile Conventions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. Caching is +disabled by default to prevent problems with accidental use of stale +cache files. + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You need `configure.ac' if +you want to change it or regenerate `configure' using a newer version +of `autoconf'. + + The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. + + Running `configure' might take a while. While running, it prints + some messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package, generally using the just-built uninstalled binaries. + + 4. Type `make install' to install the programs and any data files and + documentation. When installing into a prefix owned by root, it is + recommended that the package be configured and built as a regular + user, and only the `make install' phase executed with root + privileges. + + 5. Optionally, type `make installcheck' to repeat any self-tests, but + this time using the binaries in their final installed location. + This target does not install anything. Running this target as a + regular user, particularly if the prior `make install' required + root privileges, verifies that the installation completed + correctly. + + 6. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + + 7. Often, you can also type `make uninstall' to remove the installed + files again. In practice, not all packages have tested that + uninstallation works correctly, even though it is required by the + GNU Coding Standards. + + 8. Some packages, particularly those that use Automake, provide `make + distcheck', which can by used by developers to test that all other + targets like `make install' and `make uninstall' work correctly. + This target is generally not run by end users. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c99 CFLAGS=-g LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you can use GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. This +is known as a "VPATH" build. + + With a non-GNU `make', it is safer to compile the package for one +architecture at a time in the source code directory. After you have +installed the package for one architecture, use `make distclean' before +reconfiguring for another architecture. + + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple `-arch' options to the +compiler but only a single `-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases, you +may have to build one architecture at a time and combine the results +using the `lipo' tool if you have problems. + +Installation Names +================== + + By default, `make install' installs the package's commands under +`/usr/local/bin', include files under `/usr/local/include', etc. You +can specify an installation prefix other than `/usr/local' by giving +`configure' the option `--prefix=PREFIX', where PREFIX must be an +absolute file name. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +pass the option `--exec-prefix=PREFIX' to `configure', the package uses +PREFIX as the prefix for installing programs and libraries. +Documentation and other data files still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=DIR' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. In general, the +default for these options is expressed in terms of `${prefix}', so that +specifying just `--prefix' will affect all of the other directory +specifications that were not explicitly provided. + + The most portable way to affect installation locations is to pass the +correct locations to `configure'; however, many packages provide one or +both of the following shortcuts of passing variable assignments to the +`make install' command line to change installation locations without +having to reconfigure or recompile. + + The first method involves providing an override variable for each +affected directory. For example, `make install +prefix=/alternate/directory' will choose an alternate location for all +directory configuration variables that were expressed in terms of +`${prefix}'. Any directories that were specified during `configure', +but not in terms of `${prefix}', must each be overridden at install +time for the entire installation to be relocated. The approach of +makefile variable overrides for each directory variable is required by +the GNU Coding Standards, and ideally causes no recompilation. +However, some platforms have known limitations with the semantics of +shared libraries that end up requiring recompilation when using this +method, particularly noticeable in packages that use GNU Libtool. + + The second method involves providing the `DESTDIR' variable. For +example, `make install DESTDIR=/alternate/directory' will prepend +`/alternate/directory' before all installation names. The approach of +`DESTDIR' overrides is not required by the GNU Coding Standards, and +does not work on platforms that have drive letters. On the other hand, +it does better at avoiding recompilation issues, and works well even +when some directory options were not specified in terms of `${prefix}' +at `configure' time. + +Optional Features +================= + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + + Some packages offer the ability to configure how verbose the +execution of `make' will be. For these packages, running `./configure +--enable-silent-rules' sets the default to minimal output, which can be +overridden with `make V=1'; while running `./configure +--disable-silent-rules' sets the default to verbose, which can be +overridden with `make V=0'. + +Particular systems +================== + + On HP-UX, the default C compiler is not ANSI C compatible. If GNU +CC is not installed, it is recommended to use the following options in +order to use an ANSI C compiler: + + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try + + ./configure CC="cc" + +and if that doesn't work, try + + ./configure CC="cc -nodtk" + + On Solaris, don't put `/usr/ucb' early in your `PATH'. This +directory contains several dysfunctional programs; working variants of +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' +in your `PATH', put it _after_ `/usr/bin'. + + On Haiku, software installed for all users goes in `/boot/common', +not `/usr/local'. It is recommended to use the following options: + + ./configure --prefix=/boot/common + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS + KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the option `--target=TYPE' to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +causes the specified `gcc' to be used as the C compiler (unless it is +overridden in the site shell script). + +Unfortunately, this technique does not work for `CONFIG_SHELL' due to +an Autoconf bug. Until the bug is fixed you can use this workaround: + + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash + +`configure' Invocation +====================== + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of all of the options to `configure', and exit. + +`--help=short' +`--help=recursive' + Print a summary of the options unique to this package's + `configure', and exit. The `short' variant lists options used + only in the top level, while the `recursive' variant lists options + also present in any nested packages. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--prefix=DIR' + Use DIR as the installation prefix. *note Installation Names:: + for more details, including other options available for fine-tuning + the installation locations. + +`--no-create' +`-n' + Run the configure checks, but stop before creating any output + files. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 00000000..2655d33b --- /dev/null +++ b/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = po src data diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 00000000..918ca58c --- /dev/null +++ b/Makefile.in @@ -0,0 +1,704 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = . +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ + compile depcomp install-sh missing +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ + distdir dist dist-all distcheck +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +am__relativize = \ + dir0=`pwd`; \ + sed_first='s,^\([^/]*\)/.*$$,\1,'; \ + sed_rest='s,^[^/]*/*,,'; \ + sed_last='s,^.*/\([^/]*\)$$,\1,'; \ + sed_butlast='s,/*[^/]*$$,,'; \ + while test -n "$$dir1"; do \ + first=`echo "$$dir1" | sed -e "$$sed_first"`; \ + if test "$$first" != "."; then \ + if test "$$first" = ".."; then \ + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ + else \ + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ + if test "$$first2" = "$$first"; then \ + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ + else \ + dir2="../$$dir2"; \ + fi; \ + dir0="$$dir0"/"$$first"; \ + fi; \ + fi; \ + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ + done; \ + reldir="$$dir2" +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +GUI_CFLAGS = @GUI_CFLAGS@ +GUI_LIBS = @GUI_LIBS@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +USE_GTKSPELL = @USE_GTKSPELL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +gtksourceview_CFLAGS = @gtksourceview_CFLAGS@ +gtksourceview_LIBS = @gtksourceview_LIBS@ +gtkspell_CFLAGS = @gtkspell_CFLAGS@ +gtkspell_LIBS = @gtkspell_LIBS@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +poppler_CFLAGS = @poppler_CFLAGS@ +poppler_LIBS = @poppler_LIBS@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +SUBDIRS = po src data +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +config.h: stamp-h1 + @if test ! -f $@; then \ + rm -f stamp-h1; \ + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ + else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + fi; \ + done + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ + $(am__relativize); \ + new_distdir=$$reldir; \ + dir1=$$subdir; dir2="$(top_distdir)"; \ + $(am__relativize); \ + new_top_distdir=$$reldir; \ + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ + ($(am__cd) $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$new_top_distdir" \ + distdir="$$new_distdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + am__skip_mode_fix=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @$(am__cd) '$(distuninstallcheck_dir)' \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile config.h +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +html-am: + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-dvi-am: + +install-exec-am: + +install-html: install-html-recursive + +install-html-am: + +install-info: install-info-recursive + +install-info-am: + +install-man: + +install-pdf: install-pdf-recursive + +install-pdf-am: + +install-ps: install-ps-recursive + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ + ctags-recursive install-am install-strip tags-recursive + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ + dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ + distclean distclean-generic distclean-hdr distclean-tags \ + distcleancheck distdir distuninstallcheck dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags tags-recursive uninstall uninstall-am + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/NEWS b/NEWS new file mode 100644 index 00000000..e69de29b diff --git a/README b/README new file mode 100644 index 00000000..301e37d1 --- /dev/null +++ b/README @@ -0,0 +1,7 @@ +=================================== About =================================== +Gummi is a LaTeX editor for the Linux platform, written in C and GTK. It was designed with simplicity in mind, but hopes to attract both novice and more advanced users. Gummi was released as opensource software under the MIT license. + +You can get more information from: +http://gummi.midnightcoding.org/ + +Gummi-Dev Team diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 00000000..d1b7370b --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,1779 @@ +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, +[m4_warning([this file was generated for autoconf 2.65. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically `autoreconf'.])]) + +# Configure paths for GLIB +# Owen Taylor 1997-2001 + +dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) +dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject, +dnl gthread, or gio is specified in MODULES, pass to pkg-config +dnl +AC_DEFUN([AM_PATH_GLIB_2_0], +[dnl +dnl Get the cflags and libraries from pkg-config +dnl +AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program], + , enable_glibtest=yes) + + pkg_config_args=glib-2.0 + for module in . $4 + do + case "$module" in + gmodule) + pkg_config_args="$pkg_config_args gmodule-2.0" + ;; + gmodule-no-export) + pkg_config_args="$pkg_config_args gmodule-no-export-2.0" + ;; + gobject) + pkg_config_args="$pkg_config_args gobject-2.0" + ;; + gthread) + pkg_config_args="$pkg_config_args gthread-2.0" + ;; + gio*) + pkg_config_args="$pkg_config_args $module-2.0" + ;; + esac + done + + PKG_PROG_PKG_CONFIG([0.16]) + + no_glib="" + + if test "x$PKG_CONFIG" = x ; then + no_glib=yes + PKG_CONFIG=no + fi + + min_glib_version=ifelse([$1], ,2.0.0,$1) + AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) + + if test x$PKG_CONFIG != xno ; then + ## don't try to run the test against uninstalled libtool libs + if $PKG_CONFIG --uninstalled $pkg_config_args; then + echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" + enable_glibtest=no + fi + + if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then + : + else + no_glib=yes + fi + fi + + if test x"$no_glib" = x ; then + GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` + GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` + GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` + + GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` + GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` + glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + if test "x$enable_glibtest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GLIB_CFLAGS" + LIBS="$GLIB_LIBS $LIBS" +dnl +dnl Now check if the installed GLIB is sufficiently new. (Also sanity +dnl checks the results of pkg-config to some extent) +dnl + rm -f conf.glibtest + AC_TRY_RUN([ +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + fclose (fopen ("conf.glibtest", "w")); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_glib_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_glib_version"); + exit(1); + } + + if ((glib_major_version != $glib_config_major_version) || + (glib_minor_version != $glib_config_minor_version) || + (glib_micro_version != $glib_config_micro_version)) + { + printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", + $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, + glib_major_version, glib_minor_version, glib_micro_version); + printf ("*** was found! If pkg-config was correct, then it is best\n"); + printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); + printf("*** to point to the correct configuration files\n"); + } + else if ((glib_major_version != GLIB_MAJOR_VERSION) || + (glib_minor_version != GLIB_MINOR_VERSION) || + (glib_micro_version != GLIB_MICRO_VERSION)) + { + printf("*** GLIB header files (version %d.%d.%d) do not match\n", + GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + glib_major_version, glib_minor_version, glib_micro_version); + } + else + { + if ((glib_major_version > major) || + ((glib_major_version == major) && (glib_minor_version > minor)) || + ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", + glib_major_version, glib_minor_version, glib_micro_version); + printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); + printf("*** correct copy of pkg-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} +],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_glib" = x ; then + AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)) + ifelse([$2], , :, [$2]) + else + AC_MSG_RESULT(no) + if test "$PKG_CONFIG" = "no" ; then + echo "*** A new enough version of pkg-config was not found." + echo "*** See http://www.freedesktop.org/software/pkgconfig/" + else + if test -f conf.glibtest ; then + : + else + echo "*** Could not run GLIB test program, checking why..." + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GLIB_CFLAGS" + LIBS="$LIBS $GLIB_LIBS" + AC_TRY_LINK([ +#include +#include +], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], + [ echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GLIB or finding the wrong" + echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], + [ echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GLIB is incorrectly installed."]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GLIB_CFLAGS="" + GLIB_LIBS="" + GLIB_GENMARSHAL="" + GOBJECT_QUERY="" + GLIB_MKENUMS="" + ifelse([$3], , :, [$3]) + fi + AC_SUBST(GLIB_CFLAGS) + AC_SUBST(GLIB_LIBS) + AC_SUBST(GLIB_GENMARSHAL) + AC_SUBST(GOBJECT_QUERY) + AC_SUBST(GLIB_MKENUMS) + rm -f conf.glibtest +]) + +# Configure paths for GTK+ +# Owen Taylor 1997-2001 + +dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) +dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, +dnl pass to pkg-config +dnl +AC_DEFUN([AM_PATH_GTK_2_0], +[dnl +dnl Get the cflags and libraries from pkg-config +dnl +AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program], + , enable_gtktest=yes) + + pkg_config_args=gtk+-2.0 + for module in . $4 + do + case "$module" in + gthread) + pkg_config_args="$pkg_config_args gthread-2.0" + ;; + esac + done + + no_gtk="" + + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + + if test x$PKG_CONFIG != xno ; then + if pkg-config --atleast-pkgconfig-version 0.7 ; then + : + else + echo "*** pkg-config too old; version 0.7 or better required." + no_gtk=yes + PKG_CONFIG=no + fi + else + no_gtk=yes + fi + + min_gtk_version=ifelse([$1], ,2.0.0,$1) + AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version) + + if test x$PKG_CONFIG != xno ; then + ## don't try to run the test against uninstalled libtool libs + if $PKG_CONFIG --uninstalled $pkg_config_args; then + echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" + enable_gtktest=no + fi + + if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then + : + else + no_gtk=yes + fi + fi + + if test x"$no_gtk" = x ; then + GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` + GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` + gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + if test "x$enable_gtktest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$GTK_LIBS $LIBS" +dnl +dnl Now check if the installed GTK+ is sufficiently new. (Also sanity +dnl checks the results of pkg-config to some extent) +dnl + rm -f conf.gtktest + AC_TRY_RUN([ +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + fclose (fopen ("conf.gtktest", "w")); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_gtk_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_gtk_version"); + exit(1); + } + + if ((gtk_major_version != $gtk_config_major_version) || + (gtk_minor_version != $gtk_config_minor_version) || + (gtk_micro_version != $gtk_config_micro_version)) + { + printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", + $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf ("*** was found! If pkg-config was correct, then it is best\n"); + printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); + printf("*** to point to the correct configuration files\n"); + } + else if ((gtk_major_version != GTK_MAJOR_VERSION) || + (gtk_minor_version != GTK_MINOR_VERSION) || + (gtk_micro_version != GTK_MICRO_VERSION)) + { + printf("*** GTK+ header files (version %d.%d.%d) do not match\n", + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + } + else + { + if ((gtk_major_version > major) || + ((gtk_major_version == major) && (gtk_minor_version > minor)) || + ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); + printf("*** correct copy of pkg-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} +],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_gtk" = x ; then + AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)) + ifelse([$2], , :, [$2]) + else + AC_MSG_RESULT(no) + if test "$PKG_CONFIG" = "no" ; then + echo "*** A new enough version of pkg-config was not found." + echo "*** See http://pkgconfig.sourceforge.net" + else + if test -f conf.gtktest ; then + : + else + echo "*** Could not run GTK+ test program, checking why..." + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$LIBS $GTK_LIBS" + AC_TRY_LINK([ +#include +#include +], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], + [ echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GTK+ or finding the wrong" + echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], + [ echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GTK_CFLAGS="" + GTK_LIBS="" + ifelse([$3], , :, [$3]) + fi + AC_SUBST(GTK_CFLAGS) + AC_SUBST(GTK_LIBS) + rm -f conf.gtktest +]) + + +dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) +# serial 40 IT_PROG_INTLTOOL +AC_DEFUN([IT_PROG_INTLTOOL], [ +AC_PREREQ([2.50])dnl +AC_REQUIRE([AM_NLS])dnl + +case "$am__api_version" in + 1.[01234]) + AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) + ;; + *) + ;; +esac + +if test -n "$1"; then + AC_MSG_CHECKING([for intltool >= $1]) + + INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` + INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` + [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` + ] + AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || + AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) +fi + +AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) +AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) +AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then + AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) +fi + + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + +_IT_SUBST(INTLTOOL_DESKTOP_RULE) +_IT_SUBST(INTLTOOL_DIRECTORY_RULE) +_IT_SUBST(INTLTOOL_KEYS_RULE) +_IT_SUBST(INTLTOOL_PROP_RULE) +_IT_SUBST(INTLTOOL_OAF_RULE) +_IT_SUBST(INTLTOOL_PONG_RULE) +_IT_SUBST(INTLTOOL_SERVER_RULE) +_IT_SUBST(INTLTOOL_SHEET_RULE) +_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) +_IT_SUBST(INTLTOOL_UI_RULE) +_IT_SUBST(INTLTOOL_XAM_RULE) +_IT_SUBST(INTLTOOL_KBD_RULE) +_IT_SUBST(INTLTOOL_XML_RULE) +_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) +_IT_SUBST(INTLTOOL_CAVES_RULE) +_IT_SUBST(INTLTOOL_SCHEMAS_RULE) +_IT_SUBST(INTLTOOL_THEME_RULE) +_IT_SUBST(INTLTOOL_SERVICE_RULE) +_IT_SUBST(INTLTOOL_POLICY_RULE) + +# Check the gettext tools to make sure they are GNU +AC_PATH_PROG(XGETTEXT, xgettext) +AC_PATH_PROG(MSGMERGE, msgmerge) +AC_PATH_PROG(MSGFMT, msgfmt) +AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) +fi +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) +fi + +AC_PATH_PROG(INTLTOOL_PERL, perl) +if test -z "$INTLTOOL_PERL"; then + AC_MSG_ERROR([perl not found]) +fi +AC_MSG_CHECKING([for perl >= 5.8.1]) +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 +if test $? -ne 0; then + AC_MSG_ERROR([perl 5.8.1 is required for intltool]) +else + IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" + AC_MSG_RESULT([$IT_PERL_VERSION]) +fi +if test "x$2" != "xno-xml"; then + AC_MSG_CHECKING([for XML::Parser]) + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then + AC_MSG_RESULT([ok]) + else + AC_MSG_ERROR([XML::Parser perl module is required for intltool]) + fi +fi + +# Substitute ALL_LINGUAS so we can use it in po/Makefile +AC_SUBST(ALL_LINGUAS) + +# Set DATADIRNAME correctly if it is not set yet +# (copied from glib-gettext.m4) +if test -z "$DATADIRNAME"; then + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[]], + [[extern int _nl_msg_cat_cntr; + return _nl_msg_cat_cntr]])], + [DATADIRNAME=share], + [case $host in + *-*-solaris*) + dnl On Solaris, if bind_textdomain_codeset is in libc, + dnl GNU format message catalog is always supported, + dnl since both are added to the libc all together. + dnl Hence, we'd like to go with DATADIRNAME=share + dnl in this case. + AC_CHECK_FUNC(bind_textdomain_codeset, + [DATADIRNAME=share], [DATADIRNAME=lib]) + ;; + *) + [DATADIRNAME=lib] + ;; + esac]) +fi +AC_SUBST(DATADIRNAME) + +IT_PO_SUBDIR([po]) + +]) + + +# IT_PO_SUBDIR(DIRNAME) +# --------------------- +# All po subdirs have to be declared with this macro; the subdir "po" is +# declared by IT_PROG_INTLTOOL. +# +AC_DEFUN([IT_PO_SUBDIR], +[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. +dnl +dnl The following CONFIG_COMMANDS should be exetuted at the very end +dnl of config.status. +AC_CONFIG_COMMANDS_PRE([ + AC_CONFIG_COMMANDS([$1/stamp-it], [ + if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then + AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) + fi + rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" + >"$1/stamp-it.tmp" + [sed '/^#/d + s/^[[].*] *// + /^[ ]*$/d + '"s|^| $ac_top_srcdir/|" \ + "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" + ] + [sed '/^POTFILES =/,/[^\\]$/ { + /^POTFILES =/!d + r $1/POTFILES + } + ' "$1/Makefile.in" >"$1/Makefile"] + rm -f "$1/Makefile.tmp" + mv "$1/stamp-it.tmp" "$1/stamp-it" + ]) +])dnl +]) + +# _IT_SUBST(VARIABLE) +# ------------------- +# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST +# +AC_DEFUN([_IT_SUBST], +[ +AC_SUBST([$1]) +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) +] +) + +# deprecated macros +AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) +# A hint is needed for aclocal from Automake <= 1.9.4: +# AC_DEFUN([AC_PROG_INTLTOOL], ...) + + +# nls.m4 serial 3 (gettext-0.15) +dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can can be used in projects which are not available under +dnl the GNU General Public License or the GNU Library General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Library General Public License, and the rest of the GNU +dnl gettext package package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Authors: +dnl Ulrich Drepper , 1995-2000. +dnl Bruno Haible , 2000-2003. + +AC_PREREQ(2.50) + +AC_DEFUN([AM_NLS], +[ + AC_MSG_CHECKING([whether NLS is requested]) + dnl Default is enabled NLS + AC_ARG_ENABLE(nls, + [ --disable-nls do not use Native Language Support], + USE_NLS=$enableval, USE_NLS=yes) + AC_MSG_RESULT($USE_NLS) + AC_SUBST(USE_NLS) +]) + +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +# +# Copyright © 2004 Scott James Remnant . +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# PKG_PROG_PKG_CONFIG([MIN-VERSION]) +# ---------------------------------- +AC_DEFUN([PKG_PROG_PKG_CONFIG], +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=m4_default([$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG="" + fi + +fi[]dnl +])# PKG_PROG_PKG_CONFIG + +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +# +# Check to see whether a particular set of modules exists. Similar +# to PKG_CHECK_MODULES(), but does not set variables or print errors. +# +# +# Similar to PKG_CHECK_MODULES, make sure that the first instance of +# this or PKG_CHECK_MODULES is called, or make sure to call +# PKG_CHECK_EXISTS manually +# -------------------------------------------------------------- +AC_DEFUN([PKG_CHECK_EXISTS], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +if test -n "$PKG_CONFIG" && \ + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then + m4_ifval([$2], [$2], [:]) +m4_ifvaln([$3], [else + $3])dnl +fi]) + + +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) +# --------------------------------------------- +m4_define([_PKG_CONFIG], +[if test -n "$PKG_CONFIG"; then + if test -n "$$1"; then + pkg_cv_[]$1="$$1" + else + PKG_CHECK_EXISTS([$3], + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], + [pkg_failed=yes]) + fi +else + pkg_failed=untried +fi[]dnl +])# _PKG_CONFIG + +# _PKG_SHORT_ERRORS_SUPPORTED +# ----------------------------- +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi[]dnl +])# _PKG_SHORT_ERRORS_SUPPORTED + + +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +# [ACTION-IF-NOT-FOUND]) +# +# +# Note that if there is a possibility the first call to +# PKG_CHECK_MODULES might not happen, you should be sure to include an +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac +# +# +# -------------------------------------------------------------- +AC_DEFUN([PKG_CHECK_MODULES], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_MSG_CHECKING([for $1]) + +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) + +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS +and $1[]_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details.]) + +if test $pkg_failed = yes; then + _PKG_SHORT_ERRORS_SUPPORTED + if test $_pkg_short_errors_supported = yes; then + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` + fi + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + + ifelse([$4], , [AC_MSG_ERROR(dnl +[Package requirements ($2) were not met: + +$$1_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +_PKG_TEXT +])], + [AC_MSG_RESULT([no]) + $4]) +elif test $pkg_failed = untried; then + ifelse([$4], , [AC_MSG_FAILURE(dnl +[The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +_PKG_TEXT + +To get pkg-config, see .])], + [$4]) +else + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + AC_MSG_RESULT([yes]) + ifelse([$3], , :, [$3]) +fi[]dnl +])# PKG_CHECK_MODULES + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.1], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.11.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 10 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 5 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 16 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) + +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# AM_PROG_CC_C_O +# -------------- +# Like AC_PROG_CC_C_O, but changed for automake. +AC_DEFUN([AM_PROG_CC_C_O], +[AC_REQUIRE([AC_PROG_CC_C_O])dnl +AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([compile])dnl +# FIXME: we rely on the cache variable name because +# there is no other way. +set dummy $CC +am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o +if test "$am_t" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi +dnl Make sure AC_PROG_CC is never called again, or it will override our +dnl setting of CC. +m4_define([AC_PROG_CC], + [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + diff --git a/compile b/compile new file mode 100755 index 00000000..c0096a7b --- /dev/null +++ b/compile @@ -0,0 +1,143 @@ +#! /bin/sh +# Wrapper for compilers which do not understand `-c -o'. + +scriptversion=2009-10-06.20; # UTC + +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software +# Foundation, Inc. +# Written by Tom Tromey . +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to or send patches to +# . + +case $1 in + '') + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: compile [--help] [--version] PROGRAM [ARGS] + +Wrapper for compilers which do not understand `-c -o'. +Remove `-o dest.o' from ARGS, run PROGRAM with the remaining +arguments, and rename the output as expected. + +If you are trying to build a whole package this is not the +right script to run: please start by reading the file `INSTALL'. + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "compile $scriptversion" + exit $? + ;; +esac + +ofile= +cfile= +eat= + +for arg +do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as `compile cc -o foo foo.c'. + # So we strip `-o arg' only if arg is an object. + eat=1 + case $2 in + *.o | *.obj) + ofile=$2 + ;; + *) + set x "$@" -o "$2" + shift + ;; + esac + ;; + *.c) + cfile=$1 + set x "$@" "$1" + shift + ;; + *) + set x "$@" "$1" + shift + ;; + esac + fi + shift +done + +if test -z "$ofile" || test -z "$cfile"; then + # If no `-o' option was seen then we might have been invoked from a + # pattern rule where we don't need one. That is ok -- this is a + # normal compilation that the losing compiler can handle. If no + # `.c' file was seen then we are probably linking. That is also + # ok. + exec "$@" +fi + +# Name of file we expect compiler to create. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` + +# Create the lock directory. +# Note: use `[/\\:.-]' here to ensure that we don't use the same name +# that we are using for the .o file. Also, base the name on the expected +# object file name, since that is what matters with a parallel build. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d +while true; do + if mkdir "$lockdir" >/dev/null 2>&1; then + break + fi + sleep 1 +done +# FIXME: race condition here if user kills between mkdir and trap. +trap "rmdir '$lockdir'; exit 1" 1 2 15 + +# Run the compile. +"$@" +ret=$? + +if test -f "$cofile"; then + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" +elif test -f "${cofile}bj"; then + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" +fi + +rmdir "$lockdir" +exit $ret + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/config.h.in b/config.h.in new file mode 100644 index 00000000..82d3a5c1 --- /dev/null +++ b/config.h.in @@ -0,0 +1,114 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* The gettext domain */ +#undef GETTEXT_PACKAGE + +/* Define to 1 if you have the header file. */ +#undef HAVE_FCNTL_H + +/* Define to 1 if you have the `gethostbyname' function. */ +#undef HAVE_GETHOSTBYNAME + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_LIBINTL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_LOCALE_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the `memset' function. */ +#undef HAVE_MEMSET + +/* Define to 1 if you have the header file. */ +#undef HAVE_NETDB_H + +/* Define to 1 if you have the `setlocale' function. */ +#undef HAVE_SETLOCALE + +/* Define to 1 if you have the `socket' function. */ +#undef HAVE_SOCKET + +/* Define to 1 if stdbool.h conforms to C99. */ +#undef HAVE_STDBOOL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the `strstr' function. */ +#undef HAVE_STRSTR + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_SOCKET_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIME_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to 1 if the system has the type `_Bool'. */ +#undef HAVE__BOOL + +/* Define to 1 if your C compiler doesn't accept -c and -o together. */ +#undef NO_MINUS_C_MINUS_O + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +#undef USE_GTKSPELL + +/* Version number of package */ +#undef VERSION + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +#undef inline +#endif + +/* Define to `unsigned int' if does not define. */ +#undef size_t diff --git a/configure b/configure new file mode 100755 index 00000000..3edf5827 --- /dev/null +++ b/configure @@ -0,0 +1,7424 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.65 for Gummi-Beta 0.5.0~svn210. +# +# Report bugs to . +# +# +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org and +$0: alexvandermey@gmail.com about your system, including +$0: any error possibly output before this message. Then +$0: install a modern shell, or manually run the script +$0: under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='Gummi-Beta' +PACKAGE_TARNAME='gummi-beta' +PACKAGE_VERSION='0.5.0~svn210' +PACKAGE_STRING='Gummi-Beta 0.5.0~svn210' +PACKAGE_BUGREPORT='alexvandermey@gmail.com' +PACKAGE_URL='http://gummi.midnightcoding.org/' + +ac_unique_file="src/environment.h" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +GUI_CFLAGS +GUI_LIBS +EGREP +GREP +CPP +gtkspell_LIBS +gtkspell_CFLAGS +poppler_LIBS +poppler_CFLAGS +gtksourceview_LIBS +gtksourceview_CFLAGS +GTK_LIBS +GTK_CFLAGS +GLIB_MKENUMS +GOBJECT_QUERY +GLIB_GENMARSHAL +GLIB_LIBS +GLIB_CFLAGS +PKG_CONFIG +USE_GTKSPELL +DATADIRNAME +ALL_LINGUAS +INTLTOOL_PERL +GMSGFMT +MSGFMT +MSGMERGE +XGETTEXT +INTLTOOL_POLICY_RULE +INTLTOOL_SERVICE_RULE +INTLTOOL_THEME_RULE +INTLTOOL_SCHEMAS_RULE +INTLTOOL_CAVES_RULE +INTLTOOL_XML_NOMERGE_RULE +INTLTOOL_XML_RULE +INTLTOOL_KBD_RULE +INTLTOOL_XAM_RULE +INTLTOOL_UI_RULE +INTLTOOL_SOUNDLIST_RULE +INTLTOOL_SHEET_RULE +INTLTOOL_SERVER_RULE +INTLTOOL_PONG_RULE +INTLTOOL_OAF_RULE +INTLTOOL_PROP_RULE +INTLTOOL_KEYS_RULE +INTLTOOL_DIRECTORY_RULE +INTLTOOL_DESKTOP_RULE +INTLTOOL_EXTRACT +INTLTOOL_MERGE +INTLTOOL_UPDATE +USE_NLS +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +GETTEXT_PACKAGE +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +enable_nls +enable_spellcheck +enable_glibtest +enable_gtktest +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +PKG_CONFIG +gtksourceview_CFLAGS +gtksourceview_LIBS +poppler_CFLAGS +poppler_LIBS +gtkspell_CFLAGS +gtkspell_LIBS +CPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid feature name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error "invalid package name: $ac_useropt" + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information." + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures Gummi-Beta 0.5.0~svn210 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/gummi-beta] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of Gummi-Beta 0.5.0~svn210:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --disable-nls do not use Native Language Support + --disable-spellcheck disable spellcheck support + --disable-glibtest do not try to compile and run a test GLIB program + --disable-gtktest do not try to compile and run a test GTK+ program + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + PKG_CONFIG path to pkg-config utility + gtksourceview_CFLAGS + C compiler flags for gtksourceview, overriding pkg-config + gtksourceview_LIBS + linker flags for gtksourceview, overriding pkg-config + poppler_CFLAGS + C compiler flags for poppler, overriding pkg-config + poppler_LIBS + linker flags for poppler, overriding pkg-config + gtkspell_CFLAGS + C compiler flags for gtkspell, overriding pkg-config + gtkspell_LIBS + linker flags for gtkspell, overriding pkg-config + CPP C preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to . +Gummi-Beta home page: . +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +Gummi-Beta configure 0.5.0~svn210 +generated by GNU Autoconf 2.65 + +Copyright (C) 2009 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Define $2 to an innocuous variant, in case declares $2. + For example, HP-UX 11i declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_func + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_header_compiler=yes +else + ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + ac_header_preproc=yes +else + ac_header_preproc=no +fi +rm -f conftest.err conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( + yes:no: ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} + ;; + no:yes:* ) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( cat <<\_ASBOX +## -------------------------------------- ## +## Report this to alexvandermey@gmail.com ## +## -------------------------------------- ## +_ASBOX + ) | sed "s/^/$as_me: WARNING: /" >&2 + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_header_compile + +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + +} # ac_fn_c_check_type +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by Gummi-Beta $as_me 0.5.0~svn210, which was +generated by GNU Autoconf 2.65. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------------- ## +## File substitutions. ## +## ------------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + ac_site_file1=$CONFIG_SITE +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + for ac_t in install-sh install.sh shtool; do + if test -f "$ac_dir/$ac_t"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/$ac_t -c" + break 2 + fi + done +done +if test -z "$ac_aux_dir"; then + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if test "${ac_cv_path_mkdir+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE='gummi-beta' + VERSION='0.5.0~svn210' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + + +# ls po/*.po | sort | sed 's/po\///g;s/.po//g'| sed ':a;N;s/\n/ /g;ta' +GETTEXT_PACKAGE=gummi-beta + +cat >>confdefs.h <<_ACEOF +#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" +_ACEOF + + + +ALL_LINGUAS="ca_ES da fr gr_EL it_IT nl_NL pt_BR ru zh_TW" + + +ac_config_headers="$ac_config_headers config.h" + + + +# Checks for programs. +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "no acceptable C compiler found in \$PATH +See \`config.log' for more details." "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi +if test -z "$ac_file"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ as_fn_set_status 77 +as_fn_error "C compiler cannot create executables +See \`config.log' for more details." "$LINENO" 5; }; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." "$LINENO" 5; } + fi + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if test "${ac_cv_objext+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "cannot compute suffix of object files: cannot compile +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +else + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +if test "x$CC" != xcc; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 +$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 +$as_echo_n "checking whether cc understands -c and -o together... " >&6; } +fi +set dummy $CC; ac_cc=`$as_echo "$2" | + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +# Make sure it works both with $CC and with simple cc. +# We do the test twice because some compilers refuse to overwrite an +# existing .o file with -o, though they will create one. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' +rm -f conftest2.* +if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; +then + eval ac_cv_prog_cc_${ac_cc}_c_o=yes + if test "x$CC" != xcc; then + # Test first that cc exists at all. + if { ac_try='cc -c conftest.$ac_ext >&5' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' + rm -f conftest2.* + if { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && + test -f conftest2.$ac_objext && { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; + then + # cc works too. + : + else + # cc exists but doesn't like -o. + eval ac_cv_prog_cc_${ac_cc}_c_o=no + fi + fi + fi +else + eval ac_cv_prog_cc_${ac_cc}_c_o=no +fi +rm -f core conftest* + +fi +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h + +fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +$as_echo_n "checking whether NLS is requested... " >&6; } + # Check whether --enable-nls was given. +if test "${enable_nls+set}" = set; then : + enableval=$enable_nls; USE_NLS=$enableval +else + USE_NLS=yes +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +$as_echo "$USE_NLS" >&6; } + + + + + +case "$am__api_version" in + 1.01234) + as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 + ;; + *) + ;; +esac + +if test -n ""; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= " >&5 +$as_echo_n "checking for intltool >= ... " >&6; } + + INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` + INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` + INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 +$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || + as_fn_error "Your intltool is too old. You need intltool or later." "$LINENO" 5 +fi + +# Extract the first word of "intltool-update", so it can be a program name with args. +set dummy intltool-update; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_UPDATE in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE +if test -n "$INTLTOOL_UPDATE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 +$as_echo "$INTLTOOL_UPDATE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "intltool-merge", so it can be a program name with args. +set dummy intltool-merge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_MERGE in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE +if test -n "$INTLTOOL_MERGE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 +$as_echo "$INTLTOOL_MERGE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "intltool-extract", so it can be a program name with args. +set dummy intltool-extract; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_EXTRACT in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT +if test -n "$INTLTOOL_EXTRACT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 +$as_echo "$INTLTOOL_EXTRACT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then + as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5 +fi + + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# Check the gettext tools to make sure they are GNU +# Extract the first word of "xgettext", so it can be a program name with args. +set dummy xgettext; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_XGETTEXT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $XGETTEXT in + [\\/]* | ?:[\\/]*) + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +XGETTEXT=$ac_cv_path_XGETTEXT +if test -n "$XGETTEXT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +$as_echo "$XGETTEXT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "msgmerge", so it can be a program name with args. +set dummy msgmerge; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGMERGE+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $MSGMERGE in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +MSGMERGE=$ac_cv_path_MSGMERGE +if test -n "$MSGMERGE"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +$as_echo "$MSGMERGE" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "msgfmt", so it can be a program name with args. +set dummy msgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_MSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $MSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +MSGFMT=$ac_cv_path_MSGFMT +if test -n "$MSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +$as_echo "$MSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +# Extract the first word of "gmsgfmt", so it can be a program name with args. +set dummy gmsgfmt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_GMSGFMT+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $GMSGFMT in + [\\/]* | ?:[\\/]*) + ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" + ;; +esac +fi +GMSGFMT=$ac_cv_path_GMSGFMT +if test -n "$GMSGFMT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +$as_echo "$GMSGFMT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then + as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5 +fi +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then + as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5 +fi + +# Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $INTLTOOL_PERL in + [\\/]* | ?:[\\/]*) + ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL +if test -n "$INTLTOOL_PERL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 +$as_echo "$INTLTOOL_PERL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test -z "$INTLTOOL_PERL"; then + as_fn_error "perl not found" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 +$as_echo_n "checking for perl >= 5.8.1... " >&6; } +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 +if test $? -ne 0; then + as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5 +else + IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 +$as_echo "$IT_PERL_VERSION" >&6; } +fi +if test "x" != "xno-xml"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 +$as_echo_n "checking for XML::Parser... " >&6; } + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } + else + as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5 + fi +fi + +# Substitute ALL_LINGUAS so we can use it in po/Makefile + + +# Set DATADIRNAME correctly if it is not set yet +# (copied from glib-gettext.m4) +if test -z "$DATADIRNAME"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +extern int _nl_msg_cat_cntr; + return _nl_msg_cat_cntr + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + DATADIRNAME=share +else + case $host in + *-*-solaris*) + ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" +if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : + DATADIRNAME=share +else + DATADIRNAME=lib +fi + + ;; + *) + DATADIRNAME=lib + ;; + esac +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi + + + + + +# FIXME: we rely on the cache variable name because +# there is no other way. +set dummy $CC +am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` +eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o +if test "$am_t" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" +fi + + + +# Checks for libraries. +# Check whether --enable-spellcheck was given. +if test "${enable_spellcheck+set}" = set; then : + enableval=$enable_spellcheck; spellcheck=$enableval +else + spellcheck="yes" +fi + + +if test "$spellcheck" = yes; then + $as_echo "#define USE_GTKSPELL 1" >>confdefs.h + +fi + + +# Check whether --enable-glibtest was given. +if test "${enable_glibtest+set}" = set; then : + enableval=$enable_glibtest; +else + enable_glibtest=yes +fi + + + pkg_config_args=glib-2.0 + for module in . + do + case "$module" in + gmodule) + pkg_config_args="$pkg_config_args gmodule-2.0" + ;; + gmodule-no-export) + pkg_config_args="$pkg_config_args gmodule-no-export-2.0" + ;; + gobject) + pkg_config_args="$pkg_config_args gobject-2.0" + ;; + gthread) + pkg_config_args="$pkg_config_args gthread-2.0" + ;; + gio*) + pkg_config_args="$pkg_config_args $module-2.0" + ;; + esac + done + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac +fi +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +$as_echo "$ac_pt_PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +fi + +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.16 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + PKG_CONFIG="" + fi + +fi + + no_glib="" + + if test "x$PKG_CONFIG" = x ; then + no_glib=yes + PKG_CONFIG=no + fi + + min_glib_version=2.16.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5 +$as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; } + + if test x$PKG_CONFIG != xno ; then + ## don't try to run the test against uninstalled libtool libs + if $PKG_CONFIG --uninstalled $pkg_config_args; then + echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" + enable_glibtest=no + fi + + if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then + : + else + no_glib=yes + fi + fi + + if test x"$no_glib" = x ; then + GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` + GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` + GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` + + GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` + GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` + glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` + glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + if test "x$enable_glibtest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GLIB_CFLAGS" + LIBS="$GLIB_LIBS $LIBS" + rm -f conf.glibtest + if test "$cross_compiling" = yes; then : + echo $ac_n "cross compiling; assumed OK... $ac_c" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + fclose (fopen ("conf.glibtest", "w")); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_glib_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_glib_version"); + exit(1); + } + + if ((glib_major_version != $glib_config_major_version) || + (glib_minor_version != $glib_config_minor_version) || + (glib_micro_version != $glib_config_micro_version)) + { + printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", + $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, + glib_major_version, glib_minor_version, glib_micro_version); + printf ("*** was found! If pkg-config was correct, then it is best\n"); + printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); + printf("*** to point to the correct configuration files\n"); + } + else if ((glib_major_version != GLIB_MAJOR_VERSION) || + (glib_minor_version != GLIB_MINOR_VERSION) || + (glib_micro_version != GLIB_MICRO_VERSION)) + { + printf("*** GLIB header files (version %d.%d.%d) do not match\n", + GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + glib_major_version, glib_minor_version, glib_micro_version); + } + else + { + if ((glib_major_version > major) || + ((glib_major_version == major) && (glib_minor_version > minor)) || + ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", + glib_major_version, glib_minor_version, glib_micro_version); + printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); + printf("*** correct copy of pkg-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + no_glib=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_glib" = x ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 +$as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } + + GUI_CFLAGS="$GUI_CFLAGS $GLIB_CFLAGS" + GUI_LIBS="$GUI_LIBS $GLIB_LIBS" + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + if test "$PKG_CONFIG" = "no" ; then + echo "*** A new enough version of pkg-config was not found." + echo "*** See http://www.freedesktop.org/software/pkgconfig/" + else + if test -f conf.glibtest ; then + : + else + echo "*** Could not run GLIB test program, checking why..." + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GLIB_CFLAGS" + LIBS="$LIBS $GLIB_LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GLIB or finding the wrong" + echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" +else + echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GLIB is incorrectly installed." +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GLIB_CFLAGS="" + GLIB_LIBS="" + GLIB_GENMARSHAL="" + GOBJECT_QUERY="" + GLIB_MKENUMS="" + as_fn_error "You need Glib >= 2.16.0 to build $PACKAGE" "$LINENO" 5 + fi + + + + + + rm -f conf.glibtest + + +# Check whether --enable-gtktest was given. +if test "${enable_gtktest+set}" = set; then : + enableval=$enable_gtktest; +else + enable_gtktest=yes +fi + + + pkg_config_args=gtk+-2.0 + for module in . + do + case "$module" in + gthread) + pkg_config_args="$pkg_config_args gthread-2.0" + ;; + esac + done + + no_gtk="" + + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" + ;; +esac +fi +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +$as_echo "$PKG_CONFIG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + if test x$PKG_CONFIG != xno ; then + if pkg-config --atleast-pkgconfig-version 0.7 ; then + : + else + echo "*** pkg-config too old; version 0.7 or better required." + no_gtk=yes + PKG_CONFIG=no + fi + else + no_gtk=yes + fi + + min_gtk_version=2.16.0 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 +$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; } + + if test x$PKG_CONFIG != xno ; then + ## don't try to run the test against uninstalled libtool libs + if $PKG_CONFIG --uninstalled $pkg_config_args; then + echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" + enable_gtktest=no + fi + + if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then + : + else + no_gtk=yes + fi + fi + + if test x"$no_gtk" = x ; then + GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` + GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` + gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` + gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + if test "x$enable_gtktest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$GTK_LIBS $LIBS" + rm -f conf.gtktest + if test "$cross_compiling" = yes; then : + echo $ac_n "cross compiling; assumed OK... $ac_c" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include +#include + +int +main () +{ + int major, minor, micro; + char *tmp_version; + + fclose (fopen ("conf.gtktest", "w")); + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = g_strdup("$min_gtk_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_gtk_version"); + exit(1); + } + + if ((gtk_major_version != $gtk_config_major_version) || + (gtk_minor_version != $gtk_config_minor_version) || + (gtk_micro_version != $gtk_config_micro_version)) + { + printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", + $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf ("*** was found! If pkg-config was correct, then it is best\n"); + printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); + printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); + printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); + printf("*** required on your system.\n"); + printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); + printf("*** to point to the correct configuration files\n"); + } + else if ((gtk_major_version != GTK_MAJOR_VERSION) || + (gtk_minor_version != GTK_MINOR_VERSION) || + (gtk_micro_version != GTK_MICRO_VERSION)) + { + printf("*** GTK+ header files (version %d.%d.%d) do not match\n", + GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); + printf("*** library (version %d.%d.%d)\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + } + else + { + if ((gtk_major_version > major) || + ((gtk_major_version == major) && (gtk_minor_version > minor)) || + ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", + gtk_major_version, gtk_minor_version, gtk_micro_version); + printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", + major, minor, micro); + printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); + printf("***\n"); + printf("*** If you have already installed a sufficiently new version, this error\n"); + printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); + printf("*** being found. The easiest way to fix this is to remove the old version\n"); + printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); + printf("*** correct copy of pkg-config. (In this case, you will have to\n"); + printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); + printf("*** so that the correct libraries are found at run-time))\n"); + } + } + return 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + no_gtk=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_gtk" = x ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 +$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } + + GUI_CFLAGS="$GUI_CFLAGS $GTK_CFLAGS" + GUI_LIBS="$GUI_LIBS $GTK_LIBS" + + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + if test "$PKG_CONFIG" = "no" ; then + echo "*** A new enough version of pkg-config was not found." + echo "*** See http://pkgconfig.sourceforge.net" + else + if test -f conf.gtktest ; then + : + else + echo "*** Could not run GTK+ test program, checking why..." + ac_save_CFLAGS="$CFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $GTK_CFLAGS" + LIBS="$LIBS $GTK_LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ + return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding GTK+ or finding the wrong" + echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" +else + echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + GTK_CFLAGS="" + GTK_LIBS="" + as_fn_error "You need Gtk+ >= 2.16.0 to build $PACKAGE" "$LINENO" 5 + fi + + + rm -f conf.gtktest + + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtksourceview" >&5 +$as_echo_n "checking for gtksourceview... " >&6; } + +if test -n "$PKG_CONFIG"; then + if test -n "$gtksourceview_CFLAGS"; then + pkg_cv_gtksourceview_CFLAGS="$gtksourceview_CFLAGS" + else + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-2.0 >= 2.2.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtksourceview-2.0 >= 2.2.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_gtksourceview_CFLAGS=`$PKG_CONFIG --cflags "gtksourceview-2.0 >= 2.2.1" 2>/dev/null` +else + pkg_failed=yes +fi + fi +else + pkg_failed=untried +fi +if test -n "$PKG_CONFIG"; then + if test -n "$gtksourceview_LIBS"; then + pkg_cv_gtksourceview_LIBS="$gtksourceview_LIBS" + else + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtksourceview-2.0 >= 2.2.1\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtksourceview-2.0 >= 2.2.1") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_gtksourceview_LIBS=`$PKG_CONFIG --libs "gtksourceview-2.0 >= 2.2.1" 2>/dev/null` +else + pkg_failed=yes +fi + fi +else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + gtksourceview_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtksourceview-2.0 >= 2.2.1"` + else + gtksourceview_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtksourceview-2.0 >= 2.2.1"` + fi + # Put the nasty error message in config.log where it belongs + echo "$gtksourceview_PKG_ERRORS" >&5 + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error "You need GtkSourceView2 >= 2.9.7 to build $PACKAGE" "$LINENO" 5 +elif test $pkg_failed = untried; then + as_fn_error "You need GtkSourceView2 >= 2.9.7 to build $PACKAGE" "$LINENO" 5 +else + gtksourceview_CFLAGS=$pkg_cv_gtksourceview_CFLAGS + gtksourceview_LIBS=$pkg_cv_gtksourceview_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + : +fi +GUI_CFLAGS="$GUI_CFLAGS $gtksourceview_CFLAGS" +GUI_LIBS="$GUI_LIBS $gtksourceview_LIBS" + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poppler" >&5 +$as_echo_n "checking for poppler... " >&6; } + +if test -n "$PKG_CONFIG"; then + if test -n "$poppler_CFLAGS"; then + pkg_cv_poppler_CFLAGS="$poppler_CFLAGS" + else + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-glib\""; } >&5 + ($PKG_CONFIG --exists --print-errors "poppler-glib") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_poppler_CFLAGS=`$PKG_CONFIG --cflags "poppler-glib" 2>/dev/null` +else + pkg_failed=yes +fi + fi +else + pkg_failed=untried +fi +if test -n "$PKG_CONFIG"; then + if test -n "$poppler_LIBS"; then + pkg_cv_poppler_LIBS="$poppler_LIBS" + else + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler-glib\""; } >&5 + ($PKG_CONFIG --exists --print-errors "poppler-glib") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_poppler_LIBS=`$PKG_CONFIG --libs "poppler-glib" 2>/dev/null` +else + pkg_failed=yes +fi + fi +else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + poppler_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "poppler-glib"` + else + poppler_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "poppler-glib"` + fi + # Put the nasty error message in config.log where it belongs + echo "$poppler_PKG_ERRORS" >&5 + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error "You need Poppler to build $PACKAGE" "$LINENO" 5 +elif test $pkg_failed = untried; then + as_fn_error "You need Poppler to build $PACKAGE" "$LINENO" 5 +else + poppler_CFLAGS=$pkg_cv_poppler_CFLAGS + poppler_LIBS=$pkg_cv_poppler_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + : +fi +GUI_CFLAGS="$GUI_CFLAGS $poppler_CFLAGS" +GUI_LIBS="$GUI_LIBS $poppler_LIBS" + + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkspell" >&5 +$as_echo_n "checking for gtkspell... " >&6; } + +if test -n "$PKG_CONFIG"; then + if test -n "$gtkspell_CFLAGS"; then + pkg_cv_gtkspell_CFLAGS="$gtkspell_CFLAGS" + else + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkspell-2.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtkspell-2.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_gtkspell_CFLAGS=`$PKG_CONFIG --cflags "gtkspell-2.0" 2>/dev/null` +else + pkg_failed=yes +fi + fi +else + pkg_failed=untried +fi +if test -n "$PKG_CONFIG"; then + if test -n "$gtkspell_LIBS"; then + pkg_cv_gtkspell_LIBS="$gtkspell_LIBS" + else + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkspell-2.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtkspell-2.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_gtkspell_LIBS=`$PKG_CONFIG --libs "gtkspell-2.0" 2>/dev/null` +else + pkg_failed=yes +fi + fi +else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + gtkspell_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkspell-2.0"` + else + gtkspell_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkspell-2.0"` + fi + # Put the nasty error message in config.log where it belongs + echo "$gtkspell_PKG_ERRORS" >&5 + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error "You need GtkSpell to build $PACKAGE" "$LINENO" 5 +elif test $pkg_failed = untried; then + as_fn_error "You need GtkSpell to build $PACKAGE" "$LINENO" 5 +else + gtkspell_CFLAGS=$pkg_cv_gtkspell_CFLAGS + gtkspell_LIBS=$pkg_cv_gtkspell_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + : +fi +GUI_CFLAGS="$GUI_CFLAGS $gtkspell_CFLAGS" +GUI_LIBS="$GUI_LIBS $gtkspell_LIBS" + +# Checks for header files. +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if test "${ac_cv_path_GREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if test "${ac_cv_path_EGREP+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if test "${ac_cv_header_stdc+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdc=yes +else + ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then : + +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then : + : +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +for ac_header in libintl.h locale.h netdb.h stdlib.h string.h sys/socket.h sys/time.h unistd.h fcntl.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +# Checks for typedefs, structures, and compiler characteristics. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if test "${ac_cv_header_stdbool_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#ifndef bool + "error: bool is not defined" +#endif +#ifndef false + "error: false is not defined" +#endif +#if false + "error: false is not 0" +#endif +#ifndef true + "error: true is not defined" +#endif +#if true != 1 + "error: true is not 1" +#endif +#ifndef __bool_true_false_are_defined + "error: __bool_true_false_are_defined is not defined" +#endif + + struct s { _Bool s: 1; _Bool t; } s; + + char a[true == 1 ? 1 : -1]; + char b[false == 0 ? 1 : -1]; + char c[__bool_true_false_are_defined == 1 ? 1 : -1]; + char d[(bool) 0.5 == true ? 1 : -1]; + bool e = &s; + char f[(_Bool) 0.0 == false ? 1 : -1]; + char g[true]; + char h[sizeof (_Bool)]; + char i[sizeof s.t]; + enum { j = false, k = true, l = false * true, m = true * 256 }; + /* The following fails for + HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ + _Bool n[m]; + char o[sizeof n == m * sizeof n[0] ? 1 : -1]; + char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; +# if defined __xlc__ || defined __GNUC__ + /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 + reported by James Lemley on 2005-10-05; see + http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html + This test is not quite right, since xlc is allowed to + reject this program, as the initializer for xlcbug is + not one of the forms that C requires support for. + However, doing the test right would require a runtime + test, and that would make cross-compilation harder. + Let us hope that IBM fixes the xlc bug, and also adds + support for this kind of constant expression. In the + meantime, this test will reject xlc, which is OK, since + our stdbool.h substitute should suffice. We also test + this with GCC, where it should work, to detect more + quickly whether someone messes up the test in the + future. */ + char digs[] = "0123456789"; + int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); +# endif + /* Catch a bug in an HP-UX C compiler. See + http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html + http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html + */ + _Bool q = true; + _Bool *pq = &q; + +int +main () +{ + + *pq |= q; + *pq |= ! q; + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + + !m + !n + !o + !p + !q + !pq); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_header_stdbool_h=yes +else + ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } +ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = x""yes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE__BOOL 1 +_ACEOF + + +fi + +if test $ac_cv_header_stdbool_h = yes; then + +$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +if test "${ac_cv_c_const+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +/* FIXME: Include the comments suggested by Paul. */ +#ifndef __cplusplus + /* Ultrix mips cc rejects this. */ + typedef int charset[2]; + const charset cs; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* AIX XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this. */ + char *t; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* AIX XL C 1.02.0.0 rejects this saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; }; + struct s *b; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_const=yes +else + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +$as_echo "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +$as_echo "#define const /**/" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 +$as_echo_n "checking for inline... " >&6; } +if test "${ac_cv_c_inline+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __cplusplus +typedef int foo_t; +static $ac_kw foo_t static_foo () {return 0; } +$ac_kw foo_t foo () {return 0; } +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_c_inline=$ac_kw +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + test "$ac_cv_c_inline" != no && break +done + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 +$as_echo "$ac_cv_c_inline" >&6; } + +case $ac_cv_c_inline in + inline | yes) ;; + *) + case $ac_cv_c_inline in + no) ac_val=;; + *) ac_val=$ac_cv_c_inline;; + esac + cat >>confdefs.h <<_ACEOF +#ifndef __cplusplus +#define inline $ac_val +#endif +_ACEOF + ;; +esac + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = x""yes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + + +# Checks for library functions. +for ac_func in gethostbyname memset setlocale socket strstr +do : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +eval as_val=\$$as_ac_var + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + +ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile po/Makefile.in data/$PACKAGE.desktop" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + test "x$cache_file" != "x/dev/null" && + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + + ac_config_commands="$ac_config_commands po/stamp-it" + + + +: ${CONFIG_STATUS=./config.status} +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error ERROR [LINENO LOG_FD] +# --------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with status $?, using 1 if that was 0. +as_fn_error () +{ + as_status=$?; test $as_status -eq 0 && as_status=1 + if test "$3"; then + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + fi + $as_echo "$as_me: error: $1" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by Gummi-Beta $as_me 0.5.0~svn210, which was +generated by GNU Autoconf 2.65. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to . +Gummi-Beta home page: ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +Gummi-Beta config.status 0.5.0~svn210 +configured by $0, generated by GNU Autoconf 2.65, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2009 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; + "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; + "data/$PACKAGE.desktop") CONFIG_FILES="$CONFIG_FILES data/$PACKAGE.desktop" ;; + "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; + + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || as_fn_error "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_t=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_t"; then + break + elif $ac_last_try; then + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&2;} + + rm -f "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" + } >"$tmp/config.h" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$tmp/config.h" "$ac_file" \ + || as_fn_error "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "po/stamp-it":C) + if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then + as_fn_error "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 + fi + rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" + >"po/stamp-it.tmp" + sed '/^#/d + s/^[[].*] *// + /^[ ]*$/d + '"s|^| $ac_top_srcdir/|" \ + "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" + + sed '/^POTFILES =/,/[^\\]$/ { + /^POTFILES =/!d + r po/POTFILES + } + ' "po/Makefile.in" >"po/Makefile" + rm -f "po/Makefile.tmp" + mv "po/stamp-it.tmp" "po/stamp-it" + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit $? +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + +echo +echo gummi...................................... : Version $VERSION +echo +echo spellcheck support......................... : $spellcheck +echo +echo The binary will be installed in $prefix/bin +echo + +echo configure complete, now type \'make\'. +echo diff --git a/configure.ac b/configure.ac new file mode 100644 index 00000000..9b7d347f --- /dev/null +++ b/configure.ac @@ -0,0 +1,91 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.65) +AC_INIT([Gummi-Beta], [0.5.0~svn210], [alexvandermey@gmail.com], [gummi-beta], [http://gummi.midnightcoding.org/]) +AM_INIT_AUTOMAKE([foreign -Wall -Werror]) + +# ls po/*.po | sort | sed 's/po\///g;s/.po//g'| sed ':a;N;s/\n/ /g;ta' +GETTEXT_PACKAGE=gummi-beta +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext domain]) +AC_SUBST(GETTEXT_PACKAGE) + +ALL_LINGUAS="ca_ES da fr gr_EL it_IT nl_NL pt_BR ru zh_TW" + +AC_CONFIG_SRCDIR([src/environment.h]) +AC_CONFIG_HEADERS([config.h]) +AH_VERBATIM([USE_GTKSPELL], [#undef USE_GTKSPELL]) + +# Checks for programs. +AC_PROG_CC +AC_PROG_CC_C_O +IT_PROG_INTLTOOL +AM_PROG_CC_C_O + +# Checks for libraries. +AC_ARG_ENABLE([spellcheck], + AS_HELP_STRING([--disable-spellcheck],[disable spellcheck support]), + spellcheck=$enableval, spellcheck="yes") + +if test "$spellcheck" = yes; then + AC_DEFINE(USE_GTKSPELL) +fi +AC_SUBST(USE_GTKSPELL) + +AM_PATH_GLIB_2_0([2.16.0], [ + GUI_CFLAGS="$GUI_CFLAGS $GLIB_CFLAGS" + GUI_LIBS="$GUI_LIBS $GLIB_LIBS" + ], [AC_MSG_ERROR([You need Glib >= 2.16.0 to build $PACKAGE])]) + +AM_PATH_GTK_2_0([2.16.0], [ + GUI_CFLAGS="$GUI_CFLAGS $GTK_CFLAGS" + GUI_LIBS="$GUI_LIBS $GTK_LIBS" + ], [AC_MSG_ERROR([You need Gtk+ >= 2.16.0 to build $PACKAGE])]) + +PKG_CHECK_MODULES(gtksourceview, [gtksourceview-2.0 >= 2.2.1],, + [AC_MSG_ERROR([You need GtkSourceView2 >= 2.9.7 to build $PACKAGE])]) +GUI_CFLAGS="$GUI_CFLAGS $gtksourceview_CFLAGS" +GUI_LIBS="$GUI_LIBS $gtksourceview_LIBS" + +PKG_CHECK_MODULES(poppler, [poppler-glib],, + [AC_MSG_ERROR([You need Poppler to build $PACKAGE])]) +GUI_CFLAGS="$GUI_CFLAGS $poppler_CFLAGS" +GUI_LIBS="$GUI_LIBS $poppler_LIBS" + +PKG_CHECK_MODULES(gtkspell, [gtkspell-2.0],, + [AC_MSG_ERROR([You need GtkSpell to build $PACKAGE])]) +GUI_CFLAGS="$GUI_CFLAGS $gtkspell_CFLAGS" +GUI_LIBS="$GUI_LIBS $gtkspell_LIBS" + +# Checks for header files. +AC_CHECK_HEADERS([libintl.h locale.h netdb.h stdlib.h string.h sys/socket.h sys/time.h unistd.h fcntl.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_CONST +AC_C_INLINE +AC_TYPE_SIZE_T + +# Checks for library functions. +AC_CHECK_FUNCS([gethostbyname memset setlocale socket strstr]) + +AC_SUBST(GUI_LIBS) +AC_SUBST(GUI_CFLAGS) +AC_CONFIG_FILES([Makefile + src/Makefile + data/Makefile + po/Makefile.in + data/$PACKAGE.desktop + ]) +AC_OUTPUT + +echo +echo gummi...................................... : Version $VERSION +echo +echo spellcheck support......................... : $spellcheck +echo +echo The binary will be installed in $prefix/bin +echo + +echo configure complete, now type \'make\'. +echo diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 00000000..5e4dfcbe --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,19 @@ +man_MANS = $(PACKAGE).1 + +desktopdir = $(datadir)/applications +desktop_DATA = $(PACKAGE).desktop + +pixmapsdir = $(datadir)/pixmaps +pixmaps_DATA = $(PACKAGE).png + +imagesdir = $(datadir)/$(PACKAGE) +images_DATA = $(PACKAGE).png icon.png article.png book.png letter.png report.png + +gladedir = $(datadir)/$(PACKAGE) +glade_DATA = gummi.glade prefs.glade + +EXTRA_DIST = $(man_MANS) \ + $(desktop_DATA) \ + $(pixmaps_DATA) \ + $(images_DATA) \ + $(glade_DATA) diff --git a/data/Makefile.in b/data/Makefile.in new file mode 100644 index 00000000..5a179b11 --- /dev/null +++ b/data/Makefile.in @@ -0,0 +1,528 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = data +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +man1dir = $(mandir)/man1 +am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(desktopdir)" \ + "$(DESTDIR)$(gladedir)" "$(DESTDIR)$(imagesdir)" \ + "$(DESTDIR)$(pixmapsdir)" +NROFF = nroff +MANS = $(man_MANS) +DATA = $(desktop_DATA) $(glade_DATA) $(images_DATA) $(pixmaps_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +GUI_CFLAGS = @GUI_CFLAGS@ +GUI_LIBS = @GUI_LIBS@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +USE_GTKSPELL = @USE_GTKSPELL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +gtksourceview_CFLAGS = @gtksourceview_CFLAGS@ +gtksourceview_LIBS = @gtksourceview_LIBS@ +gtkspell_CFLAGS = @gtkspell_CFLAGS@ +gtkspell_LIBS = @gtkspell_LIBS@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +poppler_CFLAGS = @poppler_CFLAGS@ +poppler_LIBS = @poppler_LIBS@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +man_MANS = $(PACKAGE).1 +desktopdir = $(datadir)/applications +desktop_DATA = $(PACKAGE).desktop +pixmapsdir = $(datadir)/pixmaps +pixmaps_DATA = $(PACKAGE).png +imagesdir = $(datadir)/$(PACKAGE) +images_DATA = $(PACKAGE).png icon.png article.png book.png letter.png report.png +gladedir = $(datadir)/$(PACKAGE) +glade_DATA = gummi.glade prefs.glade +EXTRA_DIST = $(man_MANS) \ + $(desktop_DATA) \ + $(pixmaps_DATA) \ + $(images_DATA) \ + $(glade_DATA) + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign data/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign data/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-man1: $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" + @list=''; test -n "$(man1dir)" || exit 0; \ + { for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | while read p; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; echo "$$p"; \ + done | \ + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ + sed 'N;N;s,\n, ,g' | { \ + list=; while read file base inst; do \ + if test "$$base" = "$$inst"; then list="$$list $$file"; else \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ + fi; \ + done; \ + for i in $$list; do echo "$$i"; done | $(am__base_list) | \ + while read files; do \ + test -z "$$files" || { \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ + done; } + +uninstall-man1: + @$(NORMAL_UNINSTALL) + @list=''; test -n "$(man1dir)" || exit 0; \ + files=`{ for i in $$list; do echo "$$i"; done; \ + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ + sed -n '/\.1[a-z]*$$/p'; \ + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ + test -z "$$files" || { \ + echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } +install-desktopDATA: $(desktop_DATA) + @$(NORMAL_INSTALL) + test -z "$(desktopdir)" || $(MKDIR_P) "$(DESTDIR)$(desktopdir)" + @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(desktopdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(desktopdir)" || exit $$?; \ + done + +uninstall-desktopDATA: + @$(NORMAL_UNINSTALL) + @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(desktopdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(desktopdir)" && rm -f $$files +install-gladeDATA: $(glade_DATA) + @$(NORMAL_INSTALL) + test -z "$(gladedir)" || $(MKDIR_P) "$(DESTDIR)$(gladedir)" + @list='$(glade_DATA)'; test -n "$(gladedir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gladedir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(gladedir)" || exit $$?; \ + done + +uninstall-gladeDATA: + @$(NORMAL_UNINSTALL) + @list='$(glade_DATA)'; test -n "$(gladedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(gladedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(gladedir)" && rm -f $$files +install-imagesDATA: $(images_DATA) + @$(NORMAL_INSTALL) + test -z "$(imagesdir)" || $(MKDIR_P) "$(DESTDIR)$(imagesdir)" + @list='$(images_DATA)'; test -n "$(imagesdir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(imagesdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(imagesdir)" || exit $$?; \ + done + +uninstall-imagesDATA: + @$(NORMAL_UNINSTALL) + @list='$(images_DATA)'; test -n "$(imagesdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(imagesdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(imagesdir)" && rm -f $$files +install-pixmapsDATA: $(pixmaps_DATA) + @$(NORMAL_INSTALL) + test -z "$(pixmapsdir)" || $(MKDIR_P) "$(DESTDIR)$(pixmapsdir)" + @list='$(pixmaps_DATA)'; test -n "$(pixmapsdir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pixmapsdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(pixmapsdir)" || exit $$?; \ + done + +uninstall-pixmapsDATA: + @$(NORMAL_UNINSTALL) + @list='$(pixmaps_DATA)'; test -n "$(pixmapsdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(pixmapsdir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(pixmapsdir)" && rm -f $$files +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @list='$(MANS)'; if test -n "$$list"; then \ + list=`for p in $$list; do \ + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ + if test -n "$$list" && \ + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ + echo " typically \`make maintainer-clean' will remove them" >&2; \ + exit 1; \ + else :; fi; \ + else :; fi + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(MANS) $(DATA) +installdirs: + for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(gladedir)" "$(DESTDIR)$(imagesdir)" "$(DESTDIR)$(pixmapsdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-desktopDATA install-gladeDATA \ + install-imagesDATA install-man install-pixmapsDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: install-man1 + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-desktopDATA uninstall-gladeDATA \ + uninstall-imagesDATA uninstall-man uninstall-pixmapsDATA + +uninstall-man: uninstall-man1 + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am \ + install-desktopDATA install-dvi install-dvi-am install-exec \ + install-exec-am install-gladeDATA install-html install-html-am \ + install-imagesDATA install-info install-info-am install-man \ + install-man1 install-pdf install-pdf-am install-pixmapsDATA \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am uninstall uninstall-am uninstall-desktopDATA \ + uninstall-gladeDATA uninstall-imagesDATA uninstall-man \ + uninstall-man1 uninstall-pixmapsDATA + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/data/article.png b/data/article.png new file mode 100755 index 0000000000000000000000000000000000000000..464caf278af41f338a5702dde0a1f6171049f1d2 GIT binary patch literal 738 zcmV<80v-K{P) zh!oHesOTsXdQd=c3F!e*BPuA6K!}c#AK(K{mu!SeSfSFTg@ zk8ND+I6oLAIn;dkMvW>ft6$Z`ea~Y&SpZmN;(a~z9N^W5b-*wxxn8rOfbLgkrU37} z0QGDUIydLqi^}WlJY86#F5mX8NVL&}-Ju?r!YK=AIL=rUu==eBmrfrc5VP&ZJ+G4$ z31RDS$&e(gu7kO%#|aU;Fj=p``?a4iKXWt}gcX28p&wR_v>KAM2Ja#e-mSSdaUvDO z006^#hdg6O52FzwC>;V$G!MXZvq9 zvFp8ESlisy-p2uma(aHcWzvguV_VrOUXfD#Pltnpa7&2Fv5=X9Y5+jV z2#7G8RRF-U5f~2u1@T@`xu_Bx*w+I|8V9P7kvK3m0Fp?ci%115%sSLq0n`}4SXMza zdgbF6UEiyafFikY_IN51Y0H=1*4IaYbqW7|7<045~#4nKN(u+PV*s{R`>{C8m6zmi>h zPb|dvNxGfnlXV3pAgv_)ApJzTVdhN&a5)HEhyK&v^P6;wv~L5jZ@=Yc-oFA20I^FD Ux%6!c5C8xG07*qoM6N<$f-BoUbkKpjg@lVct@!o$9i@X!`8?U``aBEkT zti&Wd4~6~%7=Gf&yQ80dG*s*mYM)5b*ngiwe>+oGSBu#;S3Q`bks+1l(_WU3_b^`_EBPULuEq0@~c+*!L|`AQ2}vkFCd_=+HWpT+Tz@9IZ!umB-5i2+PRu?ZiGQx|#z%qu6KJsuFq z3TYqpy(&A*qE?z_?2v>m5tPuW8IOod%!}aGE1VgURgn;;$swz0BUOdSc0n;wVOmE6 z>>z(vYvTBn8Xr_SfRDOFxpqhmMyQn(* znS|RFP|ZUS?1)0_BQY*S2^^U$p<#hYVl$}09EHghBdS?K>_ZO3%YDZ}l(K-oFHhj+ z>etVQ$QpNQC!FK_gQf2Ygn3Fz}(EQFzqY`9(ocz{X^jWGY*(*Qd;X_ZOqo>#sypG;&N+&|Fy%5osq!o}n z>yDg>LfXO1U1(=CMy>Qz%Wq z;HRtqtYYHoH}EO0+ad~FtVWt=6CSf1R&o7?K2B;yv_l4%FRkIm!V0Fw$8}=ITW=U1 zlU2#v0p?IlK=SN=yOly+nRh)Ah(>O3YdE*6`=-i;U>$9~yW99w&DWSQ0XXY#{nXvj z>XLqcWEt0;PMjRiw_FYm-0!Y82o=~K41UF0Sk&^+tDnAkvnG$}U#PS{3G6CTVkuX;DdiGP~K}{4{|yipQtr3pT*Jge*Uij Z0{~;&23{aS+7bW&002ovPDHLkV1ng#K&=1( literal 0 HcmV?d00001 diff --git a/data/gummi-beta.1 b/data/gummi-beta.1 new file mode 100644 index 00000000..7d10d6a9 --- /dev/null +++ b/data/gummi-beta.1 @@ -0,0 +1,15 @@ +.TH GUMMI 1 "JANUARY 2009" Linux "User Manuals" +.SH NAME +gummi \- LaTeX editor +.SH DESCRIPTION +.B gummi +is a simple LaTeX editor written in Python +and PyGTK. +.SH OPTIONS +No options available for now. +.SH BUGS +Definitely, report at: +http://gummi.midnightcoding.org +.SH AUTHOR +Alexander van der Mey + diff --git a/data/gummi-beta.desktop.in b/data/gummi-beta.desktop.in new file mode 100644 index 00000000..28d8e060 --- /dev/null +++ b/data/gummi-beta.desktop.in @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=@PACKAGE_VERSION@ +Name=@PACKAGE_NAME@ +GenericName=LaTeX Editor +Comment=Simple LaTeX Editor +Exec=@PACKAGE@ +Icon=@PACKAGE@ +Terminal=false +Type=Application +Categories=Office; +StartupNotify=true +MimeType=text/x-tex; diff --git a/data/gummi-beta.png b/data/gummi-beta.png new file mode 100644 index 0000000000000000000000000000000000000000..4e8a32907175133295beda51e758ebc861e5a2a7 GIT binary patch literal 4291 zcmV;!5IpaRP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXW4 z3KbzZ#t(!5000?uMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HM@dakSAh-}000mkNkl&v#9~@bDS+{SRwvNo&UH5z~+;h*@{X;)| znAkR`3bOJGCt!eqfT|)`xu^)5g)E>V2#~XYDMbmH5}6{hMpP`sFWw`tXZ~Zu3*Z+@3B~w?j6T_X?dL zNtRcZE)yVTR)891M_1j$mcP5|69BUUV0j0~#&EIE6Hot`#~$0qa|ia{KO8N6`gcC~ zt4CI^c@2PRC-x6_-nrweU;fIc_wV0-+wM1RvbX=%RlM<+cGH~=q?9FDLNS~uqK-C3 zvXyu^Rh)C=lnWR$lG%htLe2n+EQ1xuxj;%O;})@Ow4+QrN-`cK z#>2>X(9(<&sWC=_NHdI#hmm%aXvdlHAkvOA?JzPLM&c;bj1p}>(k#Cpr}Di~Ub$Xu zjPal)jYkU>Kqr?pcL+v9T!#FGKn@u1QG8&BA(cSk;ysZoWq$AQvx&0GNB6Cgg%z_0#%|xDjm*$N01!3Pg` zVvLw&Qp!|yV5(E0P8cpVG^2!N!}4+t7*#hgy`{!7j7OPfm{yV>D*(+vRf@Q&A}XXN zF}tmYua&qMt!?7Q08|wbC8tc&v?8K7hozLnsVC>exNWIL@GelOl<7`;nnB{ZhfneH z3uifZe89NhVkwg*092KF$}_vA%lwWhc3eKsCD+X3y)Ygm+NMD>kPN&aDrn9qVj!Zf z(9T2*ok-W~0jxe^j5Om&-RX$;o}4nOO3W=y+tLxGH(j%EYRLcm`wJZS(W{&~w#d@i z5jh(dZn6HTd!D)NQ*7Qb#T%~Q!7sdP4^x{fP-tT=(NG5hA}S?=bXk5y>_RnK8-bPj zSi+ccW;`BI*PSAdIpKXp&JlCQQ~!OGAKv>MFCRQZJ4$O7x%=9Ac3v^d{LU%ro@cZa zId{Czv4dwg{?Y=k9V)NqA3x5%Z@<9a>$dT(-@cZ)-BaWY;stSvijvJHg%3nk)agYi zB)Q153MvjkNGUNIjp%ebs4FxIA@JQVJ;NjSzsR^B*DQQ`zQgSwyOB%ZG*8uYc&~&i zKr$>DqkhBFKX`=)zjlCylYQbiaq{SS&YvD~%`LmwdBtW1g9IiMh0CNICly{MT2W;YVM8o)q(%#m{W%@WGGY!c{lz08wI_u$;-s z@J=UP+`#Dtf_b$yy7l>&){Pw+@ zxc;4c==C}XO3oP-p$dLN#f&;dL~!aD4-z-M_j0!EnqH-XWrtO@7!CvHJi2Pf%?vZ! z7=Wlu3QUPcOhw15$`QQd$p?;c=9T`2%5uex+nB$kOHM{r)qo@A5(V!(*^HPH;uKWD zVC(Kp?74bNiGIuz-n$7^iqF$YA}=ph1kqI?SSzEl;>=f)CdN$F^_)Di#L=fuZ`@R< zu1!6Utp6xyXv`UI(C{lVyJnAWlfFaqh%` z@i1-(pfeqqp6epw@vb7Kh&D|Dfe>SZD1;D-{aC)2Dg>xI6=Wf$67^*(!9;PKGnkZL zRTb5X)Pa=*&%ngT;EWiJ#nWRfZCqZfo<~9^wh`|Gnv@tLs$=T9Q=%9ff_Fe5rG$4L z5pda)+B}iZ0!p2NWGrV?JvcXMmL{e6VhxR`A!4Y4TMm;MDH*Yi*hTz7rx!}K9gL`| znh*k#m8NYF8B^E2i4wJV=ZQd!i8=(t%gR;D&MK;tZq6tLRi)(3B(YbC(CaF($#Sj3 zJ4bM(2`8mB(zPxE9nbW1m*JpcG#nuap{gf4A8|6K)9n(Y0}`RCi7}yGaNbh|Pl_c9 z?YI;yx7?E=sB?((fRJ;_DW{86VwnImBU{mN=N-w}`tilu5{_4;TUU&m$Y?Y!rmgOf zMTsdgI=#fnBZ~}&BfN9uT<#GB9YXOi_&Z~>)x+JDd z1js2(bX#z4wUn)o#CRAPEH!j{fnHrPZWH5iiy8E~J=6!Ddh{i}apyw}mKwa*lE7H` zZ^cGT&vy90$KKA4_iSaf)ZlWd@0Ps%hcvBGh3#xXuNjlEaOqT<~nT?No^torBR1S zX%AE#AykM6Dd(J1z8HmUQqBbDJXNTRBn4s9whqnJ9J6`nG_g%!naX>- zI+`}Jw6Mh0H(bKUKmWV90OwB*_~*a;4$nXF3Tu0EkMpifH>7wlQbyHL`3fy+mfJRN zY$bG}quDY|+YnQk>U6s`J1(1}x2dyX1QyQ>Svb*0UCEA zt?vd@6e+vyT#-^$k9Pqzhxb+K7IVrerHh%l;wE&`Y-h_fF)|vr?AW`RU3)ig2%x_( zV&Qn7prv`w7+IjrMmFemYJz(Div!wWi&9~>F&~|G_z;SRQcutT3F=M{=N*H=uw7hS zyf}bmo~ud;r7GbQj44q9py5hW}9Yt<_{~Ngarkxw! z__@bk;qd;GRJEsDd4f1BC9)YwgeDu#6-uQx65I8*#B%A0#T5|VJA$vNTupER-9Saw z05DY$k&F>@Bw34DLNHPS=ak?0*iG!be0DvJ&Nn>rpU-jjV4 z0#kJlX|-tT>yFn=C2ZA*ycjE)OwdxPgN%kFE`RG*KJrb4uLz z#UJz9OAFlmzAM?bdxlWEGNp^Kw9s(q;3*z`;2_6dIJMS})Sl~ZxRTwM?LsBseWnTl zjf(h+scIS#_p<>k&-j;H!QhK7X0zp?X3_nA!|pfD^ZTEC2anwM0#AJZ2q%x8FBLo+ z`yM#Jz6TC4w`~*Kc5gzxv26-Wb(e+&Sj!QZ4(5t-s z{29)?y2M~{OgoB;J4j27F3rYx!#EUk!6 zdgrnkX>9DhZX0{A+s?TY0~XJWSUfXgwAeth(&VTo_(0w5FgriZ=D8W>w{Bv7>kQ&N z!+z%E@kOTUE}Fo`imPg7dUIql70SGB$GeK0vP8MaY;>yIrN1gujKrRF~^=gOLwN0Nn>p?87zUAlYD>HZz=uEj;r6o2FMD#lnE1gr4zPH7WK~Bk=PZ`Z z$e0*{mC1ovc@^4aQcC2MNNpxH8H-t)pIyQB-a`NOU``gdn!O^3~7AFt*Hn!96y6ru2;dKAO{m&k}|H(%lzy1C%JZ|s* z!|R#fJ!L7D%Ir#~zcNJ=%IIVHCF*cmoaC~jbn0==s&P>Z(Ik_3)uW%;Th@ z>nr9v^UT)UbB~>JerY71`OII*-FM&3Xf*m1aOk4XiO;{5w5oK^*YEqcpOiieP5mdly3GgAYD9rz)x<(8Q)~ znzpU$ZnfAyKRkKr#Da>RKYxDl88bUP+4=F$EM)ULI~h1SIeqoczyHVQUU=a}IdbS2 zZCjp)m6@lau9SonGoocWr()!Z#O7=`XOl_CWImhCESQwMP|TMJok^x0Wrl+W%@w1? lhQ;$s_Bx02^W*>J@xNtnyO!ito|gas002ovPDHLkV1k+eO}zjB literal 0 HcmV?d00001 diff --git a/data/gummi.glade b/data/gummi.glade new file mode 100644 index 00000000..1f129dc8 --- /dev/null +++ b/data/gummi.glade @@ -0,0 +1,2198 @@ + + + + + + True + gtk-info + + + True + application-pdf + + + True + accessories-dictionary + + + 60 + 1 + 10 + 10 + + + True + gnome-run + + + True + gtk-new + 1 + + + True + gtk-save-as + 1 + + + True + gtk-open + 1 + + + 360 + 280 + 10 + Create new document.. + False + True + center-on-parent + icon.png + True + mainwindow + + + + + + + True + + + 80 + True + queue + + + True + True + templatemodel + 0 + 40 + + + + + 7 + 0 + + + + + True + True + + + True + .. + + + + + True + Template options: + + + + + 1 + + + + + + + + True + 10 + end + + + gtk-cancel + 90 + 35 + True + True + True + True + + + + False + False + 0 + + + + + gtk-ok + 90 + 35 + True + False + True + True + True + + + + False + False + 1 + + + + + False + 3 + + + + + + + 100 + 1 + 10 + + + 100 + 1 + 10 + + + 80 + True + True + queue + + + True + 5 + 2 + 4 + + + True + 0.20000000298023224 + Rows: + + + GTK_EXPAND + + + + + True + 0.20000000298023224 + Columns: + + + 1 + 2 + GTK_EXPAND + + + + + True + True + + 0.5 + matrix_rows + + + 1 + 2 + GTK_EXPAND + 5 + + + + + True + True + + 0.5 + matrix_cols + + + 1 + 2 + 1 + 2 + GTK_EXPAND + 5 + + + + + True + list_matrixbracket + 0 + + + + 0 + + + + + 2 + 3 + 1 + 2 + GTK_EXPAND + 5 + + + + + gtk-apply + 110 + 35 + True + True + True + True + + + + 3 + 4 + 1 + 2 + + 5 + + + + + True + Bracket: + + + 2 + 3 + + + + + + + + + + True + gtk-execute + + + 120 + True + True + queue + + + True + + + True + 5 + 3 + 2 + + + True + 0 + File: + fill + + + GTK_FILL + + + + + 80 + True + 0 + Caption: + fill + + + 1 + 2 + GTK_FILL + + + + + True + 0 + Label: + + + 2 + 3 + GTK_FILL + + + + + True + False + True + + 0.5 + + + 1 + 2 + 1 + 2 + + + + + True + False + True + + 0.5 + + + 1 + 2 + 2 + 3 + + + + + True + True + + fileopen + True + + + + 1 + 2 + + + + + 0 + + + + + True + 5 + 3 + + + 80 + True + False + True + + 0.5 + image_scaler + 2 + + + 1 + 2 + GTK_EXPAND + + + + + True + Scale: + + + + + gtk-apply + 110 + 35 + True + True + True + True + + + + 2 + 3 + + GTK_FILL + + + + + False + 1 + + + + + + + 80 + True + True + queue + + + True + 5 + 2 + 4 + + + True + 0.20000000298023224 + Rows: + + + GTK_EXPAND + + + + + True + 0.20000000298023224 + Columns: + + + 1 + 2 + GTK_EXPAND + + + + + True + True + + 0.5 + table_rows + + + 1 + 2 + GTK_EXPAND + 5 + + + + + True + True + + 0.5 + table_cols + + + 1 + 2 + 1 + 2 + GTK_EXPAND + 5 + + + + + True + Alignment of the +cell content. + list_tablealign + 0 + + + + 0 + + + + + 2 + 3 + GTK_EXPAND + 5 + + + + + True + Determines whether the +cells have line borders. + list_tableborder + 0 + + + + 0 + + + + + 2 + 3 + 1 + 2 + GTK_EXPAND + 5 + + + + + gtk-apply + 110 + 35 + True + True + True + True + + + + 3 + 4 + 1 + 2 + + 5 + + + + + + + + + + 3 + 1 + 100 + 1 + 10 + + + 3 + 1 + 100 + 1 + 10 + + + 1 + 0.10000000000000001 + 3 + 0.10000000000000001 + 10 + + + True + system-software-update + + + 15 + Find + center-on-parent + 360 + 180 + True + icon.png + True + True + mainwindow + + + + + + + True + + + True + + + True + 14 + Search for: + + + False + 0 + + + + + True + True + True + + gtk-find + + + + + + 1 + + + + + 0 + + + + + True + + + True + 7 + Replace with: + + + False + 0 + + + + + True + True + + gtk-find-and-replace + + + 1 + + + + + 1 + + + + + Match case + True + True + False + True + True + + + + 2 + + + + + Match entire word only + True + True + False + True + + + + 3 + + + + + Search backwards + True + True + False + True + + + + 4 + + + + + True + 10 + end + + + gtk-close + True + True + True + True + + + + False + False + 0 + + + + + gtk-find + True + True + True + True + + + + False + False + 1 + + + + + _Replace + True + True + True + True + + + + False + False + 2 + + + + + Replace _All + True + True + True + True + + + + False + False + 3 + + + + + False + False + 5 + + + + + + + + + + + + + + + + + + + + + + + + + Unbracketed + + + Parentheses + + + Brackets + + + Braces + + + Single line + + + Double line + + + + + + + + + + + Align left + + + Align center + + + Align right + + + + + + + + + + + No borders + + + Border outline + + + Border all cells + + + + + + + + + + + Best Fit + + + Fit Page Width + + + 50% + + + 70% + + + 85% + + + 100% + + + 125% + + + 150% + + + 200% + + + 300% + + + 400% + + + + + + + + + + + + + Article + article.png + + + Book + book.png + + + Letter + letter.png + + + Report + report.png + + + + + Gummi - LaTeX Editor + center + 792 + 558 + icon.png + + + + True + + + True + + + True + _File + True + + + True + + + gtk-new + True + True + True + + + + + + + New from _Template + True + True + image7 + False + + + + + + _Open... + True + True + image4 + False + + + + + + + True + + + + + gtk-save + True + True + True + + + + + + + Save _As... + True + True + image5 + False + + + + + + + _Export to PDF + True + True + image9 + False + + + + + + + True + + + + + True + shouldnotseeme + True + + + + + + True + shouldnotseeme + True + + + + + + True + shouldnotseeme + True + + + + + + True + + + + + gtk-quit + True + True + True + + + + + + + + + + + True + _Edit + True + + + True + + + gtk-undo + True + True + True + + + + + + + gtk-redo + True + True + True + + + + + + + True + + + + + gtk-cut + True + 1 + True + True + + + + + + + gtk-copy + True + True + True + + + + + + + gtk-paste + True + True + True + + + + + + + gtk-delete + True + True + True + + + + + + True + + + + + gtk-select-all + True + True + True + + + + + + + True + + + + + gtk-preferences + True + True + True + + + + + + + + + + True + _View + True + + + True + + + True + _Statusbar + True + + + + + + True + _Toolbar + True + + + + + + True + _Right Pane + True + + + + + + True + + + + + True + _Fullscreen + True + + + + + + + + + + + True + _Search + True + + + True + + + gtk-find-and-replace + True + True + True + + + + + + + True + Find Ne_xt + True + + + + + + + True + Find Pre_vious + True + + + + + + + + + + + True + _Tools + True + + + True + + + _Insert Bibliography + True + True + image8 + False + + + + + + _Compile Bibliography + True + True + image3 + False + + + + + + True + + + + + _Document Statistics + True + True + image6 + False + + + + + + True + + + + + True + _Autocheck Spelling + True + + + + + + + + + + True + _Help + True + + + True + + + Check _Updates + True + True + image1 + False + + + + + + gtk-about + True + True + True + + + + + + + + + + False + 0 + + + + + True + True + + + True + icons + + + True + Create a new document + toolbutton1 + True + gtk-new + + + + False + True + + + + + True + Load a file + True + Open + True + gtk-open + + + + False + True + + + + + True + Save the current file + True + Save + True + gtk-save + + + + False + True + + + + + True + Export to PDF + True + Export to PDF + True + application-pdf + + + + False + True + + + + + True + + + False + True + + + + + True + Bold text + toolbutton5 + True + format-text-bold + + + + False + True + + + + + True + Italic text + toolbutton6 + True + format-text-italic + + + + False + True + + + + + True + Underline text + toolbutton7 + True + format-text-underline + + + + False + True + + + + + True + + + False + True + + + + + True + Align left + toolbutton1 + True + format-justify-left + + + + False + True + + + + + True + Center text + toolbutton2 + True + format-justify-center + + + + False + True + + + + + True + Align right + toolbutton3 + True + format-justify-right + + + + False + True + + + + + True + + + False + True + + + + + 0 + + + + + True + icons + False + 2 + + + True + toolbutton2 + True + gtk-media-pause + + + + False + True + + + + + True + Error status for +active document + toolbutton5 + True + gtk-yes + + + False + True + + + + + False + 1 + + + + + False + 1 + + + + + True + + + 200 + True + + + True + True + True + True + automatic + automatic + + + + + + 0 + + + + + True + bottom + 0 + 5 + 0 + True + + + + True + + + + + + + + True + + + + False + + + + + True + + + + + + 1 + + + + + True + Image + + + 1 + False + + + + + True + + + + + + 2 + + + + + True + Table + + + 2 + False + + + + + True + + + + + + 3 + + + + + True + Matrix + + + 3 + False + + + + + False + 1 + + + + + True + False + + + + + True + True + + + True + True + 0 + + + True + + + True + True + automatic + automatic + True + + + True + + + True + + + + + + + 0 + + + + + True + + + True + False + Previous + True + gtk-go-back + + + + False + True + + + + + True + False + Next + True + gtk-go-forward + + + + False + True + + + + + True + + + False + + + + + True + + + True + 6 + + + 50 + True + True + + 6 + 0 + 0.5 + + + 0 + + + + + True + of 0 + + + 1 + + + + + + + False + + + + + True + + + False + + + + + True + + + 125 + True + zoomcombo_model + 1 + + + + + 0 + + + + + + + False + + + + + False + 1 + + + + + + + True + Preview Pane + + + False + + + + + True + True + 4 + automatic + automatic + + + True + queue + + + True + True + False + False + + + + + + + 1 + + + + + True + Error output + + + 1 + False + + + + + True + 4 + queue + + + True + + + True + + + True + + + True + Filename: + + + + + + + 0 + + + + + True + none + + + 1 + + + + + True + References: + + + + + + 2 + + + + + True + N/A + + + 3 + + + + + 0 + + + + + 100 + True + spread + + + gtk-refresh + True + False + False + True + + + + False + False + 0 + + + + + Compile + True + False + True + image2 + + + + False + False + 1 + + + + + 1 + + + + + False + 0 + + + + + True + 5 + + + 20 + True + 0.02 + no bibliography file detected + bibprogressmon + + + 5 + 0 + + + + + False + 1 + + + + + True + True + automatic + automatic + + + True + True + list_biblios + + + + True + fixed + 200 + title + True + True + descending + + + + + 1 + + + + + + + True + fixed + 100 + author + True + True + descending + + + + + 2 + + + + + + + True + fixed + 50 + year + True + descending + + + + + 3 + + + + + + + + + 2 + + + + + True + + + True + filter: + + + False + 5 + 0 + + + + + True + True + + + + 5 + 1 + + + + + False + 5 + 3 + + + + + + + 2 + + + + + True + Bibliography + + + 2 + False + + + + + 0 + + + + + True + False + + + + + 2 + + + + + True + True + 2 + + + False + 3 + + + + + + diff --git a/data/icon.png b/data/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..a4f9d09b3349c9fa63644967264af1d015d51d6a GIT binary patch literal 1688 zcmV;J250$+P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iXT5 z0VoyN^ps-&000?uMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HM@dakSAh-}000H^Nklm`W|oKuHs@!4&9#FmvbLd(Pg=hdW$n$md?)k`P){8^& zA*0u=Fe1SRdR2`GWFbH@QcS2S76DPT&%#6z2a<$H;?-x~vbSHU{%~UI#BK#Rd1}(_ z-17mE=&0*RtSjz0 z{dZH>5lu?37l~1@Bs}o#ZLHid3V@2@1VHgV15vJ77!*vE`fE{S9C_*#v;XN1Ah+(m zfky5LA;&N>pY?V0p4c^ZK5+9qs2?tiMxJMVf97rYLBR>c1RmkoAI~nT>dkkoV`jEP zSrl|Dp?^$kMx6v0*9RDMnwTzFCn49*J1$C&-oQ?jmmh#@7s!`+~W- zE=3~;QSvM!M#HJ6(agB%Lo3PifOi2W4t0J$85V&IuY#pSr`@}*Pc=szRn?`DwU}+s z(P|dNWHj;yRUPpmLsan2;haZmBZM5Ue!g`LLf7Z!At2Vh4m3Jk(4MQAn`={+L$v2Q z)NNt<@?}7AI)_J5rz~4Jfy)$0LI^pLWQ*%48Ff{Y=l(j-rHfrg#u_9OW@cs>pBQJ~ zw+?aU#DzuY#+H@rdv-7NTp}i+(QII(v@q)=_>3&iDaRVPpoj&qu+>?1na2d`VMWY4SA`me~dcB&gneo0Y%NK$E^~OakC2F8f z##mW${@gU}=|s0vFPI!cmS=dMQTQf#qXiHbCWEO8-aC4oiu=BP%OcRr&z)q+k^*l+ zGU!BOxG1PPJ+K8sC_&aN$TLSHE679h|3MairenHfxJ)-?K=v<;UE2# zvy;=@_OXqOEi1VEPKT#o`ZJS%KQl14p1e%B*$Mm%WE&3=IHOI`t8OkBV#RYxpN~QzH1Ag`rHmId4d%*nx3JMGwPNP z7}vTty-r2di>L@r9o`4LcZe$YK71?pKXN;BS8J>?GM7_i1tVjlNOE{{bUPJ|ynwbc zF|mrg*<@|LdZ3^JY`Sq{ocznb&8b7h^}VViy>3O_tx4UQIFo2)8NLn)t literal 0 HcmV?d00001 diff --git a/data/letter.png b/data/letter.png new file mode 100755 index 0000000000000000000000000000000000000000..1c75642754cf3700873a1de81a46d9f7e3eddabd GIT binary patch literal 1600 zcmV-G2EX}k7RCwC7SAA$zWf=dRkIj4C)TuYy zrVZ!4yLW*)tj!cP-IS8eP?1T2iJD@TB1I7-^hcy12@$h&nU){m1p7iarEJsXhME{g zq?1ki(2Zo7+03@PbKaikeb3qb+OC`Ef#=@$<9UA1^FCkiIhqgxnxF}4`wpM1@wlvbR1-dO;5~NJzm_iH9K%2Y%-F(YAs!5R~kK)8v8PN4Xw0oD(3LCcFiJ9|n!g7j| zu^98{`>(gh`ZLi0ec86USEfxEx25XHIk}KZC#Nvt>GGQc_JHB=Tb4k1`QrM_{KD5h zT~qvCbiar`j=8Mz^S+w%Gu-R732=X`3_Z{(f}s}NB38f2Mh%Ag0!b9BQ&KL)q5+E7tEJyYQCL# zLI@NVg9=AtFfU_1Q#cwqBhwe^q-)oz=?mF5*8s0>4w^TSl>dB#l%^;*3daBr`}}3A zWe6BlqB`zfuza=R6)H&=EPs)5fZX1#JknF5M2yWkSeIKBZU{VVWfuvZy3mG#Ap~IC z5{L~*B|5ab5*Himak1gJT&vzwiA$&I)mr0m$#a<2nrPnCSSRO9(ir+-OvYv%PV@6b zH=^k$u=I4uW@~XgZS6eaJr(t3+8|}AM5}GOM)V8fo!)3{Hd3rnI0nOpDy49L5 z4fyd=E6%hF5TvkBPRR8V?BBT^dHxV4%_x?JdP#P3%|$#{I!$8RcJHlN zdSK&{BK&k+ov!u9ZT#8RhIO+8_^UHgFY=^NUeR0+M3G#Rz`$^78x`L+V`NqqvPY!J z(i}eu*sw3+f!MAhRKhX981h}}&G5qSt`YH`;aoC&f(f}kocN&wTWedew#1JvTP0Qn&6}?O8v_&?H5luncvz-G zn3zczvMDjXmY_e;08@*O4>0?&v8XxSj1Ov?@p4H3+v-|ygF^Dwq6t0m`6JupN))6V&z@jsDQ@4r9YtI_*JCqMxyp!Yr#ugm@``ULnTB}qWRYK5<>rHoyVIO_k9nAvWqQNX zL=pq|;R-OE_G{AEPe5D0Zboiq24+kgtr8Ux9+x!7zs$qDEW@&96rSuINMe9+FBVM+ zJdzIVs=tEVtYIkd`((p`i15S{oTkLQEW@&l!B{R&@(?&l$hTP5U|=@^6b3Uf$^Vda zu@>*rUPyBihhAl}wMo}meStGovEVV?p_eJjeBFi!c zV=<;_L?vXeIY3ew)Ie&^w_@(&xyTys?Rf|6%k6!J!|9rg!B~vR*hm%vo*X^biYeqe z5A|)%SiK)^?~8ON>luqN8Cy@*2iQGxCS}t*oRd&G?#m-{i*6;xjt@bP0sQ_hFX+^J z`M~Sv2c`28U_@CFF+j6BUfq2*oj*Xt12RDM4+^c_b=B>+?sc3&WB#TaKA`WqdwbZy y^m2w@i2imB;P;(06@Ul+@X5P~_&N>$FTem}s)tn^yjObw0000 + + + + + Gummi Preferences + False + True + center-on-parent + icon.png + + + True + vertical + + + True + True + 10 + 3 + + + True + 5 + vertical + + + True + 0 + Text wrapping: + + + + + + False + False + 5 + 0 + + + + + Enable text wrapping + True + True + False + True + + + + False + 5 + 1 + + + + + Do not split words over two lines + True + True + False + True + + + + False + 5 + 2 + + + + + True + 0 + Line numbers: + + + + + + False + False + 5 + 3 + + + + + Display line numbers + True + True + False + True + + + + False + 5 + 4 + + + + + True + 0 + Highlighting: + + + + + + False + False + 5 + 5 + + + + + Highlight current line + True + True + False + True + + + + False + 5 + 6 + + + + + + + True + View + + + False + + + + + True + 5 + vertical + True + + + True + + + True + 0 + Editor font: + + + + + + False + False + 5 + 0 + + + + + + + + 0 + + + + + True + + + 300 + True + True + True + + + + False + 0 + + + + + + + + 1 + + + + + True + + + True + 0 + File saving: + + + + + + False + False + 5 + 0 + + + + + + + + 2 + + + + + True + + + _Autosave files every + True + True + False + True + True + + + + False + 5 + 0 + + + + + True + True + + 0.5 + autosave_time + + + + False + 5 + 1 + + + + + True + minutes + + + False + 5 + 2 + + + + + 3 + + + + + True + + + True + 0 + Spell check language: + + + + + + False + False + 5 + 0 + + + + + + + + 4 + + + + + True + + + True + list_languages + + + + + 0 + + + + + 0 + + + + + + + + 5 + + + + + True + + + + + + + + + 6 + + + + + 1 + + + + + True + Editor + + + 1 + False + + + + + True + True + automatic + automatic + + + True + True + + + + + 2 + + + + + True + Default Text + + + 2 + False + + + + + True + 5 + vertical + True + + + True + + + True + 0 + Typesetter command: + + + + + + False + False + 5 + 0 + + + + + + + + 0 + + + + + True + + + True + list_typesetters + 0 + + + + + 0 + + + + + 0 + + + + + + + + 1 + + + + + + + + True + + + True + 0 + PDF Compiling: + + + + + + False + False + 5 + 0 + + + + + + + + 3 + + + + + True + + + True + True + False + True + True + + + + False + 11 + 0 + + + + + True + list_compilescheme + 0 + + + + + 0 + + + + + False + 1 + + + + + True + True + + 0.5 + pdfcompile_time + + + + False + 10 + 2 + + + + + True + seconds + + + False + 5 + 3 + + + + + 4 + + + + + True + + + + + + + + + 5 + + + + + True + + + True + 0.80000001192092896 + gtk-dialog-warning + + + 0 + + + + + True + 0.10000000149011612 + Changes will become active on next start + + + 1 + + + + + 6 + + + + + 3 + + + + + True + PDF Compiling + + + 3 + False + + + + + 0 + + + + + True + 10 + 10 + end + + + _Reset defaults + True + True + True + image1 + True + + + + False + False + 0 + + + + + gtk-close + True + True + True + True + True + + + + False + False + 1 + + + + + False + False + 1 + + + + + + + 10 + 1 + 60 + 1 + 10 + + + 1.0000000002235174 + 1 + 60 + 1 + 10 + + + + + + + + + None + + + + + True + gtk-clear + + + + + + + + + pdflatex + + + xelatex + + + + + + + + + + + compile when idle for + + + compile every + + + + diff --git a/data/report.png b/data/report.png new file mode 100755 index 0000000000000000000000000000000000000000..08c8e1ecf69643e3fe0af0dc82d845f3198803d3 GIT binary patch literal 1375 zcmV-l1)%zgP)Nm&A<^W zXnI38f5%ND1m~Kl0$ZhijSi+hl zASO~=T3iZ!BR_ya1ZWoMf&_qJ$XmP;8-_}ej!bQ8FyRf#1(#PO0Prg~D*#y3H2{VM z9~@|hYt}~CzHO@)3>SfEo%NAme1}xM74K#ZG0zQue z(8z=wlmOi&^?1eYPAov5;M2fQaH!)rR5g48j!y%^ zRk_vz6+0a90yW#=jKJYY#Fq+6150aw<nf8_&@IM;|!+`B4}fJFlphB4jEBTFs`WprwWKo`85f2EDyK zvMqvIh{co+y1zKC24U$c_&?ASs#nUQA*vSQs41{xLYx}hD{0lEa z@=ph>3=0>l`@l=6f!EvPFwaalb!y1dfU;st3N2IoK5}(lF3n7T_b)Qx`9MJXH$@V8 zeE_3RPF{xbA8)8!>zMxB154*Fb3!chJIih5`St?xfv@^b!vYjRMdc>BnRtR(ZXaIL z)|~sWJCWdft*zqhnf|HW5B>_pBVDkix?1i9LYue19Qehw-kQA`xBvq0G&WXL)o!af zIDRL*(*7k>Z?1$?%JI&D^l6%DM_W&&{ygt_03RG2{tl+D&+294T9;bOg&a$n>qe_- zU}KSh(bFfuDcJ<~-gCE-zo!8x5CE*KfwpL?82YAvs=j;%O0OhfOH~yf#Z#C9#}l;c zXzQ)=Jh{@DaBowi^nsV#5(7I?12og4S0)g(k-nmU92; zHei|1u&+lR!3usCBqj}*^@QnCtV=Q0`>>Y!1bVZJ(CMDQdLtV^0BezcZDR266-xKq haxbU. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +case $1 in + '') + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: + depmode Dependency tracking mode. + source Source file read by `PROGRAMS ARGS'. + object Object file output by `PROGRAMS ARGS'. + DEPDIR directory where to store dependencies. + depfile Dependency file to output. + tmpdepfile Temporary file to use when outputing dependencies. + libtool Whether libtool is used (yes/no). + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "depcomp $scriptversion" + exit $? + ;; +esac + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=${depfile-`echo "$object" | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +cygpath_u="cygpath -u -f -" +if test "$depmode" = msvcmsys; then + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u="sed s,\\\\\\\\,/,g" + depmode=msvisualcpp +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon +## the command line argument order; so add the flags where they +## appear in depend2.am. Note that the slowdown incurred here +## affects only configure: in makefiles, %FASTDEP% shortcuts this. + for arg + do + case $arg in + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; + *) set fnord "$@" "$arg" ;; + esac + shift # fnord + shift # $arg + done + "$@" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the `deleted header file' problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' ' +' < "$tmpdepfile" | +## Some versions of gcc put a space before the `:'. On the theory +## that the space means something, we add a space to the output as +## well. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like `#:fec' to the end of the + # dependency line. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr ' +' ' ' >> "$depfile" + echo >> "$depfile" + + # The second pass generates a dummy entry for each header file. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts `$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.u + tmpdepfile2=$base.u + tmpdepfile3=$dir.libs/$base.u + "$@" -Wc,-M + else + tmpdepfile1=$dir$base.u + tmpdepfile2=$dir$base.u + tmpdepfile3=$dir$base.u + "$@" -M + fi + stat=$? + + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +icc) + # Intel's C compiler understands `-MD -MF file'. However on + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c + # ICC 7.0 will fill foo.d with something like + # foo.o: sub/foo.c + # foo.o: sub/foo.h + # which is wrong. We want: + # sub/foo.o: sub/foo.c + # sub/foo.o: sub/foo.h + # sub/foo.c: + # sub/foo.h: + # ICC 7.1 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using \ : + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h', + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | + sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp2) + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 + # compilers, which have integrated preprocessors. The correct option + # to use with these is +Maked; it writes dependencies to a file named + # 'foo.d', which lands next to the object file, wherever that + # happens to be. + # Much of this is similar to the tru64 case; see comments there. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + if test "$libtool" = yes; then + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir.libs/$base.d + "$@" -Wc,+Maked + else + tmpdepfile1=$dir$base.d + tmpdepfile2=$dir$base.d + "$@" +Maked + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" + # Add `dependent.h:' lines. + sed -ne '2,${ + s/^ *// + s/ \\*$// + s/$/:/ + p + }' "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" "$tmpdepfile2" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in `foo.d' instead, so we check for that too. + # Subdirectories are respected. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + + if test "$libtool" = yes; then + # With Tru64 cc, shared objects can also be used to make a + # static library. This mechanism is used in libtool 1.4 series to + # handle both shared and static libraries in a single compilation. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. + # + # With libtool 1.5 this exception was removed, and libtool now + # generates 2 separate objects for the 2 libraries. These two + # compilations output dependencies in $dir.libs/$base.o.d and + # in $dir$base.o.d. We have to check for both files, because + # one of the two compilations can be disabled. We should prefer + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is + # automatically cleaned when .libs/ is deleted, while ignoring + # the former would cause a distcleancheck panic. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 + tmpdepfile2=$dir$base.o.d # libtool 1.5 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 + "$@" -Wc,-MD + else + tmpdepfile1=$dir$base.o.d + tmpdepfile2=$dir$base.d + tmpdepfile3=$dir$base.d + tmpdepfile4=$dir$base.d + "$@" -MD + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for `:' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. + "$@" $dashmflag | + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' ' +' < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no eat=no + for arg + do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + if test $eat = yes; then + eat=no + continue + fi + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -arch) + eat=yes ;; + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix=`echo "$object" | sed 's/^.*\././'` + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + sed '1,2d' "$tmpdepfile" | tr ' ' ' +' | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E | + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test "X$1" != 'X--mode=compile'; do + shift + done + shift + fi + + IFS=" " + for arg + do + case "$arg" in + -o) + shift + ;; + $object) + shift + ;; + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E 2>/dev/null | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + echo " " >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvcmsys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/dev/chver.sh b/dev/chver.sh new file mode 100755 index 00000000..db55d02f --- /dev/null +++ b/dev/chver.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +sed -i "s/AC_INIT(\([^,]*\), \[\([a-zA-Z0-9.-~]*\)*\], \(.*$\)/AC_INIT(\1, [$1], \3/g" configure.ac +autoreconf diff --git a/dev/control b/dev/control new file mode 100644 index 00000000..972d29e7 --- /dev/null +++ b/dev/control @@ -0,0 +1,13 @@ +Source: gummi-beta +Section: misc +Priority: extra +Maintainer: Wei-Ning Huang (AZ) +Build-Depends: cdbs, debhelper (>= 7), autotools-dev, libgtk2.0-dev, libglib2.0-dev, libpoppler-dev, libpoppler-glib-dev, libgtksourceview2.0-dev, libgtkspell-dev +Standards-Version: 3.8.3 +Homepage: http://gummi.midnightcoding.org/ + +Package: gummi-beta +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libgtk2.0-0, libglib2.0-0, libgtksourceview2.0-0, libgtkspell0, libpoppler5, libpoppler-glib4 +Description: Simple LaTeX editor for Linux + Gummi is a simple light-weight LaTeX editor for GTK+ users written in C. diff --git a/install-sh b/install-sh new file mode 100755 index 00000000..6781b987 --- /dev/null +++ b/install-sh @@ -0,0 +1,520 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2009-04-28.21; # UTC + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +nl=' +' +IFS=" "" $nl" + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit=${DOITPROG-} +if test -z "$doit"; then + doit_exec=exec +else + doit_exec=$doit +fi + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_glob='?' +initialize_posix_glob=' + test "$posix_glob" != "?" || { + if (set -f) 2>/dev/null; then + posix_glob= + else + posix_glob=: + fi + } +' + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +no_target_directory= + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve the last data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -s $stripprog installed files. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *' '* | *' +'* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -s) stripcmd=$stripprog;; + + -t) dst_arg=$2 + shift;; + + -T) no_target_directory=true;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call `install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + trap '(exit $?); exit' 1 2 13 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names starting with `-'. + case $src in + -*) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + + dst=$dst_arg + # Protect names starting with `-'. + case $dst in + -*) dst=./$dst;; + esac + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dst=$dstdir/`basename "$src"` + dstdir_status=0 + else + # Prefer dirname, but fall back on a substitute if dirname fails. + dstdir=` + (dirname "$dst") 2>/dev/null || + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$dst" : 'X\(//\)[^/]' \| \ + X"$dst" : 'X\(//\)$' \| \ + X"$dst" : 'X\(/\)' \| . 2>/dev/null || + echo X"$dst" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q' + ` + + test -d "$dstdir" + dstdir_status=$? + fi + fi + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # Create intermediate dirs using mode 755 as modified by the umask. + # This is like FreeBSD 'install' as of 1997-10-28. + umask=`umask` + case $stripcmd.$umask in + # Optimize common cases. + *[2367][2367]) mkdir_umask=$umask;; + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + + *[0-7]) + mkdir_umask=`expr $umask + 22 \ + - $umask % 100 % 40 + $umask % 20 \ + - $umask % 10 % 4 + $umask % 2 + `;; + *) mkdir_umask=$umask,go-w;; + esac + + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + case $umask in + *[123567][0-7][0-7]) + # POSIX mkdir -p sets u+wx bits regardless of umask, which + # is incompatible with FreeBSD 'install' when (umask & 300) != 0. + ;; + *) + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 + + if (umask $mkdir_umask && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writeable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + ls_ld_tmpdir=`ls -ld "$tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/d" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null + fi + trap '' 0;; + esac;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # The umask is ridiculous, or mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + -*) prefix='./';; + *) prefix='';; + esac + + eval "$initialize_posix_glob" + + oIFS=$IFS + IFS=/ + $posix_glob set -f + set fnord $dstdir + shift + $posix_glob set +f + IFS=$oIFS + + prefixes= + + for d + do + test -z "$d" && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask=$mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + + eval "$initialize_posix_glob" && + $posix_glob set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + $posix_glob set +f && + + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd -f "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/missing b/missing new file mode 100755 index 00000000..28055d2a --- /dev/null +++ b/missing @@ -0,0 +1,376 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. + +scriptversion=2009-04-28.21; # UTC + +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, +# 2008, 2009 Free Software Foundation, Inc. +# Originally by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +run=: +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' +sed_minuso='s/.* -o \([^ ]*\).*/\1/p' + +# In the cases where this matters, `missing' is being run in the +# srcdir already. +if test -f configure.ac; then + configure_ac=configure.ac +else + configure_ac=configure.in +fi + +msg="missing on your system" + +case $1 in +--run) + # Try to run requested program, and just exit if it succeeds. + run= + shift + "$@" && exit 0 + # Exit code 63 means version mismatch. This often happens + # when the user try to use an ancient version of a tool on + # a file that requires a minimum version. In this case we + # we should proceed has if the program had been absent, or + # if --run hadn't been passed. + if test $? = 63; then + run=: + msg="probably too old" + fi + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + --run try to run the given command, and emulate it if it fails + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + autom4te touch the output file, or create a stub one + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + help2man touch the output file + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + tar try tar, gnutar, gtar, then tar without non-portable flags + yacc create \`y.tab.[ch]', if possible, from existing .[ch] + +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and +\`g' are ignored when checking the name. + +Send bug reports to ." + exit $? + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit $? + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + +esac + +# normalize program name to check for. +program=`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + +# Now exit if we have it, but it failed. Also exit now if we +# don't have it and --version was passed (most likely to detect +# the program). This is about non-GNU programs, so use $1 not +# $program. +case $1 in + lex*|yacc*) + # Not GNU programs, they don't have --version. + ;; + + tar*) + if test -n "$run"; then + echo 1>&2 "ERROR: \`tar' requires --run" + exit 1 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then + exit 1 + fi + ;; + + *) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then + # Could not run --version or --help. This is probably someone + # running `$TOOL --version' or `$TOOL --help' to check whether + # $TOOL exists and not knowing $TOOL uses missing. + exit 1 + fi + ;; +esac + +# If it does not exist, or fails to run (possibly an outdated version), +# try to emulate it. +case $program in + aclocal*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acinclude.m4' or \`${configure_ac}'. You might want + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`${configure_ac}'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acconfig.h' or \`${configure_ac}'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` + test -z "$files" && files="config.h" + touch_files= + for f in $files; do + case $f in + *:*) touch_files="$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files="$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + autom4te*) + echo 1>&2 "\ +WARNING: \`$1' is needed, but is $msg. + You might have modified some files without having the + proper tools for further handling them. + You can get \`$1' as part of \`Autoconf' from any GNU + archive site." + + file=`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo "#! /bin/sh" + echo "# Created by GNU Automake missing as a replacement of" + echo "# $ $@" + echo "exit 0" + chmod +x $file + exit 1 + fi + ;; + + bison*|yacc*) + echo 1>&2 "\ +WARNING: \`$1' $msg. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if test $# -ne 1; then + eval LASTARG="\${$#}" + case $LASTARG in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if test ! -f y.tab.h; then + echo >y.tab.h + fi + if test ! -f y.tab.c; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex*|flex*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if test $# -ne 1; then + eval LASTARG="\${$#}" + case $LASTARG in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if test ! -f lex.yy.c; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + help2man*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a dependency of a manual page. You may need the + \`Help2man' package in order for those modifications to take + effect. You can get \`Help2man' from any GNU archive site." + + file=`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo ".ab help2man is required to generate this page" + exit $? + fi + ;; + + makeinfo*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + # The file to touch is that specified with -o ... + file=`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` + if test -z "$file"; then + # ... or it is the one specified with @setfilename ... + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n ' + /^@setfilename/{ + s/.* \([^ ]*\) *$/\1/ + p + q + }' $infile` + # ... or it is derived from the source name (dir/f.texi becomes f.info) + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info + fi + # If the file does not exist, the user really needs makeinfo; + # let's fail without touching anything. + test -f $file || exit 1 + touch $file + ;; + + tar*) + shift + + # We have already tried tar in the generic part. + # Look for gnutar/gtar before invocation to avoid ugly error + # messages. + if (gnutar --version > /dev/null 2>&1); then + gnutar "$@" && exit 0 + fi + if (gtar --version > /dev/null 2>&1); then + gtar "$@" && exit 0 + fi + firstarg="$1" + if shift; then + case $firstarg in + *o*) + firstarg=`echo "$firstarg" | sed s/o//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + case $firstarg in + *h*) + firstarg=`echo "$firstarg" | sed s/h//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + fi + + echo 1>&2 "\ +WARNING: I can't seem to be able to run \`tar' with the given arguments. + You may want to install GNU tar or Free paxutils, or check the + command line arguments." + exit 1 + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and is $msg. + You might have modified some files without having the + proper tools for further handling them. Check the \`README' file, + it often tells you about the needed prerequisites for installing + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/po/Makefile.in.in b/po/Makefile.in.in new file mode 100644 index 00000000..cc8a2227 --- /dev/null +++ b/po/Makefile.in.in @@ -0,0 +1,217 @@ +# Makefile for program source directory in GNU NLS utilities package. +# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper +# Copyright (C) 2004-2008 Rodney Dawes +# +# This file may be copied and used freely without restrictions. It may +# be used in projects which are not available under a GNU Public License, +# but which still want to provide support for the GNU gettext functionality. +# +# - Modified by Owen Taylor to use GETTEXT_PACKAGE +# instead of PACKAGE and to look for po2tbl in ./ not in intl/ +# +# - Modified by jacob berkman to install +# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize +# +# - Modified by Rodney Dawes for use with intltool +# +# We have the following line for use by intltoolize: +# INTLTOOL_MAKEFILE + +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +PACKAGE = @PACKAGE@ +VERSION = @VERSION@ + +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +top_builddir = @top_builddir@ +VPATH = @srcdir@ + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +datadir = @datadir@ +datarootdir = @datarootdir@ +libdir = @libdir@ +DATADIRNAME = @DATADIRNAME@ +itlocaledir = $(prefix)/$(DATADIRNAME)/locale +subdir = po +install_sh = @install_sh@ +# Automake >= 1.8 provides @mkdir_p@. +# Until it can be supposed, use the safe fallback: +mkdir_p = $(install_sh) -d + +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ + +GMSGFMT = @GMSGFMT@ +MSGFMT = @MSGFMT@ +XGETTEXT = @XGETTEXT@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist +GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot + +ALL_LINGUAS = @ALL_LINGUAS@ + +PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) + +USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) + +USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) + +POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) + +DISTFILES = Makefile.in.in POTFILES.in $(POFILES) +EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS + +POTFILES = \ +# This comment gets stripped out + +CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) + +.SUFFIXES: +.SUFFIXES: .po .pox .gmo .mo .msg .cat + +.po.pox: + $(MAKE) $(GETTEXT_PACKAGE).pot + $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox + +.po.mo: + $(MSGFMT) -o $@ $< + +.po.gmo: + file=`echo $* | sed 's,.*/,,'`.gmo \ + && rm -f $$file && $(GMSGFMT) -o $$file $< + +.po.cat: + sed -f ../intl/po2msg.sed < $< > $*.msg \ + && rm -f $@ && gencat $@ $*.msg + + +all: all-@USE_NLS@ + +all-yes: $(CATALOGS) +all-no: + +$(GETTEXT_PACKAGE).pot: $(POTFILES) + $(GENPOT) + +install: install-data +install-data: install-data-@USE_NLS@ +install-data-no: all +install-data-yes: all + linguas="$(USE_LINGUAS)"; \ + for lang in $$linguas; do \ + dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ + $(mkdir_p) $$dir; \ + if test -r $$lang.gmo; then \ + $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ + echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ + else \ + $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ + echo "installing $(srcdir)/$$lang.gmo as" \ + "$$dir/$(GETTEXT_PACKAGE).mo"; \ + fi; \ + if test -r $$lang.gmo.m; then \ + $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ + echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ + else \ + if test -r $(srcdir)/$$lang.gmo.m ; then \ + $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ + $$dir/$(GETTEXT_PACKAGE).mo.m; \ + echo "installing $(srcdir)/$$lang.gmo.m as" \ + "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ + else \ + true; \ + fi; \ + fi; \ + done + +# Empty stubs to satisfy archaic automake needs +dvi info ctags tags CTAGS TAGS ID: + +# Define this as empty until I found a useful application. +install-exec installcheck: + +uninstall: + linguas="$(USE_LINGUAS)"; \ + for lang in $$linguas; do \ + rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ + rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ + done + +check: all $(GETTEXT_PACKAGE).pot + rm -f missing notexist + srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m + if [ -r missing -o -r notexist ]; then \ + exit 1; \ + fi + +mostlyclean: + rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp + rm -f .intltool-merge-cache + +clean: mostlyclean + +distclean: clean + rm -f Makefile Makefile.in POTFILES stamp-it + rm -f *.mo *.msg *.cat *.cat.m *.gmo + +maintainer-clean: distclean + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + rm -f Makefile.in.in + +distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) +dist distdir: $(DISTFILES) + dists="$(DISTFILES)"; \ + extra_dists="$(EXTRA_DISTFILES)"; \ + for file in $$extra_dists; do \ + test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ + done; \ + for file in $$dists; do \ + test -f $$file || file="$(srcdir)/$$file"; \ + ln $$file $(distdir) 2> /dev/null \ + || cp -p $$file $(distdir); \ + done + +update-po: Makefile + $(MAKE) $(GETTEXT_PACKAGE).pot + tmpdir=`pwd`; \ + linguas="$(USE_LINGUAS)"; \ + for lang in $$linguas; do \ + echo "$$lang:"; \ + result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ + if $$result; then \ + if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ + rm -f $$tmpdir/$$lang.new.po; \ + else \ + if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ + :; \ + else \ + echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ + rm -f $$tmpdir/$$lang.new.po; \ + exit 1; \ + fi; \ + fi; \ + else \ + echo "msgmerge for $$lang.gmo failed!"; \ + rm -f $$tmpdir/$$lang.new.po; \ + fi; \ + done + +Makefile POTFILES: stamp-it + @if test ! -f $@; then \ + rm -f stamp-it; \ + $(MAKE) stamp-it; \ + fi + +stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in + cd $(top_builddir) \ + && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ + $(SHELL) ./config.status + +# Tell versions [3.59,3.63) of GNU make not to export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/po/Makevars b/po/Makevars new file mode 100644 index 00000000..895bebda --- /dev/null +++ b/po/Makevars @@ -0,0 +1,41 @@ +# Makefile variables for PO directory in any package using GNU gettext. + +# Usually the message domain is the same as the package name. +DOMAIN = $(PACKAGE) + +# These two variables depend on the location of this directory. +subdir = po +top_builddir = .. + +# These options get passed to xgettext. +XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ + +# This is the copyright holder that gets inserted into the header of the +# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding +# package. (Note that the msgstr strings, extracted from the package's +# sources, belong to the copyright holder of the package.) Translators are +# expected to transfer the copyright for their translations to this person +# or entity, or to disclaim their copyright. The empty string stands for +# the public domain; in this case the translators are expected to disclaim +# their copyright. +COPYRIGHT_HOLDER = Gummi-Dev Team + +# This is the email address or URL to which the translators shall report +# bugs in the untranslated strings: +# - Strings which are not entire sentences, see the maintainer guidelines +# in the GNU gettext documentation, section 'Preparing Strings'. +# - Strings which use unclear terms or require additional context to be +# understood. +# - Strings which make invalid assumptions about notation of date, time or +# money. +# - Pluralisation problems. +# - Incorrect English spelling. +# - Incorrect formatting. +# It can be your email address, or a mailing list address where translators +# can write to without being subscribed, or the URL of a web page through +# which the translators can contact you. +MSGID_BUGS_ADDRESS = $(PACKAGE BUGREPORT) + +# This is the list of locale categories, beyond LC_MESSAGES, for which the +# message catalogs shall be used. It is usually empty. +EXTRA_LOCALE_CATEGORIES = diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 00000000..42e3a0bb --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,9 @@ +# List of source files which contain translatable strings. +data/gummi.glade +data/prefs.glade +src/editor.c +src/gui.c +src/importer.c +src/iofunctions.c +src/updatecheck.c +src/utils.c diff --git a/po/ca_ES.po b/po/ca_ES.po new file mode 100644 index 00000000..ca5672f6 --- /dev/null +++ b/po/ca_ES.po @@ -0,0 +1,705 @@ +# # Gummi Translation for ca_ES +# # Copyright (C) Marc Vinyals 2010 +# # This file is distributed under the same license as the Gummi package. +# # Marc Vinyals , 2010. +# Marc Vinyals , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: 0.4.8\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-09-10 10:02+0800\n" +"PO-Revision-Date: 2010-05-23 14:45+0200\n" +"Last-Translator: Marc Vinyals \n" +"Language-Team: CA \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../data/gummi.glade.h:1 +msgid " " +msgstr " " + +#: ../data/gummi.glade.h:2 +msgid ".." +msgstr ".." + +#: ../data/gummi.glade.h:3 +msgid "0" +msgstr "0" + +#: ../data/gummi.glade.h:5 +#, no-c-format +msgid "100%" +msgstr "100%" + +#: ../data/gummi.glade.h:7 +#, no-c-format +msgid "125%" +msgstr "125%" + +#: ../data/gummi.glade.h:9 +#, no-c-format +msgid "150%" +msgstr "150%" + +#: ../data/gummi.glade.h:11 +#, no-c-format +msgid "200%" +msgstr "200%" + +#: ../data/gummi.glade.h:13 +#, no-c-format +msgid "300%" +msgstr "300%" + +#: ../data/gummi.glade.h:15 +#, no-c-format +msgid "400%" +msgstr "400%" + +#: ../data/gummi.glade.h:17 +#, no-c-format +msgid "50%" +msgstr "50%" + +#: ../data/gummi.glade.h:19 +#, no-c-format +msgid "70%" +msgstr "70%" + +#: ../data/gummi.glade.h:21 +#, no-c-format +msgid "85%" +msgstr "85%" + +#: ../data/gummi.glade.h:22 +msgid "Align center" +msgstr "Alinea amb el centre" + +#: ../data/gummi.glade.h:23 +msgid "Align left" +msgstr "Alinea a l'esquerra" + +#: ../data/gummi.glade.h:24 +msgid "Align right" +msgstr "Alinea a la dreta" + +#: ../data/gummi.glade.h:25 +msgid "" +"Alignment of the\n" +"cell content." +msgstr "Alineació del contingut de la cel·la" + +#: ../data/gummi.glade.h:27 +msgid "Article" +msgstr "Article" + +#: ../data/gummi.glade.h:28 +msgid "Best Fit" +msgstr "Ajustament més adequat" + +#: ../data/gummi.glade.h:29 +msgid "Bibliography" +msgstr "Bibliografia" + +#: ../data/gummi.glade.h:30 +msgid "Bold text" +msgstr "Text en negreta" + +#: ../data/gummi.glade.h:31 +msgid "Book" +msgstr "Llibre" + +#: ../data/gummi.glade.h:32 +msgid "Border all cells" +msgstr "Vora completa" + +#: ../data/gummi.glade.h:33 +msgid "Border outline" +msgstr "Vora exterior" + +#: ../data/gummi.glade.h:34 +msgid "Braces" +msgstr "Claus" + +#: ../data/gummi.glade.h:35 +msgid "Bracket:" +msgstr "Claudàtor:" + +#: ../data/gummi.glade.h:36 +msgid "Brackets" +msgstr "Claudàtors" + +#: ../data/gummi.glade.h:37 +msgid "Caption:" +msgstr "Llegenda:" + +#: ../data/gummi.glade.h:38 +msgid "Center text" +msgstr "Text centrat" + +#: ../data/gummi.glade.h:39 +msgid "Check _Updates" +msgstr "Cerca (_a)ctualitzacions" + +#: ../data/gummi.glade.h:40 +msgid "Columns:" +msgstr "Columnes:" + +#: ../data/gummi.glade.h:41 +msgid "Compile" +msgstr "Compila" + +#: ../data/gummi.glade.h:42 +msgid "Create a new document" +msgstr "Crea un document nou" + +#: ../data/gummi.glade.h:43 +msgid "Create new document.." +msgstr "Crea un document nou.." + +#: ../data/gummi.glade.h:44 +msgid "" +"Determines whether the\n" +"cells have line borders. " +msgstr "Quines cel·les tenen vora." + +#: ../data/gummi.glade.h:46 +msgid "Double line" +msgstr "Línia doble" + +#: ../data/gummi.glade.h:47 +msgid "Error output" +msgstr "Errors" + +#: ../data/gummi.glade.h:48 +msgid "" +"Error status for\n" +"active document" +msgstr "Estat d'error del document actiu" + +#: ../data/gummi.glade.h:50 +msgid "Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:51 +msgid "File:" +msgstr "Fitxer:" + +#: ../data/gummi.glade.h:52 +msgid "Filename:" +msgstr "Nom del fitxer:" + +#: ../data/gummi.glade.h:53 +msgid "Find" +msgstr "Cerca" + +#: ../data/gummi.glade.h:54 +msgid "Find Ne_xt" +msgstr "Cerca la següe(_n)t" + +#: ../data/gummi.glade.h:55 +msgid "Find Pre_vious" +msgstr "Cerca l'an(_t)erior" + +#: ../data/gummi.glade.h:56 +msgid "Fit Page Width" +msgstr "Ajusta a l'amplada de la pàgina" + +#: ../data/gummi.glade.h:57 +msgid "Gummi - LaTeX Editor" +msgstr "Gummi - Editor de LaTeX" + +#: ../data/gummi.glade.h:58 +msgid "Image" +msgstr "Imatge" + +#: ../data/gummi.glade.h:59 +msgid "Italic text" +msgstr "Text en cursiva" + +#: ../data/gummi.glade.h:60 +msgid "Label:" +msgstr "Etiqueta:" + +#: ../data/gummi.glade.h:61 +msgid "Letter" +msgstr "Carta" + +#: ../data/gummi.glade.h:62 +msgid "Load a file" +msgstr "Carrega un fitxer" + +#: ../data/gummi.glade.h:63 +msgid "Match case" +msgstr "Distingeix entre majúscules i minúscules" + +#: ../data/gummi.glade.h:64 +msgid "Match entire word only" +msgstr "Només coincideix la paraula sencera" + +#: ../data/gummi.glade.h:65 +msgid "Matrix" +msgstr "Matriu" + +#: ../data/gummi.glade.h:66 ../src/gui.c:653 +msgid "N/A" +msgstr "N/D" + +#: ../data/gummi.glade.h:67 +msgid "New from _Template" +msgstr "Nou partin(_t) d'una plantilla" + +#: ../data/gummi.glade.h:68 +msgid "Next" +msgstr "Següent" + +#: ../data/gummi.glade.h:69 +msgid "No borders" +msgstr "Sense vores" + +#: ../data/gummi.glade.h:70 +msgid "Open" +msgstr "Obre" + +#: ../data/gummi.glade.h:71 +msgid "Parentheses" +msgstr "Parèntesis" + +#: ../data/gummi.glade.h:72 +msgid "Preview Pane" +msgstr "Previsualització" + +#: ../data/gummi.glade.h:73 +msgid "Previous" +msgstr "Anterior" + +#: ../data/gummi.glade.h:74 +msgid "References:" +msgstr "Referències:" + +#: ../data/gummi.glade.h:75 +msgid "Replace _All" +msgstr "" + +#: ../data/gummi.glade.h:76 +msgid "Replace with:" +msgstr "" + +#: ../data/gummi.glade.h:77 +msgid "Report" +msgstr "Informe" + +#: ../data/gummi.glade.h:78 +msgid "Rows:" +msgstr "Files:" + +#: ../data/gummi.glade.h:79 +msgid "Save" +msgstr "Desa" + +#: ../data/gummi.glade.h:80 +msgid "Save _As..." +msgstr "(_A)nomena i desa..." + +#: ../data/gummi.glade.h:81 +msgid "Save the current file" +msgstr "Desa el fitxer actual" + +#: ../data/gummi.glade.h:82 +msgid "Scale:" +msgstr "Escala:" + +#: ../data/gummi.glade.h:83 +msgid "Search backwards" +msgstr "Cerca cap enrere" + +#: ../data/gummi.glade.h:84 +msgid "Search for:" +msgstr "Cerca:" + +#: ../data/gummi.glade.h:85 +msgid "Single line" +msgstr "Línia simple" + +#: ../data/gummi.glade.h:86 +msgid "Table" +msgstr "Taula" + +#: ../data/gummi.glade.h:87 +msgid "Template options:" +msgstr "Opcions de la plantilla:" + +#: ../data/gummi.glade.h:88 +msgid "Unbracketed" +msgstr "Sense delimitadors" + +#: ../data/gummi.glade.h:89 +msgid "Underline text" +msgstr "Text subratllat" + +#: ../data/gummi.glade.h:90 +msgid "_Autocheck Spelling" +msgstr "Comprova l'ortografia (_a)utomàticament" + +#: ../data/gummi.glade.h:91 +msgid "_Compile Bibliography" +msgstr "(_C)ompila la bibliografia" + +#: ../data/gummi.glade.h:92 +msgid "_Document Statistics" +msgstr "" + +#: ../data/gummi.glade.h:93 +msgid "_Edit" +msgstr "(_E)dita" + +#: ../data/gummi.glade.h:94 +msgid "_Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:95 +msgid "_File" +msgstr "(_F)itxer" + +#: ../data/gummi.glade.h:96 +msgid "_Fullscreen" +msgstr "Pantalla (_s)encera" + +#: ../data/gummi.glade.h:97 +msgid "_Help" +msgstr "A(_j)uda" + +#: ../data/gummi.glade.h:98 +msgid "_Insert Bibliography" +msgstr "(_I)nsereix una bibliografia" + +#: ../data/gummi.glade.h:99 +msgid "_Open..." +msgstr "(_O)bre..." + +#: ../data/gummi.glade.h:100 +msgid "_Replace" +msgstr "" + +#: ../data/gummi.glade.h:101 +msgid "_Right Pane" +msgstr "" + +#: ../data/gummi.glade.h:102 +msgid "_Search" +msgstr "(_C)erca" + +#: ../data/gummi.glade.h:103 +msgid "_Statusbar" +msgstr "Barra d'e(_s)tat" + +#: ../data/gummi.glade.h:104 +msgid "_Toolbar" +msgstr "Barra d'(_e)ines" + +#: ../data/gummi.glade.h:105 +msgid "_Tools" +msgstr "Ei(_n)es" + +#: ../data/gummi.glade.h:106 +msgid "_View" +msgstr "(_V)isualitza" + +#: ../data/gummi.glade.h:107 +msgid "filter:" +msgstr "filtre:" + +#: ../data/gummi.glade.h:108 ../src/gui.c:651 +msgid "no bibliography file detected" +msgstr "no s'ha detectat cap fitxer de bibliografia" + +#: ../data/gummi.glade.h:109 ../src/gui.c:652 +msgid "none" +msgstr "cap" + +#: ../data/gummi.glade.h:110 +msgid "of 0" +msgstr "de 0" + +#: ../data/gummi.glade.h:111 +msgid "shouldnotseeme" +msgstr "shouldnotseeme" + +#: ../data/gummi.glade.h:112 +msgid "toolbutton1" +msgstr "toolbutton1" + +#: ../data/gummi.glade.h:113 +msgid "toolbutton2" +msgstr "toolbutton2" + +#: ../data/gummi.glade.h:114 +msgid "toolbutton3" +msgstr "toolbutton3" + +#: ../data/gummi.glade.h:115 +msgid "toolbutton5" +msgstr "toolbutton5" + +#: ../data/gummi.glade.h:116 +msgid "toolbutton6" +msgstr "toolbutton6" + +#: ../data/gummi.glade.h:117 +msgid "toolbutton7" +msgstr "toolbutton7" + +#: ../data/prefs.glade.h:1 +msgid "Changes will become active on next start" +msgstr "S'aplicaran els canvis la propera sessió" + +#: ../data/prefs.glade.h:2 +msgid "Default Text" +msgstr "Text per defecte" + +#: ../data/prefs.glade.h:3 +msgid "Display line numbers" +msgstr "Mostra els números de línia" + +#: ../data/prefs.glade.h:4 +msgid "Do not split words over two lines" +msgstr "No separis les paraules en dues línies" + +#: ../data/prefs.glade.h:5 +msgid "Editor" +msgstr "Editor" + +#: ../data/prefs.glade.h:6 +msgid "Editor font:" +msgstr "Tipus de lletra de l'editor:" + +#: ../data/prefs.glade.h:7 +msgid "Enable text wrapping" +msgstr "Habilita l'ajustament de text" + +#: ../data/prefs.glade.h:8 +msgid "File saving:" +msgstr "Desat:" + +#: ../data/prefs.glade.h:9 +msgid "Gummi Preferences" +msgstr "Preferències del Gummi" + +#: ../data/prefs.glade.h:10 +msgid "Highlight current line" +msgstr "Ressalta la línia actual" + +#: ../data/prefs.glade.h:11 +msgid "Highlighting:" +msgstr "Ressaltament:" + +#: ../data/prefs.glade.h:12 +msgid "Line numbers:" +msgstr "Números de línia:" + +#: ../data/prefs.glade.h:13 +msgid "None" +msgstr "Cap" + +#: ../data/prefs.glade.h:14 +msgid "PDF Compiling" +msgstr "Compilació a PDF" + +#: ../data/prefs.glade.h:15 +msgid "PDF Compiling:" +msgstr "Compilació a PDF" + +#: ../data/prefs.glade.h:16 +msgid "Spell check language:" +msgstr "Idioma per a la correcció ortogràfica:" + +#: ../data/prefs.glade.h:17 +msgid "Text wrapping:" +msgstr "Tall de línia:" + +#: ../data/prefs.glade.h:18 +msgid "Typesetter command:" +msgstr "Ordre del compilador:" + +#: ../data/prefs.glade.h:19 +msgid "View" +msgstr "Visualització" + +#: ../data/prefs.glade.h:20 +msgid "_Autosave files every" +msgstr "(_D)esa els fitxers automàticament cada" + +#: ../data/prefs.glade.h:21 +msgid "_Reset defaults" +msgstr "(_R)estaura els valors per defecte" + +#: ../data/prefs.glade.h:22 +#, fuzzy +msgid "compile every" +msgstr "(_C)ompila automàticament cada" + +#: ../data/prefs.glade.h:23 +#, fuzzy +msgid "compile when idle for " +msgstr "(_C)ompila automàticament cada" + +#: ../data/prefs.glade.h:24 +msgid "minutes" +msgstr "minuts" + +#: ../data/prefs.glade.h:25 +msgid "pdflatex" +msgstr "pdflatex" + +#: ../data/prefs.glade.h:26 +msgid "seconds" +msgstr "segons" + +#: ../data/prefs.glade.h:27 +msgid "xelatex" +msgstr "xelatex" + +#: ../src/editor.c:375 +msgid "Top reached, search from bottom?" +msgstr "" + +#: ../src/editor.c:382 +msgid "Bottom reached, search from top?" +msgstr "" + +#: ../src/gui.c:223 +#, fuzzy, c-format +msgid "Error loading recent file: %s" +msgstr "S'ha produït un error mentre s'estava carregant el fitxer recent:" + +#: ../src/gui.c:614 +#, fuzzy +msgid "Compiling bibliography file..." +msgstr "S'està compilant la bibliografia.." + +#: ../src/gui.c:616 +msgid "bibliography compiled without errors" +msgstr "s'ha compilat la bibliografia sense errors" + +#: ../src/gui.c:618 +#, fuzzy +msgid "Error compiling bibliography file or none detected..." +msgstr "" +"S'ha produït un error mentre es compilava la bibliografia o no s'ha detectat" + +#: ../src/gui.c:621 +msgid "error compiling bibliography file" +msgstr "s'ha produït un error mentre es compilava la bibliografia" + +#: ../src/gui.c:645 +#, c-format +msgid "%s loaded" +msgstr "" + +#: ../src/gui.c:1074 +msgid "Do you want to save the changes you have made?" +msgstr "Voleu desar els canvis?" + +#: ../src/gui.c:1083 +msgid "Open File..." +msgstr "Obre el fitxer..." + +#: ../src/gui.c:1105 +msgid "Save File..." +msgstr "Desa el fitxer..." + +#: ../src/importer.c:122 +#, c-format +msgid "%s: No such file or directory\n" +msgstr "" + +#: ../src/iofunctions.c:94 +#, fuzzy, c-format +msgid "Saving %s..." +msgstr "(_A)nomena i desa..." + +#: ../src/iofunctions.c:107 +#, c-format +msgid "" +"%s\n" +"Please try again later." +msgstr "" + +#: ../src/iofunctions.c:146 +msgid "Can not convert text to UTF-8!\n" +msgstr "" + +#: ../src/iofunctions.c:176 +#, fuzzy, c-format +msgid "Autosaving file %s" +msgstr "S'està desant el fitxer" + +#: ../src/updatecheck.c:113 +#, fuzzy, c-format +msgid "" +"Currently installed:\n" +"%s\n" +"\n" +"Currently available:\n" +"%s" +msgstr "" +"\n" +"\n" +"Versió disponible:\n" + +#: ../src/utils.c:88 +#, c-format +msgid "" +"\n" +"Gummi has encountered a serious error and require restart, your can find " +"your file in the %s directory\n" +msgstr "" + +#: ../src/utils.c:128 +#, fuzzy +msgid "Confirmation" +msgstr "Llegenda:" + +#~ msgid "Save?" +#~ msgstr "Desa?" + +#~ msgid "Currently installed:\n" +#~ msgstr "Versió instal·lada:\n" + +#, fuzzy +#~ msgid "" +#~ "PDF-Preview could not initialize.\n" +#~ "\n" +#~ "It appears your LaTeX document contains errors or\n" +#~ "the program `%s' was not installed.\n" +#~ "Additional information is available on the Error Output tab.\n" +#~ "Please correct the listed errors and click this area\n" +#~ "to reload the preview panel." +#~ msgstr "" +#~ "No s'ha pogut inicialitzar la previsualització.\n" +#~ "\n" +#~ "El vostre document LaTeX conté errors.\n" +#~ "Es mostra informació addicional a la pestanya d'errors.\n" +#~ "Corregiu la llista d'errors i cliqueu aquesta zona\n" +#~ "per tornar a carregar la previsualització." + +#~ msgid "Update Check" +#~ msgstr "Cerca actualitzacions" + +#~ msgid "" +#~ "The server could not be contacted.\n" +#~ "\n" +#~ msgstr "" +#~ "No s'ha pogut contactar amb el servidor.\n" +#~ "\n" + +#~ msgid "This function requires an active\n" +#~ msgstr "Aquesta funció necessita una\n" + +#~ msgid "internet connection." +#~ msgstr "connexió a Internet activa." + +#~ msgid "Error" +#~ msgstr "Error" diff --git a/po/da.po b/po/da.po new file mode 100644 index 00000000..8e67a625 --- /dev/null +++ b/po/da.po @@ -0,0 +1,708 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: 0.4.8\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-09-10 10:02+0800\n" +"PO-Revision-Date: 2010-05-23 23:05+0100\n" +"Last-Translator: Jack Olsen jackolsendk@gmail.com\n" +"Language-Team: Jack Olsen jackolsendk@gmail.com\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../data/gummi.glade.h:1 +msgid " " +msgstr " " + +#: ../data/gummi.glade.h:2 +msgid ".." +msgstr ".." + +#: ../data/gummi.glade.h:3 +msgid "0" +msgstr "0" + +#: ../data/gummi.glade.h:5 +#, no-c-format +msgid "100%" +msgstr "100%" + +#: ../data/gummi.glade.h:7 +#, no-c-format +msgid "125%" +msgstr "125%" + +#: ../data/gummi.glade.h:9 +#, no-c-format +msgid "150%" +msgstr "150%" + +#: ../data/gummi.glade.h:11 +#, no-c-format +msgid "200%" +msgstr "200%" + +#: ../data/gummi.glade.h:13 +#, no-c-format +msgid "300%" +msgstr "300%" + +#: ../data/gummi.glade.h:15 +#, no-c-format +msgid "400%" +msgstr "400%" + +#: ../data/gummi.glade.h:17 +#, no-c-format +msgid "50%" +msgstr "50%" + +#: ../data/gummi.glade.h:19 +#, no-c-format +msgid "70%" +msgstr "70%" + +#: ../data/gummi.glade.h:21 +#, no-c-format +msgid "85%" +msgstr "85%" + +#: ../data/gummi.glade.h:22 +msgid "Align center" +msgstr "Centrer" + +#: ../data/gummi.glade.h:23 +msgid "Align left" +msgstr "Ventrestil" + +#: ../data/gummi.glade.h:24 +msgid "Align right" +msgstr "Højrestil" + +#: ../data/gummi.glade.h:25 +msgid "" +"Alignment of the\n" +"cell content." +msgstr "Justering af celleindhold" + +#: ../data/gummi.glade.h:27 +msgid "Article" +msgstr "Artikel" + +#: ../data/gummi.glade.h:28 +msgid "Best Fit" +msgstr "Optimal tilpasning" + +#: ../data/gummi.glade.h:29 +msgid "Bibliography" +msgstr "Bibliografi" + +#: ../data/gummi.glade.h:30 +msgid "Bold text" +msgstr "Fremhævet tekst" + +#: ../data/gummi.glade.h:31 +msgid "Book" +msgstr "Bog" + +#: ../data/gummi.glade.h:32 +msgid "Border all cells" +msgstr "Ramme omkring alle celler" + +#: ../data/gummi.glade.h:33 +msgid "Border outline" +msgstr "Ramme omkring" + +#: ../data/gummi.glade.h:34 +msgid "Braces" +msgstr "Tuborgklammer" + +#: ../data/gummi.glade.h:35 +msgid "Bracket:" +msgstr "Firkantparantes:" + +#: ../data/gummi.glade.h:36 +msgid "Brackets" +msgstr "Firkantparantes" + +#: ../data/gummi.glade.h:37 +msgid "Caption:" +msgstr "Billedtekst:" + +#: ../data/gummi.glade.h:38 +msgid "Center text" +msgstr "Centrer tekst" + +#: ../data/gummi.glade.h:39 +msgid "Check _Updates" +msgstr "Check _Opdateringer" + +#: ../data/gummi.glade.h:40 +msgid "Columns:" +msgstr "Kolonner:" + +#: ../data/gummi.glade.h:41 +msgid "Compile" +msgstr "Kompiler" + +#: ../data/gummi.glade.h:42 +msgid "Create a new document" +msgstr "Opret et nyt dokument" + +#: ../data/gummi.glade.h:43 +msgid "Create new document.." +msgstr "Opret nyt dokument.." + +#: ../data/gummi.glade.h:44 +msgid "" +"Determines whether the\n" +"cells have line borders. " +msgstr "" +"Afgør om cellerne\n" +"har liniekant. " + +#: ../data/gummi.glade.h:46 +msgid "Double line" +msgstr "Dobbeltlinie" + +#: ../data/gummi.glade.h:47 +msgid "Error output" +msgstr "Fejlbeskeder" + +#: ../data/gummi.glade.h:48 +msgid "" +"Error status for\n" +"active document" +msgstr "" +"Fejlstatus for\n" +"aktivt dokument" + +#: ../data/gummi.glade.h:50 +msgid "Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:51 +msgid "File:" +msgstr "Fil:" + +#: ../data/gummi.glade.h:52 +msgid "Filename:" +msgstr "Filnavn:" + +#: ../data/gummi.glade.h:53 +msgid "Find" +msgstr "Find" + +#: ../data/gummi.glade.h:54 +msgid "Find Ne_xt" +msgstr "Find N_æste" + +#: ../data/gummi.glade.h:55 +msgid "Find Pre_vious" +msgstr "Find For_rige" + +#: ../data/gummi.glade.h:56 +msgid "Fit Page Width" +msgstr "Tilpas til sidestørrelse" + +#: ../data/gummi.glade.h:57 +msgid "Gummi - LaTeX Editor" +msgstr "Gummi - LaTeX Editor" + +#: ../data/gummi.glade.h:58 +msgid "Image" +msgstr "Billede" + +#: ../data/gummi.glade.h:59 +msgid "Italic text" +msgstr "Kursiv skrift" + +#: ../data/gummi.glade.h:60 +msgid "Label:" +msgstr "Label:" + +#: ../data/gummi.glade.h:61 +msgid "Letter" +msgstr "Brev" + +#: ../data/gummi.glade.h:62 +msgid "Load a file" +msgstr "Åben en fil" + +#: ../data/gummi.glade.h:63 +msgid "Match case" +msgstr "Forskel på store/små bogstaver" + +#: ../data/gummi.glade.h:64 +msgid "Match entire word only" +msgstr "Find kun blandt hele ord" + +#: ../data/gummi.glade.h:65 +msgid "Matrix" +msgstr "Matrice" + +#: ../data/gummi.glade.h:66 ../src/gui.c:653 +msgid "N/A" +msgstr "N/A" + +#: ../data/gummi.glade.h:67 +msgid "New from _Template" +msgstr "Ny fra _Skabelon" + +#: ../data/gummi.glade.h:68 +msgid "Next" +msgstr "Næste" + +#: ../data/gummi.glade.h:69 +msgid "No borders" +msgstr "Ingen rammer" + +#: ../data/gummi.glade.h:70 +msgid "Open" +msgstr "Åben" + +#: ../data/gummi.glade.h:71 +msgid "Parentheses" +msgstr "Paranteser" + +#: ../data/gummi.glade.h:72 +msgid "Preview Pane" +msgstr "Fremvisningspanel" + +#: ../data/gummi.glade.h:73 +msgid "Previous" +msgstr "Forrige" + +#: ../data/gummi.glade.h:74 +msgid "References:" +msgstr "Referencer:" + +#: ../data/gummi.glade.h:75 +msgid "Replace _All" +msgstr "" + +#: ../data/gummi.glade.h:76 +msgid "Replace with:" +msgstr "" + +#: ../data/gummi.glade.h:77 +msgid "Report" +msgstr "Rapport" + +#: ../data/gummi.glade.h:78 +msgid "Rows:" +msgstr "Rækker:" + +#: ../data/gummi.glade.h:79 +msgid "Save" +msgstr "Gem" + +#: ../data/gummi.glade.h:80 +msgid "Save _As..." +msgstr "Gem _som..." + +#: ../data/gummi.glade.h:81 +msgid "Save the current file" +msgstr "Gem denne fil" + +#: ../data/gummi.glade.h:82 +msgid "Scale:" +msgstr "Skala:" + +#: ../data/gummi.glade.h:83 +msgid "Search backwards" +msgstr "Søg bagud" + +#: ../data/gummi.glade.h:84 +msgid "Search for:" +msgstr "Søg efter:" + +#: ../data/gummi.glade.h:85 +msgid "Single line" +msgstr "Enkelt linie" + +#: ../data/gummi.glade.h:86 +msgid "Table" +msgstr "Tabel" + +#: ../data/gummi.glade.h:87 +msgid "Template options:" +msgstr "Skabelonvalgmuligheder" + +#: ../data/gummi.glade.h:88 +msgid "Unbracketed" +msgstr "Uden firkantparantes" + +#: ../data/gummi.glade.h:89 +msgid "Underline text" +msgstr "Understreget tekst" + +#: ../data/gummi.glade.h:90 +msgid "_Autocheck Spelling" +msgstr "Kontroller stavning _automatisk" + +#: ../data/gummi.glade.h:91 +msgid "_Compile Bibliography" +msgstr "_Kompiler Bibliografi" + +#: ../data/gummi.glade.h:92 +msgid "_Document Statistics" +msgstr "" + +#: ../data/gummi.glade.h:93 +msgid "_Edit" +msgstr "R_et" + +#: ../data/gummi.glade.h:94 +msgid "_Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:95 +msgid "_File" +msgstr "_Fil" + +#: ../data/gummi.glade.h:96 +msgid "_Fullscreen" +msgstr "_Fuldskærm" + +#: ../data/gummi.glade.h:97 +msgid "_Help" +msgstr "_Hjælp" + +#: ../data/gummi.glade.h:98 +msgid "_Insert Bibliography" +msgstr "_Indsæt Bibliografi" + +#: ../data/gummi.glade.h:99 +msgid "_Open..." +msgstr "_Åben" + +#: ../data/gummi.glade.h:100 +msgid "_Replace" +msgstr "" + +#: ../data/gummi.glade.h:101 +msgid "_Right Pane" +msgstr "" + +#: ../data/gummi.glade.h:102 +msgid "_Search" +msgstr "_Søg" + +#: ../data/gummi.glade.h:103 +msgid "_Statusbar" +msgstr "_Statuslinie" + +#: ../data/gummi.glade.h:104 +msgid "_Toolbar" +msgstr "_Værktøjslinie" + +#: ../data/gummi.glade.h:105 +msgid "_Tools" +msgstr "_Værktøjer" + +#: ../data/gummi.glade.h:106 +msgid "_View" +msgstr "_Vis" + +#: ../data/gummi.glade.h:107 +msgid "filter:" +msgstr "filtrer:" + +#: ../data/gummi.glade.h:108 ../src/gui.c:651 +msgid "no bibliography file detected" +msgstr "ingen bibliografi-fil fundet" + +#: ../data/gummi.glade.h:109 ../src/gui.c:652 +msgid "none" +msgstr "ingen" + +#: ../data/gummi.glade.h:110 +msgid "of 0" +msgstr "af 0" + +#: ../data/gummi.glade.h:111 +msgid "shouldnotseeme" +msgstr "skulleikkesemig" + +#: ../data/gummi.glade.h:112 +msgid "toolbutton1" +msgstr "værktøjsknap1" + +#: ../data/gummi.glade.h:113 +msgid "toolbutton2" +msgstr "værktøjsknap2" + +#: ../data/gummi.glade.h:114 +msgid "toolbutton3" +msgstr "værktøjsknap3" + +#: ../data/gummi.glade.h:115 +msgid "toolbutton5" +msgstr "værktøjsknap5" + +#: ../data/gummi.glade.h:116 +msgid "toolbutton6" +msgstr "værktøjsknap6" + +#: ../data/gummi.glade.h:117 +msgid "toolbutton7" +msgstr "værktøjsknap7" + +#: ../data/prefs.glade.h:1 +msgid "Changes will become active on next start" +msgstr "Ændringerne vil træde i kraft efter genstart" + +#: ../data/prefs.glade.h:2 +msgid "Default Text" +msgstr "Standardtekst" + +#: ../data/prefs.glade.h:3 +msgid "Display line numbers" +msgstr "Vis linienumre" + +#: ../data/prefs.glade.h:4 +msgid "Do not split words over two lines" +msgstr "Opdel ikke ord over to linier" + +#: ../data/prefs.glade.h:5 +msgid "Editor" +msgstr "Editor" + +#: ../data/prefs.glade.h:6 +msgid "Editor font:" +msgstr "Editor skrifttype:" + +#: ../data/prefs.glade.h:7 +msgid "Enable text wrapping" +msgstr "Aktiver tekstombrydning" + +#: ../data/prefs.glade.h:8 +msgid "File saving:" +msgstr "Fil gemmes:" + +#: ../data/prefs.glade.h:9 +msgid "Gummi Preferences" +msgstr "Gummi Indstillinger" + +#: ../data/prefs.glade.h:10 +msgid "Highlight current line" +msgstr "Fremhæv den nuværende linie" + +#: ../data/prefs.glade.h:11 +msgid "Highlighting:" +msgstr "Fremhævning:" + +#: ../data/prefs.glade.h:12 +msgid "Line numbers:" +msgstr "Linienumre:" + +#: ../data/prefs.glade.h:13 +msgid "None" +msgstr "Ingen" + +#: ../data/prefs.glade.h:14 +msgid "PDF Compiling" +msgstr "PDF-kompilering" + +#: ../data/prefs.glade.h:15 +msgid "PDF Compiling:" +msgstr "PDF kompilerer:" + +#: ../data/prefs.glade.h:16 +msgid "Spell check language:" +msgstr "Stavekontrolsprog:" + +#: ../data/prefs.glade.h:17 +msgid "Text wrapping:" +msgstr "Tekstombrydning:" + +#: ../data/prefs.glade.h:18 +msgid "Typesetter command:" +msgstr "Skriftvalgskommando:" + +#: ../data/prefs.glade.h:19 +msgid "View" +msgstr "Vis" + +#: ../data/prefs.glade.h:20 +msgid "_Autosave files every" +msgstr "Gem _automatisk hvert" + +#: ../data/prefs.glade.h:21 +msgid "_Reset defaults" +msgstr "_Nulstil til standardinstilling" + +#: ../data/prefs.glade.h:22 +#, fuzzy +msgid "compile every" +msgstr "Kompiler _automatisk hvert" + +#: ../data/prefs.glade.h:23 +#, fuzzy +msgid "compile when idle for " +msgstr "Kompiler _automatisk hvert" + +#: ../data/prefs.glade.h:24 +msgid "minutes" +msgstr "minutter" + +#: ../data/prefs.glade.h:25 +msgid "pdflatex" +msgstr "pdflatex" + +#: ../data/prefs.glade.h:26 +msgid "seconds" +msgstr "sekunder" + +#: ../data/prefs.glade.h:27 +msgid "xelatex" +msgstr "xelatex" + +#: ../src/editor.c:375 +msgid "Top reached, search from bottom?" +msgstr "" + +#: ../src/editor.c:382 +msgid "Bottom reached, search from top?" +msgstr "" + +#: ../src/gui.c:223 +#, fuzzy, c-format +msgid "Error loading recent file: %s" +msgstr "Fejl ved indlæsning af nyere fil: " + +#: ../src/gui.c:614 +#, fuzzy +msgid "Compiling bibliography file..." +msgstr "Kompilerer bibliografi-filen" + +#: ../src/gui.c:616 +msgid "bibliography compiled without errors" +msgstr "bibliografien kompilerede uden fejl" + +#: ../src/gui.c:618 +#, fuzzy +msgid "Error compiling bibliography file or none detected..." +msgstr "Fejl ved kompilering af bibliografi-filen eller ingen fundet..." + +#: ../src/gui.c:621 +msgid "error compiling bibliography file" +msgstr "fejl ved kompilering af bibliografi-filen" + +#: ../src/gui.c:645 +#, c-format +msgid "%s loaded" +msgstr "" + +#: ../src/gui.c:1074 +msgid "Do you want to save the changes you have made?" +msgstr "Ønsker du at gemme dine ændringer?" + +#: ../src/gui.c:1083 +msgid "Open File..." +msgstr "Åben Fil..." + +#: ../src/gui.c:1105 +msgid "Save File..." +msgstr "Gem Fil..." + +#: ../src/importer.c:122 +#, c-format +msgid "%s: No such file or directory\n" +msgstr "" + +#: ../src/iofunctions.c:94 +#, fuzzy, c-format +msgid "Saving %s..." +msgstr "Gem _som..." + +#: ../src/iofunctions.c:107 +#, c-format +msgid "" +"%s\n" +"Please try again later." +msgstr "" + +#: ../src/iofunctions.c:146 +msgid "Can not convert text to UTF-8!\n" +msgstr "" + +#: ../src/iofunctions.c:176 +#, fuzzy, c-format +msgid "Autosaving file %s" +msgstr "Gemmer fil " + +#: ../src/updatecheck.c:113 +#, fuzzy, c-format +msgid "" +"Currently installed:\n" +"%s\n" +"\n" +"Currently available:\n" +"%s" +msgstr "" +"\n" +"\n" +"Installeret i øjeblikket:\n" + +#: ../src/utils.c:88 +#, c-format +msgid "" +"\n" +"Gummi has encountered a serious error and require restart, your can find " +"your file in the %s directory\n" +msgstr "" + +#: ../src/utils.c:128 +#, fuzzy +msgid "Confirmation" +msgstr "Billedtekst:" + +#~ msgid "Save?" +#~ msgstr "Gem?" + +#~ msgid "Currently installed:\n" +#~ msgstr "Installeret i øjeblikket:\n" + +#, fuzzy +#~ msgid "" +#~ "PDF-Preview could not initialize.\n" +#~ "\n" +#~ "It appears your LaTeX document contains errors or\n" +#~ "the program `%s' was not installed.\n" +#~ "Additional information is available on the Error Output tab.\n" +#~ "Please correct the listed errors and click this area\n" +#~ "to reload the preview panel." +#~ msgstr "" +#~ "PDF-fremviser kunne ikke starte.\n" +#~ "\n" +#~ "Der ser ud til at være fejl i dit LaTeX-miljø.\n" +#~ "Yderligere information er tilgængelig på fanebladet for fejlbeskeder.\n" +#~ "Ret venligst de viste fejl og klik på dette område\n" +#~ "for at genindlæse fremvisningspanelet." + +#~ msgid "Update Check" +#~ msgstr "Opdateringskontrol" + +#~ msgid "" +#~ "The server could not be contacted.\n" +#~ "\n" +#~ msgstr "" +#~ "Der kunne ikke opnås forbindelse til serveren.\n" +#~ "\n" + +#~ msgid "This function requires an active\n" +#~ msgstr "Denne funktion kræver en aktiv\n" + +#~ msgid "internet connection." +#~ msgstr "internetforbindelse." + +#~ msgid "Error" +#~ msgstr "Fejl" diff --git a/po/fr.po b/po/fr.po new file mode 100644 index 00000000..88d531ac --- /dev/null +++ b/po/fr.po @@ -0,0 +1,672 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-09-10 10:02+0800\n" +"PO-Revision-Date: 2010-05-22 19:27:+UTC-2\n" +"Last-Translator: yvand \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../data/gummi.glade.h:1 +msgid " " +msgstr " " + +#: ../data/gummi.glade.h:2 +msgid ".." +msgstr ".." + +#: ../data/gummi.glade.h:3 +msgid "0" +msgstr "0" + +#: ../data/gummi.glade.h:5 +#, no-c-format +msgid "100%" +msgstr "100%" + +#: ../data/gummi.glade.h:7 +#, no-c-format +msgid "125%" +msgstr "125%" + +#: ../data/gummi.glade.h:9 +#, no-c-format +msgid "150%" +msgstr "150%" + +#: ../data/gummi.glade.h:11 +#, no-c-format +msgid "200%" +msgstr "200%" + +#: ../data/gummi.glade.h:13 +#, no-c-format +msgid "300%" +msgstr "300%" + +#: ../data/gummi.glade.h:15 +#, no-c-format +msgid "400%" +msgstr "400%" + +#: ../data/gummi.glade.h:17 +#, no-c-format +msgid "50%" +msgstr "50%" + +#: ../data/gummi.glade.h:19 +#, no-c-format +msgid "70%" +msgstr "70%" + +#: ../data/gummi.glade.h:21 +#, no-c-format +msgid "85%" +msgstr "85%" + +#: ../data/gummi.glade.h:22 +msgid "Align center" +msgstr "Centrer" + +#: ../data/gummi.glade.h:23 +msgid "Align left" +msgstr "Aligner à gauche" + +#: ../data/gummi.glade.h:24 +msgid "Align right" +msgstr "Aligner à droite" + +#: ../data/gummi.glade.h:25 +msgid "" +"Alignment of the\n" +"cell content." +msgstr "" +"Alignement du contenu\n" +"des cellules" + +#: ../data/gummi.glade.h:27 +msgid "Article" +msgstr "Article" + +#: ../data/gummi.glade.h:28 +msgid "Best Fit" +msgstr "Taille idéale" + +#: ../data/gummi.glade.h:29 +msgid "Bibliography" +msgstr "Bibliographie" + +#: ../data/gummi.glade.h:30 +msgid "Bold text" +msgstr "Gras" + +#: ../data/gummi.glade.h:31 +msgid "Book" +msgstr "Livre" + +#: ../data/gummi.glade.h:32 +msgid "Border all cells" +msgstr "Bordeurs à toutes les cellules" + +#: ../data/gummi.glade.h:33 +msgid "Border outline" +msgstr "Afficher les frontières" + +#: ../data/gummi.glade.h:34 +msgid "Braces" +msgstr "Crochets" + +#: ../data/gummi.glade.h:35 +msgid "Bracket:" +msgstr "Délimitateur:" + +#: ../data/gummi.glade.h:36 +msgid "Brackets" +msgstr "Crochets" + +#: ../data/gummi.glade.h:37 +msgid "Caption:" +msgstr "Légende:" + +#: ../data/gummi.glade.h:38 +msgid "Center text" +msgstr "Centrer" + +#: ../data/gummi.glade.h:39 +msgid "Check _Updates" +msgstr "Vérifier les mises à jours" + +#: ../data/gummi.glade.h:40 +msgid "Columns:" +msgstr "Colonnes:" + +#: ../data/gummi.glade.h:41 +msgid "Compile" +msgstr "Compiler" + +#: ../data/gummi.glade.h:42 +msgid "Create a new document" +msgstr "Créer un nouveau document" + +#: ../data/gummi.glade.h:43 +msgid "Create new document.." +msgstr "Créer un nouveau document.." + +#: ../data/gummi.glade.h:44 +msgid "" +"Determines whether the\n" +"cells have line borders. " +msgstr "" +"Décider si les cellules\n" +"ont des bordures" + +#: ../data/gummi.glade.h:46 +msgid "Double line" +msgstr "Bouble barre" + +#: ../data/gummi.glade.h:47 +msgid "Error output" +msgstr "Sortie d'erreur" + +#: ../data/gummi.glade.h:48 +msgid "" +"Error status for\n" +"active document" +msgstr "État d'erreur dudocument actif" + +#: ../data/gummi.glade.h:50 +msgid "Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:51 +msgid "File:" +msgstr "Fichier:" + +#: ../data/gummi.glade.h:52 +msgid "Filename:" +msgstr "Nom du fichier:" + +#: ../data/gummi.glade.h:53 +msgid "Find" +msgstr "Rechercher" + +#: ../data/gummi.glade.h:54 +msgid "Find Ne_xt" +msgstr "Recherche le suivant" + +#: ../data/gummi.glade.h:55 +msgid "Find Pre_vious" +msgstr "Rechercher le précédent" + +#: ../data/gummi.glade.h:56 +msgid "Fit Page Width" +msgstr "Ajuster à la largeur de la page" + +#: ../data/gummi.glade.h:57 +msgid "Gummi - LaTeX Editor" +msgstr "Gummi - Éditeur LaTeX" + +#: ../data/gummi.glade.h:58 +msgid "Image" +msgstr "Image" + +#: ../data/gummi.glade.h:59 +msgid "Italic text" +msgstr "Italique" + +#: ../data/gummi.glade.h:60 +msgid "Label:" +msgstr "Étiquette:" + +# ou Référence +#: ../data/gummi.glade.h:61 +msgid "Letter" +msgstr "Lettre" + +#: ../data/gummi.glade.h:62 +msgid "Load a file" +msgstr "Ouvrir un fichier" + +#: ../data/gummi.glade.h:63 +msgid "Match case" +msgstr "Sensible à la case" + +#: ../data/gummi.glade.h:64 +msgid "Match entire word only" +msgstr "Mots entiers seulement" + +#: ../data/gummi.glade.h:65 +msgid "Matrix" +msgstr "Matrice" + +#: ../data/gummi.glade.h:66 ../src/gui.c:653 +msgid "N/A" +msgstr "non disponible" + +#: ../data/gummi.glade.h:67 +msgid "New from _Template" +msgstr "Nouveau à partir d'un modèle" + +#: ../data/gummi.glade.h:68 +msgid "Next" +msgstr "Suivant" + +#: ../data/gummi.glade.h:69 +msgid "No borders" +msgstr "Aucune bordure" + +#: ../data/gummi.glade.h:70 +msgid "Open" +msgstr "Ouvrir" + +#: ../data/gummi.glade.h:71 +msgid "Parentheses" +msgstr "Paranthèses" + +#: ../data/gummi.glade.h:72 +msgid "Preview Pane" +msgstr "Aperçu" + +#: ../data/gummi.glade.h:73 +msgid "Previous" +msgstr "Précédent" + +#: ../data/gummi.glade.h:74 +msgid "References:" +msgstr "Références:" + +#: ../data/gummi.glade.h:75 +msgid "Replace _All" +msgstr "" + +#: ../data/gummi.glade.h:76 +msgid "Replace with:" +msgstr "" + +#: ../data/gummi.glade.h:77 +msgid "Report" +msgstr "Rapport" + +#: ../data/gummi.glade.h:78 +msgid "Rows:" +msgstr "Lignes:" + +#: ../data/gummi.glade.h:79 +msgid "Save" +msgstr "Enregistrer" + +#: ../data/gummi.glade.h:80 +msgid "Save _As..." +msgstr "" + +#: ../data/gummi.glade.h:81 +msgid "Save the current file" +msgstr "Enregistrer le fichier courant" + +#: ../data/gummi.glade.h:82 +msgid "Scale:" +msgstr "Échelle:" + +#: ../data/gummi.glade.h:83 +msgid "Search backwards" +msgstr "Rechecher en arrière" + +#: ../data/gummi.glade.h:84 +msgid "Search for:" +msgstr "Recherche:" + +#: ../data/gummi.glade.h:85 +msgid "Single line" +msgstr "Simple barre" + +#: ../data/gummi.glade.h:86 +msgid "Table" +msgstr "Tableau" + +#: ../data/gummi.glade.h:87 +msgid "Template options:" +msgstr "Options du modèle:" + +#: ../data/gummi.glade.h:88 +msgid "Unbracketed" +msgstr "Sans" + +#: ../data/gummi.glade.h:89 +msgid "Underline text" +msgstr "Souligner" + +#: ../data/gummi.glade.h:90 +msgid "_Autocheck Spelling" +msgstr "Vérification orthographique automatique" + +#: ../data/gummi.glade.h:91 +msgid "_Compile Bibliography" +msgstr "Compiler Bibliographie" + +#: ../data/gummi.glade.h:92 +msgid "_Document Statistics" +msgstr "" + +#: ../data/gummi.glade.h:93 +msgid "_Edit" +msgstr "Édition" + +#: ../data/gummi.glade.h:94 +msgid "_Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:95 +msgid "_File" +msgstr "Fichier" + +#: ../data/gummi.glade.h:96 +msgid "_Fullscreen" +msgstr "Plein écran" + +#: ../data/gummi.glade.h:97 +msgid "_Help" +msgstr "Aide" + +#: ../data/gummi.glade.h:98 +msgid "_Insert Bibliography" +msgstr "Insérer Bibliographie" + +#: ../data/gummi.glade.h:99 +#, fuzzy +msgid "_Open..." +msgstr "Ouvrir" + +#: ../data/gummi.glade.h:100 +msgid "_Replace" +msgstr "" + +#: ../data/gummi.glade.h:101 +msgid "_Right Pane" +msgstr "" + +#: ../data/gummi.glade.h:102 +msgid "_Search" +msgstr "Recherche" + +#: ../data/gummi.glade.h:103 +msgid "_Statusbar" +msgstr "Barre d'état" + +#: ../data/gummi.glade.h:104 +msgid "_Toolbar" +msgstr "Barre d'outils" + +#: ../data/gummi.glade.h:105 +msgid "_Tools" +msgstr "Outils" + +#: ../data/gummi.glade.h:106 +msgid "_View" +msgstr "Affichage" + +#: ../data/gummi.glade.h:107 +msgid "filter:" +msgstr "Filtre:" + +#: ../data/gummi.glade.h:108 ../src/gui.c:651 +msgid "no bibliography file detected" +msgstr "Aucun fichier bibliographique détecté" + +#: ../data/gummi.glade.h:109 ../src/gui.c:652 +msgid "none" +msgstr "Aucun" + +#: ../data/gummi.glade.h:110 +msgid "of 0" +msgstr "de 0" + +#: ../data/gummi.glade.h:111 +msgid "shouldnotseeme" +msgstr "shouldnotseeme" + +#: ../data/gummi.glade.h:112 +msgid "toolbutton1" +msgstr "bouton1" + +#: ../data/gummi.glade.h:113 +msgid "toolbutton2" +msgstr "bouton2" + +#: ../data/gummi.glade.h:114 +msgid "toolbutton3" +msgstr "bouton3" + +#: ../data/gummi.glade.h:115 +msgid "toolbutton5" +msgstr "bouton5" + +#: ../data/gummi.glade.h:116 +msgid "toolbutton6" +msgstr "bouton6" + +#: ../data/gummi.glade.h:117 +msgid "toolbutton7" +msgstr "bouton7" + +#: ../data/prefs.glade.h:1 +msgid "Changes will become active on next start" +msgstr "Les changements seront effectifs au prochain lancement" + +#: ../data/prefs.glade.h:2 +msgid "Default Text" +msgstr "Texte par défaut" + +#: ../data/prefs.glade.h:3 +msgid "Display line numbers" +msgstr "Afficher le numéro de ligne" + +#: ../data/prefs.glade.h:4 +msgid "Do not split words over two lines" +msgstr "Ne pas couper les mots sur deux lignes" + +#: ../data/prefs.glade.h:5 +msgid "Editor" +msgstr "Éditeur" + +#: ../data/prefs.glade.h:6 +msgid "Editor font:" +msgstr "Police:" + +#: ../data/prefs.glade.h:7 +msgid "Enable text wrapping" +msgstr "Activer le retour à la ligne" + +#: ../data/prefs.glade.h:8 +msgid "File saving:" +msgstr "Enregistrement du fichier:" + +#: ../data/prefs.glade.h:9 +msgid "Gummi Preferences" +msgstr "Préférences Gummi" + +#: ../data/prefs.glade.h:10 +msgid "Highlight current line" +msgstr "Surligner la ligne actuelle" + +#: ../data/prefs.glade.h:11 +msgid "Highlighting:" +msgstr "Ligne actuelle:" + +#: ../data/prefs.glade.h:12 +msgid "Line numbers:" +msgstr "Numéros de ligne:" + +#: ../data/prefs.glade.h:13 +msgid "None" +msgstr "Aucun" + +#: ../data/prefs.glade.h:14 +msgid "PDF Compiling" +msgstr "Compilation PDF" + +#: ../data/prefs.glade.h:15 +msgid "PDF Compiling:" +msgstr "Compilation PDF:" + +#: ../data/prefs.glade.h:16 +msgid "Spell check language:" +msgstr "Langue du vérification orthographique" + +#: ../data/prefs.glade.h:17 +msgid "Text wrapping:" +msgstr "Longues lignes:" + +#: ../data/prefs.glade.h:18 +msgid "Typesetter command:" +msgstr "Commande:" + +#: ../data/prefs.glade.h:19 +msgid "View" +msgstr "Affichage" + +#: ../data/prefs.glade.h:20 +msgid "_Autosave files every" +msgstr "Enregistrer automatiquement toutes les" + +#: ../data/prefs.glade.h:21 +msgid "_Reset defaults" +msgstr "Réinitialiser" + +#: ../data/prefs.glade.h:22 +#, fuzzy +msgid "compile every" +msgstr "Compiler automatique toutes les" + +#: ../data/prefs.glade.h:23 +#, fuzzy +msgid "compile when idle for " +msgstr "Compiler automatique toutes les" + +#: ../data/prefs.glade.h:24 +msgid "minutes" +msgstr "minutes" + +#: ../data/prefs.glade.h:25 +msgid "pdflatex" +msgstr "pdflatex" + +#: ../data/prefs.glade.h:26 +msgid "seconds" +msgstr "secondes" + +#: ../data/prefs.glade.h:27 +msgid "xelatex" +msgstr "xelatex" + +#: ../src/editor.c:375 +msgid "Top reached, search from bottom?" +msgstr "" + +#: ../src/editor.c:382 +msgid "Bottom reached, search from top?" +msgstr "" + +#: ../src/gui.c:223 +#, c-format +msgid "Error loading recent file: %s" +msgstr "" + +#: ../src/gui.c:614 +#, fuzzy +msgid "Compiling bibliography file..." +msgstr "Compiler Bibliographie" + +#: ../src/gui.c:616 +#, fuzzy +msgid "bibliography compiled without errors" +msgstr "Aucun fichier bibliographique détecté" + +#: ../src/gui.c:618 +#, fuzzy +msgid "Error compiling bibliography file or none detected..." +msgstr "Aucun fichier bibliographique détecté" + +#: ../src/gui.c:621 +#, fuzzy +msgid "error compiling bibliography file" +msgstr "Compiler Bibliographie" + +#: ../src/gui.c:645 +#, c-format +msgid "%s loaded" +msgstr "" + +#: ../src/gui.c:1074 +msgid "Do you want to save the changes you have made?" +msgstr "" + +#: ../src/gui.c:1083 +#, fuzzy +msgid "Open File..." +msgstr "Ouvrir" + +#: ../src/gui.c:1105 +msgid "Save File..." +msgstr "" + +#: ../src/importer.c:122 +#, c-format +msgid "%s: No such file or directory\n" +msgstr "" + +#: ../src/iofunctions.c:94 +#, c-format +msgid "Saving %s..." +msgstr "" + +#: ../src/iofunctions.c:107 +#, c-format +msgid "" +"%s\n" +"Please try again later." +msgstr "" + +#: ../src/iofunctions.c:146 +msgid "Can not convert text to UTF-8!\n" +msgstr "" + +#: ../src/iofunctions.c:176 +#, fuzzy, c-format +msgid "Autosaving file %s" +msgstr "Simple barre" + +#: ../src/updatecheck.c:113 +#, c-format +msgid "" +"Currently installed:\n" +"%s\n" +"\n" +"Currently available:\n" +"%s" +msgstr "" + +#: ../src/utils.c:88 +#, c-format +msgid "" +"\n" +"Gummi has encountered a serious error and require restart, your can find " +"your file in the %s directory\n" +msgstr "" + +#: ../src/utils.c:128 +#, fuzzy +msgid "Confirmation" +msgstr "Légende:" + +#, fuzzy +#~ msgid "Save?" +#~ msgstr "Enregistrer" diff --git a/po/gr_EL.po b/po/gr_EL.po new file mode 100644 index 00000000..b97d8c91 --- /dev/null +++ b/po/gr_EL.po @@ -0,0 +1,710 @@ +# Gummi Translation for Greek +# Copyright (C) Dimitris Leventeas 2010 +# This file is distributed under the same license as the Gummi package. +# Dimitris Leventeas , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-09-10 10:02+0800\n" +"PO-Revision-Date: 2010-05-24 14:43+0200\n" +"Last-Translator: Dimitris Leventeas \n" +"Language-Team: EL >\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../data/gummi.glade.h:1 +msgid " " +msgstr " " + +#: ../data/gummi.glade.h:2 +msgid ".." +msgstr ".." + +#: ../data/gummi.glade.h:3 +msgid "0" +msgstr "0" + +#: ../data/gummi.glade.h:5 +#, no-c-format +msgid "100%" +msgstr "100%" + +#: ../data/gummi.glade.h:7 +#, no-c-format +msgid "125%" +msgstr "125%" + +#: ../data/gummi.glade.h:9 +#, no-c-format +msgid "150%" +msgstr "150%" + +#: ../data/gummi.glade.h:11 +#, no-c-format +msgid "200%" +msgstr "200%" + +#: ../data/gummi.glade.h:13 +#, no-c-format +msgid "300%" +msgstr "300%" + +#: ../data/gummi.glade.h:15 +#, no-c-format +msgid "400%" +msgstr "400%" + +#: ../data/gummi.glade.h:17 +#, no-c-format +msgid "50%" +msgstr "50%" + +#: ../data/gummi.glade.h:19 +#, no-c-format +msgid "70%" +msgstr "70%" + +#: ../data/gummi.glade.h:21 +#, no-c-format +msgid "85%" +msgstr "85%" + +#: ../data/gummi.glade.h:22 +msgid "Align center" +msgstr "Στοίχιση στο κέντρο" + +#: ../data/gummi.glade.h:23 +msgid "Align left" +msgstr "Στοίχιση αριστερά" + +#: ../data/gummi.glade.h:24 +msgid "Align right" +msgstr "Στοίχιση δεξιά" + +#: ../data/gummi.glade.h:25 +msgid "" +"Alignment of the\n" +"cell content." +msgstr "" +"Στοίχιση των\n" +"περιεχομένων του κελιού." + +#: ../data/gummi.glade.h:27 +msgid "Article" +msgstr "Άρθρο" + +#: ../data/gummi.glade.h:28 +msgid "Best Fit" +msgstr "Καλύτερο ταίριασμα" + +#: ../data/gummi.glade.h:29 +msgid "Bibliography" +msgstr "Βιβλιογραφία" + +#: ../data/gummi.glade.h:30 +msgid "Bold text" +msgstr "Έντονο κείμενο" + +#: ../data/gummi.glade.h:31 +msgid "Book" +msgstr "Βιβλίο" + +#: ../data/gummi.glade.h:32 +msgid "Border all cells" +msgstr "Όρια όλων των κελιών" + +#: ../data/gummi.glade.h:33 +#, fuzzy +msgid "Border outline" +msgstr "Όρια όλων των κελιών" + +#: ../data/gummi.glade.h:34 +msgid "Braces" +msgstr "Άγκιστρα" + +#: ../data/gummi.glade.h:35 +msgid "Bracket:" +msgstr "Αγκύλη:" + +#: ../data/gummi.glade.h:36 +msgid "Brackets" +msgstr "Αγκύλες" + +#: ../data/gummi.glade.h:37 +msgid "Caption:" +msgstr "Λεζάντα" + +#: ../data/gummi.glade.h:38 +msgid "Center text" +msgstr "Κεντράρισε κείμενο" + +#: ../data/gummi.glade.h:39 +msgid "Check _Updates" +msgstr "Έλεγξε _Αναβαθμίσεις" + +#: ../data/gummi.glade.h:40 +msgid "Columns:" +msgstr "Στήλες:" + +#: ../data/gummi.glade.h:41 +msgid "Compile" +msgstr "Μετάφραση" + +#: ../data/gummi.glade.h:42 +msgid "Create a new document" +msgstr "Δημιουργία νέου έγγράφου" + +#: ../data/gummi.glade.h:43 +msgid "Create new document.." +msgstr "Δημιουργία νέου κειμένου" + +#: ../data/gummi.glade.h:44 +msgid "" +"Determines whether the\n" +"cells have line borders. " +msgstr "" +"Αποφάσισε αν τα\n" +"κελιά έχουν γραμμές συνόρων. " + +#: ../data/gummi.glade.h:46 +msgid "Double line" +msgstr "Διπλή γραμμή" + +#: ../data/gummi.glade.h:47 +msgid "Error output" +msgstr "Έξοδος σφαλμάτων" + +#: ../data/gummi.glade.h:48 +msgid "" +"Error status for\n" +"active document" +msgstr "" +"Κατάσταση σφάλματος γις\n" +"ενεργό έγγραφο" + +#: ../data/gummi.glade.h:50 +msgid "Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:51 +msgid "File:" +msgstr "Αρχείο:" + +#: ../data/gummi.glade.h:52 +msgid "Filename:" +msgstr "Όνομα αρχείου:" + +#: ../data/gummi.glade.h:53 +msgid "Find" +msgstr "Εύρεση" + +#: ../data/gummi.glade.h:54 +msgid "Find Ne_xt" +msgstr "Εύρεση Επο_μένου" + +#: ../data/gummi.glade.h:55 +msgid "Find Pre_vious" +msgstr "Εύρεση Προη_γούμενου" + +#: ../data/gummi.glade.h:56 +msgid "Fit Page Width" +msgstr "Χώρεσε σε Μήκος Σελίδας" + +#: ../data/gummi.glade.h:57 +msgid "Gummi - LaTeX Editor" +msgstr "Gummi - Επεξεργαστής LaTeX" + +#: ../data/gummi.glade.h:58 +msgid "Image" +msgstr "Εικόνα" + +#: ../data/gummi.glade.h:59 +msgid "Italic text" +msgstr "Πλάγιο κείμενο" + +#: ../data/gummi.glade.h:60 +msgid "Label:" +msgstr "Ετικέτα:" + +#: ../data/gummi.glade.h:61 +msgid "Letter" +msgstr "Γράμμα" + +#: ../data/gummi.glade.h:62 +msgid "Load a file" +msgstr "Φόρτωσε ένα αρχείο" + +#: ../data/gummi.glade.h:63 +msgid "Match case" +msgstr "Ταίριαξε κεφαλαία πεζά" + +#: ../data/gummi.glade.h:64 +msgid "Match entire word only" +msgstr "Ταίριαξε ολόκληρη λέξη μόνο" + +#: ../data/gummi.glade.h:65 +msgid "Matrix" +msgstr "Μητρώο" + +#: ../data/gummi.glade.h:66 ../src/gui.c:653 +msgid "N/A" +msgstr "Μη Διαθέσιμο" + +#: ../data/gummi.glade.h:67 +msgid "New from _Template" +msgstr "Νέο από _Πρώτυπο" + +#: ../data/gummi.glade.h:68 +msgid "Next" +msgstr "Επόμενο" + +#: ../data/gummi.glade.h:69 +msgid "No borders" +msgstr "Χωρίς σύνορα" + +#: ../data/gummi.glade.h:70 +msgid "Open" +msgstr "Άνοιξε" + +#: ../data/gummi.glade.h:71 +msgid "Parentheses" +msgstr "Παρενθέσεις" + +#: ../data/gummi.glade.h:72 +msgid "Preview Pane" +msgstr "Υποπαράθυρο προεπισκόπισης" + +#: ../data/gummi.glade.h:73 +msgid "Previous" +msgstr "Προηγούμενο" + +#: ../data/gummi.glade.h:74 +msgid "References:" +msgstr "Αναφορές:" + +#: ../data/gummi.glade.h:75 +msgid "Replace _All" +msgstr "" + +#: ../data/gummi.glade.h:76 +msgid "Replace with:" +msgstr "" + +#: ../data/gummi.glade.h:77 +msgid "Report" +msgstr "Αναφορά" + +#: ../data/gummi.glade.h:78 +msgid "Rows:" +msgstr "Σειρές:" + +#: ../data/gummi.glade.h:79 +msgid "Save" +msgstr "Αποθήκευση" + +#: ../data/gummi.glade.h:80 +msgid "Save _As..." +msgstr "Αποθήκευση _Ως..." + +#: ../data/gummi.glade.h:81 +msgid "Save the current file" +msgstr "Αποθήκευση τρέχοντος αρχείου" + +#: ../data/gummi.glade.h:82 +msgid "Scale:" +msgstr "Κλίμακα:" + +#: ../data/gummi.glade.h:83 +msgid "Search backwards" +msgstr "Αναζήτης προς τα πίσω" + +#: ../data/gummi.glade.h:84 +msgid "Search for:" +msgstr "Αναζήτηση για:" + +#: ../data/gummi.glade.h:85 +msgid "Single line" +msgstr "Μοναδική γραμμή" + +#: ../data/gummi.glade.h:86 +msgid "Table" +msgstr "Πίνακας" + +#: ../data/gummi.glade.h:87 +msgid "Template options:" +msgstr "Επιλογές προτύπου:" + +#: ../data/gummi.glade.h:88 +msgid "Unbracketed" +msgstr "Χωρίς αγκύλες" + +#: ../data/gummi.glade.h:89 +msgid "Underline text" +msgstr "Υπογράμμισε κείμενο" + +#: ../data/gummi.glade.h:90 +msgid "_Autocheck Spelling" +msgstr "_Αυτόματος Έλεγχος Ορθογραφίας" + +#: ../data/gummi.glade.h:91 +msgid "_Compile Bibliography" +msgstr "_Μετάφρασε τη Βιβλιογραφία" + +#: ../data/gummi.glade.h:92 +msgid "_Document Statistics" +msgstr "" + +#: ../data/gummi.glade.h:93 +msgid "_Edit" +msgstr "_Επεξεργασία" + +#: ../data/gummi.glade.h:94 +msgid "_Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:95 +msgid "_File" +msgstr "_Αρχείο" + +#: ../data/gummi.glade.h:96 +msgid "_Fullscreen" +msgstr "_Πλήρης Οθόνη" + +#: ../data/gummi.glade.h:97 +msgid "_Help" +msgstr "_Αναζήτηση" + +#: ../data/gummi.glade.h:98 +msgid "_Insert Bibliography" +msgstr "_Εισαγωγή Βιβλιογραφίας" + +#: ../data/gummi.glade.h:99 +msgid "_Open..." +msgstr "_Άνοιγμα" + +#: ../data/gummi.glade.h:100 +msgid "_Replace" +msgstr "" + +#: ../data/gummi.glade.h:101 +msgid "_Right Pane" +msgstr "" + +#: ../data/gummi.glade.h:102 +msgid "_Search" +msgstr "_Αναζήτηση" + +#: ../data/gummi.glade.h:103 +msgid "_Statusbar" +msgstr "_Γραμμή προόδου" + +#: ../data/gummi.glade.h:104 +msgid "_Toolbar" +msgstr "Γ_ραμμή Εργαλείων" + +#: ../data/gummi.glade.h:105 +msgid "_Tools" +msgstr "_Εργαλεία" + +#: ../data/gummi.glade.h:106 +msgid "_View" +msgstr "_Επισκόπιση" + +#: ../data/gummi.glade.h:107 +msgid "filter:" +msgstr "φίλτρο:" + +#: ../data/gummi.glade.h:108 ../src/gui.c:651 +msgid "no bibliography file detected" +msgstr "Δεν βρέθηκε αρχείο βιβλιογραφίας" + +#: ../data/gummi.glade.h:109 ../src/gui.c:652 +msgid "none" +msgstr "κανένα" + +#: ../data/gummi.glade.h:110 +msgid "of 0" +msgstr "από 0" + +#: ../data/gummi.glade.h:111 +msgid "shouldnotseeme" +msgstr "δενπρέπειναμεδεις" + +#: ../data/gummi.glade.h:112 +msgid "toolbutton1" +msgstr "κουμπίεργαλείου1" + +#: ../data/gummi.glade.h:113 +msgid "toolbutton2" +msgstr "κουμπίεργαλείου2" + +#: ../data/gummi.glade.h:114 +msgid "toolbutton3" +msgstr "κουμπίεργαλείου3" + +#: ../data/gummi.glade.h:115 +msgid "toolbutton5" +msgstr "κουμπίεργαλείου5" + +#: ../data/gummi.glade.h:116 +msgid "toolbutton6" +msgstr "κουμπίεργαλείου6" + +#: ../data/gummi.glade.h:117 +msgid "toolbutton7" +msgstr "κουμπίεργαλείου7" + +#: ../data/prefs.glade.h:1 +msgid "Changes will become active on next start" +msgstr "Οι αλλαγές θα ενεργοποιηθούν στην επόμενη εκκίνηση" + +#: ../data/prefs.glade.h:2 +msgid "Default Text" +msgstr "Προεπιλεγμένο Κείμενο" + +#: ../data/prefs.glade.h:3 +msgid "Display line numbers" +msgstr "Εμφάνιση αριθμών γράμμων" + +#: ../data/prefs.glade.h:4 +msgid "Do not split words over two lines" +msgstr "Μη διαχωρίζεις λέξεις σε δύο γραμμές" + +#: ../data/prefs.glade.h:5 +msgid "Editor" +msgstr "Επεξεργαστής" + +#: ../data/prefs.glade.h:6 +msgid "Editor font:" +msgstr "Γραμματοσειρά Επεξεργαστή:" + +#: ../data/prefs.glade.h:7 +msgid "Enable text wrapping" +msgstr "Ενεργοποίηση αναδίπλωσης κειμένου" + +#: ../data/prefs.glade.h:8 +msgid "File saving:" +msgstr "Αποθήκευση αρχείου:" + +#: ../data/prefs.glade.h:9 +msgid "Gummi Preferences" +msgstr "Προτιμήσεις Gummi" + +#: ../data/prefs.glade.h:10 +msgid "Highlight current line" +msgstr "Τόνισε την τρέχουσα γραμμή" + +#: ../data/prefs.glade.h:11 +msgid "Highlighting:" +msgstr "Τονίζοντας:" + +#: ../data/prefs.glade.h:12 +msgid "Line numbers:" +msgstr "Αριθμοί γραμμών:" + +#: ../data/prefs.glade.h:13 +msgid "None" +msgstr "Κανένα" + +#: ../data/prefs.glade.h:14 +msgid "PDF Compiling" +msgstr "Μετάφραση PDF" + +#: ../data/prefs.glade.h:15 +msgid "PDF Compiling:" +msgstr "Μετάφραση PDF:" + +#: ../data/prefs.glade.h:16 +msgid "Spell check language:" +msgstr "Ορθογραφικός έλεγχος γλώσσας:" + +#: ../data/prefs.glade.h:17 +msgid "Text wrapping:" +msgstr "Αναδίπλωση κειμένου:" + +#: ../data/prefs.glade.h:18 +msgid "Typesetter command:" +msgstr "Εντολή στοιχειοθέτησης:" + +#: ../data/prefs.glade.h:19 +msgid "View" +msgstr "Επισκόπηση" + +#: ../data/prefs.glade.h:20 +msgid "_Autosave files every" +msgstr "_Αυτόματη αποθήκευση κάθε" + +#: ../data/prefs.glade.h:21 +msgid "_Reset defaults" +msgstr "_Επαναφορά προεπιλογών" + +#: ../data/prefs.glade.h:22 +#, fuzzy +msgid "compile every" +msgstr "_Αυτόματη μετάφραση κάθε" + +#: ../data/prefs.glade.h:23 +#, fuzzy +msgid "compile when idle for " +msgstr "_Αυτόματη μετάφραση κάθε" + +#: ../data/prefs.glade.h:24 +msgid "minutes" +msgstr "λεπτά" + +#: ../data/prefs.glade.h:25 +msgid "pdflatex" +msgstr "pdflatex" + +#: ../data/prefs.glade.h:26 +msgid "seconds" +msgstr "δευτερόλεπτα" + +#: ../data/prefs.glade.h:27 +msgid "xelatex" +msgstr "xelatex" + +#: ../src/editor.c:375 +msgid "Top reached, search from bottom?" +msgstr "" + +#: ../src/editor.c:382 +msgid "Bottom reached, search from top?" +msgstr "" + +#: ../src/gui.c:223 +#, fuzzy, c-format +msgid "Error loading recent file: %s" +msgstr "Σφάλμα φορτώνοντας πρόσφατο αρχείο: " + +#: ../src/gui.c:614 +#, fuzzy +msgid "Compiling bibliography file..." +msgstr "Μεταφράζοντας το αρχείο βιβλιογραφίας" + +#: ../src/gui.c:616 +msgid "bibliography compiled without errors" +msgstr "Η βιβλιογραφία μεταφράστηκε χωρίς λάθη" + +#: ../src/gui.c:618 +#, fuzzy +msgid "Error compiling bibliography file or none detected..." +msgstr "Λάθος μεταφράζοντας το αρχείο βιβλιογραφίας ή δεν βρέθηκε κάποιο" + +#: ../src/gui.c:621 +msgid "error compiling bibliography file" +msgstr "λάθος μεταφράζοντας το αρχείο βιβλιογραφίας" + +#: ../src/gui.c:645 +#, c-format +msgid "%s loaded" +msgstr "" + +#: ../src/gui.c:1074 +msgid "Do you want to save the changes you have made?" +msgstr "Θέλετε να αποθηκεύσετε τις αλλαγές που κάνατε;" + +#: ../src/gui.c:1083 +msgid "Open File..." +msgstr "Άνοιγμα Αρχείου..." + +#: ../src/gui.c:1105 +msgid "Save File..." +msgstr "Αποθήκευση Αρχείου..." + +#: ../src/importer.c:122 +#, c-format +msgid "%s: No such file or directory\n" +msgstr "" + +#: ../src/iofunctions.c:94 +#, fuzzy, c-format +msgid "Saving %s..." +msgstr "Αποθήκευση _Ως..." + +#: ../src/iofunctions.c:107 +#, c-format +msgid "" +"%s\n" +"Please try again later." +msgstr "" + +#: ../src/iofunctions.c:146 +msgid "Can not convert text to UTF-8!\n" +msgstr "" + +#: ../src/iofunctions.c:176 +#, fuzzy, c-format +msgid "Autosaving file %s" +msgstr "Αποθηκεύοντας το αρχείο" + +#: ../src/updatecheck.c:113 +#, fuzzy, c-format +msgid "" +"Currently installed:\n" +"%s\n" +"\n" +"Currently available:\n" +"%s" +msgstr "" +"\n" +"\n" +"Τρέχοντα διαθέσιμα:\n" + +#: ../src/utils.c:88 +#, c-format +msgid "" +"\n" +"Gummi has encountered a serious error and require restart, your can find " +"your file in the %s directory\n" +msgstr "" + +#: ../src/utils.c:128 +#, fuzzy +msgid "Confirmation" +msgstr "Λεζάντα" + +#~ msgid "Save?" +#~ msgstr "Αποθήκευση;" + +#~ msgid "Currently installed:\n" +#~ msgstr "Τρέχοντα εγκατεστημένα:\n" + +#, fuzzy +#~ msgid "" +#~ "PDF-Preview could not initialize.\n" +#~ "\n" +#~ "It appears your LaTeX document contains errors or\n" +#~ "the program `%s' was not installed.\n" +#~ "Additional information is available on the Error Output tab.\n" +#~ "Please correct the listed errors and click this area\n" +#~ "to reload the preview panel." +#~ msgstr "" +#~ "Η Προεπισκόπιση PDF δεν μπόρεσε να αρχικοποιηθεί.\n" +#~ "\n" +#~ "Φαίνεται πως το έγγραφο LaTeX περιέχει σφάλματα.\n" +#~ "Επιπρόσθετη πληροφορία είναι διαθέσιμη στη καρτέλα Έξοδος Σφάλματος.\n" +#~ "Παρακαλώ διορθώστε τα λάθη που παρατίθενται και κάντε κλικ σε αυτή\n" +#~ "την περιοχή για να επαναφορτώσετε το υποπαράθυρο προεπισκόπισης." + +#~ msgid "Update Check" +#~ msgstr "Έλεγχος Αναβάθμισης" + +#~ msgid "" +#~ "The server could not be contacted.\n" +#~ "\n" +#~ msgstr "" +#~ "Ο εξυπηρετητής δεν μπορούσε να επικοινωνήσει.\n" +#~ "\n" + +#~ msgid "This function requires an active\n" +#~ msgstr "Αυτή η λειτουργία απαιτεί μια ενεργή\n" + +#~ msgid "internet connection." +#~ msgstr "σύνδεση διαδικτύου" + +#~ msgid "Error" +#~ msgstr "Σφάλμα" diff --git a/po/it_IT.po b/po/it_IT.po new file mode 100644 index 00000000..208b23a4 --- /dev/null +++ b/po/it_IT.po @@ -0,0 +1,709 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-09-10 10:02+0800\n" +"PO-Revision-Date: 2010-06-09 10:02+0100\n" +"Last-Translator: Salvatore Vassallo \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../data/gummi.glade.h:1 +msgid " " +msgstr "" + +#: ../data/gummi.glade.h:2 +msgid ".." +msgstr ".." + +#: ../data/gummi.glade.h:3 +msgid "0" +msgstr "0" + +#: ../data/gummi.glade.h:5 +#, no-c-format +msgid "100%" +msgstr "100%" + +#: ../data/gummi.glade.h:7 +#, no-c-format +msgid "125%" +msgstr "125%" + +#: ../data/gummi.glade.h:9 +#, no-c-format +msgid "150%" +msgstr "150%" + +#: ../data/gummi.glade.h:11 +#, no-c-format +msgid "200%" +msgstr "200%" + +#: ../data/gummi.glade.h:13 +#, no-c-format +msgid "300%" +msgstr "300%" + +#: ../data/gummi.glade.h:15 +#, no-c-format +msgid "400%" +msgstr "400%" + +#: ../data/gummi.glade.h:17 +#, no-c-format +msgid "50%" +msgstr "50%" + +#: ../data/gummi.glade.h:19 +#, no-c-format +msgid "70%" +msgstr "70%" + +#: ../data/gummi.glade.h:21 +#, no-c-format +msgid "85%" +msgstr "85%" + +#: ../data/gummi.glade.h:22 +msgid "Align center" +msgstr "Centrato" + +#: ../data/gummi.glade.h:23 +msgid "Align left" +msgstr "Allinea a sinistra" + +#: ../data/gummi.glade.h:24 +msgid "Align right" +msgstr "Allinea a destra" + +#: ../data/gummi.glade.h:25 +msgid "" +"Alignment of the\n" +"cell content." +msgstr "" +"Allineamento del\n" +"contenuto della cella" + +#: ../data/gummi.glade.h:27 +msgid "Article" +msgstr "Articolo" + +#: ../data/gummi.glade.h:28 +msgid "Best Fit" +msgstr "Ottimale" + +#: ../data/gummi.glade.h:29 +msgid "Bibliography" +msgstr "Bibliografia" + +#: ../data/gummi.glade.h:30 +msgid "Bold text" +msgstr "Grassetto" + +#: ../data/gummi.glade.h:31 +msgid "Book" +msgstr "Libro" + +#: ../data/gummi.glade.h:32 +msgid "Border all cells" +msgstr "Borda tutte le celle" + +#: ../data/gummi.glade.h:33 +msgid "Border outline" +msgstr "Bordo esterno" + +#: ../data/gummi.glade.h:34 +msgid "Braces" +msgstr "Graffe" + +#: ../data/gummi.glade.h:35 +msgid "Bracket:" +msgstr "Parentesi:" + +#: ../data/gummi.glade.h:36 +msgid "Brackets" +msgstr "Quadre" + +#: ../data/gummi.glade.h:37 +msgid "Caption:" +msgstr "Didascalia" + +#: ../data/gummi.glade.h:38 +msgid "Center text" +msgstr "Centrato" + +#: ../data/gummi.glade.h:39 +msgid "Check _Updates" +msgstr "Controlla aggiornamenti" + +#: ../data/gummi.glade.h:40 +msgid "Columns:" +msgstr "Colonne:" + +#: ../data/gummi.glade.h:41 +msgid "Compile" +msgstr "Compila" + +#: ../data/gummi.glade.h:42 +msgid "Create a new document" +msgstr "Crea un nuovo documento" + +#: ../data/gummi.glade.h:43 +msgid "Create new document.." +msgstr "Crea nuovo documento.." + +#: ../data/gummi.glade.h:44 +msgid "" +"Determines whether the\n" +"cells have line borders. " +msgstr "" +"Scegli se le celle\n" +"hanno un bordo" + +#: ../data/gummi.glade.h:46 +msgid "Double line" +msgstr "Linea doppia" + +#: ../data/gummi.glade.h:47 +msgid "Error output" +msgstr "Output di errore" + +#: ../data/gummi.glade.h:48 +msgid "" +"Error status for\n" +"active document" +msgstr "" +"Stato di errore\n" +"per il documento corrente" + +#: ../data/gummi.glade.h:50 +msgid "Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:51 +msgid "File:" +msgstr "File:" + +#: ../data/gummi.glade.h:52 +msgid "Filename:" +msgstr "Nome del file:" + +#: ../data/gummi.glade.h:53 +msgid "Find" +msgstr "Trova" + +#: ../data/gummi.glade.h:54 +msgid "Find Ne_xt" +msgstr "Trova successivo" + +#: ../data/gummi.glade.h:55 +msgid "Find Pre_vious" +msgstr "Trova precedente" + +#: ../data/gummi.glade.h:56 +msgid "Fit Page Width" +msgstr "Adatta alla larghezza" + +#: ../data/gummi.glade.h:57 +msgid "Gummi - LaTeX Editor" +msgstr "Gummi - Editor di LaTeX" + +#: ../data/gummi.glade.h:58 +msgid "Image" +msgstr "Immagine" + +#: ../data/gummi.glade.h:59 +msgid "Italic text" +msgstr "Corsivo" + +#: ../data/gummi.glade.h:60 +msgid "Label:" +msgstr "Etichetta:" + +#: ../data/gummi.glade.h:61 +msgid "Letter" +msgstr "Lettera" + +#: ../data/gummi.glade.h:62 +msgid "Load a file" +msgstr "Carica un file" + +#: ../data/gummi.glade.h:63 +msgid "Match case" +msgstr "Maiuscolo/Minuscole" + +#: ../data/gummi.glade.h:64 +msgid "Match entire word only" +msgstr "Solo parole intere" + +#: ../data/gummi.glade.h:65 +msgid "Matrix" +msgstr "Matrice" + +#: ../data/gummi.glade.h:66 ../src/gui.c:653 +msgid "N/A" +msgstr "N/A" + +#: ../data/gummi.glade.h:67 +msgid "New from _Template" +msgstr "Nuovo da modello" + +#: ../data/gummi.glade.h:68 +msgid "Next" +msgstr "Successivo" + +#: ../data/gummi.glade.h:69 +msgid "No borders" +msgstr "Nessun bordo" + +#: ../data/gummi.glade.h:70 +msgid "Open" +msgstr "Apri" + +#: ../data/gummi.glade.h:71 +msgid "Parentheses" +msgstr "Tonde" + +#: ../data/gummi.glade.h:72 +msgid "Preview Pane" +msgstr "Anteprima" + +#: ../data/gummi.glade.h:73 +msgid "Previous" +msgstr "Precedente" + +#: ../data/gummi.glade.h:74 +msgid "References:" +msgstr "Riferimenti" + +#: ../data/gummi.glade.h:75 +msgid "Replace _All" +msgstr "" + +#: ../data/gummi.glade.h:76 +msgid "Replace with:" +msgstr "" + +#: ../data/gummi.glade.h:77 +msgid "Report" +msgstr "Rapporto" + +#: ../data/gummi.glade.h:78 +msgid "Rows:" +msgstr "Righe:" + +#: ../data/gummi.glade.h:79 +msgid "Save" +msgstr "Salva" + +#: ../data/gummi.glade.h:80 +msgid "Save _As..." +msgstr "Salva con nome" + +#: ../data/gummi.glade.h:81 +msgid "Save the current file" +msgstr "Salva il documento corrente" + +#: ../data/gummi.glade.h:82 +msgid "Scale:" +msgstr "Scala:" + +#: ../data/gummi.glade.h:83 +msgid "Search backwards" +msgstr "Cerca all'indietro" + +#: ../data/gummi.glade.h:84 +msgid "Search for:" +msgstr "Cerca per:" + +#: ../data/gummi.glade.h:85 +msgid "Single line" +msgstr "Linea singola" + +#: ../data/gummi.glade.h:86 +msgid "Table" +msgstr "Tabella" + +#: ../data/gummi.glade.h:87 +msgid "Template options:" +msgstr "Opzioni per il modello:" + +#: ../data/gummi.glade.h:88 +msgid "Unbracketed" +msgstr "Senza parentesi" + +#: ../data/gummi.glade.h:89 +msgid "Underline text" +msgstr "Sottolineato" + +#: ../data/gummi.glade.h:90 +msgid "_Autocheck Spelling" +msgstr "Controllo ortografico automatico" + +#: ../data/gummi.glade.h:91 +msgid "_Compile Bibliography" +msgstr "Compila bibliografia" + +#: ../data/gummi.glade.h:92 +msgid "_Document Statistics" +msgstr "" + +#: ../data/gummi.glade.h:93 +msgid "_Edit" +msgstr "Modifica" + +#: ../data/gummi.glade.h:94 +msgid "_Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:95 +msgid "_File" +msgstr "File" + +#: ../data/gummi.glade.h:96 +msgid "_Fullscreen" +msgstr "Schermo intero" + +#: ../data/gummi.glade.h:97 +msgid "_Help" +msgstr "Aiuto" + +#: ../data/gummi.glade.h:98 +msgid "_Insert Bibliography" +msgstr "Inserisci bibliografia" + +#: ../data/gummi.glade.h:99 +msgid "_Open..." +msgstr "Apri..." + +#: ../data/gummi.glade.h:100 +msgid "_Replace" +msgstr "" + +#: ../data/gummi.glade.h:101 +msgid "_Right Pane" +msgstr "" + +#: ../data/gummi.glade.h:102 +msgid "_Search" +msgstr "Cerca" + +#: ../data/gummi.glade.h:103 +msgid "_Statusbar" +msgstr "Barra di stato" + +#: ../data/gummi.glade.h:104 +msgid "_Toolbar" +msgstr "Barra degli strumenti" + +#: ../data/gummi.glade.h:105 +msgid "_Tools" +msgstr "Strumenti" + +#: ../data/gummi.glade.h:106 +msgid "_View" +msgstr "Vista" + +#: ../data/gummi.glade.h:107 +msgid "filter:" +msgstr "filtra:" + +#: ../data/gummi.glade.h:108 ../src/gui.c:651 +msgid "no bibliography file detected" +msgstr "nessuna bibliografia trovata" + +#: ../data/gummi.glade.h:109 ../src/gui.c:652 +msgid "none" +msgstr "nessuno" + +#: ../data/gummi.glade.h:110 +msgid "of 0" +msgstr "di 0" + +#: ../data/gummi.glade.h:111 +msgid "shouldnotseeme" +msgstr "shouldnotseeme" + +#: ../data/gummi.glade.h:112 +msgid "toolbutton1" +msgstr "toolbutton1" + +#: ../data/gummi.glade.h:113 +msgid "toolbutton2" +msgstr "toolbutton2" + +#: ../data/gummi.glade.h:114 +msgid "toolbutton3" +msgstr "toolbutton3" + +#: ../data/gummi.glade.h:115 +msgid "toolbutton5" +msgstr "toolbutton5" + +#: ../data/gummi.glade.h:116 +msgid "toolbutton6" +msgstr "toolbutton6" + +#: ../data/gummi.glade.h:117 +msgid "toolbutton7" +msgstr "toolbutton7" + +#: ../data/prefs.glade.h:1 +msgid "Changes will become active on next start" +msgstr "I cambiamenti saranno attivi al riavvio" + +#: ../data/prefs.glade.h:2 +msgid "Default Text" +msgstr "Testo predefinito" + +#: ../data/prefs.glade.h:3 +msgid "Display line numbers" +msgstr "Mostrare i numeri di riga" + +#: ../data/prefs.glade.h:4 +msgid "Do not split words over two lines" +msgstr "Non dividere le parole su due righe" + +#: ../data/prefs.glade.h:5 +msgid "Editor" +msgstr "Editor" + +#: ../data/prefs.glade.h:6 +msgid "Editor font:" +msgstr "Caratteri dell'editor:" + +#: ../data/prefs.glade.h:7 +msgid "Enable text wrapping" +msgstr "Attivare a capo automatico" + +#: ../data/prefs.glade.h:8 +msgid "File saving:" +msgstr "Salvataggio file:" + +#: ../data/prefs.glade.h:9 +msgid "Gummi Preferences" +msgstr "Preferenze di Gummi" + +#: ../data/prefs.glade.h:10 +msgid "Highlight current line" +msgstr "Evidenzia la linea corrente" + +#: ../data/prefs.glade.h:11 +msgid "Highlighting:" +msgstr "Evidenziazione:" + +#: ../data/prefs.glade.h:12 +msgid "Line numbers:" +msgstr "Numeri di riga:" + +#: ../data/prefs.glade.h:13 +msgid "None" +msgstr "Nessuno" + +#: ../data/prefs.glade.h:14 +msgid "PDF Compiling" +msgstr "Compilazione PDF" + +#: ../data/prefs.glade.h:15 +msgid "PDF Compiling:" +msgstr "Compilazione PDF:" + +#: ../data/prefs.glade.h:16 +msgid "Spell check language:" +msgstr "Lingua controllo ortografico:" + +#: ../data/prefs.glade.h:17 +msgid "Text wrapping:" +msgstr "A capo automatico:" + +#: ../data/prefs.glade.h:18 +msgid "Typesetter command:" +msgstr "Comandi di composizione:" + +#: ../data/prefs.glade.h:19 +msgid "View" +msgstr "Visualizza" + +#: ../data/prefs.glade.h:20 +msgid "_Autosave files every" +msgstr "Salvataggio automatico ogni" + +#: ../data/prefs.glade.h:21 +msgid "_Reset defaults" +msgstr "Ripristina predefiniti" + +#: ../data/prefs.glade.h:22 +#, fuzzy +msgid "compile every" +msgstr "Compila automaticamente ogni" + +#: ../data/prefs.glade.h:23 +#, fuzzy +msgid "compile when idle for " +msgstr "Compila automaticamente ogni" + +#: ../data/prefs.glade.h:24 +msgid "minutes" +msgstr "minuti" + +#: ../data/prefs.glade.h:25 +msgid "pdflatex" +msgstr "pdflatex" + +#: ../data/prefs.glade.h:26 +msgid "seconds" +msgstr "secondi" + +#: ../data/prefs.glade.h:27 +msgid "xelatex" +msgstr "xelatex" + +#: ../src/editor.c:375 +msgid "Top reached, search from bottom?" +msgstr "" + +#: ../src/editor.c:382 +msgid "Bottom reached, search from top?" +msgstr "" + +#: ../src/gui.c:223 +#, fuzzy, c-format +msgid "Error loading recent file: %s" +msgstr "Errore nel caricare un file modificato di recente:" + +#: ../src/gui.c:614 +#, fuzzy +msgid "Compiling bibliography file..." +msgstr "Compilazione della bibliografia..." + +#: ../src/gui.c:616 +msgid "bibliography compiled without errors" +msgstr "bibliografia compilata senza errori" + +#: ../src/gui.c:618 +#, fuzzy +msgid "Error compiling bibliography file or none detected..." +msgstr "Errore compilando la bibliografia o nessun file trovato..." + +#: ../src/gui.c:621 +msgid "error compiling bibliography file" +msgstr "errore compilando la bibliografia" + +#: ../src/gui.c:645 +#, c-format +msgid "%s loaded" +msgstr "" + +#: ../src/gui.c:1074 +msgid "Do you want to save the changes you have made?" +msgstr "Salvare le modifiche al documento?" + +#: ../src/gui.c:1083 +msgid "Open File..." +msgstr "Apri file..." + +#: ../src/gui.c:1105 +msgid "Save File..." +msgstr "Salva file..." + +#: ../src/importer.c:122 +#, c-format +msgid "%s: No such file or directory\n" +msgstr "" + +#: ../src/iofunctions.c:94 +#, fuzzy, c-format +msgid "Saving %s..." +msgstr "Salva con nome" + +#: ../src/iofunctions.c:107 +#, c-format +msgid "" +"%s\n" +"Please try again later." +msgstr "" + +#: ../src/iofunctions.c:146 +msgid "Can not convert text to UTF-8!\n" +msgstr "" + +#: ../src/iofunctions.c:176 +#, fuzzy, c-format +msgid "Autosaving file %s" +msgstr "Salvataggio del file in corso" + +#: ../src/updatecheck.c:113 +#, fuzzy, c-format +msgid "" +"Currently installed:\n" +"%s\n" +"\n" +"Currently available:\n" +"%s" +msgstr "" +"\n" +"\n" +"Attualmente disponibile:\n" + +#: ../src/utils.c:88 +#, c-format +msgid "" +"\n" +"Gummi has encountered a serious error and require restart, your can find " +"your file in the %s directory\n" +msgstr "" + +#: ../src/utils.c:128 +#, fuzzy +msgid "Confirmation" +msgstr "Didascalia" + +#~ msgid "Save?" +#~ msgstr "Salvare?" + +#~ msgid "Currently installed:\n" +#~ msgstr "Attualmente installata:\n" + +#, fuzzy +#~ msgid "" +#~ "PDF-Preview could not initialize.\n" +#~ "\n" +#~ "It appears your LaTeX document contains errors or\n" +#~ "the program `%s' was not installed.\n" +#~ "Additional information is available on the Error Output tab.\n" +#~ "Please correct the listed errors and click this area\n" +#~ "to reload the preview panel." +#~ msgstr "" +#~ "L'anteprima PDF non può essere inizializzata\n" +#~ "\n" +#~ "Sembra che il documento LaTeX contenga errori.\n" +#~ "Informazioni aggiuntive sono disponibili nella scheda Output di errore.\n" +#~ "Correggere gli errori elencati e fare clic su quest'area\n" +#~ "per caricare nuovamente l'anteprima." + +#~ msgid "Update Check" +#~ msgstr "Controlla aggiornamenti" + +#~ msgid "" +#~ "The server could not be contacted.\n" +#~ "\n" +#~ msgstr "" +#~ "Il server non può essere raggiunto.\n" +#~ "\n" + +#~ msgid "This function requires an active\n" +#~ msgstr "Questa funzione richiede\n" + +#~ msgid "internet connection." +#~ msgstr "una connessione internet attiva." + +#~ msgid "Error" +#~ msgstr "Errore" diff --git a/po/nl_NL.po b/po/nl_NL.po new file mode 100644 index 00000000..bcbc764e --- /dev/null +++ b/po/nl_NL.po @@ -0,0 +1,702 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-09-10 10:02+0800\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Alexander van der Mey \n" +"Language-Team: Dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../data/gummi.glade.h:1 +msgid " " +msgstr "" + +#: ../data/gummi.glade.h:2 +msgid ".." +msgstr "" + +#: ../data/gummi.glade.h:3 +msgid "0" +msgstr "" + +#: ../data/gummi.glade.h:5 +#, no-c-format +msgid "100%" +msgstr "" + +#: ../data/gummi.glade.h:7 +#, no-c-format +msgid "125%" +msgstr "" + +#: ../data/gummi.glade.h:9 +#, no-c-format +msgid "150%" +msgstr "" + +#: ../data/gummi.glade.h:11 +#, no-c-format +msgid "200%" +msgstr "" + +#: ../data/gummi.glade.h:13 +#, no-c-format +msgid "300%" +msgstr "" + +#: ../data/gummi.glade.h:15 +#, no-c-format +msgid "400%" +msgstr "" + +#: ../data/gummi.glade.h:17 +#, no-c-format +msgid "50%" +msgstr "" + +#: ../data/gummi.glade.h:19 +#, no-c-format +msgid "70%" +msgstr "" + +#: ../data/gummi.glade.h:21 +#, no-c-format +msgid "85%" +msgstr "" + +#: ../data/gummi.glade.h:22 +msgid "Align center" +msgstr "Gecentreerd" + +#: ../data/gummi.glade.h:23 +msgid "Align left" +msgstr "Links uitlijnen" + +#: ../data/gummi.glade.h:24 +msgid "Align right" +msgstr "Rechts uitlijnen" + +#: ../data/gummi.glade.h:25 +msgid "" +"Alignment of the\n" +"cell content." +msgstr "Uitlijning van de cel inhoud" + +#: ../data/gummi.glade.h:27 +msgid "Article" +msgstr "Artikel" + +#: ../data/gummi.glade.h:28 +msgid "Best Fit" +msgstr "Passend" + +#: ../data/gummi.glade.h:29 +msgid "Bibliography" +msgstr "Bibliografie" + +#: ../data/gummi.glade.h:30 +msgid "Bold text" +msgstr "Vette tekst" + +#: ../data/gummi.glade.h:31 +msgid "Book" +msgstr "Boek" + +#: ../data/gummi.glade.h:32 +msgid "Border all cells" +msgstr "Omlijn alle cellen" + +#: ../data/gummi.glade.h:33 +msgid "Border outline" +msgstr "Omlijn buitenkant" + +#: ../data/gummi.glade.h:34 +msgid "Braces" +msgstr "Braces" + +#: ../data/gummi.glade.h:35 +msgid "Bracket:" +msgstr "Bracket:" + +#: ../data/gummi.glade.h:36 +msgid "Brackets" +msgstr "Brackets:" + +#: ../data/gummi.glade.h:37 +msgid "Caption:" +msgstr "Onderschrift:" + +#: ../data/gummi.glade.h:38 +msgid "Center text" +msgstr "Centreer tekst" + +#: ../data/gummi.glade.h:39 +msgid "Check _Updates" +msgstr "Controleer _Updates" + +#: ../data/gummi.glade.h:40 +msgid "Columns:" +msgstr "Kolommen" + +#: ../data/gummi.glade.h:41 +msgid "Compile" +msgstr "Compileer" + +#: ../data/gummi.glade.h:42 +msgid "Create a new document" +msgstr "Creer nieuw document" + +#: ../data/gummi.glade.h:43 +msgid "Create new document.." +msgstr "Creer nieuw document" + +#: ../data/gummi.glade.h:44 +msgid "" +"Determines whether the\n" +"cells have line borders. " +msgstr "" +"Bepaalt of de cellen\n" +"randen hebben" + +#: ../data/gummi.glade.h:46 +msgid "Double line" +msgstr "Dubbele lijn" + +#: ../data/gummi.glade.h:47 +msgid "Error output" +msgstr "Fouten overzicht" + +#: ../data/gummi.glade.h:48 +msgid "" +"Error status for\n" +"active document" +msgstr "" +"Fout status voor\n" +"actieve document" + +#: ../data/gummi.glade.h:50 +msgid "Export to PDF" +msgstr "Exporteer naar PDF" + +#: ../data/gummi.glade.h:51 +msgid "File:" +msgstr "Bestand:" + +#: ../data/gummi.glade.h:52 +msgid "Filename:" +msgstr "Bestandsnaam:" + +#: ../data/gummi.glade.h:53 +msgid "Find" +msgstr "Zoeken" + +#: ../data/gummi.glade.h:54 +msgid "Find Ne_xt" +msgstr "Zoek volgende" + +#: ../data/gummi.glade.h:55 +msgid "Find Pre_vious" +msgstr "Zoek vorige" + +#: ../data/gummi.glade.h:56 +msgid "Fit Page Width" +msgstr "Paginabreed" + +#: ../data/gummi.glade.h:57 +msgid "Gummi - LaTeX Editor" +msgstr "" + +#: ../data/gummi.glade.h:58 +msgid "Image" +msgstr "Afbeelding" + +#: ../data/gummi.glade.h:59 +msgid "Italic text" +msgstr "Cursief" + +#: ../data/gummi.glade.h:60 +msgid "Label:" +msgstr "Label:" + +#: ../data/gummi.glade.h:61 +msgid "Letter" +msgstr "Letter" + +#: ../data/gummi.glade.h:62 +msgid "Load a file" +msgstr "Openen" + +#: ../data/gummi.glade.h:63 +msgid "Match case" +msgstr "Hoofdlettergevoelig" + +#: ../data/gummi.glade.h:64 +msgid "Match entire word only" +msgstr "Enkel complete woorden" + +#: ../data/gummi.glade.h:65 +msgid "Matrix" +msgstr "" + +#: ../data/gummi.glade.h:66 ../src/gui.c:653 +msgid "N/A" +msgstr "" + +#: ../data/gummi.glade.h:67 +msgid "New from _Template" +msgstr "Nieuw vanuit template" + +#: ../data/gummi.glade.h:68 +msgid "Next" +msgstr "Volgende" + +#: ../data/gummi.glade.h:69 +msgid "No borders" +msgstr "Geen omlijning" + +#: ../data/gummi.glade.h:70 +msgid "Open" +msgstr "Openen" + +#: ../data/gummi.glade.h:71 +msgid "Parentheses" +msgstr "" + +#: ../data/gummi.glade.h:72 +msgid "Preview Pane" +msgstr "Voorproef paneel" + +#: ../data/gummi.glade.h:73 +msgid "Previous" +msgstr "Vorige" + +#: ../data/gummi.glade.h:74 +msgid "References:" +msgstr "Referenties:" + +#: ../data/gummi.glade.h:75 +msgid "Replace _All" +msgstr "Alles vervangen" + +#: ../data/gummi.glade.h:76 +msgid "Replace with:" +msgstr "Vervangen door:" + +#: ../data/gummi.glade.h:77 +msgid "Report" +msgstr "" + +#: ../data/gummi.glade.h:78 +msgid "Rows:" +msgstr "Rijen:" + +#: ../data/gummi.glade.h:79 +msgid "Save" +msgstr "Opslaan" + +#: ../data/gummi.glade.h:80 +msgid "Save _As..." +msgstr "Opslaan als" + +#: ../data/gummi.glade.h:81 +msgid "Save the current file" +msgstr "" + +#: ../data/gummi.glade.h:82 +msgid "Scale:" +msgstr "Schaal:" + +#: ../data/gummi.glade.h:83 +msgid "Search backwards" +msgstr "Achterwaards zoeken" + +#: ../data/gummi.glade.h:84 +msgid "Search for:" +msgstr "Zoeken naar:" + +#: ../data/gummi.glade.h:85 +msgid "Single line" +msgstr "Enkele lijn" + +#: ../data/gummi.glade.h:86 +msgid "Table" +msgstr "Tabel" + +#: ../data/gummi.glade.h:87 +msgid "Template options:" +msgstr "" + +#: ../data/gummi.glade.h:88 +#, fuzzy +msgid "Unbracketed" +msgstr "Bracket:" + +#: ../data/gummi.glade.h:89 +msgid "Underline text" +msgstr "Onderstreep tekst" + +#: ../data/gummi.glade.h:90 +msgid "_Autocheck Spelling" +msgstr "Controleer spelling" + +#: ../data/gummi.glade.h:91 +msgid "_Compile Bibliography" +msgstr "Compileer bibliografie" + +#: ../data/gummi.glade.h:92 +msgid "_Document Statistics" +msgstr "Document statistieken" + +#: ../data/gummi.glade.h:93 +msgid "_Edit" +msgstr "Wijzig" + +#: ../data/gummi.glade.h:94 +msgid "_Export to PDF" +msgstr "Exporteer naar PDF" + +#: ../data/gummi.glade.h:95 +msgid "_File" +msgstr "Bestand" + +#: ../data/gummi.glade.h:96 +msgid "_Fullscreen" +msgstr "Volledig scherm" + +#: ../data/gummi.glade.h:97 +msgid "_Help" +msgstr "" + +#: ../data/gummi.glade.h:98 +msgid "_Insert Bibliography" +msgstr "Bibliografie invoegen" + +#: ../data/gummi.glade.h:99 +msgid "_Open..." +msgstr "" + +#: ../data/gummi.glade.h:100 +msgid "_Replace" +msgstr "Vervang" + +#: ../data/gummi.glade.h:101 +msgid "_Right Pane" +msgstr "Zijpaneel" + +#: ../data/gummi.glade.h:102 +msgid "_Search" +msgstr "Zoeken" + +#: ../data/gummi.glade.h:103 +msgid "_Statusbar" +msgstr "Statusbalk" + +#: ../data/gummi.glade.h:104 +msgid "_Toolbar" +msgstr "Werkbalk" + +#: ../data/gummi.glade.h:105 +msgid "_Tools" +msgstr "" + +#: ../data/gummi.glade.h:106 +msgid "_View" +msgstr "Bekijk" + +#: ../data/gummi.glade.h:107 +msgid "filter:" +msgstr "" + +#: ../data/gummi.glade.h:108 ../src/gui.c:651 +msgid "no bibliography file detected" +msgstr "Geen bibliografie bestanden gedetecteerd" + +#: ../data/gummi.glade.h:109 ../src/gui.c:652 +msgid "none" +msgstr "" + +#: ../data/gummi.glade.h:110 +msgid "of 0" +msgstr "" + +#: ../data/gummi.glade.h:111 +msgid "shouldnotseeme" +msgstr "" + +#: ../data/gummi.glade.h:112 +msgid "toolbutton1" +msgstr "" + +#: ../data/gummi.glade.h:113 +msgid "toolbutton2" +msgstr "" + +#: ../data/gummi.glade.h:114 +msgid "toolbutton3" +msgstr "" + +#: ../data/gummi.glade.h:115 +msgid "toolbutton5" +msgstr "" + +#: ../data/gummi.glade.h:116 +msgid "toolbutton6" +msgstr "" + +#: ../data/gummi.glade.h:117 +msgid "toolbutton7" +msgstr "" + +#: ../data/prefs.glade.h:1 +msgid "Changes will become active on next start" +msgstr "Wijzigingen worden actief bij volgende start" + +#: ../data/prefs.glade.h:2 +msgid "Default Text" +msgstr "Standaard tekst" + +#: ../data/prefs.glade.h:3 +msgid "Display line numbers" +msgstr "Regelnummers weergeven" + +#: ../data/prefs.glade.h:4 +msgid "Do not split words over two lines" +msgstr "Woorden niet over twee regels splitsen" + +#: ../data/prefs.glade.h:5 +msgid "Editor" +msgstr "" + +#: ../data/prefs.glade.h:6 +msgid "Editor font:" +msgstr "Editor lettertype:" + +#: ../data/prefs.glade.h:7 +msgid "Enable text wrapping" +msgstr "Regelafbreking inschakelen" + +#: ../data/prefs.glade.h:8 +msgid "File saving:" +msgstr "Bestanden opslaan:" + +#: ../data/prefs.glade.h:9 +msgid "Gummi Preferences" +msgstr "Gummi Voorkeuren" + +#: ../data/prefs.glade.h:10 +msgid "Highlight current line" +msgstr "Huidige regel markeren" + +#: ../data/prefs.glade.h:11 +msgid "Highlighting:" +msgstr "Markering:" + +#: ../data/prefs.glade.h:12 +msgid "Line numbers:" +msgstr "Regelnummers:" + +#: ../data/prefs.glade.h:13 +msgid "None" +msgstr "" + +#: ../data/prefs.glade.h:14 +msgid "PDF Compiling" +msgstr "PDF Compilatie" + +#: ../data/prefs.glade.h:15 +msgid "PDF Compiling:" +msgstr "PDF Compilatie:" + +#: ../data/prefs.glade.h:16 +msgid "Spell check language:" +msgstr "Spell checker taal:" + +#: ../data/prefs.glade.h:17 +msgid "Text wrapping:" +msgstr "Regelafbreking:" + +#: ../data/prefs.glade.h:18 +msgid "Typesetter command:" +msgstr "Typesetter commando:" + +#: ../data/prefs.glade.h:19 +msgid "View" +msgstr "Beeld" + +#: ../data/prefs.glade.h:20 +msgid "_Autosave files every" +msgstr "Automatisch bestanden opslaan elke" + +#: ../data/prefs.glade.h:21 +msgid "_Reset defaults" +msgstr "Herstel standaarden" + +#: ../data/prefs.glade.h:22 +msgid "compile every" +msgstr "compileer elke" + +#: ../data/prefs.glade.h:23 +msgid "compile when idle for " +msgstr "compileer wanneer idle voor" + +#: ../data/prefs.glade.h:24 +msgid "minutes" +msgstr "minuten" + +#: ../data/prefs.glade.h:25 +msgid "pdflatex" +msgstr "" + +#: ../data/prefs.glade.h:26 +msgid "seconds" +msgstr "seconden" + +#: ../data/prefs.glade.h:27 +msgid "xelatex" +msgstr "" + +#: ../src/editor.c:375 +msgid "Top reached, search from bottom?" +msgstr "" + +#: ../src/editor.c:382 +msgid "Bottom reached, search from top?" +msgstr "" + +#: ../src/gui.c:223 +#, c-format +msgid "Error loading recent file: %s" +msgstr "" + +#: ../src/gui.c:614 +#, fuzzy +msgid "Compiling bibliography file..." +msgstr "Compileer bibliografie" + +#: ../src/gui.c:616 +#, fuzzy +msgid "bibliography compiled without errors" +msgstr "Geen bibliografie bestanden gedetecteerd" + +#: ../src/gui.c:618 +#, fuzzy +msgid "Error compiling bibliography file or none detected..." +msgstr "Geen bibliografie bestanden gedetecteerd" + +#: ../src/gui.c:621 +#, fuzzy +msgid "error compiling bibliography file" +msgstr "Compileer bibliografie" + +#: ../src/gui.c:645 +#, c-format +msgid "%s loaded" +msgstr "" + +#: ../src/gui.c:1074 +msgid "Do you want to save the changes you have made?" +msgstr "" + +#: ../src/gui.c:1083 +msgid "Open File..." +msgstr "" + +#: ../src/gui.c:1105 +#, fuzzy +msgid "Save File..." +msgstr "Opslaan als" + +#: ../src/importer.c:122 +#, c-format +msgid "%s: No such file or directory\n" +msgstr "" + +#: ../src/iofunctions.c:94 +#, fuzzy, c-format +msgid "Saving %s..." +msgstr "Opslaan als" + +#: ../src/iofunctions.c:107 +#, c-format +msgid "" +"%s\n" +"Please try again later." +msgstr "" + +#: ../src/iofunctions.c:146 +msgid "Can not convert text to UTF-8!\n" +msgstr "" + +#: ../src/iofunctions.c:176 +#, fuzzy, c-format +msgid "Autosaving file %s" +msgstr "Enkele lijn" + +#: ../src/updatecheck.c:113 +#, fuzzy, c-format +msgid "" +"Currently installed:\n" +"%s\n" +"\n" +"Currently available:\n" +"%s" +msgstr "" +"\n" +"\n" +"Momenteel verkrijgbaar:\n" + +#: ../src/utils.c:88 +#, c-format +msgid "" +"\n" +"Gummi has encountered a serious error and require restart, your can find " +"your file in the %s directory\n" +msgstr "" + +#: ../src/utils.c:128 +#, fuzzy +msgid "Confirmation" +msgstr "Onderschrift:" + +#, fuzzy +#~ msgid "Save?" +#~ msgstr "Opslaan" + +#~ msgid "Currently installed:\n" +#~ msgstr "Momenteel genstalleerd:\n" + +#~ msgid "" +#~ "PDF-Preview could not initialize.\n" +#~ "\n" +#~ "It appears your LaTeX document contains errors or\n" +#~ "the program `%s' was not installed.\n" +#~ "Additional information is available on the Error Output tab.\n" +#~ "Please correct the listed errors and click this area\n" +#~ "to reload the preview panel." +#~ msgstr "PDF preview kon niet genitialiseerd worden." + +#~ msgid "Update Check" +#~ msgstr "Controleer Updates" + +#~ msgid "" +#~ "The server could not be contacted.\n" +#~ "\n" +#~ msgstr "De server kon niet bereikt worden.\n" + +#~ msgid "This function requires an active\n" +#~ msgstr "Deze functie vereist een actieve\n" + +#~ msgid "internet connection." +#~ msgstr "internet verbinding." + +#~ msgid "Error" +#~ msgstr "Fout" diff --git a/po/pt_BR.po b/po/pt_BR.po new file mode 100644 index 00000000..a7840dc7 --- /dev/null +++ b/po/pt_BR.po @@ -0,0 +1,711 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-09-10 10:02+0800\n" +"PO-Revision-Date: 2010-06-27 23:14-0300\n" +"Last-Translator: Fernando Governatore Cruz \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../data/gummi.glade.h:1 +msgid " " +msgstr " " + +#: ../data/gummi.glade.h:2 +msgid ".." +msgstr ".." + +#: ../data/gummi.glade.h:3 +msgid "0" +msgstr "0" + +#: ../data/gummi.glade.h:5 +#, no-c-format +msgid "100%" +msgstr "100%" + +#: ../data/gummi.glade.h:7 +#, no-c-format +msgid "125%" +msgstr "125%" + +#: ../data/gummi.glade.h:9 +#, no-c-format +msgid "150%" +msgstr "150%" + +#: ../data/gummi.glade.h:11 +#, no-c-format +msgid "200%" +msgstr "200%" + +#: ../data/gummi.glade.h:13 +#, no-c-format +msgid "300%" +msgstr "300%" + +#: ../data/gummi.glade.h:15 +#, no-c-format +msgid "400%" +msgstr "400%" + +#: ../data/gummi.glade.h:17 +#, no-c-format +msgid "50%" +msgstr "50%" + +#: ../data/gummi.glade.h:19 +#, no-c-format +msgid "70%" +msgstr "70%" + +#: ../data/gummi.glade.h:21 +#, no-c-format +msgid "85%" +msgstr "85%" + +#: ../data/gummi.glade.h:22 +msgid "Align center" +msgstr "Centralizar" + +#: ../data/gummi.glade.h:23 +msgid "Align left" +msgstr "À esquerda" + +#: ../data/gummi.glade.h:24 +msgid "Align right" +msgstr "À direita" + +#: ../data/gummi.glade.h:25 +msgid "" +"Alignment of the\n" +"cell content." +msgstr "" +"Alinhamento do\n" +"conteúdo da celula" + +#: ../data/gummi.glade.h:27 +msgid "Article" +msgstr "Artigo" + +#: ../data/gummi.glade.h:28 +msgid "Best Fit" +msgstr "Melhor encaixe" + +#: ../data/gummi.glade.h:29 +msgid "Bibliography" +msgstr "Bibliografia" + +#: ../data/gummi.glade.h:30 +msgid "Bold text" +msgstr "Negrito" + +#: ../data/gummi.glade.h:31 +msgid "Book" +msgstr "Livro" + +#: ../data/gummi.glade.h:32 +msgid "Border all cells" +msgstr "Todas celulas com bordas" + +#: ../data/gummi.glade.h:33 +msgid "Border outline" +msgstr "Desenho da borda" + +#: ../data/gummi.glade.h:34 +msgid "Braces" +msgstr "Chaves" + +#: ../data/gummi.glade.h:35 +msgid "Bracket:" +msgstr "Colchete:" + +#: ../data/gummi.glade.h:36 +msgid "Brackets" +msgstr "Colchetes" + +#: ../data/gummi.glade.h:37 +msgid "Caption:" +msgstr "Legenda" + +#: ../data/gummi.glade.h:38 +msgid "Center text" +msgstr "Centralizar texto" + +#: ../data/gummi.glade.h:39 +msgid "Check _Updates" +msgstr "Verificar por _atualizações" + +#: ../data/gummi.glade.h:40 +msgid "Columns:" +msgstr "Colunas:" + +#: ../data/gummi.glade.h:41 +msgid "Compile" +msgstr "Compilar" + +#: ../data/gummi.glade.h:42 +msgid "Create a new document" +msgstr "Criar um novo documento" + +#: ../data/gummi.glade.h:43 +msgid "Create new document.." +msgstr "Criar novo documento..." + +#: ../data/gummi.glade.h:44 +msgid "" +"Determines whether the\n" +"cells have line borders. " +msgstr "" +"Define se as celulas\n" +"tem linhas na borda" + +#: ../data/gummi.glade.h:46 +msgid "Double line" +msgstr "Linha dupla" + +#: ../data/gummi.glade.h:47 +#, fuzzy +msgid "Error output" +msgstr "Erros" + +#: ../data/gummi.glade.h:48 +msgid "" +"Error status for\n" +"active document" +msgstr "" +"Status de erro para\n" +"o documento ativo" + +#: ../data/gummi.glade.h:50 +msgid "Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:51 +msgid "File:" +msgstr "Arquivo:" + +#: ../data/gummi.glade.h:52 +msgid "Filename:" +msgstr "Nome do arquivo:" + +#: ../data/gummi.glade.h:53 +msgid "Find" +msgstr "Procurar" + +#: ../data/gummi.glade.h:54 +msgid "Find Ne_xt" +msgstr "Encontrar _Proximo" + +#: ../data/gummi.glade.h:55 +msgid "Find Pre_vious" +msgstr "Encontrar _Anterior" + +#: ../data/gummi.glade.h:56 +msgid "Fit Page Width" +msgstr "Ajustar à largura" + +#: ../data/gummi.glade.h:57 +msgid "Gummi - LaTeX Editor" +msgstr "Gummi - Editor LaTeX" + +#: ../data/gummi.glade.h:58 +msgid "Image" +msgstr "Imagem" + +#: ../data/gummi.glade.h:59 +msgid "Italic text" +msgstr "Texto em itálico" + +#: ../data/gummi.glade.h:60 +msgid "Label:" +msgstr "Etiqueta:" + +#: ../data/gummi.glade.h:61 +msgid "Letter" +msgstr "Carta" + +#: ../data/gummi.glade.h:62 +msgid "Load a file" +msgstr "Carregar arquivo" + +#: ../data/gummi.glade.h:63 +msgid "Match case" +msgstr "Casar maiúsculas/minusculas" + +#: ../data/gummi.glade.h:64 +msgid "Match entire word only" +msgstr "Encontrar somente palvras completas" + +#: ../data/gummi.glade.h:65 +msgid "Matrix" +msgstr "Matriz" + +#: ../data/gummi.glade.h:66 ../src/gui.c:653 +msgid "N/A" +msgstr "N/D" + +#: ../data/gummi.glade.h:67 +msgid "New from _Template" +msgstr "Novo a partir de _Modelo" + +#: ../data/gummi.glade.h:68 +msgid "Next" +msgstr "Pŕoximo" + +#: ../data/gummi.glade.h:69 +msgid "No borders" +msgstr "Sem borda" + +#: ../data/gummi.glade.h:70 +msgid "Open" +msgstr "Abrir" + +#: ../data/gummi.glade.h:71 +msgid "Parentheses" +msgstr "Parênteses" + +#: ../data/gummi.glade.h:72 +msgid "Preview Pane" +msgstr "painel de pre-visualização" + +#: ../data/gummi.glade.h:73 +msgid "Previous" +msgstr "Anterior" + +#: ../data/gummi.glade.h:74 +msgid "References:" +msgstr "Referências:" + +#: ../data/gummi.glade.h:75 +msgid "Replace _All" +msgstr "" + +#: ../data/gummi.glade.h:76 +msgid "Replace with:" +msgstr "" + +#: ../data/gummi.glade.h:77 +msgid "Report" +msgstr "Relatório" + +#: ../data/gummi.glade.h:78 +msgid "Rows:" +msgstr "Linhas" + +#: ../data/gummi.glade.h:79 +msgid "Save" +msgstr "Salvar" + +#: ../data/gummi.glade.h:80 +msgid "Save _As..." +msgstr "Salvar _Como..." + +#: ../data/gummi.glade.h:81 +msgid "Save the current file" +msgstr "Salvar arquivo atual" + +#: ../data/gummi.glade.h:82 +msgid "Scale:" +msgstr "Escala:" + +#: ../data/gummi.glade.h:83 +msgid "Search backwards" +msgstr "Procurar para atrás" + +#: ../data/gummi.glade.h:84 +msgid "Search for:" +msgstr "Procurar por:" + +#: ../data/gummi.glade.h:85 +msgid "Single line" +msgstr "Linha única" + +#: ../data/gummi.glade.h:86 +msgid "Table" +msgstr "Tabela" + +#: ../data/gummi.glade.h:87 +msgid "Template options:" +msgstr "Opções de Modelo:" + +#: ../data/gummi.glade.h:88 +msgid "Unbracketed" +msgstr "Sem colchetes" + +#: ../data/gummi.glade.h:89 +msgid "Underline text" +msgstr "Sublinhar texto" + +#: ../data/gummi.glade.h:90 +msgid "_Autocheck Spelling" +msgstr "Checar Ortografia _Automaticamente" + +#: ../data/gummi.glade.h:91 +msgid "_Compile Bibliography" +msgstr "_Compilar Bibliografia" + +#: ../data/gummi.glade.h:92 +msgid "_Document Statistics" +msgstr "" + +#: ../data/gummi.glade.h:93 +msgid "_Edit" +msgstr "_Editar" + +#: ../data/gummi.glade.h:94 +msgid "_Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:95 +msgid "_File" +msgstr "_Arquivo" + +#: ../data/gummi.glade.h:96 +msgid "_Fullscreen" +msgstr "Tela _Cheia" + +#: ../data/gummi.glade.h:97 +msgid "_Help" +msgstr "A_juda" + +#: ../data/gummi.glade.h:98 +msgid "_Insert Bibliography" +msgstr "_Inserir Bibliografia" + +#: ../data/gummi.glade.h:99 +msgid "_Open..." +msgstr "_Abrir" + +#: ../data/gummi.glade.h:100 +msgid "_Replace" +msgstr "" + +#: ../data/gummi.glade.h:101 +msgid "_Right Pane" +msgstr "" + +#: ../data/gummi.glade.h:102 +msgid "_Search" +msgstr "_Procurar" + +#: ../data/gummi.glade.h:103 +msgid "_Statusbar" +msgstr "_Barra de status" + +#: ../data/gummi.glade.h:104 +msgid "_Toolbar" +msgstr "Barra de _Ferramentas" + +#: ../data/gummi.glade.h:105 +msgid "_Tools" +msgstr "Ferramentas" + +#: ../data/gummi.glade.h:106 +msgid "_View" +msgstr "_Visualizar" + +#: ../data/gummi.glade.h:107 +msgid "filter:" +msgstr "filtro:" + +#: ../data/gummi.glade.h:108 ../src/gui.c:651 +msgid "no bibliography file detected" +msgstr "nenhum arquivo de bibliografia encontrado" + +#: ../data/gummi.glade.h:109 ../src/gui.c:652 +msgid "none" +msgstr "nenhum" + +#: ../data/gummi.glade.h:110 +msgid "of 0" +msgstr "de 0" + +#: ../data/gummi.glade.h:111 +msgid "shouldnotseeme" +msgstr "naodeveriamever" + +#: ../data/gummi.glade.h:112 +msgid "toolbutton1" +msgstr "botao1" + +#: ../data/gummi.glade.h:113 +msgid "toolbutton2" +msgstr "botao2" + +#: ../data/gummi.glade.h:114 +msgid "toolbutton3" +msgstr "botao3" + +#: ../data/gummi.glade.h:115 +msgid "toolbutton5" +msgstr "botao5" + +#: ../data/gummi.glade.h:116 +msgid "toolbutton6" +msgstr "botao6" + +#: ../data/gummi.glade.h:117 +msgid "toolbutton7" +msgstr "botao7" + +#: ../data/prefs.glade.h:1 +msgid "Changes will become active on next start" +msgstr "Alterações serão efetivadas ao reiniciar" + +#: ../data/prefs.glade.h:2 +msgid "Default Text" +msgstr "Texto Padrão" + +#: ../data/prefs.glade.h:3 +msgid "Display line numbers" +msgstr "Mostrar número da linha" + +#: ../data/prefs.glade.h:4 +msgid "Do not split words over two lines" +msgstr "Não quebrar palavras entre duas linhas" + +#: ../data/prefs.glade.h:5 +msgid "Editor" +msgstr "Editor" + +#: ../data/prefs.glade.h:6 +msgid "Editor font:" +msgstr "Fonte do Editor" + +#: ../data/prefs.glade.h:7 +msgid "Enable text wrapping" +msgstr "Habilitar quebra de texto" + +#: ../data/prefs.glade.h:8 +msgid "File saving:" +msgstr "Gravando Arquivo:" + +#: ../data/prefs.glade.h:9 +msgid "Gummi Preferences" +msgstr "Preferências do Gummi" + +#: ../data/prefs.glade.h:10 +msgid "Highlight current line" +msgstr "Destacar linha atual" + +#: ../data/prefs.glade.h:11 +msgid "Highlighting:" +msgstr "Destaque:" + +#: ../data/prefs.glade.h:12 +msgid "Line numbers:" +msgstr "Números de linha:" + +#: ../data/prefs.glade.h:13 +msgid "None" +msgstr "Nenhum" + +#: ../data/prefs.glade.h:14 +msgid "PDF Compiling" +msgstr "Compilando PDF" + +#: ../data/prefs.glade.h:15 +msgid "PDF Compiling:" +msgstr "Compilando PDF:" + +#: ../data/prefs.glade.h:16 +msgid "Spell check language:" +msgstr "Lingua:" + +#: ../data/prefs.glade.h:17 +msgid "Text wrapping:" +msgstr "Quebra de texto:" + +#: ../data/prefs.glade.h:18 +msgid "Typesetter command:" +msgstr "" + +#: ../data/prefs.glade.h:19 +msgid "View" +msgstr "Visualizar" + +#: ../data/prefs.glade.h:20 +msgid "_Autosave files every" +msgstr "Salvar _Automáticamente à cada" + +#: ../data/prefs.glade.h:21 +msgid "_Reset defaults" +msgstr "_Reiniciar padrões" + +#: ../data/prefs.glade.h:22 +#, fuzzy +msgid "compile every" +msgstr "Compilar _Automáticamente à cada" + +#: ../data/prefs.glade.h:23 +#, fuzzy +msgid "compile when idle for " +msgstr "Compilar _Automáticamente à cada" + +#: ../data/prefs.glade.h:24 +msgid "minutes" +msgstr "minutos" + +#: ../data/prefs.glade.h:25 +msgid "pdflatex" +msgstr "pdflatex" + +#: ../data/prefs.glade.h:26 +msgid "seconds" +msgstr "segundos" + +#: ../data/prefs.glade.h:27 +msgid "xelatex" +msgstr "xelatex" + +#: ../src/editor.c:375 +msgid "Top reached, search from bottom?" +msgstr "" + +#: ../src/editor.c:382 +msgid "Bottom reached, search from top?" +msgstr "" + +#: ../src/gui.c:223 +#, fuzzy, c-format +msgid "Error loading recent file: %s" +msgstr "Erro ao carregar arquivo recente:" + +#: ../src/gui.c:614 +#, fuzzy +msgid "Compiling bibliography file..." +msgstr "Compilando arquivo de bibliografia" + +#: ../src/gui.c:616 +msgid "bibliography compiled without errors" +msgstr "Bibliografia compilada sem erros" + +#: ../src/gui.c:618 +#, fuzzy +msgid "Error compiling bibliography file or none detected..." +msgstr "" +"Erro compilando arquivo de bibliografia ou nenhum arquivo encontrado..." + +#: ../src/gui.c:621 +msgid "error compiling bibliography file" +msgstr "erro compilando arquivo de bibliografia" + +#: ../src/gui.c:645 +#, c-format +msgid "%s loaded" +msgstr "" + +#: ../src/gui.c:1074 +msgid "Do you want to save the changes you have made?" +msgstr "Deseja salvar as alterações feitas?" + +#: ../src/gui.c:1083 +msgid "Open File..." +msgstr "Abrir Arquivo..." + +#: ../src/gui.c:1105 +msgid "Save File..." +msgstr "Salvar arquivo..." + +#: ../src/importer.c:122 +#, c-format +msgid "%s: No such file or directory\n" +msgstr "" + +#: ../src/iofunctions.c:94 +#, fuzzy, c-format +msgid "Saving %s..." +msgstr "Salvar _Como..." + +#: ../src/iofunctions.c:107 +#, c-format +msgid "" +"%s\n" +"Please try again later." +msgstr "" + +#: ../src/iofunctions.c:146 +msgid "Can not convert text to UTF-8!\n" +msgstr "" + +#: ../src/iofunctions.c:176 +#, fuzzy, c-format +msgid "Autosaving file %s" +msgstr "Salvando arquivo" + +#: ../src/updatecheck.c:113 +#, fuzzy, c-format +msgid "" +"Currently installed:\n" +"%s\n" +"\n" +"Currently available:\n" +"%s" +msgstr "" +"\n" +"\n" +"Disponível:\n" + +#: ../src/utils.c:88 +#, c-format +msgid "" +"\n" +"Gummi has encountered a serious error and require restart, your can find " +"your file in the %s directory\n" +msgstr "" + +#: ../src/utils.c:128 +#, fuzzy +msgid "Confirmation" +msgstr "Legenda" + +#~ msgid "Save?" +#~ msgstr "Salvar?" + +#~ msgid "Currently installed:\n" +#~ msgstr "Instalado:\n" + +#, fuzzy +#~ msgid "" +#~ "PDF-Preview could not initialize.\n" +#~ "\n" +#~ "It appears your LaTeX document contains errors or\n" +#~ "the program `%s' was not installed.\n" +#~ "Additional information is available on the Error Output tab.\n" +#~ "Please correct the listed errors and click this area\n" +#~ "to reload the preview panel." +#~ msgstr "" +#~ "PDF-Preview não pode ser inicializado\n" +#~ "\n" +#~ "Aparentemente seu documento LaTeX contém erros.\n" +#~ "Mais Informações estão disponíveis na aba Erro.\n" +#~ "Favor corrigir os erros listados e clicar nesta area\n" +#~ "para recarregar o painel de pré-visulização" + +#~ msgid "Update Check" +#~ msgstr "Atualizar checagem" + +#~ msgid "" +#~ "The server could not be contacted.\n" +#~ "\n" +#~ msgstr "" +#~ "O serivdor não pôde ser contactado\n" +#~ "\n" + +#~ msgid "This function requires an active\n" +#~ msgstr "Esta função precisa de uma\n" + +#~ msgid "internet connection." +#~ msgstr "conexão à internet" + +#~ msgid "Error" +#~ msgstr "Erro" diff --git a/po/ru.po b/po/ru.po new file mode 100644 index 00000000..3117708f --- /dev/null +++ b/po/ru.po @@ -0,0 +1,676 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# kruvalig , 2010. +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-09-10 10:02+0800\n" +"PO-Revision-Date: 2010-05-23 16:18+0400\n" +"Last-Translator: kruvalig \n" +"Language-Team: fedora-trans-ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: ru\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"X-Generator: Virtaal 0.5.2\n" + +#: ../data/gummi.glade.h:1 +msgid " " +msgstr " " + +#: ../data/gummi.glade.h:2 +msgid ".." +msgstr ".." + +#: ../data/gummi.glade.h:3 +msgid "0" +msgstr "0" + +#: ../data/gummi.glade.h:5 +#, no-c-format +msgid "100%" +msgstr "100%" + +#: ../data/gummi.glade.h:7 +#, no-c-format +msgid "125%" +msgstr "125%" + +#: ../data/gummi.glade.h:9 +#, no-c-format +msgid "150%" +msgstr "150%" + +#: ../data/gummi.glade.h:11 +#, no-c-format +msgid "200%" +msgstr "200%" + +#: ../data/gummi.glade.h:13 +#, no-c-format +msgid "300%" +msgstr "300%" + +#: ../data/gummi.glade.h:15 +#, no-c-format +msgid "400%" +msgstr "400%" + +#: ../data/gummi.glade.h:17 +#, no-c-format +msgid "50%" +msgstr "50%" + +#: ../data/gummi.glade.h:19 +#, no-c-format +msgid "70%" +msgstr "70%" + +#: ../data/gummi.glade.h:21 +#, no-c-format +msgid "85%" +msgstr "85%" + +#: ../data/gummi.glade.h:22 +msgid "Align center" +msgstr "Выровнять по центру" + +#: ../data/gummi.glade.h:23 +msgid "Align left" +msgstr "Выровнять по левому краю" + +#: ../data/gummi.glade.h:24 +msgid "Align right" +msgstr "Выровнять по правому краю" + +#: ../data/gummi.glade.h:25 +msgid "" +"Alignment of the\n" +"cell content." +msgstr "" +"Выравнивание\n" +"содержимого ячейки." + +#: ../data/gummi.glade.h:27 +msgid "Article" +msgstr "Статья" + +#: ../data/gummi.glade.h:28 +msgid "Best Fit" +msgstr "Лучший вид" + +#: ../data/gummi.glade.h:29 +msgid "Bibliography" +msgstr "Библиография" + +#: ../data/gummi.glade.h:30 +msgid "Bold text" +msgstr "Жирный текст" + +#: ../data/gummi.glade.h:31 +msgid "Book" +msgstr "Книга" + +#: ../data/gummi.glade.h:32 +msgid "Border all cells" +msgstr "Обрамление всех ячеек" + +#: ../data/gummi.glade.h:33 +msgid "Border outline" +msgstr "Обрамление контура" + +#: ../data/gummi.glade.h:34 +msgid "Braces" +msgstr "Фигурные скобки" + +#: ../data/gummi.glade.h:35 +msgid "Bracket:" +msgstr "Скобки:" + +#: ../data/gummi.glade.h:36 +msgid "Brackets" +msgstr "Cкобки" + +#: ../data/gummi.glade.h:37 +msgid "Caption:" +msgstr "Заголовок:" + +#: ../data/gummi.glade.h:38 +msgid "Center text" +msgstr "Центрировать текст" + +#: ../data/gummi.glade.h:39 +msgid "Check _Updates" +msgstr "Проверить _обновления" + +#: ../data/gummi.glade.h:40 +msgid "Columns:" +msgstr "Колонки:" + +#: ../data/gummi.glade.h:41 +msgid "Compile" +msgstr "Скомпилировать" + +#: ../data/gummi.glade.h:42 +msgid "Create a new document" +msgstr "Создать новый документ" + +#: ../data/gummi.glade.h:43 +msgid "Create new document.." +msgstr "Создать новый документ.." + +#: ../data/gummi.glade.h:44 +msgid "" +"Determines whether the\n" +"cells have line borders. " +msgstr "" +"Определить будут ли\n" +"ячейки иметь границы. " + +#: ../data/gummi.glade.h:46 +msgid "Double line" +msgstr "Двойная линия" + +#: ../data/gummi.glade.h:47 +msgid "Error output" +msgstr "Вывод ошибок" + +#: ../data/gummi.glade.h:48 +msgid "" +"Error status for\n" +"active document" +msgstr "" +"Предупреждения об ошибках\n" +"активного документа" + +#: ../data/gummi.glade.h:50 +msgid "Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:51 +msgid "File:" +msgstr "Файл:" + +#: ../data/gummi.glade.h:52 +msgid "Filename:" +msgstr "Имя файла:" + +#: ../data/gummi.glade.h:53 +msgid "Find" +msgstr "Найти" + +#: ../data/gummi.glade.h:54 +msgid "Find Ne_xt" +msgstr "Найти _далее" + +#: ../data/gummi.glade.h:55 +msgid "Find Pre_vious" +msgstr "_Обратный поиск" + +#: ../data/gummi.glade.h:56 +msgid "Fit Page Width" +msgstr "По ширине страницы" + +#: ../data/gummi.glade.h:57 +msgid "Gummi - LaTeX Editor" +msgstr "Gummi - редактор LaTeX" + +#: ../data/gummi.glade.h:58 +msgid "Image" +msgstr "Изображение" + +#: ../data/gummi.glade.h:59 +msgid "Italic text" +msgstr "Курсив" + +#: ../data/gummi.glade.h:60 +msgid "Label:" +msgstr "Ярлык:" + +#: ../data/gummi.glade.h:61 +msgid "Letter" +msgstr "Письмо" + +#: ../data/gummi.glade.h:62 +msgid "Load a file" +msgstr "Открыть файл" + +#: ../data/gummi.glade.h:63 +msgid "Match case" +msgstr "Учитывать регистр" + +#: ../data/gummi.glade.h:64 +msgid "Match entire word only" +msgstr "Полное совпадения слов" + +#: ../data/gummi.glade.h:65 +msgid "Matrix" +msgstr "Матрица" + +#: ../data/gummi.glade.h:66 ../src/gui.c:653 +msgid "N/A" +msgstr "N/A" + +#: ../data/gummi.glade.h:67 +msgid "New from _Template" +msgstr "Документ из _шаблона" + +#: ../data/gummi.glade.h:68 +msgid "Next" +msgstr "Далее" + +#: ../data/gummi.glade.h:69 +msgid "No borders" +msgstr "Без границ" + +#: ../data/gummi.glade.h:70 +msgid "Open" +msgstr "Открыть" + +#: ../data/gummi.glade.h:71 +msgid "Parentheses" +msgstr "Круглые скобки" + +#: ../data/gummi.glade.h:72 +msgid "Preview Pane" +msgstr "Область предпросмотра" + +#: ../data/gummi.glade.h:73 +msgid "Previous" +msgstr "Предыдущий" + +#: ../data/gummi.glade.h:74 +msgid "References:" +msgstr "Ссылки:" + +#: ../data/gummi.glade.h:75 +msgid "Replace _All" +msgstr "" + +#: ../data/gummi.glade.h:76 +msgid "Replace with:" +msgstr "" + +#: ../data/gummi.glade.h:77 +msgid "Report" +msgstr "Отчет" + +#: ../data/gummi.glade.h:78 +msgid "Rows:" +msgstr "Строки:" + +#: ../data/gummi.glade.h:79 +msgid "Save" +msgstr "Сохранить" + +#: ../data/gummi.glade.h:80 +msgid "Save _As..." +msgstr "" + +#: ../data/gummi.glade.h:81 +msgid "Save the current file" +msgstr "Сохранить текущий файл" + +#: ../data/gummi.glade.h:82 +msgid "Scale:" +msgstr "Масштаб:" + +#: ../data/gummi.glade.h:83 +msgid "Search backwards" +msgstr "Поиск назад" + +#: ../data/gummi.glade.h:84 +msgid "Search for:" +msgstr "Искать в:" + +#: ../data/gummi.glade.h:85 +msgid "Single line" +msgstr "Однострочный" + +#: ../data/gummi.glade.h:86 +msgid "Table" +msgstr "Таблица" + +#: ../data/gummi.glade.h:87 +msgid "Template options:" +msgstr "Шаблон настроек:" + +#: ../data/gummi.glade.h:88 +msgid "Unbracketed" +msgstr "Без скобок" + +#: ../data/gummi.glade.h:89 +msgid "Underline text" +msgstr "Подчеркнутый текст" + +#: ../data/gummi.glade.h:90 +msgid "_Autocheck Spelling" +msgstr "_Автопроверка орфографии" + +#: ../data/gummi.glade.h:91 +msgid "_Compile Bibliography" +msgstr "_Скомпилировать библиографию" + +#: ../data/gummi.glade.h:92 +msgid "_Document Statistics" +msgstr "" + +#: ../data/gummi.glade.h:93 +msgid "_Edit" +msgstr "_Изменить" + +#: ../data/gummi.glade.h:94 +msgid "_Export to PDF" +msgstr "" + +#: ../data/gummi.glade.h:95 +msgid "_File" +msgstr "_Файл" + +#: ../data/gummi.glade.h:96 +msgid "_Fullscreen" +msgstr "На _весь экран" + +#: ../data/gummi.glade.h:97 +msgid "_Help" +msgstr "_Справка" + +#: ../data/gummi.glade.h:98 +msgid "_Insert Bibliography" +msgstr "_Добавить Библиографию" + +#: ../data/gummi.glade.h:99 +#, fuzzy +msgid "_Open..." +msgstr "Открыть" + +#: ../data/gummi.glade.h:100 +msgid "_Replace" +msgstr "" + +#: ../data/gummi.glade.h:101 +msgid "_Right Pane" +msgstr "" + +#: ../data/gummi.glade.h:102 +msgid "_Search" +msgstr "П_оиск" + +#: ../data/gummi.glade.h:103 +msgid "_Statusbar" +msgstr "_Строка состояния" + +#: ../data/gummi.glade.h:104 +msgid "_Toolbar" +msgstr "_Инструменты" + +#: ../data/gummi.glade.h:105 +msgid "_Tools" +msgstr "_Инструменты" + +#: ../data/gummi.glade.h:106 +msgid "_View" +msgstr "_Вид" + +#: ../data/gummi.glade.h:107 +msgid "filter:" +msgstr "Фильтр:" + +#: ../data/gummi.glade.h:108 ../src/gui.c:651 +msgid "no bibliography file detected" +msgstr "Файл библиографии отсутствует" + +#: ../data/gummi.glade.h:109 ../src/gui.c:652 +msgid "none" +msgstr "отсутствует" + +#: ../data/gummi.glade.h:110 +msgid "of 0" +msgstr "из 0" + +#: ../data/gummi.glade.h:111 +msgid "shouldnotseeme" +msgstr "shouldnotseeme" + +#: ../data/gummi.glade.h:112 +msgid "toolbutton1" +msgstr "инструментальнаякнопка1" + +#: ../data/gummi.glade.h:113 +msgid "toolbutton2" +msgstr "инструментальнаякнопка2" + +#: ../data/gummi.glade.h:114 +msgid "toolbutton3" +msgstr "инструментальнаякнопка3" + +#: ../data/gummi.glade.h:115 +msgid "toolbutton5" +msgstr "инструментальнаякнопка5" + +#: ../data/gummi.glade.h:116 +msgid "toolbutton6" +msgstr "инструментальнаякнопка6" + +#: ../data/gummi.glade.h:117 +msgid "toolbutton7" +msgstr "инструментальнаякнопка7" + +#: ../data/prefs.glade.h:1 +msgid "Changes will become active on next start" +msgstr "Изменения будут применены при следующем запуске" + +#: ../data/prefs.glade.h:2 +msgid "Default Text" +msgstr "Текст по умолчанию" + +#: ../data/prefs.glade.h:3 +msgid "Display line numbers" +msgstr "Отобразить номера строк" + +#: ../data/prefs.glade.h:4 +msgid "Do not split words over two lines" +msgstr "Не разделять слова на две строчки" + +#: ../data/prefs.glade.h:5 +msgid "Editor" +msgstr "Редактор" + +#: ../data/prefs.glade.h:6 +msgid "Editor font:" +msgstr "Редактор шрифта:" + +#: ../data/prefs.glade.h:7 +msgid "Enable text wrapping" +msgstr "Включить автоматический перенос" + +#: ../data/prefs.glade.h:8 +msgid "File saving:" +msgstr "Файл сохраняется:" + +#: ../data/prefs.glade.h:9 +msgid "Gummi Preferences" +msgstr "Настройки Gummi" + +#: ../data/prefs.glade.h:10 +msgid "Highlight current line" +msgstr "Подсветить текущую строку" + +#: ../data/prefs.glade.h:11 +msgid "Highlighting:" +msgstr "Выделение:" + +#: ../data/prefs.glade.h:12 +msgid "Line numbers:" +msgstr "Номера строк:" + +#: ../data/prefs.glade.h:13 +msgid "None" +msgstr "None" + +#: ../data/prefs.glade.h:14 +msgid "PDF Compiling" +msgstr "Компиляция PDF" + +#: ../data/prefs.glade.h:15 +msgid "PDF Compiling:" +msgstr "Компиляция PDF:" + +#: ../data/prefs.glade.h:16 +msgid "Spell check language:" +msgstr "Проверка орфографии для зыка:" + +#: ../data/prefs.glade.h:17 +msgid "Text wrapping:" +msgstr "Перенос текста:" + +#: ../data/prefs.glade.h:18 +#, fuzzy +msgid "Typesetter command:" +msgstr "Верстка команд:" + +#: ../data/prefs.glade.h:19 +msgid "View" +msgstr "Вид" + +#: ../data/prefs.glade.h:20 +msgid "_Autosave files every" +msgstr "Автосо_хранение файла каждые" + +#: ../data/prefs.glade.h:21 +msgid "_Reset defaults" +msgstr "_Сбросить по умолчанию" + +#: ../data/prefs.glade.h:22 +#, fuzzy +msgid "compile every" +msgstr "_Автосборка каждые " + +#: ../data/prefs.glade.h:23 +#, fuzzy +msgid "compile when idle for " +msgstr "_Автосборка каждые " + +#: ../data/prefs.glade.h:24 +msgid "minutes" +msgstr "минут" + +#: ../data/prefs.glade.h:25 +msgid "pdflatex" +msgstr "pdflatex" + +#: ../data/prefs.glade.h:26 +msgid "seconds" +msgstr "секунд" + +#: ../data/prefs.glade.h:27 +msgid "xelatex" +msgstr "xelatex" + +#: ../src/editor.c:375 +msgid "Top reached, search from bottom?" +msgstr "" + +#: ../src/editor.c:382 +msgid "Bottom reached, search from top?" +msgstr "" + +#: ../src/gui.c:223 +#, c-format +msgid "Error loading recent file: %s" +msgstr "" + +#: ../src/gui.c:614 +#, fuzzy +msgid "Compiling bibliography file..." +msgstr "_Скомпилировать библиографию" + +#: ../src/gui.c:616 +#, fuzzy +msgid "bibliography compiled without errors" +msgstr "Файл библиографии отсутствует" + +#: ../src/gui.c:618 +#, fuzzy +msgid "Error compiling bibliography file or none detected..." +msgstr "Файл библиографии отсутствует" + +#: ../src/gui.c:621 +#, fuzzy +msgid "error compiling bibliography file" +msgstr "_Скомпилировать библиографию" + +#: ../src/gui.c:645 +#, c-format +msgid "%s loaded" +msgstr "" + +#: ../src/gui.c:1074 +msgid "Do you want to save the changes you have made?" +msgstr "" + +#: ../src/gui.c:1083 +#, fuzzy +msgid "Open File..." +msgstr "Открыть" + +#: ../src/gui.c:1105 +msgid "Save File..." +msgstr "" + +#: ../src/importer.c:122 +#, c-format +msgid "%s: No such file or directory\n" +msgstr "" + +#: ../src/iofunctions.c:94 +#, c-format +msgid "Saving %s..." +msgstr "" + +#: ../src/iofunctions.c:107 +#, c-format +msgid "" +"%s\n" +"Please try again later." +msgstr "" + +#: ../src/iofunctions.c:146 +msgid "Can not convert text to UTF-8!\n" +msgstr "" + +#: ../src/iofunctions.c:176 +#, fuzzy, c-format +msgid "Autosaving file %s" +msgstr "Однострочный" + +#: ../src/updatecheck.c:113 +#, c-format +msgid "" +"Currently installed:\n" +"%s\n" +"\n" +"Currently available:\n" +"%s" +msgstr "" + +#: ../src/utils.c:88 +#, c-format +msgid "" +"\n" +"Gummi has encountered a serious error and require restart, your can find " +"your file in the %s directory\n" +msgstr "" + +#: ../src/utils.c:128 +#, fuzzy +msgid "Confirmation" +msgstr "Заголовок:" + +#, fuzzy +#~ msgid "Save?" +#~ msgstr "Сохранить" diff --git a/po/zh_TW.po b/po/zh_TW.po new file mode 100644 index 00000000..525adf4c --- /dev/null +++ b/po/zh_TW.po @@ -0,0 +1,705 @@ +# Gummi Translation for zh_TW +# Copyright (C) AZ Huang 2010 +# This file is distributed under the same license as the Gummi package. +# AZ Huang , 2010. +# +msgid "" +msgstr "" +"Project-Id-Version: 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-09-10 10:02+0800\n" +"PO-Revision-Date: 2010-05-21 22:11+0800\n" +"Last-Translator: AZ Huang \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../data/gummi.glade.h:1 +msgid " " +msgstr " " + +#: ../data/gummi.glade.h:2 +msgid ".." +msgstr ".." + +#: ../data/gummi.glade.h:3 +msgid "0" +msgstr "0" + +#: ../data/gummi.glade.h:5 +#, no-c-format +msgid "100%" +msgstr "100%" + +#: ../data/gummi.glade.h:7 +#, no-c-format +msgid "125%" +msgstr "125%" + +#: ../data/gummi.glade.h:9 +#, no-c-format +msgid "150%" +msgstr "150%" + +#: ../data/gummi.glade.h:11 +#, no-c-format +msgid "200%" +msgstr "200%" + +#: ../data/gummi.glade.h:13 +#, no-c-format +msgid "300%" +msgstr "300%" + +#: ../data/gummi.glade.h:15 +#, no-c-format +msgid "400%" +msgstr "400%" + +#: ../data/gummi.glade.h:17 +#, no-c-format +msgid "50%" +msgstr "50%" + +#: ../data/gummi.glade.h:19 +#, no-c-format +msgid "70%" +msgstr "70%" + +#: ../data/gummi.glade.h:21 +#, no-c-format +msgid "85%" +msgstr "85%" + +#: ../data/gummi.glade.h:22 +msgid "Align center" +msgstr "置中" + +#: ../data/gummi.glade.h:23 +msgid "Align left" +msgstr "向左對齊" + +#: ../data/gummi.glade.h:24 +msgid "Align right" +msgstr "向右對齊" + +#: ../data/gummi.glade.h:25 +msgid "" +"Alignment of the\n" +"cell content." +msgstr "表格的對齊方式" + +#: ../data/gummi.glade.h:27 +msgid "Article" +msgstr "文章" + +#: ../data/gummi.glade.h:28 +msgid "Best Fit" +msgstr "最適合大小" + +#: ../data/gummi.glade.h:29 +msgid "Bibliography" +msgstr "參考文獻" + +#: ../data/gummi.glade.h:30 +msgid "Bold text" +msgstr "粗體" + +#: ../data/gummi.glade.h:31 +msgid "Book" +msgstr "書本" + +#: ../data/gummi.glade.h:32 +msgid "Border all cells" +msgstr "完整邊框" + +#: ../data/gummi.glade.h:33 +msgid "Border outline" +msgstr "外層邊框" + +#: ../data/gummi.glade.h:34 +msgid "Braces" +msgstr "大括弧" + +#: ../data/gummi.glade.h:35 +msgid "Bracket:" +msgstr "括弧:" + +#: ../data/gummi.glade.h:36 +msgid "Brackets" +msgstr "方括弧" + +#: ../data/gummi.glade.h:37 +msgid "Caption:" +msgstr "標題:" + +#: ../data/gummi.glade.h:38 +msgid "Center text" +msgstr "置中" + +#: ../data/gummi.glade.h:39 +msgid "Check _Updates" +msgstr "檢查更新(_U)" + +#: ../data/gummi.glade.h:40 +msgid "Columns:" +msgstr "行:" + +#: ../data/gummi.glade.h:41 +msgid "Compile" +msgstr "編譯" + +#: ../data/gummi.glade.h:42 +msgid "Create a new document" +msgstr "建立新文件" + +#: ../data/gummi.glade.h:43 +msgid "Create new document.." +msgstr "建立新文件.." + +#: ../data/gummi.glade.h:44 +msgid "" +"Determines whether the\n" +"cells have line borders. " +msgstr "設定表格格線" + +#: ../data/gummi.glade.h:46 +msgid "Double line" +msgstr "雙線" + +#: ../data/gummi.glade.h:47 +msgid "Error output" +msgstr "錯誤輸出" + +#: ../data/gummi.glade.h:48 +msgid "" +"Error status for\n" +"active document" +msgstr "" +"目前文件的錯誤輸出\n" +" " + +#: ../data/gummi.glade.h:50 +msgid "Export to PDF" +msgstr "匯出為PDF" + +#: ../data/gummi.glade.h:51 +msgid "File:" +msgstr "檔案:" + +#: ../data/gummi.glade.h:52 +msgid "Filename:" +msgstr "檔名:" + +#: ../data/gummi.glade.h:53 +msgid "Find" +msgstr "搜尋" + +#: ../data/gummi.glade.h:54 +msgid "Find Ne_xt" +msgstr "找下一個(_X)" + +#: ../data/gummi.glade.h:55 +msgid "Find Pre_vious" +msgstr "找前一個(_V)" + +#: ../data/gummi.glade.h:56 +msgid "Fit Page Width" +msgstr "符合頁寬" + +#: ../data/gummi.glade.h:57 +msgid "Gummi - LaTeX Editor" +msgstr "Gummi - LaTex 編輯器" + +#: ../data/gummi.glade.h:58 +msgid "Image" +msgstr "影像" + +#: ../data/gummi.glade.h:59 +msgid "Italic text" +msgstr "斜體" + +#: ../data/gummi.glade.h:60 +msgid "Label:" +msgstr "標籤" + +#: ../data/gummi.glade.h:61 +msgid "Letter" +msgstr "信件" + +#: ../data/gummi.glade.h:62 +msgid "Load a file" +msgstr "載入檔案" + +#: ../data/gummi.glade.h:63 +msgid "Match case" +msgstr "區分大小寫" + +#: ../data/gummi.glade.h:64 +msgid "Match entire word only" +msgstr "只配對此單字" + +#: ../data/gummi.glade.h:65 +msgid "Matrix" +msgstr "矩陣" + +#: ../data/gummi.glade.h:66 ../src/gui.c:653 +msgid "N/A" +msgstr "無" + +#: ../data/gummi.glade.h:67 +msgid "New from _Template" +msgstr "從模版新增(_T)" + +#: ../data/gummi.glade.h:68 +msgid "Next" +msgstr "下一個" + +#: ../data/gummi.glade.h:69 +msgid "No borders" +msgstr "無邊框" + +#: ../data/gummi.glade.h:70 +msgid "Open" +msgstr "開啟" + +#: ../data/gummi.glade.h:71 +msgid "Parentheses" +msgstr "括號" + +#: ../data/gummi.glade.h:72 +msgid "Preview Pane" +msgstr "預覽" + +#: ../data/gummi.glade.h:73 +msgid "Previous" +msgstr "前一個" + +#: ../data/gummi.glade.h:74 +msgid "References:" +msgstr "參考:" + +#: ../data/gummi.glade.h:75 +msgid "Replace _All" +msgstr "全部取代(_A)" + +#: ../data/gummi.glade.h:76 +msgid "Replace with:" +msgstr "取代為:" + +#: ../data/gummi.glade.h:77 +msgid "Report" +msgstr "報告" + +#: ../data/gummi.glade.h:78 +msgid "Rows:" +msgstr "列:" + +#: ../data/gummi.glade.h:79 +msgid "Save" +msgstr "儲存" + +#: ../data/gummi.glade.h:80 +msgid "Save _As..." +msgstr "另存新檔...(_A)" + +#: ../data/gummi.glade.h:81 +msgid "Save the current file" +msgstr "儲存目前檔案" + +#: ../data/gummi.glade.h:82 +msgid "Scale:" +msgstr "縮放:" + +#: ../data/gummi.glade.h:83 +msgid "Search backwards" +msgstr "向後搜尋" + +#: ../data/gummi.glade.h:84 +msgid "Search for:" +msgstr "尋找:" + +#: ../data/gummi.glade.h:85 +msgid "Single line" +msgstr "單線" + +#: ../data/gummi.glade.h:86 +msgid "Table" +msgstr "表格" + +#: ../data/gummi.glade.h:87 +msgid "Template options:" +msgstr "模版選項:" + +#: ../data/gummi.glade.h:88 +msgid "Unbracketed" +msgstr "無括弧" + +#: ../data/gummi.glade.h:89 +msgid "Underline text" +msgstr "底線" + +#: ../data/gummi.glade.h:90 +msgid "_Autocheck Spelling" +msgstr "拼字檢查(_A)" + +#: ../data/gummi.glade.h:91 +msgid "_Compile Bibliography" +msgstr "編譯參考文獻(_C)" + +#: ../data/gummi.glade.h:92 +msgid "_Document Statistics" +msgstr "文件資訊(_D)" + +#: ../data/gummi.glade.h:93 +msgid "_Edit" +msgstr "編輯(_E)" + +#: ../data/gummi.glade.h:94 +msgid "_Export to PDF" +msgstr "匯出為PDF" + +#: ../data/gummi.glade.h:95 +msgid "_File" +msgstr "檔案(_F)" + +#: ../data/gummi.glade.h:96 +msgid "_Fullscreen" +msgstr "全螢幕(_T)" + +#: ../data/gummi.glade.h:97 +msgid "_Help" +msgstr "幫助(_H)" + +#: ../data/gummi.glade.h:98 +msgid "_Insert Bibliography" +msgstr "插入參考文獻(_I)" + +#: ../data/gummi.glade.h:99 +msgid "_Open..." +msgstr "開啟...(_O)" + +#: ../data/gummi.glade.h:100 +msgid "_Replace" +msgstr "取代" + +#: ../data/gummi.glade.h:101 +msgid "_Right Pane" +msgstr "右側欄" + +#: ../data/gummi.glade.h:102 +msgid "_Search" +msgstr "搜尋(_S)" + +#: ../data/gummi.glade.h:103 +msgid "_Statusbar" +msgstr "狀態列(_S)" + +#: ../data/gummi.glade.h:104 +msgid "_Toolbar" +msgstr "工具列(_T)" + +#: ../data/gummi.glade.h:105 +msgid "_Tools" +msgstr "工具(_T)" + +#: ../data/gummi.glade.h:106 +msgid "_View" +msgstr "檢視(_V)" + +#: ../data/gummi.glade.h:107 +msgid "filter:" +msgstr "篩選:" + +#: ../data/gummi.glade.h:108 ../src/gui.c:651 +msgid "no bibliography file detected" +msgstr "無法找到參考文獻" + +#: ../data/gummi.glade.h:109 ../src/gui.c:652 +msgid "none" +msgstr "無" + +#: ../data/gummi.glade.h:110 +msgid "of 0" +msgstr "/ 0" + +#: ../data/gummi.glade.h:111 +msgid "shouldnotseeme" +msgstr "shouldnotseeme" + +#: ../data/gummi.glade.h:112 +msgid "toolbutton1" +msgstr "toolbutton1" + +#: ../data/gummi.glade.h:113 +msgid "toolbutton2" +msgstr "toolbutton2" + +#: ../data/gummi.glade.h:114 +msgid "toolbutton3" +msgstr "toolbutton3" + +#: ../data/gummi.glade.h:115 +msgid "toolbutton5" +msgstr "toolbutton5" + +#: ../data/gummi.glade.h:116 +msgid "toolbutton6" +msgstr "toolbutton6" + +#: ../data/gummi.glade.h:117 +msgid "toolbutton7" +msgstr "toolbutton7" + +#: ../data/prefs.glade.h:1 +msgid "Changes will become active on next start" +msgstr "設定會在下一次啟動生效" + +#: ../data/prefs.glade.h:2 +msgid "Default Text" +msgstr "預設文字" + +#: ../data/prefs.glade.h:3 +msgid "Display line numbers" +msgstr "顯示行號" + +#: ../data/prefs.glade.h:4 +msgid "Do not split words over two lines" +msgstr "換行時不將字詞拆開" + +#: ../data/prefs.glade.h:5 +msgid "Editor" +msgstr "編輯器" + +#: ../data/prefs.glade.h:6 +msgid "Editor font:" +msgstr "編輯器字體:" + +#: ../data/prefs.glade.h:7 +msgid "Enable text wrapping" +msgstr "啟用文字換行" + +#: ../data/prefs.glade.h:8 +msgid "File saving:" +msgstr "存檔:" + +#: ../data/prefs.glade.h:9 +msgid "Gummi Preferences" +msgstr "Gummi 偏好設定" + +#: ../data/prefs.glade.h:10 +msgid "Highlight current line" +msgstr "標示當前的行" + +#: ../data/prefs.glade.h:11 +msgid "Highlighting:" +msgstr "高亮:" + +#: ../data/prefs.glade.h:12 +msgid "Line numbers:" +msgstr "行號:" + +#: ../data/prefs.glade.h:13 +msgid "None" +msgstr "無" + +#: ../data/prefs.glade.h:14 +msgid "PDF Compiling" +msgstr "PDF編譯" + +#: ../data/prefs.glade.h:15 +msgid "PDF Compiling:" +msgstr "PDF編譯:" + +#: ../data/prefs.glade.h:16 +msgid "Spell check language:" +msgstr "拼字檢查語言:" + +#: ../data/prefs.glade.h:17 +msgid "Text wrapping:" +msgstr "文字換行:" + +#: ../data/prefs.glade.h:18 +msgid "Typesetter command:" +msgstr "排版指令:" + +#: ../data/prefs.glade.h:19 +msgid "View" +msgstr "檢示" + +#: ../data/prefs.glade.h:20 +msgid "_Autosave files every" +msgstr "自動儲存間隔(A)" + +#: ../data/prefs.glade.h:21 +msgid "_Reset defaults" +msgstr "重設為預設(_R)" + +#: ../data/prefs.glade.h:22 +msgid "compile every" +msgstr "自動編譯間隔" + +#: ../data/prefs.glade.h:23 +msgid "compile when idle for " +msgstr "自動編譯: 當閒罝" + +#: ../data/prefs.glade.h:24 +msgid "minutes" +msgstr "分鐘" + +#: ../data/prefs.glade.h:25 +msgid "pdflatex" +msgstr "pdflatex" + +#: ../data/prefs.glade.h:26 +msgid "seconds" +msgstr "秒" + +#: ../data/prefs.glade.h:27 +msgid "xelatex" +msgstr "xelatex" + +#: ../src/editor.c:375 +msgid "Top reached, search from bottom?" +msgstr "已達頁首, 從頁尾開始尋找?" + +#: ../src/editor.c:382 +msgid "Bottom reached, search from top?" +msgstr "已達頁尾, 從頁首開始尋找?" + +#: ../src/gui.c:223 +#, c-format +msgid "Error loading recent file: %s" +msgstr "載入最近使用文件時發生錯誤: %s" + +#: ../src/gui.c:614 +msgid "Compiling bibliography file..." +msgstr "正在編譯參考文獻..." + +#: ../src/gui.c:616 +msgid "bibliography compiled without errors" +msgstr "參考文獻已成功編譯" + +#: ../src/gui.c:618 +msgid "Error compiling bibliography file or none detected..." +msgstr "編譯過程中發生錯誤或無法找到參考文獻..." + +#: ../src/gui.c:621 +msgid "error compiling bibliography file" +msgstr "編譯參考文獻過程發生錯誤" + +#: ../src/gui.c:645 +#, c-format +msgid "%s loaded" +msgstr "已載入%s" + +#: ../src/gui.c:1074 +msgid "Do you want to save the changes you have made?" +msgstr "是否儲存變更?" + +#: ../src/gui.c:1083 +msgid "Open File..." +msgstr "開啟..." + +#: ../src/gui.c:1105 +msgid "Save File..." +msgstr "儲存檔案..." + +#: ../src/importer.c:122 +#, c-format +msgid "%s: No such file or directory\n" +msgstr "%s: 找不到此檔案或目錄\n" + +#: ../src/iofunctions.c:94 +#, c-format +msgid "Saving %s..." +msgstr "儲存%s中..." + +#: ../src/iofunctions.c:107 +#, c-format +msgid "" +"%s\n" +"Please try again later." +msgstr "" +"%s\n" +"請稍後重試." + +#: ../src/iofunctions.c:146 +msgid "Can not convert text to UTF-8!\n" +msgstr "無法轉換文字為UTF-8格式!\n" + +#: ../src/iofunctions.c:176 +#, c-format +msgid "Autosaving file %s" +msgstr "正在儲存%s" + +#: ../src/updatecheck.c:113 +#, c-format +msgid "" +"Currently installed:\n" +"%s\n" +"\n" +"Currently available:\n" +"%s" +msgstr "" +"安裝版本:\n" +"%s\n" +"\n" +"最新版本:\n" +"%s" + +#: ../src/utils.c:88 +#, c-format +msgid "" +"\n" +"Gummi has encountered a serious error and require restart, your can find " +"your file in the %s directory\n" +msgstr "" +"\n" +"Gummi發生了嚴重的錯誤而必需關閉, 你可以在%s資料夾裡找到未儲存的檔案\n" + +#: ../src/utils.c:128 +msgid "Confirmation" +msgstr "確認" + +#~ msgid "Save?" +#~ msgstr "是否儲存?" + +#~ msgid "Currently installed:\n" +#~ msgstr "安裝版本:\n" + +#~ msgid "" +#~ "PDF-Preview could not initialize.\n" +#~ "\n" +#~ "It appears your LaTeX document contains errors or\n" +#~ "the program `%s' was not installed.\n" +#~ "Additional information is available on the Error Output tab.\n" +#~ "Please correct the listed errors and click this area\n" +#~ "to reload the preview panel." +#~ msgstr "" +#~ "無法啟動PDF預覽.\n" +#~ "\n" +#~ "您的LaTex文件中包含錯誤或是%s未被案裝.\n" +#~ "更多的訊息請參照錯誤輸出欄.\n" +#~ "請在更正錯誤後點選此區域\n" +#~ "來更新預覽." + +#~ msgid "Update Check" +#~ msgstr "檢查更新" + +#~ msgid "" +#~ "The server could not be contacted.\n" +#~ "\n" +#~ msgstr "" +#~ "無法連接到伺服器.\n" +#~ "\n" + +#~ msgid "This function requires an active\n" +#~ msgstr "此功能需要可用的\n" + +#~ msgid "internet connection." +#~ msgstr "網路連線." + +#~ msgid "Error" +#~ msgstr "錯誤" diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 00000000..530a0a01 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,12 @@ +# Tempraroly Makefile for development, the release will use GNU autotools + +TARGET=gummi +OBJS = main.o gui.o fileinfo.o preview.o motion.o editor.o utils.o configfile.o iofunctions.o environment.o importer.o updatecheck.o template.o biblio.o + +CFLAGS=-g -Wall -export-dynamic `pkg-config --cflags --libs gtk+-2.0 gtksourceview-2.0 cairo poppler-glib gtkspell-2.0` -DUSE_GTKSPELL -DLOCALEDIR="\"/usr/share/locale\"" -DDATADIR="\"../data\"" + +gummi: $(OBJS) + $(CC) -o $(TARGET) $(OBJS) $(CFLAGS) + +clean: + rm -f $(TARGET) $(OBJS) diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 00000000..23b6dfa2 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,24 @@ +bin_PROGRAMS = gummi-beta +AM_CFLAGS = $(GUI_CFLAGS) \ + -export-dynamic -Wall -O2 \ + -DDATADIR=\"$(datadir)/$(PACKAGE)\" \ + -DLOCALEDIR=\"$(datadir)/locale\" + +gummi_beta_LDADD = $(GUI_LIBS) \ + $(LIBINTL) + +gummi_beta_SOURCES = biblio.c biblio.h \ + configfile.c configfile.h \ + editor.c editor.h \ + environment.c environment.h \ + fileinfo.c fileinco.h \ + gui.c gui.h \ + importer.c importer.h \ + iofunctions.c iofunctions.h \ + main.c main.h \ + motion.c motion.h \ + preview.c preview.h \ + template.c template.h \ + updatecheck.c updatecheck.h \ + utils.c utils.h \ + gettext.h diff --git a/src/Makefile.in b/src/Makefile.in new file mode 100644 index 00000000..5a956f34 --- /dev/null +++ b/src/Makefile.in @@ -0,0 +1,519 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +bin_PROGRAMS = gummi-beta$(EXEEXT) +subdir = src +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +PROGRAMS = $(bin_PROGRAMS) +am_gummi_beta_OBJECTS = biblio.$(OBJEXT) configfile.$(OBJEXT) \ + editor.$(OBJEXT) environment.$(OBJEXT) fileinfo.$(OBJEXT) \ + gui.$(OBJEXT) importer.$(OBJEXT) iofunctions.$(OBJEXT) \ + main.$(OBJEXT) motion.$(OBJEXT) preview.$(OBJEXT) \ + template.$(OBJEXT) updatecheck.$(OBJEXT) utils.$(OBJEXT) +gummi_beta_OBJECTS = $(am_gummi_beta_OBJECTS) +am__DEPENDENCIES_1 = +gummi_beta_DEPENDENCIES = $(am__DEPENDENCIES_1) +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(gummi_beta_SOURCES) +DIST_SOURCES = $(gummi_beta_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DATADIRNAME = @DATADIRNAME@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ +GLIB_CFLAGS = @GLIB_CFLAGS@ +GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ +GLIB_LIBS = @GLIB_LIBS@ +GLIB_MKENUMS = @GLIB_MKENUMS@ +GMSGFMT = @GMSGFMT@ +GOBJECT_QUERY = @GOBJECT_QUERY@ +GREP = @GREP@ +GTK_CFLAGS = @GTK_CFLAGS@ +GTK_LIBS = @GTK_LIBS@ +GUI_CFLAGS = @GUI_CFLAGS@ +GUI_LIBS = @GUI_LIBS@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ +INTLTOOL_MERGE = @INTLTOOL_MERGE@ +INTLTOOL_PERL = @INTLTOOL_PERL@ +INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +USE_GTKSPELL = @USE_GTKSPELL@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +gtksourceview_CFLAGS = @gtksourceview_CFLAGS@ +gtksourceview_LIBS = @gtksourceview_LIBS@ +gtkspell_CFLAGS = @gtkspell_CFLAGS@ +gtkspell_LIBS = @gtkspell_LIBS@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +poppler_CFLAGS = @poppler_CFLAGS@ +poppler_LIBS = @poppler_LIBS@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AM_CFLAGS = $(GUI_CFLAGS) \ + -export-dynamic -Wall -O2 \ + -DDATADIR=\"$(datadir)/$(PACKAGE)\" \ + -DLOCALEDIR=\"$(datadir)/locale\" + +gummi_beta_LDADD = $(GUI_LIBS) \ + $(LIBINTL) + +gummi_beta_SOURCES = biblio.c biblio.h \ + configfile.c configfile.h \ + editor.c editor.h \ + environment.c environment.h \ + fileinfo.c fileinco.h \ + gui.c gui.h \ + importer.c importer.h \ + iofunctions.c iofunctions.h \ + main.c main.h \ + motion.c motion.h \ + preview.c preview.h \ + template.c template.h \ + updatecheck.c updatecheck.h \ + utils.c utils.h \ + gettext.h + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign src/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p; \ + then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files + +clean-binPROGRAMS: + -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) +gummi-beta$(EXEEXT): $(gummi_beta_OBJECTS) $(gummi_beta_DEPENDENCIES) + @rm -f gummi-beta$(EXEEXT) + $(LINK) $(gummi_beta_OBJECTS) $(gummi_beta_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/biblio.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/configfile.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/editor.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/environment.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileinfo.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gui.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/importer.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iofunctions.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/motion.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/preview.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/template.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/updatecheck.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binPROGRAMS + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic ctags distclean distclean-compile \ + distclean-generic distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-binPROGRAMS \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ + uninstall-am uninstall-binPROGRAMS + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/biblio.c b/src/biblio.c new file mode 100644 index 00000000..5262c965 --- /dev/null +++ b/src/biblio.c @@ -0,0 +1,207 @@ +/** + * @file biblio.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include +#include +#include + + +#include "biblio.h" +#include "utils.h" +#include "environment.h" + +extern Gummi* gummi; +extern GuEditor* ec; + + +GuBiblio* biblio_init(GtkBuilder * builder) { + GuBiblio* b = (GuBiblio*)g_malloc(sizeof(GuBiblio)); + b->progressbar = + GTK_PROGRESS_BAR(gtk_builder_get_object(builder, "bibprogressbar")); + b->progressmon = + GTK_ADJUSTMENT(gtk_builder_get_object(builder, "bibprogressmon")); + b->list_biblios = + GTK_LIST_STORE(gtk_builder_get_object(builder, "list_biblios")); + b->filenm_label = + GTK_LABEL(gtk_builder_get_object(builder, "bibfilenm")); + b->refnr_label = + GTK_LABEL(gtk_builder_get_object(builder, "bibrefnr")); + b->progressval = 0.0; + b->filename = NULL; + b->basename = NULL; + b->dirname = NULL; + return b; +} + + +gboolean biblio_detect_bibliography(GuEditor* ec) { + gchar* content; + gchar** result; + GMatchInfo *match_info; + GRegex* bib_regex; + + content = editor_grab_buffer(ec); + bib_regex = g_regex_new("\\\\bibliography{([^{}]*)}", 0, 0, NULL); + if (g_regex_match(bib_regex, content, 0, &match_info)) { + result = g_match_info_fetch_all(match_info); + if (result[1] && + 0 == strncmp(result[1] + strlen(result[1]) -4, ".bib", 4) && + utils_path_exists(result[1])) { + g_strfreev(result); + return TRUE; + } + g_strfreev(result); + } + g_match_info_free(match_info); + g_regex_unref(bib_regex); + return FALSE; +} + +gboolean biblio_compile_bibliography(GuBiblio* bc, GuMotion* mc) { + gchar command[BUFSIZ]; + motion_update_workfile(mc); + motion_update_auxfile(mc); + snprintf(command, sizeof command, "bibtex '%s'", mc->b_finfo->workfile); + pdata res = utils_popen_r(command); + gtk_widget_set_tooltip_text(GTK_WIDGET(bc->progressbar), res.data); + if(strstr(res.data, "Database file #1") == NULL) + return FALSE; + else + return TRUE; +} + +gboolean biblio_setup_bibliography(GuBiblio* b, GuEditor* ec) { + gchar *bibpath; + gchar *dst; + + dst = g_strconcat(g_get_tmp_dir(), G_DIR_SEPARATOR_S, b->basename, NULL); + utils_copy_file(b->filename, dst); + bibpath = g_strconcat(b->dirname, G_DIR_SEPARATOR_S, b->basename, NULL); + editor_insert_bib(ec, bibpath); + + g_free(dst); + g_free(bibpath); + return TRUE; +} + +gboolean biblio_check_valid_file(GuBiblio* b, gchar *filename) { + if (b->filename) g_free(b->filename); + if (b->basename) g_free(b->basename); + if (b->dirname) g_free(b->dirname); + + if (utils_path_exists(filename) == TRUE) { + b->filename = g_strdup(filename); + if (g_path_is_absolute(filename)) { + b->basename = g_strdup(g_path_get_basename(filename)); + b->dirname = g_strdup(g_path_get_dirname(filename)); + return TRUE; + } + else { + b->basename = g_strdup(filename); + b->dirname = g_strdup(g_get_current_dir()); + return TRUE; + } + } + else { + return FALSE; + } +} + +int biblio_parse_entries(GuBiblio* bc, gchar *bib_content) { + int entry_total = 0; + + GtkTreeIter iter; + GRegex* regex_entry; + GRegex* subregex_ident; + GRegex* subregex_title; + GRegex* subregex_author; + GRegex* subregex_year; + GRegex* regex_formatting; + + gchar* author_out; + gchar* title_out; + + GMatchInfo *match_entry; + + regex_entry = g_regex_new( + "(@article|@book|@booklet|@conference|@inbook|@incollection|" + "@inproceedings|@manual|@mastersthesis|@misc|@phdthesis|" + "@proceedings|@techreport|@unpublished)([^@]*)", + (G_REGEX_CASELESS | G_REGEX_DOTALL), 0, NULL); + + subregex_ident = g_regex_new("@.+{([^,]+),", 0, 0, NULL); + subregex_title = g_regex_new("[^book]title[\\s]*=[\\s]*(.*)", 0, 0, NULL); + subregex_author = g_regex_new("author[\\s]*=[\\s]*(.*)", 0, 0, NULL); + subregex_year = g_regex_new("year[\\s]*=[\\s]*[{|\"]?([1|2][0-9]{3})", 0, + 0, NULL); + regex_formatting = g_regex_new("[{|}|\"|,|\\$]", 0, 0, NULL); + + + g_regex_match(regex_entry, bib_content, 0, &match_entry); + + while (g_match_info_matches(match_entry)) { + + gchar *entry = g_match_info_fetch (match_entry, 0); + + gchar **ident_res = g_regex_split(subregex_ident, entry, 0); + gchar **title_res = g_regex_split(subregex_title, entry, 0); + gchar **author_res = g_regex_split(subregex_author, entry, 0); + gchar **year_res = g_regex_split(subregex_year, entry, 0); + + author_out = g_regex_replace(regex_formatting, author_res[1], + -1, 0, "", 0, 0); + title_out = g_regex_replace(regex_formatting, title_res[1], + -1, 0, "", 0, 0); + + gtk_list_store_append(bc->list_biblios, &iter); + gtk_list_store_set(bc->list_biblios, &iter, 0, ident_res[1], + 1, title_out, + 2, author_out, + 3, year_res[1], -1); + g_free(author_out); + g_free(title_out); + g_strfreev(ident_res); + g_strfreev(title_res); + g_strfreev(author_res); + g_strfreev(year_res); + + ++entry_total; + g_free (entry); + g_match_info_next (match_entry, NULL); + } + g_match_info_free(match_entry); + g_regex_unref(regex_entry); + g_regex_unref(subregex_ident); + g_regex_unref(subregex_title); + g_regex_unref(subregex_author); + g_regex_unref(subregex_year); + g_regex_unref(regex_formatting); + + return entry_total; +} diff --git a/src/biblio.h b/src/biblio.h new file mode 100644 index 00000000..fdfd005f --- /dev/null +++ b/src/biblio.h @@ -0,0 +1,58 @@ +/** + * @file biblio.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#ifndef GUMMI_BIBLIO_H +#define GUMMI_BIBLIO_H + +#include + +#include "motion.h" + +typedef struct _GuBiblio { + GtkProgressBar* progressbar; + GtkAdjustment* progressmon; + GtkListStore* list_biblios; + GtkLabel* filenm_label; + GtkLabel* refnr_label; + gchar* filename; + gchar* basename; + gchar* dirname; + double progressval; +} GuBiblio; + +GuBiblio* biblio_init(GtkBuilder* builder); + +gboolean biblio_detect_bibliography(); +gboolean biblio_compile_bibliography(GuBiblio* bc, GuMotion* mc); +gboolean biblio_setup_bibliography(); +gboolean biblio_check_valid_file(GuBiblio* b, gchar *filename); +int biblio_parse_entries(GuBiblio* bc, gchar *bib_content); + + +#endif /* GUMMI_BIBLIO_H */ diff --git a/src/configfile.c b/src/configfile.c new file mode 100644 index 00000000..46389cb0 --- /dev/null +++ b/src/configfile.c @@ -0,0 +1,254 @@ +/** + * @file configfile.c + * @brief handle configuration file + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#include "configfile.h" + +#include +#include +#include + +#include + +#include "environment.h" +#include "utils.h" + +static const gchar* config_filename = 0; + +const gchar config_str[] = +"[Global]\n" +"config_version = "PACKAGE_VERSION"\n" +"\n" +"[Editor]\n" +"line_numbers = True\n" +"highlighting = True\n" +"textwrapping = True\n" +"wordwrapping = True\n" +"spelling = False\n" +"toolbar = True\n" +"statusbar = True\n" +"rightpane = True\n" +"spell_language = None\n" +"font = Monospace 10\n" +"\n" +"[File]\n" +"autosaving = False\n" +"autosave_timer = 600\n" +"\n" +"[Compile]\n" +"typesetter = pdflatex\n" +"compile_status = True\n" +"compile_scheme = on_idle\n" +"compile_timer = 1\n" +"\n" +"[Misc]\n" +"recent1 = __NULL__\n" +"recent2 = __NULL__\n" +"recent3 = __NULL__\n" +"welcome = \\documentclass{article}\n" +" \\begin{document}\n" +" \\begin{center}\n" +" \\Huge{Welcome to Gummi} \\\\\\\n" +" \\\\\n" +" \\LARGE{You are using the "PACKAGE_VERSION" version.\n" +" This package is a NIGHTLY BUILD as part of the\\\\\n" +" \\textbf{Gummi "PACKAGE_VERSION"}.\\\\\n" +" This package is NOT FOR PRODUCTION USE.\n" +" We would appreciate reports on any problems/bugs you experience using this package.\n" +" Please run your Gummi from the command line with the \\textit{\"gummi-beta -d\"} command.\\\\\\\n" +" \\\\\n" +" I welcome your suggestions at\\\\\n" +" http://gummi.midnightcoding.org}\\\\\n" +" \\end{center}\n" +" \\end{document}\n\n"; + +void config_init(const gchar* filename) { + L_F_DEBUG; + const gchar* config_version = 0; + gchar buf[BUFSIZ] = { 0 }; + config_filename = filename; + FILE* fh; + if ((fh = fopen(filename, "r"))) { + fgets(buf, BUFSIZ, fh); + fclose(fh); + } + + config_version = config_get_value("config_version"); + + if (!config_version || + 0 != strcmp(config_version, PACKAGE_VERSION) || + 0 == strcmp(buf, "[DEFAULT]\n")) { + slog(L_INFO, "found old configuration file, replacing it with new " + "one ...\n"); + config_set_default(); + } +} + +const gchar* config_get_value(const gchar* term) { + L_F_DEBUG; + FILE* fh = 0; + gchar buf[BUF_MAX]; + static gchar ret[BUF_MAX]; + gchar* pstr; + + /* reset ret */ + ret[0] = 0; + + if (!(fh = fopen(config_filename, "r"))) { + slog(L_ERROR, "can't find configuration file, reseting to default\n"); + config_set_default(); + return config_get_value(term); + } + + while (fgets(buf, BUF_MAX, fh)) { + buf[strlen(buf) -1] = 0; + if (NULL == (pstr = strtok(buf, "[=] "))) + continue; + + if (0 != strcmp(pstr, term)) + continue; + if (NULL == (pstr = strtok(NULL, "="))) + continue; + else { + strncpy(ret, pstr + 1, BUF_MAX); + while (!feof(fh)) { + fgets(buf, BUF_MAX, fh); + buf[strlen(buf) -1] = 0; + if (buf[0] == '\t') { + strncat(ret, "\n", BUF_MAX - strlen(ret) -1); + strncat(ret, buf + 1, BUF_MAX - strlen(ret) -1); + } else break; + } + break; + } + } + fclose(fh); + + if (NULL == ret) + slog(L_ERROR, "can't find configuration for %s\n", term); + + if (0 == strcmp(ret, "False")) + return NULL; + return ret; +} + +void config_set_value(const gchar* term, const gchar* value) { + L_F_DEBUG; + int i = 0, count = 0; + int max = strlen(value) > BUF_MAX -1? BUF_MAX -1: strlen(value); + finfo fin = config_load(); + int index = 0; + gchar buf[BUF_MAX]; + + if (-1 == (index = config_find_index_of(fin.pbuf, term))) + slog(L_FATAL, "invalid configuration\n"); + + fin.pbuf[index][strlen(term) + 3] = 0; + for (i = 0; i < max; ++i) { + if (count == BUF_MAX -2) break; + buf[count++] = value[i]; + if (value[i] == '\n') + buf[count++] = '\t'; + } + buf[count] = 0; + + strncat(fin.pbuf[index], buf, BUF_MAX - strlen(fin.pbuf[index]) -2); + strncat(fin.pbuf[index], "\n", BUF_MAX - strlen(fin.pbuf[index]) -1); + + for (i = index + 1; i < fin.len; ++i) { + if (fin.pbuf[i][0] == '\t') + fin.pbuf[i][0] = 0; + else break; + } + + config_save(fin); + + for (i = 0; i < CONFIG_MAX; ++i) + g_free(fin.pbuf[i]); + g_free(fin.pbuf); +} + +void config_set_default(void) { + L_F_DEBUG; + FILE* fh = 0; + if (!(fh = fopen(config_filename, "w"))) + slog(L_FATAL, "can't open config for writing... abort\n"); + + fwrite(config_str, strlen(config_str), 1, fh); + fclose(fh); +} + +finfo config_load(void) { + L_F_DEBUG; + int i = 0, count = 0; + FILE* fh = 0; + + gchar** pbuf = (gchar**)g_malloc(CONFIG_MAX * sizeof(gchar*)); + for (i = 0; i < CONFIG_MAX; ++i) + pbuf[i] = (gchar*)g_malloc(BUF_MAX * sizeof(gchar)); + + if (!(fh = fopen(config_filename, "r"))) { + slog(L_ERROR, "can't find configuration file, reseting to default\n"); + config_set_default(); + return config_load(); + } + + while (!feof(fh)) { + if (count == CONFIG_MAX -1) + slog(L_FATAL, "maximum buffer size reached\n"); + fgets(pbuf[count++], BUF_MAX, fh); + } + --count; + fclose(fh); + return (finfo){ pbuf, count }; +} + +void config_save(finfo fin) { + L_F_DEBUG; + FILE* fh = 0; + int i = 0; + if (!(fh = fopen(config_filename, "w"))) + slog(L_FATAL, "can't open config for writing... abort\n"); + + for (i = 0; i < fin.len; ++i) { + if (strlen(fin.pbuf[i])) + fputs(fin.pbuf[i], fh); + } + fclose(fh); +} + +int config_find_index_of(gchar** pbuf, const gchar* term) { + L_F_DEBUG; + int i = 0; + for (i = 0; i < CONFIG_MAX; ++i) { + if (0 == strncmp(pbuf[i], term, strlen(term))) + return i; + } + return -1; +} diff --git a/src/configfile.h b/src/configfile.h new file mode 100644 index 00000000..611dc9b4 --- /dev/null +++ b/src/configfile.h @@ -0,0 +1,75 @@ +/** + * @file configfile.h + * @brief handle configuration file + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#ifndef GUMMI_CONFIGFILE +#define GUMMI_CONFIGFILE + +#include + +#define CONFIG_MAX 128 +#define BUF_MAX BUFSIZ / 8 + +typedef struct _finfo { + gchar** pbuf; + int len; +} finfo; + +/** + * @brief initialize config file + * @param filename filename of the configuration file + */ +void config_init(const gchar* filename); + +/** + * @brief reset settings to default + */ +void config_set_default(void); + +/** + * @brief get value of a setting + * @param term the name of the setting + * @return a pointer that points to the static gchar* of the setting value. If + * the value type is boolean, config_get_value will return NULL for False + * and non-NULL for True + */ +const gchar* config_get_value(const gchar* term); + +/** + * @brief set value of a setting + * @param term the name of the setting + * @param value the value of the setting + */ +void config_set_value(const gchar* term, const gchar* value); + +/* [Internal] */ +finfo config_load(void); +void config_save(finfo fin); +int config_find_index_of(gchar** pbuf, const gchar* term); + +#endif /* GUMMI_CONFIGFILE */ diff --git a/src/editor.c b/src/editor.c new file mode 100644 index 00000000..dbaf9b7d --- /dev/null +++ b/src/editor.c @@ -0,0 +1,492 @@ +/** + * @file editor.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#include "editor.h" + +#include +#include + +#include +#include +#include +#include +#ifdef USE_GTKSPELL +# include +#endif +#include + +#include "configfile.h" +#include "environment.h" +#include "utils.h" + +const gchar style[][3][20] = { + { "tool_bold", "\\textbf{", "}" }, + { "tool_italic", "\\textit{", "}" }, + { "tool_unline", "\\underline{", "}" }, + { "tool_left", "\\begin{flushleft}", "\\end{flushleft}"}, + { "tool_center", "\\begin{flushcenter}", "\\end{flushcenter}"}, + { "tool_right", "\\begin{flushright}", "\\end{flushright}"} +}; + +/* reference to global environment instance */ +extern Gummi* gummi; + +GuEditor* editor_init(GtkBuilder* builder) { + L_F_DEBUG; + GtkWidget *scroll; + GtkSourceLanguageManager* manager = gtk_source_language_manager_new(); + GtkSourceLanguage* lang = gtk_source_language_manager_get_language + (manager, "latex"); + GuEditor* ec = (GuEditor*)g_malloc(sizeof(GuEditor)); + ec->sourcebuffer = gtk_source_buffer_new_with_language(lang); + ec->sourceview = gtk_source_view_new_with_buffer(ec->sourcebuffer); + ec->errortag = gtk_text_tag_new("error"); + ec->searchtag = gtk_text_tag_new("search"); + ec->editortags = gtk_text_buffer_get_tag_table(ec_sourcebuffer); + ec->replace_activated = FALSE; + ec->term = NULL; + ec->cur_swap = FALSE; + + scroll = GTK_WIDGET (gtk_builder_get_object (builder, "editor_scroll")); + gtk_container_add (GTK_CONTAINER (scroll), ec->sourceview); + +#ifdef USE_GTKSPELL + if (config_get_value("spelling")) + editor_activate_spellchecking(ec, TRUE); +#endif + + editor_sourceview_config(ec); + + gtk_text_buffer_set_modified(ec_sourcebuffer, FALSE); + return ec; +} + +void editor_sourceview_config(GuEditor* ec) { + L_F_DEBUG; + GtkWrapMode wrapmode = 0; + + gtk_source_buffer_set_highlight_matching_brackets(ec->sourcebuffer, TRUE); + + const gchar* font = config_get_value("font"); + slog(L_INFO, "setting font to %s\n", font); + PangoFontDescription* font_desc = pango_font_description_from_string(font); + gtk_widget_modify_font(ec->sourceview, font_desc); + pango_font_description_free(font_desc); + + gtk_source_view_set_show_line_numbers(GTK_SOURCE_VIEW(ec->sourceview), + (gboolean)config_get_value("line_numbers")); + gtk_source_view_set_highlight_current_line(GTK_SOURCE_VIEW(ec->sourceview), + (gboolean)config_get_value("highlighting")); + + if (config_get_value("textwrapping")) + wrapmode += 1; + if (config_get_value("wordwrapping")) + wrapmode += 2; + gtk_text_view_set_wrap_mode(ec_sourceview, wrapmode); + g_object_set(G_OBJECT(ec->errortag), "background", "red", + "foreground", "white", NULL); + g_object_set(G_OBJECT(ec->searchtag), "background", "yellow", NULL); +} + +#ifdef USE_GTKSPELL +void editor_activate_spellchecking(GuEditor* ec, gboolean status) { + L_F_DEBUG; + const gchar* lang = config_get_value("spell_language"); + GError* err = NULL; + GError* err2 = NULL; + if (status) { + GtkSpell* spell = gtkspell_new_attach(ec_sourceview, NULL, &err); + if (!spell) + slog(L_INFO, "gtkspell: %s\n", err->message); + if (!gtkspell_set_language(spell, lang, &err2)) + slog(L_INFO, "gtkspell: %s\n", err2->message); + } else { + GtkSpell* spell = gtkspell_get_from_text_view(ec_sourceview); + if (spell) + gtkspell_detach(spell); + } +} +#endif + +void editor_fill_buffer(GuEditor* ec, const gchar* text) { + L_F_DEBUG; + gtk_text_buffer_begin_user_action(ec_sourcebuffer); + gtk_source_buffer_begin_not_undoable_action(ec->sourcebuffer); + gtk_widget_set_sensitive(GTK_WIDGET(ec->sourceview), FALSE); + gtk_text_buffer_set_text(ec_sourcebuffer, text, strlen(text)); + gtk_text_buffer_set_modified(ec_sourcebuffer, FALSE); + gtk_widget_set_sensitive(GTK_WIDGET(ec->sourceview), TRUE); + gtk_source_buffer_end_not_undoable_action(ec->sourcebuffer); + gtk_text_buffer_end_user_action(ec_sourcebuffer); +} + +gchar* editor_grab_buffer(GuEditor* ec) { + L_F_DEBUG; + GtkTextIter start, end; + gtk_widget_set_sensitive(GTK_WIDGET(ec->sourceview), FALSE); + gtk_text_buffer_get_bounds(ec_sourcebuffer, &start, &end); + gtk_widget_set_sensitive(GTK_WIDGET(ec->sourceview), TRUE); + gchar* pstr = gtk_text_iter_get_text (&start, &end); + return pstr; +} + +void editor_insert_package(GuEditor* ec, const gchar* package) { + L_F_DEBUG; + GtkTextIter start, mstart, mend, sstart, send; + gchar pkgstr[BUFSIZ / 64]; + gtk_text_buffer_get_start_iter(ec_sourcebuffer, &start); + gtk_text_iter_forward_search(&start, (gchar*)"\\begin{document}", 0, + &mstart, &mend, NULL); + snprintf(pkgstr, BUFSIZ / 64, "\\usepackage{%s}\n", package); + if (!gtk_text_iter_backward_search(&mstart, pkgstr, 0, &sstart, &send, + NULL)) { + gtk_source_buffer_begin_not_undoable_action(ec->sourcebuffer); + gtk_text_buffer_begin_user_action(ec_sourcebuffer); + gtk_text_buffer_insert(ec_sourcebuffer, &mstart, + pkgstr, strlen(pkgstr)); + gtk_text_buffer_end_user_action(ec_sourcebuffer); + gtk_source_buffer_end_not_undoable_action(ec->sourcebuffer); + gtk_text_buffer_set_modified(ec_sourcebuffer, TRUE); + } +} + +void editor_insert_bib(GuEditor* ec, const gchar* package) { + L_F_DEBUG; + GtkTextIter start, end, mstart, mend, sstart, send; + gchar pkgstr[BUFSIZ / 64]; + gtk_text_buffer_get_start_iter(ec_sourcebuffer, &start); + gtk_text_buffer_get_end_iter(ec_sourcebuffer, &end); + gtk_text_iter_backward_search(&end, (gchar*)"\\end{document}", 0, + &mstart, &mend, NULL); + snprintf(pkgstr, BUFSIZ / 64, + "\\bibliography{%s}{}\n\\bibliographystyle{plain}\n", package); + if (!gtk_text_iter_forward_search(&start, "\\bibliography{", 0, + &sstart, &send, NULL)) { + gtk_source_buffer_begin_not_undoable_action(ec->sourcebuffer); + gtk_text_buffer_begin_user_action(ec_sourcebuffer); + gtk_text_buffer_insert(ec_sourcebuffer, &mstart, + pkgstr, strlen(pkgstr)); + gtk_text_buffer_end_user_action(ec_sourcebuffer); + gtk_source_buffer_end_not_undoable_action(ec->sourcebuffer); + gtk_text_buffer_set_modified(ec_sourcebuffer, TRUE); + } +} + +void editor_set_selection_textstyle(GuEditor* ec, const gchar* type) { + L_F_DEBUG; + GtkTextIter start, end; + gint i = 0, selected = 0, outsize = 0; + const gchar* selected_text = 0; + gint style_size = sizeof(style) / sizeof(style[0]); + gchar** result = 0; + GError* error = NULL; + GRegex* match_str = 0; + GMatchInfo* match_info; + gchar* outtext = 0; + gchar regexbuf[BUFSIZ]; + + /* grab selected text */ + gtk_text_buffer_get_selection_bounds(ec_sourcebuffer, &start, &end); + selected_text = gtk_text_iter_get_text(&start, &end); + outsize = strlen(selected_text) + 64; + outtext = (gchar*)g_malloc(outsize); + + /* select style */ + for (i = 0; i < style_size; ++i) + if (0 == strcmp(style[i][0], type)) { + selected = i; + break; + } + + /* generate regex expression */ + snprintf(regexbuf, BUFSIZ, "(.*)%s%s(.*)%s%s(.*)", + (style[selected][1][0] == '\\')? "\\": "", + style[selected][1], + (style[selected][2][0] == '\\')? "\\": "", + style[selected][2]); + + match_str = g_regex_new(regexbuf, G_REGEX_DOTALL, 0, &error); + + if (g_regex_match(match_str, selected_text, 0, &match_info)) { + result = g_match_info_fetch_all(match_info); + if (strlen(result[1]) == 0 && strlen(result[3]) == 0) { + /* already applied, so we remove it */ + strncpy(outtext, result[2], outsize); + outtext[strlen(result[2])] = 0; + } else if (strlen(result[1]) != 0 || strlen(result[3]) != 0) { + /* the text contains a partially styled text, remove it and apply + * style to the whole text */ + snprintf(outtext, outsize, "%s%s%s%s%s", + style[selected][1], result[1], result[2], result[3], + style[selected][2]); + } + } else { /* no previous style applied */ + snprintf(outtext, outsize, "%s%s%s", + style[selected][1], selected_text, style[selected][2]); + } + + /* free memory */ + g_strfreev(result); + g_match_info_free(match_info); + g_regex_unref(match_str); + + gtk_text_buffer_begin_user_action(ec_sourcebuffer); + gtk_text_buffer_delete(ec_sourcebuffer, &start, &end); + gtk_text_buffer_insert(ec_sourcebuffer, &start, outtext, strlen(outtext)); + end = start; + gtk_text_iter_backward_chars(&start, strlen(outtext)); + gtk_text_buffer_select_range(ec_sourcebuffer, &start, &end); + gtk_text_buffer_end_user_action(ec_sourcebuffer); + g_free(outtext); + gtk_text_buffer_set_modified(ec_sourcebuffer, TRUE); +} + +void editor_apply_errortags(GuEditor* ec, gint line) { + L_F_DEBUG; + GtkTextIter start, end; + /* remove the tag from the table if it is in threre */ + if (gtk_text_tag_table_lookup(ec->editortags, "error")) + gtk_text_tag_table_remove(ec->editortags, ec->errortag); + + if (line) { + gtk_text_tag_table_add(ec->editortags, ec->errortag); + gtk_text_buffer_get_iter_at_line(ec_sourcebuffer, &start, line -1); + gtk_text_buffer_get_iter_at_line(ec_sourcebuffer, &end, line); + gtk_text_buffer_apply_tag(ec_sourcebuffer, ec->errortag, &start, &end); + gtk_text_buffer_place_cursor(ec_sourcebuffer, &start); + editor_scroll_to_cursor(ec); + } +} + +void editor_jumpto_search_result(GuEditor* ec, gint direction) { + L_F_DEBUG; + if (!ec->term) return; + if (direction == 1) + editor_search_next(ec, FALSE); + else + editor_search_next(ec, TRUE); +} + +void editor_start_search(GuEditor* ec, const gchar* term, + gboolean backwards, gboolean wholeword, gboolean matchcase, + gboolean cs) { + L_F_DEBUG; + /* save options */ + if (ec->term != term) { + if (ec->term) g_free(ec->term); + ec->term = (gchar*)g_malloc(strlen(term) + 1); + strcpy(ec->term, term); + } + + ec->backwards = backwards; + ec->wholeword = wholeword; + ec->matchcase = matchcase; + ec->cur_swap = cs; + + editor_apply_searchtag(ec); + editor_search_next(ec, FALSE); +} + +void editor_apply_searchtag(GuEditor* ec) { + L_F_DEBUG; + GtkTextIter start, mstart, mend; + gboolean ret = FALSE; + + gtk_text_buffer_get_start_iter(ec_sourcebuffer, &start); + + if (gtk_text_tag_table_lookup(ec->editortags, "search")) + gtk_text_tag_table_remove(ec->editortags, ec->searchtag); + gtk_text_tag_table_add(ec->editortags, ec->searchtag); + + while (TRUE) { + ret = gtk_source_iter_forward_search(&start, ec->term, + (ec->matchcase? 0: GTK_SOURCE_SEARCH_CASE_INSENSITIVE), + &mstart, &mend, NULL); + + if (ret && (!ec->wholeword || (ec->wholeword + && gtk_text_iter_starts_word(&mstart) + && gtk_text_iter_ends_word(&mend)))) { + gtk_text_buffer_apply_tag(ec_sourcebuffer, ec->searchtag, + &mstart, &mend); + start = mend; + } else break; + } +} + +void editor_search_next(GuEditor* ec, gboolean inverse) { + L_F_DEBUG; + GtkTextIter current, start, end, mstart, mend; + gboolean ret = FALSE, response = FALSE; + + /* place cursor to the next result */ + editor_get_current_iter(ec, ¤t); + + if (ec->backwards ^ inverse) + ret = gtk_source_iter_backward_search(¤t, ec->term, + (ec->matchcase? 0: GTK_SOURCE_SEARCH_CASE_INSENSITIVE), + &mstart, &mend, NULL); + else + ret = gtk_source_iter_forward_search(¤t, ec->term, + (ec->matchcase? 0: GTK_SOURCE_SEARCH_CASE_INSENSITIVE), + &mstart, &mend, NULL); + + if (ret && (!ec->wholeword || (ec->wholeword + && gtk_text_iter_starts_word(&mstart) + && gtk_text_iter_ends_word(&mend)))) { + gtk_text_buffer_place_cursor(ec_sourcebuffer, + (ec->cur_swap ^ ec->backwards ^ inverse)? &mstart: &mend); + editor_scroll_to_cursor(ec); + } + + /* check if the top/bottom is reached */ + gtk_text_buffer_get_start_iter(ec_sourcebuffer, &start); + gtk_text_buffer_get_end_iter(ec_sourcebuffer, &end); + + if (!ret) { + if (ec->backwards ^ inverse) { + response = utils_yes_no_dialog( + _("Top reached, search from bottom?")); + if (GTK_RESPONSE_YES == response) { + gtk_text_buffer_place_cursor(ec_sourcebuffer, &end); + editor_search_next(ec, inverse); + } + } else { + response = utils_yes_no_dialog( + _("Bottom reached, search from top?")); + if (GTK_RESPONSE_YES == response) { + gtk_text_buffer_place_cursor(ec_sourcebuffer, &start); + editor_search_next(ec, inverse); + } + } + } +} + +void editor_start_replace_next(GuEditor* ec, const gchar* term, + const gchar* rterm, gboolean backwards, gboolean wholeword, + gboolean matchcase) { + L_F_DEBUG; + GtkTextIter current, mstart, mend; + gboolean ret = FALSE; + + if (!ec->replace_activated) { + ec->replace_activated = TRUE; + editor_start_search(ec, term, backwards, wholeword, matchcase, TRUE); + return; + } + + /* place cursor to the next result */ + editor_get_current_iter(ec, ¤t); + + if (backwards) + ret = gtk_source_iter_backward_search(¤t, term, + (matchcase? 0: GTK_SOURCE_SEARCH_CASE_INSENSITIVE), + &mstart, &mend, NULL); + else + ret = gtk_source_iter_forward_search(¤t, term, + (matchcase? 0: GTK_SOURCE_SEARCH_CASE_INSENSITIVE), + &mstart, &mend, NULL); + + if (ret && (!wholeword || (wholeword + && gtk_text_iter_starts_word(&mstart) + && gtk_text_iter_ends_word(&mend)))) { + gtk_text_buffer_begin_user_action(ec_sourcebuffer); + gtk_text_buffer_delete(ec_sourcebuffer, &mstart, &mend); + gtk_text_buffer_insert(ec_sourcebuffer, &mstart, rterm, strlen(rterm)); + gtk_text_buffer_end_user_action(ec_sourcebuffer); + editor_search_next(ec, FALSE); + } + return; +} + +void editor_start_replace_all(GuEditor* ec, const gchar* term, + const gchar* rterm, gboolean backwards, gboolean wholeword, + gboolean matchcase) { + L_F_DEBUG; + GtkTextIter start, mstart, mend; + gboolean ret = FALSE; + + gtk_text_buffer_get_start_iter(ec_sourcebuffer, &start); + + while (TRUE) { + ret = gtk_source_iter_forward_search(&start, term, + (matchcase? 0: GTK_SOURCE_SEARCH_CASE_INSENSITIVE), + &mstart, &mend, NULL); + + if (ret && (!wholeword || (wholeword + && gtk_text_iter_starts_word(&mstart) + && gtk_text_iter_ends_word(&mend)))) { + gtk_text_buffer_begin_user_action(ec_sourcebuffer); + gtk_text_buffer_delete(ec_sourcebuffer, &mstart, &mend); + gtk_text_buffer_insert(ec_sourcebuffer, &mstart, rterm, + strlen(rterm)); + gtk_text_buffer_end_user_action(ec_sourcebuffer); + start = mstart; + } else break; + } +} + +void editor_get_current_iter(GuEditor* ec, GtkTextIter* current) { + L_F_DEBUG; + GtkTextMark* mark; + mark = gtk_text_buffer_get_insert(ec_sourcebuffer); + gtk_text_buffer_get_iter_at_mark(ec_sourcebuffer, current, mark); +} + +void editor_scroll_to_cursor(GuEditor* ec) { + L_F_DEBUG; + gtk_text_view_scroll_to_mark(ec_sourceview, + gtk_text_buffer_get_insert(ec_sourcebuffer), + 0.25, + FALSE, + 0.0, + 0.0); +} + +void editor_undo_change(GuEditor* ec) { + L_F_DEBUG; + GtkTextIter current; + if (gtk_source_buffer_can_undo(ec->sourcebuffer)) { + gtk_source_buffer_undo(ec->sourcebuffer); + editor_get_current_iter(ec, ¤t); + editor_scroll_to_cursor(ec); + gtk_text_buffer_set_modified(ec_sourcebuffer, TRUE); + } +} + +void editor_redo_change(GuEditor* ec) { + L_F_DEBUG; + GtkTextIter current; + if (gtk_source_buffer_can_redo(ec->sourcebuffer)) { + gtk_source_buffer_redo(ec->sourcebuffer); + editor_get_current_iter(ec, ¤t); + editor_scroll_to_cursor(ec); + gtk_text_buffer_set_modified(ec_sourcebuffer, TRUE); + } +} diff --git a/src/editor.h b/src/editor.h new file mode 100644 index 00000000..2b8ab159 --- /dev/null +++ b/src/editor.h @@ -0,0 +1,87 @@ +/** + * @file editor.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#ifndef GUMMI_EDITOR_H +#define GUMMI_EDITOR_H + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include +#include +#include + +#define ec_sourcebuffer GTK_TEXT_BUFFER(ec->sourcebuffer) +#define ec_sourceview GTK_TEXT_VIEW(ec->sourceview) + +typedef struct _GuEditor { + GtkWidget *sourceview; + GtkSourceBuffer *sourcebuffer; + GtkTextTag* errortag; + GtkTextTag* searchtag; + GtkTextTagTable* editortags; + gboolean replace_activated; + gchar* term; + gboolean backwards; + gboolean wholeword; + gboolean matchcase; + gboolean cur_swap; +} GuEditor; + +GuEditor* editor_init(GtkBuilder *builder); +void editor_sourceview_config(GuEditor* ec); +#ifdef USE_GTKSPELL +void editor_activate_spellchecking(GuEditor* ec, gboolean status); +#endif +void editor_fill_buffer(GuEditor* ec, const gchar* text); +gchar* editor_grab_buffer(GuEditor* ec); +void editor_insert_package(GuEditor* ec, const gchar* package); +void editor_insert_bib(GuEditor* ec, const gchar* package); +void editor_set_selection_textstyle(GuEditor* ec, const gchar* type); +void editor_apply_errortags(GuEditor* ec, gint line); +void editor_jumpto_search_result(GuEditor* ec, gint direction); +void editor_start_search(GuEditor* ec, const gchar* term, gboolean backwards, + gboolean wholeword, gboolean matchcase, gboolean cs); +void editor_apply_searchtag(GuEditor* ec); +void editor_search_next(GuEditor* ec, gboolean inverse); +void editor_start_replace_next(GuEditor* ec, const gchar* term, + const gchar* rterm, gboolean backwards, gboolean wholeword, + gboolean matchcase); +void editor_start_replace_all(GuEditor* ec, const gchar* term, + const gchar* rterm, gboolean backwards, gboolean wholeword, + gboolean matchcase); +void editor_get_current_iter(GuEditor* ec, GtkTextIter* current); +inline void editor_scroll_to_cursor(GuEditor* ec); +void editor_undo_change(GuEditor* ec); +void editor_redo_change(GuEditor* ec); + +#endif /* GUMMI_EDITOR_H */ diff --git a/src/environment.c b/src/environment.c new file mode 100644 index 00000000..a7966acc --- /dev/null +++ b/src/environment.c @@ -0,0 +1,68 @@ +/** + * @file environment.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include "configfile.h" +#include "environment.h" +#include "utils.h" + +Gummi* gummi_init(GummiGui* gu, GuFileInfo* fc, GuEditor* ed, GuImporter* im, + GuMotion* mo, GuPreview* prev, GuBiblio* bib, GuTemplate* tpl) { + L_F_DEBUG; + Gummi* g = (Gummi*)g_malloc(sizeof(Gummi)); + g->gui = gu; + g->finfo = fc; + g->editor = ed; + g->importer = im; + g->motion = mo; + g->preview = prev; + g->biblio = bib; + g->templ = tpl; + return g; +} + +void gummi_create_environment(Gummi* gc, gchar* filename) { + L_F_DEBUG; + + fileinfo_update(gc->finfo, filename); + slog(L_INFO, "Environment created for:\n"); + slog(L_INFO, "TEX: %s\n", gc->finfo->filename); + slog(L_INFO, "TMP: %s\n", gc->finfo->workfile); + slog(L_INFO, "PDF: %s\n", gc->finfo->pdffile); + + /* This is important */ + gc->motion->errorline = 1; + motion_initial_preview(gc->motion); + + if (!gc->motion->errorline && config_get_value("compile_status")) + motion_start_updatepreview(gc->motion); + if (config_get_value("autosaving")) + iofunctions_reset_autosave(filename); + + gui_update_title(); +} diff --git a/src/environment.h b/src/environment.h new file mode 100644 index 00000000..3563a443 --- /dev/null +++ b/src/environment.h @@ -0,0 +1,113 @@ +/** + * @file environment.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#ifndef GUMMI_ENVIRONMENT_H +#define GUMMI_ENVIRONMENT_H + +#ifdef HAVE_CONFIG_H +# include "config.h" +#else +# define PACKAGE "gummi" +# define PACKAGE_NAME "Gummi" +# define PACKAGE_VERSION "svn" +# define PACKAGE_URL "http://gummi.midnightcoding.org/" +#endif + +#define PACKAGE_COMMENTS "Simple LaTeX Editor for GTK+ users" +#define PACKAGE_COPYRIGHT "Copyright \xc2\xa9 2009 Alexander van der Mey" +#define PACKAGE_LICENSE \ +"Copyright (C) 2010 Gummi-Dev Team \n" \ +"All Rights reserved.\n" \ +"\n" \ +"Permission is hereby granted, free of charge, to any person\n" \ +"obtaining a copy of this software and associated documentation\n" \ +"files (the \"Software\"), to deal in the Software without\n" \ +"restriction, including without limitation the rights to use,\n" \ +"copy, modify, merge, publish, distribute, sublicense, and/or sell\n" \ +"copies of the Software, and to permit persons to whom the\n" \ +"Software is furnished to do so, subject to the following\n" \ +"conditions:\n" \ +"\n" \ +"The above copyright notice and this permission notice shall be\n" \ +"included in all copies or substantial portions of the Software.\n" \ +"\n" \ +"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" \ +"EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n" \ +"OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n" \ +"NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n" \ +"HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n" \ +"WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n" \ +"FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n" \ +"OTHER DEALINGS IN THE SOFTWARE.\n" + +#include +#include + +#include "biblio.h" +#include "fileinfo.h" +#include "gui.h" +#include "editor.h" +#include "importer.h" +#include "iofunctions.h" +#include "motion.h" +#include "preview.h" +#include "template.h" + +#define _(T) gettext(T) + +/* Gummi Class Hierarchy + * + * GuEditor GuFileInfo GuPreview GuPrefsGui GuImportGui GuSearchGui + * |\ / | | / \ | / + * | `---+- GuMotion -+-` `----- GummiGui ----` + * | | | | + * | | | GuImporter GuTemplate GuBiblio | + * | | | | | | | + * | | | | | | | + * | | | | | | | + * `-----`------------`--------|----------`--------------` + * Gummi + */ + +typedef struct _Gummi { + GummiGui* gui; + GuFileInfo* finfo; + GuEditor* editor; + GuImporter* importer; + GuMotion* motion; + GuPreview* preview; + GuBiblio* biblio; + GuTemplate* templ; +} Gummi; + +Gummi* gummi_init(GummiGui* gu, GuFileInfo* fc, GuEditor* ed, GuImporter* im, + GuMotion* mo, GuPreview* prev, GuBiblio* bib, GuTemplate* tpl); +void gummi_create_environment(Gummi* gc, gchar* filename); + +#endif /* GUMMI_ENVIRONMENT_H */ diff --git a/src/fileinfo.c b/src/fileinfo.c new file mode 100644 index 00000000..f990bbad --- /dev/null +++ b/src/fileinfo.c @@ -0,0 +1,79 @@ +/** + * @file fileinfo.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include + +#include "fileinfo.h" +#include "utils.h" + +GuFileInfo* fileinfo_init(void) { + L_F_DEBUG; + GuFileInfo* f = (GuFileInfo*)g_malloc(sizeof(GuFileInfo)); + f->workfd = -1; + f->filename = NULL; /* current opened file name in workspace */ + f->pdffile = NULL; + f->workfile = NULL; + f->tmpdir = g_get_tmp_dir(); + return f; +} + +void fileinfo_set_filename(GuFileInfo* fc, const gchar* name) { + L_F_DEBUG; + if (fc->filename) g_free(fc->filename); + if (name) + fc->filename = g_strdup(name); + else + fc->filename = NULL; +} + +void fileinfo_update(GuFileInfo* fc, const gchar* filename) { + L_F_DEBUG; + gchar* tname = NULL; + + if (fc->workfd != -1) + fileinfo_destroy(fc); + + fileinfo_set_filename(fc, filename); + + tname = g_strdup_printf("%s%cgummi_XXXXXXX", fc->tmpdir, G_DIR_SEPARATOR); + fc->workfd = g_mkstemp(tname); + + if (fc->workfile) g_free(fc->workfile); + fc->workfile = g_strdup(tname); + + if (fc->pdffile) g_free(fc->pdffile); + fc->pdffile = g_strdup_printf("%s.pdf", tname); + g_free(tname); +} + +void fileinfo_destroy(GuFileInfo* fc) { + L_F_DEBUG; + close(fc->workfd); + // TODO: remove tempfiles +} diff --git a/src/fileinfo.h b/src/fileinfo.h new file mode 100644 index 00000000..e8b8cea3 --- /dev/null +++ b/src/fileinfo.h @@ -0,0 +1,48 @@ +/** + * @file fileinfo.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#ifndef GMMUI_FILEINFO_H +#define GMMUI_FILEINFO_H + +#include + +typedef struct _GuFileInfo { + gint workfd; + gchar* filename; + gchar* pdffile; + gchar* workfile; + const gchar* tmpdir; +} GuFileInfo; + +GuFileInfo* fileinfo_init(void); +void fileinfo_set_filename(GuFileInfo* fc, const gchar* name); +void fileinfo_update(GuFileInfo* fc, const gchar* filename); +void fileinfo_destroy(GuFileInfo* fc); + +#endif /* GMMUI_FILEINFO_H */ diff --git a/src/gui.c b/src/gui.c new file mode 100644 index 00000000..953be7bc --- /dev/null +++ b/src/gui.c @@ -0,0 +1,1217 @@ +/** + * @file gui.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#include "gui.h" + +#include +#include +#include + +#ifndef WIN32 +# include +#endif + +#include +#include + +#include "biblio.h" +#include "configfile.h" +#include "editor.h" +#include "environment.h" +#include "importer.h" +#include "updatecheck.h" +#include "utils.h" + +extern Gummi* gummi; + +/* Many of the functions in this file are based on the excellent GTK+ + * tutorials written by Micah Carrick that can be found on: + * http://www.micahcarrick.com/gtk-glade-tutorial-part-3.html */ + +GummiGui* gui_init(GtkBuilder* builder) { + GtkWidget *hpaned; + GtkWidget *errortext; + gint width = 0, height = 0; + + GummiGui* g = (GummiGui*)g_malloc(sizeof(GummiGui)); + + errortext = GTK_WIDGET(gtk_builder_get_object(builder, "errorfield")); + g->mainwindow = + GTK_WIDGET(gtk_builder_get_object(builder, "mainwindow")); + g->toolbar = + GTK_HBOX(gtk_builder_get_object(builder, "toolbar")); + g->statusbar = + GTK_STATUSBAR(gtk_builder_get_object(builder, "statusbar")); + g->rightpane = + GTK_VBOX(gtk_builder_get_object(builder, "rightpanebox")); + g->previewoff = GTK_TOGGLE_TOOL_BUTTON( + gtk_builder_get_object(builder, "tool_previewoff")); + g->errorbuff = + gtk_text_view_get_buffer(GTK_TEXT_VIEW(errortext)); + g->menu_spelling = + GTK_CHECK_MENU_ITEM(gtk_builder_get_object(builder, "menu_spelling")); + g->menu_toolbar = + GTK_CHECK_MENU_ITEM(gtk_builder_get_object(builder, "menu_toolbar")); + g->menu_statusbar = + GTK_CHECK_MENU_ITEM(gtk_builder_get_object(builder, "menu_statusbar")); + g->menu_rightpane = + GTK_CHECK_MENU_ITEM(gtk_builder_get_object(builder, "menu_rightpane")); + g->statusid = + gtk_statusbar_get_context_id(GTK_STATUSBAR(g->statusbar), "Gummi"); + g->recent[0] = + GTK_MENU_ITEM(gtk_builder_get_object(builder, "menu_recent1")); + g->recent[1] = + GTK_MENU_ITEM(gtk_builder_get_object(builder, "menu_recent2")); + g->recent[2] = + GTK_MENU_ITEM(gtk_builder_get_object(builder, "menu_recent3")); + + g->prefsgui = prefsgui_init(g); + g->searchgui = searchgui_init(builder); + g->importgui = importgui_init(builder); + + PangoFontDescription* font_desc = + pango_font_description_from_string("Monospace 8"); + gtk_widget_modify_font(errortext, font_desc); + pango_font_description_free(font_desc); + gtk_window_get_size(GTK_WINDOW(g->mainwindow), &width, &height); + + hpaned= GTK_WIDGET(gtk_builder_get_object(builder, "hpaned")); + gtk_paned_set_position(GTK_PANED(hpaned), (width/2)); + +#ifndef USE_GTKSPELL + gtk_widget_set_sensitive(GTK_WIDGET(g->menu_spelling), FALSE); +#else + if (config_get_value("spelling")) + gtk_check_menu_item_set_active(g->menu_spelling, TRUE); +#endif + if (config_get_value("toolbar")) { + gtk_check_menu_item_set_active(g->menu_toolbar, TRUE); + gtk_widget_show(GTK_WIDGET(g->toolbar)); + } + + if (config_get_value("statusbar")) { + gtk_check_menu_item_set_active(g->menu_statusbar, TRUE); + gtk_widget_show(GTK_WIDGET(g->statusbar)); + } + + if (config_get_value("rightpane")) { + gtk_check_menu_item_set_active(g->menu_rightpane, TRUE); + gtk_widget_show(GTK_WIDGET(g->rightpane)); + } else { + config_set_value("compile_status", "False"); + gtk_toggle_tool_button_set_active(g->previewoff, TRUE); + } + + if (!config_get_value("compile_status")) + gtk_toggle_tool_button_set_active(g->previewoff, TRUE); + + g->recent_list[0] = g_strdup(config_get_value("recent1")); + g->recent_list[1] = g_strdup(config_get_value("recent2")); + g->recent_list[2] = g_strdup(config_get_value("recent3")); + + display_recent_files(g); + + return g; +} + +void gui_main(GtkBuilder* builder) { + gtk_builder_connect_signals(builder, NULL); + g_signal_connect(g_e_buffer, "changed", + G_CALLBACK(check_motion_timer), NULL); + gtk_widget_show_all(gummi->gui->mainwindow); + gtk_main(); +} + +gboolean gui_quit(void) { + gint ret = check_for_save(); + if (GTK_RESPONSE_YES == ret) + on_menu_save_activate(NULL, NULL); + else if (GTK_RESPONSE_CANCEL == ret || GTK_RESPONSE_DELETE_EVENT == ret) + return TRUE; + gtk_main_quit(); + + printf(" ___ \n" + " {o,o} Thanks for using Gummi!\n" + " |)__) I welcome your feedback at:\n" + " -\"-\"- http://gummi.midnightcoding.org\n\n"); + return FALSE; +} + +void gui_update_title(void) { + gchar* basename = NULL; + gchar* dirname = NULL; + gchar* title = NULL; + if (gummi->finfo->filename) { + basename = g_path_get_basename(gummi->finfo->filename); + dirname = g_path_get_dirname(gummi->finfo->filename); + title = g_strdup_printf("%s%s (%s) - %s", + (gtk_text_buffer_get_modified(g_e_buffer)? "*": ""), + basename, dirname, PACKAGE_NAME); + g_free(basename); + g_free(dirname); + } else + title = g_strdup_printf("%sUnsaved Document - %s", + (gtk_text_buffer_get_modified(g_e_buffer)? "*": ""), + PACKAGE_NAME); + + gtk_window_set_title(GTK_WINDOW(gummi->gui->mainwindow), title); + g_free(title); +} + +void on_menu_new_activate(GtkWidget *widget, void* user) { + gint ret = check_for_save(); + if (GTK_RESPONSE_YES == ret) + on_menu_save_activate(NULL, NULL); + else if (GTK_RESPONSE_CANCEL == ret || GTK_RESPONSE_DELETE_EVENT == ret) + return; + iofunctions_load_default_text(gummi->editor); + gummi_create_environment(gummi, NULL); +} + +void on_menu_template_activate(GtkWidget *widget, void * user) { + gtk_widget_show_all(GTK_WIDGET(gummi->templ->templatewindow)); +} + +void on_menu_exportpdf_activate(GtkWidget *widget, void * user) { + gchar* filename = get_save_filename(FILTER_PDF); + if (filename) + motion_export_pdffile(gummi->motion, filename); +} + +void on_menu_recent_activate(GtkWidget *widget, void * user) { + const gchar* name = gtk_menu_item_get_label(GTK_MENU_ITEM(widget)); + gchar* ptr; + gint index = name[0] - '0' -1; + gint ret = check_for_save(); + + if (GTK_RESPONSE_YES == ret) + on_menu_save_activate(NULL, NULL); + else if (GTK_RESPONSE_CANCEL == ret || GTK_RESPONSE_DELETE_EVENT == ret) + return; + + if (utils_path_exists(gummi->gui->recent_list[index])) { + iofunctions_load_file(gummi->editor, gummi->gui->recent_list[index]); + gummi_create_environment(gummi, gummi->gui->recent_list[index]); + } else { + ptr = g_strdup_printf(_("Error loading recent file: %s"), + gummi->gui->recent_list[index]); + statusbar_set_message(ptr); + g_free(ptr); + g_free(gummi->gui->recent_list[index]); + while (index < 2) { + gummi->gui->recent_list[index] = gummi->gui->recent_list[index+1]; + ++index; + } + gummi->gui->recent_list[2] = 0; + } + display_recent_files(gummi->gui); +} + +void on_menu_open_activate(GtkWidget *widget, void* user) { + gchar *filename = NULL; + gint ret = check_for_save(); + gint i = 0; + + if (GTK_RESPONSE_YES == ret) + on_menu_save_activate(NULL, NULL); + else if (GTK_RESPONSE_CANCEL == ret || GTK_RESPONSE_DELETE_EVENT == ret) + return; + filename = get_open_filename(FILTER_LATEX); + if (filename != NULL) { + iofunctions_load_file(gummi->editor, filename); + gummi_create_environment(gummi, filename); + + /* add to recent list */ + g_free(gummi->gui->recent_list[2]); + for (i = 1; i >= 0; --i) + gummi->gui->recent_list[i + 1] = gummi->gui->recent_list[i]; + gummi->gui->recent_list[0] = g_strdup(filename); + display_recent_files(gummi->gui); + } +} + +void on_menu_save_activate(GtkWidget *widget, void* user) { + gchar* filename = NULL; + if (!gummi->finfo->filename) { + if ((filename = get_save_filename(FILTER_LATEX))) { + fileinfo_set_filename(gummi->finfo, filename); + iofunctions_write_file(gummi->editor, filename); + } + } else + iofunctions_write_file(gummi->editor, gummi->finfo->filename); + gui_update_title(); +} + +void on_menu_saveas_activate(GtkWidget *widget, void* user) { + gchar* filename = NULL; + if (!gummi->finfo->filename) + filename = get_save_filename(FILTER_LATEX); + if (filename) { + iofunctions_write_file(gummi->editor, filename); + gummi_create_environment(gummi, filename); + } +} + +void on_menu_cut_activate(GtkWidget *widget, void* user) { + GtkClipboard *clipboard; + + clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); + gtk_text_buffer_cut_clipboard(g_e_buffer, clipboard, TRUE); +} + +void on_menu_copy_activate(GtkWidget *widget, void* user) { + GtkClipboard *clipboard; + + clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); + gtk_text_buffer_copy_clipboard(g_e_buffer, clipboard); +} +void on_menu_paste_activate(GtkWidget *widget, void* user) { + GtkClipboard *clipboard; + + clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); + gtk_text_buffer_paste_clipboard(g_e_buffer, clipboard, NULL, TRUE); +} + +void on_menu_undo_activate(GtkWidget *widget, void* user) { + editor_undo_change(gummi->editor); +} + +void on_menu_redo_activate(GtkWidget *widget, void* user) { + editor_redo_change(gummi->editor); +} + +void on_menu_delete_activate(GtkWidget *widget, void * user) { + gtk_text_buffer_delete_selection(g_e_buffer, FALSE, TRUE); +} + +void on_menu_selectall_activate(GtkWidget *widget, void * user) { + GtkTextIter start, end; + gtk_text_buffer_get_bounds(g_e_buffer, &start, &end); + gtk_text_buffer_select_range(g_e_buffer, &start, &end); +} + +void on_menu_preferences_activate(GtkWidget *widget, void * user) { + prefsgui_main(); +} + +void on_menu_statusbar_toggled(GtkWidget *widget, void * user) { + if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) { + gtk_widget_show(GTK_WIDGET(gummi->gui->statusbar)); + config_set_value("statusbar", "True"); + } else { + gtk_widget_hide(GTK_WIDGET(gummi->gui->statusbar)); + config_set_value("statusbar", "False"); + } +} + +void on_menu_toolbar_toggled(GtkWidget *widget, void * user) { + if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) { + gtk_widget_show(GTK_WIDGET(gummi->gui->toolbar)); + config_set_value("toolbar", "True"); + } else { + gtk_widget_hide(GTK_WIDGET(gummi->gui->toolbar)); + config_set_value("toolbar", "False"); + } +} + +void on_menu_rightpane_toggled(GtkWidget *widget, void * user) { + if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) { + gtk_widget_show(GTK_WIDGET(gummi->gui->rightpane)); + config_set_value("rightpane", "True"); + } else { + gtk_widget_hide(GTK_WIDGET(gummi->gui->rightpane)); + config_set_value("rightpane", "False"); + } +} + + void on_menu_fullscreen_toggled(GtkWidget *widget, void * user) { + if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) + gtk_window_fullscreen(GTK_WINDOW(gummi->gui->mainwindow)); + else + gtk_window_unfullscreen(GTK_WINDOW(gummi->gui->mainwindow)); + } + +void on_menu_find_activate(GtkWidget *widget, void* user) { + gtk_entry_set_text(gummi->gui->searchgui->searchentry, ""); + gtk_entry_set_text(gummi->gui->searchgui->replaceentry, ""); + gtk_widget_grab_focus(GTK_WIDGET(gummi->gui->searchgui->searchentry)); + gtk_widget_show_all(GTK_WIDGET(gummi->gui->searchgui->searchwindow)); +} + +void on_menu_findnext_activate(GtkWidget *widget, void * user) { + editor_jumpto_search_result(gummi->editor, 1); +} + +void on_menu_findprev_activate(GtkWidget *widget, void * user) { + editor_jumpto_search_result(gummi->editor, -1); +} + +void on_menu_bibload_activate(GtkWidget *widget, void * user) { + gchar *filename = NULL; + filename = get_open_filename(FILTER_BIBLIO); + if (biblio_check_valid_file(gummi->biblio, filename)) { + biblio_setup_bibliography(gummi->biblio, gummi->editor); + gtk_label_set_text(gummi->biblio->filenm_label,gummi->biblio->basename); + } +} + +void on_menu_bibupdate_activate(GtkWidget *widget, void * user) { + biblio_compile_bibliography(gummi->biblio, gummi->motion); +} + +void on_menu_docstat_activate(GtkWidget *widget, void * user) { + // insert contents +} + +void on_menu_spelling_toggled(GtkWidget *widget, void * user) { +#ifdef USE_GTKSPELL + if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) { + editor_activate_spellchecking(gummi->editor, TRUE); + config_set_value("spelling", "True"); + } else { + editor_activate_spellchecking(gummi->editor, FALSE); + config_set_value("spelling", "False"); + } +#endif +} + +void on_menu_update_activate(GtkWidget *widget, void * user) { + gboolean ret = updatecheck(GTK_WINDOW(gummi->gui->mainwindow)); + if (!ret) + slog(L_G_ERROR, "Update check failed!\n"); +} + +void on_menu_about_activate(GtkWidget *widget, void * user) { + GError* err = NULL; + GdkPixbuf* icon = gdk_pixbuf_new_from_file_at_size + (DATADIR"/gummi-beta.png", 60, 60, &err); + const gchar* authors[] = { "Alexander van der Mey\n" + "", + "Wei-Ning Huang\n" + "\n", + "Contributors:", + "Thomas van der Burgt", + "Cameron Grout", NULL }; + const gchar* artists[] = {"Template icon set from:\n" + "http://www.fatcow.com/free-icons/", + "Windows version Icon set from Elemetary Project:\n" + "http://www.elementary-project.com/", NULL}; + + GtkAboutDialog* dialog = GTK_ABOUT_DIALOG(gtk_about_dialog_new()); + gtk_window_set_transient_for(GTK_WINDOW(dialog), + GTK_WINDOW(gummi->gui->mainwindow)); + gtk_window_set_destroy_with_parent(GTK_WINDOW(dialog), TRUE); + gtk_about_dialog_set_authors(dialog, authors); + gtk_about_dialog_set_program_name(dialog, PACKAGE_NAME); + gtk_about_dialog_set_version(dialog, PACKAGE_VERSION); + gtk_about_dialog_set_website(dialog, PACKAGE_URL); + gtk_about_dialog_set_copyright(dialog, PACKAGE_COPYRIGHT); + gtk_about_dialog_set_license(dialog, PACKAGE_LICENSE); + gtk_about_dialog_set_logo(dialog, icon); + gtk_about_dialog_set_comments(dialog, PACKAGE_COMMENTS); + gtk_about_dialog_set_artists(dialog, artists); + gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_widget_destroy(GTK_WIDGET(dialog)); +} + +void on_tool_previewoff_toggled(GtkWidget *widget, void * user) { + gboolean value = + gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(widget)); + config_set_value("compile_status", (!value)?"Ture":"False"); + if (value) + motion_stop_updatepreview(gummi->motion); + else + motion_start_updatepreview(gummi->motion); +} + +void on_tool_textstyle_bold_activate(GtkWidget* widget, void* user) { + editor_set_selection_textstyle(gummi->editor, "tool_bold"); +} + +void on_tool_textstyle_italic_activate(GtkWidget* widget, void* user) { + editor_set_selection_textstyle(gummi->editor, "tool_italic"); +} + +void on_tool_textstyle_underline_activate(GtkWidget* widget, void* user) { + editor_set_selection_textstyle(gummi->editor, "tool_unline"); +} + +void on_tool_textstyle_left_activate(GtkWidget* widget, void* user) { + editor_set_selection_textstyle(gummi->editor, "tool_left"); +} + +void on_tool_textstyle_center_activate(GtkWidget* widget, void* user) { + editor_set_selection_textstyle(gummi->editor, "tool_center"); +} + +void on_tool_textstyle_right_activate(GtkWidget* widget, void* user) { + editor_set_selection_textstyle(gummi->editor, "tool_right"); +} + +void on_button_template_ok_clicked(GtkWidget* widget, void* user) { + const gchar* text = template_get(gummi->templ); + if (text) { + editor_fill_buffer(gummi->editor, text); + gummi_create_environment(gummi, NULL); + gtk_widget_hide(GTK_WIDGET(gummi->templ->templatewindow)); + } +} + +void on_button_template_cancel_clicked(GtkWidget* widget, void* user) { + gtk_widget_hide(GTK_WIDGET(gummi->templ->templatewindow)); +} + +gboolean on_button_searchwindow_close_clicked(GtkWidget* widget, void* user) { + gtk_widget_hide(GTK_WIDGET(gummi->gui->searchgui->searchwindow)); + return TRUE; +} + +void on_button_searchwindow_find_clicked(GtkWidget* widget, void* user) { + editor_start_search(gummi->editor, + gtk_entry_get_text(gummi->gui->searchgui->searchentry), + gummi->gui->searchgui->backwards, + gummi->gui->searchgui->wholeword, + gummi->gui->searchgui->matchcase, + 0 + ); +} + +void on_button_searchwindow_replace_next_clicked(GtkWidget* widget, void* user) +{ + editor_start_replace_next(gummi->editor, + gtk_entry_get_text(gummi->gui->searchgui->searchentry), + gtk_entry_get_text(gummi->gui->searchgui->replaceentry), + gummi->gui->searchgui->backwards, + gummi->gui->searchgui->wholeword, + gummi->gui->searchgui->matchcase + ); +} + +void on_button_searchwindow_replace_all_clicked(GtkWidget* widget, void* user) { + editor_start_replace_all(gummi->editor, + gtk_entry_get_text(gummi->gui->searchgui->searchentry), + gtk_entry_get_text(gummi->gui->searchgui->replaceentry), + gummi->gui->searchgui->backwards, + gummi->gui->searchgui->wholeword, + gummi->gui->searchgui->matchcase + ); +} + +GuImportGui* importgui_init(GtkBuilder* builder) { + GuImportGui* i = (GuImportGui*)g_malloc(sizeof(GuImportGui)); + i->box_image = + GTK_HBOX(gtk_builder_get_object(builder, "box_image")); + i->box_table = + GTK_HBOX(gtk_builder_get_object(builder, "box_table")); + i->box_matrix = + GTK_HBOX(gtk_builder_get_object(builder, "box_matrix")); + i->image_pane = + GTK_VIEWPORT(gtk_builder_get_object(builder, "image_pane")); + i->table_pane = + GTK_VIEWPORT(gtk_builder_get_object(builder, "table_pane")); + i->matrix_pane = + GTK_VIEWPORT(gtk_builder_get_object(builder, "matrix_pane")); + return i; +} + +void on_button_import_table_apply_clicked(GtkWidget* widget, void* user) { + importer_insert_table(gummi->importer, gummi->editor); +} + +void on_button_import_image_apply_clicked(GtkWidget* widget, void* user) { + importer_insert_image(gummi->importer, gummi->editor); +} + +void on_button_import_matrix_apply_clicked(GtkWidget* widget, void* user) { + importer_insert_matrix(gummi->importer, gummi->editor); +} + +void on_image_file_activate(void) { + const gchar* filename = get_open_filename(FILTER_IMAGE); + importer_imagegui_set_sensitive(gummi->importer, filename, TRUE); +} + +void on_import_tabs_switch_page(GtkNotebook* notebook, GtkNotebookPage* page, + guint page_num, void* user) { + GList* list = NULL; + list = gtk_container_get_children( + GTK_CONTAINER(gummi->gui->importgui->box_image)); + while (list) { + gtk_container_remove(GTK_CONTAINER(gummi->gui->importgui->box_image), + GTK_WIDGET(list->data)); + list = list->next; + } + list = gtk_container_get_children( + GTK_CONTAINER(gummi->gui->importgui->box_table)); + while (list) { + gtk_container_remove(GTK_CONTAINER(gummi->gui->importgui->box_table), + GTK_WIDGET(list->data)); + list = list->next; + } + list = gtk_container_get_children( + GTK_CONTAINER(gummi->gui->importgui->box_matrix)); + while (list) { + gtk_container_remove(GTK_CONTAINER(gummi->gui->importgui->box_matrix), + GTK_WIDGET(list->data)); + list = list->next; + } + + switch (page_num) { + case 1: + gtk_container_add(GTK_CONTAINER(gummi->gui->importgui->box_image), + GTK_WIDGET(gummi->gui->importgui->image_pane)); + break; + case 2: + gtk_container_add(GTK_CONTAINER(gummi->gui->importgui->box_table), + GTK_WIDGET(gummi->gui->importgui->table_pane)); + break; + case 3: + gtk_container_add(GTK_CONTAINER(gummi->gui->importgui->box_matrix), + GTK_WIDGET(gummi->gui->importgui->matrix_pane)); + break; + } +} + +void on_bibcolumn_clicked(GtkWidget* widget, void* user) { + gint id = gtk_tree_view_column_get_sort_column_id + (GTK_TREE_VIEW_COLUMN(widget)); + gtk_tree_view_column_set_sort_column_id + (GTK_TREE_VIEW_COLUMN(widget), id); +} + +void on_bibcompile_clicked(GtkWidget* widget, void* user) { + gummi->biblio->progressval = 0.0; + g_timeout_add(10, on_bibprogressbar_update, NULL); + + if (biblio_compile_bibliography(gummi->biblio, gummi->motion)) { + statusbar_set_message(_("Compiling bibliography file...")); + gtk_progress_bar_set_text(gummi->biblio->progressbar, + _("bibliography compiled without errors")); + } else { + statusbar_set_message(_("Error compiling bibliography file or none " + "detected...")); + gtk_progress_bar_set_text(gummi->biblio->progressbar, + _("error compiling bibliography file")); + } + check_motion_timer(); +} + +void on_bibrefresh_clicked(GtkWidget* widget, void* user) { + gchar* text = 0; + gchar* str = 0; + GError* err = NULL; + gint number = 0; + + gummi->biblio->progressval = 0.0; + g_timeout_add(2, on_bibprogressbar_update, NULL); + gtk_list_store_clear(gummi->biblio->list_biblios); + + if (biblio_detect_bibliography(gummi->editor)) { + biblio_setup_bibliography(gummi->biblio, gummi->editor); + g_file_get_contents(gummi->biblio->filename, &text, NULL, &err); + number = biblio_parse_entries(gummi->biblio, text); + gtk_label_set_text(gummi->biblio->filenm_label, + gummi->biblio->basename); + str = g_strdup_printf("%d", number); + gtk_label_set_text(gummi->biblio->refnr_label, str); + g_free(str); + str = g_strdup_printf(_("%s loaded"), gummi->biblio->basename); + gtk_progress_bar_set_text(gummi->biblio->progressbar, str); + g_free(str); + } + else { + gtk_progress_bar_set_text(gummi->biblio->progressbar, + _("no bibliography file detected")); + gtk_label_set_text(gummi->biblio->filenm_label, _("none")); + gtk_label_set_text(gummi->biblio->refnr_label, _("N/A")); + } +} + + +void on_bibreference_clicked(GtkTreeView* view, GtkTreePath* Path, + GtkTreeViewColumn* column, void* user) { + GtkTreeIter iter; + gchar* value; + gchar* out; + GtkTreeModel* model = GTK_TREE_MODEL(gummi->biblio->list_biblios); + GtkTreeSelection* selection = gtk_tree_view_get_selection(view); + + gtk_tree_selection_get_selected(selection, &model, &iter); + gtk_tree_model_get(model, &iter, 0, &value, -1); + out = g_strdup_printf("\\cite{%s}", value); + gtk_text_buffer_insert_at_cursor(g_e_buffer, out, strlen(out)); + g_free(out); +} + +gboolean on_bibprogressbar_update(void* user) { + gtk_adjustment_set_value + (gummi->biblio->progressmon, gummi->biblio->progressval); + gummi->biblio->progressval += 1.0; + if (gummi->biblio->progressval > 60) return FALSE; + else return TRUE; +} + + +void preview_next_page(GtkWidget* widget, void* user) { + preview_goto_page(gummi->preview, gummi->preview->page_current + 1); +} + +void preview_prev_page(GtkWidget* widget, void* user) { + preview_goto_page(gummi->preview, gummi->preview->page_current - 1); +} + +void preview_zoom_change(GtkWidget* widget, void* user) { + gint index = gtk_combo_box_get_active(GTK_COMBO_BOX(widget)); + double opts[9] = {0.50, 0.70, 0.85, 1.0, 1.25, 1.5, 2.0, 3.0, 4.0}; + + if (index < 0) slog(L_ERROR, "preview zoom level is < 0.\n"); + + gummi->preview->fit_width = gummi->preview->best_fit = FALSE; + if (index < 2) { + if (index == 0) { + gummi->preview->best_fit = TRUE; + } + else if (index == 1) { + gummi->preview->fit_width = TRUE; + } + } + else { + gummi->preview->page_scale = opts[index-2]; + } + + gtk_widget_queue_draw(gummi->preview->drawarea); +} + +GuPrefsGui* prefsgui_init(GummiGui* gui) { + GuPrefsGui* p = (GuPrefsGui*)g_malloc(sizeof(GuPrefsGui)); + GtkBuilder* builder = gtk_builder_new(); + gtk_builder_add_from_file(builder, DATADIR"/prefs.glade", NULL); + gtk_builder_set_translation_domain(builder, PACKAGE); + + p->prefwindow = + GTK_WIDGET(gtk_builder_get_object(builder, "prefwindow")); + p->notebook = + GTK_NOTEBOOK(gtk_builder_get_object(builder, "notebook1")); + p->textwrap_button = + GTK_CHECK_BUTTON(gtk_builder_get_object(builder, "textwrapping")); + p->wordwrap_button = + GTK_CHECK_BUTTON(gtk_builder_get_object(builder, "wordwrapping")); + p->line_numbers = + GTK_CHECK_BUTTON(gtk_builder_get_object(builder, "line_numbers")); + p->highlighting = + GTK_CHECK_BUTTON(gtk_builder_get_object(builder, "highlighting")); + p->autosaving = + GTK_CHECK_BUTTON(gtk_builder_get_object(builder, "autosaving")); + p->compile_status = + GTK_CHECK_BUTTON(gtk_builder_get_object(builder, "compile_status")); + p->autosave_timer = + GTK_SPIN_BUTTON(gtk_builder_get_object(builder, "autosave_timer")); + p->combo_languages = + GTK_COMBO_BOX(gtk_builder_get_object(builder, "combo_languages")); + p->list_languages = + GTK_LIST_STORE(gtk_builder_get_object(builder, "list_languages")); + p->default_text = + GTK_TEXT_VIEW(gtk_builder_get_object(builder, "default_text")); + p->default_buffer = + gtk_text_view_get_buffer(p->default_text); + p->typesetter = + GTK_COMBO_BOX(gtk_builder_get_object(builder, "combo_typesetter")); + p->editor_font = + GTK_FONT_BUTTON(gtk_builder_get_object(builder, "editor_font")); + p->compile_scheme = + GTK_COMBO_BOX(gtk_builder_get_object(builder, "combo_compilescheme")); + p->compile_timer = + GTK_SPIN_BUTTON(gtk_builder_get_object(builder, "compile_timer")); + + p->view_box = + GTK_VBOX(gtk_builder_get_object(builder, "view_box")); + p->editor_box = + GTK_HBOX(gtk_builder_get_object(builder, "editor_box")); + p->compile_box = + GTK_HBOX(gtk_builder_get_object(builder, "compile_box")); + + p->changeimg = + GTK_IMAGE(gtk_builder_get_object(builder, "changeimg")); + p->changelabel = + GTK_LABEL(gtk_builder_get_object(builder, "changelabel")); + + gtk_window_set_transient_for(GTK_WINDOW(p->prefwindow), + GTK_WINDOW(gui->mainwindow)); + +#ifdef USE_GTKSPELL + /* list available languages */ + gchar* ptr = 0; + + pdata pret = utils_popen_r("enchant-lsmod -list-dicts"); + + ptr = strtok(pret.data, " \n"); + while (ptr) { + GtkTreeIter iter; + if (ptr[0] != '(') { + gtk_list_store_append(p->list_languages, &iter); + gtk_list_store_set(p->list_languages, &iter, 0, ptr, -1); + } + ptr = strtok(NULL, " \n"); + } + gtk_combo_box_set_active(p->combo_languages, 0); +#else + /* remove gtkspell related GUIs if not used */ + GtkHBox* hbox11 = GTK_HBOX(gtk_builder_get_object(builder, "hbox11")); + GtkHBox* hbox10 = GTK_HBOX(gtk_builder_get_object(builder, "hbox10")); + GtkLabel* label9 = GTK_LABEL(gtk_builder_get_object(builder, "label9")); + gtk_container_remove(GTK_CONTAINER(hbox11), GTK_WIDGET(label9)); + gtk_container_remove(GTK_CONTAINER(hbox10), GTK_WIDGET(p->combo_languages)); +#endif + + prefsgui_set_current_settings(p); + gtk_builder_connect_signals(builder, NULL); + + return p; +} + +void prefsgui_main(void) { + gtk_widget_show_all(GTK_WIDGET(gummi->gui->prefsgui->prefwindow)); +} + +void prefsgui_set_current_settings(GuPrefsGui* prefs) { + /* set font */ + GtkTreeModel* combo_lang = 0; + GtkTreeIter iter; + const gchar* lang = 0; + gint count = 0; + gboolean value = FALSE, valid = FALSE; + const gchar* font = config_get_value("font"); + + PangoFontDescription* font_desc = pango_font_description_from_string(font); + gtk_widget_modify_font(GTK_WIDGET(prefs->default_text), font_desc); + pango_font_description_free(font_desc); + + /* set all checkboxs */ + value = (gboolean)config_get_value("textwrapping"); + if (value) { + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(prefs->textwrap_button), + value); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(prefs->wordwrap_button), + (gboolean)config_get_value("wordwrapping")); + } else + gtk_widget_set_sensitive(GTK_WIDGET(prefs->wordwrap_button), FALSE); + + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(prefs->line_numbers), + (gboolean)config_get_value("line_numbers")); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(prefs->highlighting), + (gboolean)config_get_value("highlighting")); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(prefs->autosaving), + (gboolean)config_get_value("autosaving")); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(prefs->compile_status), + (gboolean)config_get_value("compile_status")); + + if (!config_get_value("autosaving")) + gtk_widget_set_sensitive(GTK_WIDGET(prefs->autosave_timer), FALSE); + + if (!config_get_value("compile_status")) + gtk_widget_set_sensitive(GTK_WIDGET(prefs->compile_timer), FALSE); + + /* set spin button */ + gtk_spin_button_set_value(prefs->autosave_timer, + atoi(config_get_value("autosave_timer"))/60); + gtk_spin_button_set_value(prefs->compile_timer, + atoi(config_get_value("compile_timer"))); + gtk_font_button_set_font_name(prefs->editor_font, + config_get_value("font")); + gtk_text_buffer_set_text(prefs->default_buffer, + config_get_value("welcome"), strlen(config_get_value("welcome"))); + + /* set combo boxes */ + if (0 == strcmp(config_get_value("typesetter"), "xelatex")) + gtk_combo_box_set_active(prefs->typesetter, 1); + + if (0 == strcmp(config_get_value("compile_scheme"), "real_time")) + gtk_combo_box_set_active(prefs->compile_scheme, 1); + + combo_lang = gtk_combo_box_get_model(prefs->combo_languages); + + lang = config_get_value("spell_language"); + valid = gtk_tree_model_get_iter_first(combo_lang, &iter); + while (valid) { + const gchar* str_value; + gtk_tree_model_get(combo_lang, &iter, 0, &str_value, -1); + if (0 == strcmp(lang, str_value)) { + gtk_combo_box_set_active(prefs->combo_languages, count); + break; + } + ++count; + valid = gtk_tree_model_iter_next(combo_lang, &iter); + } +} + +void toggle_linenumbers(GtkWidget* widget, void* user) { + gint newval = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + + config_set_value("line_numbers", newval? "True": "False"); + gtk_source_view_set_show_line_numbers(GTK_SOURCE_VIEW( + gummi->editor->sourceview), newval); +} + +void toggle_highlighting(GtkWidget* widget, void* user) { + gint newval = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + + config_set_value("highlighting", newval? "True": "False"); + gtk_source_view_set_highlight_current_line(GTK_SOURCE_VIEW( + gummi->editor->sourceview), newval); +} + +void toggle_textwrapping(GtkWidget* widget, void* user) { + gint newval = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + + config_set_value("textwrapping", newval? "True": "False"); + if (newval) { + gtk_text_view_set_wrap_mode(g_e_view, GTK_WRAP_CHAR); + gtk_widget_set_sensitive( + GTK_WIDGET(gummi->gui->prefsgui->wordwrap_button), TRUE); + } else { + gtk_text_view_set_wrap_mode(g_e_view, GTK_WRAP_NONE); + config_set_value("wordwrapping", "False"); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( + gummi->gui->prefsgui->wordwrap_button), FALSE); + gtk_widget_set_sensitive( + GTK_WIDGET(gummi->gui->prefsgui->wordwrap_button), FALSE); + } +} + +void toggle_wordwrapping(GtkWidget* widget, void* user) { + gint newval = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + + config_set_value("wordwrapping", newval? "True": "False"); + if (newval) + gtk_text_view_set_wrap_mode(g_e_view, GTK_WRAP_WORD); + else + gtk_text_view_set_wrap_mode(g_e_view, GTK_WRAP_CHAR); +} + +void toggle_compilestatus(GtkWidget* widget, void* user) { + gint newval = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + config_set_value("compile_status", newval? "True": "False"); + if (newval) { + gtk_widget_set_sensitive( + GTK_WIDGET(gummi->gui->prefsgui->compile_timer), TRUE); + gtk_toggle_tool_button_set_active(gummi->gui->previewoff, FALSE); + } else { + gtk_widget_set_sensitive( + GTK_WIDGET(gummi->gui->prefsgui->compile_timer), FALSE); + gtk_toggle_tool_button_set_active(gummi->gui->previewoff, TRUE); + } +} + +void toggle_autosaving(GtkWidget* widget, void* user) { + gint newval = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + config_set_value("autosaving", newval? "True": "False"); + if (newval) { + gtk_widget_set_sensitive( + GTK_WIDGET(gummi->gui->prefsgui->autosave_timer), TRUE); + gint time = atoi(config_get_value("autosave_timer")); + gtk_spin_button_set_value(gummi->gui->prefsgui->autosave_timer, + time / 60); + iofunctions_start_autosave(time, gummi->finfo->filename); + } else { + gtk_widget_set_sensitive( + GTK_WIDGET(gummi->gui->prefsgui->autosave_timer), FALSE); + iofunctions_stop_autosave(); + } + +} + +void on_prefs_close_clicked(GtkWidget* widget, void* user) { + GtkTextIter start, end; + if (2 == gtk_notebook_get_current_page(gummi->gui->prefsgui->notebook)) { + gtk_text_buffer_get_start_iter(gummi->gui->prefsgui->default_buffer, + &start); + gtk_text_buffer_get_end_iter(gummi->gui->prefsgui->default_buffer, + &end); + config_set_value("welcome", gtk_text_buffer_get_text( + gummi->gui->prefsgui->default_buffer, &start, &end, FALSE)); + } + gtk_widget_hide(GTK_WIDGET(gummi->gui->prefsgui->prefwindow)); +} + +void on_prefs_reset_clicked(GtkWidget* widget, void* user) { + config_set_default(); + prefsgui_set_current_settings(gummi->gui->prefsgui); +} + +void on_autosave_value_changed(GtkWidget* widget, void* user) { + gint newval = gtk_spin_button_get_value(GTK_SPIN_BUTTON(widget)); + gchar val_str[16]; + + snprintf(val_str, 16, "%d", newval); + config_set_value("autosave_timer", val_str); + iofunctions_reset_autosave(gummi->finfo->filename); +} + +void on_compile_value_changed(GtkWidget* widget, void* user) { + gint newval = gtk_spin_button_get_value(GTK_SPIN_BUTTON(widget)); + gchar val_str[16]; + + snprintf(val_str, 16, "%d", newval); + config_set_value("compile_timer", val_str); + if (config_get_value("compile_status")) { + motion_stop_updatepreview(gummi->motion); + motion_start_updatepreview(gummi->motion); + } +} + +void on_editor_font_set(GtkWidget* widget, void* user) { + const gchar* font = gtk_font_button_get_font_name(GTK_FONT_BUTTON(widget)); + slog(L_INFO, "setting font to %s\n", font); + config_set_value("font", font); + PangoFontDescription* font_desc = pango_font_description_from_string(font); + gtk_widget_modify_font(GTK_WIDGET(gummi->editor->sourceview), font_desc); + pango_font_description_free(font_desc); +} + +void on_combo_typesetter_changed(GtkWidget* widget, void* user) { + gint selected = gtk_combo_box_get_active(GTK_COMBO_BOX(widget)); + const gchar typesetter[][16] = { "pdflatex", "xelatex" }; + config_set_value("typesetter", typesetter[selected]); + gtk_widget_show(GTK_WIDGET(gummi->gui->prefsgui->changeimg)); + gtk_widget_show(GTK_WIDGET(gummi->gui->prefsgui->changelabel)); +} + +void on_combo_language_changed(GtkWidget* widget, void* user) { +#ifdef USE_GTKSPELL + gchar* selected = gtk_combo_box_get_active_text(GTK_COMBO_BOX(widget)); + config_set_value("spell_language", selected); + if (config_get_value("spelling")) { + editor_activate_spellchecking(gummi->editor, FALSE); + editor_activate_spellchecking(gummi->editor, TRUE); + } +#endif +} + +void on_combo_compilescheme_changed(GtkWidget* widget, void* user) { + gint selected = gtk_combo_box_get_active(GTK_COMBO_BOX(widget)); + const gchar scheme[][16] = { "on_idle", "real_time" }; + slog(L_INFO, "compile scheme set to %s\n", scheme[selected]); + if (config_get_value("compile_status")) { + motion_stop_updatepreview(gummi->motion); + config_set_value("compile_scheme", scheme[selected]); + motion_start_updatepreview(gummi->motion); + } else { + config_set_value("compile_scheme", scheme[selected]); + } +} + +GuSearchGui* searchgui_init(GtkBuilder* builder) { + GuSearchGui* s; + s = (GuSearchGui*)g_malloc(sizeof(GuSearchGui)); + s->searchwindow = + GTK_WIDGET(gtk_builder_get_object(builder, "searchwindow")); + s->searchentry = + GTK_ENTRY(gtk_builder_get_object(builder, "searchentry")); + s->replaceentry = + GTK_ENTRY(gtk_builder_get_object(builder, "replaceentry")); + s->matchcase = TRUE; + g_signal_connect(s->searchentry, "changed", + G_CALLBACK(on_searchgui_text_changed), NULL); + s->backwards = FALSE; + s->wholeword = FALSE; + return s; +} + +void on_toggle_matchcase_toggled(GtkWidget *widget, void* user) { + gummi->gui->searchgui->matchcase = + gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + gummi->editor->replace_activated = FALSE; +} + +void on_toggle_wholeword_toggled(GtkWidget *widget, void* user) { + gummi->gui->searchgui->wholeword = + gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + gummi->editor->replace_activated = FALSE; +} + +void on_toggle_backwards_toggled(GtkWidget *widget, void* user) { + gummi->gui->searchgui->backwards = + gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + gummi->editor->replace_activated = FALSE; +} + +void on_searchgui_text_changed(GtkEditable *editable, void* user) { + gummi->editor->replace_activated = FALSE; +} + +gint check_for_save(void) { + gint ret = 0; + + if (gtk_text_buffer_get_modified(g_e_buffer)) + ret = utils_yes_no_dialog( + _("Do you want to save the changes you have made?")); + return ret; +} + +gchar* get_open_filename(GuFilterType type) { + GtkFileChooser* chooser = NULL; + gchar* filename = NULL; + + chooser = GTK_FILE_CHOOSER(gtk_file_chooser_dialog_new( + _("Open File..."), + GTK_WINDOW (gummi->gui->mainwindow), + GTK_FILE_CHOOSER_ACTION_OPEN, + GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, + GTK_STOCK_OPEN, GTK_RESPONSE_OK, + NULL)); + + file_dialog_set_filter(chooser, type); + gtk_file_chooser_set_current_folder(chooser, g_get_home_dir()); + + if (gtk_dialog_run(GTK_DIALOG (chooser)) == GTK_RESPONSE_OK) + filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser)); + + gtk_widget_destroy(GTK_WIDGET(chooser)); + return filename; +} + +gchar* get_save_filename(GuFilterType type) { + GtkFileChooser* chooser = NULL; + gchar* filename = NULL; + + chooser = GTK_FILE_CHOOSER(gtk_file_chooser_dialog_new( + _("Save File..."), + GTK_WINDOW (gummi->gui->mainwindow), + GTK_FILE_CHOOSER_ACTION_SAVE, + GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, + GTK_STOCK_SAVE, GTK_RESPONSE_OK, + NULL)); + + file_dialog_set_filter(chooser, type); + gtk_file_chooser_set_current_folder(chooser, g_get_home_dir()); + + if (gtk_dialog_run (GTK_DIALOG (chooser)) == GTK_RESPONSE_OK) + filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (chooser)); + + gtk_widget_destroy(GTK_WIDGET(chooser)); + return filename; +} + +void file_dialog_set_filter(GtkFileChooser* dialog, GuFilterType type) { + GtkFileFilter* filter = gtk_file_filter_new(); + + switch (type) { + case FILTER_LATEX: + gtk_file_filter_set_name(filter, "LaTeX files"); + gtk_file_filter_add_pattern(filter, "*.tex"); + gtk_file_chooser_add_filter(dialog, filter); + gtk_file_chooser_set_filter(dialog, filter); + filter = gtk_file_filter_new(); + gtk_file_filter_set_name(filter, "Text files"); + gtk_file_filter_add_mime_type(filter, "text/plain"); + gtk_file_chooser_add_filter(dialog, filter); + break; + + case FILTER_PDF: + gtk_file_filter_set_name(filter, "PDF files"); + gtk_file_filter_add_pattern(filter, "*.pdf"); + gtk_file_chooser_add_filter(dialog, filter); + gtk_file_chooser_set_filter(dialog, filter); + break; + + case FILTER_IMAGE: + gtk_file_filter_set_name(filter, "Image files"); + gtk_file_filter_add_mime_type(filter, "image/*"); + gtk_file_chooser_add_filter(dialog, filter); + gtk_file_chooser_set_filter(dialog, filter); + break; + + case FILTER_BIBLIO: + gtk_file_filter_set_name(filter, "Bibtex files"); + gtk_file_filter_add_pattern(filter, "*.bib"); + gtk_file_chooser_add_filter(dialog, filter); + gtk_file_chooser_set_filter(dialog, filter); + break; + } + +} + +void display_recent_files(GummiGui* gui) { + gchar* ptr = 0; + gint i = 0, count = 0; + + for (i = 0; i < 3; ++i) + gtk_widget_hide(GTK_WIDGET(gui->recent[i])); + + for (i = 0; i < 3; ++i) { + if (gui->recent_list[i] && + 0 != strcmp(gui->recent_list[i], "__NULL__")) { + ptr = g_strdup_printf("%d. %s", count + 1, + g_path_get_basename(gui->recent_list[i])); + gtk_menu_item_set_label(gui->recent[i], ptr); + gtk_widget_show(GTK_WIDGET(gui->recent[i])); + g_free(ptr); + ++count; + } + } + /* update configuration file */ + for (i = 0; i < 3; ++i) { + ptr = g_strdup_printf("recent%d", i + 1); + if (gui->recent_list[i]) + config_set_value(ptr, gui->recent_list[i]); + else + config_set_value(ptr, "__NULL__"); + g_free(ptr); + } +} + +void errorbuffer_set_text(gchar *message) { + gtk_text_buffer_set_text(gummi->gui->errorbuff, message, -1); +} + +void statusbar_set_message(gchar *message) { + gtk_statusbar_push (GTK_STATUSBAR(gummi->gui->statusbar), + gummi->gui->statusid, message); + g_timeout_add_seconds(4, statusbar_del_message, NULL); +} + +gboolean statusbar_del_message(void* user) { + gtk_statusbar_pop(GTK_STATUSBAR(gummi->gui->statusbar), + gummi->gui->statusid); + return FALSE; +} + +void check_motion_timer(void) { + L_F_DEBUG; + gtk_text_buffer_set_modified(g_e_buffer, TRUE); + gummi->editor->replace_activated = FALSE; + gummi->motion->modified_since_compile = TRUE; + gui_update_title(); + + if (config_get_value("compile_status") && + 0 == strcmp(config_get_value("compile_scheme"), "on_idle")) { + motion_start_timer(gummi->motion); + } +} diff --git a/src/gui.h b/src/gui.h new file mode 100644 index 00000000..ad31700b --- /dev/null +++ b/src/gui.h @@ -0,0 +1,221 @@ +/** + * @file gui.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#ifndef GUMMI_GUI_H +#define GUMMI_GUI_H + +#include + +#define g_e_buffer GTK_TEXT_BUFFER(gummi->editor->sourcebuffer) +#define g_e_view GTK_TEXT_VIEW(gummi->editor->sourceview) + +typedef struct _GuPrefsGui { + GtkWidget* prefwindow; + GtkNotebook* notebook; + GtkCheckButton* textwrap_button; + GtkCheckButton* wordwrap_button; + GtkCheckButton* line_numbers; + GtkCheckButton* highlighting; + GtkCheckButton* autosaving; + GtkCheckButton* compile_status; + GtkSpinButton* autosave_timer; + GtkComboBox* combo_languages; + GtkListStore* list_languages; + GtkTextView* default_text; + GtkTextBuffer* default_buffer; + GtkComboBox* typesetter; + GtkFontButton* editor_font; + GtkComboBox* compile_scheme; + GtkSpinButton* compile_timer; + GtkImage* changeimg; + GtkLabel* changelabel; + + GtkVBox* view_box; + GtkHBox* editor_box; + GtkHBox* compile_box; +} GuPrefsGui; + +typedef struct _GuSearchGui { + GtkWidget* searchwindow; + GtkEntry* searchentry; + GtkEntry* replaceentry; + gboolean backwards; + gboolean matchcase; + gboolean wholeword; +} GuSearchGui; + +typedef struct _GuImportGui { + GtkHBox* box_image; + GtkHBox* box_table; + GtkHBox* box_matrix; + GtkViewport* image_pane; + GtkViewport* table_pane; + GtkViewport* matrix_pane; +} GuImportGui; + +typedef struct _GummiGui { + GuPrefsGui* prefsgui; + GuSearchGui* searchgui; + GuImportGui* importgui; + + GtkWidget *mainwindow; + GtkTextBuffer *errorbuff; + GtkVBox* rightpane; + GtkHBox* toolbar; + GtkStatusbar *statusbar; + GtkToggleToolButton* previewoff; + GtkCheckMenuItem* menu_spelling; + GtkCheckMenuItem* menu_toolbar; + GtkCheckMenuItem* menu_statusbar; + GtkCheckMenuItem* menu_rightpane; + GtkMenuItem* recent[3]; + + guint statusid; + gchar* recent_list[3]; +} GummiGui; + +typedef enum _GuFilterType { + FILTER_LATEX = 0, + FILTER_PDF, + FILTER_IMAGE, + FILTER_BIBLIO +} GuFilterType; + +/* Main GUI */ +GummiGui* gui_init(GtkBuilder* builder); +void gui_main(GtkBuilder* builder); +gboolean gui_quit(void); +void gui_update_title(void); +void on_menu_new_activate(GtkWidget* widget, void* user); +void on_menu_open_activate(GtkWidget* widget, void* user); +void on_menu_save_activate(GtkWidget* widget, void* user); +void on_menu_saveas_activate(GtkWidget* widget, void* user); +void on_menu_find_activate(GtkWidget* widget, void* user); +void on_menu_cut_activate(GtkWidget* widget, void* user); +void on_menu_copy_activate(GtkWidget* widget, void* user); +void on_menu_paste_activate(GtkWidget* widget, void* user); +void on_menu_undo_activate(GtkWidget* widget, void* user); +void on_menu_redo_activate(GtkWidget* widget, void* user); +void on_menu_delete_activate(GtkWidget *widget, void * user); +void on_menu_selectall_activate(GtkWidget *widget, void * user); +void on_menu_preferences_activate(GtkWidget *widget, void * user); +void on_menu_statusbar_toggled(GtkWidget *widget, void * user); +void on_menu_toolbar_toggled(GtkWidget *widget, void * user); +void on_menu_rightpane_toggled(GtkWidget *widget, void * user); +void on_menu_fullscreen_toggled(GtkWidget *widget, void * user); +void on_menu_find_activate(GtkWidget *widget, void* user); +void on_menu_findnext_activate(GtkWidget *widget, void * user); +void on_menu_findprev_activate(GtkWidget *widget, void * user); +void on_menu_bibload_activate(GtkWidget *widget, void * user); +void on_menu_bibupdate_activate(GtkWidget *widget, void * user); +void on_menu_docstat_activate(GtkWidget *widget, void * user); +void on_menu_spelling_toggled(GtkWidget *widget, void * user); +void on_menu_update_activate(GtkWidget *widget, void * user); +void on_menu_about_activate(GtkWidget *widget, void * user); +void on_tool_previewoff_toggled(GtkWidget *widget, void * user); +void on_tool_textstyle_bold_activate(GtkWidget* widget, void* user); +void on_tool_textstyle_italic_activate(GtkWidget* widget, void* user); +void on_tool_textstyle_underline_activate(GtkWidget* widget, void* user); +void on_tool_textstyle_left_activate(GtkWidget* widget, void* user); +void on_tool_textstyle_center_activate(GtkWidget* widget, void* user); +void on_tool_textstyle_right_activate(GtkWidget* widget, void* user); +void on_button_template_ok_clicked(GtkWidget* widget, void* user); +void on_button_template_cancel_clicked(GtkWidget* widget, void* user); +gboolean on_button_searchwindow_close_clicked(GtkWidget* widget, void* user); +void on_button_searchwindow_find_clicked(GtkWidget* widget, void* user); +void on_button_searchwindow_replace_next_clicked(GtkWidget* widget, void* user); +void on_button_searchwindow_replace_all_clicked(GtkWidget* widget, void* user); +void on_import_tabs_switch_page(GtkNotebook* notebook, GtkNotebookPage* page, + guint page_num, void* user); + +void on_bibcompile_clicked(GtkWidget* widget, void* user); +void on_bibrefresh_clicked(GtkWidget* widget, void* user); +void on_bibreference_clicked(GtkTreeView* view, GtkTreePath* Path, + GtkTreeViewColumn* column, void* user); +gboolean on_bibprogressbar_update(void* user); + +void preview_next_page(GtkWidget* widget, void* user); +void preview_prev_page(GtkWidget* widget, void* user); +void preview_zoom_change(GtkWidget* widget, void* user); + +/* Preference GUI */ +GuPrefsGui* prefsgui_init(GummiGui* gui); +void prefsgui_main(void); +void prefsgui_set_current_settings(GuPrefsGui* prefs); +void toggle_linenumbers(GtkWidget* widget, void* user); +void toggle_highlighting(GtkWidget* widget, void* user); +void toggle_textwrapping(GtkWidget* widget, void* user); +void toggle_wordwrapping(GtkWidget* widget, void* user); +void toggle_compilestatus(GtkWidget* widget, void* user); +void toggle_autosaving(GtkWidget* widget, void* user); +void on_prefs_close_clicked(GtkWidget* widget, void* user); +void on_prefs_reset_clicked(GtkWidget* widget, void* user); + +/* Search Window */ +GuSearchGui* searchgui_init(GtkBuilder* builder); +void on_toggle_matchcase_toggled(GtkWidget* widget, void* user); +void on_toggle_wholeword_toggled(GtkWidget* widget, void* user); +void on_toggle_backwards_toggled(GtkWidget* widget, void* user); +void on_searchgui_text_changed(GtkEditable* editable, void* user); +void on_autosave_value_changed(GtkWidget* widget, void* user); +void on_compile_value_changed(GtkWidget* widget, void* user); +void on_editor_font_set(GtkWidget* widget, void* user); +void on_combo_typesetter_changed(GtkWidget* widget, void* user); +void on_combo_language_changed(GtkWidget* widget, void* user); +void on_combo_compilescheme_changed(GtkWidget* widget, void* user); + +/* Import GUI */ +GuImportGui* importgui_init(GtkBuilder* builder); +void on_button_import_table_apply_clicked(GtkWidget* widget, void* user); +void on_button_import_image_apply_clicked(GtkWidget* widget, void* user); +void on_button_import_matrix_apply_clicked(GtkWidget* widget, void* user); +void on_image_file_activate(void); + + +/* misc functions */ +gchar* get_open_filename(GuFilterType type); +gchar* get_save_filename(GuFilterType type); +void file_dialog_set_filter(GtkFileChooser* dialog, GuFilterType type); +gint check_for_save(void); + +void display_recent_files(GummiGui* gui); + +void errorbuffer_set_text(gchar *message); +void statusbar_set_message(gchar* message); +gboolean statusbar_del_message(void* user); + +/** + * @brief "changed" signal callback for editor->sourcebuffer + * Automatically check whether to start timer if buffer changed. + * Also set_modified for buffer + */ +void check_motion_timer(void); + +#endif /* GUMMI_GUI_H */ diff --git a/src/importer.c b/src/importer.c new file mode 100644 index 00000000..9b01398f --- /dev/null +++ b/src/importer.c @@ -0,0 +1,242 @@ +/** + * @file importer.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include "importer.h" + +#include + +#include + +#include "editor.h" +#include "environment.h" +#include "utils.h" + +const gchar align_type[][4] = { "l", "c", "r" }; +const gchar bracket_type[][16] = { "matrix", "pmatrix", "bmatrix", + "Bmatrix", "vmatrix", "Vmatrix" }; + +GuImporter* importer_init(GtkBuilder* builder) { + L_F_DEBUG; + GuImporter* i = (GuImporter*)g_malloc(sizeof(GuImporter)); + + i->import_tabs = + GTK_NOTEBOOK(gtk_builder_get_object(builder, "import_tabs")); + + i->image_pane = + GTK_VIEWPORT(gtk_builder_get_object(builder, "image_pane")); + i->image_file = + GTK_ENTRY(gtk_builder_get_object(builder, "image_file")); + i->image_caption = + GTK_ENTRY(gtk_builder_get_object(builder, "image_caption")); + i->image_label = + GTK_ENTRY(gtk_builder_get_object(builder, "image_label")); + i->image_scale = + GTK_SPIN_BUTTON(gtk_builder_get_object(builder, "image_scale")); + i->scaler = + GTK_ADJUSTMENT(gtk_builder_get_object(builder, "image_scaler")); + + i->table_pane = + GTK_VIEWPORT(gtk_builder_get_object(builder, "table_pane")); + i->table_comboalign = + GTK_COMBO_BOX(gtk_builder_get_object(builder, "table_comboalign")); + i->table_comboborder = + GTK_COMBO_BOX(gtk_builder_get_object(builder, "table_comboborder")); + i->table_rows = + GTK_ADJUSTMENT(gtk_builder_get_object(builder, "table_rows")); + i->table_cols = + GTK_ADJUSTMENT(gtk_builder_get_object(builder, "table_cols")); + + i->matrix_rows = + GTK_ADJUSTMENT(gtk_builder_get_object(builder, "matrix_rows")); + i->matrix_cols = + GTK_ADJUSTMENT(gtk_builder_get_object(builder, "matrix_cols")); + i->matrix_combobracket = + GTK_COMBO_BOX(gtk_builder_get_object(builder,"matrix_combobracket")); + + gtk_adjustment_set_value(i->table_cols, 3); + gtk_adjustment_set_value(i->table_rows, 3); + gtk_adjustment_set_value(i->matrix_cols, 3); + gtk_adjustment_set_value(i->matrix_rows, 3); + return i; +} + +void importer_insert_table(GuImporter* ic, GuEditor* ec) { + L_F_DEBUG; + GtkTextIter current; + const gchar* text = importer_generate_table(ic); + editor_get_current_iter(ec, ¤t); + gtk_text_buffer_begin_user_action(ec_sourcebuffer); + gtk_text_buffer_insert(ec_sourcebuffer, ¤t, text, strlen(text)); + gtk_text_buffer_end_user_action(ec_sourcebuffer); + gtk_text_buffer_set_modified(ec_sourcebuffer, TRUE); + gtk_notebook_set_current_page(ic->import_tabs, 0); +} + +void importer_insert_matrix(GuImporter* ic, GuEditor* ec) { + L_F_DEBUG; + GtkTextIter current; + const gchar* text = importer_generate_matrix(ic); + editor_insert_package(ec, "amsmath"); + editor_get_current_iter(ec, ¤t); + gtk_text_buffer_begin_user_action(ec_sourcebuffer); + gtk_text_buffer_insert(ec_sourcebuffer, ¤t, text, strlen(text)); + gtk_text_buffer_end_user_action(ec_sourcebuffer); + gtk_text_buffer_set_modified(ec_sourcebuffer, TRUE); + gtk_notebook_set_current_page(ic->import_tabs, 0); +} + +void importer_insert_image(GuImporter* ic, GuEditor* ec) { + L_F_DEBUG; + GtkTextIter current; + const gchar* text = importer_generate_image(ic); + const gchar* imagefile = gtk_entry_get_text(ic->image_file); + + if (0 != strlen(imagefile)) { + if (!utils_path_exists(imagefile)) { + slog(L_G_ERROR, _("%s: No such file or directory\n"), imagefile); + } else { + editor_insert_package(ec, "graphicx"); + editor_get_current_iter(ec, ¤t); + gtk_text_buffer_begin_user_action(ec_sourcebuffer); + gtk_text_buffer_insert(ec_sourcebuffer, ¤t,text,strlen(text)); + gtk_text_buffer_end_user_action(ec_sourcebuffer); + gtk_text_buffer_set_modified(ec_sourcebuffer, TRUE); + importer_imagegui_set_sensitive(ic, "", FALSE); + } + } + gtk_notebook_set_current_page(ic->import_tabs, 0); +} + +void importer_imagegui_set_sensitive(GuImporter* ic, const gchar* name, + gboolean mode) { + gtk_widget_set_sensitive(GTK_WIDGET(ic->image_label), mode); + gtk_widget_set_sensitive(GTK_WIDGET(ic->image_caption), mode); + gtk_widget_set_sensitive(GTK_WIDGET(ic->image_scale), mode); + gtk_entry_set_text(ic->image_file, name); + gtk_entry_set_text(ic->image_label, ""); + gtk_entry_set_text(ic->image_caption, ""); + gtk_adjustment_set_value(ic->scaler, 1.00); +} + +const gchar* importer_generate_table(GuImporter* ic) { + L_F_DEBUG; + gint i = 0, j = 0; + static gchar result[BUFSIZ * 2] = { 0 }; + gchar table[BUFSIZ * 2] = { 0 }, + begin_tabular[BUFSIZ] = "\\begin{tabular}{", + end_tabular[] = "\n\\end{tabular}\n", + line[] = "\n\\hline", + tmp[BUFSIZ / 8]; + gint rows = gtk_adjustment_get_value(ic->table_rows); + gint cols = gtk_adjustment_get_value(ic->table_cols); + gint borders = gtk_combo_box_get_active(ic->table_comboborder); + gint alignment = gtk_combo_box_get_active(ic->table_comboalign); + + /* clear previous data */ + result[0] = 0; + + if (borders) + strncat(begin_tabular, "|", BUFSIZ - strlen(begin_tabular) -1); + for (i = 0; i < cols; ++i) { + strncat(begin_tabular, align_type[alignment], BUFSIZ + -strlen(begin_tabular) -1); + if (borders == 2 || (borders == 1 && i == cols -1)) + strncat(begin_tabular, "|", BUFSIZ -strlen(begin_tabular) -1); + } + strncat(begin_tabular, "}", BUFSIZ -strlen(begin_tabular) -1); + if (borders) + strncat(table, line, BUFSIZ * 2 -strlen(table) -1); + for (i = 0; i < rows; ++i) { + strncat(table, "\n\t", BUFSIZ * 2 -strlen(table) -1); + for (j = 0; j < cols; ++j) { + snprintf(tmp, BUFSIZ/8, "%d%d", i + 1, j + 1); + strncat(table, tmp, BUFSIZ * 2 -strlen(table) -1); + if (j != cols -1) + strncat(table, " & ", BUFSIZ * 2 -strlen(table) -1); + else + strncat(table, "\\\\", BUFSIZ * 2 -strlen(table) -1); + } + if (borders == 2 || (borders == 1 && i == rows -1)) + strncat(table, line, BUFSIZ * 2 -strlen(table) -1); + } + strncat(result, begin_tabular, BUFSIZ *2 -strlen(result) -1); + strncat(result, table, BUFSIZ *2 -strlen(result) -1); + strncat(result, end_tabular, BUFSIZ *2 -strlen(result) -1); + return result; +} + +const gchar* importer_generate_matrix(GuImporter* ic) { + L_F_DEBUG; + gint i = 0, j = 0; + static gchar result[BUFSIZ * 2] = { 0 }; + gchar tmp[BUFSIZ / 8]; + gint bracket = gtk_combo_box_get_active(ic->matrix_combobracket); + gint rows = gtk_adjustment_get_value(ic->matrix_rows); + gint cols = gtk_adjustment_get_value(ic->matrix_cols); + + /* clear previous data */ + result[0] = 0; + + strncat(result, "$\\begin{", BUFSIZ * 2 -strlen(result) -1); + strncat(result, bracket_type[bracket], BUFSIZ * 2 -strlen(result) -1); + strncat(result, "}", BUFSIZ * 2 - strlen(result) -1); + + for (i = 0; i < rows; ++i) { + strncat(result, "\n\t", BUFSIZ * 2 -strlen(result) -1); + for (j = 0; j < cols; ++j) { + snprintf(tmp, BUFSIZ/8, "%d%d", i + 1, j + 1); + strncat(result, tmp, BUFSIZ * 2 -strlen(result) -1); + if (j != cols -1) + strncat(result, " & ", BUFSIZ * 2 -strlen(result) -1); + else + strncat(result, "\\\\", BUFSIZ * 2 -strlen(result) -1); + } + } + strncat(result, "\n\\end{", BUFSIZ * 2 -strlen(result) -1); + strncat(result, bracket_type[bracket], BUFSIZ * 2 -strlen(result) -1); + strncat(result, "}$\n", BUFSIZ * 2 -strlen(result) -1); + return result; +} + +const gchar* importer_generate_image(GuImporter* ic) { + L_F_DEBUG; + const gchar* image_file = gtk_entry_get_text(ic->image_file); + const gchar* caption = gtk_entry_get_text(ic->image_caption); + const gchar* label = gtk_entry_get_text(ic->image_label); + gdouble scale = gtk_adjustment_get_value(ic->scaler); + static gchar result[BUFSIZ] = { 0 }; + + /* clear previous data */ + result[0] = 0; + + snprintf(result, BUFSIZ, "\\begin{figure}[htp]\n\\centering\n" + "\\includegraphics[scale=%.2f]{%s}\n\\caption{%s}\n\\label{%s}\n" + "\\end{figure}", scale, image_file, caption, label); + return result; +} diff --git a/src/importer.h b/src/importer.h new file mode 100644 index 00000000..b7139d20 --- /dev/null +++ b/src/importer.h @@ -0,0 +1,69 @@ +/** + * @file importer.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#ifndef GUMMI_IMPORTER_H +#define GUMMI_IMPORTER_H + +#include +#include + +#include "editor.h" + +typedef struct _GuImporter { + GtkNotebook* import_tabs; + + GtkViewport* image_pane; + GtkEntry* image_file; + GtkEntry* image_caption; + GtkEntry* image_label; + GtkSpinButton* image_scale; + GtkAdjustment* scaler; + + GtkViewport* table_pane; + GtkComboBox* table_comboalign; + GtkComboBox* table_comboborder; + GtkAdjustment* table_rows; + GtkAdjustment* table_cols; + + GtkAdjustment* matrix_rows; + GtkAdjustment* matrix_cols; + GtkComboBox* matrix_combobracket; +} GuImporter; + +GuImporter* importer_init(GtkBuilder* builder); +void importer_insert_table(GuImporter* ic, GuEditor* ec); +void importer_insert_matrix(GuImporter* ic, GuEditor* ec); +void importer_insert_image(GuImporter* ic, GuEditor* ec); +void importer_imagegui_set_sensitive(GuImporter* ic, const gchar* name, + gboolean mode); +const gchar* importer_generate_table(GuImporter* ic); +const gchar* importer_generate_matrix(GuImporter* ic); +const gchar* importer_generate_image(GuImporter* ic); + +#endif /* GUMMI_IMPORTER_H */ diff --git a/src/iofunctions.c b/src/iofunctions.c new file mode 100644 index 00000000..7c83f321 --- /dev/null +++ b/src/iofunctions.c @@ -0,0 +1,181 @@ +/** + * @file iofunctions.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#include "iofunctions.h" + +#include +#include +#include +#include + +#include "configfile.h" +#include "editor.h" +#include "environment.h" +#include "gui.h" +#include "utils.h" + +extern Gummi* gummi; +static guint sid = 0; + +void iofunctions_load_default_text(GuEditor* ec) { + L_F_DEBUG; + gchar* str = g_strdup(config_get_value("welcome")); + editor_fill_buffer(ec, str); + g_free(str); +} + +void iofunctions_load_file(GuEditor* ec, gchar *filename) +{ + GError* err = NULL; + gchar* status; + gchar* text; + gchar* decoded; + gboolean result; + + slog(L_INFO, "loading %s ...\n", filename); + + /* add Loading message to status bar and ensure GUI is current */ + status = g_strdup_printf ("Loading %s...", filename); + statusbar_set_message(status); + g_free(status); + while (gtk_events_pending()) gtk_main_iteration(); + + /* get the file contents */ + if (FALSE == (result = g_file_get_contents(filename, &text, NULL, &err))) { + slog(L_G_ERROR, "%s\n", err->message); + g_error_free(err); + iofunctions_load_default_text(ec); + return; + } + if (NULL == (decoded = iofunctions_decode_text(text))) { + g_free(text); + return; + } + editor_fill_buffer(ec, decoded); + g_free(decoded); + g_free(text); +} + +void iofunctions_write_file(GuEditor* ec, gchar *filename) { + L_F_DEBUG; + GError* err=NULL; + gchar* status; + gchar* text; + gchar* encoded; + gboolean result; + + status = g_strdup_printf(_("Saving %s..."), filename); + statusbar_set_message(status); + g_free (status); + while (gtk_events_pending()) gtk_main_iteration(); + + text = editor_grab_buffer(ec); + encoded = iofunctions_encode_text(text); + + /* set the contents of the file to the text from the buffer */ + if (filename != NULL) + result = g_file_set_contents (filename, text, -1, &err); + + if (result == FALSE) { + slog(L_G_ERROR, _("%s\nPlease try again later."), err->message); + g_error_free(err); + } + gtk_text_buffer_set_modified(GTK_TEXT_BUFFER(ec->sourcebuffer), FALSE); + g_free(encoded); + g_free(text); +} + +void iofunctions_start_autosave(gint time, gchar* name) { + L_F_DEBUG; + sid = g_timeout_add_seconds(time, iofunctions_autosave_cb, name); +} + +void iofunctions_stop_autosave(void) { + L_F_DEBUG; + if (sid > 0) + g_source_remove(sid); +} + +void iofunctions_reset_autosave(gchar* name) { + L_F_DEBUG; + iofunctions_stop_autosave(); + iofunctions_start_autosave(atoi(config_get_value("autosave_timer")), name); +} + +char* iofunctions_decode_text(gchar* text) { + GError* err = NULL; + gchar* result = 0; + gsize read = 0, written = 0; + + if (!(result = g_locale_to_utf8(text, -1, &read, &written, &err))) { + slog(L_ERROR, "failed to convert text from default locale, trying " + "ISO-8859-1\n"); + size_t in_size = strlen(text), out_size = in_size * 2; + gchar* out = (gchar*)g_malloc(out_size); + gchar* process = out; + iconv_t cd = iconv_open("UTF-8//IGNORE", "ISO−8859-1"); + + if (-1 == iconv(cd, &text, &in_size, &process, &out_size)) { + slog(L_G_ERROR, _("Can not convert text to UTF-8!\n")); + g_free(out); + out = NULL; + } + result = out; + } + return result; +} + +gchar* iofunctions_encode_text(gchar* text) { + GError* err = NULL; + gchar* result = 0; + gsize read = 0, written = 0; + + if (!(result = g_locale_from_utf8(text, -1, &read, &written, &err))) { + slog(L_ERROR, "failed to convert text to default locale, text will " + "be saved in UTF-8\n"); + result = g_strdup(text); + } + return result; +} + +gboolean iofunctions_autosave_cb(void* name) { + L_F_DEBUG; + gchar* fname = (gchar*)name; + char buf[BUFSIZ]; + if (fname) { + iofunctions_write_file(gummi->editor, fname); + gtk_text_buffer_set_modified( + GTK_TEXT_BUFFER(gummi->editor->sourcebuffer), FALSE); + snprintf(buf, BUFSIZ, _("Autosaving file %s"), fname); + statusbar_set_message(buf); + return TRUE; + } + return FALSE; +} diff --git a/src/iofunctions.h b/src/iofunctions.h new file mode 100644 index 00000000..37024eb2 --- /dev/null +++ b/src/iofunctions.h @@ -0,0 +1,49 @@ +/** + * @file iofunctions.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#ifndef GUMMI_IOFUNCTIONS_H +#define GUMMI_IOFUNCTIONS_H + +#include "editor.h" + +void iofunctions_load_default_text(GuEditor* ec); +void iofunctions_load_file(GuEditor* ec, gchar *filename); +void iofunctions_write_file(GuEditor* ec, gchar *filename); +void iofunctions_start_autosave(gint time, gchar* name); +void iofunctions_stop_autosave(void); +void iofunctions_reset_autosave(gchar* name); +gchar* iofunctions_decode_text(gchar* text); +gchar* iofunctions_encode_text(gchar* text); +gboolean iofunctions_autosave_cb(void* name); + +#endif /* GUMMI_IOFUNCTIONS_H */ + + + diff --git a/src/main.c b/src/main.c new file mode 100644 index 00000000..d0f0409d --- /dev/null +++ b/src/main.c @@ -0,0 +1,129 @@ +/** + * @file main.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "configfile.h" +#include "environment.h" +#include "gui.h" +#include "importer.h" +#include "iofunctions.h" +#include "template.h" +#include "utils.h" +#include "biblio.h" + +static int debug = 0; +Gummi* gummi = 0; + +static GOptionEntry entries[] = { + { (const gchar*)"debug", (gchar)'d', 0, G_OPTION_ARG_NONE, &debug, + (gchar*)"show debug info", NULL}, + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } +}; + +void on_window_destroy (GtkObject *object, gpointer user_data) { + gtk_main_quit(); +} + +int main (int argc, char *argv[]) { + gchar configname[128]; + GtkBuilder* builder; + GummiGui* gui; + GuFileInfo* finfo; + GuEditor* editor; + GuImporter* importer; + GuMotion* motion; + GuPreview* preview; + GuTemplate* templ; + GuBiblio* biblio; + + /* set up i18n */ + bindtextdomain(PACKAGE, LOCALEDIR); + setlocale(LC_ALL, ""); + textdomain(PACKAGE); + + GError* error = NULL; + GOptionContext* context = g_option_context_new("files"); + g_option_context_add_main_entries(context, entries, PACKAGE); + g_option_context_parse(context, &argc, &argv, &error); + + slog_init(debug); + slog(L_INFO, PACKAGE_NAME" version: "PACKAGE_VERSION"\n"); + + /* set up configuration file */ + snprintf(configname, 128, "%s%cgummi", g_get_user_config_dir(), + G_DIR_SEPARATOR); + g_mkdir_with_parents(configname, + S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); + strncat(configname, G_DIR_SEPARATOR_S, 128 - strlen(configname) -1); + strncat(configname, "gummi.cfg", 128 - strlen(configname) -1); + config_init(configname); + slog(L_INFO, "configuration file: %s\n", configname); + config_get_value("wtf"); + + /* initialize gtk */ + gtk_init (&argc, &argv); + builder = gtk_builder_new(); + gtk_builder_add_from_file(builder, DATADIR"/gummi.glade", NULL); + gtk_builder_set_translation_domain(builder, PACKAGE); + + /* initialize classes */ + gui = gui_init(builder); + finfo = fileinfo_init(); + editor = editor_init(builder); + importer = importer_init(builder); + preview = preview_init(builder); + motion = motion_init(builder, finfo, editor, preview); + templ = template_init(builder); + biblio = biblio_init(builder); + + gummi = gummi_init(gui, finfo, editor, importer, motion, preview, biblio, + templ); + + slog_set_gui_parent(gui->mainwindow); + + if (argc != 2) { + iofunctions_load_default_text(editor); + gummi_create_environment(gummi, NULL); + } else { + iofunctions_load_file(editor, argv[1]); + gummi_create_environment(gummi, argv[1]); + } + + gui_main(builder); + return 0; +} diff --git a/src/motion.c b/src/motion.c new file mode 100644 index 00000000..8f5f32a1 --- /dev/null +++ b/src/motion.c @@ -0,0 +1,307 @@ +/** + * @file motion.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include "motion.h" + +#include +#include +#include +#include + +#include +#include + +#include "configfile.h" +#include "editor.h" +#include "environment.h" +#include "gui.h" +#include "preview.h" +#include "utils.h" + +GuMotion* motion_init(GtkBuilder* builder, GuFileInfo* fc, GuEditor* ec, + GuPreview* pc) { + L_F_DEBUG; + GuMotion* m = (GuMotion*)g_malloc(sizeof(GuMotion)); + + /* initialize basis */ + m->b_finfo = fc; + m->b_editor = ec; + m->b_preview = pc; + + /* initialize members */ + m->statuslight = + GTK_TOOL_BUTTON(gtk_builder_get_object(builder, "tool_statuslight")); + const gchar* typesetter = config_get_value("typesetter"); + m->typesetter = (gchar*)g_malloc(strlen(typesetter) + 1); + strncpy(m->typesetter, typesetter, strlen(typesetter) + 1); + m->errorline = 0; + m->last_errorline = 0; + m->update = 0; + m->timer = 0; + m->modified_since_compile = FALSE; + return m; +} + +void motion_initial_preview(GuMotion* mc) { + L_F_DEBUG; + motion_update_workfile(mc); + motion_update_pdffile(mc); + motion_update_errortags(mc); + + /* check for error and see if need to go into error mode */ + if (mc->errorline) + motion_setup_preview_error_mode(mc); + else { + preview_set_pdffile(mc->b_preview, mc->b_finfo->pdffile); + motion_updatepreview(mc); + } +} + +void motion_update_workfile(GuMotion* mc) { + L_F_DEBUG; + GtkTextIter start, end; + gchar *text; + FILE *fp; + + // TODO: the following line caused hangups in python, attention! + /* save selection */ + gtk_text_buffer_get_selection_bounds( + GTK_TEXT_BUFFER(mc->b_editor->sourcebuffer), &start, &end); + gtk_widget_set_sensitive(mc->b_editor->sourceview, FALSE); + text = editor_grab_buffer(mc->b_editor); + gtk_widget_set_sensitive(mc->b_editor->sourceview, TRUE); + + /* restore selection */ + gtk_text_buffer_select_range( + GTK_TEXT_BUFFER(mc->b_editor->sourcebuffer), &start, &end); + + fp = fopen(mc->b_finfo->workfile, "w"); + + if(fp == NULL) { + slog(L_ERROR, "unable to create workfile in tmpdir"); + return; + } + fwrite(text, strlen(text), 1, fp); + g_free(text); + fclose(fp); + // TODO: Maybe add editorviewer grab focus line here if necessary + gtk_widget_grab_focus(mc->b_editor->sourceview); +} + +void motion_update_pdffile(GuMotion* mc) { + L_F_DEBUG; + gchar command[BUFSIZ]; + snprintf(command, sizeof command, "%s " + "-interaction=nonstopmode " + "-file-line-error " + "-halt-on-error " + "-output-directory='%s' '%s'", \ + mc->typesetter, + mc->b_finfo->tmpdir, + mc->b_finfo->workfile); + + pdata cresult = utils_popen_r(command); + errorbuffer_set_text(cresult.data); + mc->errorline = cresult.ret; + mc->modified_since_compile = FALSE; + + /* find error line */ + if (cresult.ret == 1 && + (strstr(cresult.data, "Fatal error") || + (strstr(cresult.data, "No pages of output.")))) { + gchar** result = 0; + GError* error = NULL; + GRegex* match_str = 0; + GMatchInfo* match_info; + match_str = g_regex_new(":([\\d+]+):", G_REGEX_DOTALL, 0, &error); + + if (g_regex_match(match_str, cresult.data, 0, &match_info)) { + result = g_match_info_fetch_all(match_info); + if (result[1]) + mc->errorline = atoi(result[1]); + g_strfreev(result); + } + g_match_info_free(match_info); + g_regex_unref(match_str); + + /* update status light */ + gtk_tool_button_set_stock_id(mc->statuslight, "gtk-no"); + } else + gtk_tool_button_set_stock_id(mc->statuslight, "gtk-yes"); +} + + +void motion_start_updatepreview(GuMotion* mc) { + L_F_DEBUG; + if (0 == strcmp(config_get_value("compile_scheme"), "on_idle")) { + mc->shandlers[0] = g_signal_connect(mc->b_editor->sourceview, + "key-press-event", + G_CALLBACK(on_key_press_cb), + (void*)mc); + mc->shandlers[1] = g_signal_connect(mc->b_editor->sourceview, + "key-release-event", + G_CALLBACK(on_key_release_cb), + (void*)mc); + motion_start_timer(mc); + } else { + mc->update = g_timeout_add_seconds( + atoi(config_get_value("compile_timer")), + motion_updatepreview, (void*)mc); + } +} + +void motion_stop_updatepreview(GuMotion* mc) { + L_F_DEBUG; + if (0 == strcmp(config_get_value("compile_scheme"), "on_idle")) { + g_signal_handler_disconnect(mc->b_editor->sourceview, mc->shandlers[0]); + g_signal_handler_disconnect(mc->b_editor->sourceview, mc->shandlers[1]); + motion_stop_timer(mc); + } else if (mc->update > 0) { + g_source_remove(mc->update); + mc->update = 0; + } +} + +void motion_update_auxfile(GuMotion* mc) { + L_F_DEBUG; + gchar command[BUFSIZ]; + snprintf(command, sizeof command, "%s " + "--draftmode " + "-interaction=nonstopmode " + "--output-directory='%s' '%s'", \ + mc->typesetter, + mc->b_finfo->tmpdir, + mc->b_finfo->workfile); + utils_popen_r(command); +} + +void motion_export_pdffile(GuMotion* mc, const gchar* path) { + L_F_DEBUG; + gchar savepath[PATH_MAX]; + + if (0 != strcmp(path + strlen(path) -4, ".pdf")) + snprintf(savepath, PATH_MAX, "%s.pdf", path); + else + strncpy(savepath, path, PATH_MAX); + utils_copy_file(mc->b_finfo->pdffile, savepath); +} + +void motion_update_errortags(GuMotion* mc) { + L_F_DEBUG; + if (mc->errorline) + editor_apply_errortags(mc->b_editor, mc->errorline); + if (mc->last_errorline && !mc->errorline) + editor_apply_errortags(mc->b_editor, 0); + mc->last_errorline = mc->errorline; +} + +gboolean motion_updatepreview(void* user) { + L_F_DEBUG; + GuMotion* mc = (GuMotion*)user; + motion_update_workfile(mc); + motion_update_pdffile(mc); + motion_update_errortags(mc); + preview_refresh(mc->b_preview); + return 0 != strcmp(config_get_value("compile_scheme"), "on_idle"); +} + +void motion_setup_preview_error_mode(GuMotion* mc) { + L_F_DEBUG; + + GtkEventBox* eventbox = GTK_EVENT_BOX(gtk_event_box_new()); + gtk_widget_set_events(GTK_WIDGET(eventbox), GDK_BUTTON_PRESS_MASK); + g_signal_connect(eventbox, "button-press-event", + G_CALLBACK(on_error_button_press), mc); + char* message = g_strdup_printf(_("PDF-Preview could not initialize.\n\n" + "It appears your LaTeX document contains errors or\n" + "the program `%s' was not installed.\n" + "Additional information is available on the Error Output tab.\n" + "Please correct the listed errors and click this area\n" + "to reload the preview panel."), mc->typesetter); + GtkLabel* label = GTK_LABEL(gtk_label_new(message)); + g_free(message); + gtk_label_set_justify(label, GTK_JUSTIFY_CENTER); + gtk_container_add(GTK_CONTAINER(eventbox), GTK_WIDGET(label)); + gtk_container_remove(GTK_CONTAINER(mc->b_preview->preview_viewport), + GTK_WIDGET(mc->b_preview->drawarea)); + gtk_container_add(GTK_CONTAINER(mc->b_preview->preview_viewport), + GTK_WIDGET(eventbox)); + gtk_widget_show_all(GTK_WIDGET(mc->b_preview->preview_viewport)); +} + +void on_error_button_press(GtkWidget* widget, GdkEventButton* event, void* m) { + L_F_DEBUG; + + GuMotion* mc = (GuMotion*)m; + motion_update_workfile(mc); + motion_update_pdffile(mc); + motion_update_errortags(mc); + + if (!mc->errorline) { + gtk_container_remove(GTK_CONTAINER(mc->b_preview->preview_viewport), + widget); + gtk_container_add(GTK_CONTAINER(mc->b_preview->preview_viewport), + GTK_WIDGET(mc->b_preview->drawarea)); + if (config_get_value("compile_status") && + 0 == strcmp(config_get_value("compile_scheme"), "on_idle")) { + preview_set_pdffile(mc->b_preview, mc->b_finfo->pdffile); + motion_updatepreview(mc); + } + } +} + +void motion_start_timer(GuMotion* mc) { + L_F_DEBUG; + motion_stop_timer(mc); + mc->timer = g_timeout_add_seconds( + atoi(config_get_value("compile_timer")), + motion_updatepreview, (void*)mc); +} + +void motion_stop_timer(GuMotion* mc) { + L_F_DEBUG; + if (mc->timer > 0) { + g_source_remove(mc->timer); + mc->timer = 0; + } +} + +gboolean on_key_press_cb(GtkWidget* widget, GdkEventKey* event, void* user) { + L_F_DEBUG; + motion_stop_timer((GuMotion*)user); + return FALSE; +} + +gboolean on_key_release_cb(GtkWidget* widget, GdkEventKey* event, void* user) { + L_F_DEBUG; + GuMotion* mc = (GuMotion*)user; + if (mc->modified_since_compile) + motion_start_timer(mc); + return FALSE; +} diff --git a/src/motion.h b/src/motion.h new file mode 100644 index 00000000..675d99bb --- /dev/null +++ b/src/motion.h @@ -0,0 +1,74 @@ +/** + * @file motion.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#ifndef GUMMI_MOTION_H +#define GUMMI_MOTION_H + +#include + +#include "editor.h" +#include "fileinfo.h" +#include "preview.h" + +typedef struct _GuMotion { + GuFileInfo* b_finfo; + GuEditor* b_editor; + GuPreview* b_preview; + + gchar* typesetter; + GtkToolButton* statuslight; + gint errorline; + gint last_errorline; + guint update; + guint timer; + guint shandlers[2]; + gboolean modified_since_compile; +} GuMotion; + +GuMotion* motion_init(GtkBuilder* builder, GuFileInfo* fc, GuEditor* ec, + GuPreview* pc); +void motion_initial_preview(GuMotion* mc); +void motion_update_workfile(GuMotion* mc); +void motion_update_pdffile(GuMotion* mc); +void motion_update_auxfile(GuMotion* mc); +void motion_update_errortags(GuMotion* mc); +void motion_start_updatepreview(GuMotion* mc); +void motion_stop_updatepreview(GuMotion* mc); +void motion_export_pdffile(GuMotion* mc, const gchar* path); +void motion_start_timer(GuMotion* mc); +void motion_stop_timer(GuMotion* mc); +void motion_setup_preview_error_mode(GuMotion* mc); + +void on_error_button_press(GtkWidget* widget, GdkEventButton* event, void* m); +gboolean on_key_press_cb(GtkWidget* widget, GdkEventKey* event, void* user); +gboolean on_key_release_cb(GtkWidget* widget, GdkEventKey* event, void* user); +gboolean motion_updatepreview(void* user); + +#endif /* GUMMI_MOTION_H */ + diff --git a/src/preview.c b/src/preview.c new file mode 100644 index 00000000..c252daa3 --- /dev/null +++ b/src/preview.c @@ -0,0 +1,192 @@ +/** + * @file preview.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include "preview.h" + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#include "environment.h" +#include "utils.h" + +GuPreview* preview_init(GtkBuilder * builder) { + L_F_DEBUG; + GuPreview* p = (GuPreview*)g_malloc(sizeof(GuPreview)); + GdkColor bg = {0,0xed00,0xec00,0xeb00}; + p->preview_viewport = + GTK_VIEWPORT(gtk_builder_get_object(builder, "preview_view")); + p->drawarea = GTK_WIDGET(gtk_builder_get_object(builder, "preview_draw")); + p->scrollw = GTK_WIDGET(gtk_builder_get_object(builder, "preview_scroll")); + p->page_next = GTK_WIDGET(gtk_builder_get_object(builder, "page_next")); + p->page_prev = GTK_WIDGET(gtk_builder_get_object(builder, "page_prev")); + p->page_label = GTK_WIDGET(gtk_builder_get_object(builder, "page_label")); + p->page_input = GTK_WIDGET(gtk_builder_get_object(builder, "page_input")); + p->uri = NULL; + p->doc = NULL; + p->page = NULL; + p->fit_width = TRUE; + p->best_fit = FALSE; + gtk_widget_modify_bg(p->drawarea, GTK_STATE_NORMAL, &bg); + + g_signal_connect(GTK_OBJECT(p->drawarea), "expose-event", + G_CALLBACK(on_expose), p); + + slog(L_INFO, "using libpoppler %s ...\n", poppler_get_version()); + return p; +} + +void preview_set_pdffile(GuPreview* pc, const gchar *pdffile) { + L_F_DEBUG; + GError *err = NULL; + pc->page_current = 0; + + if (pc->uri) g_free(pc->uri); + pc->uri = g_strconcat("file://", pdffile, NULL); + + /* clean up */ + if (pc->page) g_object_unref(pc->page); + if (pc->doc) g_object_unref(pc->doc); + + pc->doc = poppler_document_new_from_file(pc->uri, NULL, &err); + pc->page = poppler_document_get_page(pc->doc, pc->page_current); + + poppler_page_get_size(pc->page, &pc->page_width, &pc->page_height); + + pc->page_total = poppler_document_get_n_pages(pc->doc); + pc->page_ratio = (pc->page_width / pc->page_height); + pc->page_scale = 1.0; + preview_set_pagedata(pc); +} + +void preview_refresh(GuPreview* pc) { + L_F_DEBUG; + GError *err = NULL; + + /* This is line is very important, if no pdf exist, preview will fail */ + if (!pc->uri || !utils_path_exists(pc->uri + 7)) return; + + /* clean up */ + if (pc->page) g_object_unref(pc->page); + if (pc->doc) g_object_unref(pc->doc); + + pc->doc = poppler_document_new_from_file(pc->uri, NULL, &err); + pc->page = poppler_document_get_page(pc->doc, pc->page_current); + + pc->page_total = poppler_document_get_n_pages(pc->doc); + preview_set_pagedata(pc); + + gtk_widget_queue_draw(pc->drawarea); +} + +void preview_set_pagedata(GuPreview* pc) { + L_F_DEBUG; + if ((pc->page_total - 1) > pc->page_current) { + gtk_widget_set_sensitive(GTK_WIDGET(pc->page_next), TRUE); + } + else if (pc->page_current >= pc->page_total) { + preview_goto_page(pc, pc->page_total -1); + } + char current[8]; + snprintf(current, sizeof current, "%d", (pc->page_current+1)); + char total[8]; + snprintf(total, sizeof total, "of %d", pc->page_total); + + gtk_entry_set_text(GTK_ENTRY(pc->page_input), current); + gtk_label_set_text(GTK_LABEL(pc->page_label), total); +} + +void preview_goto_page(GuPreview* pc, int page_number) { + L_F_DEBUG; + if (page_number < 0 || page_number >= pc->page_total) + slog(L_ERROR, "page_number is a negative number!\n"); + + pc->page_current = page_number; + gtk_widget_set_sensitive(pc->page_prev, (page_number > 0)); + gtk_widget_set_sensitive(pc->page_next, + (page_number < (pc->page_total -1))); + preview_refresh(pc); + // set label info +} + +gboolean on_expose(GtkWidget* w, GdkEventExpose* e, GuPreview* pc) { + L_F_DEBUG; + /* This is line is very important, if no pdf exist, preview will fail */ + if (!pc->uri || !utils_path_exists(pc->uri + 7)) return FALSE; + + GtkAllocation scrollwsize; + cairo_t* cr; + cr = gdk_cairo_create(w->window); + + gtk_widget_get_allocation(pc->scrollw, &scrollwsize); + double scrollw_ratio = (scrollwsize.width / scrollwsize.height); + + // TODO: STOP WITH ERROR IF PAGE RATIO OR PAGE WIDTH IS NULL! + + if (pc->best_fit || pc->fit_width) { + if (scrollw_ratio < pc->page_ratio || pc->fit_width) { + pc->page_scale = scrollwsize.width / pc->page_width; + } + else { + pc->page_scale = scrollwsize.height / pc->page_height; + } + } + + if (!pc->best_fit && !pc->fit_width) { + gtk_widget_set_size_request(pc->drawarea, (pc->page_width * + pc->page_scale), (pc->page_height * pc->page_scale)); + } + else if (pc->fit_width) { + if (fabs(pc->page_ratio - scrollw_ratio) > 0.01) { + gtk_widget_set_size_request(pc->drawarea, -1, + (pc->page_height*pc->page_scale)); + } + } + else if (pc->best_fit) { + gtk_widget_set_size_request(pc->drawarea, -1, + (pc->page_height*pc->page_scale)-10); + } + + // import python lines for calculating scale here + cairo_scale(cr, pc->page_scale, pc->page_scale); + cairo_set_source_rgb(cr, 1, 1, 1); + cairo_rectangle(cr, 0, 0, pc->page_width, pc->page_height); + cairo_fill(cr); + + poppler_page_render(pc->page, cr); + cairo_destroy(cr); + return FALSE; +} diff --git a/src/preview.h b/src/preview.h new file mode 100644 index 00000000..8b4ab282 --- /dev/null +++ b/src/preview.h @@ -0,0 +1,67 @@ +/** + * @file preview.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#ifndef GUMMI_PREVIEW_H +#define GUMMI_PREVIEW_H + +#include +#include + +typedef struct _GuPreview { + PopplerDocument* doc; + PopplerPage* page; + GtkViewport* preview_viewport; + GtkWidget *drawarea; + GtkWidget *page_next; + GtkWidget *page_prev; + GtkWidget *page_label; + GtkWidget *page_input; + GtkWidget *scrollw; + + gchar *uri; + + gint page_total; + gint page_current; + gdouble page_scale; + gdouble page_width; + gdouble page_height; + gdouble page_ratio; + gboolean fit_width; + gboolean best_fit; +} GuPreview; + +GuPreview* preview_init(GtkBuilder * builder); +void preview_set_pdffile(GuPreview* prev, const gchar *pdffile); +void preview_refresh(GuPreview* prev); +void preview_set_pagedata(GuPreview* prev); +void preview_goto_page(GuPreview* prev, int page_number); + +gboolean on_expose(GtkWidget* w, GdkEventExpose* e, GuPreview* prev); + +#endif /* GUMMI_PREVIEW_H */ diff --git a/src/template.c b/src/template.c new file mode 100644 index 00000000..b66b40df --- /dev/null +++ b/src/template.c @@ -0,0 +1,139 @@ +/** + * @file template.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#include "template.h" + +#include + +#include +#include + +#include "environment.h" +#include "utils.h" + +gchar* template_article = +"\\documentclass{article}\n" +"\\author{[YOUR NAME]\\\\\n" +"\\texttt{[YOUR EMAIL]}\n" +"}\n" +"\\title{[TITLE OF YOUR ARTICLE]}\n" +"\\begin{document}\n" +"\\maketitle\n" +"\\dots\n" +"\n" +"\\end{document}\n"; + +gchar* template_book = +"\\documentclass[12pt]{book}\n" +"\n" +"\\begin{document}\n" +"\n" +"\\chapter*{\\Huge \\center [BOOKTITLE] }\n" +"\\thispagestyle{empty}\n" +"\\section*{\\huge \\center [AUTHOR]}\n" +"\\newpage\n" +"\n" +"\\subsection*{\\center \\normalsize Copyright \\copyright [YEAR] [NAME]}\n" +"\\subsection*{\\center \\normalsize All rights reserved.}\n" +"\\subsection*{\\center \\normalsize ISBN \\dots}\n" +"\\subsection*{\\center \\normalsize Publications}\n" +"\n" +"\\tableofcontents\n" +"\n" +"\\mainmatter\n" +"\\chapter{[CHAPTER1-TITLE]}\n" +"\\dots\n" +"\\chapter{[CHAPTER2-TITLE]}\n" +"\\dots\n" +"\\backmatter\n" +"\n" +"\\end{document}\n"; + +gchar* template_letter = +"\\documentclass{letter}\n" +"\n" +"\\signature{[YOURNAME]}\n" +"\\address{[YOURADDRESS]}\n" +"\n" +"\\begin{document}\n" +"\\begin{letter}{Company name \\\\ Street\\\\ City\\\\ Country}\n" +"\\opening{[HEADING]}\n" +"\n" +"\\dots\\\\\\dots\\\\\\dots\\\\\\dots\\\\\\dots\n" +"\n" +"\\closing{[CLOSING]}\n" +"\\end{letter}\n" +"\\end{document}\n"; + +gchar* template_report = +"\\documentclass[]{report}\n" +"\\begin{document}\n" +"\n" +"\\title{[YOUR TITLE]}\n" +"\\author{[YOUR NAME]}\n" +"\\maketitle\n" +"\n" +"\\chapter{[CHAPTERTITLE]}\n" +"\\section{Introduction}\n" +"\\dots\n" +"\\chapter{[CHAPTERTITLE]}\n" +"\\section{Introduction}\n" +"\\dots\n" +"\\subsection{Subsection}\n" +"\\end{document}\n"; + +GuTemplate* template_init(GtkBuilder* builder) { + L_F_DEBUG; + GuTemplate* t = (GuTemplate*)g_malloc(sizeof(GuTemplate)); + t->templatewindow = + GTK_WINDOW(gtk_builder_get_object(builder, "templatewindow")); + t->iconview = + GTK_ICON_VIEW(gtk_builder_get_object(builder, "templateicons")); + t->template_ok = + GTK_BUTTON(gtk_builder_get_object(builder, "template_ok")); + gtk_icon_view_set_text_column(t->iconview, 0); + gtk_icon_view_set_pixbuf_column(t->iconview, 1); + g_signal_connect(t->iconview, "selection-changed", + G_CALLBACK(template_update_window), t->template_ok); + return t; +} + +void template_update_window(GdkEvent* event, void* button) { + L_F_DEBUG; + gtk_widget_set_sensitive(GTK_WIDGET(button), TRUE); +} + +const gchar* template_get(GuTemplate* templ) { + L_F_DEBUG; + const gchar* templates[] = { template_article, template_book, + template_letter, template_report }; + GList* selection = gtk_icon_view_get_selected_items(templ->iconview); + return templates[atoi(gtk_tree_path_to_string(selection->data))]; +} diff --git a/src/template.h b/src/template.h new file mode 100644 index 00000000..8e387092 --- /dev/null +++ b/src/template.h @@ -0,0 +1,47 @@ +/** + * @file template.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#ifndef GUMMI_TEMPLATE_H +#define GUMMI_TEMPLATE_H + +#include +#include + +typedef struct _Template { + GtkWindow* templatewindow; + GtkIconView* iconview; + GtkButton* template_ok; +} GuTemplate; + +GuTemplate* template_init(GtkBuilder* builder); +void template_update_window(GdkEvent* event, void* button); +const gchar* template_get(GuTemplate* templ); + +#endif /* GUMMI_TEMPLATE_H */ diff --git a/src/updatecheck.c b/src/updatecheck.c new file mode 100644 index 00000000..90c0a9d9 --- /dev/null +++ b/src/updatecheck.c @@ -0,0 +1,121 @@ +/** + * @file updatecheck.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +#include "updatecheck.h" + +#include +#include + +#ifndef WIN32 +# include +# include +# include +# include +#endif + +#include + +#include "environment.h" +#include "utils.h" + +#ifdef WIN32 +/* TODO: use Winsock for WIN32 */ +#else +gboolean updatecheck(GtkWindow* parent) { + L_F_DEBUG; + GtkWidget* dialog; + struct sockaddr_in servaddr; + struct hostent *hp; + gint sock_fd = 0, i = 0; + struct timeval timeout; + gchar data[BUFSIZ] = { 0 }; + const gchar* avail_version; + const gchar* request = "GET /redmine/projects/gummi/repository/raw/" + "trunk/dev/latest HTTP/1.1\r\n" + "User-Agent: Gummi\r\n" + "Host: dev.midnightcoding.org\r\n" + "\r\n"; + + if (-1 == (sock_fd = socket(AF_INET, SOCK_STREAM, 0))) { + slog(L_ERROR, "socket() error\n"); + return FALSE; + } + + /* set timeout to prevent hanging */ + memset(&timeout, 0, sizeof(struct timeval)); + timeout.tv_sec = 5; + if (setsockopt(sock_fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, + sizeof(struct timeval))) { + slog(L_ERROR, "setsockopt() error\n"); + return FALSE; + } + + memset(&servaddr, 0, sizeof(servaddr)); + if (NULL == (hp = gethostbyname("dev.midnightcoding.org"))) { + slog(L_ERROR, "gethostbyname() error\n"); + return FALSE; + } + + memcpy((gchar*)&servaddr.sin_addr.s_addr, (gchar*)hp->h_addr, hp->h_length); + servaddr.sin_port = htons(80); + servaddr.sin_family = AF_INET; + + if (0 != connect(sock_fd, (struct sockaddr*)&servaddr, sizeof(servaddr))) { + slog(L_G_ERROR, "connect() error"); + return FALSE; + } + + write(sock_fd, request, strlen(request)); + read(sock_fd, data, BUFSIZ); + + if (0 == strlen(data)) { + slog(L_ERROR, "connection timeout\n"); + return FALSE; + } + + /* get version string */ + for (i = strlen(data) -2; i >= 0 && data[i] != '\n'; --i); + avail_version = data + i + 1; + + slog(L_INFO, "Currently installed: "PACKAGE_VERSION"\n"); + slog(L_INFO, "Currently available: %s", avail_version); + + dialog = gtk_message_dialog_new (parent, + GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_INFO, + GTK_BUTTONS_OK, + _("Currently installed:\n%s\n\nCurrently available:\n%s"), + PACKAGE_VERSION, avail_version); + gtk_window_set_title(GTK_WINDOW(dialog), "Update Check"); + gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_widget_destroy(dialog); + + return TRUE; +} +#endif diff --git a/src/updatecheck.h b/src/updatecheck.h new file mode 100644 index 00000000..204c0173 --- /dev/null +++ b/src/updatecheck.h @@ -0,0 +1,39 @@ +/** + * @file updatecheck.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#ifndef GUMMI_UPDATE_CHECK +#define GUMMI_UPDATE_CHECK + +#include +#include + +gboolean updatecheck(GtkWindow* parent); + +#endif /* GUMMI_UPDATE_CHECK */ diff --git a/src/utils.c b/src/utils.c new file mode 100644 index 00000000..0516eaad --- /dev/null +++ b/src/utils.c @@ -0,0 +1,172 @@ +/** + * @file utils.c + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#include +#include +#include +#include + +#include +#include + +#ifdef HAVE_SYS_WAIT_H +# include +#endif +#ifndef WEXITSTATUS +# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) +#endif + +#include +#include + +#include "environment.h" +#include "utils.h" + +static gint slog_debug = 0; +static GtkWindow* parent = 0; + +void slog_init(gint debug) { + slog_debug = debug; +} + +void slog_set_gui_parent(GtkWidget* p) { + parent = GTK_WINDOW(p); +} + +void slog(gint level, const gchar *fmt, ...) { + gchar message[BUFSIZ]; + gchar* out; + va_list vap; + + if (L_IS_TYPE(level, L_DEBUG) && !slog_debug) return; + + if (L_IS_TYPE(level, L_DEBUG)) + fprintf(stderr, "\e[1;32m[Debug]\e[0m "); + else if (L_IS_TYPE(level, L_FATAL) || L_IS_TYPE(level, L_G_FATAL)) + fprintf(stderr, "\e[1;37;41m[Fatal]\e[0m "); + else if (L_IS_TYPE(level, L_ERROR) || L_IS_TYPE(level, L_G_ERROR)) + fprintf(stderr, "\e[1;31m[Error]\e[0m "); + else + fprintf(stderr, "\e[1;34m[Info]\e[0m "); + + va_start(vap, fmt); + vsnprintf(message, BUFSIZ, fmt, vap); + va_end(vap); + fprintf(stderr, "%s", message); + + if (L_IS_GUI(level)) { + GtkWidget* dialog; + // TODO: display the tmp file name + if (L_IS_TYPE(level, L_G_FATAL)) + out = g_strdup_printf(_("\nGummi has encountered a serious error " + "and require restart, your can find your file in the %s " + "directory\n"), g_get_tmp_dir()); + else + out = g_strdup(message); + dialog = gtk_message_dialog_new (parent, + GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, + L_IS_TYPE(level,L_G_INFO)? GTK_MESSAGE_INFO: GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + "%s", message); + g_free(out); + + if (L_IS_TYPE(level, L_G_ERROR)) + gtk_window_set_title(GTK_WINDOW(dialog), "Error!"); + else if (L_IS_TYPE(level, L_G_FATAL)) + gtk_window_set_title(GTK_WINDOW(dialog), "Fatal Error!"); + else if (L_IS_TYPE(level, L_G_INFO)) + gtk_window_set_title(GTK_WINDOW(dialog), "Info"); + + gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_widget_destroy(dialog); + } + + if (!L_IS_TYPE(level, L_INFO) && + !L_IS_TYPE(level, L_DEBUG) && + !L_IS_TYPE(level, L_ERROR) && + !L_IS_TYPE(level, L_G_INFO) && + !L_IS_TYPE(level, L_G_ERROR)) + exit(1); +} + +gint utils_yes_no_dialog(const gchar* message) { + GtkWidget* dialog; + gint ret = 0; + dialog = gtk_message_dialog_new (parent, + GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_QUESTION, + GTK_BUTTONS_YES_NO, + "%s", message); + + gtk_window_set_title(GTK_WINDOW(dialog), _("Confirmation")); + ret = gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_widget_destroy(dialog); + return ret; +} + +gboolean utils_path_exists(const gchar* path) { + gboolean result = FALSE; + if (NULL == path) return FALSE; + GFile* file = g_file_new_for_path(path); + result = g_file_query_exists(file, NULL); + g_object_unref(file); + return result; +} + +void utils_copy_file(const gchar* source, const gchar* dest) { + /* I use this to copy file instead of g_file_copy or other OS dependent + * functions */ + FILE *in, *out; + gchar buf[BUFSIZ]; + gint size = 0; + + if (NULL == (in = fopen(source, "rb"))) + slog(L_G_ERROR, "failed to open %s\n", source); + if (NULL == (out = fopen(dest, "wb"))) + slog(L_G_ERROR, "failed to save %s\n", dest); + + while ((size = fread(buf, 1, BUFSIZ, in)) > 0) + fwrite(buf, 1, size, out); + fclose(in); + fclose(out); +} + +pdata utils_popen_r(const gchar* cmd) { + FILE* fp = popen(cmd, "r"); + static gchar buf[BUFSIZ]; + gint status = 0, len = 0; + + if (!fp) + slog(L_FATAL, "popen error"); + len = fread(buf, 1, BUFSIZ, fp); + buf[len] = 0; + status = WEXITSTATUS(pclose(fp)); + return (pdata){status, buf}; +} diff --git a/src/utils.h b/src/utils.h new file mode 100644 index 00000000..2d22eaa8 --- /dev/null +++ b/src/utils.h @@ -0,0 +1,62 @@ +/** + * @file utils.h + * @brief + * + * Copyright (C) 2010 Gummi-Dev Team + * All Rights reserved. + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + + +#ifndef GUMMI_UTILS +#define GUMMI_UTILS + +#include +#include + +#define L_IS_TYPE(level, type) ((level & type) == type) +#define L_IS_GUI(level) (level & 0xf0) +#define L_INFO 0x01 /* for informative messages */ +#define L_DEBUG 0x02 /* debug messages, only print if -d flags is used */ +#define L_ERROR 0x04 /* reconverable error */ +#define L_FATAL 0x08 /* inrecoverable error */ +#define L_G_INFO 0x10 /* GUI info */ +#define L_G_ERROR 0x20 /* recoverable error */ +#define L_G_FATAL 0x40 /* inrecoverable error */ + +#define L_F_DEBUG slog(L_DEBUG, "%s()\n", __func__); + +typedef struct _pdata { + gint ret; + gchar* data; +} pdata; + +void slog_init(gint debug); +void slog_set_gui_parent(GtkWidget* p); +void slog(gint level, const gchar *fmt, ...); +gint utils_yes_no_dialog(const gchar* message); +gboolean utils_path_exists(const gchar* path); +void utils_copy_file(const gchar* source, const gchar* dest); +pdata utils_popen_r(const gchar* cmd); + +#endif /* GUMMI_UTILS */